Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 | /* SPDX-License-Identifier: ISC */ /* * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2012-2017 Qualcomm Atheros, Inc. * Copyright (c) 2006-2012 Wilocity */ /* * This file contains the definitions of the WMI protocol specified in the * Wireless Module Interface (WMI) for the Qualcomm * 60 GHz wireless solution. * It includes definitions of all the commands and events. * Commands are messages from the host to the WM. * Events are messages from the WM to the host. * * This is an automatically generated file. */ #ifndef __WILOCITY_WMI_H__ #define __WILOCITY_WMI_H__ #define WMI_DEFAULT_ASSOC_STA (1) #define WMI_MAC_LEN (6) #define WMI_PROX_RANGE_NUM (3) #define WMI_MAX_LOSS_DMG_BEACONS (20) #define MAX_NUM_OF_SECTORS (128) #define WMI_INVALID_TEMPERATURE (0xFFFFFFFF) #define WMI_SCHED_MAX_ALLOCS_PER_CMD (4) #define WMI_RF_DTYPE_LENGTH (3) #define WMI_RF_ETYPE_LENGTH (3) #define WMI_RF_RX2TX_LENGTH (3) #define WMI_RF_ETYPE_VAL_PER_RANGE (5) /* DTYPE configuration array size * must always be kept equal to (WMI_RF_DTYPE_LENGTH+1) */ #define WMI_RF_DTYPE_CONF_LENGTH (4) /* ETYPE configuration array size * must always be kept equal to * (WMI_RF_ETYPE_LENGTH+WMI_RF_ETYPE_VAL_PER_RANGE) */ #define WMI_RF_ETYPE_CONF_LENGTH (8) /* RX2TX configuration array size * must always be kept equal to (WMI_RF_RX2TX_LENGTH+1) */ #define WMI_RF_RX2TX_CONF_LENGTH (4) /* Qos configuration */ #define WMI_QOS_NUM_OF_PRIORITY (4) #define WMI_QOS_MIN_DEFAULT_WEIGHT (10) #define WMI_QOS_VRING_SLOT_MIN_MS (2) #define WMI_QOS_VRING_SLOT_MAX_MS (10) /* (WMI_QOS_MIN_DEFAULT_WEIGHT * WMI_QOS_VRING_SLOT_MAX_MS / * WMI_QOS_VRING_SLOT_MIN_MS) */ #define WMI_QOS_MAX_WEIGHT 50 #define WMI_QOS_SET_VIF_PRIORITY (0xFF) #define WMI_QOS_DEFAULT_PRIORITY (WMI_QOS_NUM_OF_PRIORITY) #define WMI_MAX_XIF_PORTS_NUM (8) /* Mailbox interface * used for commands and events */ enum wmi_mid { MID_DEFAULT = 0x00, FIRST_DBG_MID_ID = 0x10, LAST_DBG_MID_ID = 0xFE, MID_BROADCAST = 0xFF, }; /* FW capability IDs * Each ID maps to a bit in a 32-bit bitmask value provided by the FW to * the host */ enum wmi_fw_capability { WMI_FW_CAPABILITY_FTM = 0, WMI_FW_CAPABILITY_PS_CONFIG = 1, WMI_FW_CAPABILITY_RF_SECTORS = 2, WMI_FW_CAPABILITY_MGMT_RETRY_LIMIT = 3, WMI_FW_CAPABILITY_AP_SME_OFFLOAD_PARTIAL = 4, WMI_FW_CAPABILITY_WMI_ONLY = 5, WMI_FW_CAPABILITY_THERMAL_THROTTLING = 7, WMI_FW_CAPABILITY_D3_SUSPEND = 8, WMI_FW_CAPABILITY_LONG_RANGE = 9, WMI_FW_CAPABILITY_FIXED_SCHEDULING = 10, WMI_FW_CAPABILITY_MULTI_DIRECTED_OMNIS = 11, WMI_FW_CAPABILITY_RSSI_REPORTING = 12, WMI_FW_CAPABILITY_SET_SILENT_RSSI_TABLE = 13, WMI_FW_CAPABILITY_LO_POWER_CALIB_FROM_OTP = 14, WMI_FW_CAPABILITY_PNO = 15, WMI_FW_CAPABILITY_CHANNEL_BONDING = 17, WMI_FW_CAPABILITY_REF_CLOCK_CONTROL = 18, WMI_FW_CAPABILITY_AP_SME_OFFLOAD_NONE = 19, WMI_FW_CAPABILITY_MULTI_VIFS = 20, WMI_FW_CAPABILITY_FT_ROAMING = 21, WMI_FW_CAPABILITY_BACK_WIN_SIZE_64 = 22, WMI_FW_CAPABILITY_AMSDU = 23, WMI_FW_CAPABILITY_RAW_MODE = 24, WMI_FW_CAPABILITY_TX_REQ_EXT = 25, WMI_FW_CAPABILITY_CHANNEL_4 = 26, WMI_FW_CAPABILITY_IPA = 27, WMI_FW_CAPABILITY_TEMPERATURE_ALL_RF = 30, WMI_FW_CAPABILITY_SPLIT_REKEY = 31, WMI_FW_CAPABILITY_MAX, }; /* WMI_CMD_HDR */ struct wmi_cmd_hdr { u8 mid; u8 reserved; __le16 command_id; __le32 fw_timestamp; } __packed; /* List of Commands */ enum wmi_command_id { WMI_CONNECT_CMDID = 0x01, WMI_DISCONNECT_CMDID = 0x03, WMI_DISCONNECT_STA_CMDID = 0x04, WMI_START_SCHED_SCAN_CMDID = 0x05, WMI_STOP_SCHED_SCAN_CMDID = 0x06, WMI_START_SCAN_CMDID = 0x07, WMI_SET_BSS_FILTER_CMDID = 0x09, WMI_SET_PROBED_SSID_CMDID = 0x0A, /* deprecated */ WMI_SET_LISTEN_INT_CMDID = 0x0B, WMI_FT_AUTH_CMDID = 0x0C, WMI_FT_REASSOC_CMDID = 0x0D, WMI_UPDATE_FT_IES_CMDID = 0x0E, WMI_BCON_CTRL_CMDID = 0x0F, WMI_ADD_CIPHER_KEY_CMDID = 0x16, WMI_DELETE_CIPHER_KEY_CMDID = 0x17, WMI_PCP_CONF_CMDID = 0x18, WMI_SET_APPIE_CMDID = 0x3F, WMI_SET_WSC_STATUS_CMDID = 0x41, WMI_PXMT_RANGE_CFG_CMDID = 0x42, WMI_PXMT_SNR2_RANGE_CFG_CMDID = 0x43, WMI_RADAR_GENERAL_CONFIG_CMDID = 0x100, WMI_RADAR_CONFIG_SELECT_CMDID = 0x101, WMI_RADAR_PARAMS_CONFIG_CMDID = 0x102, WMI_RADAR_SET_MODE_CMDID = 0x103, WMI_RADAR_CONTROL_CMDID = 0x104, WMI_RADAR_PCI_CONTROL_CMDID = 0x105, WMI_MEM_READ_CMDID = 0x800, WMI_MEM_WR_CMDID = 0x801, WMI_ECHO_CMDID = 0x803, WMI_DEEP_ECHO_CMDID = 0x804, WMI_CONFIG_MAC_CMDID = 0x805, /* deprecated */ WMI_CONFIG_PHY_DEBUG_CMDID = 0x806, WMI_ADD_DEBUG_TX_PCKT_CMDID = 0x808, WMI_PHY_GET_STATISTICS_CMDID = 0x809, /* deprecated */ WMI_FS_TUNE_CMDID = 0x80A, /* deprecated */ WMI_CORR_MEASURE_CMDID = 0x80B, WMI_READ_RSSI_CMDID = 0x80C, WMI_TEMP_SENSE_CMDID = 0x80E, WMI_DC_CALIB_CMDID = 0x80F, /* deprecated */ WMI_SEND_TONE_CMDID = 0x810, /* deprecated */ WMI_IQ_TX_CALIB_CMDID = 0x811, /* deprecated */ WMI_IQ_RX_CALIB_CMDID = 0x812, WMI_SET_WORK_MODE_CMDID = 0x815, WMI_LO_LEAKAGE_CALIB_CMDID = 0x816, WMI_LO_POWER_CALIB_FROM_OTP_CMDID = 0x817, WMI_SILENT_RSSI_CALIB_CMDID = 0x81D, /* deprecated */ WMI_RF_RX_TEST_CMDID = 0x81E, WMI_CFG_RX_CHAIN_CMDID = 0x820, WMI_VRING_CFG_CMDID = 0x821, WMI_BCAST_VRING_CFG_CMDID = 0x822, WMI_RING_BA_EN_CMDID = 0x823, WMI_RING_BA_DIS_CMDID = 0x824, WMI_RCP_ADDBA_RESP_CMDID = 0x825, WMI_RCP_DELBA_CMDID = 0x826, WMI_SET_SSID_CMDID = 0x827, WMI_GET_SSID_CMDID = 0x828, WMI_SET_PCP_CHANNEL_CMDID = 0x829, WMI_GET_PCP_CHANNEL_CMDID = 0x82A, WMI_SW_TX_REQ_CMDID = 0x82B, /* Event is shared between WMI_SW_TX_REQ_CMDID and * WMI_SW_TX_REQ_EXT_CMDID */ WMI_SW_TX_REQ_EXT_CMDID = 0x82C, WMI_MLME_PUSH_CMDID = 0x835, WMI_BEAMFORMING_MGMT_CMDID = 0x836, WMI_BF_TXSS_MGMT_CMDID = 0x837, WMI_BF_SM_MGMT_CMDID = 0x838, WMI_BF_RXSS_MGMT_CMDID = 0x839, WMI_BF_TRIG_CMDID = 0x83A, WMI_RCP_ADDBA_RESP_EDMA_CMDID = 0x83B, WMI_LINK_MAINTAIN_CFG_WRITE_CMDID = 0x842, WMI_LINK_MAINTAIN_CFG_READ_CMDID = 0x843, WMI_SET_LINK_MONITOR_CMDID = 0x845, WMI_SET_SECTORS_CMDID = 0x849, WMI_MAINTAIN_PAUSE_CMDID = 0x850, WMI_MAINTAIN_RESUME_CMDID = 0x851, WMI_RS_MGMT_CMDID = 0x852, WMI_RF_MGMT_CMDID = 0x853, WMI_RF_XPM_READ_CMDID = 0x856, WMI_RF_XPM_WRITE_CMDID = 0x857, WMI_LED_CFG_CMDID = 0x858, WMI_SET_CONNECT_SNR_THR_CMDID = 0x85B, WMI_SET_ACTIVE_SILENT_RSSI_TABLE_CMDID = 0x85C, WMI_RF_PWR_ON_DELAY_CMDID = 0x85D, WMI_SET_HIGH_POWER_TABLE_PARAMS_CMDID = 0x85E, WMI_FIXED_SCHEDULING_UL_CONFIG_CMDID = 0x85F, /* Performance monitoring commands */ WMI_BF_CTRL_CMDID = 0x862, WMI_NOTIFY_REQ_CMDID = 0x863, WMI_GET_STATUS_CMDID = 0x864, WMI_GET_RF_STATUS_CMDID = 0x866, WMI_GET_BASEBAND_TYPE_CMDID = 0x867, WMI_VRING_SWITCH_TIMING_CONFIG_CMDID = 0x868, WMI_UNIT_TEST_CMDID = 0x900, WMI_FLASH_READ_CMDID = 0x902, WMI_FLASH_WRITE_CMDID = 0x903, /* Power management */ WMI_TRAFFIC_SUSPEND_CMDID = 0x904, WMI_TRAFFIC_RESUME_CMDID = 0x905, /* P2P */ WMI_P2P_CFG_CMDID = 0x910, WMI_PORT_ALLOCATE_CMDID = 0x911, WMI_PORT_DELETE_CMDID = 0x912, WMI_POWER_MGMT_CFG_CMDID = 0x913, WMI_START_LISTEN_CMDID = 0x914, WMI_START_SEARCH_CMDID = 0x915, WMI_DISCOVERY_START_CMDID = 0x916, WMI_DISCOVERY_STOP_CMDID = 0x917, WMI_PCP_START_CMDID = 0x918, WMI_PCP_STOP_CMDID = 0x919, WMI_GET_PCP_FACTOR_CMDID = 0x91B, /* Power Save Configuration Commands */ WMI_PS_DEV_PROFILE_CFG_CMDID = 0x91C, WMI_RS_ENABLE_CMDID = 0x91E, WMI_RS_CFG_EX_CMDID = 0x91F, WMI_GET_DETAILED_RS_RES_EX_CMDID = 0x920, /* deprecated */ WMI_RS_CFG_CMDID = 0x921, /* deprecated */ WMI_GET_DETAILED_RS_RES_CMDID = 0x922, WMI_AOA_MEAS_CMDID = 0x923, WMI_BRP_SET_ANT_LIMIT_CMDID = 0x924, WMI_SET_MGMT_RETRY_LIMIT_CMDID = 0x930, WMI_GET_MGMT_RETRY_LIMIT_CMDID = 0x931, WMI_NEW_STA_CMDID = 0x935, WMI_DEL_STA_CMDID = 0x936, WMI_SET_THERMAL_THROTTLING_CFG_CMDID = 0x940, WMI_GET_THERMAL_THROTTLING_CFG_CMDID = 0x941, /* Read Power Save profile type */ WMI_PS_DEV_PROFILE_CFG_READ_CMDID = 0x942, WMI_TSF_SYNC_CMDID = 0x973, WMI_TOF_SESSION_START_CMDID = 0x991, WMI_TOF_GET_CAPABILITIES_CMDID = 0x992, WMI_TOF_SET_LCR_CMDID = 0x993, WMI_TOF_SET_LCI_CMDID = 0x994, WMI_TOF_CFG_RESPONDER_CMDID = 0x996, WMI_TOF_SET_TX_RX_OFFSET_CMDID = 0x997, WMI_TOF_GET_TX_RX_OFFSET_CMDID = 0x998, WMI_TOF_CHANNEL_INFO_CMDID = 0x999, WMI_GET_RF_SECTOR_PARAMS_CMDID = 0x9A0, WMI_SET_RF_SECTOR_PARAMS_CMDID = 0x9A1, WMI_GET_SELECTED_RF_SECTOR_INDEX_CMDID = 0x9A2, WMI_SET_SELECTED_RF_SECTOR_INDEX_CMDID = 0x9A3, WMI_SET_RF_SECTOR_ON_CMDID = 0x9A4, WMI_PRIO_TX_SECTORS_ORDER_CMDID = 0x9A5, WMI_PRIO_TX_SECTORS_NUMBER_CMDID = 0x9A6, WMI_PRIO_TX_SECTORS_SET_DEFAULT_CFG_CMDID = 0x9A7, /* deprecated */ WMI_BF_CONTROL_CMDID = 0x9AA, WMI_BF_CONTROL_EX_CMDID = 0x9AB, WMI_TX_STATUS_RING_ADD_CMDID = 0x9C0, WMI_RX_STATUS_RING_ADD_CMDID = 0x9C1, WMI_TX_DESC_RING_ADD_CMDID = 0x9C2, WMI_RX_DESC_RING_ADD_CMDID = 0x9C3, WMI_BCAST_DESC_RING_ADD_CMDID = 0x9C4, WMI_CFG_DEF_RX_OFFLOAD_CMDID = 0x9C5, WMI_SCHEDULING_SCHEME_CMDID = 0xA01, WMI_FIXED_SCHEDULING_CONFIG_CMDID = 0xA02, WMI_ENABLE_FIXED_SCHEDULING_CMDID = 0xA03, WMI_SET_MULTI_DIRECTED_OMNIS_CONFIG_CMDID = 0xA04, WMI_SET_LONG_RANGE_CONFIG_CMDID = 0xA05, WMI_GET_ASSOC_LIST_CMDID = 0xA06, WMI_GET_CCA_INDICATIONS_CMDID = 0xA07, WMI_SET_CCA_INDICATIONS_BI_AVG_NUM_CMDID = 0xA08, WMI_INTERNAL_FW_IOCTL_CMDID = 0xA0B, WMI_LINK_STATS_CMDID = 0xA0C, WMI_SET_GRANT_MCS_CMDID = 0xA0E, WMI_SET_AP_SLOT_SIZE_CMDID = 0xA0F, WMI_SET_VRING_PRIORITY_WEIGHT_CMDID = 0xA10, WMI_SET_VRING_PRIORITY_CMDID = 0xA11, WMI_RBUFCAP_CFG_CMDID = 0xA12, WMI_TEMP_SENSE_ALL_CMDID = 0xA13, WMI_SET_MAC_ADDRESS_CMDID = 0xF003, WMI_ABORT_SCAN_CMDID = 0xF007, WMI_SET_PROMISCUOUS_MODE_CMDID = 0xF041, /* deprecated */ WMI_GET_PMK_CMDID = 0xF048, WMI_SET_PASSPHRASE_CMDID = 0xF049, /* deprecated */ WMI_SEND_ASSOC_RES_CMDID = 0xF04A, /* deprecated */ WMI_SET_ASSOC_REQ_RELAY_CMDID = 0xF04B, WMI_MAC_ADDR_REQ_CMDID = 0xF04D, WMI_FW_VER_CMDID = 0xF04E, WMI_PMC_CMDID = 0xF04F, }; /* WMI_CONNECT_CMDID */ enum wmi_network_type { WMI_NETTYPE_INFRA = 0x01, WMI_NETTYPE_ADHOC = 0x02, WMI_NETTYPE_ADHOC_CREATOR = 0x04, WMI_NETTYPE_AP = 0x10, WMI_NETTYPE_P2P = 0x20, /* PCIE over 60g */ WMI_NETTYPE_WBE = 0x40, }; enum wmi_dot11_auth_mode { WMI_AUTH11_OPEN = 0x01, WMI_AUTH11_SHARED = 0x02, WMI_AUTH11_LEAP = 0x04, WMI_AUTH11_WSC = 0x08, }; enum wmi_auth_mode { WMI_AUTH_NONE = 0x01, WMI_AUTH_WPA = 0x02, WMI_AUTH_WPA2 = 0x04, WMI_AUTH_WPA_PSK = 0x08, WMI_AUTH_WPA2_PSK = 0x10, WMI_AUTH_WPA_CCKM = 0x20, WMI_AUTH_WPA2_CCKM = 0x40, }; enum wmi_crypto_type { WMI_CRYPT_NONE = 0x01, WMI_CRYPT_AES_GCMP = 0x20, }; enum wmi_connect_ctrl_flag_bits { WMI_CONNECT_ASSOC_POLICY_USER = 0x01, WMI_CONNECT_SEND_REASSOC = 0x02, WMI_CONNECT_IGNORE_WPA_GROUP_CIPHER = 0x04, WMI_CONNECT_PROFILE_MATCH_DONE = 0x08, WMI_CONNECT_IGNORE_AAC_BEACON = 0x10, WMI_CONNECT_CSA_FOLLOW_BSS = 0x20, WMI_CONNECT_DO_WPA_OFFLOAD = 0x40, WMI_CONNECT_DO_NOT_DEAUTH = 0x80, }; #define WMI_MAX_SSID_LEN (32) enum wmi_channel { WMI_CHANNEL_1 = 0x00, WMI_CHANNEL_2 = 0x01, WMI_CHANNEL_3 = 0x02, WMI_CHANNEL_4 = 0x03, WMI_CHANNEL_5 = 0x04, WMI_CHANNEL_6 = 0x05, WMI_CHANNEL_9 = 0x06, WMI_CHANNEL_10 = 0x07, WMI_CHANNEL_11 = 0x08, WMI_CHANNEL_12 = 0x09, }; /* WMI_CONNECT_CMDID */ struct wmi_connect_cmd { u8 network_type; u8 dot11_auth_mode; u8 auth_mode; u8 pairwise_crypto_type; u8 pairwise_crypto_len; u8 group_crypto_type; u8 group_crypto_len; u8 ssid_len; u8 ssid[WMI_MAX_SSID_LEN]; /* enum wmi_channel WMI_CHANNEL_1..WMI_CHANNEL_6; for EDMG this is * the primary channel number */ u8 channel; /* enum wmi_channel WMI_CHANNEL_9..WMI_CHANNEL_12 */ u8 edmg_channel; u8 bssid[WMI_MAC_LEN]; __le32 ctrl_flags; u8 dst_mac[WMI_MAC_LEN]; u8 reserved1[2]; } __packed; /* WMI_DISCONNECT_STA_CMDID */ struct wmi_disconnect_sta_cmd { u8 dst_mac[WMI_MAC_LEN]; __le16 disconnect_reason; } __packed; #define WMI_MAX_KEY_INDEX (3) #define WMI_MAX_KEY_LEN (32) #define WMI_PASSPHRASE_LEN (64) /* WMI_SET_PASSPHRASE_CMDID */ struct wmi_set_passphrase_cmd { u8 ssid[WMI_MAX_SSID_LEN]; u8 passphrase[WMI_PASSPHRASE_LEN]; u8 ssid_len; u8 passphrase_len; } __packed; /* WMI_ADD_CIPHER_KEY_CMDID */ enum wmi_key_usage { WMI_KEY_USE_PAIRWISE = 0x00, WMI_KEY_USE_RX_GROUP = 0x01, WMI_KEY_USE_TX_GROUP = 0x02, WMI_KEY_USE_STORE_PTK = 0x03, WMI_KEY_USE_APPLY_PTK = 0x04, }; struct wmi_add_cipher_key_cmd { u8 key_index; u8 key_type; /* enum wmi_key_usage */ u8 key_usage; u8 key_len; /* key replay sequence counter */ u8 key_rsc[8]; u8 key[WMI_MAX_KEY_LEN]; /* Additional Key Control information */ u8 key_op_ctrl; u8 mac[WMI_MAC_LEN]; } __packed; /* WMI_DELETE_CIPHER_KEY_CMDID */ struct wmi_delete_cipher_key_cmd { u8 key_index; u8 mac[WMI_MAC_LEN]; } __packed; /* WMI_START_SCAN_CMDID * * Start L1 scan operation * * Returned events: * - WMI_RX_MGMT_PACKET_EVENTID - for every probe resp. * - WMI_SCAN_COMPLETE_EVENTID */ enum wmi_scan_type { WMI_ACTIVE_SCAN = 0x00, WMI_SHORT_SCAN = 0x01, WMI_PASSIVE_SCAN = 0x02, WMI_DIRECT_SCAN = 0x03, WMI_LONG_SCAN = 0x04, }; /* WMI_START_SCAN_CMDID */ struct wmi_start_scan_cmd { u8 direct_scan_mac_addr[WMI_MAC_LEN]; /* run scan with discovery beacon. Relevant for ACTIVE scan only. */ u8 discovery_mode; u8 reserved; /* Max duration in the home channel(ms) */ __le32 dwell_time; /* Time interval between scans (ms) */ __le32 force_scan_interval; /* enum wmi_scan_type */ u8 scan_type; /* how many channels follow */ u8 num_channels; /* channels ID's: * 0 - 58320 MHz * 1 - 60480 MHz * 2 - 62640 MHz */ struct { u8 channel; u8 reserved; } channel_list[]; } __packed; #define WMI_MAX_PNO_SSID_NUM (16) #define WMI_MAX_CHANNEL_NUM (6) #define WMI_MAX_PLANS_NUM (2) /* WMI_START_SCHED_SCAN_CMDID */ struct wmi_sched_scan_ssid_match { u8 ssid_len; u8 ssid[WMI_MAX_SSID_LEN]; s8 rssi_threshold; /* boolean */ u8 add_ssid_to_probe; u8 reserved; } __packed; /* WMI_START_SCHED_SCAN_CMDID */ struct wmi_sched_scan_plan { __le16 interval_sec; __le16 num_of_iterations; } __packed; /* WMI_START_SCHED_SCAN_CMDID */ struct wmi_start_sched_scan_cmd { struct wmi_sched_scan_ssid_match ssid_for_match[WMI_MAX_PNO_SSID_NUM]; u8 num_of_ssids; s8 min_rssi_threshold; u8 channel_list[WMI_MAX_CHANNEL_NUM]; u8 num_of_channels; u8 reserved; __le16 initial_delay_sec; struct wmi_sched_scan_plan scan_plans[WMI_MAX_PLANS_NUM]; } __packed; /* WMI_FT_AUTH_CMDID */ struct wmi_ft_auth_cmd { u8 bssid[WMI_MAC_LEN]; /* enum wmi_channel */ u8 channel; /* enum wmi_channel */ u8 edmg_channel; u8 reserved[4]; } __packed; /* WMI_FT_REASSOC_CMDID */ struct wmi_ft_reassoc_cmd { u8 bssid[WMI_MAC_LEN]; u8 reserved[2]; } __packed; /* WMI_UPDATE_FT_IES_CMDID */ struct wmi_update_ft_ies_cmd { /* Length of the FT IEs */ __le16 ie_len; u8 reserved[2]; u8 ie_info[]; } __packed; /* WMI_SET_PROBED_SSID_CMDID */ #define MAX_PROBED_SSID_INDEX (3) enum wmi_ssid_flag { /* disables entry */ WMI_SSID_FLAG_DISABLE = 0x00, /* probes specified ssid */ WMI_SSID_FLAG_SPECIFIC = 0x01, /* probes for any ssid */ WMI_SSID_FLAG_ANY = 0x02, }; struct wmi_probed_ssid_cmd { /* 0 to MAX_PROBED_SSID_INDEX */ u8 entry_index; /* enum wmi_ssid_flag */ u8 flag; u8 ssid_len; u8 ssid[WMI_MAX_SSID_LEN]; } __packed; /* WMI_SET_APPIE_CMDID * Add Application specified IE to a management frame */ #define WMI_MAX_IE_LEN (1024) /* Frame Types */ enum wmi_mgmt_frame_type { WMI_FRAME_BEACON = 0x00, WMI_FRAME_PROBE_REQ = 0x01, WMI_FRAME_PROBE_RESP = 0x02, WMI_FRAME_ASSOC_REQ = 0x03, WMI_FRAME_ASSOC_RESP = 0x04, WMI_NUM_MGMT_FRAME = 0x05, }; struct wmi_set_appie_cmd { /* enum wmi_mgmt_frame_type */ u8 mgmt_frm_type; u8 reserved; /* Length of the IE to be added to MGMT frame */ __le16 ie_len; u8 ie_info[]; } __packed; /* WMI_PXMT_RANGE_CFG_CMDID */ struct wmi_pxmt_range_cfg_cmd { u8 dst_mac[WMI_MAC_LEN]; __le16 range; } __packed; /* WMI_PXMT_SNR2_RANGE_CFG_CMDID */ struct wmi_pxmt_snr2_range_cfg_cmd { s8 snr2range_arr[2]; } __packed; /* WMI_RADAR_GENERAL_CONFIG_CMDID */ struct wmi_radar_general_config_cmd { /* Number of pulses (CIRs) in FW FIFO to initiate pulses transfer * from FW to Host */ __le32 fifo_watermark; /* In unit of us, in the range [100, 1000000] */ __le32 t_burst; /* Valid in the range [1, 32768], 0xFFFF means infinite */ __le32 n_bursts; /* In unit of 330Mhz clk, in the range [4, 2000]*330 */ __le32 t_pulse; /* In the range of [1,4096] */ __le16 n_pulses; /* Number of taps after cTap per CIR */ __le16 n_samples; /* Offset from the main tap (0 = zero-distance). In the range of [0, * 255] */ u8 first_sample_offset; /* Number of Pulses to average, 1, 2, 4, 8 */ u8 pulses_to_avg; /* Number of adjacent taps to average, 1, 2, 4, 8 */ u8 samples_to_avg; /* The index to config general params */ u8 general_index; u8 reserved[4]; } __packed; /* WMI_RADAR_CONFIG_SELECT_CMDID */ struct wmi_radar_config_select_cmd { /* Select the general params index to use */ u8 general_index; u8 reserved[3]; /* 0 means don't update burst_active_vector */ __le32 burst_active_vector; /* 0 means don't update pulse_active_vector */ __le32 pulse_active_vector; } __packed; /* WMI_RADAR_PARAMS_CONFIG_CMDID */ struct wmi_radar_params_config_cmd { /* The burst index selected to config */ u8 burst_index; /* 0-not active, 1-active */ u8 burst_en; /* The pulse index selected to config */ u8 pulse_index; /* 0-not active, 1-active */ u8 pulse_en; /* TX RF to use on current pulse */ u8 tx_rfc_idx; u8 tx_sector; /* Offset from calibrated value.(expected to be 0)(value is row in * Gain-LUT, not dB) */ s8 tx_rf_gain_comp; /* expected to be 0 */ s8 tx_bb_gain_comp; /* RX RF to use on current pulse */ u8 rx_rfc_idx; u8 rx_sector; /* Offset from calibrated value.(expected to be 0)(value is row in * Gain-LUT, not dB) */ s8 rx_rf_gain_comp; /* Value in dB.(expected to be 0) */ s8 rx_bb_gain_comp; /* Offset from calibrated value.(expected to be 0) */ s8 rx_timing_offset; u8 reserved[3]; } __packed; /* WMI_RADAR_SET_MODE_CMDID */ struct wmi_radar_set_mode_cmd { /* 0-disable/1-enable */ u8 enable; /* enum wmi_channel */ u8 channel; /* In the range of [0,7], 0xff means use default */ u8 tx_rfc_idx; /* In the range of [0,7], 0xff means use default */ u8 rx_rfc_idx; } __packed; /* WMI_RADAR_CONTROL_CMDID */ struct wmi_radar_control_cmd { /* 0-stop/1-start */ u8 start; u8 reserved[3]; } __packed; /* WMI_RADAR_PCI_CONTROL_CMDID */ struct wmi_radar_pci_control_cmd { /* pcie host buffer start address */ __le64 base_addr; /* pcie host control block address */ __le64 control_block_addr; /* pcie host buffer size */ __le32 buffer_size; __le32 reserved; } __packed; /* WMI_RF_MGMT_CMDID */ enum wmi_rf_mgmt_type { WMI_RF_MGMT_W_DISABLE = 0x00, WMI_RF_MGMT_W_ENABLE = 0x01, WMI_RF_MGMT_GET_STATUS = 0x02, }; /* WMI_BF_CONTROL_CMDID */ enum wmi_bf_triggers { WMI_BF_TRIGGER_RS_MCS1_TH_FAILURE = 0x01, WMI_BF_TRIGGER_RS_MCS1_NO_BACK_FAILURE = 0x02, WMI_BF_TRIGGER_MAX_CTS_FAILURE_IN_TXOP = 0x04, WMI_BF_TRIGGER_MAX_BACK_FAILURE = 0x08, WMI_BF_TRIGGER_FW = 0x10, WMI_BF_TRIGGER_MAX_CTS_FAILURE_IN_KEEP_ALIVE = 0x20, WMI_BF_TRIGGER_AOA = 0x40, WMI_BF_TRIGGER_MAX_CTS_FAILURE_IN_UPM = 0x80, }; /* WMI_RF_MGMT_CMDID */ struct wmi_rf_mgmt_cmd { __le32 rf_mgmt_type; } __packed; /* WMI_CORR_MEASURE_CMDID */ struct wmi_corr_measure_cmd { __le32 freq_mhz; __le32 length_samples; __le32 iterations; } __packed; /* WMI_SET_SSID_CMDID */ struct wmi_set_ssid_cmd { __le32 ssid_len; u8 ssid[WMI_MAX_SSID_LEN]; } __packed; /* WMI_SET_PCP_CHANNEL_CMDID */ struct wmi_set_pcp_channel_cmd { u8 channel; u8 reserved[3]; } __packed; /* WMI_BCON_CTRL_CMDID */ struct wmi_bcon_ctrl_cmd { __le16 bcon_interval; __le16 frag_num; __le64 ss_mask; u8 network_type; u8 pcp_max_assoc_sta; u8 disable_sec_offload; u8 disable_sec; u8 hidden_ssid; u8 is_go; /* A-BFT length override if non-0 */ u8 abft_len; u8 reserved; } __packed; /* WMI_PORT_ALLOCATE_CMDID */ enum wmi_port_role { WMI_PORT_STA = 0x00, WMI_PORT_PCP = 0x01, WMI_PORT_AP = 0x02, WMI_PORT_P2P_DEV = 0x03, WMI_PORT_P2P_CLIENT = 0x04, WMI_PORT_P2P_GO = 0x05, }; /* WMI_PORT_ALLOCATE_CMDID */ struct wmi_port_allocate_cmd { u8 mac[WMI_MAC_LEN]; u8 port_role; u8 mid; } __packed; /* WMI_PORT_DELETE_CMDID */ struct wmi_port_delete_cmd { u8 mid; u8 reserved[3]; } __packed; /* WMI_TRAFFIC_SUSPEND_CMD wakeup trigger bit mask values */ enum wmi_wakeup_trigger { WMI_WAKEUP_TRIGGER_UCAST = 0x01, WMI_WAKEUP_TRIGGER_BCAST = 0x02, }; /* WMI_TRAFFIC_SUSPEND_CMDID */ struct wmi_traffic_suspend_cmd { /* Bit vector: bit[0] - wake on Unicast, bit[1] - wake on Broadcast */ u8 wakeup_trigger; } __packed; /* WMI_P2P_CFG_CMDID */ enum wmi_discovery_mode { WMI_DISCOVERY_MODE_NON_OFFLOAD = 0x00, WMI_DISCOVERY_MODE_OFFLOAD = 0x01, WMI_DISCOVERY_MODE_PEER2PEER = 0x02, }; struct wmi_p2p_cfg_cmd { /* enum wmi_discovery_mode */ u8 discovery_mode; u8 channel; /* base to listen/search duration calculation */ __le16 bcon_interval; } __packed; /* WMI_POWER_MGMT_CFG_CMDID */ enum wmi_power_source_type { WMI_POWER_SOURCE_BATTERY = 0x00, WMI_POWER_SOURCE_OTHER = 0x01, }; struct wmi_power_mgmt_cfg_cmd { /* enum wmi_power_source_type */ u8 power_source; u8 reserved[3]; } __packed; /* WMI_PCP_START_CMDID */ enum wmi_ap_sme_offload_mode { /* Full AP SME in FW */ WMI_AP_SME_OFFLOAD_FULL = 0x00, /* Probe AP SME in FW */ WMI_AP_SME_OFFLOAD_PARTIAL = 0x01, /* AP SME in host */ WMI_AP_SME_OFFLOAD_NONE = 0x02, }; /* WMI_PCP_START_CMDID */ struct wmi_pcp_start_cmd { __le16 bcon_interval; u8 pcp_max_assoc_sta; u8 hidden_ssid; u8 is_go; /* enum wmi_channel WMI_CHANNEL_9..WMI_CHANNEL_12 */ u8 edmg_channel; u8 raw_mode; u8 reserved[3]; /* A-BFT length override if non-0 */ u8 abft_len; /* enum wmi_ap_sme_offload_mode_e */ u8 ap_sme_offload_mode; u8 network_type; /* enum wmi_channel WMI_CHANNEL_1..WMI_CHANNEL_6; for EDMG this is * the primary channel number */ u8 channel; u8 disable_sec_offload; u8 disable_sec; } __packed; /* WMI_SW_TX_REQ_CMDID */ struct wmi_sw_tx_req_cmd { u8 dst_mac[WMI_MAC_LEN]; __le16 len; u8 payload[]; } __packed; /* WMI_SW_TX_REQ_EXT_CMDID */ struct wmi_sw_tx_req_ext_cmd { u8 dst_mac[WMI_MAC_LEN]; __le16 len; __le16 duration_ms; /* Channel to use, 0xFF for currently active channel */ u8 channel; u8 reserved[5]; u8 payload[]; } __packed; /* WMI_VRING_SWITCH_TIMING_CONFIG_CMDID */ struct wmi_vring_switch_timing_config_cmd { /* Set vring timing configuration: * * defined interval for vring switch */ __le32 interval_usec; /* vring inactivity threshold */ __le32 idle_th_usec; } __packed; struct wmi_sw_ring_cfg { __le64 ring_mem_base; __le16 ring_size; __le16 max_mpdu_size; } __packed; /* wmi_vring_cfg_schd */ struct wmi_vring_cfg_schd { __le16 priority; __le16 timeslot_us; } __packed; enum wmi_vring_cfg_encap_trans_type { WMI_VRING_ENC_TYPE_802_3 = 0x00, WMI_VRING_ENC_TYPE_NATIVE_WIFI = 0x01, WMI_VRING_ENC_TYPE_NONE = 0x02, }; enum wmi_vring_cfg_ds_cfg { WMI_VRING_DS_PBSS = 0x00, WMI_VRING_DS_STATION = 0x01, WMI_VRING_DS_AP = 0x02, WMI_VRING_DS_ADDR4 = 0x03, }; enum wmi_vring_cfg_nwifi_ds_trans_type { WMI_NWIFI_TX_TRANS_MODE_NO = 0x00, WMI_NWIFI_TX_TRANS_MODE_AP2PBSS = 0x01, WMI_NWIFI_TX_TRANS_MODE_STA2PBSS = 0x02, }; enum wmi_vring_cfg_schd_params_priority { WMI_SCH_PRIO_REGULAR = 0x00, WMI_SCH_PRIO_HIGH = 0x01, }; #define CIDXTID_EXTENDED_CID_TID (0xFF) #define CIDXTID_CID_POS (0) #define CIDXTID_CID_LEN (4) #define CIDXTID_CID_MSK (0xF) #define CIDXTID_TID_POS (4) #define CIDXTID_TID_LEN (4) #define CIDXTID_TID_MSK (0xF0) #define VRING_CFG_MAC_CTRL_LIFETIME_EN_POS (0) #define VRING_CFG_MAC_CTRL_LIFETIME_EN_LEN (1) #define VRING_CFG_MAC_CTRL_LIFETIME_EN_MSK (0x1) #define VRING_CFG_MAC_CTRL_AGGR_EN_POS (1) #define VRING_CFG_MAC_CTRL_AGGR_EN_LEN (1) #define VRING_CFG_MAC_CTRL_AGGR_EN_MSK (0x2) #define VRING_CFG_TO_RESOLUTION_VALUE_POS (0) #define VRING_CFG_TO_RESOLUTION_VALUE_LEN (6) #define VRING_CFG_TO_RESOLUTION_VALUE_MSK (0x3F) struct wmi_vring_cfg { struct wmi_sw_ring_cfg tx_sw_ring; /* 0-23 vrings */ u8 ringid; /* Used for cid less than 8. For higher cid set * CIDXTID_EXTENDED_CID_TID here and use cid and tid members instead */ u8 cidxtid; u8 encap_trans_type; /* 802.3 DS cfg */ u8 ds_cfg; u8 nwifi_ds_trans_type; u8 mac_ctrl; u8 to_resolution; u8 agg_max_wsize; struct wmi_vring_cfg_schd schd_params; /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */ u8 cid; /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */ u8 tid; /* Update the vring's priority for Qos purpose. Set to * WMI_QOS_DEFAULT_PRIORITY to use MID's QoS priority */ u8 qos_priority; u8 reserved; } __packed; enum wmi_vring_cfg_cmd_action { WMI_VRING_CMD_ADD = 0x00, WMI_VRING_CMD_MODIFY = 0x01, WMI_VRING_CMD_DELETE = 0x02, }; /* WMI_VRING_CFG_CMDID */ struct wmi_vring_cfg_cmd { __le32 action; struct wmi_vring_cfg vring_cfg; } __packed; struct wmi_bcast_vring_cfg { struct wmi_sw_ring_cfg tx_sw_ring; /* 0-23 vrings */ u8 ringid; u8 encap_trans_type; /* 802.3 DS cfg */ u8 ds_cfg; u8 nwifi_ds_trans_type; } __packed; /* WMI_BCAST_VRING_CFG_CMDID */ struct wmi_bcast_vring_cfg_cmd { __le32 action; struct wmi_bcast_vring_cfg vring_cfg; } __packed; struct wmi_edma_ring_cfg { __le64 ring_mem_base; /* size in number of items */ __le16 ring_size; u8 ring_id; u8 reserved; } __packed; enum wmi_rx_msg_type { WMI_RX_MSG_TYPE_COMPRESSED = 0x00, WMI_RX_MSG_TYPE_EXTENDED = 0x01, }; enum wmi_ring_add_irq_mode { /* Backwards compatibility * for DESC ring - interrupt disabled * for STATUS ring - interrupt enabled */ WMI_RING_ADD_IRQ_MODE_BWC = 0x00, WMI_RING_ADD_IRQ_MODE_DISABLE = 0x01, WMI_RING_ADD_IRQ_MODE_ENABLE = 0x02, }; struct wmi_tx_status_ring_add_cmd { struct wmi_edma_ring_cfg ring_cfg; u8 irq_index; /* wmi_ring_add_irq_mode */ u8 irq_mode; u8 reserved[2]; } __packed; struct wmi_rx_status_ring_add_cmd { struct wmi_edma_ring_cfg ring_cfg; u8 irq_index; /* wmi_rx_msg_type */ u8 rx_msg_type; u8 reserved[2]; } __packed; struct wmi_cfg_def_rx_offload_cmd { __le16 max_msdu_size; __le16 max_rx_pl_per_desc; u8 decap_trans_type; u8 l2_802_3_offload_ctrl; u8 l2_nwifi_offload_ctrl; u8 vlan_id; u8 nwifi_ds_trans_type; u8 l3_l4_ctrl; u8 reserved[6]; } __packed; struct wmi_tx_desc_ring_add_cmd { struct wmi_edma_ring_cfg ring_cfg; __le16 max_msdu_size; /* Correlated status ring (0-63) */ u8 status_ring_id; u8 cid; u8 tid; u8 encap_trans_type; u8 mac_ctrl; u8 to_resolution; u8 agg_max_wsize; u8 irq_index; /* wmi_ring_add_irq_mode */ u8 irq_mode; u8 reserved; struct wmi_vring_cfg_schd schd_params; } __packed; struct wmi_rx_desc_ring_add_cmd { struct wmi_edma_ring_cfg ring_cfg; u8 irq_index; /* 0-63 status rings */ u8 status_ring_id; u8 reserved[2]; __le64 sw_tail_host_addr; } __packed; struct wmi_bcast_desc_ring_add_cmd { struct wmi_edma_ring_cfg ring_cfg; __le16 max_msdu_size; /* Correlated status ring (0-63) */ u8 status_ring_id; u8 encap_trans_type; u8 reserved[4]; } __packed; /* WMI_LO_POWER_CALIB_FROM_OTP_CMDID */ struct wmi_lo_power_calib_from_otp_cmd { /* index to read from OTP. zero based */ u8 index; u8 reserved[3]; } __packed; /* WMI_LO_POWER_CALIB_FROM_OTP_EVENTID */ struct wmi_lo_power_calib_from_otp_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_RING_BA_EN_CMDID */ struct wmi_ring_ba_en_cmd { u8 ring_id; u8 agg_max_wsize; __le16 ba_timeout; u8 amsdu; u8 reserved[3]; } __packed; /* WMI_RING_BA_DIS_CMDID */ struct wmi_ring_ba_dis_cmd { u8 ring_id; u8 reserved; __le16 reason; } __packed; /* WMI_NOTIFY_REQ_CMDID */ struct wmi_notify_req_cmd { u8 cid; u8 year; u8 month; u8 day; __le32 interval_usec; u8 hour; u8 minute; u8 second; u8 miliseconds; } __packed; /* WMI_CFG_RX_CHAIN_CMDID */ enum wmi_sniffer_cfg_mode { WMI_SNIFFER_OFF = 0x00, WMI_SNIFFER_ON = 0x01, }; /* WMI_SILENT_RSSI_TABLE */ enum wmi_silent_rssi_table { RF_TEMPERATURE_CALIB_DEFAULT_DB = 0x00, RF_TEMPERATURE_CALIB_HIGH_POWER_DB = 0x01, }; /* WMI_SILENT_RSSI_STATUS */ enum wmi_silent_rssi_status { SILENT_RSSI_SUCCESS = 0x00, SILENT_RSSI_FAILURE = 0x01, }; /* WMI_SET_ACTIVE_SILENT_RSSI_TABLE_CMDID */ struct wmi_set_active_silent_rssi_table_cmd { /* enum wmi_silent_rssi_table */ __le32 table; } __packed; enum wmi_sniffer_cfg_phy_info_mode { WMI_SNIFFER_PHY_INFO_DISABLED = 0x00, WMI_SNIFFER_PHY_INFO_ENABLED = 0x01, }; enum wmi_sniffer_cfg_phy_support { WMI_SNIFFER_CP = 0x00, WMI_SNIFFER_DP = 0x01, WMI_SNIFFER_BOTH_PHYS = 0x02, }; /* wmi_sniffer_cfg */ struct wmi_sniffer_cfg { /* enum wmi_sniffer_cfg_mode */ __le32 mode; /* enum wmi_sniffer_cfg_phy_info_mode */ __le32 phy_info_mode; /* enum wmi_sniffer_cfg_phy_support */ __le32 phy_support; u8 channel; u8 reserved[3]; } __packed; enum wmi_cfg_rx_chain_cmd_action { WMI_RX_CHAIN_ADD = 0x00, WMI_RX_CHAIN_DEL = 0x01, }; enum wmi_cfg_rx_chain_cmd_decap_trans_type { WMI_DECAP_TYPE_802_3 = 0x00, WMI_DECAP_TYPE_NATIVE_WIFI = 0x01, WMI_DECAP_TYPE_NONE = 0x02, }; enum wmi_cfg_rx_chain_cmd_nwifi_ds_trans_type { WMI_NWIFI_RX_TRANS_MODE_NO = 0x00, WMI_NWIFI_RX_TRANS_MODE_PBSS2AP = 0x01, WMI_NWIFI_RX_TRANS_MODE_PBSS2STA = 0x02, }; enum wmi_cfg_rx_chain_cmd_reorder_type { WMI_RX_HW_REORDER = 0x00, WMI_RX_SW_REORDER = 0x01, }; #define L2_802_3_OFFLOAD_CTRL_VLAN_TAG_INSERTION_POS (0) #define L2_802_3_OFFLOAD_CTRL_VLAN_TAG_INSERTION_LEN (1) #define L2_802_3_OFFLOAD_CTRL_VLAN_TAG_INSERTION_MSK (0x1) #define L2_802_3_OFFLOAD_CTRL_SNAP_KEEP_POS (1) #define L2_802_3_OFFLOAD_CTRL_SNAP_KEEP_LEN (1) #define L2_802_3_OFFLOAD_CTRL_SNAP_KEEP_MSK (0x2) #define L2_NWIFI_OFFLOAD_CTRL_REMOVE_QOS_POS (0) #define L2_NWIFI_OFFLOAD_CTRL_REMOVE_QOS_LEN (1) #define L2_NWIFI_OFFLOAD_CTRL_REMOVE_QOS_MSK (0x1) #define L2_NWIFI_OFFLOAD_CTRL_REMOVE_PN_POS (1) #define L2_NWIFI_OFFLOAD_CTRL_REMOVE_PN_LEN (1) #define L2_NWIFI_OFFLOAD_CTRL_REMOVE_PN_MSK (0x2) #define L3_L4_CTRL_IPV4_CHECKSUM_EN_POS (0) #define L3_L4_CTRL_IPV4_CHECKSUM_EN_LEN (1) #define L3_L4_CTRL_IPV4_CHECKSUM_EN_MSK (0x1) #define L3_L4_CTRL_TCPIP_CHECKSUM_EN_POS (1) #define L3_L4_CTRL_TCPIP_CHECKSUM_EN_LEN (1) #define L3_L4_CTRL_TCPIP_CHECKSUM_EN_MSK (0x2) #define RING_CTRL_OVERRIDE_PREFETCH_THRSH_POS (0) #define RING_CTRL_OVERRIDE_PREFETCH_THRSH_LEN (1) #define RING_CTRL_OVERRIDE_PREFETCH_THRSH_MSK (0x1) #define RING_CTRL_OVERRIDE_WB_THRSH_POS (1) #define RING_CTRL_OVERRIDE_WB_THRSH_LEN (1) #define RING_CTRL_OVERRIDE_WB_THRSH_MSK (0x2) #define RING_CTRL_OVERRIDE_ITR_THRSH_POS (2) #define RING_CTRL_OVERRIDE_ITR_THRSH_LEN (1) #define RING_CTRL_OVERRIDE_ITR_THRSH_MSK (0x4) #define RING_CTRL_OVERRIDE_HOST_THRSH_POS (3) #define RING_CTRL_OVERRIDE_HOST_THRSH_LEN (1) #define RING_CTRL_OVERRIDE_HOST_THRSH_MSK (0x8) /* WMI_CFG_RX_CHAIN_CMDID */ struct wmi_cfg_rx_chain_cmd { __le32 action; struct wmi_sw_ring_cfg rx_sw_ring; u8 mid; u8 decap_trans_type; u8 l2_802_3_offload_ctrl; u8 l2_nwifi_offload_ctrl; u8 vlan_id; u8 nwifi_ds_trans_type; u8 l3_l4_ctrl; u8 ring_ctrl; __le16 prefetch_thrsh; __le16 wb_thrsh; __le32 itr_value; __le16 host_thrsh; u8 reorder_type; u8 reserved; struct wmi_sniffer_cfg sniffer_cfg; __le16 max_rx_pl_per_desc; } __packed; /* WMI_RCP_ADDBA_RESP_CMDID */ struct wmi_rcp_addba_resp_cmd { /* Used for cid less than 8. For higher cid set * CIDXTID_EXTENDED_CID_TID here and use cid and tid members instead */ u8 cidxtid; u8 dialog_token; __le16 status_code; /* ieee80211_ba_parameterset field to send */ __le16 ba_param_set; __le16 ba_timeout; /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */ u8 cid; /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */ u8 tid; u8 reserved[2]; } __packed; /* WMI_RCP_ADDBA_RESP_EDMA_CMDID */ struct wmi_rcp_addba_resp_edma_cmd { u8 cid; u8 tid; u8 dialog_token; u8 reserved; __le16 status_code; /* ieee80211_ba_parameterset field to send */ __le16 ba_param_set; __le16 ba_timeout; u8 status_ring_id; /* wmi_cfg_rx_chain_cmd_reorder_type */ u8 reorder_type; } __packed; /* WMI_RCP_DELBA_CMDID */ struct wmi_rcp_delba_cmd { /* Used for cid less than 8. For higher cid set * CIDXTID_EXTENDED_CID_TID here and use cid and tid members instead */ u8 cidxtid; u8 reserved; __le16 reason; /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */ u8 cid; /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */ u8 tid; u8 reserved2[2]; } __packed; /* WMI_RCP_ADDBA_REQ_CMDID */ struct wmi_rcp_addba_req_cmd { /* Used for cid less than 8. For higher cid set * CIDXTID_EXTENDED_CID_TID here and use cid and tid members instead */ u8 cidxtid; u8 dialog_token; /* ieee80211_ba_parameterset field as it received */ __le16 ba_param_set; __le16 ba_timeout; /* ieee80211_ba_seqstrl field as it received */ __le16 ba_seq_ctrl; /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */ u8 cid; /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */ u8 tid; u8 reserved[2]; } __packed; /* WMI_SET_MAC_ADDRESS_CMDID */ struct wmi_set_mac_address_cmd { u8 mac[WMI_MAC_LEN]; u8 reserved[2]; } __packed; /* WMI_ECHO_CMDID * Check FW is alive * Returned event: WMI_ECHO_RSP_EVENTID */ struct wmi_echo_cmd { __le32 value; } __packed; /* WMI_DEEP_ECHO_CMDID * Check FW and uCode is alive * Returned event: WMI_DEEP_ECHO_RSP_EVENTID */ struct wmi_deep_echo_cmd { __le32 value; } __packed; /* WMI_RF_PWR_ON_DELAY_CMDID * set FW time parameters used through RF resetting * RF reset consists of bringing its power down for a period of time, then * bringing the power up * Returned event: WMI_RF_PWR_ON_DELAY_RSP_EVENTID */ struct wmi_rf_pwr_on_delay_cmd { /* time in usec the FW waits after bringing the RF PWR down, * set 0 for default */ __le16 down_delay_usec; /* time in usec the FW waits after bringing the RF PWR up, * set 0 for default */ __le16 up_delay_usec; } __packed; /* WMI_SET_HIGH_POWER_TABLE_PARAMS_CMDID * This API controls the Tx and Rx gain over temperature. * It controls the Tx D-type, Rx D-type and Rx E-type amplifiers. * It also controls the Tx gain index, by controlling the Rx to Tx gain index * offset. * The control is divided by 3 temperature values to 4 temperature ranges. * Each parameter uses its own temperature values. * Returned event: WMI_SET_HIGH_POWER_TABLE_PARAMS_EVENTID */ struct wmi_set_high_power_table_params_cmd { /* Temperature range for Tx D-type parameters */ u8 tx_dtype_temp[WMI_RF_DTYPE_LENGTH]; u8 reserved0; /* Tx D-type values to be used for each temperature range */ __le32 tx_dtype_conf[WMI_RF_DTYPE_CONF_LENGTH]; /* Temperature range for Tx E-type parameters */ u8 tx_etype_temp[WMI_RF_ETYPE_LENGTH]; u8 reserved1; /* Tx E-type values to be used for each temperature range. * The last 4 values of any range are the first 4 values of the next * range and so on */ __le32 tx_etype_conf[WMI_RF_ETYPE_CONF_LENGTH]; /* Temperature range for Rx D-type parameters */ u8 rx_dtype_temp[WMI_RF_DTYPE_LENGTH]; u8 reserved2; /* Rx D-type values to be used for each temperature range */ __le32 rx_dtype_conf[WMI_RF_DTYPE_CONF_LENGTH]; /* Temperature range for Rx E-type parameters */ u8 rx_etype_temp[WMI_RF_ETYPE_LENGTH]; u8 reserved3; /* Rx E-type values to be used for each temperature range. * The last 4 values of any range are the first 4 values of the next * range and so on */ __le32 rx_etype_conf[WMI_RF_ETYPE_CONF_LENGTH]; /* Temperature range for rx_2_tx_offs parameters */ u8 rx_2_tx_temp[WMI_RF_RX2TX_LENGTH]; u8 reserved4; /* Rx to Tx gain index offset */ s8 rx_2_tx_offs[WMI_RF_RX2TX_CONF_LENGTH]; } __packed; /* WMI_FIXED_SCHEDULING_UL_CONFIG_CMDID * This API sets rd parameter per mcs. * Relevant only in Fixed Scheduling mode. * Returned event: WMI_FIXED_SCHEDULING_UL_CONFIG_EVENTID */ struct wmi_fixed_scheduling_ul_config_cmd { /* Use mcs -1 to set for every mcs */ s8 mcs; /* Number of frames with rd bit set in a single virtual slot */ u8 rd_count_per_slot; u8 reserved[2]; } __packed; /* CMD: WMI_RF_XPM_READ_CMDID */ struct wmi_rf_xpm_read_cmd { u8 rf_id; u8 reserved[3]; /* XPM bit start address in range [0,8191]bits - rounded by FW to * multiple of 8bits */ __le32 xpm_bit_address; __le32 num_bytes; } __packed; /* CMD: WMI_RF_XPM_WRITE_CMDID */ struct wmi_rf_xpm_write_cmd { u8 rf_id; u8 reserved0[3]; /* XPM bit start address in range [0,8191]bits - rounded by FW to * multiple of 8bits */ __le32 xpm_bit_address; __le32 num_bytes; /* boolean flag indicating whether FW should verify the write * operation */ u8 verify; u8 reserved1[3]; /* actual size=num_bytes */ u8 data_bytes[]; } __packed; /* Possible modes for temperature measurement */ enum wmi_temperature_measure_mode { TEMPERATURE_USE_OLD_VALUE = 0x01, TEMPERATURE_MEASURE_NOW = 0x02, }; /* WMI_TEMP_SENSE_CMDID */ struct wmi_temp_sense_cmd { __le32 measure_baseband_en; __le32 measure_rf_en; __le32 measure_mode; } __packed; enum wmi_pmc_op { WMI_PMC_ALLOCATE = 0x00, WMI_PMC_RELEASE = 0x01, }; /* WMI_PMC_CMDID */ struct wmi_pmc_cmd { /* enum wmi_pmc_cmd_op_type */ u8 op; u8 reserved; __le16 ring_size; __le64 mem_base; } __packed; enum wmi_aoa_meas_type { WMI_AOA_PHASE_MEAS = 0x00, WMI_AOA_PHASE_AMP_MEAS = 0x01, }; /* WMI_AOA_MEAS_CMDID */ struct wmi_aoa_meas_cmd { u8 mac_addr[WMI_MAC_LEN]; /* channels IDs: * 0 - 58320 MHz * 1 - 60480 MHz * 2 - 62640 MHz */ u8 channel; /* enum wmi_aoa_meas_type */ u8 aoa_meas_type; __le32 meas_rf_mask; } __packed; /* WMI_SET_MGMT_RETRY_LIMIT_CMDID */ struct wmi_set_mgmt_retry_limit_cmd { /* MAC retransmit limit for mgmt frames */ u8 mgmt_retry_limit; /* alignment to 32b */ u8 reserved[3]; } __packed; /* Zones: HIGH, MAX, CRITICAL */ #define WMI_NUM_OF_TT_ZONES (3) struct wmi_tt_zone_limits { /* Above this temperature this zone is active */ u8 temperature_high; /* Below this temperature the adjacent lower zone is active */ u8 temperature_low; u8 reserved[2]; } __packed; /* Struct used for both configuration and status commands of thermal * throttling */ struct wmi_tt_data { /* Enable/Disable TT algorithm for baseband */ u8 bb_enabled; u8 reserved0[3]; /* Define zones for baseband */ struct wmi_tt_zone_limits bb_zones[WMI_NUM_OF_TT_ZONES]; /* Enable/Disable TT algorithm for radio */ u8 rf_enabled; u8 reserved1[3]; /* Define zones for all radio chips */ struct wmi_tt_zone_limits rf_zones[WMI_NUM_OF_TT_ZONES]; } __packed; /* WMI_SET_THERMAL_THROTTLING_CFG_CMDID */ struct wmi_set_thermal_throttling_cfg_cmd { /* Command data */ struct wmi_tt_data tt_data; } __packed; /* WMI_NEW_STA_CMDID */ struct wmi_new_sta_cmd { u8 dst_mac[WMI_MAC_LEN]; u8 aid; } __packed; /* WMI_DEL_STA_CMDID */ struct wmi_del_sta_cmd { u8 dst_mac[WMI_MAC_LEN]; __le16 disconnect_reason; } __packed; enum wmi_tof_burst_duration { WMI_TOF_BURST_DURATION_250_USEC = 2, WMI_TOF_BURST_DURATION_500_USEC = 3, WMI_TOF_BURST_DURATION_1_MSEC = 4, WMI_TOF_BURST_DURATION_2_MSEC = 5, WMI_TOF_BURST_DURATION_4_MSEC = 6, WMI_TOF_BURST_DURATION_8_MSEC = 7, WMI_TOF_BURST_DURATION_16_MSEC = 8, WMI_TOF_BURST_DURATION_32_MSEC = 9, WMI_TOF_BURST_DURATION_64_MSEC = 10, WMI_TOF_BURST_DURATION_128_MSEC = 11, WMI_TOF_BURST_DURATION_NO_PREFERENCES = 15, }; enum wmi_tof_session_start_flags { WMI_TOF_SESSION_START_FLAG_SECURED = 0x1, WMI_TOF_SESSION_START_FLAG_ASAP = 0x2, WMI_TOF_SESSION_START_FLAG_LCI_REQ = 0x4, WMI_TOF_SESSION_START_FLAG_LCR_REQ = 0x8, }; /* WMI_TOF_SESSION_START_CMDID */ struct wmi_ftm_dest_info { u8 channel; /* wmi_tof_session_start_flags_e */ u8 flags; u8 initial_token; u8 num_of_ftm_per_burst; u8 num_of_bursts_exp; /* wmi_tof_burst_duration_e */ u8 burst_duration; /* Burst Period indicate interval between two consecutive burst * instances, in units of 100 ms */ __le16 burst_period; u8 dst_mac[WMI_MAC_LEN]; u8 reserved; u8 num_burst_per_aoa_meas; } __packed; /* WMI_TOF_SESSION_START_CMDID */ struct wmi_tof_session_start_cmd { __le32 session_id; u8 reserved1; u8 aoa_type; __le16 num_of_dest; u8 reserved[4]; struct wmi_ftm_dest_info ftm_dest_info[]; } __packed; /* WMI_TOF_CFG_RESPONDER_CMDID */ struct wmi_tof_cfg_responder_cmd { u8 enable; u8 reserved[3]; } __packed; enum wmi_tof_channel_info_report_type { WMI_TOF_CHANNEL_INFO_TYPE_CIR = 0x1, WMI_TOF_CHANNEL_INFO_TYPE_RSSI = 0x2, WMI_TOF_CHANNEL_INFO_TYPE_SNR = 0x4, WMI_TOF_CHANNEL_INFO_TYPE_DEBUG_DATA = 0x8, WMI_TOF_CHANNEL_INFO_TYPE_VENDOR_SPECIFIC = 0x10, }; /* WMI_TOF_CHANNEL_INFO_CMDID */ struct wmi_tof_channel_info_cmd { /* wmi_tof_channel_info_report_type_e */ __le32 channel_info_report_request; } __packed; /* WMI_TOF_SET_TX_RX_OFFSET_CMDID */ struct wmi_tof_set_tx_rx_offset_cmd { /* TX delay offset */ __le32 tx_offset; /* RX delay offset */ __le32 rx_offset; /* Mask to define which RFs to configure. 0 means all RFs */ __le32 rf_mask; /* Offset to strongest tap of CIR */ __le32 precursor; } __packed; /* WMI_TOF_GET_TX_RX_OFFSET_CMDID */ struct wmi_tof_get_tx_rx_offset_cmd { /* rf index to read offsets from */ u8 rf_index; u8 reserved[3]; } __packed; /* WMI_FIXED_SCHEDULING_CONFIG_CMDID */ struct wmi_map_mcs_to_schd_params { u8 mcs; /* time in usec from start slot to start tx flow - default 15 */ u8 time_in_usec_before_initiate_tx; /* RD enable - if yes consider RD according to STA mcs */ u8 rd_enabled; u8 reserved; /* time in usec from start slot to stop vring */ __le16 time_in_usec_to_stop_vring; /* timeout to force flush from start of slot */ __le16 flush_to_in_usec; /* per mcs the mac buffer limit size in bytes */ __le32 mac_buff_size_in_bytes; } __packed; /* WMI_FIXED_SCHEDULING_CONFIG_COMPLETE_EVENTID */ struct wmi_fixed_scheduling_config_complete_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* This value exists for backwards compatibility only. * Do not use it in new commands. * Use dynamic arrays where possible. */ #define WMI_NUM_MCS (13) /* WMI_FIXED_SCHEDULING_CONFIG_CMDID */ struct wmi_fixed_scheduling_config_cmd { /* defaults in the SAS table */ struct wmi_map_mcs_to_schd_params mcs_to_schd_params_map[WMI_NUM_MCS]; /* default 150 uSec */ __le16 max_sta_rd_ppdu_duration_in_usec; /* default 300 uSec */ __le16 max_sta_grant_ppdu_duration_in_usec; /* default 1000 uSec */ __le16 assoc_slot_duration_in_usec; /* default 360 uSec */ __le16 virtual_slot_duration_in_usec; /* each this field value slots start with grant frame to the station * - default 2 */ u8 number_of_ap_slots_for_initiate_grant; u8 reserved[3]; } __packed; /* WMI_ENABLE_FIXED_SCHEDULING_CMDID */ struct wmi_enable_fixed_scheduling_cmd { __le32 reserved; } __packed; /* WMI_ENABLE_FIXED_SCHEDULING_COMPLETE_EVENTID */ struct wmi_enable_fixed_scheduling_complete_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_SET_MULTI_DIRECTED_OMNIS_CONFIG_CMDID */ struct wmi_set_multi_directed_omnis_config_cmd { /* number of directed omnis at destination AP */ u8 dest_ap_num_directed_omnis; u8 reserved[3]; } __packed; /* WMI_SET_MULTI_DIRECTED_OMNIS_CONFIG_EVENTID */ struct wmi_set_multi_directed_omnis_config_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_RADAR_GENERAL_CONFIG_EVENTID */ struct wmi_radar_general_config_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_RADAR_CONFIG_SELECT_EVENTID */ struct wmi_radar_config_select_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; /* In unit of bytes */ __le32 fifo_size; /* In unit of bytes */ __le32 pulse_size; } __packed; /* WMI_RADAR_PARAMS_CONFIG_EVENTID */ struct wmi_radar_params_config_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_RADAR_SET_MODE_EVENTID */ struct wmi_radar_set_mode_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_RADAR_CONTROL_EVENTID */ struct wmi_radar_control_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_RADAR_PCI_CONTROL_EVENTID */ struct wmi_radar_pci_control_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_SET_LONG_RANGE_CONFIG_CMDID */ struct wmi_set_long_range_config_cmd { __le32 reserved; } __packed; /* WMI_SET_LONG_RANGE_CONFIG_COMPLETE_EVENTID */ struct wmi_set_long_range_config_complete_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* payload max size is 1024 bytes: max event buffer size (1044) - WMI headers * (16) - prev struct field size (4) */ #define WMI_MAX_IOCTL_PAYLOAD_SIZE (1024) #define WMI_MAX_IOCTL_REPLY_PAYLOAD_SIZE (1024) #define WMI_MAX_INTERNAL_EVENT_PAYLOAD_SIZE (1024) enum wmi_internal_fw_ioctl_code { WMI_INTERNAL_FW_CODE_NONE = 0x0, WMI_INTERNAL_FW_CODE_QCOM = 0x1, }; /* WMI_INTERNAL_FW_IOCTL_CMDID */ struct wmi_internal_fw_ioctl_cmd { /* enum wmi_internal_fw_ioctl_code */ __le16 code; __le16 length; /* payload max size is WMI_MAX_IOCTL_PAYLOAD_SIZE * Must be the last member of the struct */ __le32 payload[]; } __packed; /* WMI_INTERNAL_FW_IOCTL_EVENTID */ struct wmi_internal_fw_ioctl_event { /* wmi_fw_status */ u8 status; u8 reserved; __le16 length; /* payload max size is WMI_MAX_IOCTL_REPLY_PAYLOAD_SIZE * Must be the last member of the struct */ __le32 payload[]; } __packed; /* WMI_INTERNAL_FW_EVENT_EVENTID */ struct wmi_internal_fw_event_event { __le16 id; __le16 length; /* payload max size is WMI_MAX_INTERNAL_EVENT_PAYLOAD_SIZE * Must be the last member of the struct */ __le32 payload[]; } __packed; /* WMI_SET_VRING_PRIORITY_WEIGHT_CMDID */ struct wmi_set_vring_priority_weight_cmd { /* Array of weights. Valid values are * WMI_QOS_MIN_DEFAULT_WEIGHT...WMI_QOS_MAX_WEIGHT. Weight #0 is * hard-coded WMI_QOS_MIN_WEIGHT. This array provide the weights * #1..#3 */ u8 weight[3]; u8 reserved; } __packed; /* WMI_SET_VRING_PRIORITY_CMDID */ struct wmi_vring_priority { u8 vring_idx; /* Weight index. Valid value is 0-3 */ u8 priority; u8 reserved[2]; } __packed; /* WMI_SET_VRING_PRIORITY_CMDID */ struct wmi_set_vring_priority_cmd { /* number of entries in vring_priority. Set to * WMI_QOS_SET_VIF_PRIORITY to update the VIF's priority, and there * will be only one entry in vring_priority */ u8 num_of_vrings; u8 reserved[3]; struct wmi_vring_priority vring_priority[]; } __packed; /* WMI_BF_CONTROL_CMDID - deprecated */ struct wmi_bf_control_cmd { /* wmi_bf_triggers */ __le32 triggers; u8 cid; /* DISABLED = 0, ENABLED = 1 , DRY_RUN = 2 */ u8 txss_mode; /* DISABLED = 0, ENABLED = 1, DRY_RUN = 2 */ u8 brp_mode; /* Max cts threshold (correspond to * WMI_BF_TRIGGER_MAX_CTS_FAILURE_IN_TXOP) */ u8 bf_trigger_max_cts_failure_thr; /* Max cts threshold in dense (correspond to * WMI_BF_TRIGGER_MAX_CTS_FAILURE_IN_TXOP) */ u8 bf_trigger_max_cts_failure_dense_thr; /* Max b-ack threshold (correspond to * WMI_BF_TRIGGER_MAX_BACK_FAILURE) */ u8 bf_trigger_max_back_failure_thr; /* Max b-ack threshold in dense (correspond to * WMI_BF_TRIGGER_MAX_BACK_FAILURE) */ u8 bf_trigger_max_back_failure_dense_thr; u8 reserved0; /* Wrong sectors threshold */ __le32 wrong_sector_bis_thr; /* BOOL to enable/disable long term trigger */ u8 long_term_enable; /* 1 = Update long term thresholds from the long_term_mbps_th_tbl and * long_term_trig_timeout_per_mcs arrays, 0 = Ignore */ u8 long_term_update_thr; /* Long term throughput threshold [Mbps] */ u8 long_term_mbps_th_tbl[WMI_NUM_MCS]; u8 reserved1; /* Long term timeout threshold table [msec] */ __le16 long_term_trig_timeout_per_mcs[WMI_NUM_MCS]; u8 reserved2[2]; } __packed; /* BF configuration for each MCS */ struct wmi_bf_control_ex_mcs { /* Long term throughput threshold [Mbps] */ u8 long_term_mbps_th_tbl; u8 reserved; /* Long term timeout threshold table [msec] */ __le16 long_term_trig_timeout_per_mcs; } __packed; /* WMI_BF_CONTROL_EX_CMDID */ struct wmi_bf_control_ex_cmd { /* wmi_bf_triggers */ __le32 triggers; /* enum wmi_edmg_tx_mode */ u8 tx_mode; /* DISABLED = 0, ENABLED = 1 , DRY_RUN = 2 */ u8 txss_mode; /* DISABLED = 0, ENABLED = 1, DRY_RUN = 2 */ u8 brp_mode; /* Max cts threshold (correspond to * WMI_BF_TRIGGER_MAX_CTS_FAILURE_IN_TXOP) */ u8 bf_trigger_max_cts_failure_thr; /* Max cts threshold in dense (correspond to * WMI_BF_TRIGGER_MAX_CTS_FAILURE_IN_TXOP) */ u8 bf_trigger_max_cts_failure_dense_thr; /* Max b-ack threshold (correspond to * WMI_BF_TRIGGER_MAX_BACK_FAILURE) */ u8 bf_trigger_max_back_failure_thr; /* Max b-ack threshold in dense (correspond to * WMI_BF_TRIGGER_MAX_BACK_FAILURE) */ u8 bf_trigger_max_back_failure_dense_thr; u8 reserved0; /* Wrong sectors threshold */ __le32 wrong_sector_bis_thr; /* BOOL to enable/disable long term trigger */ u8 long_term_enable; /* 1 = Update long term thresholds from the long_term_mbps_th_tbl and * long_term_trig_timeout_per_mcs arrays, 0 = Ignore */ u8 long_term_update_thr; u8 each_mcs_cfg_size; u8 reserved1; /* Configuration for each MCS */ struct wmi_bf_control_ex_mcs each_mcs_cfg[]; } __packed; /* WMI_LINK_STATS_CMD */ enum wmi_link_stats_action { WMI_LINK_STATS_SNAPSHOT = 0x00, WMI_LINK_STATS_PERIODIC = 0x01, WMI_LINK_STATS_STOP_PERIODIC = 0x02, }; /* WMI_LINK_STATS_EVENT record identifiers */ enum wmi_link_stats_record_type { WMI_LINK_STATS_TYPE_BASIC = 0x01, WMI_LINK_STATS_TYPE_GLOBAL = 0x02, }; /* WMI_LINK_STATS_CMDID */ struct wmi_link_stats_cmd { /* bitmask of required record types * (wmi_link_stats_record_type_e) */ __le32 record_type_mask; /* 0xff for all cids */ u8 cid; /* wmi_link_stats_action_e */ u8 action; u8 reserved[6]; /* range = 100 - 10000 */ __le32 interval_msec; } __packed; /* WMI_SET_GRANT_MCS_CMDID */ struct wmi_set_grant_mcs_cmd { u8 mcs; u8 reserved[3]; } __packed; /* WMI_SET_AP_SLOT_SIZE_CMDID */ struct wmi_set_ap_slot_size_cmd { __le32 slot_size; } __packed; /* WMI_TEMP_SENSE_ALL_CMDID */ struct wmi_temp_sense_all_cmd { u8 measure_baseband_en; u8 measure_rf_en; u8 measure_mode; u8 reserved; } __packed; /* WMI Events * List of Events (target to host) */ enum wmi_event_id { WMI_READY_EVENTID = 0x1001, WMI_CONNECT_EVENTID = 0x1002, WMI_DISCONNECT_EVENTID = 0x1003, WMI_START_SCHED_SCAN_EVENTID = 0x1005, WMI_STOP_SCHED_SCAN_EVENTID = 0x1006, WMI_SCHED_SCAN_RESULT_EVENTID = 0x1007, WMI_SCAN_COMPLETE_EVENTID = 0x100A, WMI_REPORT_STATISTICS_EVENTID = 0x100B, WMI_FT_AUTH_STATUS_EVENTID = 0x100C, WMI_FT_REASSOC_STATUS_EVENTID = 0x100D, WMI_LINK_MONITOR_EVENTID = 0x100E, WMI_RADAR_GENERAL_CONFIG_EVENTID = 0x1100, WMI_RADAR_CONFIG_SELECT_EVENTID = 0x1101, WMI_RADAR_PARAMS_CONFIG_EVENTID = 0x1102, WMI_RADAR_SET_MODE_EVENTID = 0x1103, WMI_RADAR_CONTROL_EVENTID = 0x1104, WMI_RADAR_PCI_CONTROL_EVENTID = 0x1105, WMI_RD_MEM_RSP_EVENTID = 0x1800, WMI_FW_READY_EVENTID = 0x1801, WMI_EXIT_FAST_MEM_ACC_MODE_EVENTID = 0x200, WMI_ECHO_RSP_EVENTID = 0x1803, WMI_DEEP_ECHO_RSP_EVENTID = 0x1804, /* deprecated */ WMI_FS_TUNE_DONE_EVENTID = 0x180A, /* deprecated */ WMI_CORR_MEASURE_EVENTID = 0x180B, WMI_READ_RSSI_EVENTID = 0x180C, WMI_TEMP_SENSE_DONE_EVENTID = 0x180E, WMI_DC_CALIB_DONE_EVENTID = 0x180F, /* deprecated */ WMI_IQ_TX_CALIB_DONE_EVENTID = 0x1811, /* deprecated */ WMI_IQ_RX_CALIB_DONE_EVENTID = 0x1812, WMI_SET_WORK_MODE_DONE_EVENTID = 0x1815, WMI_LO_LEAKAGE_CALIB_DONE_EVENTID = 0x1816, WMI_LO_POWER_CALIB_FROM_OTP_EVENTID = 0x1817, WMI_SILENT_RSSI_CALIB_DONE_EVENTID = 0x181D, /* deprecated */ WMI_RF_RX_TEST_DONE_EVENTID = 0x181E, WMI_CFG_RX_CHAIN_DONE_EVENTID = 0x1820, WMI_VRING_CFG_DONE_EVENTID = 0x1821, WMI_BA_STATUS_EVENTID = 0x1823, WMI_RCP_ADDBA_REQ_EVENTID = 0x1824, WMI_RCP_ADDBA_RESP_SENT_EVENTID = 0x1825, WMI_DELBA_EVENTID = 0x1826, WMI_GET_SSID_EVENTID = 0x1828, WMI_GET_PCP_CHANNEL_EVENTID = 0x182A, /* Event is shared between WMI_SW_TX_REQ_CMDID and * WMI_SW_TX_REQ_EXT_CMDID */ WMI_SW_TX_COMPLETE_EVENTID = 0x182B, WMI_BEAMFORMING_MGMT_DONE_EVENTID = 0x1836, WMI_BF_TXSS_MGMT_DONE_EVENTID = 0x1837, WMI_BF_RXSS_MGMT_DONE_EVENTID = 0x1839, WMI_BF_TRIG_EVENTID = 0x183A, WMI_RS_MGMT_DONE_EVENTID = 0x1852, WMI_RF_MGMT_STATUS_EVENTID = 0x1853, WMI_BF_SM_MGMT_DONE_EVENTID = 0x1838, WMI_RX_MGMT_PACKET_EVENTID = 0x1840, WMI_TX_MGMT_PACKET_EVENTID = 0x1841, WMI_LINK_MAINTAIN_CFG_WRITE_DONE_EVENTID = 0x1842, WMI_LINK_MAINTAIN_CFG_READ_DONE_EVENTID = 0x1843, WMI_SET_LINK_MONITOR_EVENTID = 0x1845, WMI_RF_XPM_READ_RESULT_EVENTID = 0x1856, WMI_RF_XPM_WRITE_RESULT_EVENTID = 0x1857, WMI_LED_CFG_DONE_EVENTID = 0x1858, WMI_SET_SILENT_RSSI_TABLE_DONE_EVENTID = 0x185C, WMI_RF_PWR_ON_DELAY_RSP_EVENTID = 0x185D, WMI_SET_HIGH_POWER_TABLE_PARAMS_EVENTID = 0x185E, WMI_FIXED_SCHEDULING_UL_CONFIG_EVENTID = 0x185F, /* Performance monitoring events */ WMI_DATA_PORT_OPEN_EVENTID = 0x1860, WMI_WBE_LINK_DOWN_EVENTID = 0x1861, WMI_BF_CTRL_DONE_EVENTID = 0x1862, WMI_NOTIFY_REQ_DONE_EVENTID = 0x1863, WMI_GET_STATUS_DONE_EVENTID = 0x1864, WMI_RING_EN_EVENTID = 0x1865, WMI_GET_RF_STATUS_EVENTID = 0x1866, WMI_GET_BASEBAND_TYPE_EVENTID = 0x1867, WMI_VRING_SWITCH_TIMING_CONFIG_EVENTID = 0x1868, WMI_UNIT_TEST_EVENTID = 0x1900, WMI_FLASH_READ_DONE_EVENTID = 0x1902, WMI_FLASH_WRITE_DONE_EVENTID = 0x1903, /* Power management */ WMI_TRAFFIC_SUSPEND_EVENTID = 0x1904, WMI_TRAFFIC_RESUME_EVENTID = 0x1905, /* P2P */ WMI_P2P_CFG_DONE_EVENTID = 0x1910, WMI_PORT_ALLOCATED_EVENTID = 0x1911, WMI_PORT_DELETED_EVENTID = 0x1912, WMI_LISTEN_STARTED_EVENTID = 0x1914, WMI_SEARCH_STARTED_EVENTID = 0x1915, WMI_DISCOVERY_STARTED_EVENTID = 0x1916, WMI_DISCOVERY_STOPPED_EVENTID = 0x1917, WMI_PCP_STARTED_EVENTID = 0x1918, WMI_PCP_STOPPED_EVENTID = 0x1919, WMI_PCP_FACTOR_EVENTID = 0x191A, /* Power Save Configuration Events */ WMI_PS_DEV_PROFILE_CFG_EVENTID = 0x191C, WMI_RS_ENABLE_EVENTID = 0x191E, WMI_RS_CFG_EX_EVENTID = 0x191F, WMI_GET_DETAILED_RS_RES_EX_EVENTID = 0x1920, /* deprecated */ WMI_RS_CFG_DONE_EVENTID = 0x1921, /* deprecated */ WMI_GET_DETAILED_RS_RES_EVENTID = 0x1922, WMI_AOA_MEAS_EVENTID = 0x1923, WMI_BRP_SET_ANT_LIMIT_EVENTID = 0x1924, WMI_SET_MGMT_RETRY_LIMIT_EVENTID = 0x1930, WMI_GET_MGMT_RETRY_LIMIT_EVENTID = 0x1931, WMI_SET_THERMAL_THROTTLING_CFG_EVENTID = 0x1940, WMI_GET_THERMAL_THROTTLING_CFG_EVENTID = 0x1941, /* return the Power Save profile */ WMI_PS_DEV_PROFILE_CFG_READ_EVENTID = 0x1942, WMI_TSF_SYNC_STATUS_EVENTID = 0x1973, WMI_TOF_SESSION_END_EVENTID = 0x1991, WMI_TOF_GET_CAPABILITIES_EVENTID = 0x1992, WMI_TOF_SET_LCR_EVENTID = 0x1993, WMI_TOF_SET_LCI_EVENTID = 0x1994, WMI_TOF_FTM_PER_DEST_RES_EVENTID = 0x1995, WMI_TOF_CFG_RESPONDER_EVENTID = 0x1996, WMI_TOF_SET_TX_RX_OFFSET_EVENTID = 0x1997, WMI_TOF_GET_TX_RX_OFFSET_EVENTID = 0x1998, WMI_TOF_CHANNEL_INFO_EVENTID = 0x1999, WMI_GET_RF_SECTOR_PARAMS_DONE_EVENTID = 0x19A0, WMI_SET_RF_SECTOR_PARAMS_DONE_EVENTID = 0x19A1, WMI_GET_SELECTED_RF_SECTOR_INDEX_DONE_EVENTID = 0x19A2, WMI_SET_SELECTED_RF_SECTOR_INDEX_DONE_EVENTID = 0x19A3, WMI_SET_RF_SECTOR_ON_DONE_EVENTID = 0x19A4, WMI_PRIO_TX_SECTORS_ORDER_EVENTID = 0x19A5, WMI_PRIO_TX_SECTORS_NUMBER_EVENTID = 0x19A6, WMI_PRIO_TX_SECTORS_SET_DEFAULT_CFG_EVENTID = 0x19A7, /* deprecated */ WMI_BF_CONTROL_EVENTID = 0x19AA, WMI_BF_CONTROL_EX_EVENTID = 0x19AB, WMI_TX_STATUS_RING_CFG_DONE_EVENTID = 0x19C0, WMI_RX_STATUS_RING_CFG_DONE_EVENTID = 0x19C1, WMI_TX_DESC_RING_CFG_DONE_EVENTID = 0x19C2, WMI_RX_DESC_RING_CFG_DONE_EVENTID = 0x19C3, WMI_CFG_DEF_RX_OFFLOAD_DONE_EVENTID = 0x19C5, WMI_SCHEDULING_SCHEME_EVENTID = 0x1A01, WMI_FIXED_SCHEDULING_CONFIG_COMPLETE_EVENTID = 0x1A02, WMI_ENABLE_FIXED_SCHEDULING_COMPLETE_EVENTID = 0x1A03, WMI_SET_MULTI_DIRECTED_OMNIS_CONFIG_EVENTID = 0x1A04, WMI_SET_LONG_RANGE_CONFIG_COMPLETE_EVENTID = 0x1A05, WMI_GET_ASSOC_LIST_RES_EVENTID = 0x1A06, WMI_GET_CCA_INDICATIONS_EVENTID = 0x1A07, WMI_SET_CCA_INDICATIONS_BI_AVG_NUM_EVENTID = 0x1A08, WMI_INTERNAL_FW_EVENT_EVENTID = 0x1A0A, WMI_INTERNAL_FW_IOCTL_EVENTID = 0x1A0B, WMI_LINK_STATS_CONFIG_DONE_EVENTID = 0x1A0C, WMI_LINK_STATS_EVENTID = 0x1A0D, WMI_SET_GRANT_MCS_EVENTID = 0x1A0E, WMI_SET_AP_SLOT_SIZE_EVENTID = 0x1A0F, WMI_SET_VRING_PRIORITY_WEIGHT_EVENTID = 0x1A10, WMI_SET_VRING_PRIORITY_EVENTID = 0x1A11, WMI_RBUFCAP_CFG_EVENTID = 0x1A12, WMI_TEMP_SENSE_ALL_DONE_EVENTID = 0x1A13, WMI_SET_CHANNEL_EVENTID = 0x9000, WMI_ASSOC_REQ_EVENTID = 0x9001, WMI_EAPOL_RX_EVENTID = 0x9002, WMI_MAC_ADDR_RESP_EVENTID = 0x9003, WMI_FW_VER_EVENTID = 0x9004, WMI_ACS_PASSIVE_SCAN_COMPLETE_EVENTID = 0x9005, WMI_INTERNAL_FW_SET_CHANNEL = 0x9006, WMI_COMMAND_NOT_SUPPORTED_EVENTID = 0xFFFF, }; /* Events data structures */ enum wmi_fw_status { WMI_FW_STATUS_SUCCESS = 0x00, WMI_FW_STATUS_FAILURE = 0x01, }; /* WMI_RF_MGMT_STATUS_EVENTID */ enum wmi_rf_status { WMI_RF_ENABLED = 0x00, WMI_RF_DISABLED_HW = 0x01, WMI_RF_DISABLED_SW = 0x02, WMI_RF_DISABLED_HW_SW = 0x03, }; /* WMI_RF_MGMT_STATUS_EVENTID */ struct wmi_rf_mgmt_status_event { __le32 rf_status; } __packed; /* WMI_GET_STATUS_DONE_EVENTID */ struct wmi_get_status_done_event { __le32 is_associated; u8 cid; u8 reserved0[3]; u8 bssid[WMI_MAC_LEN]; u8 channel; u8 reserved1; u8 network_type; u8 reserved2[3]; __le32 ssid_len; u8 ssid[WMI_MAX_SSID_LEN]; __le32 rf_status; __le32 is_secured; } __packed; /* WMI_FW_VER_EVENTID */ struct wmi_fw_ver_event { /* FW image version */ __le32 fw_major; __le32 fw_minor; __le32 fw_subminor; __le32 fw_build; /* FW image build time stamp */ __le32 hour; __le32 minute; __le32 second; __le32 day; __le32 month; __le32 year; /* Boot Loader image version */ __le32 bl_major; __le32 bl_minor; __le32 bl_subminor; __le32 bl_build; /* The number of entries in the FW capabilities array */ u8 fw_capabilities_len; u8 reserved[3]; /* FW capabilities info * Must be the last member of the struct */ __le32 fw_capabilities[]; } __packed; /* WMI_GET_RF_STATUS_EVENTID */ enum rf_type { RF_UNKNOWN = 0x00, RF_MARLON = 0x01, RF_SPARROW = 0x02, RF_TALYNA1 = 0x03, RF_TALYNA2 = 0x04, }; /* WMI_GET_RF_STATUS_EVENTID */ enum board_file_rf_type { BF_RF_MARLON = 0x00, BF_RF_SPARROW = 0x01, BF_RF_TALYNA1 = 0x02, BF_RF_TALYNA2 = 0x03, }; /* WMI_GET_RF_STATUS_EVENTID */ enum rf_status { RF_OK = 0x00, RF_NO_COMM = 0x01, RF_WRONG_BOARD_FILE = 0x02, }; /* WMI_GET_RF_STATUS_EVENTID */ struct wmi_get_rf_status_event { /* enum rf_type */ __le32 rf_type; /* attached RFs bit vector */ __le32 attached_rf_vector; /* enabled RFs bit vector */ __le32 enabled_rf_vector; /* enum rf_status, refers to enabled RFs */ u8 rf_status[32]; /* enum board file RF type */ __le32 board_file_rf_type; /* board file platform type */ __le32 board_file_platform_type; /* board file version */ __le32 board_file_version; /* enabled XIFs bit vector */ __le32 enabled_xif_vector; __le32 reserved; } __packed; /* WMI_GET_BASEBAND_TYPE_EVENTID */ enum baseband_type { BASEBAND_UNKNOWN = 0x00, BASEBAND_SPARROW_M_A0 = 0x03, BASEBAND_SPARROW_M_A1 = 0x04, BASEBAND_SPARROW_M_B0 = 0x05, BASEBAND_SPARROW_M_C0 = 0x06, BASEBAND_SPARROW_M_D0 = 0x07, BASEBAND_TALYN_M_A0 = 0x08, BASEBAND_TALYN_M_B0 = 0x09, }; /* WMI_GET_BASEBAND_TYPE_EVENTID */ struct wmi_get_baseband_type_event { /* enum baseband_type */ __le32 baseband_type; } __packed; /* WMI_MAC_ADDR_RESP_EVENTID */ struct wmi_mac_addr_resp_event { u8 mac[WMI_MAC_LEN]; u8 auth_mode; u8 crypt_mode; __le32 offload_mode; } __packed; /* WMI_EAPOL_RX_EVENTID */ struct wmi_eapol_rx_event { u8 src_mac[WMI_MAC_LEN]; __le16 eapol_len; u8 eapol[]; } __packed; /* WMI_READY_EVENTID */ enum wmi_phy_capability { WMI_11A_CAPABILITY = 0x01, WMI_11G_CAPABILITY = 0x02, WMI_11AG_CAPABILITY = 0x03, WMI_11NA_CAPABILITY = 0x04, WMI_11NG_CAPABILITY = 0x05, WMI_11NAG_CAPABILITY = 0x06, WMI_11AD_CAPABILITY = 0x07, WMI_11N_CAPABILITY_OFFSET = 0x03, }; struct wmi_ready_event { __le32 sw_version; __le32 abi_version; u8 mac[WMI_MAC_LEN]; /* enum wmi_phy_capability */ u8 phy_capability; u8 numof_additional_mids; /* rfc read calibration result. 5..15 */ u8 rfc_read_calib_result; /* Max associated STAs supported by FW in AP mode (default 0 means 8 * STA) */ u8 max_assoc_sta; u8 reserved[2]; } __packed; /* WMI_NOTIFY_REQ_DONE_EVENTID */ struct wmi_notify_req_done_event { /* beamforming status, 0: fail; 1: OK; 2: retrying */ __le32 status; __le64 tsf; s8 rssi; /* enum wmi_edmg_tx_mode */ u8 tx_mode; u8 reserved0[2]; __le32 tx_tpt; __le32 tx_goodput; __le32 rx_goodput; __le16 bf_mcs; __le16 my_rx_sector; __le16 my_tx_sector; __le16 other_rx_sector; __le16 other_tx_sector; __le16 range; u8 sqi; u8 reserved[3]; } __packed; /* WMI_CONNECT_EVENTID */ struct wmi_connect_event { /* enum wmi_channel WMI_CHANNEL_1..WMI_CHANNEL_6; for EDMG this is * the primary channel number */ u8 channel; /* enum wmi_channel WMI_CHANNEL_9..WMI_CHANNEL_12 */ u8 edmg_channel; u8 bssid[WMI_MAC_LEN]; __le16 listen_interval; __le16 beacon_interval; u8 network_type; u8 reserved1[3]; u8 beacon_ie_len; u8 assoc_req_len; u8 assoc_resp_len; u8 cid; u8 aid; u8 reserved2[2]; /* not in use */ u8 assoc_info[]; } __packed; /* disconnect_reason */ enum wmi_disconnect_reason { WMI_DIS_REASON_NO_NETWORK_AVAIL = 0x01, /* bmiss */ WMI_DIS_REASON_LOST_LINK = 0x02, WMI_DIS_REASON_DISCONNECT_CMD = 0x03, WMI_DIS_REASON_BSS_DISCONNECTED = 0x04, WMI_DIS_REASON_AUTH_FAILED = 0x05, WMI_DIS_REASON_ASSOC_FAILED = 0x06, WMI_DIS_REASON_NO_RESOURCES_AVAIL = 0x07, WMI_DIS_REASON_CSERV_DISCONNECT = 0x08, WMI_DIS_REASON_INVALID_PROFILE = 0x0A, WMI_DIS_REASON_DOT11H_CHANNEL_SWITCH = 0x0B, WMI_DIS_REASON_PROFILE_MISMATCH = 0x0C, WMI_DIS_REASON_CONNECTION_EVICTED = 0x0D, WMI_DIS_REASON_IBSS_MERGE = 0x0E, WMI_DIS_REASON_HIGH_TEMPERATURE = 0x0F, }; /* WMI_DISCONNECT_EVENTID */ struct wmi_disconnect_event { /* reason code, see 802.11 spec. */ __le16 protocol_reason_status; /* set if known */ u8 bssid[WMI_MAC_LEN]; /* see enum wmi_disconnect_reason */ u8 disconnect_reason; /* last assoc req may passed to host - not in used */ u8 assoc_resp_len; /* last assoc req may passed to host - not in used */ u8 assoc_info[]; } __packed; /* WMI_SCAN_COMPLETE_EVENTID */ enum scan_status { WMI_SCAN_SUCCESS = 0x00, WMI_SCAN_FAILED = 0x01, WMI_SCAN_ABORTED = 0x02, WMI_SCAN_REJECTED = 0x03, WMI_SCAN_ABORT_REJECTED = 0x04, }; struct wmi_scan_complete_event { /* enum scan_status */ __le32 status; } __packed; /* WMI_FT_AUTH_STATUS_EVENTID */ struct wmi_ft_auth_status_event { /* enum wmi_fw_status */ u8 status; u8 reserved[3]; u8 mac_addr[WMI_MAC_LEN]; __le16 ie_len; u8 ie_info[]; } __packed; /* WMI_FT_REASSOC_STATUS_EVENTID */ struct wmi_ft_reassoc_status_event { /* enum wmi_fw_status */ u8 status; /* association id received from new AP */ u8 aid; /* enum wmi_channel */ u8 channel; /* enum wmi_channel */ u8 edmg_channel; u8 mac_addr[WMI_MAC_LEN]; __le16 beacon_ie_len; __le16 reassoc_req_ie_len; __le16 reassoc_resp_ie_len; u8 reserved[4]; u8 ie_info[]; } __packed; /* wmi_rx_mgmt_info */ struct wmi_rx_mgmt_info { u8 mcs; s8 rssi; u8 range; u8 sqi; __le16 stype; __le16 status; __le32 len; /* Not resolved when == 0xFFFFFFFF == > Broadcast to all MIDS */ u8 qid; /* Not resolved when == 0xFFFFFFFF == > Broadcast to all MIDS */ u8 mid; u8 cid; /* From Radio MNGR */ u8 channel; } __packed; /* WMI_START_SCHED_SCAN_EVENTID */ enum wmi_pno_result { WMI_PNO_SUCCESS = 0x00, WMI_PNO_REJECT = 0x01, WMI_PNO_INVALID_PARAMETERS = 0x02, WMI_PNO_NOT_ENABLED = 0x03, }; struct wmi_start_sched_scan_event { /* wmi_pno_result */ u8 result; u8 reserved[3]; } __packed; struct wmi_stop_sched_scan_event { /* wmi_pno_result */ u8 result; u8 reserved[3]; } __packed; struct wmi_sched_scan_result_event { struct wmi_rx_mgmt_info info; u8 payload[]; } __packed; /* WMI_ACS_PASSIVE_SCAN_COMPLETE_EVENT */ enum wmi_acs_info_bitmask { WMI_ACS_INFO_BITMASK_BEACON_FOUND = 0x01, WMI_ACS_INFO_BITMASK_BUSY_TIME = 0x02, WMI_ACS_INFO_BITMASK_TX_TIME = 0x04, WMI_ACS_INFO_BITMASK_RX_TIME = 0x08, WMI_ACS_INFO_BITMASK_NOISE = 0x10, }; struct scan_acs_info { u8 channel; u8 beacon_found; /* msec */ __le16 busy_time; __le16 tx_time; __le16 rx_time; u8 noise; u8 reserved[3]; } __packed; struct wmi_acs_passive_scan_complete_event { __le32 dwell_time; /* valid fields within channel info according to * their appearance in struct order */ __le16 filled; u8 num_scanned_channels; u8 reserved; struct scan_acs_info scan_info_list[]; } __packed; /* WMI_BA_STATUS_EVENTID */ enum wmi_vring_ba_status { WMI_BA_AGREED = 0x00, WMI_BA_NON_AGREED = 0x01, /* BA_EN in middle of teardown flow */ WMI_BA_TD_WIP = 0x02, /* BA_DIS or BA_EN in middle of BA SETUP flow */ WMI_BA_SETUP_WIP = 0x03, /* BA_EN when the BA session is already active */ WMI_BA_SESSION_ACTIVE = 0x04, /* BA_DIS when the BA session is not active */ WMI_BA_SESSION_NOT_ACTIVE = 0x05, }; struct wmi_ba_status_event { /* enum wmi_vring_ba_status */ __le16 status; u8 reserved[2]; u8 ringid; u8 agg_wsize; __le16 ba_timeout; u8 amsdu; } __packed; /* WMI_DELBA_EVENTID */ struct wmi_delba_event { /* Used for cid less than 8. For higher cid set * CIDXTID_EXTENDED_CID_TID here and use cid and tid members instead */ u8 cidxtid; u8 from_initiator; __le16 reason; /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */ u8 cid; /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */ u8 tid; u8 reserved[2]; } __packed; /* WMI_VRING_CFG_DONE_EVENTID */ struct wmi_vring_cfg_done_event { u8 ringid; u8 status; u8 reserved[2]; __le32 tx_vring_tail_ptr; } __packed; /* WMI_RCP_ADDBA_RESP_SENT_EVENTID */ struct wmi_rcp_addba_resp_sent_event { /* Used for cid less than 8. For higher cid set * CIDXTID_EXTENDED_CID_TID here and use cid and tid members instead */ u8 cidxtid; u8 reserved; __le16 status; /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */ u8 cid; /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */ u8 tid; u8 reserved2[2]; } __packed; /* WMI_TX_STATUS_RING_CFG_DONE_EVENTID */ struct wmi_tx_status_ring_cfg_done_event { u8 ring_id; /* wmi_fw_status */ u8 status; u8 reserved[2]; __le32 ring_tail_ptr; } __packed; /* WMI_RX_STATUS_RING_CFG_DONE_EVENTID */ struct wmi_rx_status_ring_cfg_done_event { u8 ring_id; /* wmi_fw_status */ u8 status; u8 reserved[2]; __le32 ring_tail_ptr; } __packed; /* WMI_CFG_DEF_RX_OFFLOAD_DONE_EVENTID */ struct wmi_cfg_def_rx_offload_done_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_TX_DESC_RING_CFG_DONE_EVENTID */ struct wmi_tx_desc_ring_cfg_done_event { u8 ring_id; /* wmi_fw_status */ u8 status; u8 reserved[2]; __le32 ring_tail_ptr; } __packed; /* WMI_RX_DESC_RING_CFG_DONE_EVENTID */ struct wmi_rx_desc_ring_cfg_done_event { u8 ring_id; /* wmi_fw_status */ u8 status; u8 reserved[2]; __le32 ring_tail_ptr; } __packed; /* WMI_RCP_ADDBA_REQ_EVENTID */ struct wmi_rcp_addba_req_event { /* Used for cid less than 8. For higher cid set * CIDXTID_EXTENDED_CID_TID here and use cid and tid members instead */ u8 cidxtid; u8 dialog_token; /* ieee80211_ba_parameterset as it received */ __le16 ba_param_set; __le16 ba_timeout; /* ieee80211_ba_seqstrl field as it received */ __le16 ba_seq_ctrl; /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */ u8 cid; /* Used when cidxtid = CIDXTID_EXTENDED_CID_TID */ u8 tid; u8 reserved[2]; } __packed; /* WMI_CFG_RX_CHAIN_DONE_EVENTID */ enum wmi_cfg_rx_chain_done_event_status { WMI_CFG_RX_CHAIN_SUCCESS = 0x01, }; struct wmi_cfg_rx_chain_done_event { /* V-Ring Tail pointer */ __le32 rx_ring_tail_ptr; __le32 status; } __packed; /* WMI_WBE_LINK_DOWN_EVENTID */ enum wmi_wbe_link_down_event_reason { WMI_WBE_REASON_USER_REQUEST = 0x00, WMI_WBE_REASON_RX_DISASSOC = 0x01, WMI_WBE_REASON_BAD_PHY_LINK = 0x02, }; /* WMI_WBE_LINK_DOWN_EVENTID */ struct wmi_wbe_link_down_event { u8 cid; u8 reserved[3]; __le32 reason; } __packed; /* WMI_DATA_PORT_OPEN_EVENTID */ struct wmi_data_port_open_event { u8 cid; u8 reserved[3]; } __packed; /* WMI_RING_EN_EVENTID */ struct wmi_ring_en_event { u8 ring_index; u8 reserved[3]; } __packed; /* WMI_GET_PCP_CHANNEL_EVENTID */ struct wmi_get_pcp_channel_event { u8 channel; u8 reserved[3]; } __packed; /* WMI_P2P_CFG_DONE_EVENTID */ struct wmi_p2p_cfg_done_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_PORT_ALLOCATED_EVENTID */ struct wmi_port_allocated_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_PORT_DELETED_EVENTID */ struct wmi_port_deleted_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_LISTEN_STARTED_EVENTID */ struct wmi_listen_started_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_SEARCH_STARTED_EVENTID */ struct wmi_search_started_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_PCP_STARTED_EVENTID */ struct wmi_pcp_started_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_PCP_FACTOR_EVENTID */ struct wmi_pcp_factor_event { __le32 pcp_factor; } __packed; enum wmi_sw_tx_status { WMI_TX_SW_STATUS_SUCCESS = 0x00, WMI_TX_SW_STATUS_FAILED_NO_RESOURCES = 0x01, WMI_TX_SW_STATUS_FAILED_TX = 0x02, }; /* WMI_SW_TX_COMPLETE_EVENTID */ struct wmi_sw_tx_complete_event { /* enum wmi_sw_tx_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_CORR_MEASURE_EVENTID - deprecated */ struct wmi_corr_measure_event { /* signed */ __le32 i; /* signed */ __le32 q; /* signed */ __le32 image_i; /* signed */ __le32 image_q; } __packed; /* WMI_READ_RSSI_EVENTID */ struct wmi_read_rssi_event { __le32 ina_rssi_adc_dbm; } __packed; /* WMI_GET_SSID_EVENTID */ struct wmi_get_ssid_event { __le32 ssid_len; u8 ssid[WMI_MAX_SSID_LEN]; } __packed; /* EVENT: WMI_RF_XPM_READ_RESULT_EVENTID */ struct wmi_rf_xpm_read_result_event { /* enum wmi_fw_status_e - success=0 or fail=1 */ u8 status; u8 reserved[3]; /* requested num_bytes of data */ u8 data_bytes[]; } __packed; /* EVENT: WMI_RF_XPM_WRITE_RESULT_EVENTID */ struct wmi_rf_xpm_write_result_event { /* enum wmi_fw_status_e - success=0 or fail=1 */ u8 status; u8 reserved[3]; } __packed; /* WMI_TX_MGMT_PACKET_EVENTID */ struct wmi_tx_mgmt_packet_event { DECLARE_FLEX_ARRAY(u8, payload); } __packed; /* WMI_RX_MGMT_PACKET_EVENTID */ struct wmi_rx_mgmt_packet_event { struct wmi_rx_mgmt_info info; u8 payload[]; } __packed; /* WMI_ECHO_RSP_EVENTID */ struct wmi_echo_rsp_event { __le32 echoed_value; } __packed; /* WMI_DEEP_ECHO_RSP_EVENTID */ struct wmi_deep_echo_rsp_event { __le32 echoed_value; } __packed; /* WMI_RF_PWR_ON_DELAY_RSP_EVENTID */ struct wmi_rf_pwr_on_delay_rsp_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_SET_HIGH_POWER_TABLE_PARAMS_EVENTID */ struct wmi_set_high_power_table_params_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_FIXED_SCHEDULING_UL_CONFIG_EVENTID */ struct wmi_fixed_scheduling_ul_config_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_TEMP_SENSE_DONE_EVENTID * * Measure MAC and radio temperatures */ struct wmi_temp_sense_done_event { /* Temperature times 1000 (actual temperature will be achieved by * dividing the value by 1000). When temperature cannot be read from * device return WMI_INVALID_TEMPERATURE */ __le32 baseband_t1000; /* Temperature times 1000 (actual temperature will be achieved by * dividing the value by 1000). When temperature cannot be read from * device return WMI_INVALID_TEMPERATURE */ __le32 rf_t1000; } __packed; #define WMI_SCAN_DWELL_TIME_MS (100) #define WMI_SURVEY_TIMEOUT_MS (10000) enum wmi_hidden_ssid { WMI_HIDDEN_SSID_DISABLED = 0x00, WMI_HIDDEN_SSID_SEND_EMPTY = 0x10, WMI_HIDDEN_SSID_CLEAR = 0xFE, }; /* WMI_LED_CFG_CMDID * * Configure LED On\Off\Blinking operation * * Returned events: * - WMI_LED_CFG_DONE_EVENTID */ enum led_mode { LED_DISABLE = 0x00, LED_ENABLE = 0x01, }; /* The names of the led as * described on HW schemes. */ enum wmi_led_id { WMI_LED_WLAN = 0x00, WMI_LED_WPAN = 0x01, WMI_LED_WWAN = 0x02, }; /* Led polarity mode. */ enum wmi_led_polarity { LED_POLARITY_HIGH_ACTIVE = 0x00, LED_POLARITY_LOW_ACTIVE = 0x01, }; /* Combination of on and off * creates the blinking period */ struct wmi_led_blink_mode { __le32 blink_on; __le32 blink_off; } __packed; /* WMI_LED_CFG_CMDID */ struct wmi_led_cfg_cmd { /* enum led_mode_e */ u8 led_mode; /* enum wmi_led_id_e */ u8 id; /* slow speed blinking combination */ struct wmi_led_blink_mode slow_blink_cfg; /* medium speed blinking combination */ struct wmi_led_blink_mode medium_blink_cfg; /* high speed blinking combination */ struct wmi_led_blink_mode fast_blink_cfg; /* polarity of the led */ u8 led_polarity; /* reserved */ u8 reserved; } __packed; /* \WMI_SET_CONNECT_SNR_THR_CMDID */ struct wmi_set_connect_snr_thr_cmd { u8 enable; u8 reserved; /* 1/4 Db units */ __le16 omni_snr_thr; /* 1/4 Db units */ __le16 direct_snr_thr; } __packed; /* WMI_LED_CFG_DONE_EVENTID */ struct wmi_led_cfg_done_event { /* led config status */ __le32 status; } __packed; /* Rate search parameters configuration per connection */ struct wmi_rs_cfg { /* The maximal allowed PER for each MCS * MCS will be considered as failed if PER during RS is higher */ u8 per_threshold[WMI_NUM_MCS]; /* Number of MPDUs for each MCS * this is the minimal statistic required to make an educated * decision */ u8 min_frame_cnt[WMI_NUM_MCS]; /* stop threshold [0-100] */ u8 stop_th; /* MCS1 stop threshold [0-100] */ u8 mcs1_fail_th; u8 max_back_failure_th; /* Debug feature for disabling internal RS trigger (which is * currently triggered by BF Done) */ u8 dbg_disable_internal_trigger; __le32 back_failure_mask; __le32 mcs_en_vec; } __packed; enum wmi_edmg_tx_mode { WMI_TX_MODE_DMG = 0x0, WMI_TX_MODE_EDMG_CB1 = 0x1, WMI_TX_MODE_EDMG_CB2 = 0x2, WMI_TX_MODE_EDMG_CB1_LONG_LDPC = 0x3, WMI_TX_MODE_EDMG_CB2_LONG_LDPC = 0x4, WMI_TX_MODE_MAX, }; /* Rate search parameters common configuration */ struct wmi_rs_cfg_ex_common { /* enum wmi_edmg_tx_mode */ u8 mode; /* stop threshold [0-100] */ u8 stop_th; /* MCS1 stop threshold [0-100] */ u8 mcs1_fail_th; u8 max_back_failure_th; /* Debug feature for disabling internal RS trigger (which is * currently triggered by BF Done) */ u8 dbg_disable_internal_trigger; u8 reserved[3]; __le32 back_failure_mask; } __packed; /* Rate search parameters configuration per MCS */ struct wmi_rs_cfg_ex_mcs { /* The maximal allowed PER for each MCS * MCS will be considered as failed if PER during RS is higher */ u8 per_threshold; /* Number of MPDUs for each MCS * this is the minimal statistic required to make an educated * decision */ u8 min_frame_cnt; u8 reserved[2]; } __packed; /* WMI_RS_CFG_EX_CMDID */ struct wmi_rs_cfg_ex_cmd { /* Configuration for all MCSs */ struct wmi_rs_cfg_ex_common common_cfg; u8 each_mcs_cfg_size; u8 reserved[3]; /* Configuration for each MCS */ struct wmi_rs_cfg_ex_mcs each_mcs_cfg[]; } __packed; /* WMI_RS_CFG_EX_EVENTID */ struct wmi_rs_cfg_ex_event { /* enum wmi_edmg_tx_mode */ u8 mode; /* enum wmi_fw_status */ u8 status; u8 reserved[2]; } __packed; /* WMI_RS_ENABLE_CMDID */ struct wmi_rs_enable_cmd { u8 cid; /* enable or disable rate search */ u8 rs_enable; u8 reserved[2]; __le32 mcs_en_vec; } __packed; /* WMI_RS_ENABLE_EVENTID */ struct wmi_rs_enable_event { /* enum wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* Slot types */ enum wmi_sched_scheme_slot_type { WMI_SCHED_SLOT_SP = 0x0, WMI_SCHED_SLOT_CBAP = 0x1, WMI_SCHED_SLOT_IDLE = 0x2, WMI_SCHED_SLOT_ANNOUNCE_NO_ACK = 0x3, WMI_SCHED_SLOT_DISCOVERY = 0x4, }; enum wmi_sched_scheme_slot_flags { WMI_SCHED_SCHEME_SLOT_PERIODIC = 0x1, }; struct wmi_sched_scheme_slot { /* in microsecond */ __le32 tbtt_offset; /* wmi_sched_scheme_slot_flags */ u8 flags; /* wmi_sched_scheme_slot_type */ u8 type; /* in microsecond */ __le16 duration; /* frame_exchange_sequence_duration */ __le16 tx_op; /* time in microseconds between two consecutive slots * relevant only if flag WMI_SCHED_SCHEME_SLOT_PERIODIC set */ __le16 period; /* relevant only if flag WMI_SCHED_SCHEME_SLOT_PERIODIC set * number of times to repeat allocation */ u8 num_of_blocks; /* relevant only if flag WMI_SCHED_SCHEME_SLOT_PERIODIC set * every idle_period allocation will be idle */ u8 idle_period; u8 src_aid; u8 dest_aid; __le32 reserved; } __packed; enum wmi_sched_scheme_flags { /* should not be set when clearing scheduling scheme */ WMI_SCHED_SCHEME_ENABLE = 0x01, WMI_SCHED_PROTECTED_SP = 0x02, /* should be set only on first WMI fragment of scheme */ WMI_SCHED_FIRST = 0x04, /* should be set only on last WMI fragment of scheme */ WMI_SCHED_LAST = 0x08, WMI_SCHED_IMMEDIATE_START = 0x10, }; enum wmi_sched_scheme_advertisment { /* ESE is not advertised at all, STA has to be configured with WMI * also */ WMI_ADVERTISE_ESE_DISABLED = 0x0, WMI_ADVERTISE_ESE_IN_BEACON = 0x1, WMI_ADVERTISE_ESE_IN_ANNOUNCE_FRAME = 0x2, }; /* WMI_SCHEDULING_SCHEME_CMD */ struct wmi_scheduling_scheme_cmd { u8 serial_num; /* wmi_sched_scheme_advertisment */ u8 ese_advertisment; /* wmi_sched_scheme_flags */ __le16 flags; u8 num_allocs; u8 reserved[3]; __le64 start_tbtt; /* allocations list */ struct wmi_sched_scheme_slot allocs[WMI_SCHED_MAX_ALLOCS_PER_CMD]; } __packed; enum wmi_sched_scheme_failure_type { WMI_SCHED_SCHEME_FAILURE_NO_ERROR = 0x00, WMI_SCHED_SCHEME_FAILURE_OLD_START_TSF_ERR = 0x01, }; /* WMI_SCHEDULING_SCHEME_EVENTID */ struct wmi_scheduling_scheme_event { /* wmi_fw_status_e */ u8 status; /* serial number given in command */ u8 serial_num; /* wmi_sched_scheme_failure_type */ u8 failure_type; /* alignment to 32b */ u8 reserved[1]; } __packed; /* WMI_RS_CFG_CMDID - deprecated */ struct wmi_rs_cfg_cmd { /* connection id */ u8 cid; /* enable or disable rate search */ u8 rs_enable; /* rate search configuration */ struct wmi_rs_cfg rs_cfg; } __packed; /* WMI_RS_CFG_DONE_EVENTID - deprecated */ struct wmi_rs_cfg_done_event { u8 cid; /* enum wmi_fw_status */ u8 status; u8 reserved[2]; } __packed; /* WMI_GET_DETAILED_RS_RES_CMDID - deprecated */ struct wmi_get_detailed_rs_res_cmd { /* connection id */ u8 cid; u8 reserved[3]; } __packed; /* RS results status */ enum wmi_rs_results_status { WMI_RS_RES_VALID = 0x00, WMI_RS_RES_INVALID = 0x01, }; /* Rate search results */ struct wmi_rs_results { /* number of sent MPDUs */ u8 num_of_tx_pkt[WMI_NUM_MCS]; /* number of non-acked MPDUs */ u8 num_of_non_acked_pkt[WMI_NUM_MCS]; /* RS timestamp */ __le32 tsf; /* RS selected MCS */ u8 mcs; } __packed; /* WMI_GET_DETAILED_RS_RES_EVENTID - deprecated */ struct wmi_get_detailed_rs_res_event { u8 cid; /* enum wmi_rs_results_status */ u8 status; /* detailed rs results */ struct wmi_rs_results rs_results; u8 reserved[3]; } __packed; /* WMI_GET_DETAILED_RS_RES_EX_CMDID */ struct wmi_get_detailed_rs_res_ex_cmd { u8 cid; u8 reserved[3]; } __packed; /* Rate search results */ struct wmi_rs_results_ex_common { /* RS timestamp */ __le32 tsf; /* RS selected MCS */ u8 mcs; /* enum wmi_edmg_tx_mode */ u8 mode; u8 reserved[2]; } __packed; /* Rate search results */ struct wmi_rs_results_ex_mcs { /* number of sent MPDUs */ u8 num_of_tx_pkt; /* number of non-acked MPDUs */ u8 num_of_non_acked_pkt; u8 reserved[2]; } __packed; /* WMI_GET_DETAILED_RS_RES_EX_EVENTID */ struct wmi_get_detailed_rs_res_ex_event { u8 cid; /* enum wmi_rs_results_status */ u8 status; u8 reserved0[2]; struct wmi_rs_results_ex_common common_rs_results; u8 each_mcs_results_size; u8 reserved1[3]; /* Results for each MCS */ struct wmi_rs_results_ex_mcs each_mcs_results[]; } __packed; /* BRP antenna limit mode */ enum wmi_brp_ant_limit_mode { /* Disable BRP force antenna limit */ WMI_BRP_ANT_LIMIT_MODE_DISABLE = 0x00, /* Define maximal antennas limit. Only effective antennas will be * actually used */ WMI_BRP_ANT_LIMIT_MODE_EFFECTIVE = 0x01, /* Force a specific number of antennas */ WMI_BRP_ANT_LIMIT_MODE_FORCE = 0x02, /* number of BRP antenna limit modes */ WMI_BRP_ANT_LIMIT_MODES_NUM = 0x03, }; /* WMI_BRP_SET_ANT_LIMIT_CMDID */ struct wmi_brp_set_ant_limit_cmd { /* connection id */ u8 cid; /* enum wmi_brp_ant_limit_mode */ u8 limit_mode; /* antenna limit count, 1-27 * disable_mode - ignored * effective_mode - upper limit to number of antennas to be used * force_mode - exact number of antennas to be used */ u8 ant_limit; u8 reserved; } __packed; /* WMI_BRP_SET_ANT_LIMIT_EVENTID */ struct wmi_brp_set_ant_limit_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; enum wmi_bf_type { WMI_BF_TYPE_SLS = 0x00, WMI_BF_TYPE_BRP_RX = 0x01, }; /* WMI_BF_TRIG_CMDID */ struct wmi_bf_trig_cmd { /* enum wmi_bf_type - type of requested beamforming */ u8 bf_type; /* used only for WMI_BF_TYPE_BRP_RX */ u8 cid; /* used only for WMI_BF_TYPE_SLS */ u8 dst_mac[WMI_MAC_LEN]; u8 reserved[4]; } __packed; /* WMI_BF_TRIG_EVENTID */ struct wmi_bf_trig_event { /* enum wmi_fw_status */ u8 status; u8 cid; u8 reserved[2]; } __packed; /* broadcast connection ID */ #define WMI_LINK_MAINTAIN_CFG_CID_BROADCAST (0xFFFFFFFF) /* Types wmi_link_maintain_cfg presets for WMI_LINK_MAINTAIN_CFG_WRITE_CMD */ enum wmi_link_maintain_cfg_type { /* AP/PCP default normal (non-FST) configuration settings */ WMI_LINK_MAINTAIN_CFG_TYPE_DEFAULT_NORMAL_AP = 0x00, /* AP/PCP default FST configuration settings */ WMI_LINK_MAINTAIN_CFG_TYPE_DEFAULT_FST_AP = 0x01, /* STA default normal (non-FST) configuration settings */ WMI_LINK_MAINTAIN_CFG_TYPE_DEFAULT_NORMAL_STA = 0x02, /* STA default FST configuration settings */ WMI_LINK_MAINTAIN_CFG_TYPE_DEFAULT_FST_STA = 0x03, /* custom configuration settings */ WMI_LINK_MAINTAIN_CFG_TYPE_CUSTOM = 0x04, /* number of defined configuration types */ WMI_LINK_MAINTAIN_CFG_TYPES_NUM = 0x05, }; /* Response status codes for WMI_LINK_MAINTAIN_CFG_WRITE/READ commands */ enum wmi_link_maintain_cfg_response_status { /* WMI_LINK_MAINTAIN_CFG_WRITE/READ command successfully accomplished */ WMI_LINK_MAINTAIN_CFG_RESPONSE_STATUS_OK = 0x00, /* ERROR due to bad argument in WMI_LINK_MAINTAIN_CFG_WRITE/READ * command request */ WMI_LINK_MAINTAIN_CFG_RESPONSE_STATUS_BAD_ARGUMENT = 0x01, }; /* Link Loss and Keep Alive configuration */ struct wmi_link_maintain_cfg { /* link_loss_enable_detectors_vec */ __le32 link_loss_enable_detectors_vec; /* detectors check period usec */ __le32 check_link_loss_period_usec; /* max allowed tx ageing */ __le32 tx_ageing_threshold_usec; /* keep alive period for high SNR */ __le32 keep_alive_period_usec_high_snr; /* keep alive period for low SNR */ __le32 keep_alive_period_usec_low_snr; /* lower snr limit for keep alive period update */ __le32 keep_alive_snr_threshold_low_db; /* upper snr limit for keep alive period update */ __le32 keep_alive_snr_threshold_high_db; /* num of successive bad bcons causing link-loss */ __le32 bad_beacons_num_threshold; /* SNR limit for bad_beacons_detector */ __le32 bad_beacons_snr_threshold_db; /* timeout for disassoc response frame in uSec */ __le32 disconnect_timeout; } __packed; /* WMI_LINK_MAINTAIN_CFG_WRITE_CMDID */ struct wmi_link_maintain_cfg_write_cmd { /* enum wmi_link_maintain_cfg_type_e - type of requested default * configuration to be applied */ __le32 cfg_type; /* requested connection ID or WMI_LINK_MAINTAIN_CFG_CID_BROADCAST */ __le32 cid; /* custom configuration settings to be applied (relevant only if * cfg_type==WMI_LINK_MAINTAIN_CFG_TYPE_CUSTOM) */ struct wmi_link_maintain_cfg lm_cfg; } __packed; /* WMI_LINK_MAINTAIN_CFG_READ_CMDID */ struct wmi_link_maintain_cfg_read_cmd { /* connection ID which configuration settings are requested */ __le32 cid; } __packed; /* WMI_SET_LINK_MONITOR_CMDID */ struct wmi_set_link_monitor_cmd { u8 rssi_hyst; u8 reserved[12]; u8 rssi_thresholds_list_size; s8 rssi_thresholds_list[]; } __packed; /* wmi_link_monitor_event_type */ enum wmi_link_monitor_event_type { WMI_LINK_MONITOR_NOTIF_RSSI_THRESHOLD_EVT = 0x00, WMI_LINK_MONITOR_NOTIF_TX_ERR_EVT = 0x01, WMI_LINK_MONITOR_NOTIF_THERMAL_EVT = 0x02, }; /* WMI_SET_LINK_MONITOR_EVENTID */ struct wmi_set_link_monitor_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_LINK_MONITOR_EVENTID */ struct wmi_link_monitor_event { /* link_monitor_event_type */ u8 type; s8 rssi_level; u8 reserved[2]; } __packed; /* WMI_LINK_MAINTAIN_CFG_WRITE_DONE_EVENTID */ struct wmi_link_maintain_cfg_write_done_event { /* requested connection ID */ __le32 cid; /* wmi_link_maintain_cfg_response_status_e - write status */ __le32 status; } __packed; /* \WMI_LINK_MAINTAIN_CFG_READ_DONE_EVENT */ struct wmi_link_maintain_cfg_read_done_event { /* requested connection ID */ __le32 cid; /* wmi_link_maintain_cfg_response_status_e - read status */ __le32 status; /* Retrieved configuration settings */ struct wmi_link_maintain_cfg lm_cfg; } __packed; enum wmi_traffic_suspend_status { WMI_TRAFFIC_SUSPEND_APPROVED = 0x0, WMI_TRAFFIC_SUSPEND_REJECTED_LINK_NOT_IDLE = 0x1, WMI_TRAFFIC_SUSPEND_REJECTED_DISCONNECT = 0x2, WMI_TRAFFIC_SUSPEND_REJECTED_OTHER = 0x3, }; /* WMI_TRAFFIC_SUSPEND_EVENTID */ struct wmi_traffic_suspend_event { /* enum wmi_traffic_suspend_status_e */ u8 status; } __packed; enum wmi_traffic_resume_status { WMI_TRAFFIC_RESUME_SUCCESS = 0x0, WMI_TRAFFIC_RESUME_FAILED = 0x1, }; enum wmi_resume_trigger { WMI_RESUME_TRIGGER_UNKNOWN = 0x0, WMI_RESUME_TRIGGER_HOST = 0x1, WMI_RESUME_TRIGGER_UCAST_RX = 0x2, WMI_RESUME_TRIGGER_BCAST_RX = 0x4, WMI_RESUME_TRIGGER_WMI_EVT = 0x8, WMI_RESUME_TRIGGER_DISCONNECT = 0x10, }; /* WMI_TRAFFIC_RESUME_EVENTID */ struct wmi_traffic_resume_event { /* enum wmi_traffic_resume_status */ u8 status; u8 reserved[3]; /* enum wmi_resume_trigger bitmap */ __le32 resume_triggers; } __packed; /* Power Save command completion status codes */ enum wmi_ps_cfg_cmd_status { WMI_PS_CFG_CMD_STATUS_SUCCESS = 0x00, WMI_PS_CFG_CMD_STATUS_BAD_PARAM = 0x01, /* other error */ WMI_PS_CFG_CMD_STATUS_ERROR = 0x02, }; /* Device Power Save Profiles */ enum wmi_ps_profile_type { WMI_PS_PROFILE_TYPE_DEFAULT = 0x00, WMI_PS_PROFILE_TYPE_PS_DISABLED = 0x01, WMI_PS_PROFILE_TYPE_MAX_PS = 0x02, WMI_PS_PROFILE_TYPE_LOW_LATENCY_PS = 0x03, }; /* WMI_PS_DEV_PROFILE_CFG_READ_CMDID */ struct wmi_ps_dev_profile_cfg_read_cmd { /* reserved */ __le32 reserved; } __packed; /* WMI_PS_DEV_PROFILE_CFG_READ_EVENTID */ struct wmi_ps_dev_profile_cfg_read_event { /* wmi_ps_profile_type_e */ u8 ps_profile; u8 reserved[3]; } __packed; /* WMI_PS_DEV_PROFILE_CFG_CMDID * * Power save profile to be used by the device * * Returned event: * - WMI_PS_DEV_PROFILE_CFG_EVENTID */ struct wmi_ps_dev_profile_cfg_cmd { /* wmi_ps_profile_type_e */ u8 ps_profile; u8 reserved[3]; } __packed; /* WMI_PS_DEV_PROFILE_CFG_EVENTID */ struct wmi_ps_dev_profile_cfg_event { /* wmi_ps_cfg_cmd_status_e */ __le32 status; } __packed; enum wmi_ps_level { WMI_PS_LEVEL_DEEP_SLEEP = 0x00, WMI_PS_LEVEL_SHALLOW_SLEEP = 0x01, /* awake = all PS mechanisms are disabled */ WMI_PS_LEVEL_AWAKE = 0x02, }; enum wmi_ps_deep_sleep_clk_level { /* 33k */ WMI_PS_DEEP_SLEEP_CLK_LEVEL_RTC = 0x00, /* 10k */ WMI_PS_DEEP_SLEEP_CLK_LEVEL_OSC = 0x01, /* @RTC Low latency */ WMI_PS_DEEP_SLEEP_CLK_LEVEL_RTC_LT = 0x02, WMI_PS_DEEP_SLEEP_CLK_LEVEL_XTAL = 0x03, WMI_PS_DEEP_SLEEP_CLK_LEVEL_SYSCLK = 0x04, /* Not Applicable */ WMI_PS_DEEP_SLEEP_CLK_LEVEL_N_A = 0xFF, }; /* Response by the FW to a D3 entry request */ enum wmi_ps_d3_resp_policy { WMI_PS_D3_RESP_POLICY_DEFAULT = 0x00, /* debug -D3 req is always denied */ WMI_PS_D3_RESP_POLICY_DENIED = 0x01, /* debug -D3 req is always approved */ WMI_PS_D3_RESP_POLICY_APPROVED = 0x02, }; #define WMI_AOA_MAX_DATA_SIZE (128) enum wmi_aoa_meas_status { WMI_AOA_MEAS_SUCCESS = 0x00, WMI_AOA_MEAS_PEER_INCAPABLE = 0x01, WMI_AOA_MEAS_FAILURE = 0x02, }; /* WMI_AOA_MEAS_EVENTID */ struct wmi_aoa_meas_event { u8 mac_addr[WMI_MAC_LEN]; /* channels IDs: * 0 - 58320 MHz * 1 - 60480 MHz * 2 - 62640 MHz */ u8 channel; /* enum wmi_aoa_meas_type */ u8 aoa_meas_type; /* Measurments are from RFs, defined by the mask */ __le32 meas_rf_mask; /* enum wmi_aoa_meas_status */ u8 meas_status; u8 reserved; /* Length of meas_data in bytes */ __le16 length; u8 meas_data[WMI_AOA_MAX_DATA_SIZE]; } __packed; /* WMI_SET_MGMT_RETRY_LIMIT_EVENTID */ struct wmi_set_mgmt_retry_limit_event { /* enum wmi_fw_status */ u8 status; /* alignment to 32b */ u8 reserved[3]; } __packed; /* WMI_GET_MGMT_RETRY_LIMIT_EVENTID */ struct wmi_get_mgmt_retry_limit_event { /* MAC retransmit limit for mgmt frames */ u8 mgmt_retry_limit; /* alignment to 32b */ u8 reserved[3]; } __packed; /* WMI_TOF_GET_CAPABILITIES_EVENTID */ struct wmi_tof_get_capabilities_event { u8 ftm_capability; /* maximum supported number of destination to start TOF */ u8 max_num_of_dest; /* maximum supported number of measurements per burst */ u8 max_num_of_meas_per_burst; u8 reserved; /* maximum supported multi bursts */ __le16 max_multi_bursts_sessions; /* maximum supported FTM burst duration , wmi_tof_burst_duration_e */ __le16 max_ftm_burst_duration; /* AOA supported types */ __le32 aoa_supported_types; } __packed; /* WMI_SET_THERMAL_THROTTLING_CFG_EVENTID */ struct wmi_set_thermal_throttling_cfg_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_GET_THERMAL_THROTTLING_CFG_EVENTID */ struct wmi_get_thermal_throttling_cfg_event { /* Status data */ struct wmi_tt_data tt_data; } __packed; enum wmi_tof_session_end_status { WMI_TOF_SESSION_END_NO_ERROR = 0x00, WMI_TOF_SESSION_END_FAIL = 0x01, WMI_TOF_SESSION_END_PARAMS_ERROR = 0x02, WMI_TOF_SESSION_END_ABORTED = 0x03, WMI_TOF_SESSION_END_BUSY = 0x04, }; /* WMI_TOF_SESSION_END_EVENTID */ struct wmi_tof_session_end_event { /* FTM session ID */ __le32 session_id; /* wmi_tof_session_end_status_e */ u8 status; u8 reserved[3]; } __packed; /* WMI_TOF_SET_LCI_EVENTID */ struct wmi_tof_set_lci_event { /* enum wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_TOF_SET_LCR_EVENTID */ struct wmi_tof_set_lcr_event { /* enum wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* Responder FTM Results */ struct wmi_responder_ftm_res { u8 t1[6]; u8 t2[6]; u8 t3[6]; u8 t4[6]; __le16 tod_err; __le16 toa_err; __le16 tod_err_initiator; __le16 toa_err_initiator; } __packed; enum wmi_tof_ftm_per_dest_res_status { WMI_PER_DEST_RES_NO_ERROR = 0x00, WMI_PER_DEST_RES_TX_RX_FAIL = 0x01, WMI_PER_DEST_RES_PARAM_DONT_MATCH = 0x02, }; enum wmi_tof_ftm_per_dest_res_flags { WMI_PER_DEST_RES_REQ_START = 0x01, WMI_PER_DEST_RES_BURST_REPORT_END = 0x02, WMI_PER_DEST_RES_REQ_END = 0x04, WMI_PER_DEST_RES_PARAM_UPDATE = 0x08, }; /* WMI_TOF_FTM_PER_DEST_RES_EVENTID */ struct wmi_tof_ftm_per_dest_res_event { /* FTM session ID */ __le32 session_id; /* destination MAC address */ u8 dst_mac[WMI_MAC_LEN]; /* wmi_tof_ftm_per_dest_res_flags_e */ u8 flags; /* wmi_tof_ftm_per_dest_res_status_e */ u8 status; /* responder ASAP */ u8 responder_asap; /* responder number of FTM per burst */ u8 responder_num_ftm_per_burst; /* responder number of FTM burst exponent */ u8 responder_num_ftm_bursts_exp; /* responder burst duration ,wmi_tof_burst_duration_e */ u8 responder_burst_duration; /* responder burst period, indicate interval between two consecutive * burst instances, in units of 100 ms */ __le16 responder_burst_period; /* receive burst counter */ __le16 bursts_cnt; /* tsf of responder start burst */ __le32 tsf_sync; /* actual received ftm per burst */ u8 actual_ftm_per_burst; /* Measurments are from RFs, defined by the mask */ __le32 meas_rf_mask; u8 reserved0[3]; struct wmi_responder_ftm_res responder_ftm_res[]; } __packed; /* WMI_TOF_CFG_RESPONDER_EVENTID */ struct wmi_tof_cfg_responder_event { /* enum wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; enum wmi_tof_channel_info_type { WMI_TOF_CHANNEL_INFO_AOA = 0x00, WMI_TOF_CHANNEL_INFO_LCI = 0x01, WMI_TOF_CHANNEL_INFO_LCR = 0x02, WMI_TOF_CHANNEL_INFO_VENDOR_SPECIFIC = 0x03, WMI_TOF_CHANNEL_INFO_CIR = 0x04, WMI_TOF_CHANNEL_INFO_RSSI = 0x05, WMI_TOF_CHANNEL_INFO_SNR = 0x06, WMI_TOF_CHANNEL_INFO_DEBUG = 0x07, }; /* WMI_TOF_CHANNEL_INFO_EVENTID */ struct wmi_tof_channel_info_event { /* FTM session ID */ __le32 session_id; /* destination MAC address */ u8 dst_mac[WMI_MAC_LEN]; /* wmi_tof_channel_info_type_e */ u8 type; /* data report length */ u8 len; /* data report payload */ u8 report[]; } __packed; /* WMI_TOF_SET_TX_RX_OFFSET_EVENTID */ struct wmi_tof_set_tx_rx_offset_event { /* enum wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_TOF_GET_TX_RX_OFFSET_EVENTID */ struct wmi_tof_get_tx_rx_offset_event { /* enum wmi_fw_status */ u8 status; /* RF index used to read the offsets */ u8 rf_index; u8 reserved1[2]; /* TX delay offset */ __le32 tx_offset; /* RX delay offset */ __le32 rx_offset; /* Offset to strongest tap of CIR */ __le32 precursor; } __packed; /* Result status codes for WMI commands */ enum wmi_rf_sector_status { WMI_RF_SECTOR_STATUS_SUCCESS = 0x00, WMI_RF_SECTOR_STATUS_BAD_PARAMETERS_ERROR = 0x01, WMI_RF_SECTOR_STATUS_BUSY_ERROR = 0x02, WMI_RF_SECTOR_STATUS_NOT_SUPPORTED_ERROR = 0x03, }; /* Types of the RF sector (TX,RX) */ enum wmi_rf_sector_type { WMI_RF_SECTOR_TYPE_RX = 0x00, WMI_RF_SECTOR_TYPE_TX = 0x01, }; /* Content of RF Sector (six 32-bits registers) */ struct wmi_rf_sector_info { /* Phase values for RF Chains[15-0] (2bits per RF chain) */ __le32 psh_hi; /* Phase values for RF Chains[31-16] (2bits per RF chain) */ __le32 psh_lo; /* ETYPE Bit0 for all RF chains[31-0] - bit0 of Edge amplifier gain * index */ __le32 etype0; /* ETYPE Bit1 for all RF chains[31-0] - bit1 of Edge amplifier gain * index */ __le32 etype1; /* ETYPE Bit2 for all RF chains[31-0] - bit2 of Edge amplifier gain * index */ __le32 etype2; /* D-Type values (3bits each) for 8 Distribution amplifiers + X16 * switch bits */ __le32 dtype_swch_off; } __packed; #define WMI_INVALID_RF_SECTOR_INDEX (0xFFFF) #define WMI_MAX_RF_MODULES_NUM (8) /* WMI_GET_RF_SECTOR_PARAMS_CMD */ struct wmi_get_rf_sector_params_cmd { /* Sector number to be retrieved */ __le16 sector_idx; /* enum wmi_rf_sector_type - type of requested RF sector */ u8 sector_type; /* bitmask vector specifying destination RF modules */ u8 rf_modules_vec; } __packed; /* \WMI_GET_RF_SECTOR_PARAMS_DONE_EVENT */ struct wmi_get_rf_sector_params_done_event { /* result status of WMI_GET_RF_SECTOR_PARAMS_CMD (enum * wmi_rf_sector_status) */ u8 status; /* align next field to U64 boundary */ u8 reserved[7]; /* TSF timestamp when RF sectors where retrieved */ __le64 tsf; /* Content of RF sector retrieved from each RF module */ struct wmi_rf_sector_info sectors_info[WMI_MAX_RF_MODULES_NUM]; } __packed; /* WMI_SET_RF_SECTOR_PARAMS_CMD */ struct wmi_set_rf_sector_params_cmd { /* Sector number to be retrieved */ __le16 sector_idx; /* enum wmi_rf_sector_type - type of requested RF sector */ u8 sector_type; /* bitmask vector specifying destination RF modules */ u8 rf_modules_vec; /* Content of RF sector to be written to each RF module */ struct wmi_rf_sector_info sectors_info[WMI_MAX_RF_MODULES_NUM]; } __packed; /* \WMI_SET_RF_SECTOR_PARAMS_DONE_EVENT */ struct wmi_set_rf_sector_params_done_event { /* result status of WMI_SET_RF_SECTOR_PARAMS_CMD (enum * wmi_rf_sector_status) */ u8 status; } __packed; /* WMI_GET_SELECTED_RF_SECTOR_INDEX_CMD - Get RF sector index selected by * TXSS/BRP for communication with specified CID */ struct wmi_get_selected_rf_sector_index_cmd { /* Connection/Station ID in [0:7] range */ u8 cid; /* type of requested RF sector (enum wmi_rf_sector_type) */ u8 sector_type; /* align to U32 boundary */ u8 reserved[2]; } __packed; /* \WMI_GET_SELECTED_RF_SECTOR_INDEX_DONE_EVENT - Returns retrieved RF sector * index selected by TXSS/BRP for communication with specified CID */ struct wmi_get_selected_rf_sector_index_done_event { /* Retrieved sector index selected in TXSS (for TX sector request) or * BRP (for RX sector request) */ __le16 sector_idx; /* result status of WMI_GET_SELECTED_RF_SECTOR_INDEX_CMD (enum * wmi_rf_sector_status) */ u8 status; /* align next field to U64 boundary */ u8 reserved[5]; /* TSF timestamp when result was retrieved */ __le64 tsf; } __packed; /* WMI_SET_SELECTED_RF_SECTOR_INDEX_CMD - Force RF sector index for * communication with specified CID. Assumes that TXSS/BRP is disabled by * other command */ struct wmi_set_selected_rf_sector_index_cmd { /* Connection/Station ID in [0:7] range */ u8 cid; /* type of requested RF sector (enum wmi_rf_sector_type) */ u8 sector_type; /* Forced sector index */ __le16 sector_idx; } __packed; /* \WMI_SET_SELECTED_RF_SECTOR_INDEX_DONE_EVENT - Success/Fail status for * WMI_SET_SELECTED_RF_SECTOR_INDEX_CMD */ struct wmi_set_selected_rf_sector_index_done_event { /* result status of WMI_SET_SELECTED_RF_SECTOR_INDEX_CMD (enum * wmi_rf_sector_status) */ u8 status; /* align to U32 boundary */ u8 reserved[3]; } __packed; /* WMI_SET_RF_SECTOR_ON_CMD - Activates specified sector for specified rf * modules */ struct wmi_set_rf_sector_on_cmd { /* Sector index to be activated */ __le16 sector_idx; /* type of requested RF sector (enum wmi_rf_sector_type) */ u8 sector_type; /* bitmask vector specifying destination RF modules */ u8 rf_modules_vec; } __packed; /* \WMI_SET_RF_SECTOR_ON_DONE_EVENT - Success/Fail status for * WMI_SET_RF_SECTOR_ON_CMD */ struct wmi_set_rf_sector_on_done_event { /* result status of WMI_SET_RF_SECTOR_ON_CMD (enum * wmi_rf_sector_status) */ u8 status; /* align to U32 boundary */ u8 reserved[3]; } __packed; enum wmi_sector_sweep_type { WMI_SECTOR_SWEEP_TYPE_TXSS = 0x00, WMI_SECTOR_SWEEP_TYPE_BCON = 0x01, WMI_SECTOR_SWEEP_TYPE_TXSS_AND_BCON = 0x02, WMI_SECTOR_SWEEP_TYPE_NUM = 0x03, }; /* WMI_PRIO_TX_SECTORS_ORDER_CMDID * * Set the order of TX sectors in TXSS and/or Beacon(AP). * * Returned event: * - WMI_PRIO_TX_SECTORS_ORDER_EVENTID */ struct wmi_prio_tx_sectors_order_cmd { /* tx sectors order to be applied, 0xFF for end of array */ u8 tx_sectors_priority_array[MAX_NUM_OF_SECTORS]; /* enum wmi_sector_sweep_type, TXSS and/or Beacon */ u8 sector_sweep_type; /* needed only for TXSS configuration */ u8 cid; /* alignment to 32b */ u8 reserved[2]; } __packed; /* completion status codes */ enum wmi_prio_tx_sectors_cmd_status { WMI_PRIO_TX_SECT_CMD_STATUS_SUCCESS = 0x00, WMI_PRIO_TX_SECT_CMD_STATUS_BAD_PARAM = 0x01, /* other error */ WMI_PRIO_TX_SECT_CMD_STATUS_ERROR = 0x02, }; /* WMI_PRIO_TX_SECTORS_ORDER_EVENTID */ struct wmi_prio_tx_sectors_order_event { /* enum wmi_prio_tx_sectors_cmd_status */ u8 status; /* alignment to 32b */ u8 reserved[3]; } __packed; struct wmi_prio_tx_sectors_num_cmd { /* [0-128], 0 = No changes */ u8 beacon_number_of_sectors; /* [0-128], 0 = No changes */ u8 txss_number_of_sectors; /* [0-8] needed only for TXSS configuration */ u8 cid; } __packed; /* WMI_PRIO_TX_SECTORS_NUMBER_CMDID * * Set the number of active sectors in TXSS and/or Beacon. * * Returned event: * - WMI_PRIO_TX_SECTORS_NUMBER_EVENTID */ struct wmi_prio_tx_sectors_number_cmd { struct wmi_prio_tx_sectors_num_cmd active_sectors_num; /* alignment to 32b */ u8 reserved; } __packed; /* WMI_PRIO_TX_SECTORS_NUMBER_EVENTID */ struct wmi_prio_tx_sectors_number_event { /* enum wmi_prio_tx_sectors_cmd_status */ u8 status; /* alignment to 32b */ u8 reserved[3]; } __packed; /* WMI_PRIO_TX_SECTORS_SET_DEFAULT_CFG_CMDID * * Set default sectors order and number (hard coded in board file) * in TXSS and/or Beacon. * * Returned event: * - WMI_PRIO_TX_SECTORS_SET_DEFAULT_CFG_EVENTID */ struct wmi_prio_tx_sectors_set_default_cfg_cmd { /* enum wmi_sector_sweep_type, TXSS and/or Beacon */ u8 sector_sweep_type; /* needed only for TXSS configuration */ u8 cid; /* alignment to 32b */ u8 reserved[2]; } __packed; /* WMI_PRIO_TX_SECTORS_SET_DEFAULT_CFG_EVENTID */ struct wmi_prio_tx_sectors_set_default_cfg_event { /* enum wmi_prio_tx_sectors_cmd_status */ u8 status; /* alignment to 32b */ u8 reserved[3]; } __packed; /* WMI_SET_SILENT_RSSI_TABLE_DONE_EVENTID */ struct wmi_set_silent_rssi_table_done_event { /* enum wmi_silent_rssi_status */ __le32 status; /* enum wmi_silent_rssi_table */ __le32 table; } __packed; /* WMI_VRING_SWITCH_TIMING_CONFIG_EVENTID */ struct wmi_vring_switch_timing_config_event { /* enum wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_GET_ASSOC_LIST_RES_EVENTID */ struct wmi_assoc_sta_info { u8 mac[WMI_MAC_LEN]; u8 omni_index_address; u8 reserved; } __packed; #define WMI_GET_ASSOC_LIST_SIZE (8) /* WMI_GET_ASSOC_LIST_RES_EVENTID * Returns up to MAX_ASSOC_STA_LIST_SIZE associated STAs */ struct wmi_get_assoc_list_res_event { struct wmi_assoc_sta_info assoc_sta_list[WMI_GET_ASSOC_LIST_SIZE]; /* STA count */ u8 count; u8 reserved[3]; } __packed; /* WMI_BF_CONTROL_EVENTID - deprecated */ struct wmi_bf_control_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_BF_CONTROL_EX_EVENTID */ struct wmi_bf_control_ex_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_COMMAND_NOT_SUPPORTED_EVENTID */ struct wmi_command_not_supported_event { /* device id */ u8 mid; u8 reserved0; __le16 command_id; /* for UT command only, otherwise reserved */ __le16 command_subtype; __le16 reserved1; } __packed; /* WMI_TSF_SYNC_CMDID */ struct wmi_tsf_sync_cmd { /* The time interval to send announce frame in one BI */ u8 interval_ms; /* The mcs to send announce frame */ u8 mcs; u8 reserved[6]; } __packed; /* WMI_TSF_SYNC_STATUS_EVENTID */ enum wmi_tsf_sync_status { WMI_TSF_SYNC_SUCCESS = 0x00, WMI_TSF_SYNC_FAILED = 0x01, WMI_TSF_SYNC_REJECTED = 0x02, }; /* WMI_TSF_SYNC_STATUS_EVENTID */ struct wmi_tsf_sync_status_event { /* enum wmi_tsf_sync_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_GET_CCA_INDICATIONS_EVENTID */ struct wmi_get_cca_indications_event { /* wmi_fw_status */ u8 status; /* CCA-Energy Detect in percentage over last BI (0..100) */ u8 cca_ed_percent; /* Averaged CCA-Energy Detect in percent over number of BIs (0..100) */ u8 cca_ed_avg_percent; /* NAV percent over last BI (0..100) */ u8 nav_percent; /* Averaged NAV percent over number of BIs (0..100) */ u8 nav_avg_percent; u8 reserved[3]; } __packed; /* WMI_SET_CCA_INDICATIONS_BI_AVG_NUM_CMDID */ struct wmi_set_cca_indications_bi_avg_num_cmd { /* set the number of bis to average cca_ed (0..255) */ u8 bi_number; u8 reserved[3]; } __packed; /* WMI_SET_CCA_INDICATIONS_BI_AVG_NUM_EVENTID */ struct wmi_set_cca_indications_bi_avg_num_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_INTERNAL_FW_SET_CHANNEL */ struct wmi_internal_fw_set_channel_event { u8 channel_num; u8 reserved[3]; } __packed; /* WMI_LINK_STATS_CONFIG_DONE_EVENTID */ struct wmi_link_stats_config_done_event { /* wmi_fw_status_e */ u8 status; u8 reserved[3]; } __packed; /* WMI_LINK_STATS_EVENTID */ struct wmi_link_stats_event { __le64 tsf; __le16 payload_size; u8 has_next; u8 reserved[5]; /* a stream of wmi_link_stats_record_s */ u8 payload[]; } __packed; /* WMI_LINK_STATS_EVENT */ struct wmi_link_stats_record { /* wmi_link_stats_record_type_e */ u8 record_type_id; u8 reserved; __le16 record_size; u8 record[]; } __packed; /* WMI_LINK_STATS_TYPE_BASIC */ struct wmi_link_stats_basic { u8 cid; s8 rssi; u8 sqi; u8 bf_mcs; u8 per_average; u8 selected_rfc; u8 rx_effective_ant_num; u8 my_rx_sector; u8 my_tx_sector; u8 other_rx_sector; u8 other_tx_sector; u8 reserved[7]; /* 1/4 Db units */ __le16 snr; __le32 tx_tpt; __le32 tx_goodput; __le32 rx_goodput; __le32 bf_count; __le32 rx_bcast_frames; } __packed; /* WMI_LINK_STATS_TYPE_GLOBAL */ struct wmi_link_stats_global { /* all ack-able frames */ __le32 rx_frames; /* all ack-able frames */ __le32 tx_frames; __le32 rx_ba_frames; __le32 tx_ba_frames; __le32 tx_beacons; __le32 rx_mic_errors; __le32 rx_crc_errors; __le32 tx_fail_no_ack; u8 reserved[8]; } __packed; /* WMI_SET_GRANT_MCS_EVENTID */ struct wmi_set_grant_mcs_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_SET_AP_SLOT_SIZE_EVENTID */ struct wmi_set_ap_slot_size_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_SET_VRING_PRIORITY_WEIGHT_EVENTID */ struct wmi_set_vring_priority_weight_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_SET_VRING_PRIORITY_EVENTID */ struct wmi_set_vring_priority_event { /* wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_RADAR_PCI_CTRL_BLOCK struct */ struct wmi_radar_pci_ctrl_block { /* last fw tail address index */ __le32 fw_tail_index; /* last SW head address index known to FW */ __le32 sw_head_index; __le32 last_wr_pulse_tsf_low; __le32 last_wr_pulse_count; __le32 last_wr_in_bytes; __le32 last_wr_pulse_id; __le32 last_wr_burst_id; /* When pre overflow detected, advance sw head in unit of pulses */ __le32 sw_head_inc; __le32 reserved[8]; } __packed; /* WMI_RBUFCAP_CFG_CMD */ struct wmi_rbufcap_cfg_cmd { u8 enable; u8 reserved; /* RBUFCAP indicates rx space unavailable when number of rx * descriptors drops below this threshold. Set 0 to use system * default */ __le16 rx_desc_threshold; } __packed; /* WMI_RBUFCAP_CFG_EVENTID */ struct wmi_rbufcap_cfg_event { /* enum wmi_fw_status */ u8 status; u8 reserved[3]; } __packed; /* WMI_TEMP_SENSE_ALL_DONE_EVENTID * Measure MAC and all radio temperatures */ struct wmi_temp_sense_all_done_event { /* enum wmi_fw_status */ u8 status; /* Bitmap of connected RFs */ u8 rf_bitmap; u8 reserved[2]; /* Temperature times 1000 (actual temperature will be achieved by * dividing the value by 1000). When temperature cannot be read from * device return WMI_INVALID_TEMPERATURE */ __le32 rf_t1000[WMI_MAX_XIF_PORTS_NUM]; /* Temperature times 1000 (actual temperature will be achieved by * dividing the value by 1000). When temperature cannot be read from * device return WMI_INVALID_TEMPERATURE */ __le32 baseband_t1000; } __packed; #endif /* __WILOCITY_WMI_H__ */ |