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
|
/**
****************************************************************************************
*
* @file lmac_msg.h
*
* @brief Main definitions for message exchanges with LMAC
*
* Copyright (C) ESWIN 2015-2020
*
****************************************************************************************
*/
#ifndef LMAC_MSG_H_
#define LMAC_MSG_H_
/*
* INCLUDE FILES
****************************************************************************************
*/
// for MAC related elements (mac_addr, mac_ssid...)
#include "lmac_mac.h"
#if defined(CONFIG_STANDALONE_WIFI) && defined(CONFIG_STANDALONE_WIFI_BLE)
#error biuld mode error, wifi or wifi_ble must choice one!
#endif
/*
****************************************************************************************
*/
/////////////////////////////////////////////////////////////////////////////////
// COMMUNICATION WITH LMAC LAYER
/////////////////////////////////////////////////////////////////////////////////
/* Task identifiers for communication between LMAC and DRIVER */
enum
{
TASK_NONE = (u8_l) -1,
#if defined(CONFIG_STANDALONE_WIFI)
// MAC Management task.
TASK_MM = 0,
#elif defined(CONFIG_STANDALONE_WIFI_BLE)
TASK_MM = 32,
#else
#error #error not defined biuld mode!
#endif
// DEBUG task
TASK_DBG,
/// SCAN task
TASK_SCAN,
#ifdef CONFIG_CEVA_RTOS
TASK_CLI,
#endif
/// TDLS task
TASK_TDLS,
/// SCANU task
TASK_SCANU,
/// ME task
TASK_ME,
/// SM task
TASK_SM,
/// APM task
TASK_APM,
/// BAM task
TASK_BAM,
/// MESH task
TASK_MESH,
/// RXU task
TASK_RXU,
TASK_RM,
#if defined(CONFIG_ECRNX_P2P)
TASK_P2P_LISTEN,
#endif
TASK_TWT,
#if defined CONFIG_ECRNX_SOFTMAC
// This is used to define the last task that is running on the EMB processor
TASK_LAST_EMB = TASK_TDLS,
#elif defined CONFIG_ECRNX_FULLMAC || defined CONFIG_ECRNX_FHOST
// This is used to define the last task that is running on the EMB processor
TASK_LAST_EMB = TASK_TWT,
#else
#error "Need to define SOFTMAC or FULLMAC"
#endif
// nX API task
TASK_API,
TASK_MAX,
};
/// For MAC HW States copied from "hal_machw.h"
enum
{
/// MAC HW IDLE State.
HW_IDLE = 0,
/// MAC HW RESERVED State.
HW_RESERVED,
/// MAC HW DOZE State.
HW_DOZE,
/// MAC HW ACTIVE State.
HW_ACTIVE
};
/// Power Save mode setting
enum mm_ps_mode_state
{
MM_PS_MODE_OFF,
MM_PS_MODE_ON,
MM_PS_MODE_ON_DYN,
};
/// Status/error codes used in the MAC software.
enum
{
CO_OK,
CO_FAIL,
CO_EMPTY,
CO_FULL,
CO_BAD_PARAM,
CO_NOT_FOUND,
CO_NO_MORE_ELT_AVAILABLE,
CO_NO_ELT_IN_USE,
CO_BUSY,
CO_OP_IN_PROGRESS,
};
/// Remain on channel operation codes
enum mm_remain_on_channel_op
{
MM_ROC_OP_START = 0,
MM_ROC_OP_CANCEL,
};
#define DRV_TASK_ID 100
/// Message Identifier. The number of messages is limited to 0xFFFF.
/// The message ID is divided in two parts:
/// - bits[15..10] : task index (no more than 64 tasks supported).
/// - bits[9..0] : message index (no more that 1024 messages per task).
typedef u16 lmac_msg_id_t;
typedef u16 lmac_task_id_t;
/// Build the first message ID of a task.
#if defined(CONFIG_STANDALONE_WIFI)
#define LMAC_FIRST_MSG(task) ((lmac_msg_id_t)((task) << 10))
#define MSG_T(msg) ((lmac_task_id_t)((msg) >> 10))
#define MSG_I(msg) ((msg) & ((1<<10)-1))
#elif defined(CONFIG_STANDALONE_WIFI_BLE)
#define LMAC_FIRST_MSG(task) ((lmac_msg_id_t)((task) << 8))
#define MSG_T(msg) ((lmac_task_id_t)((msg) >> 8))
#define MSG_I(msg) ((msg) & ((1<<8)-1))
#else
#error not defined biuld mode!
#endif
/// Message structure.
struct lmac_msg
{
lmac_msg_id_t id; ///< Message id.
lmac_task_id_t dest_id; ///< Destination kernel identifier.
lmac_task_id_t src_id; ///< Source kernel identifier.
#ifdef CONFIG_ECRNX_ESWIN
uint8_t hostid[8];
#endif
u16 param_len; ///< Parameter embedded struct length.
u32 param[]; ///< Parameter embedded struct. Must be word-aligned.
};
/// List of messages related to the task.
enum mm_msg_tag
{
/// RESET Request.
MM_RESET_REQ = LMAC_FIRST_MSG(TASK_MM),
/// RESET Confirmation.
MM_RESET_CFM,
/// START Request.
MM_START_REQ,
/// START Confirmation.
MM_START_CFM,
/// Read Version Request.
MM_VERSION_REQ,
/// Read Version Confirmation.
MM_VERSION_CFM,
/// ADD INTERFACE Request.
MM_ADD_IF_REQ,
/// ADD INTERFACE Confirmation.
MM_ADD_IF_CFM,
/// REMOVE INTERFACE Request.
MM_REMOVE_IF_REQ,
/// REMOVE INTERFACE Confirmation.
MM_REMOVE_IF_CFM,
/// STA ADD Request.
MM_STA_ADD_REQ,
/// STA ADD Confirm.
MM_STA_ADD_CFM,
/// STA DEL Request.
MM_STA_DEL_REQ,
/// STA DEL Confirm.
MM_STA_DEL_CFM,
/// RX FILTER CONFIGURATION Request.
MM_SET_FILTER_REQ,
/// RX FILTER CONFIGURATION Confirmation.
MM_SET_FILTER_CFM,
/// CHANNEL CONFIGURATION Request.
MM_SET_CHANNEL_REQ,
/// CHANNEL CONFIGURATION Confirmation.
MM_SET_CHANNEL_CFM,
/// DTIM PERIOD CONFIGURATION Request.
MM_SET_DTIM_REQ,
/// DTIM PERIOD CONFIGURATION Confirmation.
MM_SET_DTIM_CFM,
/// BEACON INTERVAL CONFIGURATION Request.
MM_SET_BEACON_INT_REQ,
/// BEACON INTERVAL CONFIGURATION Confirmation.
MM_SET_BEACON_INT_CFM,
/// BASIC RATES CONFIGURATION Request.
MM_SET_BASIC_RATES_REQ,
/// BASIC RATES CONFIGURATION Confirmation.
MM_SET_BASIC_RATES_CFM,
/// BSSID CONFIGURATION Request.
MM_SET_BSSID_REQ,
/// BSSID CONFIGURATION Confirmation.
MM_SET_BSSID_CFM,
/// EDCA PARAMETERS CONFIGURATION Request.
MM_SET_EDCA_REQ,
/// EDCA PARAMETERS CONFIGURATION Confirmation.
MM_SET_EDCA_CFM,
/// ABGN MODE CONFIGURATION Request.
MM_SET_MODE_REQ,
/// ABGN MODE CONFIGURATION Confirmation.
MM_SET_MODE_CFM,
/// Request setting the VIF active state (i.e associated or AP started)
MM_SET_VIF_STATE_REQ,
/// Confirmation of the @ref MM_SET_VIF_STATE_REQ message.
MM_SET_VIF_STATE_CFM,
/// SLOT TIME PARAMETERS CONFIGURATION Request.
MM_SET_SLOTTIME_REQ,
/// SLOT TIME PARAMETERS CONFIGURATION Confirmation.
MM_SET_SLOTTIME_CFM,
/// Power Mode Change Request.
MM_SET_IDLE_REQ,
/// Power Mode Change Confirm.
MM_SET_IDLE_CFM,
/// KEY ADD Request.
MM_KEY_ADD_REQ,
/// KEY ADD Confirm.
MM_KEY_ADD_CFM,
/// KEY DEL Request.
MM_KEY_DEL_REQ,
/// KEY DEL Confirm.
MM_KEY_DEL_CFM,
/// Block Ack agreement info addition
MM_BA_ADD_REQ,
/// Block Ack agreement info addition confirmation
MM_BA_ADD_CFM,
/// Block Ack agreement info deletion
MM_BA_DEL_REQ,
/// Block Ack agreement info deletion confirmation
MM_BA_DEL_CFM,
/// Indication of the primary TBTT to the upper MAC. Upon the reception of this
// message the upper MAC has to push the beacon(s) to the beacon transmission queue.
MM_PRIMARY_TBTT_IND,
/// Indication of the secondary TBTT to the upper MAC. Upon the reception of this
// message the upper MAC has to push the beacon(s) to the beacon transmission queue.
MM_SECONDARY_TBTT_IND,
/// Request for changing the TX power
MM_SET_POWER_REQ,
/// Confirmation of the TX power change
MM_SET_POWER_CFM,
/// Request to the LMAC to trigger the embedded logic analyzer and forward the debug
/// dump.
MM_DBG_TRIGGER_REQ,
/// Set Power Save mode
MM_SET_PS_MODE_REQ,
/// Set Power Save mode confirmation
MM_SET_PS_MODE_CFM,
/// Request to add a channel context
MM_CHAN_CTXT_ADD_REQ,
/// Confirmation of the channel context addition
MM_CHAN_CTXT_ADD_CFM,
/// Request to delete a channel context
MM_CHAN_CTXT_DEL_REQ,
/// Confirmation of the channel context deletion
MM_CHAN_CTXT_DEL_CFM,
/// Request to link a channel context to a VIF
MM_CHAN_CTXT_LINK_REQ,
/// Confirmation of the channel context link
MM_CHAN_CTXT_LINK_CFM,
/// Request to unlink a channel context from a VIF
MM_CHAN_CTXT_UNLINK_REQ,
/// Confirmation of the channel context unlink
MM_CHAN_CTXT_UNLINK_CFM,
/// Request to update a channel context
MM_CHAN_CTXT_UPDATE_REQ,
/// Confirmation of the channel context update
MM_CHAN_CTXT_UPDATE_CFM,
/// Request to schedule a channel context
MM_CHAN_CTXT_SCHED_REQ,
/// Confirmation of the channel context scheduling
MM_CHAN_CTXT_SCHED_CFM,
/// Request to change the beacon template in LMAC
MM_BCN_CHANGE_REQ,
/// Confirmation of the beacon change
MM_BCN_CHANGE_CFM,
/// Request to update the TIM in the beacon (i.e to indicate traffic bufferized at AP)
MM_TIM_UPDATE_REQ,
/// Confirmation of the TIM update
MM_TIM_UPDATE_CFM,
/// Connection loss indication
MM_CONNECTION_LOSS_IND,
/// Channel context switch indication to the upper layers
MM_CHANNEL_SWITCH_IND,
/// Channel context pre-switch indication to the upper layers
MM_CHANNEL_PRE_SWITCH_IND,
/// Request to remain on channel or cancel remain on channel
MM_REMAIN_ON_CHANNEL_REQ,
/// Confirmation of the (cancel) remain on channel request
MM_REMAIN_ON_CHANNEL_CFM,
/// Remain on channel expired indication
MM_REMAIN_ON_CHANNEL_EXP_IND,
/// Indication of a PS state change of a peer device
MM_PS_CHANGE_IND,
/// Indication that some buffered traffic should be sent to the peer device
MM_TRAFFIC_REQ_IND,
/// Request to modify the STA Power-save mode options
MM_SET_PS_OPTIONS_REQ,
/// Confirmation of the PS options setting
MM_SET_PS_OPTIONS_CFM,
/// Indication of PS state change for a P2P VIF
MM_P2P_VIF_PS_CHANGE_IND,
/// Indication that CSA counter has been updated
MM_CSA_COUNTER_IND,
/// Channel occupation report indication
MM_CHANNEL_SURVEY_IND,
/// Message containing Beamformer Information
MM_BFMER_ENABLE_REQ,
/// Request to Start/Stop/Update NOA - GO Only
MM_SET_P2P_NOA_REQ,
/// Request to Start/Stop/Update Opportunistic PS - GO Only
MM_SET_P2P_OPPPS_REQ,
/// Start/Stop/Update NOA Confirmation
MM_SET_P2P_NOA_CFM,
/// Start/Stop/Update Opportunistic PS Confirmation
MM_SET_P2P_OPPPS_CFM,
/// P2P NoA Update Indication - GO Only
MM_P2P_NOA_UPD_IND,
/// Request to set RSSI threshold and RSSI hysteresis
MM_CFG_RSSI_REQ,
/// Indication that RSSI level is below or above the threshold
MM_RSSI_STATUS_IND,
/// Indication that CSA is done
MM_CSA_FINISH_IND,
/// Indication that CSA is in prorgess (resp. done) and traffic must be stopped (resp. restarted)
MM_CSA_TRAFFIC_IND,
/// Request to update the group information of a station
MM_MU_GROUP_UPDATE_REQ,
/// Confirmation of the @ref MM_MU_GROUP_UPDATE_REQ message
MM_MU_GROUP_UPDATE_CFM,
/// Request to initialize the antenna diversity algorithm
MM_ANT_DIV_INIT_REQ,
/// Request to stop the antenna diversity algorithm
MM_ANT_DIV_STOP_REQ,
/// Request to update the antenna switch status
MM_ANT_DIV_UPDATE_REQ,
/// Request to switch the antenna connected to path_0
MM_SWITCH_ANTENNA_REQ,
/// Indication that a packet loss has occurred
MM_PKTLOSS_IND,
/// MU EDCA PARAMETERS Configuration Request.
MM_SET_MU_EDCA_REQ,
/// MU EDCA PARAMETERS Configuration Confirmation.
MM_SET_MU_EDCA_CFM,
/// UORA PARAMETERS Configuration Request.
MM_SET_UORA_REQ,
/// UORA PARAMETERS Configuration Confirmation.
MM_SET_UORA_CFM,
/// TXOP RTS THRESHOLD Configuration Request.
MM_SET_TXOP_RTS_THRES_REQ,
/// TXOP RTS THRESHOLD Configuration Confirmation.
MM_SET_TXOP_RTS_THRES_CFM,
/// HE BSS Color Configuration Request.
MM_SET_BSS_COLOR_REQ,
/// HE BSS Color Configuration Confirmation.
MM_SET_BSS_COLOR_CFM,
/// Calibration Gain Delta Configuration Request.
MM_SET_GAIN_DELTA_REQ,
/// Calibration Gain Delta Configuration Confirmation.
MM_SET_GAIN_DELTA_CFM,
/// Calibration result get Request.
MM_GET_CAL_RESULT_REQ,
/// Calibration result get Confirmation.
MM_GET_CAL_RESULT_CFM,
/*
* Section of internal MM messages. No MM API messages should be defined below this point
*/
/// MAX number of messages
MM_MAX,
};
/// Interface types
enum
{
/// ESS STA interface
MM_STA,
/// IBSS STA interface
MM_IBSS,
/// AP interface
MM_AP,
// Mesh Point interface
MM_MESH_POINT,
// Monitor interface
MM_MONITOR,
};
///BA agreement types
enum
{
///BlockAck agreement for TX
BA_AGMT_TX,
///BlockAck agreement for RX
BA_AGMT_RX,
};
///BA agreement related status
enum
{
///Correct BA agreement establishment
BA_AGMT_ESTABLISHED,
///BA agreement already exists for STA+TID requested, cannot override it (should have been deleted first)
BA_AGMT_ALREADY_EXISTS,
///Correct BA agreement deletion
BA_AGMT_DELETED,
///BA agreement for the (STA, TID) doesn't exist so nothing to delete
BA_AGMT_DOESNT_EXIST,
};
/// Features supported by LMAC - Positions
enum mm_features
{
/// Beaconing
MM_FEAT_BCN_BIT = 0,
/// Autonomous Beacon Transmission
MM_FEAT_AUTOBCN_BIT,
/// Scan in LMAC
MM_FEAT_HWSCAN_BIT,
/// Connection Monitoring
MM_FEAT_CMON_BIT,
/// Multi Role
MM_FEAT_MROLE_BIT,
/// Radar Detection
MM_FEAT_RADAR_BIT,
/// Power Save
MM_FEAT_PS_BIT,
/// UAPSD
MM_FEAT_UAPSD_BIT,
/// DPSM
MM_FEAT_DPSM_BIT,
/// A-MPDU
MM_FEAT_AMPDU_BIT,
/// A-MSDU
MM_FEAT_AMSDU_BIT,
/// Channel Context
MM_FEAT_CHNL_CTXT_BIT,
/// Packet reordering
MM_FEAT_REORD_BIT,
/// P2P
MM_FEAT_P2P_BIT,
/// P2P Go
MM_FEAT_P2P_GO_BIT,
/// UMAC Present
MM_FEAT_UMAC_BIT,
/// VHT support
MM_FEAT_VHT_BIT,
/// Beamformee
MM_FEAT_BFMEE_BIT,
/// Beamformer
MM_FEAT_BFMER_BIT,
/// WAPI
MM_FEAT_WAPI_BIT,
/// MFP
MM_FEAT_MFP_BIT,
/// Mu-MIMO RX support
MM_FEAT_MU_MIMO_RX_BIT,
/// Mu-MIMO TX support
MM_FEAT_MU_MIMO_TX_BIT,
/// Wireless Mesh Networking
MM_FEAT_MESH_BIT,
/// TDLS support
MM_FEAT_TDLS_BIT,
/// Antenna Diversity support
MM_FEAT_ANT_DIV_BIT,
/// UF support
MM_FEAT_UF_BIT,
/// A-MSDU maximum size (bit0)
MM_AMSDU_MAX_SIZE_BIT0,
/// A-MSDU maximum size (bit1)
MM_AMSDU_MAX_SIZE_BIT1,
/// MON_DATA support
MM_FEAT_MON_DATA_BIT,
/// HE (802.11ax) support
MM_FEAT_HE_BIT,
MM_FEAT_TWT_BIT,
};
/// Maximum number of words in the configuration buffer
#define PHY_CFG_BUF_SIZE 16
/// Structure containing the parameters of the PHY configuration
struct phy_cfg_tag
{
/// Buffer containing the parameters specific for the PHY used
u32_l parameters[PHY_CFG_BUF_SIZE];
};
/// Structure containing the parameters of the Trident PHY configuration
struct phy_trd_cfg_tag
{
/// MDM type(nxm)(upper nibble) and MDM2RF path mapping(lower nibble)
u8_l path_mapping;
/// TX DC offset compensation
u32_l tx_dc_off_comp;
};
/// Structure containing the parameters of the Karst PHY configuration
struct phy_karst_cfg_tag
{
/// TX IQ mismatch compensation in 2.4GHz
u32_l tx_iq_comp_2_4G[2];
/// RX IQ mismatch compensation in 2.4GHz
u32_l rx_iq_comp_2_4G[2];
/// TX IQ mismatch compensation in 5GHz
u32_l tx_iq_comp_5G[2];
/// RX IQ mismatch compensation in 5GHz
u32_l rx_iq_comp_5G[2];
/// RF path used by default (0 or 1)
u8_l path_used;
};
struct phy_cataxia_cfg_tag
{
u8_l path_used;
};
/// Structure containing the parameters of the @ref MM_START_REQ message
struct mm_start_req
{
/// PHY configuration
struct phy_cfg_tag phy_cfg;
/// UAPSD timeout
u32_l uapsd_timeout;
/// Local LP clock accuracy (in ppm)
u16_l lp_clk_accuracy;
u16_l tx_timeout[AC_MAX];
};
/// Structure containing the parameters of the @ref MM_SET_CHANNEL_REQ message
struct mm_set_channel_req
{
/// Channel information
struct mac_chan_op chan;
/// Index of the RF for which the channel has to be set (0: operating (primary), 1: secondary
/// RF (used for additional radar detection). This parameter is reserved if no secondary RF
/// is available in the system
u8_l index;
};
/// Structure containing the parameters of the @ref MM_SET_CHANNEL_CFM message
struct mm_set_channel_cfm
{
/// Radio index to be used in policy table
u8_l radio_idx;
/// TX power configured (in dBm)
s8_l power;
};
/// Structure containing the parameters of the @ref MM_SET_DTIM_REQ message
struct mm_set_dtim_req
{
/// DTIM period
u8_l dtim_period;
};
/// Structure containing the parameters of the @ref MM_SET_POWER_REQ message
struct mm_set_power_req
{
/// Index of the interface for which the parameter is configured
u8_l inst_nbr;
/// TX power (in dBm)
s8_l power;
};
/// Structure containing the parameters of the @ref MM_SET_POWER_CFM message
struct mm_set_power_cfm
{
/// Radio index to be used in policy table
u8_l radio_idx;
/// TX power configured (in dBm)
s8_l power;
};
/// Structure containing the parameters of the @ref MM_SET_BEACON_INT_REQ message
struct mm_set_beacon_int_req
{
/// Beacon interval
u16_l beacon_int;
/// Index of the interface for which the parameter is configured
u8_l inst_nbr;
};
/// Structure containing the parameters of the @ref MM_SET_BASIC_RATES_REQ message
struct mm_set_basic_rates_req
{
/// Basic rate set (as expected by bssBasicRateSet field of Rates MAC HW register)
u32_l rates;
/// Index of the interface for which the parameter is configured
u8_l inst_nbr;
/// Band on which the interface will operate
u8_l band;
};
/// Structure containing the parameters of the @ref MM_SET_BSSID_REQ message
struct mm_set_bssid_req
{
/// BSSID to be configured in HW
struct mac_addr bssid;
/// Index of the interface for which the parameter is configured
u8_l inst_nbr;
};
/// Structure containing the parameters of the @ref MM_SET_FILTER_REQ message
struct mm_set_filter_req
{
/// RX filter to be put into rxCntrlReg HW register
u32_l filter;
};
/// Structure containing the parameters of the @ref MM_ADD_IF_REQ message.
struct mm_add_if_req
{
/// Type of the interface (AP, STA, ADHOC, ...)
u8_l type;
/// MAC ADDR of the interface to start
struct mac_addr addr;
/// P2P Interface
bool_l p2p;
};
/// Structure containing the parameters of the @ref MM_SET_EDCA_REQ message
struct mm_set_edca_req
{
/// EDCA parameters of the queue (as expected by edcaACxReg HW register)
u32_l ac_param;
/// Flag indicating if UAPSD can be used on this queue
bool_l uapsd;
/// HW queue for which the parameters are configured
u8_l hw_queue;
/// Index of the interface for which the parameters are configured
u8_l inst_nbr;
};
/// Structure containing the parameters of the @ref MM_SET_MU_EDCA_REQ message
struct mm_set_mu_edca_req
{
/// MU EDCA parameters of the different HE queues
u32_l param[AC_MAX];
};
/// Structure containing the parameters of the @ref MM_SET_UORA_REQ message
struct mm_set_uora_req
{
/// Minimum exponent of OFDMA Contention Window.
u8_l eocw_min;
/// Maximum exponent of OFDMA Contention Window.
u8_l eocw_max;
};
/// Structure containing the parameters of the @ref MM_SET_TXOP_RTS_THRES_REQ message
struct mm_set_txop_rts_thres_req
{
/// TXOP RTS threshold
u16_l txop_dur_rts_thres;
/// Index of the interface for which the parameter is configured
u8_l inst_nbr;
};
/// Structure containing the parameters of the @ref MM_SET_BSS_COLOR_REQ message
struct mm_set_bss_color_req
{
/// HE BSS color, formatted as per BSS_COLOR MAC HW register
u32_l bss_color;
};
struct mm_set_idle_req
{
u8_l hw_idle;
};
/// Structure containing the parameters of the @ref MM_SET_SLOTTIME_REQ message
struct mm_set_slottime_req
{
/// Slot time expressed in us
u8_l slottime;
};
/// Structure containing the parameters of the @ref MM_SET_MODE_REQ message
struct mm_set_mode_req
{
/// abgnMode field of macCntrl1Reg register
u8_l abgnmode;
};
/// Structure containing the parameters of the @ref MM_SET_VIF_STATE_REQ message
struct mm_set_vif_state_req
{
/// Association Id received from the AP (valid only if the VIF is of STA type)
u16_l aid;
/// Flag indicating if the VIF is active or not
bool_l active;
/// Interface index
u8_l inst_nbr;
};
/// Structure containing the parameters of the @ref MM_ADD_IF_CFM message.
struct mm_add_if_cfm
{
/// Status of operation (different from 0 if unsuccessful)
u8_l status;
/// Interface index assigned by the LMAC
u8_l inst_nbr;
};
/// Structure containing the parameters of the @ref MM_REMOVE_IF_REQ message.
struct mm_remove_if_req
{
/// Interface index assigned by the LMAC
u8_l inst_nbr;
};
/// Structure containing the parameters of the @ref MM_VERSION_CFM message.
struct mm_version_cfm
{
/// Version of the LMAC FW
u32_l version_lmac;
/// Version1 of the MAC HW (as encoded in version1Reg MAC HW register)
u32_l version_machw_1;
/// Version2 of the MAC HW (as encoded in version2Reg MAC HW register)
u32_l version_machw_2;
/// Version1 of the PHY (depends on actual PHY)
u32_l version_phy_1;
/// Version2 of the PHY (depends on actual PHY)
u32_l version_phy_2;
/// Supported Features
u32_l features;
/// Maximum number of supported stations
u16_l max_sta_nb;
/// Maximum number of supported virtual interfaces
u8_l max_vif_nb;
};
/// Structure containing the parameters of the @ref MM_STA_ADD_REQ message.
struct mm_sta_add_req
{
u32_l capa_flags;
/// Maximum A-MPDU size, in bytes, for HE frames
u32_l ampdu_size_max_he;
/// Maximum A-MPDU size, in bytes, for VHT frames
u32_l ampdu_size_max_vht;
/// PAID/GID
u32_l paid_gid;
/// Maximum A-MPDU size, in bytes, for HT frames
u16_l ampdu_size_max_ht;
/// MAC address of the station to be added
struct mac_addr mac_addr;
/// A-MPDU spacing, in us
u8_l ampdu_spacing_min;
/// Interface index
u8_l inst_nbr;
/// TDLS station
bool_l tdls_sta;
/// Indicate if the station is TDLS link initiator station
bool_l tdls_sta_initiator;
/// Indicate if the TDLS Channel Switch is allowed
bool_l tdls_chsw_allowed;
/// nonTransmitted BSSID index, set to the BSSID index in case the STA added is an AP
/// that is a nonTransmitted BSSID. Should be set to 0 otherwise
u8_l bssid_index;
/// Maximum BSSID indicator, valid if the STA added is an AP that is a nonTransmitted
/// BSSID
u8_l max_bssid_ind;
};
/// Structure containing the parameters of the @ref MM_STA_ADD_CFM message.
struct mm_sta_add_cfm
{
/// Status of the operation (different from 0 if unsuccessful)
u8_l status;
/// Index assigned by the LMAC to the newly added station
u8_l sta_idx;
/// MAC HW index of the newly added station
u8_l hw_sta_idx;
};
/// Structure containing the parameters of the @ref MM_STA_DEL_REQ message.
struct mm_sta_del_req
{
/// Index of the station to be deleted
u8_l sta_idx;
};
/// Structure containing the parameters of the @ref MM_STA_DEL_CFM message.
struct mm_sta_del_cfm
{
/// Status of the operation (different from 0 if unsuccessful)
u8_l status;
};
/// Structure containing the parameters of the SET_POWER_MODE REQ message.
struct mm_setpowermode_req
{
u8_l mode;
u8_l sta_idx;
};
/// Structure containing the parameters of the SET_POWER_MODE CFM message.
struct mm_setpowermode_cfm
{
u8_l status;
};
/// Structure containing the parameters of the @ref MM_KEY_ADD REQ message.
struct mm_key_add_req
{
/// Key index (valid only for default keys)
u8_l key_idx;
/// STA index (valid only for pairwise or mesh group keys)
u8_l sta_idx;
/// Key material
struct mac_sec_key key;
/// Cipher suite (WEP64, WEP128, TKIP, CCMP)
u8_l cipher_suite;
/// Index of the interface for which the key is set (valid only for default keys or mesh group keys)
u8_l inst_nbr;
/// A-MSDU SPP parameter
u8_l spp;
/// Indicate if provided key is a pairwise key or not
bool_l pairwise;
};
/// Structure containing the parameters of the @ref MM_KEY_ADD_CFM message.
struct mm_key_add_cfm
{
/// Status of the operation (different from 0 if unsuccessful)
u8_l status;
/// HW index of the key just added
u8_l hw_key_idx;
};
/// Structure containing the parameters of the @ref MM_KEY_DEL_REQ message.
struct mm_key_del_req
{
/// HW index of the key to be deleted
u8_l hw_key_idx;
};
/// Structure containing the parameters of the @ref MM_BA_ADD_REQ message.
struct mm_ba_add_req
{
///Type of agreement (0: TX, 1: RX)
u8_l type;
///Index of peer station with which the agreement is made
u8_l sta_idx;
///TID for which the agreement is made with peer station
u8_l tid;
///Buffer size - number of MPDUs that can be held in its buffer per TID
u8_l bufsz;
/// Start sequence number negotiated during BA setup - the one in first aggregated MPDU counts more
u16_l ssn;
};
/// Structure containing the parameters of the @ref MM_BA_ADD_CFM message.
struct mm_ba_add_cfm
{
///Index of peer station for which the agreement is being confirmed
u8_l sta_idx;
///TID for which the agreement is being confirmed
u8_l tid;
/// Status of ba establishment
u8_l status;
};
/// Structure containing the parameters of the @ref MM_BA_DEL_REQ message.
struct mm_ba_del_req
{
///Type of agreement (0: TX, 1: RX)
u8_l type;
///Index of peer station for which the agreement is being deleted
u8_l sta_idx;
///TID for which the agreement is being deleted
u8_l tid;
};
/// Structure containing the parameters of the @ref MM_BA_DEL_CFM message.
struct mm_ba_del_cfm
{
///Index of peer station for which the agreement deletion is being confirmed
u8_l sta_idx;
///TID for which the agreement deletion is being confirmed
u8_l tid;
/// Status of ba deletion
u8_l status;
};
/// Structure containing the parameters of the @ref MM_CHAN_CTXT_ADD_REQ message
struct mm_chan_ctxt_add_req
{
/// Operating channel
struct mac_chan_op chan;
};
/// Structure containing the parameters of the @ref MM_CHAN_CTXT_ADD_REQ message
struct mm_chan_ctxt_add_cfm
{
/// Status of the addition
u8_l status;
/// Index of the new channel context
u8_l index;
};
/// Structure containing the parameters of the @ref MM_CHAN_CTXT_DEL_REQ message
struct mm_chan_ctxt_del_req
{
/// Index of the new channel context to be deleted
u8_l index;
};
/// Structure containing the parameters of the @ref MM_CHAN_CTXT_LINK_REQ message
struct mm_chan_ctxt_link_req
{
/// VIF index
u8_l vif_index;
/// Channel context index
u8_l chan_index;
/// Indicate if this is a channel switch (unlink current ctx first if true)
u8_l chan_switch;
};
/// Structure containing the parameters of the @ref MM_CHAN_CTXT_UNLINK_REQ message
struct mm_chan_ctxt_unlink_req
{
/// VIF index
u8_l vif_index;
};
/// Structure containing the parameters of the @ref MM_CHAN_CTXT_UPDATE_REQ message
struct mm_chan_ctxt_update_req
{
/// Channel context index
u8_l chan_index;
/// New channel information
struct mac_chan_op chan;
};
/// Structure containing the parameters of the @ref MM_CHAN_CTXT_SCHED_REQ message
struct mm_chan_ctxt_sched_req
{
/// VIF index
u8_l vif_index;
/// Channel context index
u8_l chan_index;
/// Type of the scheduling request (0: normal scheduling, 1: derogatory
/// scheduling)
u8_l type;
};
/// Structure containing the parameters of the @ref MM_CHANNEL_SWITCH_IND message
struct mm_channel_switch_ind
{
/// Index of the channel context we will switch to
u8_l chan_index;
/// Indicate if the switch has been triggered by a Remain on channel request
bool_l roc;
/// VIF on which remain on channel operation has been started (if roc == 1)
u8_l vif_index;
/// Indicate if the switch has been triggered by a TDLS Remain on channel request
bool_l roc_tdls;
};
/// Structure containing the parameters of the @ref MM_CHANNEL_PRE_SWITCH_IND message
struct mm_channel_pre_switch_ind
{
/// Index of the channel context we will switch to
u8_l chan_index;
};
/// Structure containing the parameters of the @ref MM_CONNECTION_LOSS_IND message.
struct mm_connection_loss_ind
{
/// VIF instance number
u8_l inst_nbr;
};
/// Structure containing the parameters of the @ref MM_DBG_TRIGGER_REQ message.
struct mm_dbg_trigger_req
{
/// Error trace to be reported by the LMAC
char error[64];
};
/// Structure containing the parameters of the @ref MM_SET_PS_MODE_REQ message.
struct mm_set_ps_mode_req
{
/// Power Save is activated or deactivated
u8_l new_state;
};
/// Structure containing the parameters of the @ref MM_BCN_CHANGE_REQ message.
#define BCN_MAX_CSA_CPT 2
struct mm_bcn_change_req
{
/// Offset of the TIM IE in the beacon
u16_l tim_oft;
/// Length of the TIM IE
u8_l tim_len;
/// Index of the VIF for which the beacon is updated
u8_l inst_nbr;
/// Offset of CSA (channel switch announcement) counters (0 means no counter)
u8_l csa_oft[BCN_MAX_CSA_CPT];
/// Length of the beacon template
u16_l bcn_len;
/// Pointer, in host memory, to the new beacon template
ptr_addr bcn_ptr;
};
/// Structure containing the parameters of the @ref MM_TIM_UPDATE_REQ message.
struct mm_tim_update_req
{
/// Association ID of the STA the bit of which has to be updated (0 for BC/MC traffic)
u16_l aid;
/// Flag indicating the availability of data packets for the given STA
u8_l tx_avail;
/// Index of the VIF for which the TIM is updated
u8_l inst_nbr;
};
/// Structure containing the parameters of the @ref MM_REMAIN_ON_CHANNEL_REQ message.
struct mm_remain_on_channel_req
{
/// Operation Code
u8_l op_code;
/// VIF Index
u8_l vif_index;
/// Channel parameter
struct mac_chan_op chan;
/// Duration (in ms)
u32_l duration_ms;
};
/// Structure containing the parameters of the @ref MM_REMAIN_ON_CHANNEL_CFM message
struct mm_remain_on_channel_cfm
{
/// Operation Code
u8_l op_code;
/// Status of the operation
u8_l status;
/// Channel Context index
u8_l chan_ctxt_index;
};
/// Structure containing the parameters of the @ref MM_REMAIN_ON_CHANNEL_EXP_IND message
struct mm_remain_on_channel_exp_ind
{
/// VIF Index
u8_l vif_index;
/// Channel Context index
u8_l chan_ctxt_index;
};
/// Structure containing the parameters of the @ref MM_SET_UAPSD_TMR_REQ message.
struct mm_set_uapsd_tmr_req
{
/// action: Start or Stop the timer
u8_l action;
/// timeout value, in milliseconds
u32_l timeout;
};
/// Structure containing the parameters of the @ref MM_SET_UAPSD_TMR_CFM message.
struct mm_set_uapsd_tmr_cfm
{
/// Status of the operation (different from 0 if unsuccessful)
u8_l status;
};
/// Structure containing the parameters of the @ref MM_PS_CHANGE_IND message
struct mm_ps_change_ind
{
/// Index of the peer device that is switching its PS state
u8_l sta_idx;
/// New PS state of the peer device (0: active, 1: sleeping)
u8_l ps_state;
};
/// Structure containing the parameters of the @ref MM_P2P_VIF_PS_CHANGE_IND message
struct mm_p2p_vif_ps_change_ind
{
/// Index of the P2P VIF that is switching its PS state
u8_l vif_index;
/// New PS state of the P2P VIF interface (0: active, 1: sleeping)
u8_l ps_state;
};
/// Structure containing the parameters of the @ref MM_TRAFFIC_REQ_IND message
struct mm_traffic_req_ind
{
/// Index of the peer device that needs traffic
u8_l sta_idx;
/// Number of packets that need to be sent (if 0, all buffered traffic shall be sent and
/// if set to @ref PS_SP_INTERRUPTED, it means that current service period has been interrupted)
u8_l pkt_cnt;
/// Flag indicating if the traffic request concerns U-APSD queues or not
bool_l uapsd;
};
/// Structure containing the parameters of the @ref MM_SET_PS_OPTIONS_REQ message.
struct mm_set_ps_options_req
{
/// VIF Index
u8_l vif_index;
/// Listen interval (0 if wake up shall be based on DTIM period)
u16_l listen_interval;
/// Flag indicating if we shall listen the BC/MC traffic or not
bool_l dont_listen_bc_mc;
};
/// Structure containing the parameters of the @ref MM_CSA_COUNTER_IND message
struct mm_csa_counter_ind
{
/// Index of the VIF
u8_l vif_index;
/// Updated CSA counter value
u8_l csa_count;
};
/// Structure containing the parameters of the @ref MM_CHANNEL_SURVEY_IND message
struct mm_channel_survey_ind
{
/// Frequency of the channel
u16_l freq;
/// Noise in dbm
s8_l noise_dbm;
/// Amount of time spent of the channel (in ms)
u32_l chan_time_ms;
/// Amount of time the primary channel was sensed busy
u32_l chan_time_busy_ms;
};
/// Structure containing the parameters of the @ref MM_BFMER_ENABLE_REQ message.
struct mm_bfmer_enable_req
{
/**
* Address of the beamforming report space allocated in host memory
* (Valid only if vht_su_bfmee is true)
*/
u32_l host_bfr_addr;
/**
* Size of the beamforming report space allocated in host memory. This space should
* be twice the maximum size of the expected beamforming reports as the FW will
* divide it in two in order to be able to upload a new report while another one is
* used in transmission
*/
u16_l host_bfr_size;
/// AID
u16_l aid;
/// Station Index
u8_l sta_idx;
/// Maximum number of spatial streams the station can receive
u8_l rx_nss;
/**
* Indicate if peer STA is MU Beamformee (VHT) capable
* (Valid only if vht_su_bfmee is true)
*/
bool_l vht_mu_bfmee;
};
/// Structure containing the parameters of the @ref MM_SET_P2P_NOA_REQ message.
struct mm_set_p2p_noa_req
{
/// VIF Index
u8_l vif_index;
/// Allocated NOA Instance Number - Valid only if count = 0
u8_l noa_inst_nb;
/// Count
u8_l count;
/// Indicate if NoA can be paused for traffic reason
bool_l dyn_noa;
/// Duration (in us)
u32_l duration_us;
/// Interval (in us)
u32_l interval_us;
/// Start Time offset from next TBTT (in us)
u32_l start_offset;
};
/// Structure containing the parameters of the @ref MM_SET_P2P_OPPPS_REQ message.
struct mm_set_p2p_oppps_req
{
/// VIF Index
u8_l vif_index;
/// CTWindow
u8_l ctwindow;
};
/// Structure containing the parameters of the @ref MM_SET_P2P_NOA_CFM message.
struct mm_set_p2p_noa_cfm
{
/// Request status
u8_l status;
};
/// Structure containing the parameters of the @ref MM_SET_P2P_OPPPS_CFM message.
struct mm_set_p2p_oppps_cfm
{
/// Request status
u8_l status;
};
/// Structure containing the parameters of the @ref MM_P2P_NOA_UPD_IND message.
struct mm_p2p_noa_upd_ind
{
/// VIF Index
u8_l vif_index;
/// NOA Instance Number
u8_l noa_inst_nb;
/// NoA Type
u8_l noa_type;
/// Count
u8_l count;
/// Duration (in us)
u32_l duration_us;
/// Interval (in us)
u32_l interval_us;
/// Start Time
u32_l start_time;
};
/// Structure containing the parameters of the @ref MM_CFG_RSSI_REQ message
struct mm_cfg_rssi_req
{
/// Index of the VIF
u8_l vif_index;
/// RSSI threshold
s8_l rssi_thold;
/// RSSI hysteresis
u8_l rssi_hyst;
};
/// Structure containing the parameters of the @ref MM_RSSI_STATUS_IND message
struct mm_rssi_status_ind
{
/// Index of the VIF
u8_l vif_index;
/// Status of the RSSI
bool_l rssi_status;
/// Current RSSI
s8_l rssi;
};
/// Structure containing the parameters of the @ref MM_PKTLOSS_IND message
struct mm_pktloss_ind
{
/// Index of the VIF
u8_l vif_index;
/// Address of the STA for which there is a packet loss
struct mac_addr mac_addr;
/// Number of packets lost
u32 num_packets;
};
/// Structure containing the parameters of the @ref MM_CSA_FINISH_IND message
struct mm_csa_finish_ind
{
/// Index of the VIF
u8_l vif_index;
/// Status of the operation
u8_l status;
/// New channel ctx index
u8_l chan_idx;
};
/// Structure containing the parameters of the @ref MM_CSA_TRAFFIC_IND message
struct mm_csa_traffic_ind
{
/// Index of the VIF
u8_l vif_index;
/// Is tx traffic enable or disable
bool_l enable;
};
/// Structure containing the parameters of the @ref MM_MU_GROUP_UPDATE_REQ message.
/// Size allocated for the structure depends of the number of group
struct mm_mu_group_update_req
{
/// Station index
u8_l sta_idx;
/// Number of groups the STA belongs to
u8_l group_cnt;
/// Group information
struct
{
/// Group Id
u8_l group_id;
/// User position
u8_l user_pos;
} groups[0];
};
///////////////////////////////////////////////////////////////////////////////
/////////// For Scan messages
///////////////////////////////////////////////////////////////////////////////
enum scan_msg_tag
{
/// Scanning start Request.
SCAN_START_REQ = LMAC_FIRST_MSG(TASK_SCAN),
/// Scanning start Confirmation.
SCAN_START_CFM,
/// End of scanning indication.
SCAN_DONE_IND,
/// Cancel scan request
SCAN_CANCEL_REQ,
/// Cancel scan confirmation
SCAN_CANCEL_CFM,
/// MAX number of messages
SCAN_MAX,
};
/// Maximum number of SSIDs in a scan request
#define SCAN_SSID_MAX 4
/// Maximum number of channels in a scan request
#define SCAN_CHANNEL_MAX (MAC_DOMAINCHANNEL_24G_MAX + MAC_DOMAINCHANNEL_5G_MAX)
/// Maximum length of the ProbeReq IEs (SoftMAC mode)
#define SCAN_MAX_IE_LEN 300
/// Maximum number of PHY bands supported
#define SCAN_BAND_MAX 2
/// Structure containing the parameters of the @ref SCAN_START_REQ message
struct scan_start_req
{
/// List of channel to be scanned
struct mac_chan_def chan[SCAN_CHANNEL_MAX];
/// List of SSIDs to be scanned
struct mac_ssid ssid[SCAN_SSID_MAX];
/// BSSID to be scanned
struct mac_addr bssid;
/// Index of the VIF that is scanning
u8_l vif_idx;
/// Number of channels to scan
u8_l chan_cnt;
/// Number of SSIDs to scan for
u8_l ssid_cnt;
/// no CCK - For P2P frames not being sent at CCK rate in 2GHz band.
bool no_cck;
u32_l duration;
/// Length of the additional IEs
u16_l add_ie_len;
/// Pointer (in host memory) to the additional IEs that need to be added to the ProbeReq
/// (following the SSID element)
ptr_addr add_ies;
};
/// Structure containing the parameters of the @ref SCAN_START_CFM message
struct scan_start_cfm
{
/// Status of the request
u8_l status;
};
/// Structure containing the parameters of the @ref SCAN_CANCEL_REQ message
struct scan_cancel_req
{
};
/// Structure containing the parameters of the @ref SCAN_START_CFM message
struct scan_cancel_cfm
{
/// Status of the request
u8_l status;
};
///////////////////////////////////////////////////////////////////////////////
/////////// For Scanu messages
///////////////////////////////////////////////////////////////////////////////
/// Messages that are logically related to the task.
enum
{
/// Scan request from host.
SCANU_START_REQ = LMAC_FIRST_MSG(TASK_SCANU),
/// Scanning start Confirmation.
SCANU_START_CFM,
/// Join request
SCANU_JOIN_REQ,
/// Join confirmation.
SCANU_JOIN_CFM,
/// Scan result indication.
SCANU_RESULT_IND,
/// Fast scan request from any other module.
SCANU_FAST_REQ,
/// Confirmation of fast scan request.
SCANU_FAST_CFM,
///Scan cancel from host.
SCANU_CANCEL_REQ,
///Scan cancel confirmation
SCANU_CANCEL_CFM,
/// MAX number of messages
SCANU_MAX,
};
/// Maximum length of the additional ProbeReq IEs (FullMAC mode)
#define SCANU_MAX_IE_LEN 200
/// Structure containing the parameters of the @ref SCANU_START_REQ message
struct scanu_start_req
{
/// List of channel to be scanned
struct mac_chan_def chan[SCAN_CHANNEL_MAX];
/// List of SSIDs to be scanned
struct mac_ssid ssid[SCAN_SSID_MAX];
/// BSSID to be scanned (or WILDCARD BSSID if no BSSID is searched in particular)
struct mac_addr bssid;
/// Index of the VIF that is scanning
u8_l vif_idx;
/// Number of channels to scan
u8_l chan_cnt;
/// Number of SSIDs to scan for
u8_l ssid_cnt;
/// no CCK - For P2P frames not being sent at CCK rate in 2GHz band.
bool no_cck;
u32_l duration;
/// Length of the additional IEs
u16_l add_ie_len;
/// Address (in host memory) of the additional IEs that need to be added to the ProbeReq
/// (following the SSID element)
ptr_addr add_ies;
};
/// Structure containing the parameters of the @ref SCANU_START_CFM message
struct scanu_start_cfm
{
/// Index of the VIF that was scanning
u8_l vif_idx;
/// Status of the request
u8_l status;
/// Number of scan results available
u8_l result_cnt;
};
/// Parameters of the @SCANU_RESULT_IND message
struct scanu_result_ind
{
/// Length of the frame
u16_l length;
/// Frame control field of the frame.
u16_l framectrl;
/// Center frequency on which we received the packet
u16_l center_freq;
/// PHY band
u8_l band;
/// Index of the station that sent the frame. 0xFF if unknown.
u8_l sta_idx;
/// Index of the VIF that received the frame. 0xFF if unknown.
u8_l inst_nbr;
/// RSSI of the received frame.
s8_l rssi;
/// Frame payload.
u32_l payload[];
};
/// Structure containing the parameters of the message.
struct scanu_fast_req
{
/// The SSID to scan in the channel.
struct mac_ssid ssid;
/// BSSID.
struct mac_addr bssid;
/// Probe delay.
u16_l probe_delay;
/// Minimum channel time.
u16_l minch_time;
/// Maximum channel time.
u16_l maxch_time;
/// The channel number to scan.
u16_l ch_nbr;
};
/// Structure containing the parameters of the @ref SCANU_CANCEL_REQ message
struct scanu_cancel_req
{
/// index of the scan element
uint8_t vif_idx;
};
/// Structure containing the parameters of the @ref SCANU_CANCEL_CFM and
/// @ref SCANU_CANCEL_CFM messages
struct scanu_cancel_cfm
{
/// Index of the VIF that was scanning
uint8_t vif_idx;
/// Status of the request
uint8_t status;
};
///////////////////////////////////////////////////////////////////////////////
/////////// For ME messages
///////////////////////////////////////////////////////////////////////////////
/// Messages that are logically related to the task.
enum
{
/// Configuration request from host.
ME_CONFIG_REQ = LMAC_FIRST_MSG(TASK_ME),
/// Configuration confirmation.
ME_CONFIG_CFM,
/// Configuration request from host.
ME_CHAN_CONFIG_REQ,
/// Configuration confirmation.
ME_CHAN_CONFIG_CFM,
/// Set control port state for a station.
ME_SET_CONTROL_PORT_REQ,
/// Control port setting confirmation.
ME_SET_CONTROL_PORT_CFM,
/// TKIP MIC failure indication.
ME_TKIP_MIC_FAILURE_IND,
/// Add a station to the FW (AP mode)
ME_STA_ADD_REQ,
/// Confirmation of the STA addition
ME_STA_ADD_CFM,
/// Delete a station from the FW (AP mode)
ME_STA_DEL_REQ,
/// Confirmation of the STA deletion
ME_STA_DEL_CFM,
/// Indication of a TX RA/TID queue credit update
ME_TX_CREDITS_UPDATE_IND,
/// Request indicating to the FW that there is traffic buffered on host
ME_TRAFFIC_IND_REQ,
/// Confirmation that the @ref ME_TRAFFIC_IND_REQ has been executed
ME_TRAFFIC_IND_CFM,
/// Request of RC statistics to a station
ME_RC_STATS_REQ,
/// RC statistics confirmation
ME_RC_STATS_CFM,
/// RC fixed rate request
ME_RC_SET_RATE_REQ,
/// Configure monitor interface
ME_CONFIG_MONITOR_REQ,
/// Configure monitor interface response
ME_CONFIG_MONITOR_CFM,
/// Setting power Save mode request from host
ME_SET_PS_MODE_REQ,
/// Set power Save mode confirmation
ME_SET_PS_MODE_CFM,
/// MAX number of messages
ME_MAX,
};
/// Structure containing the parameters of the @ref ME_START_REQ message
struct me_config_req
{
/// HT Capabilities
struct mac_htcapability ht_cap;
/// VHT Capabilities
struct mac_vhtcapability vht_cap;
/// HE capabilities
struct mac_hecapability he_cap;
/// Lifetime of packets sent under a BlockAck agreement (expressed in TUs)
u16_l tx_lft;
/// Maximum supported BW
u8_l phy_bw_max;
/// Boolean indicating if HT is supported or not
bool_l ht_supp;
/// Boolean indicating if VHT is supported or not
bool_l vht_supp;
/// Boolean indicating if HE is supported or not
bool_l he_supp;
/// Boolean indicating if HE OFDMA UL is enabled or not
bool_l he_ul_on;
/// Boolean indicating if PS mode shall be enabled or not
bool_l ps_on;
/// Boolean indicating if Antenna Diversity shall be enabled or not
bool_l ant_div_on;
/// Boolean indicating if Dynamic PS mode shall be used or not
bool_l dpsm;
unsigned char sleep_flag;
};
/// Structure containing the parameters of the @ref ME_CHAN_CONFIG_REQ message
struct me_chan_config_req
{
/// List of 2.4GHz supported channels
struct mac_chan_def chan2G4[MAC_DOMAINCHANNEL_24G_MAX];
/// List of 5GHz supported channels
struct mac_chan_def chan5G[MAC_DOMAINCHANNEL_5G_MAX];
/// Number of 2.4GHz channels in the list
u8_l chan2G4_cnt;
/// Number of 5GHz channels in the list
u8_l chan5G_cnt;
};
/// Structure containing the parameters of the @ref ME_SET_CONTROL_PORT_REQ message
struct me_set_control_port_req
{
/// Index of the station for which the control port is opened
u8_l sta_idx;
/// Control port state
bool_l control_port_open;
};
/// Structure containing the parameters of the @ref ME_TKIP_MIC_FAILURE_IND message
struct me_tkip_mic_failure_ind
{
/// Address of the sending STA
struct mac_addr addr;
/// TSC value
u64_l tsc;
/// Boolean indicating if the packet was a group or unicast one (true if group)
bool_l ga;
/// Key Id
u8_l keyid;
/// VIF index
u8_l vif_idx;
};
/// Structure containing the parameters of the @ref ME_STA_ADD_REQ message
struct me_sta_add_req
{
/// MAC address of the station to be added
struct mac_addr mac_addr;
/// Supported legacy rates
struct mac_rateset rate_set;
/// HT Capabilities
struct mac_htcapability ht_cap;
/// VHT Capabilities
struct mac_vhtcapability vht_cap;
/// HE capabilities
struct mac_hecapability he_cap;
/// Flags giving additional information about the station (@ref mac_sta_flags)
u32_l flags;
/// Association ID of the station
u16_l aid;
/// Bit field indicating which queues have U-APSD enabled
u8_l uapsd_queues;
/// Maximum size, in frames, of a APSD service period
u8_l max_sp_len;
/// Operation mode information (valid if bit @ref STA_OPMOD_NOTIF is
/// set in the flags)
u8_l opmode;
/// Index of the VIF the station is attached to
u8_l vif_idx;
/// Whether the the station is TDLS station
bool_l tdls_sta;
/// Indicate if the station is TDLS link initiator station
bool_l tdls_sta_initiator;
/// Indicate if the TDLS Channel Switch is allowed
bool_l tdls_chsw_allowed;
};
/// Structure containing the parameters of the @ref ME_STA_ADD_CFM message
struct me_sta_add_cfm
{
/// Station index
u8_l sta_idx;
/// Status of the station addition
u8_l status;
/// PM state of the station
u8_l pm_state;
};
/// Structure containing the parameters of the @ref ME_STA_DEL_REQ message.
struct me_sta_del_req
{
/// Index of the station to be deleted
u8_l sta_idx;
/// Whether the the station is TDLS station
bool_l tdls_sta;
};
/// Structure containing the parameters of the @ref ME_TX_CREDITS_UPDATE_IND message.
struct me_tx_credits_update_ind
{
/// Index of the station for which the credits are updated
u8_l sta_idx;
/// TID for which the credits are updated
u8_l tid;
/// Offset to be applied on the credit count
s8_l credits;
};
/// Structure containing the parameters of the @ref ME_TRAFFIC_IND_REQ message.
struct me_traffic_ind_req
{
/// Index of the station for which UAPSD traffic is available on host
u8_l sta_idx;
/// Flag indicating the availability of UAPSD packets for the given STA
u8_l tx_avail;
/// Indicate if traffic is on uapsd-enabled queues
bool_l uapsd;
};
/// Structure containing the parameters of the @ref ME_RC_STATS_REQ message.
struct me_rc_stats_req
{
/// Index of the station for which the RC statistics are requested
u8_l sta_idx;
};
/// Structure containing the rate control statistics
struct rc_rate_stats
{
/// Number of attempts (per sampling interval)
u16_l attempts;
/// Number of success (per sampling interval)
u16_l success;
/// Estimated probability of success (EWMA)
u16_l probability;
/// Rate configuration of the sample
u16_l rate_config;
union
{
struct {
/// Number of times the sample has been skipped (per sampling interval)
u8_l sample_skipped;
/// Whether the old probability is available
bool_l old_prob_available;
/// Whether the rate can be used in the retry chain
bool_l rate_allowed;
};
struct {
/// RU size and UL length received in the latest HE trigger frame
u16_l ru_and_length;
};
};
};
/// Number of RC samples
#define RC_MAX_N_SAMPLE 10
/// Index of the HE statistics element in the table
#define RC_HE_STATS_IDX RC_MAX_N_SAMPLE
/// Structure containing the parameters of the @ref ME_RC_STATS_CFM message.
struct me_rc_stats_cfm
{
/// Index of the station for which the RC statistics are provided
u8_l sta_idx;
/// Number of samples used in the RC algorithm
u16_l no_samples;
/// Number of MPDUs transmitted (per sampling interval)
u16_l ampdu_len;
/// Number of AMPDUs transmitted (per sampling interval)
u16_l ampdu_packets;
/// Average number of MPDUs in each AMPDU frame (EWMA)
u32_l avg_ampdu_len;
// Current step 0 of the retry chain
u8_l sw_retry_step;
/// Trial transmission period
u8_l sample_wait;
/// Retry chain steps
u16_l retry_step_idx[4];
/// RC statistics - Max number of RC samples, plus one for the HE TB statistics
struct rc_rate_stats rate_stats[RC_MAX_N_SAMPLE + 1];
/// Throughput - Max number of RC samples, plus one for the HE TB statistics
u32_l tp[RC_MAX_N_SAMPLE + 1];
};
/// Structure containing the parameters of the @ref ME_RC_SET_RATE_REQ message.
struct me_rc_set_rate_req
{
/// Index of the station for which the fixed rate is set
u8_l sta_idx;
/// Rate configuration to be set
u16_l fixed_rate_cfg;
};
/// Structure containing the parameters of the @ref ME_CONFIG_MONITOR_REQ message.
struct me_config_monitor_req
{
/// Channel to configure
struct mac_chan_op chan;
/// Is channel data valid
bool_l chan_set;
/// Enable report of unsupported HT frames
bool_l uf;
};
/// Structure containing the parameters of the @ref ME_CONFIG_MONITOR_CFM message.
struct me_config_monitor_cfm
{
/// Channel context index
u8_l chan_index;
/// Channel parameters
struct mac_chan_op chan;
};
/// Structure containing the parameters of the @ref ME_SET_PS_MODE_REQ message.
struct me_set_ps_mode_req
{
/// Power Save is activated or deactivated
u8_l ps_state;
};
///////////////////////////////////////////////////////////////////////////////
/////////// For TWT messages
///////////////////////////////////////////////////////////////////////////////
/// Message API of the TWT task
enum
{
/// Request Individual TWT Establishment
TWT_SETUP_REQ = LMAC_FIRST_MSG(TASK_TWT),
/// Confirm Individual TWT Establishment
TWT_SETUP_CFM,
/// Indicate TWT Setup response from peer
TWT_SETUP_IND,
/// Request to destroy a TWT Establishment or all of them
TWT_TEARDOWN_REQ,
/// Confirm to destroy a TWT Establishment or all of them
TWT_TEARDOWN_CFM,
/// MAX number of messages
TWT_MAX,
};
///TWT Group assignment
struct twt_grp_assignment_tag
{
/// TWT Group assignment byte array
u8_l grp_assignment[9];
};
///TWT Flow configuration
struct twt_conf_tag
{
/// Flow Type (0: Announced, 1: Unannounced)
u8_l flow_type;
/// Wake interval Exponent
u8_l wake_int_exp;
/// Unit of measurement of TWT Minimum Wake Duration (0:256us, 1:tu)
bool_l wake_dur_unit;
/// Nominal Minimum TWT Wake Duration
u8_l min_twt_wake_dur;
/// TWT Wake Interval Mantissa
u16_l wake_int_mantissa;
};
///TWT Setup request message structure
struct twt_setup_req
{
/// VIF Index
u8_l vif_idx;
/// Setup request type
u8_l setup_type;
/// TWT Setup configuration
struct twt_conf_tag conf;
};
///TWT Setup confirmation message structure
struct twt_setup_cfm
{
/// Status (0 = TWT Setup Request has been transmitted to peer)
u8_l status;
};
/// TWT Setup command
enum twt_setup_types
{
MAC_TWT_SETUP_REQ = 0,
MAC_TWT_SETUP_SUGGEST,
MAC_TWT_SETUP_DEMAND,
MAC_TWT_SETUP_GROUPING,
MAC_TWT_SETUP_ACCEPT,
MAC_TWT_SETUP_ALTERNATE,
MAC_TWT_SETUP_DICTATE,
MAC_TWT_SETUP_REJECT,
};
///TWT Setup indication message structure
struct twt_setup_ind
{
/// Response type
u8_l resp_type;
/// STA Index
u8_l sta_idx;
/// TWT Setup configuration
struct twt_conf_tag conf;
};
/// TWT Teardown request message structure
struct twt_teardown_req
{
/// TWT Negotiation type
u8_l neg_type;
/// All TWT
u8_l all_twt;
/// TWT flow ID
u8_l id;
/// VIF Index
u8_l vif_idx;
};
///TWT Teardown confirmation message structure
struct twt_teardown_cfm
{
/// Status (0 = TWT Teardown Request has been transmitted to peer)
u8_l status;
};
///////////////////////////////////////////////////////////////////////////////
/////////// For SM messages
///////////////////////////////////////////////////////////////////////////////
/// Message API of the SM task
enum sm_msg_tag
{
/// Request to connect to an AP
SM_CONNECT_REQ = LMAC_FIRST_MSG(TASK_SM),
/// Confirmation of connection
SM_CONNECT_CFM,
/// Indicates that the SM associated to the AP
SM_CONNECT_IND,
/// Request to disconnect
SM_DISCONNECT_REQ,
/// Confirmation of disconnection
SM_DISCONNECT_CFM,
/// Indicates that the SM disassociated the AP
SM_DISCONNECT_IND,
/// Request to start external authentication
SM_EXTERNAL_AUTH_REQUIRED_IND,
/// Response to external authentication request
SM_EXTERNAL_AUTH_REQUIRED_RSP,
SM_FT_AUTH_IND,
SM_FT_AUTH_RSP,
/// MAX number of messages
SM_MAX,
};
/// Structure containing the parameters of @ref SM_CONNECT_REQ message.
struct sm_connect_req
{
/// SSID to connect to
struct mac_ssid ssid;
/// BSSID to connect to (if not specified, set this field to WILDCARD BSSID)
struct mac_addr bssid;
/// Channel on which we have to connect (if not specified, set -1 in the chan.freq field)
struct mac_chan_def chan;
/// Connection flags (see @ref mac_connection_flags)
u32_l flags;
/// Control port Ethertype (in network endianness)
u16_l ctrl_port_ethertype;
/// Length of the association request IEs
/// Listen interval to be used for this connection
u16_l listen_interval;
/// Flag indicating if the we have to wait for the BC/MC traffic after beacon or not
bool_l dont_wait_bcmc;
/// Authentication type
u8_l auth_type;
/// UAPSD queues (bit0: VO, bit1: VI, bit2: BE, bit3: BK)
u8_l uapsd_queues;
/// VIF index
u8_l vif_idx;
u16_l ie_len;
/// Buffer containing the additional information elements to be put in the
/// association request
u32_l ie_buf[0];
};
/// Structure containing the parameters of the @ref SM_CONNECT_CFM message.
struct sm_connect_cfm
{
/// Status. If 0, it means that the connection procedure will be performed and that
/// a subsequent @ref SM_CONNECT_IND message will be forwarded once the procedure is
/// completed
u8_l status;
};
#define SM_ASSOC_IE_LEN 800
/// Structure containing the parameters of the @ref SM_CONNECT_IND message.
struct sm_connect_ind
{
/// Status code of the connection procedure
u16_l status_code;
/// BSSID
struct mac_addr bssid;
/// Flag indicating if the indication refers to an internal roaming or from a host request
bool_l roamed;
/// Index of the VIF for which the association process is complete
u8_l vif_idx;
/// Index of the STA entry allocated for the AP
u8_l ap_idx;
/// Index of the LMAC channel context the connection is attached to
u8_l ch_idx;
/// Flag indicating if the AP is supporting QoS
bool_l qos;
/// ACM bits set in the AP WMM parameter element
u8_l acm;
/// Length of the AssocReq IEs
u16_l assoc_req_ie_len;
/// Length of the AssocRsp IEs
u16_l assoc_rsp_ie_len;
/// IE buffer
/// Association Id allocated by the AP for this connection
u16_l aid;
/// AP operating channel
struct mac_chan_op chan;
/// EDCA parameters
u32_l ac_param[AC_MAX];
u32_l assoc_ie_buf[0];
};
/// Structure containing the parameters of the @ref SM_DISCONNECT_REQ message.
struct sm_disconnect_req
{
/// Reason of the deauthentication.
u16_l reason_code;
/// Index of the VIF.
u8_l vif_idx;
};
/// Structure containing the parameters of SM_ASSOCIATION_IND the message
struct sm_association_ind
{
// MAC ADDR of the STA
struct mac_addr me_mac_addr;
};
/// Structure containing the parameters of the @ref SM_DISCONNECT_IND message.
struct sm_disconnect_ind
{
/// Reason of the disconnection.
u16_l reason_code;
/// Index of the VIF.
u8_l vif_idx;
/// FT over DS is ongoing
bool_l reassoc;
};
/// Structure containing the parameters of the @ref SM_EXTERNAL_AUTH_REQUIRED_IND
struct sm_external_auth_required_ind
{
/// Index of the VIF.
u8_l vif_idx;
/// SSID to authenticate to
struct mac_ssid ssid;
/// BSSID to authenticate to
struct mac_addr bssid;
/// AKM suite of the respective authentication
u32_l akm;
};
/// Structure containing the parameters of the @ref SM_EXTERNAL_AUTH_REQUIRED_RSP
struct sm_external_auth_required_rsp
{
/// Index of the VIF.
u8_l vif_idx;
/// Authentication status
u16_l status;
};
/// Structure containing the parameters of the @ref SM_FT_AUTH_IND
struct sm_ft_auth_ind
{
/// Index of the VIF.
u8_l vif_idx;
/// Size of the FT elements
u16_l ft_ie_len;
/// Fast Transition elements in the authentication
u32_l ft_ie_buf[0];
};
///////////////////////////////////////////////////////////////////////////////
/////////// For APM messages
///////////////////////////////////////////////////////////////////////////////
/// Message API of the APM task
enum apm_msg_tag
{
/// Request to start the AP.
APM_START_REQ = LMAC_FIRST_MSG(TASK_APM),
/// Confirmation of the AP start.
APM_START_CFM,
/// Request to stop the AP.
APM_STOP_REQ,
/// Confirmation of the AP stop.
APM_STOP_CFM,
/// Request to start CAC
APM_START_CAC_REQ,
/// Confirmation of the CAC start
APM_START_CAC_CFM,
/// Request to stop CAC
APM_STOP_CAC_REQ,
/// Confirmation of the CAC stop
APM_STOP_CAC_CFM,
APM_PROBE_CLIENT_REQ,
APM_PROBE_CLIENT_CFM,
APM_PROBE_CLIENT_IND,
/// MAX number of messages
APM_MAX,
};
/// Structure containing the parameters of the @ref APM_START_REQ message.
struct apm_start_req
{
/// Basic rate set
struct mac_rateset basic_rates;
/// Operating channel on which we have to enable the AP
struct mac_chan_op chan;
/// Offset of the TIM IE in the beacon
u16_l tim_oft;
/// Beacon interval
u16_l bcn_int;
/// Flags (@ref mac_connection_flags)
u32_l flags;
/// Control port Ethertype
u16_l ctrl_port_ethertype;
/// Length of the TIM IE
u8_l tim_len;
/// Index of the VIF for which the AP is started
u8_l vif_idx;
/// Length of the beacon template
u16_l bcn_len;
/// Address, in host memory, to the beacon template
ptr_addr bcn_addr;
};
/// Structure containing the parameters of the @ref APM_START_CFM message.
struct apm_start_cfm
{
/// Status of the AP starting procedure
u8_l status;
/// Index of the VIF for which the AP is started
u8_l vif_idx;
/// Index of the channel context attached to the VIF
u8_l ch_idx;
/// Index of the STA used for BC/MC traffic
u8_l bcmc_idx;
};
/// Structure containing the parameters of the @ref APM_STOP_REQ message.
struct apm_stop_req
{
/// Index of the VIF for which the AP has to be stopped
u8_l vif_idx;
};
/// Structure containing the parameters of the @ref APM_START_CAC_REQ message.
struct apm_start_cac_req
{
/// Channel configuration
struct mac_chan_op chan;
/// Index of the VIF for which the CAC is started
u8_l vif_idx;
};
/// Structure containing the parameters of the @ref APM_START_CAC_CFM message.
struct apm_start_cac_cfm
{
/// Status of the CAC starting procedure
u8_l status;
/// Index of the channel context attached to the VIF for CAC
u8_l ch_idx;
};
/// Structure containing the parameters of the @ref APM_STOP_CAC_REQ message.
struct apm_stop_cac_req
{
/// Index of the VIF for which the CAC has to be stopped
u8_l vif_idx;
};
/// Structure containing the parameters of the @ref APM_PROBE_CLIENT_REQ message.
struct apm_probe_client_req
{
/// Index of the VIF
u8_l vif_idx;
/// Index of the Station to probe
u8_l sta_idx;
};
/// Structure containing the parameters of the @ref APM_PROBE_CLIENT_CFM message.
struct apm_probe_client_cfm
{
/// Status of the probe request
u8_l status;
/// Unique ID to distinguish @ref APM_PROBE_CLIENT_IND message
u32_l probe_id;
};
/// Structure containing the parameters of the @ref APM_PROBE_CLIENT_CFM message.
struct apm_probe_client_ind
{
/// Index of the VIF
u8_l vif_idx;
/// Index of the Station to probe
u8_l sta_idx;
/// Whether client is still present or not
bool_l client_present;
/// Unique ID as returned in @ref APM_PROBE_CLIENT_CFM
u32_l probe_id;
};
///////////////////////////////////////////////////////////////////////////////
/////////// For MESH messages
///////////////////////////////////////////////////////////////////////////////
/// Maximum length of the Mesh ID
#define MESH_MESHID_MAX_LEN (32)
/// Message API of the MESH task
enum mesh_msg_tag
{
/// Request to start the MP
MESH_START_REQ = LMAC_FIRST_MSG(TASK_MESH),
/// Confirmation of the MP start.
MESH_START_CFM,
/// Request to stop the MP.
MESH_STOP_REQ,
/// Confirmation of the MP stop.
MESH_STOP_CFM,
// Request to update the MP
MESH_UPDATE_REQ,
/// Confirmation of the MP update
MESH_UPDATE_CFM,
/// Request information about a given link
MESH_PEER_INFO_REQ,
/// Response to the MESH_PEER_INFO_REQ message
MESH_PEER_INFO_CFM,
/// Request automatic establishment of a path with a given mesh STA
MESH_PATH_CREATE_REQ,
/// Confirmation to the MESH_PATH_CREATE_REQ message
MESH_PATH_CREATE_CFM,
/// Request a path update (delete path, modify next hop mesh STA)
MESH_PATH_UPDATE_REQ,
/// Confirmation to the MESH_PATH_UPDATE_REQ message
MESH_PATH_UPDATE_CFM,
/// Indication from Host that the indicated Mesh Interface is a proxy for an external STA
MESH_PROXY_ADD_REQ,
/// Indicate that a connection has been established or lost
MESH_PEER_UPDATE_IND,
/// Notification that a connection has been established or lost (when MPM handled by userspace)
MESH_PEER_UPDATE_NTF = MESH_PEER_UPDATE_IND,
/// Indicate that a path is now active or inactive
MESH_PATH_UPDATE_IND,
/// Indicate that proxy information have been updated
MESH_PROXY_UPDATE_IND,
/// MAX number of messages
MESH_MAX,
};
/// Structure containing the parameters of the @ref MESH_START_REQ message.
struct mesh_start_req
{
/// Basic rate set
struct mac_rateset basic_rates;
/// Operating channel on which we have to enable the AP
struct mac_chan_op chan;
/// DTIM Period
u8_l dtim_period;
/// Beacon Interval
u16_l bcn_int;
/// Index of the VIF for which the MP is started
u8_l vif_index;
/// Length of the Mesh ID
u8_l mesh_id_len;
/// Mesh ID
u8_l mesh_id[MESH_MESHID_MAX_LEN];
/// Address of the IEs to download
u32_l ie_addr;
/// Length of the provided IEs
u8_l ie_len;
/// Indicate if Mesh Peering Management (MPM) protocol is handled in userspace
bool_l user_mpm;
/// Indicate if Mesh Point is using authentication
bool_l is_auth;
/// Indicate which authentication method is used
u8_l auth_id;
};
/// Structure containing the parameters of the @ref MESH_START_CFM message.
struct mesh_start_cfm
{
/// Status of the MP starting procedure
u8_l status;
/// Index of the VIF for which the MP is started
u8_l vif_idx;
/// Index of the channel context attached to the VIF
u8_l ch_idx;
/// Index of the STA used for BC/MC traffic
u8_l bcmc_idx;
};
/// Structure containing the parameters of the @ref MESH_STOP_REQ message.
struct mesh_stop_req
{
/// Index of the VIF for which the MP has to be stopped
u8_l vif_idx;
};
/// Structure containing the parameters of the @ref MESH_STOP_CFM message.
struct mesh_stop_cfm
{
/// Index of the VIF for which the MP has to be stopped
u8_l vif_idx;
/// Status
u8_l status;
};
/// Bit fields for mesh_update_req message's flags value
enum mesh_update_flags_bit
{
/// Root Mode
MESH_UPDATE_FLAGS_ROOT_MODE_BIT = 0,
/// Gate Mode
MESH_UPDATE_FLAGS_GATE_MODE_BIT,
/// Mesh Forwarding
MESH_UPDATE_FLAGS_MESH_FWD_BIT,
/// Local Power Save Mode
MESH_UPDATE_FLAGS_LOCAL_PSM_BIT,
};
/// Structure containing the parameters of the @ref MESH_UPDATE_REQ message.
struct mesh_update_req
{
/// Flags, indicate fields which have been updated
u8_l flags;
/// VIF Index
u8_l vif_idx;
/// Root Mode
u8_l root_mode;
/// Gate Announcement
bool_l gate_announ;
/// Mesh Forwarding
bool_l mesh_forward;
/// Local PS Mode
u8_l local_ps_mode;
};
/// Structure containing the parameters of the @ref MESH_UPDATE_CFM message.
struct mesh_update_cfm
{
/// Status
u8_l status;
};
/// Structure containing the parameters of the @ref MESH_PEER_INFO_REQ message.
struct mesh_peer_info_req
{
///Index of the station allocated for the peer
u8_l sta_idx;
};
/// Structure containing the parameters of the @ref MESH_PEER_INFO_CFM message.
struct mesh_peer_info_cfm
{
/// Response status
u8_l status;
/// Index of the station allocated for the peer
u8_l sta_idx;
/// Local Link ID
u16_l local_link_id;
/// Peer Link ID
u16_l peer_link_id;
/// Local PS Mode
u8_l local_ps_mode;
/// Peer PS Mode
u8_l peer_ps_mode;
/// Non-peer PS Mode
u8_l non_peer_ps_mode;
/// Link State
u8_l link_state;
u32_l last_bcn_age;
};
/// Structure containing the parameters of the @ref MESH_PATH_CREATE_REQ message.
struct mesh_path_create_req
{
/// Index of the interface on which path has to be created
u8_l vif_idx;
/// Indicate if originator MAC Address is provided
bool_l has_orig_addr;
/// Path Target MAC Address
struct mac_addr tgt_mac_addr;
/// Originator MAC Address
struct mac_addr orig_mac_addr;
};
/// Structure containing the parameters of the @ref MESH_PATH_CREATE_CFM message.
struct mesh_path_create_cfm
{
/// Confirmation status
u8_l status;
/// VIF Index
u8_l vif_idx;
};
/// Structure containing the parameters of the @ref MESH_PATH_UPDATE_REQ message.
struct mesh_path_update_req
{
/// Indicate if path must be deleted
bool_l delete;
/// Index of the interface on which path has to be created
u8_l vif_idx;
/// Path Target MAC Address
struct mac_addr tgt_mac_addr;
/// Next Hop MAC Address
struct mac_addr nhop_mac_addr;
};
/// Structure containing the parameters of the @ref MESH_PATH_UPDATE_CFM message.
struct mesh_path_update_cfm
{
/// Confirmation status
u8_l status;
/// VIF Index
u8_l vif_idx;
};
/// Structure containing the parameters of the @ref MESH_PROXY_ADD_REQ message.
struct mesh_proxy_add_req
{
/// VIF Index
u8_l vif_idx;
/// MAC Address of the External STA
struct mac_addr ext_sta_addr;
};
/// Structure containing the parameters of the @ref MESH_PROXY_UPDATE_IND
struct mesh_proxy_update_ind
{
/// Indicate if proxy information has been added or deleted
bool_l delete;
/// Indicate if we are a proxy for the external STA
bool_l local;
/// VIF Index
u8_l vif_idx;
/// MAC Address of the External STA
struct mac_addr ext_sta_addr;
/// MAC Address of the proxy (only valid if local is false)
struct mac_addr proxy_mac_addr;
};
/// Structure containing the parameters of the @ref MESH_PEER_UPDATE_IND message.
struct mesh_peer_update_ind
{
/// Indicate if connection has been established or lost
bool_l estab;
/// VIF Index
u8_l vif_idx;
/// STA Index
u8_l sta_idx;
/// Peer MAC Address
struct mac_addr peer_addr;
};
/// Structure containing the parameters of the @ref MESH_PEER_UPDATE_NTF message.
struct mesh_peer_update_ntf
{
/// VIF Index
u8_l vif_idx;
/// STA Index
u8_l sta_idx;
/// Mesh Link State
u8_l state;
};
/// Structure containing the parameters of the @ref MESH_PATH_UPDATE_IND message.
struct mesh_path_update_ind
{
/// Indicate if path is deleted or not
bool_l delete;
/// Indicate if path is towards an external STA (not part of MBSS)
bool_l ext_sta;
/// VIF Index
u8_l vif_idx;
/// Path Index
u8_l path_idx;
/// Target MAC Address
struct mac_addr tgt_mac_addr;
/// External STA MAC Address (only if ext_sta is true)
struct mac_addr ext_sta_mac_addr;
/// Next Hop STA Index
u8_l nhop_sta_idx;
};
///////////////////////////////////////////////////////////////////////////////
/////////// For Debug messages
///////////////////////////////////////////////////////////////////////////////
/// Messages related to Debug Task
enum dbg_msg_tag
{
/// Memory read request
DBG_MEM_READ_REQ = LMAC_FIRST_MSG(TASK_DBG),
/// Memory read confirm
DBG_MEM_READ_CFM,
/// Memory write request
DBG_MEM_WRITE_REQ,
/// Memory write confirm
DBG_MEM_WRITE_CFM,
/// Module filter request
DBG_SET_MOD_FILTER_REQ,
/// Module filter confirm
DBG_SET_MOD_FILTER_CFM,
/// Severity filter request
DBG_SET_SEV_FILTER_REQ,
/// Severity filter confirm
DBG_SET_SEV_FILTER_CFM,
/// LMAC/MAC HW fatal error indication
DBG_ERROR_IND,
/// Request to get system statistics
DBG_GET_SYS_STAT_REQ,
/// COnfirmation of system statistics
DBG_GET_SYS_STAT_CFM,
/// Max number of Debug messages
DBG_MAX,
};
/// Structure containing the parameters of the @ref DBG_MEM_READ_REQ message.
struct dbg_mem_read_req
{
u32_l memaddr;
};
/// Structure containing the parameters of the @ref DBG_MEM_READ_CFM message.
struct dbg_mem_read_cfm
{
u32_l memaddr;
u32_l memdata;
};
/// Structure containing the parameters of the @ref DBG_MEM_WRITE_REQ message.
struct dbg_mem_write_req
{
u32_l memaddr;
u32_l memdata;
};
/// Structure containing the parameters of the @ref DBG_MEM_WRITE_CFM message.
struct dbg_mem_write_cfm
{
u32_l memaddr;
u32_l memdata;
};
/// Structure containing the parameters of the @ref DBG_SET_MOD_FILTER_REQ message.
struct dbg_set_mod_filter_req
{
/// Bit field indicating for each module if the traces are enabled or not
u32_l mod_filter;
};
/// Structure containing the parameters of the @ref DBG_SEV_MOD_FILTER_REQ message.
struct dbg_set_sev_filter_req
{
/// Bit field indicating the severity threshold for the traces
u32_l sev_filter;
};
/// Structure containing the parameters of the @ref DBG_GET_SYS_STAT_CFM message.
struct dbg_get_sys_stat_cfm
{
/// Time spent in CPU sleep since last reset of the system statistics
u32_l cpu_sleep_time;
/// Time spent in DOZE since last reset of the system statistics
u32_l doze_time;
/// Total time spent since last reset of the system statistics
u32_l stats_time;
};
///////////////////////////////////////////////////////////////////////////////
/////////// For TDLS messages
///////////////////////////////////////////////////////////////////////////////
/// List of messages related to the task.
enum tdls_msg_tag
{
/// TDLS channel Switch Request.
TDLS_CHAN_SWITCH_REQ = LMAC_FIRST_MSG(TASK_TDLS),
/// TDLS channel switch confirmation.
TDLS_CHAN_SWITCH_CFM,
/// TDLS channel switch indication.
TDLS_CHAN_SWITCH_IND,
/// TDLS channel switch to base channel indication.
TDLS_CHAN_SWITCH_BASE_IND,
/// TDLS cancel channel switch request.
TDLS_CANCEL_CHAN_SWITCH_REQ,
/// TDLS cancel channel switch confirmation.
TDLS_CANCEL_CHAN_SWITCH_CFM,
/// TDLS peer power save indication.
TDLS_PEER_PS_IND,
/// TDLS peer traffic indication request.
TDLS_PEER_TRAFFIC_IND_REQ,
/// TDLS peer traffic indication confirmation.
TDLS_PEER_TRAFFIC_IND_CFM,
/// MAX number of messages
TDLS_MAX
};
/// Structure containing the parameters of the @ref TDLS_CHAN_SWITCH_REQ message
struct tdls_chan_switch_req
{
/// Index of the VIF
u8_l vif_index;
/// STA Index
u8_l sta_idx;
/// MAC address of the TDLS station
struct mac_addr peer_mac_addr;
/// Flag to indicate if the TDLS peer is the TDLS link initiator
bool_l initiator;
/// Channel configuration
struct mac_chan_op chan;
/// Operating class
u8_l op_class;
};
/// Structure containing the parameters of the @ref TDLS_CANCEL_CHAN_SWITCH_REQ message
struct tdls_cancel_chan_switch_req
{
/// Index of the VIF
u8_l vif_index;
/// STA Index
u8_l sta_idx;
/// MAC address of the TDLS station
struct mac_addr peer_mac_addr;
};
/// Structure containing the parameters of the @ref TDLS_CHAN_SWITCH_CFM message
struct tdls_chan_switch_cfm
{
/// Status of the operation
u8_l status;
};
/// Structure containing the parameters of the @ref TDLS_CANCEL_CHAN_SWITCH_CFM message
struct tdls_cancel_chan_switch_cfm
{
/// Status of the operation
u8_l status;
};
/// Structure containing the parameters of the @ref TDLS_CHAN_SWITCH_IND message
struct tdls_chan_switch_ind
{
/// VIF Index
u8_l vif_index;
/// Channel Context Index
u8_l chan_ctxt_index;
/// Status of the operation
u8_l status;
};
/// Structure containing the parameters of the @ref TDLS_CHAN_SWITCH_BASE_IND message
struct tdls_chan_switch_base_ind
{
/// VIF Index
u8_l vif_index;
/// Channel Context index
u8_l chan_ctxt_index;
};
/// Structure containing the parameters of the @ref TDLS_PEER_PS_IND message
struct tdls_peer_ps_ind
{
/// VIF Index
u8_l vif_index;
/// STA Index
u8_l sta_idx;
/// MAC ADDR of the TDLS STA
struct mac_addr peer_mac_addr;
/// Flag to indicate if the TDLS peer is going to sleep
bool ps_on;
};
/// Structure containing the parameters of the @ref TDLS_PEER_TRAFFIC_IND_REQ message
struct tdls_peer_traffic_ind_req
{
/// VIF Index
u8_l vif_index;
/// STA Index
u8_l sta_idx;
// MAC ADDR of the TDLS STA
struct mac_addr peer_mac_addr;
/// Dialog token
u8_l dialog_token;
/// TID of the latest MPDU transmitted over the TDLS direct link to the TDLS STA
u8_l last_tid;
/// Sequence number of the latest MPDU transmitted over the TDLS direct link
/// to the TDLS STA
u16_l last_sn;
};
/// Structure containing the parameters of the @ref TDLS_PEER_TRAFFIC_IND_CFM message
struct tdls_peer_traffic_ind_cfm
{
/// Status of the operation
u8_l status;
};
#if defined(CONFIG_ECRNX_P2P)
enum p2p_listen_msg_tag
{
/// Scan request from host.
P2P_LISTEN_START_REQ = LMAC_FIRST_MSG(TASK_P2P_LISTEN),
P2P_LISTEN_START_CFM,
P2P_CANCEL_LISTEN_REQ,
P2P_CANCEL_LISTEN_CFM,
P2P_LISTEN_MAX,
};
struct p2p_listen_start_req
{
/// Index of the interface on which path has to be created
u8_l vif_idx;
};
struct p2p_listen_start_cfm
{
/// p2p listen task status
bool_l status;
/// VIF Index
u8_l vif_idx;
};
struct p2p_cancel_listen_req
{
/// Index of the interface on which path has to be created
u8_l vif_idx;
};
struct p2p_cancel_listen_cfm
{
/// p2p listen task status
bool_l status;
/// VIF Index
u8_l vif_idx;
};
#endif
#endif // LMAC_MSG_H_
|