Linux Audio

Check our new training course

Embedded Linux Audio

Check our new training course
with Creative Commons CC-BY-SA
lecture materials

Bootlin logo

Elixir Cross Referencer

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
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
/*****************************************************************************

            (c) Cambridge Silicon Radio Limited 2012
            All rights reserved and confidential information of CSR

            Refer to LICENSE.txt included with this source for details
            on the license terms.

*****************************************************************************/

/* Note: this is an auto-generated file. */

#ifndef CSR_WIFI_SME_PRIM_H__
#define CSR_WIFI_SME_PRIM_H__

#include <linux/types.h>
#include "csr_prim_defs.h"
#include "csr_sched.h"
#include "csr_wifi_common.h"
#include "csr_result.h"
#include "csr_wifi_fsm_event.h"

#define CSR_WIFI_SME_PRIM                                               (0x0404)

typedef CsrPrim CsrWifiSmePrim;


/*******************************************************************************

  NAME
    CsrWifiSme80211NetworkType

  DESCRIPTION
    Indicates the physical layer of the network

 VALUES
    CSR_WIFI_SME_80211_NETWORK_TYPE_DS
                   - Direct-sequence spread spectrum
    CSR_WIFI_SME_80211_NETWORK_TYPE_OFDM24
                   - Orthogonal Frequency Division Multiplexing at 2.4 GHz
    CSR_WIFI_SME_80211_NETWORK_TYPE_OFDM5
                   - Orthogonal Frequency Division Multiplexing at 5 GHz
    CSR_WIFI_SME_80211_NETWORK_TYPE_AUTO
                   - Automatic

*******************************************************************************/
typedef u8 CsrWifiSme80211NetworkType;
#define CSR_WIFI_SME_80211_NETWORK_TYPE_DS       ((CsrWifiSme80211NetworkType) 0x00)
#define CSR_WIFI_SME_80211_NETWORK_TYPE_OFDM24   ((CsrWifiSme80211NetworkType) 0x01)
#define CSR_WIFI_SME_80211_NETWORK_TYPE_OFDM5    ((CsrWifiSme80211NetworkType) 0x02)
#define CSR_WIFI_SME_80211_NETWORK_TYPE_AUTO     ((CsrWifiSme80211NetworkType) 0x03)

/*******************************************************************************

  NAME
    CsrWifiSme80211PrivacyMode

  DESCRIPTION
    Bits to enable or disable the privacy mode

 VALUES
    CSR_WIFI_SME_80211_PRIVACY_MODE_DISABLED
                   - Privacy mode is enabled: use of WEP for confidentiality is
                     required.
    CSR_WIFI_SME_80211_PRIVACY_MODE_ENABLED
                   - Privacy mode is disabled

*******************************************************************************/
typedef u8 CsrWifiSme80211PrivacyMode;
#define CSR_WIFI_SME_80211_PRIVACY_MODE_DISABLED   ((CsrWifiSme80211PrivacyMode) 0x00)
#define CSR_WIFI_SME_80211_PRIVACY_MODE_ENABLED    ((CsrWifiSme80211PrivacyMode) 0x01)

/*******************************************************************************

  NAME
    CsrWifiSme80211dTrustLevel

  DESCRIPTION
    Level of trust for the information coming from the network

 VALUES
    CSR_WIFI_SME_80211D_TRUST_LEVEL_STRICT
                   - Start with passive scanning and only accept country IE for
                     updating channel lists
    CSR_WIFI_SME_80211D_TRUST_LEVEL_ADJUNCT
                   - As above plus accept adjunct technology location
                     information
    CSR_WIFI_SME_80211D_TRUST_LEVEL_BSS
                   - As above accept plus receiving channel from infrastructure
                     networks
    CSR_WIFI_SME_80211D_TRUST_LEVEL_IBSS
                   - As above accept plus receiving channel from the ad hoc
                     networks
    CSR_WIFI_SME_80211D_TRUST_LEVEL_MIB
                   - Start with active scanning with list of active channels
                     from the MIB and accept as above
    CSR_WIFI_SME_80211D_TRUST_LEVEL_DISABLED
                   - Start with active scanning with list of active channels
                     from the MIB and ignore any channel information from the
                     network

*******************************************************************************/
typedef u8 CsrWifiSme80211dTrustLevel;
#define CSR_WIFI_SME_80211D_TRUST_LEVEL_STRICT     ((CsrWifiSme80211dTrustLevel) 0x01)
#define CSR_WIFI_SME_80211D_TRUST_LEVEL_ADJUNCT    ((CsrWifiSme80211dTrustLevel) 0x02)
#define CSR_WIFI_SME_80211D_TRUST_LEVEL_BSS        ((CsrWifiSme80211dTrustLevel) 0x03)
#define CSR_WIFI_SME_80211D_TRUST_LEVEL_IBSS       ((CsrWifiSme80211dTrustLevel) 0x04)
#define CSR_WIFI_SME_80211D_TRUST_LEVEL_MIB        ((CsrWifiSme80211dTrustLevel) 0x05)
#define CSR_WIFI_SME_80211D_TRUST_LEVEL_DISABLED   ((CsrWifiSme80211dTrustLevel) 0x06)

/*******************************************************************************

  NAME
    CsrWifiSmeAmpStatus

  DESCRIPTION
    AMP Current Status

 VALUES
    CSR_WIFI_SME_AMP_ACTIVE   - AMP ACTIVE.
    CSR_WIFI_SME_AMP_INACTIVE - AMP INACTIVE

*******************************************************************************/
typedef u8 CsrWifiSmeAmpStatus;
#define CSR_WIFI_SME_AMP_ACTIVE     ((CsrWifiSmeAmpStatus) 0x00)
#define CSR_WIFI_SME_AMP_INACTIVE   ((CsrWifiSmeAmpStatus) 0x01)

/*******************************************************************************

  NAME
    CsrWifiSmeAuthMode

  DESCRIPTION
    Define bits for CsrWifiSmeAuthMode

 VALUES
    CSR_WIFI_SME_AUTH_MODE_80211_OPEN
                   - Connects to an open system network (i.e. no authentication,
                     no encryption) or to a WEP enabled network.
    CSR_WIFI_SME_AUTH_MODE_80211_SHARED
                   - Connect to a WEP enabled network.
    CSR_WIFI_SME_AUTH_MODE_8021X_WPA
                   - Connects to a WPA Enterprise enabled network.
    CSR_WIFI_SME_AUTH_MODE_8021X_WPAPSK
                   - Connects to a WPA with Pre-Shared Key enabled network.
    CSR_WIFI_SME_AUTH_MODE_8021X_WPA2
                   - Connects to a WPA2 Enterprise enabled network.
    CSR_WIFI_SME_AUTH_MODE_8021X_WPA2PSK
                   - Connects to a WPA2 with Pre-Shared Key enabled network.
    CSR_WIFI_SME_AUTH_MODE_8021X_CCKM
                   - Connects to a CCKM enabled network.
    CSR_WIFI_SME_AUTH_MODE_WAPI_WAI
                   - Connects to a WAPI Enterprise enabled network.
    CSR_WIFI_SME_AUTH_MODE_WAPI_WAIPSK
                   - Connects to a WAPI with Pre-Shared Key enabled network.
    CSR_WIFI_SME_AUTH_MODE_8021X_OTHER1X
                   - For future use.

*******************************************************************************/
typedef u16 CsrWifiSmeAuthMode;
#define CSR_WIFI_SME_AUTH_MODE_80211_OPEN      ((CsrWifiSmeAuthMode) 0x0001)
#define CSR_WIFI_SME_AUTH_MODE_80211_SHARED    ((CsrWifiSmeAuthMode) 0x0002)
#define CSR_WIFI_SME_AUTH_MODE_8021X_WPA       ((CsrWifiSmeAuthMode) 0x0004)
#define CSR_WIFI_SME_AUTH_MODE_8021X_WPAPSK    ((CsrWifiSmeAuthMode) 0x0008)
#define CSR_WIFI_SME_AUTH_MODE_8021X_WPA2      ((CsrWifiSmeAuthMode) 0x0010)
#define CSR_WIFI_SME_AUTH_MODE_8021X_WPA2PSK   ((CsrWifiSmeAuthMode) 0x0020)
#define CSR_WIFI_SME_AUTH_MODE_8021X_CCKM      ((CsrWifiSmeAuthMode) 0x0040)
#define CSR_WIFI_SME_AUTH_MODE_WAPI_WAI        ((CsrWifiSmeAuthMode) 0x0080)
#define CSR_WIFI_SME_AUTH_MODE_WAPI_WAIPSK     ((CsrWifiSmeAuthMode) 0x0100)
#define CSR_WIFI_SME_AUTH_MODE_8021X_OTHER1X   ((CsrWifiSmeAuthMode) 0x0200)

/*******************************************************************************

  NAME
    CsrWifiSmeBasicUsability

  DESCRIPTION
    Indicates the usability level of a channel

 VALUES
    CSR_WIFI_SME_BASIC_USABILITY_UNUSABLE
                   - Not usable; connection not recommended
    CSR_WIFI_SME_BASIC_USABILITY_POOR
                   - Poor quality; connect only if nothing better is available
    CSR_WIFI_SME_BASIC_USABILITY_SATISFACTORY
                   - Quality is satisfactory
    CSR_WIFI_SME_BASIC_USABILITY_NOT_CONNECTED
                   - Not connected

*******************************************************************************/
typedef u8 CsrWifiSmeBasicUsability;
#define CSR_WIFI_SME_BASIC_USABILITY_UNUSABLE        ((CsrWifiSmeBasicUsability) 0x00)
#define CSR_WIFI_SME_BASIC_USABILITY_POOR            ((CsrWifiSmeBasicUsability) 0x01)
#define CSR_WIFI_SME_BASIC_USABILITY_SATISFACTORY    ((CsrWifiSmeBasicUsability) 0x02)
#define CSR_WIFI_SME_BASIC_USABILITY_NOT_CONNECTED   ((CsrWifiSmeBasicUsability) 0x03)

/*******************************************************************************

  NAME
    CsrWifiSmeBssType

  DESCRIPTION
    Indicates the BSS type

 VALUES
    CSR_WIFI_SME_BSS_TYPE_INFRASTRUCTURE
                   - Infrastructure BSS.
    CSR_WIFI_SME_BSS_TYPE_ADHOC
                   - Ad hoc or Independent BSS.
    CSR_WIFI_SME_BSS_TYPE_ANY_BSS
                   - Specifies any type of BSS
    CSR_WIFI_SME_BSS_TYPE_P2P
                   - Specifies P2P

*******************************************************************************/
typedef u8 CsrWifiSmeBssType;
#define CSR_WIFI_SME_BSS_TYPE_INFRASTRUCTURE   ((CsrWifiSmeBssType) 0x00)
#define CSR_WIFI_SME_BSS_TYPE_ADHOC            ((CsrWifiSmeBssType) 0x01)
#define CSR_WIFI_SME_BSS_TYPE_ANY_BSS          ((CsrWifiSmeBssType) 0x02)
#define CSR_WIFI_SME_BSS_TYPE_P2P              ((CsrWifiSmeBssType) 0x03)

/*******************************************************************************

  NAME
    CsrWifiSmeCoexScheme

  DESCRIPTION
    Options for the coexistence signalling
    Same as MibValues

 VALUES
    CSR_WIFI_SME_COEX_SCHEME_DISABLED
                   - The coexistence signalling is disabled
    CSR_WIFI_SME_COEX_SCHEME_CSR
                   - Basic CSR coexistence signalling
    CSR_WIFI_SME_COEX_SCHEME_CSR_CHANNEL
                   - Full CSR coexistence signalling
    CSR_WIFI_SME_COEX_SCHEME_PTA
                   - Packet Traffic Arbitrator coexistence signalling

*******************************************************************************/
typedef u8 CsrWifiSmeCoexScheme;
#define CSR_WIFI_SME_COEX_SCHEME_DISABLED      ((CsrWifiSmeCoexScheme) 0x00)
#define CSR_WIFI_SME_COEX_SCHEME_CSR           ((CsrWifiSmeCoexScheme) 0x01)
#define CSR_WIFI_SME_COEX_SCHEME_CSR_CHANNEL   ((CsrWifiSmeCoexScheme) 0x02)
#define CSR_WIFI_SME_COEX_SCHEME_PTA           ((CsrWifiSmeCoexScheme) 0x03)

/*******************************************************************************

  NAME
    CsrWifiSmeControlIndication

  DESCRIPTION
    Indicates the reason why the Wi-Fi has been switched off.
    The values of this type are used across the NME/SME/Router API's and they
    must be kept consistent with the corresponding types in the .xml of the
    ottherinterfaces

 VALUES
    CSR_WIFI_SME_CONTROL_INDICATION_ERROR
                   - An unrecoverable error (for example, an unrecoverable SDIO
                     error) has occurred.
                     The wireless manager application should reinitialise the
                     chip by calling CSR_WIFI_SME_WIFI_ON_REQ.
    CSR_WIFI_SME_CONTROL_INDICATION_EXIT
                   - The chip became unavailable due to an external action, for
                     example, when a plug-in card is ejected or the driver is
                     unloaded.
    CSR_WIFI_SME_CONTROL_INDICATION_USER_REQUESTED
                   - The Wi-Fi has been switched off as the wireless manager
                     application has sent CSR_WIFI_SME_WIFI_OFF_REQ

*******************************************************************************/
typedef u8 CsrWifiSmeControlIndication;
#define CSR_WIFI_SME_CONTROL_INDICATION_ERROR            ((CsrWifiSmeControlIndication) 0x01)
#define CSR_WIFI_SME_CONTROL_INDICATION_EXIT             ((CsrWifiSmeControlIndication) 0x02)
#define CSR_WIFI_SME_CONTROL_INDICATION_USER_REQUESTED   ((CsrWifiSmeControlIndication) 0x03)

/*******************************************************************************

  NAME
    CsrWifiSmeCtsProtectionType

  DESCRIPTION
    SME CTS Protection Types

 VALUES
    CSR_WIFI_SME_CTS_PROTECTION_AUTOMATIC
                   - AP CTS Protection automatic based on non-ERP station in own
                     BSS or neighbouring BSS on the same channel based on OLBC.
                     This requires monitoring of beacons from other APs.
    CSR_WIFI_SME_CTS_PROTECTION_FORCE_ENABLED
                   - AP CTS Protection Force enabled
    CSR_WIFI_SME_CTS_PROTECTION_FORCE_DISABLED
                   - AP CTS Protection Force disabled.
    CSR_WIFI_SME_CTS_PROTECTION_AUTOMATIC_NO_OLBC
                   - AP CTS Protection automatic without considering OLBC but
                     considering non-ERP station in the own BSS Valid only if AP
                     is configured to work in 802.11bg or 802.11g mode otherwise
                     this option specifies the same behaviour as AUTOMATIC

*******************************************************************************/
typedef u8 CsrWifiSmeCtsProtectionType;
#define CSR_WIFI_SME_CTS_PROTECTION_AUTOMATIC           ((CsrWifiSmeCtsProtectionType) 0x00)
#define CSR_WIFI_SME_CTS_PROTECTION_FORCE_ENABLED       ((CsrWifiSmeCtsProtectionType) 0x01)
#define CSR_WIFI_SME_CTS_PROTECTION_FORCE_DISABLED      ((CsrWifiSmeCtsProtectionType) 0x02)
#define CSR_WIFI_SME_CTS_PROTECTION_AUTOMATIC_NO_OLBC   ((CsrWifiSmeCtsProtectionType) 0x03)

/*******************************************************************************

  NAME
    CsrWifiSmeD3AutoScanMode

  DESCRIPTION
    Autonomous scan status while in D3 suspended period

 VALUES
    CSR_WIFI_SME_D3AUTO_SCAN_MODE_PSON
                   - Autonomous scan stays on
    CSR_WIFI_SME_D3AUTO_SCAN_MODE_PSOFF
                   - Autonomous scan is switched off
    CSR_WIFI_SME_D3AUTO_SCAN_MODE_PSAUTO
                   - Automatically select autoscanning behaviour.
                     CURRENTLY NOT SUPPORTED

*******************************************************************************/
typedef u8 CsrWifiSmeD3AutoScanMode;
#define CSR_WIFI_SME_D3AUTO_SCAN_MODE_PSON     ((CsrWifiSmeD3AutoScanMode) 0x00)
#define CSR_WIFI_SME_D3AUTO_SCAN_MODE_PSOFF    ((CsrWifiSmeD3AutoScanMode) 0x01)
#define CSR_WIFI_SME_D3AUTO_SCAN_MODE_PSAUTO   ((CsrWifiSmeD3AutoScanMode) 0x02)

/*******************************************************************************

  NAME
    CsrWifiSmeEncryption

  DESCRIPTION
    Defines bits for CsrWifiSmeEncryption
    For a WEP enabled network, the caller must specify the correct
    combination of flags in the encryptionModeMask.

 VALUES
    CSR_WIFI_SME_ENCRYPTION_CIPHER_NONE
                   - No encryption set
    CSR_WIFI_SME_ENCRYPTION_CIPHER_PAIRWISE_WEP40
                   - Selects 40 byte key WEP for unicast communication
    CSR_WIFI_SME_ENCRYPTION_CIPHER_PAIRWISE_WEP104
                   - Selects 104 byte key WEP for unicast communication
    CSR_WIFI_SME_ENCRYPTION_CIPHER_PAIRWISE_TKIP
                   - Selects TKIP for unicast communication
    CSR_WIFI_SME_ENCRYPTION_CIPHER_PAIRWISE_CCMP
                   - Selects CCMP for unicast communication
    CSR_WIFI_SME_ENCRYPTION_CIPHER_PAIRWISE_SMS4
                   - Selects SMS4 for unicast communication
    CSR_WIFI_SME_ENCRYPTION_CIPHER_GROUP_WEP40
                   - Selects 40 byte key WEP for broadcast messages
    CSR_WIFI_SME_ENCRYPTION_CIPHER_GROUP_WEP104
                   - Selects 104 byte key WEP for broadcast messages
    CSR_WIFI_SME_ENCRYPTION_CIPHER_GROUP_TKIP
                   - Selects a TKIP for broadcast messages
    CSR_WIFI_SME_ENCRYPTION_CIPHER_GROUP_CCMP
                   - Selects CCMP for broadcast messages
    CSR_WIFI_SME_ENCRYPTION_CIPHER_GROUP_SMS4
                   - Selects SMS4 for broadcast messages

*******************************************************************************/
typedef u16 CsrWifiSmeEncryption;
#define CSR_WIFI_SME_ENCRYPTION_CIPHER_NONE              ((CsrWifiSmeEncryption) 0x0000)
#define CSR_WIFI_SME_ENCRYPTION_CIPHER_PAIRWISE_WEP40    ((CsrWifiSmeEncryption) 0x0001)
#define CSR_WIFI_SME_ENCRYPTION_CIPHER_PAIRWISE_WEP104   ((CsrWifiSmeEncryption) 0x0002)
#define CSR_WIFI_SME_ENCRYPTION_CIPHER_PAIRWISE_TKIP     ((CsrWifiSmeEncryption) 0x0004)
#define CSR_WIFI_SME_ENCRYPTION_CIPHER_PAIRWISE_CCMP     ((CsrWifiSmeEncryption) 0x0008)
#define CSR_WIFI_SME_ENCRYPTION_CIPHER_PAIRWISE_SMS4     ((CsrWifiSmeEncryption) 0x0010)
#define CSR_WIFI_SME_ENCRYPTION_CIPHER_GROUP_WEP40       ((CsrWifiSmeEncryption) 0x0020)
#define CSR_WIFI_SME_ENCRYPTION_CIPHER_GROUP_WEP104      ((CsrWifiSmeEncryption) 0x0040)
#define CSR_WIFI_SME_ENCRYPTION_CIPHER_GROUP_TKIP        ((CsrWifiSmeEncryption) 0x0080)
#define CSR_WIFI_SME_ENCRYPTION_CIPHER_GROUP_CCMP        ((CsrWifiSmeEncryption) 0x0100)
#define CSR_WIFI_SME_ENCRYPTION_CIPHER_GROUP_SMS4        ((CsrWifiSmeEncryption) 0x0200)

/*******************************************************************************

  NAME
    CsrWifiSmeFirmwareDriverInterface

  DESCRIPTION
    Type of communication between Host and Firmware

 VALUES
    CSR_WIFI_SME_FIRMWARE_DRIVER_INTERFACE_UNIT_DATA_INTERFACE
                   - No preformated header. NOT SUPPORTED in the current release
    CSR_WIFI_SME_FIRMWARE_DRIVER_INTERFACE_PACKET_INTERFACE
                   - Preformated IEEE 802.11 header for user plane

*******************************************************************************/
typedef u8 CsrWifiSmeFirmwareDriverInterface;
#define CSR_WIFI_SME_FIRMWARE_DRIVER_INTERFACE_UNIT_DATA_INTERFACE   ((CsrWifiSmeFirmwareDriverInterface) 0x00)
#define CSR_WIFI_SME_FIRMWARE_DRIVER_INTERFACE_PACKET_INTERFACE      ((CsrWifiSmeFirmwareDriverInterface) 0x01)

/*******************************************************************************

  NAME
    CsrWifiSmeHostPowerMode

  DESCRIPTION
    Defines the power mode

 VALUES
    CSR_WIFI_SME_HOST_POWER_MODE_ACTIVE
                   - Host device is running on external power.
    CSR_WIFI_SME_HOST_POWER_MODE_POWER_SAVE
                   - Host device is running on (internal) battery power.
    CSR_WIFI_SME_HOST_POWER_MODE_FULL_POWER_SAVE
                   - For future use.

*******************************************************************************/
typedef u8 CsrWifiSmeHostPowerMode;
#define CSR_WIFI_SME_HOST_POWER_MODE_ACTIVE            ((CsrWifiSmeHostPowerMode) 0x00)
#define CSR_WIFI_SME_HOST_POWER_MODE_POWER_SAVE        ((CsrWifiSmeHostPowerMode) 0x01)
#define CSR_WIFI_SME_HOST_POWER_MODE_FULL_POWER_SAVE   ((CsrWifiSmeHostPowerMode) 0x02)

/*******************************************************************************

  NAME
    CsrWifiSmeIEEE80211Reason

  DESCRIPTION
    As definined in the IEEE 802.11 standards

 VALUES
    CSR_WIFI_SME_IEEE80211_REASON_SUCCESS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_UNSPECIFIED_REASON
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_AUTHENTICATION_NOT_VALID
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_DEAUTHENTICATED_LEAVE_BSS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_DISASSOCIATED_INACTIVITY
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_AP_OVERLOAD
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_CLASS_2FRAME_ERROR
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_CLASS_3FRAME_ERROR
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_DISASSOCIATED_LEAVE_BSS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_ASSOCIATION_NOT_AUTHENTICATED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_DISASSOCIATED_POWER_CAPABILITY
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_DISASSOCIATED_SUPPORTED_CHANNELS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_INVALID_INFORMATION_ELEMENT
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_MICHAEL_MIC_FAILURE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_FOURWAY_HANDSHAKE_TIMEOUT
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_GROUP_KEY_UPDATE_TIMEOUT
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_HANDSHAKE_ELEMENT_DIFFERENT
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_INVALID_GROUP_CIPHER
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_INVALID_PAIRWISE_CIPHER
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_INVALID_AKMP
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_UNSUPPORTED_RSN_IEVERSION
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_INVALID_RSN_IECAPABILITIES
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_DOT1X_AUTH_FAILED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_CIPHER_REJECTED_BY_POLICY
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_SERVICE_CHANGE_PRECLUDES_TS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_QOS_UNSPECIFIED_REASON
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_QOS_INSUFFICIENT_BANDWIDTH
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_QOS_EXCESSIVE_NOT_ACK
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_QOS_TXOPLIMIT_EXCEEDED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_QSTA_LEAVING
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_END_TS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_END_DLS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_END_BA
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_UNKNOWN_TS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_UNKNOWN_BA
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_UNKNOWN_DLS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_TIMEOUT
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_STAKEY_MISMATCH
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_UNICAST_KEY_NEGOTIATION_TIMEOUT
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_MULTICAST_KEY_ANNOUNCEMENT_TIMEOUT
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_INCOMPATIBLE_UNICAST_KEY_NEGOTIATION_IE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_INVALID_MULTICAST_CIPHER
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_INVALID_UNICAST_CIPHER
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_UNSUPPORTED_WAPI_IE_VERSION
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_INVALID_WAPI_CAPABILITY_IE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_REASON_WAI_CERTIFICATE_AUTHENTICATION_FAILED
                   - See IEEE 802.11 Standard

*******************************************************************************/
typedef u16 CsrWifiSmeIEEE80211Reason;
#define CSR_WIFI_SME_IEEE80211_REASON_SUCCESS                                   ((CsrWifiSmeIEEE80211Reason) 0x0000)
#define CSR_WIFI_SME_IEEE80211_REASON_UNSPECIFIED_REASON                        ((CsrWifiSmeIEEE80211Reason) 0x0001)
#define CSR_WIFI_SME_IEEE80211_REASON_AUTHENTICATION_NOT_VALID                  ((CsrWifiSmeIEEE80211Reason) 0x0002)
#define CSR_WIFI_SME_IEEE80211_REASON_DEAUTHENTICATED_LEAVE_BSS                 ((CsrWifiSmeIEEE80211Reason) 0x0003)
#define CSR_WIFI_SME_IEEE80211_REASON_DISASSOCIATED_INACTIVITY                  ((CsrWifiSmeIEEE80211Reason) 0x0004)
#define CSR_WIFI_SME_IEEE80211_REASON_AP_OVERLOAD                               ((CsrWifiSmeIEEE80211Reason) 0x0005)
#define CSR_WIFI_SME_IEEE80211_REASON_CLASS_2FRAME_ERROR                        ((CsrWifiSmeIEEE80211Reason) 0x0006)
#define CSR_WIFI_SME_IEEE80211_REASON_CLASS_3FRAME_ERROR                        ((CsrWifiSmeIEEE80211Reason) 0x0007)
#define CSR_WIFI_SME_IEEE80211_REASON_DISASSOCIATED_LEAVE_BSS                   ((CsrWifiSmeIEEE80211Reason) 0x0008)
#define CSR_WIFI_SME_IEEE80211_REASON_ASSOCIATION_NOT_AUTHENTICATED             ((CsrWifiSmeIEEE80211Reason) 0x0009)
#define CSR_WIFI_SME_IEEE80211_REASON_DISASSOCIATED_POWER_CAPABILITY            ((CsrWifiSmeIEEE80211Reason) 0x000a)
#define CSR_WIFI_SME_IEEE80211_REASON_DISASSOCIATED_SUPPORTED_CHANNELS          ((CsrWifiSmeIEEE80211Reason) 0x000b)
#define CSR_WIFI_SME_IEEE80211_REASON_INVALID_INFORMATION_ELEMENT               ((CsrWifiSmeIEEE80211Reason) 0x000d)
#define CSR_WIFI_SME_IEEE80211_REASON_MICHAEL_MIC_FAILURE                       ((CsrWifiSmeIEEE80211Reason) 0x000e)
#define CSR_WIFI_SME_IEEE80211_REASON_FOURWAY_HANDSHAKE_TIMEOUT                 ((CsrWifiSmeIEEE80211Reason) 0x000f)
#define CSR_WIFI_SME_IEEE80211_REASON_GROUP_KEY_UPDATE_TIMEOUT                  ((CsrWifiSmeIEEE80211Reason) 0x0010)
#define CSR_WIFI_SME_IEEE80211_REASON_HANDSHAKE_ELEMENT_DIFFERENT               ((CsrWifiSmeIEEE80211Reason) 0x0011)
#define CSR_WIFI_SME_IEEE80211_REASON_INVALID_GROUP_CIPHER                      ((CsrWifiSmeIEEE80211Reason) 0x0012)
#define CSR_WIFI_SME_IEEE80211_REASON_INVALID_PAIRWISE_CIPHER                   ((CsrWifiSmeIEEE80211Reason) 0x0013)
#define CSR_WIFI_SME_IEEE80211_REASON_INVALID_AKMP                              ((CsrWifiSmeIEEE80211Reason) 0x0014)
#define CSR_WIFI_SME_IEEE80211_REASON_UNSUPPORTED_RSN_IEVERSION                 ((CsrWifiSmeIEEE80211Reason) 0x0015)
#define CSR_WIFI_SME_IEEE80211_REASON_INVALID_RSN_IECAPABILITIES                ((CsrWifiSmeIEEE80211Reason) 0x0016)
#define CSR_WIFI_SME_IEEE80211_REASON_DOT1X_AUTH_FAILED                         ((CsrWifiSmeIEEE80211Reason) 0x0017)
#define CSR_WIFI_SME_IEEE80211_REASON_CIPHER_REJECTED_BY_POLICY                 ((CsrWifiSmeIEEE80211Reason) 0x0018)
#define CSR_WIFI_SME_IEEE80211_REASON_SERVICE_CHANGE_PRECLUDES_TS               ((CsrWifiSmeIEEE80211Reason) 0x001F)
#define CSR_WIFI_SME_IEEE80211_REASON_QOS_UNSPECIFIED_REASON                    ((CsrWifiSmeIEEE80211Reason) 0x0020)
#define CSR_WIFI_SME_IEEE80211_REASON_QOS_INSUFFICIENT_BANDWIDTH                ((CsrWifiSmeIEEE80211Reason) 0x0021)
#define CSR_WIFI_SME_IEEE80211_REASON_QOS_EXCESSIVE_NOT_ACK                     ((CsrWifiSmeIEEE80211Reason) 0x0022)
#define CSR_WIFI_SME_IEEE80211_REASON_QOS_TXOPLIMIT_EXCEEDED                    ((CsrWifiSmeIEEE80211Reason) 0x0023)
#define CSR_WIFI_SME_IEEE80211_REASON_QSTA_LEAVING                              ((CsrWifiSmeIEEE80211Reason) 0x0024)
#define CSR_WIFI_SME_IEEE80211_REASON_END_TS                                    ((CsrWifiSmeIEEE80211Reason) 0x0025)
#define CSR_WIFI_SME_IEEE80211_REASON_END_DLS                                   ((CsrWifiSmeIEEE80211Reason) 0x0025)
#define CSR_WIFI_SME_IEEE80211_REASON_END_BA                                    ((CsrWifiSmeIEEE80211Reason) 0x0025)
#define CSR_WIFI_SME_IEEE80211_REASON_UNKNOWN_TS                                ((CsrWifiSmeIEEE80211Reason) 0x0026)
#define CSR_WIFI_SME_IEEE80211_REASON_UNKNOWN_BA                                ((CsrWifiSmeIEEE80211Reason) 0x0026)
#define CSR_WIFI_SME_IEEE80211_REASON_UNKNOWN_DLS                               ((CsrWifiSmeIEEE80211Reason) 0x0026)
#define CSR_WIFI_SME_IEEE80211_REASON_TIMEOUT                                   ((CsrWifiSmeIEEE80211Reason) 0x0027)
#define CSR_WIFI_SME_IEEE80211_REASON_STAKEY_MISMATCH                           ((CsrWifiSmeIEEE80211Reason) 0x002d)
#define CSR_WIFI_SME_IEEE80211_REASON_UNICAST_KEY_NEGOTIATION_TIMEOUT           ((CsrWifiSmeIEEE80211Reason) 0xf019)
#define CSR_WIFI_SME_IEEE80211_REASON_MULTICAST_KEY_ANNOUNCEMENT_TIMEOUT        ((CsrWifiSmeIEEE80211Reason) 0xf01a)
#define CSR_WIFI_SME_IEEE80211_REASON_INCOMPATIBLE_UNICAST_KEY_NEGOTIATION_IE   ((CsrWifiSmeIEEE80211Reason) 0xf01b)
#define CSR_WIFI_SME_IEEE80211_REASON_INVALID_MULTICAST_CIPHER                  ((CsrWifiSmeIEEE80211Reason) 0xf01c)
#define CSR_WIFI_SME_IEEE80211_REASON_INVALID_UNICAST_CIPHER                    ((CsrWifiSmeIEEE80211Reason) 0xf01d)
#define CSR_WIFI_SME_IEEE80211_REASON_UNSUPPORTED_WAPI_IE_VERSION               ((CsrWifiSmeIEEE80211Reason) 0xf01e)
#define CSR_WIFI_SME_IEEE80211_REASON_INVALID_WAPI_CAPABILITY_IE                ((CsrWifiSmeIEEE80211Reason) 0xf01f)
#define CSR_WIFI_SME_IEEE80211_REASON_WAI_CERTIFICATE_AUTHENTICATION_FAILED     ((CsrWifiSmeIEEE80211Reason) 0xf020)

/*******************************************************************************

  NAME
    CsrWifiSmeIEEE80211Result

  DESCRIPTION
    As definined in the IEEE 802.11 standards

 VALUES
    CSR_WIFI_SME_IEEE80211_RESULT_SUCCESS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_UNSPECIFIED_FAILURE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_CAPABILITIES_MISMATCH
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REASSOCIATION_DENIED_NO_ASSOCIATION
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_EXTERNAL_REASON
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_AUTHENTICATION_MISMATCH
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_INVALID_AUTHENTICATION_SEQUENCE_NUMBER
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_CHALLENGE_FAILURE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_AUTHENTICATION_TIMEOUT
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_AP_OUT_OF_MEMORY
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_BASIC_RATES_MISMATCH
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_SHORT_PREAMBLE_REQUIRED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_PBCC_MODULATION_REQUIRED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_CHANNEL_AGILITY_REQUIRED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_SPECTRUM_MANAGEMENT_REQUIRED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_POWER_CAPABILITY_UNACCEPTABLE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_SUPPORTED_CHANNELS_UNACCEPTABLE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_SHORT_SLOT_REQUIRED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_DSSS_OFDMREQUIRED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_NO_HT_SUPPORT
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_R0KH_UNREACHABLE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_PCO_TRANSITION_SUPPORT
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_ASSOCIATION_REQUEST_REJECTED_TEMPORARILY
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_ROBUST_MANAGEMENT_FRAME_POLICY_VIOLATION
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_FAILURE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_AP_BANDWIDTH_INSUFFICIENT
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_POOR_OPERATING_CHANNEL
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_QOS_REQUIRED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_REASON_UNSPECIFIED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_INVALID_PARAMETERS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_WITH_SUGGESTED_TSPEC_CHANGES
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_INVALID_IE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_INVALID_GROUP_CIPHER
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_INVALID_PAIRWISE_CIPHER
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_INVALID_AKMP
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_UNSUPPORTED_RSN_VERSION
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_INVALID_RSN_CAPABILITY
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_SECURITY_POLICY
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_FOR_DELAY_PERIOD
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_NOT_ALLOWED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_NOT_PRESENT
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_NOT_QSTA
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_LISTEN_INTERVAL_TOO_LARGE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_INVALID_FT_ACTION_FRAME_COUNT
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_INVALID_PMKID
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_INVALID_MDIE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_INVALID_FTIE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_UNSPECIFIED_QOS_FAILURE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_WRONG_POLICY
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_INSUFFICIENT_BANDWIDTH
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_INVALID_TSPEC_PARAMETERS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_TIMEOUT
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_TOO_MANY_SIMULTANEOUS_REQUESTS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_BSS_ALREADY_STARTED_OR_JOINED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_NOT_SUPPORTED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_TRANSMISSION_FAILURE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_NOT_AUTHENTICATED
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_RESET_REQUIRED_BEFORE_START
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_LM_INFO_UNAVAILABLE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_INVALID_UNICAST_CIPHER
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_INVALID_MULTICAST_CIPHER
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_UNSUPPORTED_WAPI_IE_VERSION
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_IEEE80211_RESULT_INVALID_WAPI_CAPABILITY_IE
                   - See IEEE 802.11 Standard

*******************************************************************************/
typedef u16 CsrWifiSmeIEEE80211Result;
#define CSR_WIFI_SME_IEEE80211_RESULT_SUCCESS                                          ((CsrWifiSmeIEEE80211Result) 0x0000)
#define CSR_WIFI_SME_IEEE80211_RESULT_UNSPECIFIED_FAILURE                              ((CsrWifiSmeIEEE80211Result) 0x0001)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_CAPABILITIES_MISMATCH                    ((CsrWifiSmeIEEE80211Result) 0x000a)
#define CSR_WIFI_SME_IEEE80211_RESULT_REASSOCIATION_DENIED_NO_ASSOCIATION              ((CsrWifiSmeIEEE80211Result) 0x000b)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_EXTERNAL_REASON                          ((CsrWifiSmeIEEE80211Result) 0x000c)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_AUTHENTICATION_MISMATCH                  ((CsrWifiSmeIEEE80211Result) 0x000d)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_INVALID_AUTHENTICATION_SEQUENCE_NUMBER   ((CsrWifiSmeIEEE80211Result) 0x000e)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_CHALLENGE_FAILURE                        ((CsrWifiSmeIEEE80211Result) 0x000f)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_AUTHENTICATION_TIMEOUT                   ((CsrWifiSmeIEEE80211Result) 0x0010)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_AP_OUT_OF_MEMORY                         ((CsrWifiSmeIEEE80211Result) 0x0011)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_BASIC_RATES_MISMATCH                     ((CsrWifiSmeIEEE80211Result) 0x0012)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_SHORT_PREAMBLE_REQUIRED                  ((CsrWifiSmeIEEE80211Result) 0x0013)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_PBCC_MODULATION_REQUIRED                 ((CsrWifiSmeIEEE80211Result) 0x0014)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_CHANNEL_AGILITY_REQUIRED                 ((CsrWifiSmeIEEE80211Result) 0x0015)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_SPECTRUM_MANAGEMENT_REQUIRED             ((CsrWifiSmeIEEE80211Result) 0x0016)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_POWER_CAPABILITY_UNACCEPTABLE            ((CsrWifiSmeIEEE80211Result) 0x0017)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_SUPPORTED_CHANNELS_UNACCEPTABLE          ((CsrWifiSmeIEEE80211Result) 0x0018)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_SHORT_SLOT_REQUIRED                      ((CsrWifiSmeIEEE80211Result) 0x0019)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_DSSS_OFDMREQUIRED                        ((CsrWifiSmeIEEE80211Result) 0x001a)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_NO_HT_SUPPORT                            ((CsrWifiSmeIEEE80211Result) 0x001b)
#define CSR_WIFI_SME_IEEE80211_RESULT_R0KH_UNREACHABLE                                 ((CsrWifiSmeIEEE80211Result) 0x001c)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_PCO_TRANSITION_SUPPORT                   ((CsrWifiSmeIEEE80211Result) 0x001d)
#define CSR_WIFI_SME_IEEE80211_RESULT_ASSOCIATION_REQUEST_REJECTED_TEMPORARILY         ((CsrWifiSmeIEEE80211Result) 0x001e)
#define CSR_WIFI_SME_IEEE80211_RESULT_ROBUST_MANAGEMENT_FRAME_POLICY_VIOLATION         ((CsrWifiSmeIEEE80211Result) 0x001f)
#define CSR_WIFI_SME_IEEE80211_RESULT_FAILURE                                          ((CsrWifiSmeIEEE80211Result) 0x0020)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_AP_BANDWIDTH_INSUFFICIENT                ((CsrWifiSmeIEEE80211Result) 0x0021)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_POOR_OPERATING_CHANNEL                   ((CsrWifiSmeIEEE80211Result) 0x0022)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_QOS_REQUIRED                             ((CsrWifiSmeIEEE80211Result) 0x0023)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_REASON_UNSPECIFIED                       ((CsrWifiSmeIEEE80211Result) 0x0025)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED                                          ((CsrWifiSmeIEEE80211Result) 0x0025)
#define CSR_WIFI_SME_IEEE80211_RESULT_INVALID_PARAMETERS                               ((CsrWifiSmeIEEE80211Result) 0x0026)
#define CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_WITH_SUGGESTED_TSPEC_CHANGES            ((CsrWifiSmeIEEE80211Result) 0x0027)
#define CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_INVALID_IE                              ((CsrWifiSmeIEEE80211Result) 0x0028)
#define CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_INVALID_GROUP_CIPHER                    ((CsrWifiSmeIEEE80211Result) 0x0029)
#define CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_INVALID_PAIRWISE_CIPHER                 ((CsrWifiSmeIEEE80211Result) 0x002a)
#define CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_INVALID_AKMP                            ((CsrWifiSmeIEEE80211Result) 0x002b)
#define CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_UNSUPPORTED_RSN_VERSION                 ((CsrWifiSmeIEEE80211Result) 0x002c)
#define CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_INVALID_RSN_CAPABILITY                  ((CsrWifiSmeIEEE80211Result) 0x002d)
#define CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_SECURITY_POLICY                         ((CsrWifiSmeIEEE80211Result) 0x002e)
#define CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_FOR_DELAY_PERIOD                        ((CsrWifiSmeIEEE80211Result) 0x002f)
#define CSR_WIFI_SME_IEEE80211_RESULT_NOT_ALLOWED                                      ((CsrWifiSmeIEEE80211Result) 0x0030)
#define CSR_WIFI_SME_IEEE80211_RESULT_NOT_PRESENT                                      ((CsrWifiSmeIEEE80211Result) 0x0031)
#define CSR_WIFI_SME_IEEE80211_RESULT_NOT_QSTA                                         ((CsrWifiSmeIEEE80211Result) 0x0032)
#define CSR_WIFI_SME_IEEE80211_RESULT_REJECTED_LISTEN_INTERVAL_TOO_LARGE               ((CsrWifiSmeIEEE80211Result) 0x0033)
#define CSR_WIFI_SME_IEEE80211_RESULT_INVALID_FT_ACTION_FRAME_COUNT                    ((CsrWifiSmeIEEE80211Result) 0x0034)
#define CSR_WIFI_SME_IEEE80211_RESULT_INVALID_PMKID                                    ((CsrWifiSmeIEEE80211Result) 0x0035)
#define CSR_WIFI_SME_IEEE80211_RESULT_INVALID_MDIE                                     ((CsrWifiSmeIEEE80211Result) 0x0036)
#define CSR_WIFI_SME_IEEE80211_RESULT_INVALID_FTIE                                     ((CsrWifiSmeIEEE80211Result) 0x0037)
#define CSR_WIFI_SME_IEEE80211_RESULT_UNSPECIFIED_QOS_FAILURE                          ((CsrWifiSmeIEEE80211Result) 0x00c8)
#define CSR_WIFI_SME_IEEE80211_RESULT_WRONG_POLICY                                     ((CsrWifiSmeIEEE80211Result) 0x00c9)
#define CSR_WIFI_SME_IEEE80211_RESULT_INSUFFICIENT_BANDWIDTH                           ((CsrWifiSmeIEEE80211Result) 0x00ca)
#define CSR_WIFI_SME_IEEE80211_RESULT_INVALID_TSPEC_PARAMETERS                         ((CsrWifiSmeIEEE80211Result) 0x00cb)
#define CSR_WIFI_SME_IEEE80211_RESULT_TIMEOUT                                          ((CsrWifiSmeIEEE80211Result) 0x8000)
#define CSR_WIFI_SME_IEEE80211_RESULT_TOO_MANY_SIMULTANEOUS_REQUESTS                   ((CsrWifiSmeIEEE80211Result) 0x8001)
#define CSR_WIFI_SME_IEEE80211_RESULT_BSS_ALREADY_STARTED_OR_JOINED                    ((CsrWifiSmeIEEE80211Result) 0x8002)
#define CSR_WIFI_SME_IEEE80211_RESULT_NOT_SUPPORTED                                    ((CsrWifiSmeIEEE80211Result) 0x8003)
#define CSR_WIFI_SME_IEEE80211_RESULT_TRANSMISSION_FAILURE                             ((CsrWifiSmeIEEE80211Result) 0x8004)
#define CSR_WIFI_SME_IEEE80211_RESULT_REFUSED_NOT_AUTHENTICATED                        ((CsrWifiSmeIEEE80211Result) 0x8005)
#define CSR_WIFI_SME_IEEE80211_RESULT_RESET_REQUIRED_BEFORE_START                      ((CsrWifiSmeIEEE80211Result) 0x8006)
#define CSR_WIFI_SME_IEEE80211_RESULT_LM_INFO_UNAVAILABLE                              ((CsrWifiSmeIEEE80211Result) 0x8007)
#define CSR_WIFI_SME_IEEE80211_RESULT_INVALID_UNICAST_CIPHER                           ((CsrWifiSmeIEEE80211Result) 0xf02f)
#define CSR_WIFI_SME_IEEE80211_RESULT_INVALID_MULTICAST_CIPHER                         ((CsrWifiSmeIEEE80211Result) 0xf030)
#define CSR_WIFI_SME_IEEE80211_RESULT_UNSUPPORTED_WAPI_IE_VERSION                      ((CsrWifiSmeIEEE80211Result) 0xf031)
#define CSR_WIFI_SME_IEEE80211_RESULT_INVALID_WAPI_CAPABILITY_IE                       ((CsrWifiSmeIEEE80211Result) 0xf032)

/*******************************************************************************

  NAME
    CsrWifiSmeIndications

  DESCRIPTION
    Defines bits for CsrWifiSmeIndicationsMask

 VALUES
    CSR_WIFI_SME_INDICATIONS_NONE
                   - Used to cancel the registrations for receiving indications
    CSR_WIFI_SME_INDICATIONS_WIFIOFF
                   - Used to register for CSR_WIFI_SME_WIFI_OFF_IND events
    CSR_WIFI_SME_INDICATIONS_SCANRESULT
                   - Used to register for CSR_WIFI_SME_SCAN_RESULT_IND events
    CSR_WIFI_SME_INDICATIONS_CONNECTIONQUALITY
                   - Used to register for CSR_WIFI_SME_CONNECTION_QUALITY_IND
                     events
    CSR_WIFI_SME_INDICATIONS_MEDIASTATUS
                   - Used to register for CSR_WIFI_SME_MEDIA_STATUS_IND events
    CSR_WIFI_SME_INDICATIONS_MICFAILURE
                   - Used to register for CSR_WIFI_SME_MICFAILURE_IND events
    CSR_WIFI_SME_INDICATIONS_PMKIDCANDIDATELIST
                   - Used to register for CSR_WIFI_SME_PMKIDCANDIDATE_LIST_IND
                     events
    CSR_WIFI_SME_INDICATIONS_TSPEC
                   - Used to register for CSR_WIFI_SME_TSPEC_IND events
    CSR_WIFI_SME_INDICATIONS_ROAMSTART
                   - Used to register for CSR_WIFI_SME_ROAM_START_IND events
    CSR_WIFI_SME_INDICATIONS_ROAMCOMPLETE
                   - Used to register for CSR_WIFI_SME_ROAM_COMPLETE_IND events
    CSR_WIFI_SME_INDICATIONS_ASSOCIATIONSTART
                   - Used to register for CSR_WIFI_SME_ASSOCIATION_START_IND
                     events
    CSR_WIFI_SME_INDICATIONS_ASSOCIATIONCOMPLETE
                   - Used to register for CSR_WIFI_SME_ASSOCIATION_COMPLETE_IND
                     events
    CSR_WIFI_SME_INDICATIONS_IBSSSTATION
                   - Used to register for CSR_WIFI_SME_IBSS_STATION_IND events
    CSR_WIFI_SME_INDICATIONS_WIFION
                   - Used to register for CSR_WIFI_SME_WIFI_ON_IND events
    CSR_WIFI_SME_INDICATIONS_ERROR
                   - Used to register for CSR_WIFI_SME_ERROR_IND events
    CSR_WIFI_SME_INDICATIONS_INFO
                   - Used to register for CSR_WIFI_SME_INFO_IND events
    CSR_WIFI_SME_INDICATIONS_COREDUMP
                   - Used to register for CSR_WIFI_SME_CORE_DUMP_IND events
    CSR_WIFI_SME_INDICATIONS_ALL
                   - Used to register for all available indications

*******************************************************************************/
typedef u32 CsrWifiSmeIndications;
#define CSR_WIFI_SME_INDICATIONS_NONE                  ((CsrWifiSmeIndications) 0x00000000)
#define CSR_WIFI_SME_INDICATIONS_WIFIOFF               ((CsrWifiSmeIndications) 0x00000001)
#define CSR_WIFI_SME_INDICATIONS_SCANRESULT            ((CsrWifiSmeIndications) 0x00000002)
#define CSR_WIFI_SME_INDICATIONS_CONNECTIONQUALITY     ((CsrWifiSmeIndications) 0x00000004)
#define CSR_WIFI_SME_INDICATIONS_MEDIASTATUS           ((CsrWifiSmeIndications) 0x00000008)
#define CSR_WIFI_SME_INDICATIONS_MICFAILURE            ((CsrWifiSmeIndications) 0x00000010)
#define CSR_WIFI_SME_INDICATIONS_PMKIDCANDIDATELIST    ((CsrWifiSmeIndications) 0x00000020)
#define CSR_WIFI_SME_INDICATIONS_TSPEC                 ((CsrWifiSmeIndications) 0x00000040)
#define CSR_WIFI_SME_INDICATIONS_ROAMSTART             ((CsrWifiSmeIndications) 0x00000080)
#define CSR_WIFI_SME_INDICATIONS_ROAMCOMPLETE          ((CsrWifiSmeIndications) 0x00000100)
#define CSR_WIFI_SME_INDICATIONS_ASSOCIATIONSTART      ((CsrWifiSmeIndications) 0x00000200)
#define CSR_WIFI_SME_INDICATIONS_ASSOCIATIONCOMPLETE   ((CsrWifiSmeIndications) 0x00000400)
#define CSR_WIFI_SME_INDICATIONS_IBSSSTATION           ((CsrWifiSmeIndications) 0x00000800)
#define CSR_WIFI_SME_INDICATIONS_WIFION                ((CsrWifiSmeIndications) 0x00001000)
#define CSR_WIFI_SME_INDICATIONS_ERROR                 ((CsrWifiSmeIndications) 0x00002000)
#define CSR_WIFI_SME_INDICATIONS_INFO                  ((CsrWifiSmeIndications) 0x00004000)
#define CSR_WIFI_SME_INDICATIONS_COREDUMP              ((CsrWifiSmeIndications) 0x00008000)
#define CSR_WIFI_SME_INDICATIONS_ALL                   ((CsrWifiSmeIndications) 0xFFFFFFFF)

/*******************************************************************************

  NAME
    CsrWifiSmeKeyType

  DESCRIPTION
    Indicates the type of the key

 VALUES
    CSR_WIFI_SME_KEY_TYPE_GROUP    - Key for broadcast communication
    CSR_WIFI_SME_KEY_TYPE_PAIRWISE - Key for unicast communication
    CSR_WIFI_SME_KEY_TYPE_STAKEY   - Key for direct link communication to
                                     another station in infrastructure networks
    CSR_WIFI_SME_KEY_TYPE_IGTK     - Integrity Group Temporal Key
    CSR_WIFI_SME_KEY_TYPE_CCKM     - Key for Cisco Centralized Key Management

*******************************************************************************/
typedef u8 CsrWifiSmeKeyType;
#define CSR_WIFI_SME_KEY_TYPE_GROUP      ((CsrWifiSmeKeyType) 0x00)
#define CSR_WIFI_SME_KEY_TYPE_PAIRWISE   ((CsrWifiSmeKeyType) 0x01)
#define CSR_WIFI_SME_KEY_TYPE_STAKEY     ((CsrWifiSmeKeyType) 0x02)
#define CSR_WIFI_SME_KEY_TYPE_IGTK       ((CsrWifiSmeKeyType) 0x03)
#define CSR_WIFI_SME_KEY_TYPE_CCKM       ((CsrWifiSmeKeyType) 0x04)

/*******************************************************************************

  NAME
    CsrWifiSmeListAction

  DESCRIPTION
    Identifies the type of action to be performed on a list of items
    The values of this type are used across the NME/SME/Router API's and they
    must be kept consistent with the corresponding types in the .xml of the
    ottherinterfaces

 VALUES
    CSR_WIFI_SME_LIST_ACTION_GET    - Retrieve the current list of items
    CSR_WIFI_SME_LIST_ACTION_ADD    - Add one or more items
    CSR_WIFI_SME_LIST_ACTION_REMOVE - Remove one or more items
    CSR_WIFI_SME_LIST_ACTION_FLUSH  - Remove all items

*******************************************************************************/
typedef u8 CsrWifiSmeListAction;
#define CSR_WIFI_SME_LIST_ACTION_GET      ((CsrWifiSmeListAction) 0x00)
#define CSR_WIFI_SME_LIST_ACTION_ADD      ((CsrWifiSmeListAction) 0x01)
#define CSR_WIFI_SME_LIST_ACTION_REMOVE   ((CsrWifiSmeListAction) 0x02)
#define CSR_WIFI_SME_LIST_ACTION_FLUSH    ((CsrWifiSmeListAction) 0x03)

/*******************************************************************************

  NAME
    CsrWifiSmeMediaStatus

  DESCRIPTION
    Indicates the connection status
    The values of this type are used across the NME/SME/Router API's and they
    must be kept consistent with the corresponding types in the .xml of the
    ottherinterfaces

 VALUES
    CSR_WIFI_SME_MEDIA_STATUS_CONNECTED
                   - Value CSR_WIFI_SME_MEDIA_STATUS_CONNECTED can happen in two
                     situations:
                       * A network connection is established. Specifically, this is
                         when the MLME_ASSOCIATION completes or the first peer
                         relationship is established in an IBSS. In a WPA/WPA2
                         network, this indicates that the stack is ready to perform
                         the 4-way handshake or 802.1x authentication if CSR NME
                         security library is not used. If CSR NME security library
                         is used this indicates, completion of 4way handshake or
                         802.1x authentication
                       * The SME roams to another AP on the same ESS
                     During the AP operation, it indicates that the peer station
                     is connected to the AP and is ready for data transfer.
    CSR_WIFI_SME_MEDIA_STATUS_DISCONNECTED
                   - Value CSR_WIFI_SME_MEDIA_STATUS_DISCONNECTED can happen in
                     two situations:
                       * when the connection to a network is lost and there is no
                         alternative on the same ESS to roam to
                       * when a CSR_WIFI_SME_DISCONNECT_REQ request is issued
                     During AP or P2PGO operation, it indicates that the peer
                     station has disconnected from the AP

*******************************************************************************/
typedef u8 CsrWifiSmeMediaStatus;
#define CSR_WIFI_SME_MEDIA_STATUS_CONNECTED      ((CsrWifiSmeMediaStatus) 0x00)
#define CSR_WIFI_SME_MEDIA_STATUS_DISCONNECTED   ((CsrWifiSmeMediaStatus) 0x01)

/*******************************************************************************

  NAME
    CsrWifiSmeP2pCapability

  DESCRIPTION
    Defines P2P Device Capabilities

 VALUES
    CSR_WIFI_SME_P2P_SERVICE_DISCOVERY_CAPABILITY
                   - This field is set to 1 if the P2P Device supports Service
                     Discovery, and to 0 otherwise
    CSR_WIFI_SME_P2P_CLIENT_DISCOVERABILITY_CAPABILITY
                   - This field is set to 1 when the P2P Device supports P2P
                     Client Discoverability, and to 0 otherwise.
    CSR_WIFI_SME_P2P_CONCURRENT_OPERATION_CAPABILITY
                   - This field is set to 1 when the P2P Device supports
                     Concurrent Operation with WLAN, and to 0 otherwise.
    CSR_WIFI_SME_P2P_MANAGED_DEVICE_CAPABILITY
                   - This field is set to 1 when the P2P interface of the P2P
                     Device is capable of being managed by the WLAN
                     (infrastructure network) based on P2P coexistence
                     parameters, and to 0 otherwise
    CSR_WIFI_SME_P2P_INVITAION_CAPABILITY
                   - This field is set to 1 if the P2P Device is capable of
                     processing P2P Invitation Procedure signaling, and to 0
                     otherwise.

*******************************************************************************/
typedef u8 CsrWifiSmeP2pCapability;
#define CSR_WIFI_SME_P2P_SERVICE_DISCOVERY_CAPABILITY        ((CsrWifiSmeP2pCapability) 0x01)
#define CSR_WIFI_SME_P2P_CLIENT_DISCOVERABILITY_CAPABILITY   ((CsrWifiSmeP2pCapability) 0x02)
#define CSR_WIFI_SME_P2P_CONCURRENT_OPERATION_CAPABILITY     ((CsrWifiSmeP2pCapability) 0x04)
#define CSR_WIFI_SME_P2P_MANAGED_DEVICE_CAPABILITY           ((CsrWifiSmeP2pCapability) 0x08)
#define CSR_WIFI_SME_P2P_INVITAION_CAPABILITY                ((CsrWifiSmeP2pCapability) 0x20)

/*******************************************************************************

  NAME
    CsrWifiSmeP2pGroupCapability

  DESCRIPTION
    Define bits for P2P Group Capability

 VALUES
    CSR_WIFI_P2P_GRP_CAP_GO
                   - Indicates if the local device has become a GO after GO
                     negotiation
    CSR_WIFI_P2P_GRP_CAP_PERSISTENT
                   - Persistent group
    CSR_WIFI_P2P_GRP_CAP_INTRABSS_DIST
                   - Intra-BSS data distribution support
    CSR_WIFI_P2P_GRP_CAP_CROSS_CONN
                   - Support of cross connection
    CSR_WIFI_P2P_GRP_CAP_PERSISTENT_RECONNECT
                   - Support of persistent reconnect

*******************************************************************************/
typedef u8 CsrWifiSmeP2pGroupCapability;
#define CSR_WIFI_P2P_GRP_CAP_GO                     ((CsrWifiSmeP2pGroupCapability) 0x01)
#define CSR_WIFI_P2P_GRP_CAP_PERSISTENT             ((CsrWifiSmeP2pGroupCapability) 0x02)
#define CSR_WIFI_P2P_GRP_CAP_INTRABSS_DIST          ((CsrWifiSmeP2pGroupCapability) 0x08)
#define CSR_WIFI_P2P_GRP_CAP_CROSS_CONN             ((CsrWifiSmeP2pGroupCapability) 0x10)
#define CSR_WIFI_P2P_GRP_CAP_PERSISTENT_RECONNECT   ((CsrWifiSmeP2pGroupCapability) 0x20)

/*******************************************************************************

  NAME
    CsrWifiSmeP2pNoaConfigMethod

  DESCRIPTION
    Notice of Absece Configuration

 VALUES
    CSR_WIFI_P2P_NOA_NONE         - Do not use NOA
    CSR_WIFI_P2P_NOA_AUTONOMOUS   - NOA based on the traffic analysis
    CSR_WIFI_P2P_NOA_USER_DEFINED - NOA as specified by the user

*******************************************************************************/
typedef u8 CsrWifiSmeP2pNoaConfigMethod;
#define CSR_WIFI_P2P_NOA_NONE           ((CsrWifiSmeP2pNoaConfigMethod) 0x00)
#define CSR_WIFI_P2P_NOA_AUTONOMOUS     ((CsrWifiSmeP2pNoaConfigMethod) 0x01)
#define CSR_WIFI_P2P_NOA_USER_DEFINED   ((CsrWifiSmeP2pNoaConfigMethod) 0x02)

/*******************************************************************************

  NAME
    CsrWifiSmeP2pRole

  DESCRIPTION
    Definition of roles for a P2P Device

 VALUES
    CSR_WIFI_SME_P2P_ROLE_NONE       - A non-P2PDevice device
    CSR_WIFI_SME_P2P_ROLE_STANDALONE - A Standalone P2P device
    CSR_WIFI_SME_P2P_ROLE_GO         - Role Assumed is that of a Group Owner
                                       within a P2P Group
    CSR_WIFI_SME_P2P_ROLE_CLI        - Role Assumed is that of a P2P Client
                                       within a P2P Group

*******************************************************************************/
typedef u8 CsrWifiSmeP2pRole;
#define CSR_WIFI_SME_P2P_ROLE_NONE         ((CsrWifiSmeP2pRole) 0x00)
#define CSR_WIFI_SME_P2P_ROLE_STANDALONE   ((CsrWifiSmeP2pRole) 0x01)
#define CSR_WIFI_SME_P2P_ROLE_GO           ((CsrWifiSmeP2pRole) 0x02)
#define CSR_WIFI_SME_P2P_ROLE_CLI          ((CsrWifiSmeP2pRole) 0x03)

/*******************************************************************************

  NAME
    CsrWifiSmeP2pStatus

  DESCRIPTION
    This data type enumerates the outcome of P2P procedure

 VALUES
    CSR_WIFI_SME_P2P_STATUS_SUCCESS
                   - Success
    CSR_WIFI_SME_P2P_STATUS_FAIL_INFO_UNAVAILABLE
                   - Fail; information is currently unavailable
    CSR_WIFI_SME_P2P_STATUS_FAIL_INCOMPATIBLE_PARAM
                   - Fail; incompatible parameters
    CSR_WIFI_SME_P2P_STATUS_FAIL_LIMIT_REACHED
                   - Fail; limit reached
    CSR_WIFI_SME_P2P_STATUS_FAIL_INVALID_PARAM
                   - Fail; invalid parameters
    CSR_WIFI_SME_P2P_STATUS_FAIL_ACCOMODATE
                   - Fail; unable to accommodate request
    CSR_WIFI_SME_P2P_STATUS_FAIL_PREV_ERROR
                   - Fail; previous protocol error, or disruptive behavior
    CSR_WIFI_SME_P2P_STATUS_FAIL_COMMON_CHANNELS
                   - Fail; no common channels
    CSR_WIFI_SME_P2P_STATUS_FAIL_UNKNOWN_GROUP
                   - Fail; unknown P2P Group
    CSR_WIFI_SME_P2P_STATUS_FAIL_GO_INTENT
                   - Fail: both P2P Devices indicated an Intent of 15 in Group
                     Owner Negotiation
    CSR_WIFI_SME_P2P_STATUS_FAIL_PROVISION_METHOD_INCOMPATIBLE
                   - Fail; incompatible provisioning method
    CSR_WIFI_SME_P2P_STATUS_FAIL_REJECT
                   - Fail: rejected by user
    CSR_WIFI_SME_P2P_STATUS_FAIL_RESERVED
                   - Fail; Status Reserved

*******************************************************************************/
typedef u8 CsrWifiSmeP2pStatus;
#define CSR_WIFI_SME_P2P_STATUS_SUCCESS                              ((CsrWifiSmeP2pStatus) 0x00)
#define CSR_WIFI_SME_P2P_STATUS_FAIL_INFO_UNAVAILABLE                ((CsrWifiSmeP2pStatus) 0x01)
#define CSR_WIFI_SME_P2P_STATUS_FAIL_INCOMPATIBLE_PARAM              ((CsrWifiSmeP2pStatus) 0x02)
#define CSR_WIFI_SME_P2P_STATUS_FAIL_LIMIT_REACHED                   ((CsrWifiSmeP2pStatus) 0x03)
#define CSR_WIFI_SME_P2P_STATUS_FAIL_INVALID_PARAM                   ((CsrWifiSmeP2pStatus) 0x04)
#define CSR_WIFI_SME_P2P_STATUS_FAIL_ACCOMODATE                      ((CsrWifiSmeP2pStatus) 0x05)
#define CSR_WIFI_SME_P2P_STATUS_FAIL_PREV_ERROR                      ((CsrWifiSmeP2pStatus) 0x06)
#define CSR_WIFI_SME_P2P_STATUS_FAIL_COMMON_CHANNELS                 ((CsrWifiSmeP2pStatus) 0x07)
#define CSR_WIFI_SME_P2P_STATUS_FAIL_UNKNOWN_GROUP                   ((CsrWifiSmeP2pStatus) 0x08)
#define CSR_WIFI_SME_P2P_STATUS_FAIL_GO_INTENT                       ((CsrWifiSmeP2pStatus) 0x09)
#define CSR_WIFI_SME_P2P_STATUS_FAIL_PROVISION_METHOD_INCOMPATIBLE   ((CsrWifiSmeP2pStatus) 0x0A)
#define CSR_WIFI_SME_P2P_STATUS_FAIL_REJECT                          ((CsrWifiSmeP2pStatus) 0x0B)
#define CSR_WIFI_SME_P2P_STATUS_FAIL_RESERVED                        ((CsrWifiSmeP2pStatus) 0xFF)

/*******************************************************************************

  NAME
    CsrWifiSmePacketFilterMode

  DESCRIPTION
    Options for the filter mode parameter.
    The Values here match the HIP interface

 VALUES
    CSR_WIFI_SME_PACKET_FILTER_MODE_OPT_OUT
                   - Broadcast packets are always reported to the host unless
                     they match at least one of the specified TCLAS IEs.
    CSR_WIFI_SME_PACKET_FILTER_MODE_OPT_IN
                   - Broadcast packets are reported to the host only if they
                     match at least one of the specified TCLAS IEs.

*******************************************************************************/
typedef u8 CsrWifiSmePacketFilterMode;
#define CSR_WIFI_SME_PACKET_FILTER_MODE_OPT_OUT   ((CsrWifiSmePacketFilterMode) 0x00)
#define CSR_WIFI_SME_PACKET_FILTER_MODE_OPT_IN    ((CsrWifiSmePacketFilterMode) 0x03)

/*******************************************************************************

  NAME
    CsrWifiSmePowerSaveLevel

  DESCRIPTION
    Power Save Level options as defined in the IEEE 802.11 standards
    First 3 values are set to match the mlme PowerManagementMode

 VALUES
    CSR_WIFI_SME_POWER_SAVE_LEVEL_LOW  - No power save: the driver will remain
                                         active at all times
    CSR_WIFI_SME_POWER_SAVE_LEVEL_HIGH - Enter power save after all packets in
                                         the queues are transmitted and received
    CSR_WIFI_SME_POWER_SAVE_LEVEL_MED  - Enter power save after all packets in
                                         the queues are transmitted and received
                                         and a further configurable delay
                                         (default 1s) has elapsed
    CSR_WIFI_SME_POWER_SAVE_LEVEL_AUTO - The SME will decide when to enter power
                                         save mode according to the traffic
                                         analysis

*******************************************************************************/
typedef u8 CsrWifiSmePowerSaveLevel;
#define CSR_WIFI_SME_POWER_SAVE_LEVEL_LOW    ((CsrWifiSmePowerSaveLevel) 0x00)
#define CSR_WIFI_SME_POWER_SAVE_LEVEL_HIGH   ((CsrWifiSmePowerSaveLevel) 0x01)
#define CSR_WIFI_SME_POWER_SAVE_LEVEL_MED    ((CsrWifiSmePowerSaveLevel) 0x02)
#define CSR_WIFI_SME_POWER_SAVE_LEVEL_AUTO   ((CsrWifiSmePowerSaveLevel) 0x03)

/*******************************************************************************

  NAME
    CsrWifiSmePreambleType

  DESCRIPTION
    SME Preamble Types

 VALUES
    CSR_WIFI_SME_USE_LONG_PREAMBLE  - Use legacy (long) preamble
    CSR_WIFI_SME_USE_SHORT_PREAMBLE - Use short PPDU format

*******************************************************************************/
typedef u8 CsrWifiSmePreambleType;
#define CSR_WIFI_SME_USE_LONG_PREAMBLE    ((CsrWifiSmePreambleType) 0x00)
#define CSR_WIFI_SME_USE_SHORT_PREAMBLE   ((CsrWifiSmePreambleType) 0x01)

/*******************************************************************************

  NAME
    CsrWifiSmeRadioIF

  DESCRIPTION
    Indicates the frequency

 VALUES
    CSR_WIFI_SME_RADIO_IF_GHZ_2_4 - Indicates the 2.4 GHZ frequency
    CSR_WIFI_SME_RADIO_IF_GHZ_5_0 - Future use: currently not supported
    CSR_WIFI_SME_RADIO_IF_BOTH    - Future use: currently not supported

*******************************************************************************/
typedef u8 CsrWifiSmeRadioIF;
#define CSR_WIFI_SME_RADIO_IF_GHZ_2_4   ((CsrWifiSmeRadioIF) 0x01)
#define CSR_WIFI_SME_RADIO_IF_GHZ_5_0   ((CsrWifiSmeRadioIF) 0x02)
#define CSR_WIFI_SME_RADIO_IF_BOTH      ((CsrWifiSmeRadioIF) 0x03)

/*******************************************************************************

  NAME
    CsrWifiSmeRegulatoryDomain

  DESCRIPTION
    Indicates the regulatory domain as defined in IEEE 802.11 standards

 VALUES
    CSR_WIFI_SME_REGULATORY_DOMAIN_OTHER
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_REGULATORY_DOMAIN_FCC
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_REGULATORY_DOMAIN_IC
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_REGULATORY_DOMAIN_ETSI
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_REGULATORY_DOMAIN_SPAIN
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_REGULATORY_DOMAIN_FRANCE
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_REGULATORY_DOMAIN_JAPAN
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_REGULATORY_DOMAIN_JAPANBIS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_REGULATORY_DOMAIN_CHINA
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_REGULATORY_DOMAIN_CHINABIS
                   - See IEEE 802.11 Standard
    CSR_WIFI_SME_REGULATORY_DOMAIN_NONE
                   - See IEEE 802.11 Standard

*******************************************************************************/
typedef u8 CsrWifiSmeRegulatoryDomain;
#define CSR_WIFI_SME_REGULATORY_DOMAIN_OTHER      ((CsrWifiSmeRegulatoryDomain) 0x00)
#define CSR_WIFI_SME_REGULATORY_DOMAIN_FCC        ((CsrWifiSmeRegulatoryDomain) 0x10)
#define CSR_WIFI_SME_REGULATORY_DOMAIN_IC         ((CsrWifiSmeRegulatoryDomain) 0x20)
#define CSR_WIFI_SME_REGULATORY_DOMAIN_ETSI       ((CsrWifiSmeRegulatoryDomain) 0x30)
#define CSR_WIFI_SME_REGULATORY_DOMAIN_SPAIN      ((CsrWifiSmeRegulatoryDomain) 0x31)
#define CSR_WIFI_SME_REGULATORY_DOMAIN_FRANCE     ((CsrWifiSmeRegulatoryDomain) 0x32)
#define CSR_WIFI_SME_REGULATORY_DOMAIN_JAPAN      ((CsrWifiSmeRegulatoryDomain) 0x40)
#define CSR_WIFI_SME_REGULATORY_DOMAIN_JAPANBIS   ((CsrWifiSmeRegulatoryDomain) 0x41)
#define CSR_WIFI_SME_REGULATORY_DOMAIN_CHINA      ((CsrWifiSmeRegulatoryDomain) 0x50)
#define CSR_WIFI_SME_REGULATORY_DOMAIN_CHINABIS   ((CsrWifiSmeRegulatoryDomain) 0x51)
#define CSR_WIFI_SME_REGULATORY_DOMAIN_NONE       ((CsrWifiSmeRegulatoryDomain) 0xFF)

/*******************************************************************************

  NAME
    CsrWifiSmeRoamReason

  DESCRIPTION
    Indicates the reason for roaming

 VALUES
    CSR_WIFI_SME_ROAM_REASON_BEACONLOST
                   - The station cannot receive the beacon signal any more
    CSR_WIFI_SME_ROAM_REASON_DISASSOCIATED
                   - The station has been disassociated
    CSR_WIFI_SME_ROAM_REASON_DEAUTHENTICATED
                   - The station has been deauthenticated
    CSR_WIFI_SME_ROAM_REASON_BETTERAPFOUND
                   - A better AP has been found

*******************************************************************************/
typedef u8 CsrWifiSmeRoamReason;
#define CSR_WIFI_SME_ROAM_REASON_BEACONLOST        ((CsrWifiSmeRoamReason) 0x00)
#define CSR_WIFI_SME_ROAM_REASON_DISASSOCIATED     ((CsrWifiSmeRoamReason) 0x01)
#define CSR_WIFI_SME_ROAM_REASON_DEAUTHENTICATED   ((CsrWifiSmeRoamReason) 0x02)
#define CSR_WIFI_SME_ROAM_REASON_BETTERAPFOUND     ((CsrWifiSmeRoamReason) 0x03)

/*******************************************************************************

  NAME
    CsrWifiSmeScanType

  DESCRIPTION
    Identifies the type of scan to be performed

 VALUES
    CSR_WIFI_SME_SCAN_TYPE_ALL     - Scan actively or passively according to the
                                     regulatory domain restrictions
    CSR_WIFI_SME_SCAN_TYPE_ACTIVE  - Scan actively only: send probes and listen
                                     for answers
    CSR_WIFI_SME_SCAN_TYPE_PASSIVE - Scan passively only: listen for beacon
                                     messages

*******************************************************************************/
typedef u8 CsrWifiSmeScanType;
#define CSR_WIFI_SME_SCAN_TYPE_ALL       ((CsrWifiSmeScanType) 0x00)
#define CSR_WIFI_SME_SCAN_TYPE_ACTIVE    ((CsrWifiSmeScanType) 0x01)
#define CSR_WIFI_SME_SCAN_TYPE_PASSIVE   ((CsrWifiSmeScanType) 0x02)

/*******************************************************************************

  NAME
    CsrWifiSmeTrafficType

  DESCRIPTION
    Identifies the type of traffic going on on the connection.
    The values of this type are used across the NME/SME/Router API's and they
    must be kept consistent with the corresponding types in the .xml of the
    ottherinterfaces

 VALUES
    CSR_WIFI_SME_TRAFFIC_TYPE_OCCASIONAL
                   - During the last 30 seconds there were fewer than 20 packets
                     per seconds in each second in both directions
    CSR_WIFI_SME_TRAFFIC_TYPE_BURSTY
                   - During the last 30 seconds there was at least one second
                     during which more than 20 packets were received in either
                     direction
    CSR_WIFI_SME_TRAFFIC_TYPE_PERIODIC
                   - During the last 5 seconds there were at least 10 packets
                     received each second and a defined period for the traffic
                     can be recognized
    CSR_WIFI_SME_TRAFFIC_TYPE_CONTINUOUS
                   - During the last 5 seconds there were at least 20 packets
                     received each second in either direction

*******************************************************************************/
typedef u8 CsrWifiSmeTrafficType;
#define CSR_WIFI_SME_TRAFFIC_TYPE_OCCASIONAL   ((CsrWifiSmeTrafficType) 0x00)
#define CSR_WIFI_SME_TRAFFIC_TYPE_BURSTY       ((CsrWifiSmeTrafficType) 0x01)
#define CSR_WIFI_SME_TRAFFIC_TYPE_PERIODIC     ((CsrWifiSmeTrafficType) 0x02)
#define CSR_WIFI_SME_TRAFFIC_TYPE_CONTINUOUS   ((CsrWifiSmeTrafficType) 0x03)

/*******************************************************************************

  NAME
    CsrWifiSmeTspecCtrl

  DESCRIPTION
    Defines bits for CsrWifiSmeTspecCtrlMask for additional CCX configuration.
    CURRENTLY NOT SUPPORTED.

 VALUES
    CSR_WIFI_SME_TSPEC_CTRL_STRICT
                   - No automatic negotiation
    CSR_WIFI_SME_TSPEC_CTRL_CCX_SIGNALLING
                   - Signalling TSPEC
    CSR_WIFI_SME_TSPEC_CTRL_CCX_VOICE
                   - Voice traffic TSPEC

*******************************************************************************/
typedef u8 CsrWifiSmeTspecCtrl;
#define CSR_WIFI_SME_TSPEC_CTRL_STRICT           ((CsrWifiSmeTspecCtrl) 0x01)
#define CSR_WIFI_SME_TSPEC_CTRL_CCX_SIGNALLING   ((CsrWifiSmeTspecCtrl) 0x02)
#define CSR_WIFI_SME_TSPEC_CTRL_CCX_VOICE        ((CsrWifiSmeTspecCtrl) 0x04)

/*******************************************************************************

  NAME
    CsrWifiSmeTspecResultCode

  DESCRIPTION
    Defines the result of the TSPEC exchanges with the AP

 VALUES
    CSR_WIFI_SME_TSPEC_RESULT_SUCCESS
                   - TSPEC command has been processed correctly
    CSR_WIFI_SME_TSPEC_RESULT_UNSPECIFIED_QOS_FAILURE
                   - The Access Point reported a failure
    CSR_WIFI_SME_TSPEC_RESULT_FAILURE
                   - Internal failure in the SME
    CSR_WIFI_SME_TSPEC_RESULT_INVALID_TSPEC_PARAMETERS
                   - The TSPEC parameters are invalid
    CSR_WIFI_SME_TSPEC_RESULT_INVALID_TCLAS_PARAMETERS
                   - The TCLASS parameters are invalid
    CSR_WIFI_SME_TSPEC_RESULT_INSUFFICIENT_BANDWIDTH
                   - As specified by the WMM Spec
    CSR_WIFI_SME_TSPEC_RESULT_WRONG_POLICY
                   - As specified by the WMM Spec
    CSR_WIFI_SME_TSPEC_RESULT_REJECTED_WITH_SUGGESTED_CHANGES
                   - As specified by the WMM Spec
    CSR_WIFI_SME_TSPEC_RESULT_TIMEOUT
                   - The TSPEC negotiation timed out
    CSR_WIFI_SME_TSPEC_RESULT_NOT_SUPPORTED
                   - The Access Point does not support the TSPEC
    CSR_WIFI_SME_TSPEC_RESULT_IE_LENGTH_INCORRECT
                   - The length of the TSPEC is not correct
    CSR_WIFI_SME_TSPEC_RESULT_INVALID_TRANSACTION_ID
                   - The TSPEC transaction id is not in the list
    CSR_WIFI_SME_TSPEC_RESULT_INSTALLED
                   - The TSPEC has been installed and it is now active.
    CSR_WIFI_SME_TSPEC_RESULT_TID_ALREADY_INSTALLED
                   - The Traffic ID has already been installed
    CSR_WIFI_SME_TSPEC_RESULT_TSPEC_REMOTELY_DELETED
                   - The AP has deleted the TSPEC

*******************************************************************************/
typedef u8 CsrWifiSmeTspecResultCode;
#define CSR_WIFI_SME_TSPEC_RESULT_SUCCESS                           ((CsrWifiSmeTspecResultCode) 0x00)
#define CSR_WIFI_SME_TSPEC_RESULT_UNSPECIFIED_QOS_FAILURE           ((CsrWifiSmeTspecResultCode) 0x01)
#define CSR_WIFI_SME_TSPEC_RESULT_FAILURE                           ((CsrWifiSmeTspecResultCode) 0x02)
#define CSR_WIFI_SME_TSPEC_RESULT_INVALID_TSPEC_PARAMETERS          ((CsrWifiSmeTspecResultCode) 0x05)
#define CSR_WIFI_SME_TSPEC_RESULT_INVALID_TCLAS_PARAMETERS          ((CsrWifiSmeTspecResultCode) 0x06)
#define CSR_WIFI_SME_TSPEC_RESULT_INSUFFICIENT_BANDWIDTH            ((CsrWifiSmeTspecResultCode) 0x07)
#define CSR_WIFI_SME_TSPEC_RESULT_WRONG_POLICY                      ((CsrWifiSmeTspecResultCode) 0x08)
#define CSR_WIFI_SME_TSPEC_RESULT_REJECTED_WITH_SUGGESTED_CHANGES   ((CsrWifiSmeTspecResultCode) 0x09)
#define CSR_WIFI_SME_TSPEC_RESULT_TIMEOUT                           ((CsrWifiSmeTspecResultCode) 0x0D)
#define CSR_WIFI_SME_TSPEC_RESULT_NOT_SUPPORTED                     ((CsrWifiSmeTspecResultCode) 0x0E)
#define CSR_WIFI_SME_TSPEC_RESULT_IE_LENGTH_INCORRECT               ((CsrWifiSmeTspecResultCode) 0x10)
#define CSR_WIFI_SME_TSPEC_RESULT_INVALID_TRANSACTION_ID            ((CsrWifiSmeTspecResultCode) 0x11)
#define CSR_WIFI_SME_TSPEC_RESULT_INSTALLED                         ((CsrWifiSmeTspecResultCode) 0x12)
#define CSR_WIFI_SME_TSPEC_RESULT_TID_ALREADY_INSTALLED             ((CsrWifiSmeTspecResultCode) 0x13)
#define CSR_WIFI_SME_TSPEC_RESULT_TSPEC_REMOTELY_DELETED            ((CsrWifiSmeTspecResultCode) 0x14)

/*******************************************************************************

  NAME
    CsrWifiSmeWepAuthMode

  DESCRIPTION
    Define bits for CsrWifiSmeWepAuthMode

 VALUES
    CSR_WIFI_SME_WEP_AUTH_MODE_OPEN   - Open-WEP enabled network
    CSR_WIFI_SME_WEP_AUTH_MODE_SHARED - Shared-key WEP enabled network.

*******************************************************************************/
typedef u8 CsrWifiSmeWepAuthMode;
#define CSR_WIFI_SME_WEP_AUTH_MODE_OPEN     ((CsrWifiSmeWepAuthMode) 0x00)
#define CSR_WIFI_SME_WEP_AUTH_MODE_SHARED   ((CsrWifiSmeWepAuthMode) 0x01)

/*******************************************************************************

  NAME
    CsrWifiSmeWepCredentialType

  DESCRIPTION
    Definition of types of WEP Credentials

 VALUES
    CSR_WIFI_SME_CREDENTIAL_TYPE_WEP64
                   - WEP 64 credential
    CSR_WIFI_SME_CREDENTIAL_TYPE_WEP128
                   - WEP 128 credential

*******************************************************************************/
typedef u8 CsrWifiSmeWepCredentialType;
#define CSR_WIFI_SME_CREDENTIAL_TYPE_WEP64    ((CsrWifiSmeWepCredentialType) 0x00)
#define CSR_WIFI_SME_CREDENTIAL_TYPE_WEP128   ((CsrWifiSmeWepCredentialType) 0x01)

/*******************************************************************************

  NAME
    CsrWifiSmeWmmMode

  DESCRIPTION
    Defines bits for CsrWifiSmeWmmModeMask: enable/disable WMM features.

 VALUES
    CSR_WIFI_SME_WMM_MODE_DISABLED   - Disables the WMM features.
    CSR_WIFI_SME_WMM_MODE_AC_ENABLED - Enables support for WMM-AC.
    CSR_WIFI_SME_WMM_MODE_PS_ENABLED - Enables support for WMM Power Save.
    CSR_WIFI_SME_WMM_MODE_SA_ENABLED - Currently not supported
    CSR_WIFI_SME_WMM_MODE_ENABLED    - Enables support for all currently
                                       available WMM features.

*******************************************************************************/
typedef u8 CsrWifiSmeWmmMode;
#define CSR_WIFI_SME_WMM_MODE_DISABLED     ((CsrWifiSmeWmmMode) 0x00)
#define CSR_WIFI_SME_WMM_MODE_AC_ENABLED   ((CsrWifiSmeWmmMode) 0x01)
#define CSR_WIFI_SME_WMM_MODE_PS_ENABLED   ((CsrWifiSmeWmmMode) 0x02)
#define CSR_WIFI_SME_WMM_MODE_SA_ENABLED   ((CsrWifiSmeWmmMode) 0x04)
#define CSR_WIFI_SME_WMM_MODE_ENABLED      ((CsrWifiSmeWmmMode) 0xFF)

/*******************************************************************************

  NAME
    CsrWifiSmeWmmQosInfo

  DESCRIPTION
    Defines bits for the QoS Info Octect as defined in the WMM specification.
    The first four values define one bit each that can be set or cleared.
    Each of the last four values define all the remaining 4 bits and only one
    of them at the time shall be used.
    For more information, see 'WMM (including WMM Power Save) Specification -
    Version 1.1' and 'UniFi Configuring WMM and WMM-PS, Application Note'.

 VALUES
    CSR_WIFI_SME_WMM_QOS_INFO_AC_MAX_SP_ALL
                   - WMM AP may deliver all buffered frames
    CSR_WIFI_SME_WMM_QOS_INFO_AC_VO
                   - Enable UAPSD(both trigger and delivery) for Voice Access
                     Category
    CSR_WIFI_SME_WMM_QOS_INFO_AC_VI
                   - Enable UAPSD(both trigger and delivery) for  Video Access
                     Category
    CSR_WIFI_SME_WMM_QOS_INFO_AC_BK
                   - Enable UAPSD(both trigger and delivery) for  Background
                     Access Category
    CSR_WIFI_SME_WMM_QOS_INFO_AC_BE
                   - Enable UAPSD(both trigger and delivery) for  Best Effort
                     Access Category
    CSR_WIFI_SME_WMM_QOS_INFO_AC_MAX_SP_TWO
                   - WMM AP may deliver a maximum of 2 buffered frames (MSDUs
                     and MMPDUs) per USP
    CSR_WIFI_SME_WMM_QOS_INFO_AC_MAX_SP_FOUR
                   - WMM AP may deliver a maximum of 4 buffered frames (MSDUs
                     and MMPDUs) per USP
    CSR_WIFI_SME_WMM_QOS_INFO_AC_MAX_SP_SIX
                   - WMM AP may deliver a maximum of 6 buffered frames (MSDUs
                     and MMPDUs) per USP

*******************************************************************************/
typedef u8 CsrWifiSmeWmmQosInfo;
#define CSR_WIFI_SME_WMM_QOS_INFO_AC_MAX_SP_ALL    ((CsrWifiSmeWmmQosInfo) 0x00)
#define CSR_WIFI_SME_WMM_QOS_INFO_AC_VO            ((CsrWifiSmeWmmQosInfo) 0x01)
#define CSR_WIFI_SME_WMM_QOS_INFO_AC_VI            ((CsrWifiSmeWmmQosInfo) 0x02)
#define CSR_WIFI_SME_WMM_QOS_INFO_AC_BK            ((CsrWifiSmeWmmQosInfo) 0x04)
#define CSR_WIFI_SME_WMM_QOS_INFO_AC_BE            ((CsrWifiSmeWmmQosInfo) 0x08)
#define CSR_WIFI_SME_WMM_QOS_INFO_AC_MAX_SP_TWO    ((CsrWifiSmeWmmQosInfo) 0x20)
#define CSR_WIFI_SME_WMM_QOS_INFO_AC_MAX_SP_FOUR   ((CsrWifiSmeWmmQosInfo) 0x40)
#define CSR_WIFI_SME_WMM_QOS_INFO_AC_MAX_SP_SIX    ((CsrWifiSmeWmmQosInfo) 0x60)

/*******************************************************************************

  NAME
    CsrWifiSmeWpsConfigType

  DESCRIPTION
    WPS config methods supported/used by a device

 VALUES
    CSR_WIFI_WPS_CONFIG_LABEL
                   - Label
    CSR_WIFI_WPS_CONFIG_DISPLAY
                   - Display
    CSR_WIFI_WPS_CONFIG_EXT_NFC
                   - External NFC : Not supported in this release
    CSR_WIFI_WPS_CONFIG_INT_NFC
                   - Internal NFC : Not supported in this release
    CSR_WIFI_WPS_CONFIG_NFC_IFACE
                   - NFC interface : Not supported in this release
    CSR_WIFI_WPS_CONFIG_PBC
                   - PBC
    CSR_WIFI_WPS_CONFIG_KEYPAD
                   - KeyPad
    CSR_WIFI_WPS_CONFIG_VIRTUAL_PBC
                   - PBC through software user interface
    CSR_WIFI_WPS_CONFIG_PHYSICAL_PBC
                   - Physical PBC
    CSR_WIFI_WPS_CONFIG_VIRTUAL_DISPLAY
                   - Virtual Display : via html config page etc
    CSR_WIFI_WPS_CONFIG_PHYSICAL_DISPLAY
                   - Physical Display : Attached to the device

*******************************************************************************/
typedef u16 CsrWifiSmeWpsConfigType;
#define CSR_WIFI_WPS_CONFIG_LABEL              ((CsrWifiSmeWpsConfigType) 0x0004)
#define CSR_WIFI_WPS_CONFIG_DISPLAY            ((CsrWifiSmeWpsConfigType) 0x0008)
#define CSR_WIFI_WPS_CONFIG_EXT_NFC            ((CsrWifiSmeWpsConfigType) 0x0010)
#define CSR_WIFI_WPS_CONFIG_INT_NFC            ((CsrWifiSmeWpsConfigType) 0x0020)
#define CSR_WIFI_WPS_CONFIG_NFC_IFACE          ((CsrWifiSmeWpsConfigType) 0x0040)
#define CSR_WIFI_WPS_CONFIG_PBC                ((CsrWifiSmeWpsConfigType) 0x0080)
#define CSR_WIFI_WPS_CONFIG_KEYPAD             ((CsrWifiSmeWpsConfigType) 0x0100)
#define CSR_WIFI_WPS_CONFIG_VIRTUAL_PBC        ((CsrWifiSmeWpsConfigType) 0x0280)
#define CSR_WIFI_WPS_CONFIG_PHYSICAL_PBC       ((CsrWifiSmeWpsConfigType) 0x0480)
#define CSR_WIFI_WPS_CONFIG_VIRTUAL_DISPLAY    ((CsrWifiSmeWpsConfigType) 0x2008)
#define CSR_WIFI_WPS_CONFIG_PHYSICAL_DISPLAY   ((CsrWifiSmeWpsConfigType) 0x4008)

/*******************************************************************************

  NAME
    CsrWifiSmeWpsDeviceCategory

  DESCRIPTION
    Wps Primary Device Types

 VALUES
    CSR_WIFI_SME_WPS_CATEGORY_UNSPECIFIED
                   - Unspecified.
    CSR_WIFI_SME_WPS_CATEGORY_COMPUTER
                   - Computer.
    CSR_WIFI_SME_WPS_CATEGORY_INPUT_DEV
                   - Input device
    CSR_WIFI_SME_WPS_CATEGORY_PRT_SCAN_FX_CP
                   - Printer Scanner Fax Copier etc
    CSR_WIFI_SME_WPS_CATEGORY_CAMERA
                   - Camera
    CSR_WIFI_SME_WPS_CATEGORY_STORAGE
                   - Storage
    CSR_WIFI_SME_WPS_CATEGORY_NET_INFRA
                   - Net Infra
    CSR_WIFI_SME_WPS_CATEGORY_DISPLAY
                   - Display
    CSR_WIFI_SME_WPS_CATEGORY_MULTIMEDIA
                   - Multimedia
    CSR_WIFI_SME_WPS_CATEGORY_GAMING
                   - Gaming.
    CSR_WIFI_SME_WPS_CATEGORY_TELEPHONE
                   - Telephone.
    CSR_WIFI_SME_WPS_CATEGORY_AUDIO
                   - Audio
    CSR_WIFI_SME_WPS_CATEOARY_OTHERS
                   - Others.

*******************************************************************************/
typedef u8 CsrWifiSmeWpsDeviceCategory;
#define CSR_WIFI_SME_WPS_CATEGORY_UNSPECIFIED      ((CsrWifiSmeWpsDeviceCategory) 0x00)
#define CSR_WIFI_SME_WPS_CATEGORY_COMPUTER         ((CsrWifiSmeWpsDeviceCategory) 0x01)
#define CSR_WIFI_SME_WPS_CATEGORY_INPUT_DEV        ((CsrWifiSmeWpsDeviceCategory) 0x02)
#define CSR_WIFI_SME_WPS_CATEGORY_PRT_SCAN_FX_CP   ((CsrWifiSmeWpsDeviceCategory) 0x03)
#define CSR_WIFI_SME_WPS_CATEGORY_CAMERA           ((CsrWifiSmeWpsDeviceCategory) 0x04)
#define CSR_WIFI_SME_WPS_CATEGORY_STORAGE          ((CsrWifiSmeWpsDeviceCategory) 0x05)
#define CSR_WIFI_SME_WPS_CATEGORY_NET_INFRA        ((CsrWifiSmeWpsDeviceCategory) 0x06)
#define CSR_WIFI_SME_WPS_CATEGORY_DISPLAY          ((CsrWifiSmeWpsDeviceCategory) 0x07)
#define CSR_WIFI_SME_WPS_CATEGORY_MULTIMEDIA       ((CsrWifiSmeWpsDeviceCategory) 0x08)
#define CSR_WIFI_SME_WPS_CATEGORY_GAMING           ((CsrWifiSmeWpsDeviceCategory) 0x09)
#define CSR_WIFI_SME_WPS_CATEGORY_TELEPHONE        ((CsrWifiSmeWpsDeviceCategory) 0x0A)
#define CSR_WIFI_SME_WPS_CATEGORY_AUDIO            ((CsrWifiSmeWpsDeviceCategory) 0x0B)
#define CSR_WIFI_SME_WPS_CATEOARY_OTHERS           ((CsrWifiSmeWpsDeviceCategory) 0xFF)

/*******************************************************************************

  NAME
    CsrWifiSmeWpsDeviceSubCategory

  DESCRIPTION
    Wps Secondary Device Types

 VALUES
    CSR_WIFI_SME_WPS_SUB_CATEGORY_UNSPECIFIED
                   - Unspecied
    CSR_WIFI_SME_WPS_STORAGE_SUB_CATEGORY_NAS
                   - Network Associated Storage
    CSR_WIFI_SME_WPS_PSFC_SUB_CATEGORY_PRNTR
                   - Printer or print server
    CSR_WIFI_SME_WPS_TELEPHONE_SUB_CATEGORY_WM
                   - Windows mobile
    CSR_WIFI_SME_WPS_AUDIO_SUB_CATEGORY_TUNER
                   - Audio tuner/receiver
    CSR_WIFI_SME_WPS_CAMERA_SUB_CATEGORY_DIG_STL
                   - Digital still camera
    CSR_WIFI_SME_WPS_NET_INFRA_SUB_CATEGORY_AP
                   - Access Point
    CSR_WIFI_SME_WPS_DISPLAY_SUB_CATEGORY_TV
                   - TV.
    CSR_WIFI_SME_WPS_MM_SUB_CATEGORY_DAR
                   - DAR.
    CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_KEYBD
                   - Keyboard.
    CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_PC
                   - PC.
    CSR_WIFI_SME_WPS_GAMING_SUB_CATEGORY_XBOX
                   - Xbox.
    CSR_WIFI_SME_WPS_PSFC_SUB_CATEGORY_SCNR
                   - Scanner
    CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_SERVER
                   - Server
    CSR_WIFI_SME_WPS_NET_INFRA_SUB_CATEGORY_ROUTER
                   - Router
    CSR_WIFI_SME_WPS_MM_SUB_CATEGORY_PVR
                   - PVR
    CSR_WIFI_SME_WPS_AUDIO_SUB_CATEGORY_SPEAKER
                   - Speaker
    CSR_WIFI_SME_WPS_TELEPHONE_SUB_CATEGORY_FP_SM
                   - Feature phone - Single mode
    CSR_WIFI_SME_WPS_CAMERA_SUB_CATEGORY_VIDEO
                   - Video camera
    CSR_WIFI_SME_WPS_DISPLAY_SUB_CATEGORY_PIC_FRM
                   - Picture frame
    CSR_WIFI_SME_WPS_GAMING_SUB_CATEGORY_XBOX_360
                   - Xbox360
    CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_MOUSE
                   - Mouse
    CSR_WIFI_SME_WPS_NET_INFRA_SUB_CATEGORY_SWITCH
                   - Switch
    CSR_WIFI_SME_WPS_AUDIO_SUB_CATEGORY_PMP
                   - Portable music player
    CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_JOYSTK
                   - Joy stick
    CSR_WIFI_SME_WPS_GAMING_SUB_CATEGORY_PLAY_STN
                   - Play-station
    CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_MED_CENT
                   - Media Center
    CSR_WIFI_SME_WPS_MM_SUB_CATEGORY_MCX
                   - MCX
    CSR_WIFI_SME_WPS_TELEPHONE_SUB_CATEGORY_FP_DM
                   - Feature phone - Dual mode
    CSR_WIFI_SME_WPS_CAMERA_SUB_CATEGORY_WEB
                   - Web camera
    CSR_WIFI_SME_WPS_PSFC_SUB_CATEGORY_FAX
                   - Fax
    CSR_WIFI_SME_WPS_DISPLAY_SUB_CATEGORY_PROJECTOR
                   - Projector
    CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_TRKBL
                   - Track Ball
    CSR_WIFI_SME_WPS_MM_SUB_CATEGORY_ST_BOX
                   - Set-Top-Box
    CSR_WIFI_SME_WPS_NET_INFRA_SUB_CATEGORY_GATEWAY
                   - GateWay.
    CSR_WIFI_SME_WPS_CAMERA_SUB_CATEGORY_SECURITY
                   - Security camera
    CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_ULTRA_MOB_PC
                   - Ultra mobile PC.
    CSR_WIFI_SME_WPS_GAMING_SUB_CATEGORY_CONSOLE
                   - Game console/Game console adapter
    CSR_WIFI_SME_WPS_PSFC_SUB_CATEGORY_CPR
                   - Copier
    CSR_WIFI_SME_WPS_AUDIO_SUB_CATEGORY_HEADSET
                   - Headset(headphones + microphone)
    CSR_WIFI_SME_WPS_TELEPHONE_SUB_CATEGORY_SP_SM
                   - Smart phone - Single mode
    CSR_WIFI_SME_WPS_DISPLAY_SUB_CATEGORY_MONITOR
                   - Monitor.
    CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_GAME_CTRL
                   - Game control.
    CSR_WIFI_SME_WPS_PSFC_SUB_CATEGORY_ALL
                   - All-in-One
    CSR_WIFI_SME_WPS_MM_SUB_CATEGORY_MEDIA
                   - Media Server/Media Adapter/Media Extender
    CSR_WIFI_SME_WPS_TELEPHONE_SUB_CATEGORY_SP_DM
                   - Smart phone - Dual mode
    CSR_WIFI_SME_WPS_GAMING_SUB_CATEGORY_PORT_DEV
                   - Portable gaming device
    CSR_WIFI_SME_WPS_AUDIO_SUB_CATEGORY_HEADPHONE
                   - Headphone.
    CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_NOTEBOOK
                   - Notebook.
    CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_REMOTE
                   - Remote control
    CSR_WIFI_SME_WPS_AUDIO_SUB_CATEGORY_MIC
                   - Microphone
    CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_DESKTOP
                   - Desktop.
    CSR_WIFI_SME_WPS_MM_SUB_CATEGORY_VP
                   - Portable video player
    CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_MID
                   - Mobile internet device
    CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_TOUCH_SCRN
                   - Touch screen
    CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_BIOMET_RDR
                   - Biometric reader
    CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_NETBOOK
                   - Netbook
    CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_BRCD_RDR
                   - Bar code reader.

*******************************************************************************/
typedef u8 CsrWifiSmeWpsDeviceSubCategory;
#define CSR_WIFI_SME_WPS_SUB_CATEGORY_UNSPECIFIED             ((CsrWifiSmeWpsDeviceSubCategory) 0x00)
#define CSR_WIFI_SME_WPS_STORAGE_SUB_CATEGORY_NAS             ((CsrWifiSmeWpsDeviceSubCategory) 0x01)
#define CSR_WIFI_SME_WPS_PSFC_SUB_CATEGORY_PRNTR              ((CsrWifiSmeWpsDeviceSubCategory) 0x01)
#define CSR_WIFI_SME_WPS_TELEPHONE_SUB_CATEGORY_WM            ((CsrWifiSmeWpsDeviceSubCategory) 0x01)
#define CSR_WIFI_SME_WPS_AUDIO_SUB_CATEGORY_TUNER             ((CsrWifiSmeWpsDeviceSubCategory) 0x01)
#define CSR_WIFI_SME_WPS_CAMERA_SUB_CATEGORY_DIG_STL          ((CsrWifiSmeWpsDeviceSubCategory) 0x01)
#define CSR_WIFI_SME_WPS_NET_INFRA_SUB_CATEGORY_AP            ((CsrWifiSmeWpsDeviceSubCategory) 0x01)
#define CSR_WIFI_SME_WPS_DISPLAY_SUB_CATEGORY_TV              ((CsrWifiSmeWpsDeviceSubCategory) 0x01)
#define CSR_WIFI_SME_WPS_MM_SUB_CATEGORY_DAR                  ((CsrWifiSmeWpsDeviceSubCategory) 0x01)
#define CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_KEYBD         ((CsrWifiSmeWpsDeviceSubCategory) 0x01)
#define CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_PC             ((CsrWifiSmeWpsDeviceSubCategory) 0x01)
#define CSR_WIFI_SME_WPS_GAMING_SUB_CATEGORY_XBOX             ((CsrWifiSmeWpsDeviceSubCategory) 0x01)
#define CSR_WIFI_SME_WPS_PSFC_SUB_CATEGORY_SCNR               ((CsrWifiSmeWpsDeviceSubCategory) 0x02)
#define CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_SERVER         ((CsrWifiSmeWpsDeviceSubCategory) 0x02)
#define CSR_WIFI_SME_WPS_NET_INFRA_SUB_CATEGORY_ROUTER        ((CsrWifiSmeWpsDeviceSubCategory) 0x02)
#define CSR_WIFI_SME_WPS_MM_SUB_CATEGORY_PVR                  ((CsrWifiSmeWpsDeviceSubCategory) 0x02)
#define CSR_WIFI_SME_WPS_AUDIO_SUB_CATEGORY_SPEAKER           ((CsrWifiSmeWpsDeviceSubCategory) 0x02)
#define CSR_WIFI_SME_WPS_TELEPHONE_SUB_CATEGORY_FP_SM         ((CsrWifiSmeWpsDeviceSubCategory) 0x02)
#define CSR_WIFI_SME_WPS_CAMERA_SUB_CATEGORY_VIDEO            ((CsrWifiSmeWpsDeviceSubCategory) 0x02)
#define CSR_WIFI_SME_WPS_DISPLAY_SUB_CATEGORY_PIC_FRM         ((CsrWifiSmeWpsDeviceSubCategory) 0x02)
#define CSR_WIFI_SME_WPS_GAMING_SUB_CATEGORY_XBOX_360         ((CsrWifiSmeWpsDeviceSubCategory) 0x02)
#define CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_MOUSE         ((CsrWifiSmeWpsDeviceSubCategory) 0x02)
#define CSR_WIFI_SME_WPS_NET_INFRA_SUB_CATEGORY_SWITCH        ((CsrWifiSmeWpsDeviceSubCategory) 0x03)
#define CSR_WIFI_SME_WPS_AUDIO_SUB_CATEGORY_PMP               ((CsrWifiSmeWpsDeviceSubCategory) 0x03)
#define CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_JOYSTK        ((CsrWifiSmeWpsDeviceSubCategory) 0x03)
#define CSR_WIFI_SME_WPS_GAMING_SUB_CATEGORY_PLAY_STN         ((CsrWifiSmeWpsDeviceSubCategory) 0x03)
#define CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_MED_CENT       ((CsrWifiSmeWpsDeviceSubCategory) 0x03)
#define CSR_WIFI_SME_WPS_MM_SUB_CATEGORY_MCX                  ((CsrWifiSmeWpsDeviceSubCategory) 0x03)
#define CSR_WIFI_SME_WPS_TELEPHONE_SUB_CATEGORY_FP_DM         ((CsrWifiSmeWpsDeviceSubCategory) 0x03)
#define CSR_WIFI_SME_WPS_CAMERA_SUB_CATEGORY_WEB              ((CsrWifiSmeWpsDeviceSubCategory) 0x03)
#define CSR_WIFI_SME_WPS_PSFC_SUB_CATEGORY_FAX                ((CsrWifiSmeWpsDeviceSubCategory) 0x03)
#define CSR_WIFI_SME_WPS_DISPLAY_SUB_CATEGORY_PROJECTOR       ((CsrWifiSmeWpsDeviceSubCategory) 0x03)
#define CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_TRKBL         ((CsrWifiSmeWpsDeviceSubCategory) 0x04)
#define CSR_WIFI_SME_WPS_MM_SUB_CATEGORY_ST_BOX               ((CsrWifiSmeWpsDeviceSubCategory) 0x04)
#define CSR_WIFI_SME_WPS_NET_INFRA_SUB_CATEGORY_GATEWAY       ((CsrWifiSmeWpsDeviceSubCategory) 0x04)
#define CSR_WIFI_SME_WPS_CAMERA_SUB_CATEGORY_SECURITY         ((CsrWifiSmeWpsDeviceSubCategory) 0x04)
#define CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_ULTRA_MOB_PC   ((CsrWifiSmeWpsDeviceSubCategory) 0x04)
#define CSR_WIFI_SME_WPS_GAMING_SUB_CATEGORY_CONSOLE          ((CsrWifiSmeWpsDeviceSubCategory) 0x04)
#define CSR_WIFI_SME_WPS_PSFC_SUB_CATEGORY_CPR                ((CsrWifiSmeWpsDeviceSubCategory) 0x04)
#define CSR_WIFI_SME_WPS_AUDIO_SUB_CATEGORY_HEADSET           ((CsrWifiSmeWpsDeviceSubCategory) 0x04)
#define CSR_WIFI_SME_WPS_TELEPHONE_SUB_CATEGORY_SP_SM         ((CsrWifiSmeWpsDeviceSubCategory) 0x04)
#define CSR_WIFI_SME_WPS_DISPLAY_SUB_CATEGORY_MONITOR         ((CsrWifiSmeWpsDeviceSubCategory) 0x04)
#define CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_GAME_CTRL     ((CsrWifiSmeWpsDeviceSubCategory) 0x05)
#define CSR_WIFI_SME_WPS_PSFC_SUB_CATEGORY_ALL                ((CsrWifiSmeWpsDeviceSubCategory) 0x05)
#define CSR_WIFI_SME_WPS_MM_SUB_CATEGORY_MEDIA                ((CsrWifiSmeWpsDeviceSubCategory) 0x05)
#define CSR_WIFI_SME_WPS_TELEPHONE_SUB_CATEGORY_SP_DM         ((CsrWifiSmeWpsDeviceSubCategory) 0x05)
#define CSR_WIFI_SME_WPS_GAMING_SUB_CATEGORY_PORT_DEV         ((CsrWifiSmeWpsDeviceSubCategory) 0x05)
#define CSR_WIFI_SME_WPS_AUDIO_SUB_CATEGORY_HEADPHONE         ((CsrWifiSmeWpsDeviceSubCategory) 0x05)
#define CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_NOTEBOOK       ((CsrWifiSmeWpsDeviceSubCategory) 0x05)
#define CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_REMOTE        ((CsrWifiSmeWpsDeviceSubCategory) 0x06)
#define CSR_WIFI_SME_WPS_AUDIO_SUB_CATEGORY_MIC               ((CsrWifiSmeWpsDeviceSubCategory) 0x06)
#define CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_DESKTOP        ((CsrWifiSmeWpsDeviceSubCategory) 0x06)
#define CSR_WIFI_SME_WPS_MM_SUB_CATEGORY_VP                   ((CsrWifiSmeWpsDeviceSubCategory) 0x06)
#define CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_MID            ((CsrWifiSmeWpsDeviceSubCategory) 0x07)
#define CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_TOUCH_SCRN    ((CsrWifiSmeWpsDeviceSubCategory) 0x07)
#define CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_BIOMET_RDR    ((CsrWifiSmeWpsDeviceSubCategory) 0x08)
#define CSR_WIFI_SME_WPS_COMPUTER_SUB_CATEGORY_NETBOOK        ((CsrWifiSmeWpsDeviceSubCategory) 0x08)
#define CSR_WIFI_SME_WPS_INPUT_DEV_SUB_CATEGORY_BRCD_RDR      ((CsrWifiSmeWpsDeviceSubCategory) 0x09)

/*******************************************************************************

  NAME
    CsrWifiSmeWpsDpid

  DESCRIPTION
    Device Password ID for the chosen config method

 VALUES
    CSR_WIFI_SME_WPS_DPID_PIN       - PIN
    CSR_WIFI_SME_WPS_DPID_USER      - User specified : Used only during P2P GO
                                      negotiation procedure
    CSR_WIFI_SME_WPS_DPID_MACHINE   - Machine specified i: Not used in this
                                      release
    CSR_WIFI_SME_WPS_DPID_REKEY     - Rekey : Not used in this release
    CSR_WIFI_SME_WPS_DPID_PBC       - PBC
    CSR_WIFI_SME_WPS_DPID_REGISTRAR - Registrar specified : Used only in P2P Go
                                      negotiation procedure

*******************************************************************************/
typedef u16 CsrWifiSmeWpsDpid;
#define CSR_WIFI_SME_WPS_DPID_PIN         ((CsrWifiSmeWpsDpid) 0x0000)
#define CSR_WIFI_SME_WPS_DPID_USER        ((CsrWifiSmeWpsDpid) 0x0001)
#define CSR_WIFI_SME_WPS_DPID_MACHINE     ((CsrWifiSmeWpsDpid) 0x0002)
#define CSR_WIFI_SME_WPS_DPID_REKEY       ((CsrWifiSmeWpsDpid) 0x0003)
#define CSR_WIFI_SME_WPS_DPID_PBC         ((CsrWifiSmeWpsDpid) 0x0004)
#define CSR_WIFI_SME_WPS_DPID_REGISTRAR   ((CsrWifiSmeWpsDpid) 0x0005)

/*******************************************************************************

  NAME
    CsrWifiSmeWpsRegistration

  DESCRIPTION

 VALUES
    CSR_WIFI_SME_WPS_REG_NOT_REQUIRED - No encryption set
    CSR_WIFI_SME_WPS_REG_REQUIRED     - No encryption set
    CSR_WIFI_SME_WPS_REG_UNKNOWN      - No encryption set

*******************************************************************************/
typedef u8 CsrWifiSmeWpsRegistration;
#define CSR_WIFI_SME_WPS_REG_NOT_REQUIRED   ((CsrWifiSmeWpsRegistration) 0x00)
#define CSR_WIFI_SME_WPS_REG_REQUIRED       ((CsrWifiSmeWpsRegistration) 0x01)
#define CSR_WIFI_SME_WPS_REG_UNKNOWN        ((CsrWifiSmeWpsRegistration) 0x02)


/*******************************************************************************

  NAME
    CsrWifiSmeAuthModeMask

  DESCRIPTION
    Mask type for use with the values defined by CsrWifiSmeAuthMode

*******************************************************************************/
typedef u16 CsrWifiSmeAuthModeMask;
/*******************************************************************************

  NAME
    CsrWifiSmeEncryptionMask

  DESCRIPTION
    Mask type for use with the values defined by CsrWifiSmeEncryption

*******************************************************************************/
typedef u16 CsrWifiSmeEncryptionMask;
/*******************************************************************************

  NAME
    CsrWifiSmeIndicationsMask

  DESCRIPTION
    Mask type for use with the values defined by CsrWifiSmeIndications

*******************************************************************************/
typedef u32 CsrWifiSmeIndicationsMask;
/*******************************************************************************

  NAME
    CsrWifiSmeP2pCapabilityMask

  DESCRIPTION
    Mask type for use with the values defined by CsrWifiSmeP2pCapability

*******************************************************************************/
typedef u8 CsrWifiSmeP2pCapabilityMask;
/*******************************************************************************

  NAME
    CsrWifiSmeP2pGroupCapabilityMask

  DESCRIPTION
    Mask type for use with the values defined by CsrWifiSmeP2pGroupCapability

*******************************************************************************/
typedef u8 CsrWifiSmeP2pGroupCapabilityMask;
/*******************************************************************************

  NAME
    CsrWifiSmeTspecCtrlMask

  DESCRIPTION
    Mask type for use with the values defined by CsrWifiSmeTspecCtrl

*******************************************************************************/
typedef u8 CsrWifiSmeTspecCtrlMask;
/*******************************************************************************

  NAME
    CsrWifiSmeWmmModeMask

  DESCRIPTION
    Mask type for use with the values defined by CsrWifiSmeWmmMode

*******************************************************************************/
typedef u8 CsrWifiSmeWmmModeMask;
/*******************************************************************************

  NAME
    CsrWifiSmeWmmQosInfoMask

  DESCRIPTION
    Mask type for use with the values defined by CsrWifiSmeWmmQosInfo

*******************************************************************************/
typedef u8 CsrWifiSmeWmmQosInfoMask;
/*******************************************************************************

  NAME
    CsrWifiSmeWpsConfigTypeMask

  DESCRIPTION
    Mask type for use with the values defined by CsrWifiSmeWpsConfigType

*******************************************************************************/
typedef u16 CsrWifiSmeWpsConfigTypeMask;


/*******************************************************************************

  NAME
    CsrWifiSmeAdHocConfig

  DESCRIPTION
    Defines values to use when starting an Ad-hoc (IBSS) network.

  MEMBERS
    atimWindowTu          - ATIM window specified for IBSS
    beaconPeriodTu        - Interval between beacon packets
    joinOnlyAttempts      - Maximum number of attempts to join an ad-hoc network.
                            The default value is 1.
                            Set to 0 for infinite attempts.
    joinAttemptIntervalMs - Time between scans for joining the requested IBSS.

*******************************************************************************/
typedef struct
{
    u16 atimWindowTu;
    u16 beaconPeriodTu;
    u16 joinOnlyAttempts;
    u16 joinAttemptIntervalMs;
} CsrWifiSmeAdHocConfig;

/*******************************************************************************

  NAME
    CsrWifiSmeAvailabilityConfig

  DESCRIPTION

  MEMBERS
    listenChannel        -
    availabilityDuration -
    avalabilityPeriod    -

*******************************************************************************/
typedef struct
{
    u8  listenChannel;
    u16 availabilityDuration;
    u16 avalabilityPeriod;
} CsrWifiSmeAvailabilityConfig;

/*******************************************************************************

  NAME
    CsrWifiSmeCcxConfig

  DESCRIPTION
    This type is reserved for future use and should not be used.

  MEMBERS
    keepAliveTimeMs    - NOT USED
    apRoamingEnabled   - NOT USED
    measurementsMask   - NOT USED
    ccxRadioMgtEnabled - NOT USED

*******************************************************************************/
typedef struct
{
    u8 keepAliveTimeMs;
    u8  apRoamingEnabled;
    u8 measurementsMask;
    u8  ccxRadioMgtEnabled;
} CsrWifiSmeCcxConfig;

/*******************************************************************************

  NAME
    CsrWifiSmeCoexConfig

  DESCRIPTION
    Parameters for the coexistence behaviour.

  MEMBERS
    coexEnableSchemeManagement     - Enables the Coexistence Management Scheme
    coexPeriodicWakeHost           - If TRUE the firmware wakes up the host
                                     periodically according to the traffic
                                     period and latency parameters; the host
                                     will then send the data to transmit only
                                     when woken up.
                                     If FALSE, the firmware does not wake up the
                                     host and the host will send the data to
                                     transmit to the firmware whenever there is
                                     data to transmit
    coexTrafficBurstyLatencyMs     - Period of awakening for the firmware used
                                     when bursty traffic is detected
    coexTrafficContinuousLatencyMs - Period of awakening for the firmware used
                                     when continuous traffic is detected
    coexObexBlackoutDurationMs     - Blackout Duration when a Obex Connection is
                                     used
    coexObexBlackoutPeriodMs       - Blackout Period when a Obex Connection is
                                     used
    coexA2dpBrBlackoutDurationMs   - Blackout Duration when a Basic Rate A2DP
                                     Connection streaming data
    coexA2dpBrBlackoutPeriodMs     - Blackout Period when a Basic Rate A2DP
                                     Connection streaming data
    coexA2dpEdrBlackoutDurationMs  - Blackout Duration when an Enhanced Data
                                     Rate A2DP Connection streaming data
    coexA2dpEdrBlackoutPeriodMs    - Blackout Period when an Enhanced Data Rate
                                     A2DP Connection streaming data
    coexPagingBlackoutDurationMs   - Blackout Duration when a BT page is active
    coexPagingBlackoutPeriodMs     - Blackout Period when a BT page is active
    coexInquiryBlackoutDurationMs  - Blackout Duration when a BT inquiry is
                                     active
    coexInquiryBlackoutPeriodMs    - Blackout Period when a BT inquiry is active

*******************************************************************************/
typedef struct
{
    u8   coexEnableSchemeManagement;
    u8   coexPeriodicWakeHost;
    u16 coexTrafficBurstyLatencyMs;
    u16 coexTrafficContinuousLatencyMs;
    u16 coexObexBlackoutDurationMs;
    u16 coexObexBlackoutPeriodMs;
    u16 coexA2dpBrBlackoutDurationMs;
    u16 coexA2dpBrBlackoutPeriodMs;
    u16 coexA2dpEdrBlackoutDurationMs;
    u16 coexA2dpEdrBlackoutPeriodMs;
    u16 coexPagingBlackoutDurationMs;
    u16 coexPagingBlackoutPeriodMs;
    u16 coexInquiryBlackoutDurationMs;
    u16 coexInquiryBlackoutPeriodMs;
} CsrWifiSmeCoexConfig;

/*******************************************************************************

  NAME
    CsrWifiSmeConnectionStats

  DESCRIPTION
    Indicates the statistics of the connection.
    The dot11 fields are defined in the Annex D of the IEEE 802.11 standard.

  MEMBERS
    unifiTxDataRate
                   - The bit rate currently in use for transmissions of unicast
                     data frames; a data rate in units of 500kbit/s.
                     On an infrastructure BSS, this is the data rate used in
                     communicating with the associated access point; if there is
                     none, an error is returned.
                     On an IBSS, this is the data rate used for the last
                     transmission of a unicast data frame to any station in the
                     IBSS. If no such transmission has been made, an error is
                     returned.
    unifiRxDataRate
                   - As above for receiving data
    dot11RetryCount
                   - See IEEE 802.11 Standard
    dot11MultipleRetryCount
                   - See IEEE 802.11 Standard
    dot11AckFailureCount
                   - See IEEE 802.11 Standard
    dot11FrameDuplicateCount
                   - See IEEE 802.11 Standard
    dot11FcsErrorCount
                   - See IEEE 802.11 Standard
    dot11RtsSuccessCount
                   - See IEEE 802.11 Standard
    dot11RtsFailureCount
                   - See IEEE 802.11 Standard
    dot11FailedCount
                   - See IEEE 802.11 Standard
    dot11TransmittedFragmentCount
                   - See IEEE 802.11 Standard
    dot11TransmittedFrameCount
                   - See IEEE 802.11 Standard
    dot11WepExcludedCount
                   - See IEEE 802.11 Standard
    dot11WepIcvErrorCount
                   - See IEEE 802.11 Standard
    dot11WepUndecryptableCount
                   - See IEEE 802.11 Standard
    dot11MulticastReceivedFrameCount
                   - See IEEE 802.11 Standard
    dot11MulticastTransmittedFrameCount
                   - See IEEE 802.11 Standard
    dot11ReceivedFragmentCount
                   - See IEEE 802.11 Standard
    dot11Rsna4WayHandshakeFailures
                   - See IEEE 802.11 Standard
    dot11RsnaTkipCounterMeasuresInvoked
                   - See IEEE 802.11 Standard
    dot11RsnaStatsTkipLocalMicFailures
                   - See IEEE 802.11 Standard
    dot11RsnaStatsTkipReplays
                   - See IEEE 802.11 Standard
    dot11RsnaStatsTkipIcvErrors
                   - See IEEE 802.11 Standard
    dot11RsnaStatsCcmpReplays
                   - See IEEE 802.11 Standard
    dot11RsnaStatsCcmpDecryptErrors
                   - See IEEE 802.11 Standard

*******************************************************************************/
typedef struct
{
    u8  unifiTxDataRate;
    u8  unifiRxDataRate;
    u32 dot11RetryCount;
    u32 dot11MultipleRetryCount;
    u32 dot11AckFailureCount;
    u32 dot11FrameDuplicateCount;
    u32 dot11FcsErrorCount;
    u32 dot11RtsSuccessCount;
    u32 dot11RtsFailureCount;
    u32 dot11FailedCount;
    u32 dot11TransmittedFragmentCount;
    u32 dot11TransmittedFrameCount;
    u32 dot11WepExcludedCount;
    u32 dot11WepIcvErrorCount;
    u32 dot11WepUndecryptableCount;
    u32 dot11MulticastReceivedFrameCount;
    u32 dot11MulticastTransmittedFrameCount;
    u32 dot11ReceivedFragmentCount;
    u32 dot11Rsna4WayHandshakeFailures;
    u32 dot11RsnaTkipCounterMeasuresInvoked;
    u32 dot11RsnaStatsTkipLocalMicFailures;
    u32 dot11RsnaStatsTkipReplays;
    u32 dot11RsnaStatsTkipIcvErrors;
    u32 dot11RsnaStatsCcmpReplays;
    u32 dot11RsnaStatsCcmpDecryptErrors;
} CsrWifiSmeConnectionStats;

/*******************************************************************************

  NAME
    CsrWifiSmeDataBlock

  DESCRIPTION
    Holds a generic data block to be passed through the interface

  MEMBERS
    length - Length of the data block
    data   - Points to the first byte of the data block

*******************************************************************************/
typedef struct
{
    u16 length;
    u8 *data;
} CsrWifiSmeDataBlock;

/*******************************************************************************

  NAME
    CsrWifiSmeEmpty

  DESCRIPTION
    Empty Structure to indicate that no parameters are available.

  MEMBERS
    empty  - Only element of the empty structure (always set to 0).

*******************************************************************************/
typedef struct
{
    u8 empty;
} CsrWifiSmeEmpty;

/*******************************************************************************

  NAME
    CsrWifiSmeLinkQuality

  DESCRIPTION
    Indicates the quality of the link

  MEMBERS
    unifiRssi - Indicates the received signal strength indication of the link in
                dBm
    unifiSnr  - Indicates the signal to noise ratio of the link in dB

*******************************************************************************/
typedef struct
{
    s16 unifiRssi;
    s16 unifiSnr;
} CsrWifiSmeLinkQuality;

/*******************************************************************************

  NAME
    CsrWifiSmeMibConfig

  DESCRIPTION
    Allows low level configuration in the chip.

  MEMBERS
    unifiFixMaxTxDataRate       - This attribute is used in combination with
                                  unifiFixTxDataRate. If it is FALSE, then
                                  unifiFixTxDataRate specifies a specific data
                                  rate to use. If it is TRUE, unifiFixTxDataRate
                                  instead specifies a maximum data rate.
    unifiFixTxDataRate          - Transmit rate for unicast data.
                                  See MIB description for more details
    dot11RtsThreshold           - See IEEE 802.11 Standard
    dot11FragmentationThreshold - See IEEE 802.11 Standard
    dot11CurrentTxPowerLevel    - See IEEE 802.11 Standard

*******************************************************************************/
typedef struct
{
    u8   unifiFixMaxTxDataRate;
    u8  unifiFixTxDataRate;
    u16 dot11RtsThreshold;
    u16 dot11FragmentationThreshold;
    u16 dot11CurrentTxPowerLevel;
} CsrWifiSmeMibConfig;

/*******************************************************************************

  NAME
    CsrWifiSmeP2pProfileIdentity

  DESCRIPTION
    Details to be filled in

  MEMBERS
    listenChannel        -
    availabilityDuration -
    avalabilityPeriod    -

*******************************************************************************/
typedef struct
{
    u8  listenChannel;
    u16 availabilityDuration;
    u16 avalabilityPeriod;
} CsrWifiSmeP2pProfileIdentity;

/*******************************************************************************

  NAME
    CsrWifiSmePmkid

  DESCRIPTION
    Defines a PMKID association with BSS

  MEMBERS
    bssid  - BSS identifier
    pmkid  - PMKID

*******************************************************************************/
typedef struct
{
    CsrWifiMacAddress bssid;
    u8          pmkid[16];
} CsrWifiSmePmkid;

/*******************************************************************************

  NAME
    CsrWifiSmePmkidCandidate

  DESCRIPTION
    Information for a PMKID candidate

  MEMBERS
    bssid          - BSS identifier
    preAuthAllowed - Indicates whether preauthentication is allowed

*******************************************************************************/
typedef struct
{
    CsrWifiMacAddress bssid;
    u8           preAuthAllowed;
} CsrWifiSmePmkidCandidate;

/*******************************************************************************

  NAME
    CsrWifiSmePmkidList

  DESCRIPTION
    NOT USED
    Used in the Sync access API

  MEMBERS
    pmkidsCount - Number of PMKIDs in the list
    pmkids      - Points to the first PMKID in the list

*******************************************************************************/
typedef struct
{
    u8         pmkidsCount;
    CsrWifiSmePmkid *pmkids;
} CsrWifiSmePmkidList;

/*******************************************************************************

  NAME
    CsrWifiSmeRegulatoryDomainInfo

  DESCRIPTION
    Regulatory domain options.

  MEMBERS
    dot11MultiDomainCapabilityImplemented
                   - TRUE is the multi domain capability is implemented
    dot11MultiDomainCapabilityEnabled
                   - TRUE is the multi domain capability is enabled
    currentRegulatoryDomain
                   - Current regulatory domain
    currentCountryCode
                   - Current country code as defined by the IEEE 802.11
                     standards

*******************************************************************************/
typedef struct
{
    u8                    dot11MultiDomainCapabilityImplemented;
    u8                    dot11MultiDomainCapabilityEnabled;
    CsrWifiSmeRegulatoryDomain currentRegulatoryDomain;
    u8                   currentCountryCode[2];
} CsrWifiSmeRegulatoryDomainInfo;

/*******************************************************************************

  NAME
    CsrWifiSmeRoamingBandData

  DESCRIPTION
    Thresholds to define one usability level category for the received signal

  MEMBERS
    rssiHighThreshold - Received Signal Strength Indication upper bound in dBm
                        for the usability level
    rssiLowThreshold  - Received Signal Strength Indication lower bound in dBm
                        for the usability level
    snrHighThreshold  - Signal to Noise Ratio upper bound in dB for the
                        usability level
    snrLowThreshold   - Signal to Noise Ratio lower bound in dB for the
                        usability level

*******************************************************************************/
typedef struct
{
    s16 rssiHighThreshold;
    s16 rssiLowThreshold;
    s16 snrHighThreshold;
    s16 snrLowThreshold;
} CsrWifiSmeRoamingBandData;

/*******************************************************************************

  NAME
    CsrWifiSmeScanConfigData

  DESCRIPTION
    Configures the scanning behaviour of the driver and firmware

  MEMBERS
    intervalSeconds         - All the channels will be scanned once in this time
                              interval.
                              If connected, the channel scans are spread across
                              the interval.
                              If disconnected, all the channels will be scanned
                              together
    validitySeconds         - How long the scan result are cached
    minActiveChannelTimeTu  - Minimum time of listening on a channel being
                              actively scanned before leaving if no probe
                              responses or beacon frames have been received
    maxActiveChannelTimeTu  - Maximum time of listening on a channel being
                              actively scanned
    minPassiveChannelTimeTu - Minimum time of listening on a channel being
                              passive scanned before leaving if no beacon frames
                              have been received
    maxPassiveChannelTimeTu - Maximum time of listening on a channel being
                              passively scanned

*******************************************************************************/
typedef struct
{
    u16 intervalSeconds;
    u16 validitySeconds;
    u16 minActiveChannelTimeTu;
    u16 maxActiveChannelTimeTu;
    u16 minPassiveChannelTimeTu;
    u16 maxPassiveChannelTimeTu;
} CsrWifiSmeScanConfigData;

/*******************************************************************************

  NAME
    CsrWifiSmeTsfTime

  DESCRIPTION
    Time stamp representation

  MEMBERS
    data   - TSF Bytes

*******************************************************************************/
typedef struct
{
    u8 data[8];
} CsrWifiSmeTsfTime;

/*******************************************************************************

  NAME
    CsrWifiSmeVersions

  DESCRIPTION
    Reports version information for the chip, the firmware and the driver and
    the SME.

  MEMBERS
    chipId        - Chip ID
    chipVersion   - Chip version ID
    firmwareBuild - Firmware Rom build number
    firmwarePatch - Firmware Patch build number (if applicable)
    firmwareHip   - Firmware HIP protocol version number
    routerBuild   - Router build number
    routerHip     - Router HIP protocol version number
    smeBuild      - SME build number
    smeHip        - SME HIP protocol version number

*******************************************************************************/
typedef struct
{
    u32      chipId;
    u32      chipVersion;
    u32      firmwareBuild;
    u32      firmwarePatch;
    u32      firmwareHip;
    char *routerBuild;
    u32      routerHip;
    char *smeBuild;
    u32      smeHip;
} CsrWifiSmeVersions;

/*******************************************************************************

  NAME
    CsrWifiSmeWmmAcParams

  DESCRIPTION
    Structure holding WMM AC params data.

  MEMBERS
    cwMin                     - Exponent for the calculation of CWmin. Range: 0
                                to 15
    cwMax                     - Exponent for the calculation of CWmax. Range: 0
                                to15
    aifs                      - Arbitration Inter Frame Spacing in terms of
                                number of timeslots. Range 2 to 15
    txopLimit                 - TXOP Limit in the units of 32 microseconds
    admissionControlMandatory - Indicates whether the admission control is
                                mandatory or not. Current release does not
                                support admission control , hence shall be set
                                to FALSE.

*******************************************************************************/
typedef struct
{
    u8  cwMin;
    u8  cwMax;
    u8  aifs;
    u16 txopLimit;
    u8   admissionControlMandatory;
} CsrWifiSmeWmmAcParams;

/*******************************************************************************

  NAME
    CsrWifiSmeWpsDeviceType

  DESCRIPTION
    Structure holding AP WPS device type data.

  MEMBERS
    deviceDetails - category , sub category etc

*******************************************************************************/
typedef struct
{
    u8 deviceDetails[8];
} CsrWifiSmeWpsDeviceType;

/*******************************************************************************

  NAME
    CsrWifiSmeWpsDeviceTypeCommon

  DESCRIPTION

  MEMBERS
    spportWps  -
    deviceType -

*******************************************************************************/
typedef struct
{
    u8  spportWps;
    u8 deviceType;
} CsrWifiSmeWpsDeviceTypeCommon;

/*******************************************************************************

  NAME
    CsrWifiSmeWpsInfo

  DESCRIPTION

  MEMBERS
    version         -
    configMethods   -
    devicePassworId -

*******************************************************************************/
typedef struct
{
    u16 version;
    u16 configMethods;
    u16 devicePassworId;
} CsrWifiSmeWpsInfo;

/*******************************************************************************

  NAME
    CsrWifiSmeCloakedSsidConfig

  DESCRIPTION
    List of cloaked SSIDs .

  MEMBERS
    cloakedSsidsCount - Number of cloaked SSID
    cloakedSsids      - Points to the first byte of the first SSID provided

*******************************************************************************/
typedef struct
{
    u8     cloakedSsidsCount;
    CsrWifiSsid *cloakedSsids;
} CsrWifiSmeCloakedSsidConfig;

/*******************************************************************************

  NAME
    CsrWifiSmeCoexInfo

  DESCRIPTION
    Information and state related to coexistence.

  MEMBERS
    hasTrafficData            - TRUE if any Wi-Fi traffic is detected
    currentTrafficType        - Current type of traffic
    currentPeriodMs           - Period of the traffic as detected by the traffic
                                analysis.
                                If the traffic is not periodic, it is set to 0.
    currentPowerSave          - Current power save level
    currentCoexPeriodMs       - Period of awakening for the firmware used when
                                periodic traffic is detected.
                                If the traffic is not periodic, it is set to 0.
    currentCoexLatencyMs      - Period of awakening for the firmware used when
                                non-periodic traffic is detected
    hasBtDevice               - TRUE if there is a Bluetooth device connected
    currentBlackoutDurationUs - Current blackout duration for protecting
                                Bluetooth
    currentBlackoutPeriodUs   - Current blackout period
    currentCoexScheme         - Defines the scheme for the coexistence
                                signalling

*******************************************************************************/
typedef struct
{
    u8                  hasTrafficData;
    CsrWifiSmeTrafficType    currentTrafficType;
    u16                currentPeriodMs;
    CsrWifiSmePowerSaveLevel currentPowerSave;
    u16                currentCoexPeriodMs;
    u16                currentCoexLatencyMs;
    u8                  hasBtDevice;
    u32                currentBlackoutDurationUs;
    u32                currentBlackoutPeriodUs;
    CsrWifiSmeCoexScheme     currentCoexScheme;
} CsrWifiSmeCoexInfo;

/*******************************************************************************

  NAME
    CsrWifiSmeConnectionConfig

  DESCRIPTION
    Specifies the parameters that the SME should use in selecting a network.

  MEMBERS
    ssid
                   - Service Set identifier
    bssid
                   - BSS identifier
    bssType
                   - Indicates the type of BSS
    ifIndex
                   - Indicates the radio interface
    privacyMode
                   - Specifies whether the privacy mode is enabled or disabled.
    authModeMask
                   - Sets the authentication options that the SME can use while
                     associating to the AP
                     Set mask with values from CsrWifiSmeAuthMode
    encryptionModeMask
                   - Sets the encryption options that the SME can use while
                     associating to the AP
                     Set mask with values from CsrWifiSmeEncryption
    mlmeAssociateReqInformationElementsLength
                   - Length in bytes of information elements to be sent in the
                     Association Request.
    mlmeAssociateReqInformationElements
                   - Points to the first byte of the information elements, if
                     any.
    wmmQosInfo
                   - This parameter allows the driver's WMM behaviour to be
                     configured.
                     To enable support for WMM, use
                     CSR_WIFI_SME_SME_CONFIG_SET_REQ with the
                     CSR_WIFI_SME_WMM_MODE_AC_ENABLED bit set in wmmModeMask
                     field in smeConfig parameter.
                     Set mask with values from CsrWifiSmeWmmQosInfo
    adhocJoinOnly
                   - This parameter is relevant only if bssType is NOT set to
                     CSR_WIFI_SME_BSS_TYPE_INFRASTRUCTURE:
                     if TRUE the SME will only try to join an ad-hoc network if
                     there is one already established;
                     if FALSE the SME will try to join an ad-hoc network if
                     there is one already established or it will try to
                     establish a new one
    adhocChannel
                   - This parameter is relevant only if bssType is NOT set to
                     CSR_WIFI_SME_BSS_TYPE_INFRASTRUCTURE:
                     it indicates the channel to use joining an ad hoc network.
                     Setting this to 0 causes the SME to select a channel from
                     those permitted in the regulatory domain.

*******************************************************************************/
typedef struct
{
    CsrWifiSsid                ssid;
    CsrWifiMacAddress          bssid;
    CsrWifiSmeBssType          bssType;
    CsrWifiSmeRadioIF          ifIndex;
    CsrWifiSme80211PrivacyMode privacyMode;
    CsrWifiSmeAuthModeMask     authModeMask;
    CsrWifiSmeEncryptionMask   encryptionModeMask;
    u16                  mlmeAssociateReqInformationElementsLength;
    u8                  *mlmeAssociateReqInformationElements;
    CsrWifiSmeWmmQosInfoMask   wmmQosInfo;
    u8                    adhocJoinOnly;
    u8                   adhocChannel;
} CsrWifiSmeConnectionConfig;

/*******************************************************************************

  NAME
    CsrWifiSmeConnectionInfo

  DESCRIPTION
    Parameters that the SME should use in selecting a network

  MEMBERS
    ssid                        - Service set identifier
    bssid                       - BSS identifier
    networkType80211            - Physical layer used for the connection
    channelNumber               - Channel number
    channelFrequency            - Channel frequency
    authMode                    - Authentication mode used for the connection
    pairwiseCipher              - Encryption type for peer to peer communication
    groupCipher                 - Encryption type for broadcast and multicast
                                  communication
    ifIndex                     - Indicates the radio interface
    atimWindowTu                - ATIM window specified for IBSS
    beaconPeriodTu              - Interval between beacon packets
    reassociation               - Indicates whether a reassociation occurred
    beaconFrameLength           - Indicates the number of bytes of the beacon
                                  frame
    beaconFrame                 - Points at the first byte of the beacon frame
    associationReqFrameLength   - Indicates the number of bytes of the
                                  association request frame
    associationReqFrame         - Points at the first byte of the association
                                  request frame
    associationRspFrameLength   - Indicates the number of bytes of the
                                  association response frame
    associationRspFrame         - Points at the first byte of the association
                                  response frame
    assocScanInfoElementsLength - Indicates the number of bytes in the buffer
                                  pointed by assocScanInfoElements
    assocScanInfoElements       - Pointer to the buffer containing the
                                  information elements of the probe response
                                  received after the probe requests sent before
                                  attempting to authenticate to the network
    assocReqCapabilities        - Reports the content of the Capability
                                  information element as specified in the
                                  association request.
    assocReqListenIntervalTu    - Listen Interval specified in the association
                                  request
    assocReqApAddress           - AP address to which the association requests
                                  has been sent
    assocReqInfoElementsLength  - Indicates the number of bytes of the
                                  association request information elements
    assocReqInfoElements        - Points at the first byte of the association
                                  request information elements
    assocRspResult              - Result reported in the association response
    assocRspCapabilityInfo      - Reports the content of the Capability
                                  information element as received in the
                                  association response.
    assocRspAssociationId       - Reports the association ID received in the
                                  association response.
    assocRspInfoElementsLength  - Indicates the number of bytes of the
                                  association response information elements
    assocRspInfoElements        - Points at the first byte of the association
                                  response information elements

*******************************************************************************/
typedef struct
{
    CsrWifiSsid                ssid;
    CsrWifiMacAddress          bssid;
    CsrWifiSme80211NetworkType networkType80211;
    u8                   channelNumber;
    u16                  channelFrequency;
    CsrWifiSmeAuthMode         authMode;
    CsrWifiSmeEncryption       pairwiseCipher;
    CsrWifiSmeEncryption       groupCipher;
    CsrWifiSmeRadioIF          ifIndex;
    u16                  atimWindowTu;
    u16                  beaconPeriodTu;
    u8                    reassociation;
    u16                  beaconFrameLength;
    u8                  *beaconFrame;
    u16                  associationReqFrameLength;
    u8                  *associationReqFrame;
    u16                  associationRspFrameLength;
    u8                  *associationRspFrame;
    u16                  assocScanInfoElementsLength;
    u8                  *assocScanInfoElements;
    u16                  assocReqCapabilities;
    u16                  assocReqListenIntervalTu;
    CsrWifiMacAddress          assocReqApAddress;
    u16                  assocReqInfoElementsLength;
    u8                  *assocReqInfoElements;
    CsrWifiSmeIEEE80211Result  assocRspResult;
    u16                  assocRspCapabilityInfo;
    u16                  assocRspAssociationId;
    u16                  assocRspInfoElementsLength;
    u8                  *assocRspInfoElements;
} CsrWifiSmeConnectionInfo;

/*******************************************************************************

  NAME
    CsrWifiSmeDeviceConfig

  DESCRIPTION
    General configuration options in the SME

  MEMBERS
    trustLevel              - Level of trust of the information coming from the
                              network
    countryCode             - Country code as specified by IEEE 802.11 standard
    firmwareDriverInterface - Specifies the type of communication between Host
                              and Firmware
    enableStrictDraftN      - If TRUE TKIP is disallowed when connecting to
                              802.11n enabled access points

*******************************************************************************/
typedef struct
{
    CsrWifiSme80211dTrustLevel        trustLevel;
    u8                          countryCode[2];
    CsrWifiSmeFirmwareDriverInterface firmwareDriverInterface;
    u8                           enableStrictDraftN;
} CsrWifiSmeDeviceConfig;

/*******************************************************************************

  NAME
    CsrWifiSmeDeviceInfo

  DESCRIPTION
    P2P Information for a P2P Device

  MEMBERS
    deviceAddress            - Device Address of the P2P device
    configMethods            - Supported WPS configuration methods.
    p2PDeviceCap             - P2P device capabilities
    primDeviceType           - Primary WPS device type
    secondaryDeviceTypeCount - Number of secondary device types
    secDeviceType            - list of secondary WPS device types
    deviceName               - Device name without up to 32 characters'\0'.
    deviceNameLength         - Number of characters of the device name

*******************************************************************************/
typedef struct
{
    CsrWifiMacAddress           deviceAddress;
    CsrWifiSmeWpsConfigTypeMask configMethods;
    CsrWifiSmeP2pCapabilityMask p2PDeviceCap;
    CsrWifiSmeWpsDeviceType     primDeviceType;
    u8                    secondaryDeviceTypeCount;
    CsrWifiSmeWpsDeviceType    *secDeviceType;
    u8                    deviceName[32];
    u8                    deviceNameLength;
} CsrWifiSmeDeviceInfo;

/*******************************************************************************

  NAME
    CsrWifiSmeDeviceInfoCommon

  DESCRIPTION
    Structure holding device information.

  MEMBERS
    p2pDeviceAddress          -
    primaryDeviceType         -
    secondaryDeviceTypesCount -
    secondaryDeviceTypes      -
    deviceNameLength          -
    deviceName                -

*******************************************************************************/
typedef struct
{
    CsrWifiMacAddress             p2pDeviceAddress;
    CsrWifiSmeWpsDeviceTypeCommon primaryDeviceType;
    u8                      secondaryDeviceTypesCount;
    u8                      secondaryDeviceTypes[10];
    u8                      deviceNameLength;
    u8                      deviceName[32];
} CsrWifiSmeDeviceInfoCommon;

/*******************************************************************************

  NAME
    CsrWifiSmeHostConfig

  DESCRIPTION
    Defines the host power state (for example, on mains power, on battery
    power etc) and the periodicity of the traffic data.

  MEMBERS
    powerMode               - The wireless manager application should use the
                              powerMode parameter to inform the SME of the host
                              power state.
    applicationDataPeriodMs - The applicationDataPeriodMs parameter allows a
                              wireless manager application to inform the SME
                              that an application is running that generates
                              periodic network traffic and the period of the
                              traffic.
                              An example of such an application is a VoIP client.
                              The wireless manager application should set
                              applicationDataPeriodMs to the period in
                              milliseconds between data packets or zero if no
                              periodic application is running.
                              Voip etc 0 = No Periodic Data

*******************************************************************************/
typedef struct
{
    CsrWifiSmeHostPowerMode powerMode;
    u16               applicationDataPeriodMs;
} CsrWifiSmeHostConfig;

/*******************************************************************************

  NAME
    CsrWifiSmeKey

  DESCRIPTION
    Information for a key to be used for encryption

  MEMBERS
    keyType       - Specifies whether the key is a pairwise or group key; it
                    should be set to CSR_WIFI_SME_GROUP_KEY or
                    CSR_WIFI_SME_PAIRWISE_KEY, as required.
    keyIndex      - Specifies which WEP key (0-3) to set; it should be set to 0
                    for a WPA/WPA2 pairwise key and non-zero for a WPA/WPA2
                    group key.
    wepTxKey      - If wepTxKey is TRUE, and the key is a WEP key, the key will
                    be selected for encrypting transmitted packets.
                    To select a previously defined key as the transmit
                    encryption key, set keyIndex to the required key, wepTxKey
                    to TRUE and the keyLength to 0.
    keyRsc        - Key Receive Sequence Counter
    authenticator - If TRUE the WMA will act as authenticator.
                    CURRENTLY NOT SUPPORTED
    address       - BSS identifier of the AP
    keyLength     - Length of the key in bytes
    key           - Points to the first byte of the key

*******************************************************************************/
typedef struct
{
    CsrWifiSmeKeyType keyType;
    u8          keyIndex;
    u8           wepTxKey;
    u16         keyRsc[8];
    u8           authenticator;
    CsrWifiMacAddress address;
    u8          keyLength;
    u8          key[32];
} CsrWifiSmeKey;

/*******************************************************************************

  NAME
    CsrWifiSmeP2pClientInfoType

  DESCRIPTION
    P2P Information for a P2P Client

  MEMBERS
    p2PClientInterfaceAddress - MAC address of the P2P Client
    clientDeviceInfo          - Device Information

*******************************************************************************/
typedef struct
{
    CsrWifiMacAddress    p2PClientInterfaceAddress;
    CsrWifiSmeDeviceInfo clientDeviceInfo;
} CsrWifiSmeP2pClientInfoType;

/*******************************************************************************

  NAME
    CsrWifiSmeP2pGroupInfo

  DESCRIPTION
    P2P Information for a P2P Group

  MEMBERS
    groupCapability    - P2P group capabilities
    p2pDeviceAddress   - Device Address of the GO
    p2pClientInfoCount - Number of P2P Clients that belong to the group.
    p2PClientInfo      - Pointer to the list containing client information for
                         each client in the group

*******************************************************************************/
typedef struct
{
    CsrWifiSmeP2pGroupCapabilityMask groupCapability;
    CsrWifiMacAddress                p2pDeviceAddress;
    u8                         p2pClientInfoCount;
    CsrWifiSmeP2pClientInfoType     *p2PClientInfo;
} CsrWifiSmeP2pGroupInfo;

/*******************************************************************************

  NAME
    CsrWifiSmePowerConfig

  DESCRIPTION
    Configures the power-save behaviour of the driver and firmware.

  MEMBERS
    powerSaveLevel         - Power Save Level option
    listenIntervalTu       - Interval for waking to receive beacon frames
    rxDtims                - If TRUE, wake for DTIM every beacon period, to
                             allow the reception broadcast packets
    d3AutoScanMode         - Defines whether the autonomous scanning will be
                             turned off or will stay on during a D3 suspended
                             period
    clientTrafficWindow    - Deprecated
    opportunisticPowerSave - Deprecated
    noticeOfAbsence        - Deprecated

*******************************************************************************/
typedef struct
{
    CsrWifiSmePowerSaveLevel powerSaveLevel;
    u16                listenIntervalTu;
    u8                  rxDtims;
    CsrWifiSmeD3AutoScanMode d3AutoScanMode;
    u8                 clientTrafficWindow;
    u8                  opportunisticPowerSave;
    u8                  noticeOfAbsence;
} CsrWifiSmePowerConfig;

/*******************************************************************************

  NAME
    CsrWifiSmeRoamingConfig

  DESCRIPTION
    Configures the roaming behaviour of the driver and firmware

  MEMBERS
    roamingBands             - Defines the thresholds to determine the usability
                               level of the current connection.
                               roamingBands is indexed by the first 3 entries of
                               the CsrWifiSmeBasicUsability enum
    disableSmoothRoaming     - Disable the RSSI/SNR triggers from the Firmware
                               that the SME uses to detect the quality of the
                               connection.
                               This implicitly disables disableRoamScans
    disableRoamScans         - Disables the scanning for the roaming operation
    reconnectLimit           - Maximum number of times SME may reconnect in the
                               given interval
    reconnectLimitIntervalMs - Interval for maximum number of times SME may
                               reconnect to the same Access Point
    roamScanCfg              - Scanning behaviour for the specifically aimed at
                               improving roaming performance.
                               roamScanCfg is indexed by the first 3 entries of
                               the CsrWifiSmeBasicUsability enum

*******************************************************************************/
typedef struct
{
    CsrWifiSmeRoamingBandData roamingBands[3];
    u8                   disableSmoothRoaming;
    u8                   disableRoamScans;
    u8                  reconnectLimit;
    u16                 reconnectLimitIntervalMs;
    CsrWifiSmeScanConfigData  roamScanCfg[3];
} CsrWifiSmeRoamingConfig;

/*******************************************************************************

  NAME
    CsrWifiSmeScanConfig

  DESCRIPTION
    Parameters for the autonomous scanning behaviour of the system

  MEMBERS
    scanCfg                 - Scan configuration data.
                              Indexed by the CsrWifiSmeBasicUsability enum
    disableAutonomousScans  - Enables or disables the autonomous scan
    maxResults              - Maximum number of results to be cached in the SME
    highRssiThreshold       - High received signal strength indication threshold
                              in dBm for an AP above which the system will
                              report scan indications
    lowRssiThreshold        - Low received signal strength indication threshold
                              in dBm for an AP below which the system will
                              report scan indications
    deltaRssiThreshold      - Minimum difference for received signal strength
                              indication in dBm for an AP which trigger a scan
                              indication to be sent.
    highSnrThreshold        - High Signal to Noise Ratio threshold in dB for an
                              AP above which the system will report scan
                              indications
    lowSnrThreshold         - Low Signal to Noise Ratio threshold in dB for an
                              AP below which the system will report scan
                              indications
    deltaSnrThreshold       - Minimum difference for Signal to Noise Ratio in dB
                              for an AP which trigger a scan indication to be
                              sent.
    passiveChannelListCount - Number of channels to be scanned passively.
    passiveChannelList      - Points to the first channel to be scanned
                              passively , if any.

*******************************************************************************/
typedef struct
{
    CsrWifiSmeScanConfigData scanCfg[4];
    u8                  disableAutonomousScans;
    u16                maxResults;
    s8                  highRssiThreshold;
    s8                  lowRssiThreshold;
    s8                  deltaRssiThreshold;
    s8                  highSnrThreshold;
    s8                  lowSnrThreshold;
    s8                  deltaSnrThreshold;
    u16                passiveChannelListCount;
    u8                *passiveChannelList;
} CsrWifiSmeScanConfig;

/*******************************************************************************

  NAME
    CsrWifiSmeScanResult

  DESCRIPTION
    This structure defines the scan result for each BSS found

  MEMBERS
    ssid                         - Service set identifier
    bssid                        - BSS identifier
    rssi                         - Received signal strength indication in dBm
    snr                          - Signal to noise ratio in dB
    ifIndex                      - Indicates the radio interface
    beaconPeriodTu               - Interval between beacon frames
    timeStamp                    - Timestamp in the BSS
    localTime                    - Timestamp in the Access Point
    channelFrequency             - Channel frequency
    capabilityInformation        - Capabilities of the BSS.
    channelNumber                - Channel number
    usability                    - Indicates the usability level.
    bssType                      - Type of BSS.
    informationElementsLength    - Number of bytes of the information elements
                                   received as part of the beacon or probe
                                   response.
    informationElements          - Points to the first byte of the IEs received
                                   as part of the beacon or probe response.
                                   The format of the IEs is as specified in the
                                   IEEE 802.11 specification.
    p2pDeviceRole                - Role of the P2P device.
                                   Relevant only if bssType is
                                   CSR_WIFI_SME_BSS_TYPE_P2P
    deviceInfo                   - Union containing P2P device info which
                                   depends on p2pDeviceRole parameter.
    deviceInforeservedCli        -
    deviceInfogroupInfo          -
    deviceInforeservedNone       -
    deviceInfostandalonedevInfo  -

*******************************************************************************/
typedef struct
{
    CsrWifiSsid              ssid;
    CsrWifiMacAddress        bssid;
    s16                 rssi;
    s16                 snr;
    CsrWifiSmeRadioIF        ifIndex;
    u16                beaconPeriodTu;
    CsrWifiSmeTsfTime        timeStamp;
    CsrWifiSmeTsfTime        localTime;
    u16                channelFrequency;
    u16                capabilityInformation;
    u8                 channelNumber;
    CsrWifiSmeBasicUsability usability;
    CsrWifiSmeBssType        bssType;
    u16                informationElementsLength;
    u8                *informationElements;
    CsrWifiSmeP2pRole        p2pDeviceRole;
    union {
        CsrWifiSmeEmpty        reservedCli;
        CsrWifiSmeP2pGroupInfo groupInfo;
        CsrWifiSmeEmpty        reservedNone;
        CsrWifiSmeDeviceInfo   standalonedevInfo;
    } deviceInfo;
} CsrWifiSmeScanResult;

/*******************************************************************************

  NAME
    CsrWifiSmeStaConfig

  DESCRIPTION
    Station configuration options in the SME

  MEMBERS
    connectionQualityRssiChangeTrigger - Sets the difference of RSSI
                                         measurements which triggers reports
                                         from the Firmware
    connectionQualitySnrChangeTrigger  - Sets the difference of SNR measurements
                                         which triggers reports from the
                                         Firmware
    wmmModeMask                        - Mask containing one or more values from
                                         CsrWifiSmeWmmMode
    ifIndex                            - Indicates the band of frequencies used
    allowUnicastUseGroupCipher         - If TRUE, it allows to use groupwise
                                         keys if no pairwise key is specified
    enableOpportunisticKeyCaching      - If TRUE, enables the Opportunistic Key
                                         Caching feature

*******************************************************************************/
typedef struct
{
    u8              connectionQualityRssiChangeTrigger;
    u8              connectionQualitySnrChangeTrigger;
    CsrWifiSmeWmmModeMask wmmModeMask;
    CsrWifiSmeRadioIF     ifIndex;
    u8               allowUnicastUseGroupCipher;
    u8               enableOpportunisticKeyCaching;
} CsrWifiSmeStaConfig;

/*******************************************************************************

  NAME
    CsrWifiSmeWep128Keys

  DESCRIPTION
    Structure holding WEP Authentication Type and WEP keys that can be used
    when using WEP128.

  MEMBERS
    wepAuthType    - Mask to select the WEP authentication type (Open or Shared)
    selectedWepKey - Index to one of the four keys below indicating the
                     currently used WEP key. Mapping From SME/User -> firmware.
                     Key 1 -> Index 0. Key 2 -> Index 1. key 3 -> Index 2. Key
                     4-> Index 3.
    key1           - Value for key number 1.
    key2           - Value for key number 2.
    key3           - Value for key number 3.
    key4           - Value for key number 4.

*******************************************************************************/
typedef struct
{
    CsrWifiSmeWepAuthMode wepAuthType;
    u8              selectedWepKey;
    u8              key1[13];
    u8              key2[13];
    u8              key3[13];
    u8              key4[13];
} CsrWifiSmeWep128Keys;

/*******************************************************************************

  NAME
    CsrWifiSmeWep64Keys

  DESCRIPTION
    Structure holding WEP Authentication Type and WEP keys that can be used
    when using WEP64.

  MEMBERS
    wepAuthType    - Mask to select the WEP authentication type (Open or Shared)
    selectedWepKey - Index to one of the four keys below indicating the
                     currently used WEP key. Mapping From SME/User -> firmware.
                     Key 1 -> Index 0. Key 2 -> Index 1. key 3 -> Index 2. Key
                     4-> Index 3.
    key1           - Value for key number 1.
    key2           - Value for key number 2.
    key3           - Value for key number 3.
    key4           - Value for key number 4.

*******************************************************************************/
typedef struct
{
    CsrWifiSmeWepAuthMode wepAuthType;
    u8              selectedWepKey;
    u8              key1[5];
    u8              key2[5];
    u8              key3[5];
    u8              key4[5];
} CsrWifiSmeWep64Keys;

/*******************************************************************************

  NAME
    CsrWifiSmeWepAuth

  DESCRIPTION
    WEP authentication parameter structure

  MEMBERS
    wepKeyType               - WEP key try (128 bit or 64 bit)
    wepCredentials           - Union containing credentials which depends on
                               wepKeyType parameter.
    wepCredentialswep128Key  -
    wepCredentialswep64Key   -

*******************************************************************************/
typedef struct
{
    CsrWifiSmeWepCredentialType wepKeyType;
    union {
        CsrWifiSmeWep128Keys wep128Key;
        CsrWifiSmeWep64Keys  wep64Key;
    } wepCredentials;
} CsrWifiSmeWepAuth;

/*******************************************************************************

  NAME
    CsrWifiSmeWpsConfig

  DESCRIPTION
    Structure holding AP WPS Config data.

  MEMBERS
    wpsVersion               - wpsVersion should be 0x10 for WPS1.0h or 0x20 for
                               WSC2.0
    uuid                     - uuid.
    deviceName               - Device name upto 32 characters without '\0'.
    deviceNameLength         - deviceNameLen.
    manufacturer             - manufacturer: CSR
    manufacturerLength       - manufacturerLen.
    modelName                - modelName Unifi
    modelNameLength          - modelNameLen.
    modelNumber              - modelNumber
    modelNumberLength        - modelNumberLen.
    serialNumber             - serialNumber
    primDeviceType           - Primary WPS device type
    secondaryDeviceTypeCount - Number of secondary device types
    secondaryDeviceType      - list of secondary WPS device types
    configMethods            - Supported WPS config methods
    rfBands                  - RfBands.
    osVersion                - Os version on which the device is running

*******************************************************************************/
typedef struct
{
    u8                    wpsVersion;
    u8                    uuid[16];
    u8                    deviceName[32];
    u8                    deviceNameLength;
    u8                    manufacturer[64];
    u8                    manufacturerLength;
    u8                    modelName[32];
    u8                    modelNameLength;
    u8                    modelNumber[32];
    u8                    modelNumberLength;
    u8                    serialNumber[32];
    CsrWifiSmeWpsDeviceType     primDeviceType;
    u8                    secondaryDeviceTypeCount;
    CsrWifiSmeWpsDeviceType    *secondaryDeviceType;
    CsrWifiSmeWpsConfigTypeMask configMethods;
    u8                    rfBands;
    u8                    osVersion[4];
} CsrWifiSmeWpsConfig;


/* Downstream */
#define CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST            (0x0000)

#define CSR_WIFI_SME_ACTIVATE_REQ                         ((CsrWifiSmePrim) (0x0000 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_ADHOC_CONFIG_GET_REQ                 ((CsrWifiSmePrim) (0x0001 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_ADHOC_CONFIG_SET_REQ                 ((CsrWifiSmePrim) (0x0002 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_BLACKLIST_REQ                        ((CsrWifiSmePrim) (0x0003 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_CALIBRATION_DATA_GET_REQ             ((CsrWifiSmePrim) (0x0004 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_CALIBRATION_DATA_SET_REQ             ((CsrWifiSmePrim) (0x0005 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_CCX_CONFIG_GET_REQ                   ((CsrWifiSmePrim) (0x0006 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_CCX_CONFIG_SET_REQ                   ((CsrWifiSmePrim) (0x0007 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_COEX_CONFIG_GET_REQ                  ((CsrWifiSmePrim) (0x0008 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_COEX_CONFIG_SET_REQ                  ((CsrWifiSmePrim) (0x0009 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_COEX_INFO_GET_REQ                    ((CsrWifiSmePrim) (0x000A + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_CONNECT_REQ                          ((CsrWifiSmePrim) (0x000B + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_CONNECTION_CONFIG_GET_REQ            ((CsrWifiSmePrim) (0x000C + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_CONNECTION_INFO_GET_REQ              ((CsrWifiSmePrim) (0x000D + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_CONNECTION_STATS_GET_REQ             ((CsrWifiSmePrim) (0x000E + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_DEACTIVATE_REQ                       ((CsrWifiSmePrim) (0x000F + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_DISCONNECT_REQ                       ((CsrWifiSmePrim) (0x0010 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_EVENT_MASK_SET_REQ                   ((CsrWifiSmePrim) (0x0011 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_HOST_CONFIG_GET_REQ                  ((CsrWifiSmePrim) (0x0012 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_HOST_CONFIG_SET_REQ                  ((CsrWifiSmePrim) (0x0013 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_KEY_REQ                              ((CsrWifiSmePrim) (0x0014 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_LINK_QUALITY_GET_REQ                 ((CsrWifiSmePrim) (0x0015 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_MIB_CONFIG_GET_REQ                   ((CsrWifiSmePrim) (0x0016 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_MIB_CONFIG_SET_REQ                   ((CsrWifiSmePrim) (0x0017 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_MIB_GET_NEXT_REQ                     ((CsrWifiSmePrim) (0x0018 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_MIB_GET_REQ                          ((CsrWifiSmePrim) (0x0019 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_MIB_SET_REQ                          ((CsrWifiSmePrim) (0x001A + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_MULTICAST_ADDRESS_REQ                ((CsrWifiSmePrim) (0x001B + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_PACKET_FILTER_SET_REQ                ((CsrWifiSmePrim) (0x001C + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_PERMANENT_MAC_ADDRESS_GET_REQ        ((CsrWifiSmePrim) (0x001D + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_PMKID_REQ                            ((CsrWifiSmePrim) (0x001E + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_POWER_CONFIG_GET_REQ                 ((CsrWifiSmePrim) (0x001F + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_POWER_CONFIG_SET_REQ                 ((CsrWifiSmePrim) (0x0020 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_REGULATORY_DOMAIN_INFO_GET_REQ       ((CsrWifiSmePrim) (0x0021 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_ROAMING_CONFIG_GET_REQ               ((CsrWifiSmePrim) (0x0022 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_ROAMING_CONFIG_SET_REQ               ((CsrWifiSmePrim) (0x0023 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_SCAN_CONFIG_GET_REQ                  ((CsrWifiSmePrim) (0x0024 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_SCAN_CONFIG_SET_REQ                  ((CsrWifiSmePrim) (0x0025 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_SCAN_FULL_REQ                        ((CsrWifiSmePrim) (0x0026 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_SCAN_RESULTS_FLUSH_REQ               ((CsrWifiSmePrim) (0x0027 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_SCAN_RESULTS_GET_REQ                 ((CsrWifiSmePrim) (0x0028 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_SME_STA_CONFIG_GET_REQ               ((CsrWifiSmePrim) (0x0029 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_SME_STA_CONFIG_SET_REQ               ((CsrWifiSmePrim) (0x002A + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_STATION_MAC_ADDRESS_GET_REQ          ((CsrWifiSmePrim) (0x002B + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_TSPEC_REQ                            ((CsrWifiSmePrim) (0x002C + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_VERSIONS_GET_REQ                     ((CsrWifiSmePrim) (0x002D + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_WIFI_FLIGHTMODE_REQ                  ((CsrWifiSmePrim) (0x002E + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_WIFI_OFF_REQ                         ((CsrWifiSmePrim) (0x002F + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_WIFI_ON_REQ                          ((CsrWifiSmePrim) (0x0030 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_CLOAKED_SSIDS_SET_REQ                ((CsrWifiSmePrim) (0x0031 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_CLOAKED_SSIDS_GET_REQ                ((CsrWifiSmePrim) (0x0032 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_SME_COMMON_CONFIG_GET_REQ            ((CsrWifiSmePrim) (0x0033 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_SME_COMMON_CONFIG_SET_REQ            ((CsrWifiSmePrim) (0x0034 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_INTERFACE_CAPABILITY_GET_REQ         ((CsrWifiSmePrim) (0x0035 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_WPS_CONFIGURATION_REQ                ((CsrWifiSmePrim) (0x0036 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))
#define CSR_WIFI_SME_SET_REQ                              ((CsrWifiSmePrim) (0x0037 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST))


#define CSR_WIFI_SME_PRIM_DOWNSTREAM_HIGHEST           (0x0037 + CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST)

/* Upstream */
#define CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST              (0x0000 + CSR_PRIM_UPSTREAM)

#define CSR_WIFI_SME_ACTIVATE_CFM                         ((CsrWifiSmePrim)(0x0000 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_ADHOC_CONFIG_GET_CFM                 ((CsrWifiSmePrim)(0x0001 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_ADHOC_CONFIG_SET_CFM                 ((CsrWifiSmePrim)(0x0002 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_ASSOCIATION_COMPLETE_IND             ((CsrWifiSmePrim)(0x0003 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_ASSOCIATION_START_IND                ((CsrWifiSmePrim)(0x0004 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_BLACKLIST_CFM                        ((CsrWifiSmePrim)(0x0005 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_CALIBRATION_DATA_GET_CFM             ((CsrWifiSmePrim)(0x0006 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_CALIBRATION_DATA_SET_CFM             ((CsrWifiSmePrim)(0x0007 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_CCX_CONFIG_GET_CFM                   ((CsrWifiSmePrim)(0x0008 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_CCX_CONFIG_SET_CFM                   ((CsrWifiSmePrim)(0x0009 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_COEX_CONFIG_GET_CFM                  ((CsrWifiSmePrim)(0x000A + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_COEX_CONFIG_SET_CFM                  ((CsrWifiSmePrim)(0x000B + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_COEX_INFO_GET_CFM                    ((CsrWifiSmePrim)(0x000C + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_CONNECT_CFM                          ((CsrWifiSmePrim)(0x000D + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_CONNECTION_CONFIG_GET_CFM            ((CsrWifiSmePrim)(0x000E + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_CONNECTION_INFO_GET_CFM              ((CsrWifiSmePrim)(0x000F + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_CONNECTION_QUALITY_IND               ((CsrWifiSmePrim)(0x0010 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_CONNECTION_STATS_GET_CFM             ((CsrWifiSmePrim)(0x0011 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_DEACTIVATE_CFM                       ((CsrWifiSmePrim)(0x0012 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_DISCONNECT_CFM                       ((CsrWifiSmePrim)(0x0013 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_EVENT_MASK_SET_CFM                   ((CsrWifiSmePrim)(0x0014 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_HOST_CONFIG_GET_CFM                  ((CsrWifiSmePrim)(0x0015 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_HOST_CONFIG_SET_CFM                  ((CsrWifiSmePrim)(0x0016 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_IBSS_STATION_IND                     ((CsrWifiSmePrim)(0x0017 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_KEY_CFM                              ((CsrWifiSmePrim)(0x0018 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_LINK_QUALITY_GET_CFM                 ((CsrWifiSmePrim)(0x0019 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_MEDIA_STATUS_IND                     ((CsrWifiSmePrim)(0x001A + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_MIB_CONFIG_GET_CFM                   ((CsrWifiSmePrim)(0x001B + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_MIB_CONFIG_SET_CFM                   ((CsrWifiSmePrim)(0x001C + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_MIB_GET_CFM                          ((CsrWifiSmePrim)(0x001D + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_MIB_GET_NEXT_CFM                     ((CsrWifiSmePrim)(0x001E + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_MIB_SET_CFM                          ((CsrWifiSmePrim)(0x001F + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_MIC_FAILURE_IND                      ((CsrWifiSmePrim)(0x0020 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_MULTICAST_ADDRESS_CFM                ((CsrWifiSmePrim)(0x0021 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_PACKET_FILTER_SET_CFM                ((CsrWifiSmePrim)(0x0022 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_PERMANENT_MAC_ADDRESS_GET_CFM        ((CsrWifiSmePrim)(0x0023 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_PMKID_CANDIDATE_LIST_IND             ((CsrWifiSmePrim)(0x0024 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_PMKID_CFM                            ((CsrWifiSmePrim)(0x0025 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_POWER_CONFIG_GET_CFM                 ((CsrWifiSmePrim)(0x0026 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_POWER_CONFIG_SET_CFM                 ((CsrWifiSmePrim)(0x0027 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_REGULATORY_DOMAIN_INFO_GET_CFM       ((CsrWifiSmePrim)(0x0028 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_ROAM_COMPLETE_IND                    ((CsrWifiSmePrim)(0x0029 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_ROAM_START_IND                       ((CsrWifiSmePrim)(0x002A + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_ROAMING_CONFIG_GET_CFM               ((CsrWifiSmePrim)(0x002B + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_ROAMING_CONFIG_SET_CFM               ((CsrWifiSmePrim)(0x002C + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_SCAN_CONFIG_GET_CFM                  ((CsrWifiSmePrim)(0x002D + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_SCAN_CONFIG_SET_CFM                  ((CsrWifiSmePrim)(0x002E + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_SCAN_FULL_CFM                        ((CsrWifiSmePrim)(0x002F + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_SCAN_RESULT_IND                      ((CsrWifiSmePrim)(0x0030 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_SCAN_RESULTS_FLUSH_CFM               ((CsrWifiSmePrim)(0x0031 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_SCAN_RESULTS_GET_CFM                 ((CsrWifiSmePrim)(0x0032 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_SME_STA_CONFIG_GET_CFM               ((CsrWifiSmePrim)(0x0033 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_SME_STA_CONFIG_SET_CFM               ((CsrWifiSmePrim)(0x0034 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_STATION_MAC_ADDRESS_GET_CFM          ((CsrWifiSmePrim)(0x0035 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_TSPEC_IND                            ((CsrWifiSmePrim)(0x0036 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_TSPEC_CFM                            ((CsrWifiSmePrim)(0x0037 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_VERSIONS_GET_CFM                     ((CsrWifiSmePrim)(0x0038 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_WIFI_FLIGHTMODE_CFM                  ((CsrWifiSmePrim)(0x0039 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_WIFI_OFF_IND                         ((CsrWifiSmePrim)(0x003A + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_WIFI_OFF_CFM                         ((CsrWifiSmePrim)(0x003B + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_WIFI_ON_CFM                          ((CsrWifiSmePrim)(0x003C + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_CLOAKED_SSIDS_SET_CFM                ((CsrWifiSmePrim)(0x003D + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_CLOAKED_SSIDS_GET_CFM                ((CsrWifiSmePrim)(0x003E + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_WIFI_ON_IND                          ((CsrWifiSmePrim)(0x003F + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_SME_COMMON_CONFIG_GET_CFM            ((CsrWifiSmePrim)(0x0040 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_SME_COMMON_CONFIG_SET_CFM            ((CsrWifiSmePrim)(0x0041 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_INTERFACE_CAPABILITY_GET_CFM         ((CsrWifiSmePrim)(0x0042 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_ERROR_IND                            ((CsrWifiSmePrim)(0x0043 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_INFO_IND                             ((CsrWifiSmePrim)(0x0044 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_CORE_DUMP_IND                        ((CsrWifiSmePrim)(0x0045 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_AMP_STATUS_CHANGE_IND                ((CsrWifiSmePrim)(0x0046 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))
#define CSR_WIFI_SME_WPS_CONFIGURATION_CFM                ((CsrWifiSmePrim)(0x0047 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST))

#define CSR_WIFI_SME_PRIM_UPSTREAM_HIGHEST             (0x0047 + CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST)

#define CSR_WIFI_SME_PRIM_DOWNSTREAM_COUNT             (CSR_WIFI_SME_PRIM_DOWNSTREAM_HIGHEST + 1 - CSR_WIFI_SME_PRIM_DOWNSTREAM_LOWEST)
#define CSR_WIFI_SME_PRIM_UPSTREAM_COUNT               (CSR_WIFI_SME_PRIM_UPSTREAM_HIGHEST   + 1 - CSR_WIFI_SME_PRIM_UPSTREAM_LOWEST)

/*******************************************************************************

  NAME
    CsrWifiSmeActivateReq

  DESCRIPTION
    The WMA sends this primitive to activate the SME.
    The WMA must activate the SME before it can send any other primitive.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeActivateReq;

/*******************************************************************************

  NAME
    CsrWifiSmeAdhocConfigGetReq

  DESCRIPTION
    This primitive gets the value of the adHocConfig parameter.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeAdhocConfigGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeAdhocConfigSetReq

  DESCRIPTION
    This primitive sets the value of the adHocConfig parameter.

  MEMBERS
    common      - Common header for use with the CsrWifiFsm Module
    adHocConfig - Sets the values to use when starting an ad hoc network.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent       common;
    CsrWifiSmeAdHocConfig adHocConfig;
} CsrWifiSmeAdhocConfigSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeBlacklistReq

  DESCRIPTION
    The wireless manager application should call this primitive to notify the
    driver of any networks that should not be connected to. The interface
    allows the wireless manager application to query, add, remove, and flush
    the BSSIDs that the driver may not connect or roam to.
    When this primitive adds to the black list the BSSID to which the SME is
    currently connected, the SME will try to roam, if applicable, to another
    BSSID in the same ESS; if the roaming procedure fails, the SME will
    disconnect.

  MEMBERS
    common          - Common header for use with the CsrWifiFsm Module
    interfaceTag    - Interface Identifier; unique identifier of an interface
    action          - The value of the CsrWifiSmeListAction parameter instructs
                      the driver to modify or provide the list of blacklisted
                      networks.
    setAddressCount - Number of BSSIDs sent with this primitive
    setAddresses    - Pointer to the list of BBSIDs sent with the primitive, set
                      to NULL if none is sent.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    u16            interfaceTag;
    CsrWifiSmeListAction action;
    u8             setAddressCount;
    CsrWifiMacAddress   *setAddresses;
} CsrWifiSmeBlacklistReq;

/*******************************************************************************

  NAME
    CsrWifiSmeCalibrationDataGetReq

  DESCRIPTION
    This primitive retrieves the Wi-Fi radio calibration data.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeCalibrationDataGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeCalibrationDataSetReq

  DESCRIPTION
    This primitive sets the Wi-Fi radio calibration data.
    The usage of the primitive with proper calibration data will avoid
    time-consuming configuration after power-up.

  MEMBERS
    common                - Common header for use with the CsrWifiFsm Module
    calibrationDataLength - Number of bytes in the buffer pointed by
                            calibrationData
    calibrationData       - Pointer to a buffer of length calibrationDataLength
                            containing the calibration data

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       calibrationDataLength;
    u8       *calibrationData;
} CsrWifiSmeCalibrationDataSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeCcxConfigGetReq

  DESCRIPTION
    This primitive gets the value of the CcxConfig parameter.
    CURRENTLY NOT SUPPORTED.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
} CsrWifiSmeCcxConfigGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeCcxConfigSetReq

  DESCRIPTION
    This primitive sets the value of the CcxConfig parameter.
    CURRENTLY NOT SUPPORTED.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    ccxConfig    - Currently not supported

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent     common;
    u16           interfaceTag;
    CsrWifiSmeCcxConfig ccxConfig;
} CsrWifiSmeCcxConfigSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeCoexConfigGetReq

  DESCRIPTION
    This primitive gets the value of the CoexConfig parameter.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeCoexConfigGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeCoexConfigSetReq

  DESCRIPTION
    This primitive sets the value of the CoexConfig parameter.

  MEMBERS
    common     - Common header for use with the CsrWifiFsm Module
    coexConfig - Configures the coexistence behaviour

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    CsrWifiSmeCoexConfig coexConfig;
} CsrWifiSmeCoexConfigSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeCoexInfoGetReq

  DESCRIPTION
    This primitive gets the value of the CoexInfo parameter.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeCoexInfoGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeConnectReq

  DESCRIPTION
    The wireless manager application calls this primitive to start the
    process of joining an 802.11 wireless network or to start an ad hoc
    network.
    The structure pointed by connectionConfig contains parameters describing
    the network to join or, in case of an ad hoc network, to host or join.
    The SME will select a network, perform the IEEE 802.11 Join, Authenticate
    and Associate exchanges.
    The SME selects the networks from the current scan list that match both
    the SSID and BSSID, however either or both of these may be the wildcard
    value. Using this rule, the following operations are possible:
      * To connect to a network by name, specify the SSID and set the BSSID to
        0xFF 0xFF 0xFF 0xFF 0xFF 0xFF. If there are two or more networks visible,
        the SME will select the one with the strongest signal.
      * To connect to a specific network, specify the BSSID. The SSID is
        optional, but if given it must match the SSID of the network. An empty
        SSID may be specified by setting the SSID length to zero. Please note
        that if the BSSID is specified (i.e. not equal to 0xFF 0xFF 0xFF 0xFF
        0xFF 0xFF), the SME will not attempt to roam if signal conditions become
        poor, even if there is an alternative AP with an SSID that matches the
        current network SSID.
      * To connect to any network matching the other parameters (i.e. security,
        etc), set the SSID length to zero and set the BSSID to 0xFF 0xFF 0xFF
        0xFF 0xFF 0xFF. In this case, the SME will order all available networks
        by their signal strengths and will iterate through this list until it
        successfully connects.
    NOTE: Specifying the BSSID will restrict the selection to one specific
    network. If SSID and BSSID are given, they must both match the network
    for it to be selected. To select a network based on the SSID only, the
    wireless manager application must set the BSSID to 0xFF 0xFF 0xFF 0xFF
    0xFF 0xFF.
    The SME will try to connect to each network that matches the provided
    parameters, one by one, until it succeeds or has tried unsuccessfully
    with all the matching networks.
    If there is no network that matches the parameters and the request allows
    to host an ad hoc network, the SME will advertise a new ad hoc network
    instead.
    If the SME cannot connect, it will notify the failure in the confirm.

  MEMBERS
    common           - Common header for use with the CsrWifiFsm Module
    interfaceTag     - Interface Identifier; unique identifier of an interface
    connectionConfig - Describes the candidate network to join or to host.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent            common;
    u16                  interfaceTag;
    CsrWifiSmeConnectionConfig connectionConfig;
} CsrWifiSmeConnectReq;

/*******************************************************************************

  NAME
    CsrWifiSmeConnectionConfigGetReq

  DESCRIPTION
    This primitive gets the value of the ConnectionConfig parameter.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
} CsrWifiSmeConnectionConfigGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeConnectionInfoGetReq

  DESCRIPTION
    This primitive gets the value of the ConnectionInfo parameter.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
} CsrWifiSmeConnectionInfoGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeConnectionStatsGetReq

  DESCRIPTION
    This primitive gets the value of the ConnectionStats parameter.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
} CsrWifiSmeConnectionStatsGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeDeactivateReq

  DESCRIPTION
    The WMA sends this primitive to deactivate the SME.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeDeactivateReq;

/*******************************************************************************

  NAME
    CsrWifiSmeDisconnectReq

  DESCRIPTION
    The wireless manager application may disconnect from the current network
    by calling this primitive

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
} CsrWifiSmeDisconnectReq;

/*******************************************************************************

  NAME
    CsrWifiSmeEventMaskSetReq

  DESCRIPTION
    The wireless manager application may register with the SME to receive
    notification of interesting events. Indications will be sent only if the
    wireless manager explicitly registers to be notified of that event.
    indMask is a bit mask of values defined in CsrWifiSmeIndicationsMask.

  MEMBERS
    common  - Common header for use with the CsrWifiFsm Module
    indMask - Set mask with values from CsrWifiSmeIndications

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent           common;
    CsrWifiSmeIndicationsMask indMask;
} CsrWifiSmeEventMaskSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeHostConfigGetReq

  DESCRIPTION
    This primitive gets the value of the hostConfig parameter.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
} CsrWifiSmeHostConfigGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeHostConfigSetReq

  DESCRIPTION
    This primitive sets the value of the hostConfig parameter.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    hostConfig   - Communicates a change of host power state (for example, on
                   mains power, on battery power etc) and of the periodicity of
                   traffic data

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    u16            interfaceTag;
    CsrWifiSmeHostConfig hostConfig;
} CsrWifiSmeHostConfigSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeKeyReq

  DESCRIPTION
    The wireless manager application calls this primitive to add or remove
    keys that the chip should use for encryption of data.
    The interface allows the wireless manager application to add and remove
    keys according to the specified action.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    action       - The value of the CsrWifiSmeListAction parameter instructs the
                   driver to modify or provide the list of keys.
                   CSR_WIFI_SME_LIST_ACTION_GET is not supported here.
    key          - Key to be added or removed

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    u16            interfaceTag;
    CsrWifiSmeListAction action;
    CsrWifiSmeKey        key;
} CsrWifiSmeKeyReq;

/*******************************************************************************

  NAME
    CsrWifiSmeLinkQualityGetReq

  DESCRIPTION
    This primitive gets the value of the LinkQuality parameter.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
} CsrWifiSmeLinkQualityGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeMibConfigGetReq

  DESCRIPTION
    This primitive gets the value of the MibConfig parameter.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeMibConfigGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeMibConfigSetReq

  DESCRIPTION
    This primitive sets the value of the MibConfig parameter.

  MEMBERS
    common    - Common header for use with the CsrWifiFsm Module
    mibConfig - Conveys the desired value of various IEEE 802.11 attributes as
                currently configured

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent     common;
    CsrWifiSmeMibConfig mibConfig;
} CsrWifiSmeMibConfigSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeMibGetNextReq

  DESCRIPTION
    To read a sequence of MIB parameters, for example a table, call this
    primitive to find the name of the next MIB variable

  MEMBERS
    common             - Common header for use with the CsrWifiFsm Module
    mibAttributeLength - Length of mibAttribute
    mibAttribute       - Points to a VarBind or VarBindList containing the
                         name(s) of the MIB variable(s) to search from.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       mibAttributeLength;
    u8       *mibAttribute;
} CsrWifiSmeMibGetNextReq;

/*******************************************************************************

  NAME
    CsrWifiSmeMibGetReq

  DESCRIPTION
    The wireless manager application calls this primitive to retrieve one or
    more MIB variables.

  MEMBERS
    common             - Common header for use with the CsrWifiFsm Module
    mibAttributeLength - Length of mibAttribute
    mibAttribute       - Points to the VarBind or VarBindList containing the
                         names of the MIB variables to be retrieved

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       mibAttributeLength;
    u8       *mibAttribute;
} CsrWifiSmeMibGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeMibSetReq

  DESCRIPTION
    The SME provides raw access to the MIB on the chip, which may be used by
    some configuration or diagnostic utilities, but is not normally needed by
    the wireless manager application.
    The MIB access functions use BER encoded names (OID) of the MIB
    parameters and BER encoded values, as described in the chip Host
    Interface Protocol Specification.
    The MIB parameters are described in 'Wi-Fi 5.0.0 Management Information
    Base Reference Guide'.
    The wireless manager application calls this primitive to set one or more
    MIB variables

  MEMBERS
    common             - Common header for use with the CsrWifiFsm Module
    mibAttributeLength - Length of mibAttribute
    mibAttribute       - Points to the VarBind or VarBindList containing the
                         names and values of the MIB variables to set

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       mibAttributeLength;
    u8       *mibAttribute;
} CsrWifiSmeMibSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeMulticastAddressReq

  DESCRIPTION
    The wireless manager application calls this primitive to specify the
    multicast addresses which the chip should recognise. The interface allows
    the wireless manager application to query, add, remove and flush the
    multicast addresses for the network interface according to the specified
    action.

  MEMBERS
    common            - Common header for use with the CsrWifiFsm Module
    interfaceTag      - Interface Identifier; unique identifier of an interface
    action            - The value of the CsrWifiSmeListAction parameter
                        instructs the driver to modify or provide the list of
                        MAC addresses.
    setAddressesCount - Number of MAC addresses sent with the primitive
    setAddresses      - Pointer to the list of MAC Addresses sent with the
                        primitive, set to NULL if none is sent.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    u16            interfaceTag;
    CsrWifiSmeListAction action;
    u8             setAddressesCount;
    CsrWifiMacAddress   *setAddresses;
} CsrWifiSmeMulticastAddressReq;

/*******************************************************************************

  NAME
    CsrWifiSmePacketFilterSetReq

  DESCRIPTION
    The wireless manager application should call this primitive to enable or
    disable filtering of broadcast packets: uninteresting broadcast packets
    will be dropped by the Wi-Fi chip, instead of passing them up to the
    host.
    This has the advantage of saving power in the host application processor
    as it removes the need to process unwanted packets.
    All broadcast packets are filtered according to the filter and the filter
    mode provided, except ARP packets, which are filtered using
    arpFilterAddress.
    Filters are not cumulative: only the parameters specified in the most
    recent successful request are significant.
    For more information, see 'UniFi Firmware API Specification'.

  MEMBERS
    common           - Common header for use with the CsrWifiFsm Module
    interfaceTag     - Interface Identifier; unique identifier of an interface
    filterLength     - Length of the filter in bytes.
                       filterLength=0 disables the filter previously set
    filter           - Points to the first byte of the filter provided, if any.
                       This shall include zero or more instance of the
                       information elements of one of these types
                         * Traffic Classification (TCLAS) elements
                         * WMM-SA TCLAS elements
    mode             - Specifies whether the filter selects or excludes packets
                       matching the filter
    arpFilterAddress - IPv4 address to be used for filtering the ARP packets.
                         * If the specified address is the IPv4 broadcast address
                           (255.255.255.255), all ARP packets are reported to the
                           host,
                         * If the specified address is NOT the IPv4 broadcast
                           address, only ARP packets with the specified address in
                           the Source or Target Protocol Address fields are reported
                           to the host

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent            common;
    u16                  interfaceTag;
    u16                  filterLength;
    u8                  *filter;
    CsrWifiSmePacketFilterMode mode;
    CsrWifiIp4Address          arpFilterAddress;
} CsrWifiSmePacketFilterSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmePermanentMacAddressGetReq

  DESCRIPTION
    This primitive retrieves the MAC address stored in EEPROM

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmePermanentMacAddressGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmePmkidReq

  DESCRIPTION
    The wireless manager application calls this primitive to request an
    operation on the SME PMKID list.
    The action argument specifies the operation to perform.
    When the connection is complete, the wireless manager application may
    then send and receive EAPOL packets to complete WPA or WPA2
    authentication if appropriate.
    The wireless manager application can then pass the resulting encryption
    keys using this primitive.

  MEMBERS
    common         - Common header for use with the CsrWifiFsm Module
    interfaceTag   - Interface Identifier; unique identifier of an interface
    action         - The value of the CsrWifiSmeListAction parameter instructs
                     the driver to modify or provide the list of PMKIDs.
    setPmkidsCount - Number of PMKIDs sent with the primitive
    setPmkids      - Pointer to the list of PMKIDs sent with the primitive, set
                     to NULL if none is sent.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    u16            interfaceTag;
    CsrWifiSmeListAction action;
    u8             setPmkidsCount;
    CsrWifiSmePmkid     *setPmkids;
} CsrWifiSmePmkidReq;

/*******************************************************************************

  NAME
    CsrWifiSmePowerConfigGetReq

  DESCRIPTION
    This primitive gets the value of the PowerConfig parameter.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmePowerConfigGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmePowerConfigSetReq

  DESCRIPTION
    This primitive sets the value of the PowerConfig parameter.

  MEMBERS
    common      - Common header for use with the CsrWifiFsm Module
    powerConfig - Power saving configuration

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent       common;
    CsrWifiSmePowerConfig powerConfig;
} CsrWifiSmePowerConfigSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeRegulatoryDomainInfoGetReq

  DESCRIPTION
    This primitive gets the value of the RegulatoryDomainInfo parameter.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeRegulatoryDomainInfoGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeRoamingConfigGetReq

  DESCRIPTION
    This primitive gets the value of the RoamingConfig parameter.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
} CsrWifiSmeRoamingConfigGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeRoamingConfigSetReq

  DESCRIPTION
    This primitive sets the value of the RoamingConfig parameter.

  MEMBERS
    common        - Common header for use with the CsrWifiFsm Module
    interfaceTag  - Interface Identifier; unique identifier of an interface
    roamingConfig - Desired roaming behaviour values

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent         common;
    u16               interfaceTag;
    CsrWifiSmeRoamingConfig roamingConfig;
} CsrWifiSmeRoamingConfigSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeScanConfigGetReq

  DESCRIPTION
    This primitive gets the value of the ScanConfig parameter.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeScanConfigGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeScanConfigSetReq

  DESCRIPTION
    This primitive sets the value of the ScanConfig parameter.
    The SME normally configures the firmware to perform autonomous scanning
    without involving the host.
    The firmware passes beacon / probe response or indicates loss of beacon
    on certain changes of state, for example:
      * A new AP is seen for the first time
      * An AP is no longer visible
      * The signal strength of an AP changes by more than a certain amount, as
        configured by the thresholds in the scanConfig parameter
    In addition to the autonomous scan, the wireless manager application may
    request a scan at any time using CSR_WIFI_SME_SCAN_FULL_REQ.

  MEMBERS
    common     - Common header for use with the CsrWifiFsm Module
    scanConfig - Reports the configuration for the autonomous scanning behaviour
                 of the firmware

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    CsrWifiSmeScanConfig scanConfig;
} CsrWifiSmeScanConfigSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeScanFullReq

  DESCRIPTION
    The wireless manager application should call this primitive to request a
    full scan.
    Channels are scanned actively or passively according to the requirement
    set by regulatory domain.
    If the SME receives this primitive while a full scan is going on, the new
    request is buffered and it will be served after the current full scan is
    completed.

  MEMBERS
    common           - Common header for use with the CsrWifiFsm Module
    ssidCount        - Number of SSIDs provided.
                       If it is 0, the SME will attempt to detect any network
    ssid             - Points to the first SSID provided, if any.
    bssid            - BSS identifier.
                       If it is equal to FF-FF-FF-FF-FF, the SME will listen for
                       messages from any BSS.
                       If it is different from FF-FF-FF-FF-FF and any SSID is
                       provided, one SSID must match the network of the BSS.
    forceScan        - Forces the scan even if the SME is in a state which would
                       normally prevent it (e.g. autonomous scan is running).
    bssType          - Type of BSS to scan for
    scanType         - Type of scan to perform
    channelListCount - Number of channels provided.
                       If it is 0, the SME will initiate a scan of all the
                       supported channels that are permitted by the current
                       regulatory domain.
    channelList      - Points to the first channel , or NULL if channelListCount
                       is zero.
    probeIeLength    - Length of the information element in bytes to be sent
                       with the probe message.
    probeIe          - Points to the first byte of the information element to be
                       sent with the probe message.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent    common;
    u8           ssidCount;
    CsrWifiSsid       *ssid;
    CsrWifiMacAddress  bssid;
    u8            forceScan;
    CsrWifiSmeBssType  bssType;
    CsrWifiSmeScanType scanType;
    u16          channelListCount;
    u8          *channelList;
    u16          probeIeLength;
    u8          *probeIe;
} CsrWifiSmeScanFullReq;

/*******************************************************************************

  NAME
    CsrWifiSmeScanResultsFlushReq

  DESCRIPTION
    The Wireless Manager calls this primitive to ask the SME to delete all
    scan results from its cache, except for the scan result of any currently
    connected network.
    As scan results are received by the SME from the firmware, they are
    cached in the SME memory.
    Any time the Wireless Manager requests scan results, they are returned
    from the SME internal cache.
    For some applications it may be desirable to clear this cache prior to
    requesting that a scan be performed; this will ensure that the cache then
    only contains the networks detected in the most recent scan.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeScanResultsFlushReq;

/*******************************************************************************

  NAME
    CsrWifiSmeScanResultsGetReq

  DESCRIPTION
    The wireless manager application calls this primitive to retrieve the
    current set of scan results, either after receiving a successful
    CSR_WIFI_SME_SCAN_FULL_CFM, or to get autonomous scan results.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeScanResultsGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeSmeStaConfigGetReq

  DESCRIPTION
    This primitive gets the value of the SmeStaConfig parameter.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
} CsrWifiSmeSmeStaConfigGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeSmeStaConfigSetReq

  DESCRIPTION
    This primitive sets the value of the SmeConfig parameter.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    smeConfig    - SME Station Parameters to be set

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent     common;
    u16           interfaceTag;
    CsrWifiSmeStaConfig smeConfig;
} CsrWifiSmeSmeStaConfigSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeStationMacAddressGetReq

  DESCRIPTION
    This primitives is used to retrieve the current MAC address used by the
    station.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeStationMacAddressGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeTspecReq

  DESCRIPTION
    The wireless manager application should call this primitive to use the
    TSPEC feature.
    The chip supports the use of TSPECs and TCLAS for the use of IEEE
    802.11/WMM Quality of Service features.
    The API allows the wireless manager application to supply a correctly
    formatted TSPEC and TCLAS pair to the driver.
    After performing basic validation, the driver negotiates the installation
    of the TSPEC with the AP as defined by the 802.11 specification.
    The driver retains all TSPEC and TCLAS pairs until they are specifically
    removed.
    It is not compulsory for a TSPEC to have a TCLAS (NULL is used to
    indicate that no TCLAS is supplied), while a TCLASS always require a
    TSPEC.
    The format of the TSPEC element is specified in 'WMM (including WMM Power
    Save) Specification - Version 1.1' and 'ANSI/IEEE Std 802.11-REVmb/D3.0'.
    For more information, see 'UniFi Configuring WMM and WMM-PS'.

  MEMBERS
    common        - Common header for use with the CsrWifiFsm Module
    interfaceTag  - Interface Identifier; unique identifier of an interface
    action        - Specifies the action to be carried out on the list of TSPECs.
                    CSR_WIFI_SME_LIST_ACTION_FLUSH is not applicable here.
    transactionId - Unique Transaction ID for the TSPEC, as assigned by the
                    driver
    strict        - If it set to false, allows the SME to perform automatic
                    TSPEC negotiation
    ctrlMask      - Additional TSPEC configuration for CCX.
                    Set mask with values from CsrWifiSmeTspecCtrl.
                    CURRENTLY NOT SUPPORTED
    tspecLength   - Length of the TSPEC.
    tspec         - Points to the first byte of the TSPEC
    tclasLength   - Length of the TCLAS.
                    If it is equal to 0, no TCLASS is provided for the TSPEC
    tclas         - Points to the first byte of the TCLAS, if any.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent         common;
    u16               interfaceTag;
    CsrWifiSmeListAction    action;
    u32               transactionId;
    u8                 strict;
    CsrWifiSmeTspecCtrlMask ctrlMask;
    u16               tspecLength;
    u8               *tspec;
    u16               tclasLength;
    u8               *tclas;
} CsrWifiSmeTspecReq;

/*******************************************************************************

  NAME
    CsrWifiSmeVersionsGetReq

  DESCRIPTION
    This primitive gets the value of the Versions parameter.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeVersionsGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeWifiFlightmodeReq

  DESCRIPTION
    The wireless manager application may call this primitive on boot-up of
    the platform to ensure that the chip is placed in a mode that prevents
    any emission of RF energy.
    This primitive is an alternative to CSR_WIFI_SME_WIFI_ON_REQ.
    As in CSR_WIFI_SME_WIFI_ON_REQ, it causes the download of the patch file
    (if any) and the programming of the initial MIB settings (if supplied by
    the WMA), but it also ensures that the chip is left in its lowest
    possible power-mode with the radio subsystems disabled.
    This feature is useful on platforms where power cannot be removed from
    the chip (leaving the chip not initialised will cause it to consume more
    power so calling this function ensures that the chip is initialised into
    a low power mode but without entering a state where it could emit any RF
    energy).
    NOTE: this primitive does not cause the Wi-Fi to change state: Wi-Fi
    stays conceptually off. Configuration primitives can be sent after
    CSR_WIFI_SME_WIFI_FLIGHTMODE_REQ and the configuration will be maintained.
    Requests that require the state of the Wi-Fi to be ON will return
    CSR_WIFI_SME_STATUS_WIFI_OFF in their confirms.

  MEMBERS
    common        - Common header for use with the CsrWifiFsm Module
    address       - Optionally specifies a station MAC address.
                    In normal use, the manager should set the address to 0xFF
                    0xFF 0xFF 0xFF 0xFF 0xFF, which will cause the chip to use
                    the MAC address in the MIB.
    mibFilesCount - Number of provided data blocks with initial MIB values
    mibFiles      - Points to the first data block with initial MIB values.
                    These data blocks are typically the contents of the provided
                    files ufmib.dat and localmib.dat, available from the host
                    file system, if they exist.
                    These files typically contain radio tuning and calibration
                    values.
                    More values can be created using the Host Tools.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    CsrWifiMacAddress    address;
    u16            mibFilesCount;
    CsrWifiSmeDataBlock *mibFiles;
} CsrWifiSmeWifiFlightmodeReq;

/*******************************************************************************

  NAME
    CsrWifiSmeWifiOffReq

  DESCRIPTION
    The wireless manager application calls this primitive to turn off the
    chip, thus saving power when Wi-Fi is not in use.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeWifiOffReq;

/*******************************************************************************

  NAME
    CsrWifiSmeWifiOnReq

  DESCRIPTION
    The wireless manager application calls this primitive to turn on the
    Wi-Fi chip.
    If the Wi-Fi chip is currently off, the SME turns the Wi-Fi chip on,
    downloads the patch file (if any), and programs the initial MIB settings
    (if supplied by the WMA).
    The patch file is not provided with the SME API; its downloading is
    automatic and handled internally by the system.
    The MIB settings, when provided, override the default values that the
    firmware loads from EEPROM.
    If the Wi-Fi chip is already on, the SME takes no action and returns a
    successful status in the confirm.

  MEMBERS
    common        - Common header for use with the CsrWifiFsm Module
    address       - Optionally specifies a station MAC address.
                    In normal use, the manager should set the address to 0xFF
                    0xFF 0xFF 0xFF 0xFF 0xFF, which will cause the chip to use
                    the MAC address in the MIB
    mibFilesCount - Number of provided data blocks with initial MIB values
    mibFiles      - Points to the first data block with initial MIB values.
                    These data blocks are typically the contents of the provided
                    files ufmib.dat and localmib.dat, available from the host
                    file system, if they exist.
                    These files typically contain radio tuning and calibration
                    values.
                    More values can be created using the Host Tools.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    CsrWifiMacAddress    address;
    u16            mibFilesCount;
    CsrWifiSmeDataBlock *mibFiles;
} CsrWifiSmeWifiOnReq;

/*******************************************************************************

  NAME
    CsrWifiSmeCloakedSsidsSetReq

  DESCRIPTION
    This primitive sets the list of cloaked SSIDs for which the WMA possesses
    profiles.
    When the driver detects a cloaked AP, the SME will explicitly scan for it
    using the list of cloaked SSIDs provided it, and, if the scan succeeds,
    it will report the AP to the WMA either via CSR_WIFI_SME_SCAN_RESULT_IND
    (if registered) or via CSR_WIFI_SCAN_RESULT_GET_CFM.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    cloakedSsids - Sets the list of cloaked SSIDs

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent             common;
    CsrWifiSmeCloakedSsidConfig cloakedSsids;
} CsrWifiSmeCloakedSsidsSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeCloakedSsidsGetReq

  DESCRIPTION
    This primitive gets the value of the CloakedSsids parameter.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeCloakedSsidsGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeSmeCommonConfigGetReq

  DESCRIPTION
    This primitive gets the value of the Sme common parameter.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeSmeCommonConfigGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeSmeCommonConfigSetReq

  DESCRIPTION
    This primitive sets the value of the Sme common.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    deviceConfig - Configuration options in the SME

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent        common;
    CsrWifiSmeDeviceConfig deviceConfig;
} CsrWifiSmeSmeCommonConfigSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeInterfaceCapabilityGetReq

  DESCRIPTION
    The Wireless Manager calls this primitive to ask the SME for the
    capabilities of the supported interfaces

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
} CsrWifiSmeInterfaceCapabilityGetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeWpsConfigurationReq

  DESCRIPTION
    This primitive passes the WPS information for the device to SME. This may
    be accepted only if no interface is active.

  MEMBERS
    common    - Common header for use with the CsrWifiFsm Module
    wpsConfig - WPS config.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent     common;
    CsrWifiSmeWpsConfig wpsConfig;
} CsrWifiSmeWpsConfigurationReq;

/*******************************************************************************

  NAME
    CsrWifiSmeSetReq

  DESCRIPTION
    Used to pass custom data to the SME. Format is the same as 802.11 Info
    Elements => | Id | Length | Data
    1) Cmanr Test Mode "Id:0 Length:1 Data:0x00 = OFF 0x01 = ON" "0x00 0x01
    (0x00|0x01)"

  MEMBERS
    common     - Common header for use with the CsrWifiFsm Module
    dataLength - Number of bytes in the buffer pointed to by 'data'
    data       - Pointer to the buffer containing 'dataLength' bytes

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u32       dataLength;
    u8       *data;
} CsrWifiSmeSetReq;

/*******************************************************************************

  NAME
    CsrWifiSmeActivateCfm

  DESCRIPTION
    The SME sends this primitive when the activation is complete.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeActivateCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeAdhocConfigGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common      - Common header for use with the CsrWifiFsm Module
    status      - Reports the result of the request
    adHocConfig - Contains the values used when starting an Ad-hoc (IBSS)
                  connection.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent       common;
    CsrResult             status;
    CsrWifiSmeAdHocConfig adHocConfig;
} CsrWifiSmeAdhocConfigGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeAdhocConfigSetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeAdhocConfigSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeAssociationCompleteInd

  DESCRIPTION
    The SME will send this primitive to all the tasks that have registered to
    receive it whenever it completes an attempt to associate with an AP. If
    the association was successful, status will be set to
    CSR_WIFI_SME_STATUS_SUCCESS, otherwise status and deauthReason shall be
    set to appropriate error codes.

  MEMBERS
    common         - Common header for use with the CsrWifiFsm Module
    interfaceTag   - Interface Identifier; unique identifier of an interface
    status         - Reports the result of the association procedure
    connectionInfo - This parameter is relevant only if result is
                     CSR_WIFI_SME_STATUS_SUCCESS:
                     it points to the connection information for the new network
    deauthReason   - This parameter is relevant only if result is not
                     CSR_WIFI_SME_STATUS_SUCCESS:
                     if the AP deauthorised the station, it gives the reason of
                     the deauthorization

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent           common;
    u16                 interfaceTag;
    CsrResult                 status;
    CsrWifiSmeConnectionInfo  connectionInfo;
    CsrWifiSmeIEEE80211Reason deauthReason;
} CsrWifiSmeAssociationCompleteInd;

/*******************************************************************************

  NAME
    CsrWifiSmeAssociationStartInd

  DESCRIPTION
    The SME will send this primitive to all the tasks that have registered to
    receive it whenever it begins an attempt to associate with an AP.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    address      - BSSID of the associating network
    ssid         - Service Set identifier of the associating network

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent   common;
    u16         interfaceTag;
    CsrWifiMacAddress address;
    CsrWifiSsid       ssid;
} CsrWifiSmeAssociationStartInd;

/*******************************************************************************

  NAME
    CsrWifiSmeBlacklistCfm

  DESCRIPTION
    The SME will call this primitive when the action on the blacklist has
    completed. For a GET action, this primitive also reports the list of
    BBSIDs in the blacklist.

  MEMBERS
    common          - Common header for use with the CsrWifiFsm Module
    interfaceTag    - Interface Identifier; unique identifier of an interface
    status          - Reports the result of the request
    action          - Action in the request
    getAddressCount - This parameter is only relevant if action is
                      CSR_WIFI_SME_LIST_ACTION_GET:
                      number of BSSIDs sent with this primitive
    getAddresses    - Pointer to the list of BBSIDs sent with the primitive, set
                      to NULL if none is sent.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    u16            interfaceTag;
    CsrResult            status;
    CsrWifiSmeListAction action;
    u8             getAddressCount;
    CsrWifiMacAddress   *getAddresses;
} CsrWifiSmeBlacklistCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeCalibrationDataGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common                - Common header for use with the CsrWifiFsm Module
    status                - Reports the result of the request
    calibrationDataLength - Number of bytes in the buffer pointed by
                            calibrationData
    calibrationData       - Pointer to a buffer of length calibrationDataLength
                            containing the calibration data

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
    u16       calibrationDataLength;
    u8       *calibrationData;
} CsrWifiSmeCalibrationDataGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeCalibrationDataSetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeCalibrationDataSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeCcxConfigGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    status       - Reports the result of the request
    ccxConfig    - Currently not supported

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent     common;
    u16           interfaceTag;
    CsrResult           status;
    CsrWifiSmeCcxConfig ccxConfig;
} CsrWifiSmeCcxConfigGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeCcxConfigSetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    status       - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
    CsrResult       status;
} CsrWifiSmeCcxConfigSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeCoexConfigGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common     - Common header for use with the CsrWifiFsm Module
    status     - Reports the result of the request
    coexConfig - Reports the parameters used to configure the coexistence
                 behaviour

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    CsrResult            status;
    CsrWifiSmeCoexConfig coexConfig;
} CsrWifiSmeCoexConfigGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeCoexConfigSetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeCoexConfigSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeCoexInfoGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common   - Common header for use with the CsrWifiFsm Module
    status   - Reports the result of the request
    coexInfo - Reports information and state related to coexistence.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent    common;
    CsrResult          status;
    CsrWifiSmeCoexInfo coexInfo;
} CsrWifiSmeCoexInfoGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeConnectCfm

  DESCRIPTION
    The SME calls this primitive when the connection exchange is complete or
    all connection attempts fail.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    status       - Reports the result of the request.
                   CSR_WIFI_SME_STATUS_NOT_FOUND: all attempts by the SME to
                   locate the requested AP failed

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
    CsrResult       status;
} CsrWifiSmeConnectCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeConnectionConfigGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common           - Common header for use with the CsrWifiFsm Module
    interfaceTag     - Interface Identifier; unique identifier of an interface
    status           - Reports the result of the request
    connectionConfig - Parameters used by the SME for selecting a network

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent            common;
    u16                  interfaceTag;
    CsrResult                  status;
    CsrWifiSmeConnectionConfig connectionConfig;
} CsrWifiSmeConnectionConfigGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeConnectionInfoGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common         - Common header for use with the CsrWifiFsm Module
    interfaceTag   - Interface Identifier; unique identifier of an interface
    status         - Reports the result of the request
    connectionInfo - Information about the current connection

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent          common;
    u16                interfaceTag;
    CsrResult                status;
    CsrWifiSmeConnectionInfo connectionInfo;
} CsrWifiSmeConnectionInfoGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeConnectionQualityInd

  DESCRIPTION
    The SME sends this primitive to all the tasks that have registered to
    receive it whenever the value of the current connection quality
    parameters change by more than a certain configurable amount.
    The wireless manager application may configure the trigger thresholds for
    this indication using the field in smeConfig parameter of
    CSR_WIFI_SME_SME_CONFIG_SET_REQ.
    Connection quality messages can be suppressed by setting both thresholds
    to zero.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    linkQuality  - Indicates the quality of the link

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent       common;
    u16             interfaceTag;
    CsrWifiSmeLinkQuality linkQuality;
} CsrWifiSmeConnectionQualityInd;

/*******************************************************************************

  NAME
    CsrWifiSmeConnectionStatsGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common          - Common header for use with the CsrWifiFsm Module
    interfaceTag    - Interface Identifier; unique identifier of an interface
    status          - Reports the result of the request
    connectionStats - Statistics for current connection.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent           common;
    u16                 interfaceTag;
    CsrResult                 status;
    CsrWifiSmeConnectionStats connectionStats;
} CsrWifiSmeConnectionStatsGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeDeactivateCfm

  DESCRIPTION
    The SME sends this primitive when the deactivation is complete.
    The WMA cannot send any more primitives until it actives the SME again
    sending another CSR_WIFI_SME_ACTIVATE_REQ.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeDeactivateCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeDisconnectCfm

  DESCRIPTION
    On reception of CSR_WIFI_SME_DISCONNECT_REQ the SME will perform a
    disconnect operation, sending a CsrWifiSmeMediaStatusInd with
    CSR_WIFI_SME_MEDIA_STATUS_DISCONNECTED and then call this primitive when
    disconnection is complete.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    status       - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
    CsrResult       status;
} CsrWifiSmeDisconnectCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeEventMaskSetCfm

  DESCRIPTION
    The SME calls the primitive to report the result of the request
    primitive.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeEventMaskSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeHostConfigGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    status       - Reports the result of the request
    hostConfig   - Current host power state.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    u16            interfaceTag;
    CsrResult            status;
    CsrWifiSmeHostConfig hostConfig;
} CsrWifiSmeHostConfigGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeHostConfigSetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    status       - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
    CsrResult       status;
} CsrWifiSmeHostConfigSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeIbssStationInd

  DESCRIPTION
    The SME will send this primitive to indicate that a station has joined or
    left the ad-hoc network.

  MEMBERS
    common      - Common header for use with the CsrWifiFsm Module
    address     - MAC address of the station that has joined or left
    isconnected - TRUE if the station joined, FALSE if the station left

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent   common;
    CsrWifiMacAddress address;
    u8           isconnected;
} CsrWifiSmeIbssStationInd;

/*******************************************************************************

  NAME
    CsrWifiSmeKeyCfm

  DESCRIPTION
    The SME calls the primitive to report the result of the request
    primitive.

  MEMBERS
    common         - Common header for use with the CsrWifiFsm Module
    interfaceTag   - Interface Identifier; unique identifier of an interface
    status         - Reports the result of the request
    action         - Action in the request
    keyType        - Type of the key added/deleted
    peerMacAddress - Peer MAC Address of the key added/deleted

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    u16            interfaceTag;
    CsrResult            status;
    CsrWifiSmeListAction action;
    CsrWifiSmeKeyType    keyType;
    CsrWifiMacAddress    peerMacAddress;
} CsrWifiSmeKeyCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeLinkQualityGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    status       - Reports the result of the request
    linkQuality  - Indicates the quality of the link

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent       common;
    u16             interfaceTag;
    CsrResult             status;
    CsrWifiSmeLinkQuality linkQuality;
} CsrWifiSmeLinkQualityGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeMediaStatusInd

  DESCRIPTION
    The SME sends this primitive to all the tasks that have registered to
    receive it when a network connection is established, lost or has moved to
    another AP.

  MEMBERS
    common         - Common header for use with the CsrWifiFsm Module
    interfaceTag   - Interface Identifier; unique identifier of an interface
    mediaStatus    - Indicates the media status
    connectionInfo - This parameter is relevant only if the mediaStatus is
                     CSR_WIFI_SME_MEDIA_STATUS_CONNECTED:
                     it points to the connection information for the new network
    disassocReason - This parameter is relevant only if the mediaStatus is
                     CSR_WIFI_SME_MEDIA_STATUS_DISCONNECTED:
                     if a disassociation has occurred it gives the reason of the
                     disassociation
    deauthReason   - This parameter is relevant only if the mediaStatus is
                     CSR_WIFI_SME_MEDIA_STATUS_DISCONNECTED:
                     if a deauthentication has occurred it gives the reason of
                     the deauthentication

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent           common;
    u16                 interfaceTag;
    CsrWifiSmeMediaStatus     mediaStatus;
    CsrWifiSmeConnectionInfo  connectionInfo;
    CsrWifiSmeIEEE80211Reason disassocReason;
    CsrWifiSmeIEEE80211Reason deauthReason;
} CsrWifiSmeMediaStatusInd;

/*******************************************************************************

  NAME
    CsrWifiSmeMibConfigGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common    - Common header for use with the CsrWifiFsm Module
    status    - Reports the result of the request
    mibConfig - Reports various IEEE 802.11 attributes as currently configured

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent     common;
    CsrResult           status;
    CsrWifiSmeMibConfig mibConfig;
} CsrWifiSmeMibConfigGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeMibConfigSetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeMibConfigSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeMibGetCfm

  DESCRIPTION
    The SME calls this primitive to return the requested MIB variable values.

  MEMBERS
    common             - Common header for use with the CsrWifiFsm Module
    status             - Reports the result of the request
    mibAttributeLength - Length of mibAttribute
    mibAttribute       - Points to the VarBind or VarBindList containing the
                         names and values of the MIB variables requested

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
    u16       mibAttributeLength;
    u8       *mibAttribute;
} CsrWifiSmeMibGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeMibGetNextCfm

  DESCRIPTION
    The SME calls this primitive to return the requested MIB name(s).
    The wireless manager application can then read the value of the MIB
    variable using CSR_WIFI_SME_MIB_GET_REQ, using the names provided.

  MEMBERS
    common             - Common header for use with the CsrWifiFsm Module
    status             - Reports the result of the request
    mibAttributeLength - Length of mibAttribute
    mibAttribute       - Points to a VarBind or VarBindList containing the
                         name(s) of the MIB variable(s) lexicographically
                         following the name(s) given in the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
    u16       mibAttributeLength;
    u8       *mibAttribute;
} CsrWifiSmeMibGetNextCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeMibSetCfm

  DESCRIPTION
    The SME calls the primitive to report the result of the set primitive.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeMibSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeMicFailureInd

  DESCRIPTION
    The SME sends this primitive to all the tasks that have registered to
    receive it whenever the chip firmware reports a MIC failure.

  MEMBERS
    common        - Common header for use with the CsrWifiFsm Module
    interfaceTag  - Interface Identifier; unique identifier of an interface
    secondFailure - TRUE if this indication is for a second failure in 60
                    seconds
    count         - The number of MIC failure events since the connection was
                    established
    address       - MAC address of the transmitter that caused the MIC failure
    keyType       - Type of key for which the failure occurred

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent   common;
    u16         interfaceTag;
    u8           secondFailure;
    u16         count;
    CsrWifiMacAddress address;
    CsrWifiSmeKeyType keyType;
} CsrWifiSmeMicFailureInd;

/*******************************************************************************

  NAME
    CsrWifiSmeMulticastAddressCfm

  DESCRIPTION
    The SME will call this primitive when the operation is complete. For a
    GET action, this primitive reports the current list of MAC addresses.

  MEMBERS
    common            - Common header for use with the CsrWifiFsm Module
    interfaceTag      - Interface Identifier; unique identifier of an interface
    status            - Reports the result of the request
    action            - Action in the request
    getAddressesCount - This parameter is only relevant if action is
                        CSR_WIFI_SME_LIST_ACTION_GET:
                        number of MAC addresses sent with the primitive
    getAddresses      - Pointer to the list of MAC Addresses sent with the
                        primitive, set to NULL if none is sent.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    u16            interfaceTag;
    CsrResult            status;
    CsrWifiSmeListAction action;
    u8             getAddressesCount;
    CsrWifiMacAddress   *getAddresses;
} CsrWifiSmeMulticastAddressCfm;

/*******************************************************************************

  NAME
    CsrWifiSmePacketFilterSetCfm

  DESCRIPTION
    The SME calls the primitive to report the result of the set primitive.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    status       - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
    CsrResult       status;
} CsrWifiSmePacketFilterSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmePermanentMacAddressGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common              - Common header for use with the CsrWifiFsm Module
    status              - Reports the result of the request
    permanentMacAddress - MAC address stored in the EEPROM

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent   common;
    CsrResult         status;
    CsrWifiMacAddress permanentMacAddress;
} CsrWifiSmePermanentMacAddressGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmePmkidCandidateListInd

  DESCRIPTION
    The SME will send this primitive to all the tasks that have registered to
    receive it when a new network supporting preauthentication and/or PMK
    caching is seen.

  MEMBERS
    common               - Common header for use with the CsrWifiFsm Module
    interfaceTag         - Interface Identifier; unique identifier of an
                           interface
    pmkidCandidatesCount - Number of PMKID candidates provided
    pmkidCandidates      - Points to the first PMKID candidate

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent           common;
    u16                 interfaceTag;
    u8                  pmkidCandidatesCount;
    CsrWifiSmePmkidCandidate *pmkidCandidates;
} CsrWifiSmePmkidCandidateListInd;

/*******************************************************************************

  NAME
    CsrWifiSmePmkidCfm

  DESCRIPTION
    The SME will call this primitive when the operation is complete. For a
    GET action, this primitive reports the current list of PMKIDs

  MEMBERS
    common         - Common header for use with the CsrWifiFsm Module
    interfaceTag   - Interface Identifier; unique identifier of an interface
    status         - Reports the result of the request
    action         - Action in the request
    getPmkidsCount - This parameter is only relevant if action is
                     CSR_WIFI_SME_LIST_ACTION_GET:
                     number of PMKIDs sent with the primitive
    getPmkids      - Pointer to the list of PMKIDs sent with the primitive, set
                     to NULL if none is sent.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    u16            interfaceTag;
    CsrResult            status;
    CsrWifiSmeListAction action;
    u8             getPmkidsCount;
    CsrWifiSmePmkid     *getPmkids;
} CsrWifiSmePmkidCfm;

/*******************************************************************************

  NAME
    CsrWifiSmePowerConfigGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common      - Common header for use with the CsrWifiFsm Module
    status      - Reports the result of the request
    powerConfig - Returns the current parameters for the power configuration of
                  the firmware

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent       common;
    CsrResult             status;
    CsrWifiSmePowerConfig powerConfig;
} CsrWifiSmePowerConfigGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmePowerConfigSetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmePowerConfigSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeRegulatoryDomainInfoGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common     - Common header for use with the CsrWifiFsm Module
    status     - Reports the result of the request
    regDomInfo - Reports information and state related to regulatory domain
                 operation.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent                common;
    CsrResult                      status;
    CsrWifiSmeRegulatoryDomainInfo regDomInfo;
} CsrWifiSmeRegulatoryDomainInfoGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeRoamCompleteInd

  DESCRIPTION
    The SME will send this primitive to all the tasks that have registered to
    receive it whenever it completes an attempt to roam to an AP. If the roam
    attempt was successful, status will be set to CSR_WIFI_SME_SUCCESS,
    otherwise it shall be set to the appropriate error code.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    status       - Reports the result of the roaming procedure

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
    CsrResult       status;
} CsrWifiSmeRoamCompleteInd;

/*******************************************************************************

  NAME
    CsrWifiSmeRoamStartInd

  DESCRIPTION
    The SME will send this primitive to all the tasks that have registered to
    receive it whenever it begins an attempt to roam to an AP.
    If the wireless manager application connect request specified the SSID
    and the BSSID was set to the broadcast address (0xFF 0xFF 0xFF 0xFF 0xFF
    0xFF), the SME monitors the signal quality and maintains a list of
    candidates to roam to. When the signal quality of the current connection
    falls below a threshold, and there is a candidate with better quality,
    the SME will attempt to the candidate AP.
    If the roaming procedure succeeds, the SME will also issue a Media
    Connect indication to inform the wireless manager application of the
    change.
    NOTE: to prevent the SME from initiating roaming the WMA must specify the
    BSSID in the connection request; this forces the SME to connect only to
    that AP.
    The wireless manager application can obtain statistics for roaming
    purposes using CSR_WIFI_SME_CONNECTION_QUALITY_IND and
    CSR_WIFI_SME_CONNECTION_STATS_GET_REQ.
    When the wireless manager application wishes to roam to another AP, it
    must issue a connection request specifying the BSSID of the desired AP.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    roamReason   - Indicates the reason for starting the roaming procedure
    reason80211  - Indicates the reason for deauthentication or disassociation

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent           common;
    u16                 interfaceTag;
    CsrWifiSmeRoamReason      roamReason;
    CsrWifiSmeIEEE80211Reason reason80211;
} CsrWifiSmeRoamStartInd;

/*******************************************************************************

  NAME
    CsrWifiSmeRoamingConfigGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common        - Common header for use with the CsrWifiFsm Module
    interfaceTag  - Interface Identifier; unique identifier of an interface
    status        - Reports the result of the request
    roamingConfig - Reports the roaming behaviour of the driver and firmware

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent         common;
    u16               interfaceTag;
    CsrResult               status;
    CsrWifiSmeRoamingConfig roamingConfig;
} CsrWifiSmeRoamingConfigGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeRoamingConfigSetCfm

  DESCRIPTION
    This primitive sets the value of the RoamingConfig parameter.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    status       - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
    CsrResult       status;
} CsrWifiSmeRoamingConfigSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeScanConfigGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common     - Common header for use with the CsrWifiFsm Module
    status     - Reports the result of the request
    scanConfig - Returns the current parameters for the autonomous scanning
                 behaviour of the firmware

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    CsrResult            status;
    CsrWifiSmeScanConfig scanConfig;
} CsrWifiSmeScanConfigGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeScanConfigSetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeScanConfigSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeScanFullCfm

  DESCRIPTION
    The SME calls this primitive when the results from the scan are
    available.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeScanFullCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeScanResultInd

  DESCRIPTION
    The SME sends this primitive to all the tasks that have registered to
    receive it whenever a scan indication is received from the firmware.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    result - Points to a buffer containing a scan result.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent      common;
    CsrWifiSmeScanResult result;
} CsrWifiSmeScanResultInd;

/*******************************************************************************

  NAME
    CsrWifiSmeScanResultsFlushCfm

  DESCRIPTION
    The SME will call this primitive when the cache has been cleared.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeScanResultsFlushCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeScanResultsGetCfm

  DESCRIPTION
    The SME sends this primitive to provide the current set of scan results.

  MEMBERS
    common           - Common header for use with the CsrWifiFsm Module
    status           - Reports the result of the request
    scanResultsCount - Number of scan results
    scanResults      - Points to a buffer containing an array of
                       CsrWifiSmeScanResult structures.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent       common;
    CsrResult             status;
    u16             scanResultsCount;
    CsrWifiSmeScanResult *scanResults;
} CsrWifiSmeScanResultsGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeSmeStaConfigGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    status       - Reports the result of the request
    smeConfig    - Current SME Station Parameters

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent     common;
    u16           interfaceTag;
    CsrResult           status;
    CsrWifiSmeStaConfig smeConfig;
} CsrWifiSmeSmeStaConfigGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeSmeStaConfigSetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface Identifier; unique identifier of an interface
    status       - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u16       interfaceTag;
    CsrResult       status;
} CsrWifiSmeSmeStaConfigSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeStationMacAddressGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common            - Common header for use with the CsrWifiFsm Module
    status            - Reports the result of the request
    stationMacAddress - Current MAC address of the station.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent   common;
    CsrResult         status;
    CsrWifiMacAddress stationMacAddress[2];
} CsrWifiSmeStationMacAddressGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeTspecInd

  DESCRIPTION
    The SME will send this primitive to all the task that have registered to
    receive it when a status change in the TSPEC occurs.

  MEMBERS
    common          - Common header for use with the CsrWifiFsm Module
    interfaceTag    - Interface Identifier; unique identifier of an interface
    transactionId   - Unique Transaction ID for the TSPEC, as assigned by the
                      driver
    tspecResultCode - Specifies the TSPEC operation requested by the peer
                      station
    tspecLength     - Length of the TSPEC.
    tspec           - Points to the first byte of the TSPEC

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent           common;
    u16                 interfaceTag;
    u32                 transactionId;
    CsrWifiSmeTspecResultCode tspecResultCode;
    u16                 tspecLength;
    u8                 *tspec;
} CsrWifiSmeTspecInd;

/*******************************************************************************

  NAME
    CsrWifiSmeTspecCfm

  DESCRIPTION
    The SME calls the primitive to report the result of the TSpec primitive
    request.

  MEMBERS
    common          - Common header for use with the CsrWifiFsm Module
    interfaceTag    - Interface Identifier; unique identifier of an interface
    status          - Reports the result of the request
    transactionId   - Unique Transaction ID for the TSPEC, as assigned by the
                      driver
    tspecResultCode - Specifies the result of the negotiated TSPEC operation
    tspecLength     - Length of the TSPEC.
    tspec           - Points to the first byte of the TSPEC

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent           common;
    u16                 interfaceTag;
    CsrResult                 status;
    u32                 transactionId;
    CsrWifiSmeTspecResultCode tspecResultCode;
    u16                 tspecLength;
    u8                 *tspec;
} CsrWifiSmeTspecCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeVersionsGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common   - Common header for use with the CsrWifiFsm Module
    status   - Reports the result of the request
    versions - Version IDs of the product

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent    common;
    CsrResult          status;
    CsrWifiSmeVersions versions;
} CsrWifiSmeVersionsGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeWifiFlightmodeCfm

  DESCRIPTION
    The SME calls this primitive when the chip is initialised for low power
    mode and with the radio subsystem disabled. To leave flight mode, and
    enable Wi-Fi, the wireless manager application should call
    CSR_WIFI_SME_WIFI_ON_REQ.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeWifiFlightmodeCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeWifiOffInd

  DESCRIPTION
    The SME sends this primitive to all the tasks that have registered to
    receive it to report that the chip has been turned off.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    reason - Indicates the reason why the Wi-Fi has been switched off.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent             common;
    CsrWifiSmeControlIndication reason;
} CsrWifiSmeWifiOffInd;

/*******************************************************************************

  NAME
    CsrWifiSmeWifiOffCfm

  DESCRIPTION
    After receiving CSR_WIFI_SME_WIFI_OFF_REQ, if the chip is connected to a
    network, the SME will perform a disconnect operation, will send a
    CSR_WIFI_SME_MEDIA_STATUS_IND with
    CSR_WIFI_SME_MEDIA_STATUS_DISCONNECTED, and then will call
    CSR_WIFI_SME_WIFI_OFF_CFM when the chip is off.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeWifiOffCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeWifiOnCfm

  DESCRIPTION
    The SME sends this primitive to the task that has sent the request once
    the chip has been initialised and is available for use.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeWifiOnCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeCloakedSsidsSetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeCloakedSsidsSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeCloakedSsidsGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    status       - Reports the result of the request
    cloakedSsids - Reports list of cloaked SSIDs that are explicitly scanned for
                   by the driver

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent             common;
    CsrResult                   status;
    CsrWifiSmeCloakedSsidConfig cloakedSsids;
} CsrWifiSmeCloakedSsidsGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeWifiOnInd

  DESCRIPTION
    The SME sends this primitive to all tasks that have registered to receive
    it once the chip becomes available and ready to use.

  MEMBERS
    common  - Common header for use with the CsrWifiFsm Module
    address - Current MAC address

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent   common;
    CsrWifiMacAddress address;
} CsrWifiSmeWifiOnInd;

/*******************************************************************************

  NAME
    CsrWifiSmeSmeCommonConfigGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    status       - Reports the result of the request
    deviceConfig - Configuration options in the SME

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent        common;
    CsrResult              status;
    CsrWifiSmeDeviceConfig deviceConfig;
} CsrWifiSmeSmeCommonConfigGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeSmeCommonConfigSetCfm

  DESCRIPTION
    Reports the result of the request

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Reports the result of the request

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeSmeCommonConfigSetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeInterfaceCapabilityGetCfm

  DESCRIPTION
    This primitive reports the result of the request.

  MEMBERS
    common        - Common header for use with the CsrWifiFsm Module
    status        - Result of the request
    numInterfaces - Number of the interfaces supported
    capBitmap     - Points to the list of capabilities bitmaps provided for each
                    interface.
                    The bits represent the following capabilities:
                    -bits 7 to 4-Reserved
                    -bit 3-AMP
                    -bit 2-P2P
                    -bit 1-AP
                    -bit 0-STA

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
    u16       numInterfaces;
    u8        capBitmap[2];
} CsrWifiSmeInterfaceCapabilityGetCfm;

/*******************************************************************************

  NAME
    CsrWifiSmeErrorInd

  DESCRIPTION
    Important error message indicating a error of some importance

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    errorMessage - Contains the error message.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    char  *errorMessage;
} CsrWifiSmeErrorInd;

/*******************************************************************************

  NAME
    CsrWifiSmeInfoInd

  DESCRIPTION
    Message indicating a some info about current activity. Mostly of interest
    in testing but may be useful in the field.

  MEMBERS
    common      - Common header for use with the CsrWifiFsm Module
    infoMessage - Contains the message.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    char  *infoMessage;
} CsrWifiSmeInfoInd;

/*******************************************************************************

  NAME
    CsrWifiSmeCoreDumpInd

  DESCRIPTION
    The SME will send this primitive to all the tasks that have registered to
    receive Wi-Fi Chip core dump data.
    The core dump data may be fragmented and sent using more than one
    indication.
    To indicate that all the data has been sent, the last indication contains
    a 'length' of 0 and 'data' of NULL.

  MEMBERS
    common     - Common header for use with the CsrWifiFsm Module
    dataLength - Number of bytes in the buffer pointed to by 'data'
    data       - Pointer to the buffer containing 'dataLength' bytes of core
                 dump data

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    u32       dataLength;
    u8       *data;
} CsrWifiSmeCoreDumpInd;

/*******************************************************************************

  NAME
    CsrWifiSmeAmpStatusChangeInd

  DESCRIPTION
    Indication of change to AMP activity.

  MEMBERS
    common       - Common header for use with the CsrWifiFsm Module
    interfaceTag - Interface on which the AMP activity changed.
    ampStatus    - The new status of AMP activity.Range: {AMP_ACTIVE,
                   AMP_INACTIVE}.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent     common;
    u16           interfaceTag;
    CsrWifiSmeAmpStatus ampStatus;
} CsrWifiSmeAmpStatusChangeInd;

/*******************************************************************************

  NAME
    CsrWifiSmeWpsConfigurationCfm

  DESCRIPTION
    Confirm.

  MEMBERS
    common - Common header for use with the CsrWifiFsm Module
    status - Status of the request.

*******************************************************************************/
typedef struct
{
    CsrWifiFsmEvent common;
    CsrResult       status;
} CsrWifiSmeWpsConfigurationCfm;

#endif /* CSR_WIFI_SME_PRIM_H__ */