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 #ifndef __iwl_fw_api_rx_h__
66 #define __iwl_fw_api_rx_h__
67
68
69
70 #define IWL_RX_INFO_PHY_CNT 8
71 #define IWL_RX_INFO_ENERGY_ANT_ABC_IDX 1
72 #define IWL_RX_INFO_ENERGY_ANT_A_MSK 0x000000ff
73 #define IWL_RX_INFO_ENERGY_ANT_B_MSK 0x0000ff00
74 #define IWL_RX_INFO_ENERGY_ANT_C_MSK 0x00ff0000
75 #define IWL_RX_INFO_ENERGY_ANT_A_POS 0
76 #define IWL_RX_INFO_ENERGY_ANT_B_POS 8
77 #define IWL_RX_INFO_ENERGY_ANT_C_POS 16
78
79 enum iwl_mac_context_info {
80 MAC_CONTEXT_INFO_NONE,
81 MAC_CONTEXT_INFO_GSCAN,
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 struct iwl_rx_phy_info {
109 u8 non_cfg_phy_cnt;
110 u8 cfg_phy_cnt;
111 u8 stat_id;
112 u8 reserved1;
113 __le32 system_timestamp;
114 __le64 timestamp;
115 __le32 beacon_time_stamp;
116 __le16 phy_flags;
117 __le16 channel;
118 __le32 non_cfg_phy[IWL_RX_INFO_PHY_CNT];
119 __le32 rate_n_flags;
120 __le32 byte_count;
121 u8 mac_active_msk;
122 u8 mac_context_info;
123 __le16 frame_time;
124 } __packed;
125
126
127
128
129
130
131
132
133
134
135
136 enum iwl_csum_rx_assist_info {
137 CSUM_RXA_RESERVED_MASK = 0x000f,
138 CSUM_RXA_MICSIZE_MASK = 0x00f0,
139 CSUM_RXA_HEADERLEN_MASK = 0x1f00,
140 CSUM_RXA_PADD = BIT(13),
141 CSUM_RXA_AMSDU = BIT(14),
142 CSUM_RXA_ENA = BIT(15)
143 };
144
145
146
147
148
149
150 struct iwl_rx_mpdu_res_start {
151 __le16 byte_count;
152 __le16 assist;
153 } __packed;
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168 enum iwl_rx_phy_flags {
169 RX_RES_PHY_FLAGS_BAND_24 = BIT(0),
170 RX_RES_PHY_FLAGS_MOD_CCK = BIT(1),
171 RX_RES_PHY_FLAGS_SHORT_PREAMBLE = BIT(2),
172 RX_RES_PHY_FLAGS_NARROW_BAND = BIT(3),
173 RX_RES_PHY_FLAGS_ANTENNA = (0x7 << 4),
174 RX_RES_PHY_FLAGS_ANTENNA_POS = 4,
175 RX_RES_PHY_FLAGS_AGG = BIT(7),
176 RX_RES_PHY_FLAGS_OFDM_HT = BIT(8),
177 RX_RES_PHY_FLAGS_OFDM_GF = BIT(9),
178 RX_RES_PHY_FLAGS_OFDM_VHT = BIT(10),
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 enum iwl_mvm_rx_status {
214 RX_MPDU_RES_STATUS_CRC_OK = BIT(0),
215 RX_MPDU_RES_STATUS_OVERRUN_OK = BIT(1),
216 RX_MPDU_RES_STATUS_SRC_STA_FOUND = BIT(2),
217 RX_MPDU_RES_STATUS_KEY_VALID = BIT(3),
218 RX_MPDU_RES_STATUS_KEY_PARAM_OK = BIT(4),
219 RX_MPDU_RES_STATUS_ICV_OK = BIT(5),
220 RX_MPDU_RES_STATUS_MIC_OK = BIT(6),
221 RX_MPDU_RES_STATUS_TTAK_OK = BIT(7),
222 RX_MPDU_RES_STATUS_MNG_FRAME_REPLAY_ERR = BIT(7),
223 RX_MPDU_RES_STATUS_SEC_NO_ENC = (0 << 8),
224 RX_MPDU_RES_STATUS_SEC_WEP_ENC = (1 << 8),
225 RX_MPDU_RES_STATUS_SEC_CCM_ENC = (2 << 8),
226 RX_MPDU_RES_STATUS_SEC_TKIP_ENC = (3 << 8),
227 RX_MPDU_RES_STATUS_SEC_EXT_ENC = (4 << 8),
228 RX_MPDU_RES_STATUS_SEC_CCM_CMAC_ENC = (6 << 8),
229 RX_MPDU_RES_STATUS_SEC_ENC_ERR = (7 << 8),
230 RX_MPDU_RES_STATUS_SEC_ENC_MSK = (7 << 8),
231 RX_MPDU_RES_STATUS_DEC_DONE = BIT(11),
232 RX_MPDU_RES_STATUS_EXT_IV_BIT_CMP = BIT(13),
233 RX_MPDU_RES_STATUS_KEY_ID_CMP_BIT = BIT(14),
234 RX_MPDU_RES_STATUS_ROBUST_MNG_FRAME = BIT(15),
235 RX_MPDU_RES_STATUS_CSUM_DONE = BIT(16),
236 RX_MPDU_RES_STATUS_CSUM_OK = BIT(17),
237 RX_MDPU_RES_STATUS_STA_ID_SHIFT = 24,
238 RX_MPDU_RES_STATUS_STA_ID_MSK = 0x1f << RX_MDPU_RES_STATUS_STA_ID_SHIFT,
239 };
240
241
242 enum iwl_rx_mpdu_mac_flags1 {
243 IWL_RX_MDPU_MFLG1_ADDRTYPE_MASK = 0x03,
244 IWL_RX_MPDU_MFLG1_MIC_CRC_LEN_MASK = 0xf0,
245
246
247
248 IWL_RX_MPDU_MFLG1_MIC_CRC_LEN_SHIFT = 3,
249 };
250
251 enum iwl_rx_mpdu_mac_flags2 {
252
253 IWL_RX_MPDU_MFLG2_HDR_LEN_MASK = 0x1f,
254 IWL_RX_MPDU_MFLG2_PAD = 0x20,
255 IWL_RX_MPDU_MFLG2_AMSDU = 0x40,
256 };
257
258 enum iwl_rx_mpdu_amsdu_info {
259 IWL_RX_MPDU_AMSDU_SUBFRAME_IDX_MASK = 0x7f,
260 IWL_RX_MPDU_AMSDU_LAST_SUBFRAME = 0x80,
261 };
262
263 enum iwl_rx_l3_proto_values {
264 IWL_RX_L3_TYPE_NONE,
265 IWL_RX_L3_TYPE_IPV4,
266 IWL_RX_L3_TYPE_IPV4_FRAG,
267 IWL_RX_L3_TYPE_IPV6_FRAG,
268 IWL_RX_L3_TYPE_IPV6,
269 IWL_RX_L3_TYPE_IPV6_IN_IPV4,
270 IWL_RX_L3_TYPE_ARP,
271 IWL_RX_L3_TYPE_EAPOL,
272 };
273
274 #define IWL_RX_L3_PROTO_POS 4
275
276 enum iwl_rx_l3l4_flags {
277 IWL_RX_L3L4_IP_HDR_CSUM_OK = BIT(0),
278 IWL_RX_L3L4_TCP_UDP_CSUM_OK = BIT(1),
279 IWL_RX_L3L4_TCP_FIN_SYN_RST_PSH = BIT(2),
280 IWL_RX_L3L4_TCP_ACK = BIT(3),
281 IWL_RX_L3L4_L3_PROTO_MASK = 0xf << IWL_RX_L3_PROTO_POS,
282 IWL_RX_L3L4_L4_PROTO_MASK = 0xf << 8,
283 IWL_RX_L3L4_RSS_HASH_MASK = 0xf << 12,
284 };
285
286 enum iwl_rx_mpdu_status {
287 IWL_RX_MPDU_STATUS_CRC_OK = BIT(0),
288 IWL_RX_MPDU_STATUS_OVERRUN_OK = BIT(1),
289 IWL_RX_MPDU_STATUS_SRC_STA_FOUND = BIT(2),
290 IWL_RX_MPDU_STATUS_KEY_VALID = BIT(3),
291 IWL_RX_MPDU_STATUS_KEY_PARAM_OK = BIT(4),
292 IWL_RX_MPDU_STATUS_ICV_OK = BIT(5),
293 IWL_RX_MPDU_STATUS_MIC_OK = BIT(6),
294 IWL_RX_MPDU_RES_STATUS_TTAK_OK = BIT(7),
295 IWL_RX_MPDU_STATUS_SEC_MASK = 0x7 << 8,
296 IWL_RX_MPDU_STATUS_SEC_UNKNOWN = IWL_RX_MPDU_STATUS_SEC_MASK,
297 IWL_RX_MPDU_STATUS_SEC_NONE = 0x0 << 8,
298 IWL_RX_MPDU_STATUS_SEC_WEP = 0x1 << 8,
299 IWL_RX_MPDU_STATUS_SEC_CCM = 0x2 << 8,
300 IWL_RX_MPDU_STATUS_SEC_TKIP = 0x3 << 8,
301 IWL_RX_MPDU_STATUS_SEC_EXT_ENC = 0x4 << 8,
302 IWL_RX_MPDU_STATUS_SEC_GCM = 0x5 << 8,
303 IWL_RX_MPDU_STATUS_DECRYPTED = BIT(11),
304 IWL_RX_MPDU_STATUS_WEP_MATCH = BIT(12),
305 IWL_RX_MPDU_STATUS_EXT_IV_MATCH = BIT(13),
306 IWL_RX_MPDU_STATUS_KEY_ID_MATCH = BIT(14),
307 IWL_RX_MPDU_STATUS_ROBUST_MNG_FRAME = BIT(15),
308 };
309
310 enum iwl_rx_mpdu_hash_filter {
311 IWL_RX_MPDU_HF_A1_HASH_MASK = 0x3f,
312 IWL_RX_MPDU_HF_FILTER_STATUS_MASK = 0xc0,
313 };
314
315 enum iwl_rx_mpdu_sta_id_flags {
316 IWL_RX_MPDU_SIF_STA_ID_MASK = 0x1f,
317 IWL_RX_MPDU_SIF_RRF_ABORT = 0x20,
318 IWL_RX_MPDU_SIF_FILTER_STATUS_MASK = 0xc0,
319 };
320
321 #define IWL_RX_REORDER_DATA_INVALID_BAID 0x7f
322
323 enum iwl_rx_mpdu_reorder_data {
324 IWL_RX_MPDU_REORDER_NSSN_MASK = 0x00000fff,
325 IWL_RX_MPDU_REORDER_SN_MASK = 0x00fff000,
326 IWL_RX_MPDU_REORDER_SN_SHIFT = 12,
327 IWL_RX_MPDU_REORDER_BAID_MASK = 0x7f000000,
328 IWL_RX_MPDU_REORDER_BAID_SHIFT = 24,
329 IWL_RX_MPDU_REORDER_BA_OLD_SN = 0x80000000,
330 };
331
332 enum iwl_rx_mpdu_phy_info {
333 IWL_RX_MPDU_PHY_AMPDU = BIT(5),
334 IWL_RX_MPDU_PHY_AMPDU_TOGGLE = BIT(6),
335 IWL_RX_MPDU_PHY_SHORT_PREAMBLE = BIT(7),
336
337 IWL_RX_MPDU_PHY_NCCK_ADDTL_NTFY = BIT(7),
338 IWL_RX_MPDU_PHY_TSF_OVERLOAD = BIT(8),
339 };
340
341 enum iwl_rx_mpdu_mac_info {
342 IWL_RX_MPDU_PHY_MAC_INDEX_MASK = 0x0f,
343 IWL_RX_MPDU_PHY_PHY_INDEX_MASK = 0xf0,
344 };
345
346
347 enum iwl_rx_phy_data0 {
348
349 IWL_RX_PHY_DATA0_HE_BEAM_CHNG = 0x00000001,
350 IWL_RX_PHY_DATA0_HE_UPLINK = 0x00000002,
351 IWL_RX_PHY_DATA0_HE_BSS_COLOR_MASK = 0x000000fc,
352 IWL_RX_PHY_DATA0_HE_SPATIAL_REUSE_MASK = 0x00000f00,
353
354 IWL_RX_PHY_DATA0_HE_TXOP_DUR_MASK = 0x000fe000,
355 IWL_RX_PHY_DATA0_HE_LDPC_EXT_SYM = 0x00100000,
356 IWL_RX_PHY_DATA0_HE_PRE_FEC_PAD_MASK = 0x00600000,
357 IWL_RX_PHY_DATA0_HE_PE_DISAMBIG = 0x00800000,
358 IWL_RX_PHY_DATA0_HE_DOPPLER = 0x01000000,
359
360 IWL_RX_PHY_DATA0_HE_DELIM_EOF = 0x80000000,
361 };
362
363 enum iwl_rx_phy_info_type {
364 IWL_RX_PHY_INFO_TYPE_NONE = 0,
365 IWL_RX_PHY_INFO_TYPE_CCK = 1,
366 IWL_RX_PHY_INFO_TYPE_OFDM_LGCY = 2,
367 IWL_RX_PHY_INFO_TYPE_HT = 3,
368 IWL_RX_PHY_INFO_TYPE_VHT_SU = 4,
369 IWL_RX_PHY_INFO_TYPE_VHT_MU = 5,
370 IWL_RX_PHY_INFO_TYPE_HE_SU = 6,
371 IWL_RX_PHY_INFO_TYPE_HE_MU = 7,
372 IWL_RX_PHY_INFO_TYPE_HE_TB = 8,
373 IWL_RX_PHY_INFO_TYPE_HE_MU_EXT = 9,
374 IWL_RX_PHY_INFO_TYPE_HE_TB_EXT = 10,
375 };
376
377
378 enum iwl_rx_phy_data1 {
379
380
381
382
383 IWL_RX_PHY_DATA1_INFO_TYPE_MASK = 0xf0000000,
384
385
386 IWL_RX_PHY_DATA1_LSIG_LEN_MASK = 0x0fff0000,
387
388
389 IWL_RX_PHY_DATA1_HE_MU_SIGB_COMPRESSION = 0x00000001,
390 IWL_RX_PHY_DATA1_HE_MU_SIBG_SYM_OR_USER_NUM_MASK = 0x0000001e,
391
392
393 IWL_RX_PHY_DATA1_HE_LTF_NUM_MASK = 0x000000e0,
394 IWL_RX_PHY_DATA1_HE_RU_ALLOC_SEC80 = 0x00000100,
395
396 IWL_RX_PHY_DATA1_HE_RU_ALLOC_MASK = 0x0000fe00,
397
398
399 IWL_RX_PHY_DATA1_HE_TB_PILOT_TYPE = 0x00000001,
400 IWL_RX_PHY_DATA1_HE_TB_LOW_SS_MASK = 0x0000000e,
401 };
402
403
404 enum iwl_rx_phy_data2 {
405
406
407 IWL_RX_PHY_DATA2_HE_MU_EXT_CH1_RU0 = 0x000000ff,
408 IWL_RX_PHY_DATA2_HE_MU_EXT_CH1_RU2 = 0x0000ff00,
409 IWL_RX_PHY_DATA2_HE_MU_EXT_CH2_RU0 = 0x00ff0000,
410 IWL_RX_PHY_DATA2_HE_MU_EXT_CH2_RU2 = 0xff000000,
411
412
413 IWL_RX_PHY_DATA2_HE_TB_EXT_SPTL_REUSE1 = 0x0000000f,
414 IWL_RX_PHY_DATA2_HE_TB_EXT_SPTL_REUSE2 = 0x000000f0,
415 IWL_RX_PHY_DATA2_HE_TB_EXT_SPTL_REUSE3 = 0x00000f00,
416 IWL_RX_PHY_DATA2_HE_TB_EXT_SPTL_REUSE4 = 0x0000f000,
417 };
418
419
420 enum iwl_rx_phy_data3 {
421
422 IWL_RX_PHY_DATA3_HE_MU_EXT_CH1_RU1 = 0x000000ff,
423 IWL_RX_PHY_DATA3_HE_MU_EXT_CH1_RU3 = 0x0000ff00,
424 IWL_RX_PHY_DATA3_HE_MU_EXT_CH2_RU1 = 0x00ff0000,
425 IWL_RX_PHY_DATA3_HE_MU_EXT_CH2_RU3 = 0xff000000,
426 };
427
428
429 enum iwl_rx_phy_data4 {
430
431 IWL_RX_PHY_DATA4_HE_MU_EXT_CH1_CTR_RU = 0x0001,
432 IWL_RX_PHY_DATA4_HE_MU_EXT_CH2_CTR_RU = 0x0002,
433 IWL_RX_PHY_DATA4_HE_MU_EXT_CH1_CRC_OK = 0x0004,
434 IWL_RX_PHY_DATA4_HE_MU_EXT_CH2_CRC_OK = 0x0008,
435 IWL_RX_PHY_DATA4_HE_MU_EXT_SIGB_MCS_MASK = 0x00f0,
436 IWL_RX_PHY_DATA4_HE_MU_EXT_SIGB_DCM = 0x0100,
437 IWL_RX_PHY_DATA4_HE_MU_EXT_PREAMBLE_PUNC_TYPE_MASK = 0x0600,
438 };
439
440
441
442
443 struct iwl_rx_mpdu_desc_v1 {
444
445 union {
446
447
448
449 __le32 rss_hash;
450
451
452
453
454 __le32 phy_data2;
455 };
456
457
458 union {
459
460
461
462 __le32 filter_match;
463
464
465
466
467 __le32 phy_data3;
468 };
469
470
471
472
473
474 __le32 rate_n_flags;
475
476
477
478
479 u8 energy_a;
480
481
482
483 u8 energy_b;
484
485
486
487 u8 channel;
488
489
490
491 u8 mac_context;
492
493
494
495
496 __le32 gp2_on_air_rise;
497
498 union {
499
500
501
502
503
504 __le64 tsf_on_air_rise;
505
506 struct {
507
508
509
510 __le32 phy_data0;
511
512
513
514
515
516 __le32 phy_data1;
517 };
518 };
519 } __packed;
520
521
522
523
524 struct iwl_rx_mpdu_desc_v3 {
525
526 union {
527
528
529
530 __le32 filter_match;
531
532
533
534
535 __le32 phy_data2;
536 };
537
538
539 union {
540
541
542
543 __le32 rss_hash;
544
545
546
547
548 __le32 phy_data3;
549 };
550
551
552
553
554
555 __le32 partial_hash;
556
557
558
559
560 __le32 raw_xsum;
561
562
563
564
565 __le32 rate_n_flags;
566
567
568
569
570 u8 energy_a;
571
572
573
574 u8 energy_b;
575
576
577
578 u8 channel;
579
580
581
582 u8 mac_context;
583
584
585
586
587 __le32 gp2_on_air_rise;
588
589 union {
590
591
592
593
594
595 __le64 tsf_on_air_rise;
596
597 struct {
598
599
600
601 __le32 phy_data0;
602
603
604
605
606
607 __le32 phy_data1;
608 };
609 };
610
611
612
613
614 __le32 reserved[2];
615 } __packed;
616
617
618
619
620 struct iwl_rx_mpdu_desc {
621
622
623
624
625 __le16 mpdu_len;
626
627
628
629 u8 mac_flags1;
630
631
632
633 u8 mac_flags2;
634
635
636
637
638 u8 amsdu_info;
639
640
641
642 __le16 phy_info;
643
644
645
646 u8 mac_phy_idx;
647
648
649
650
651 __le16 raw_csum;
652
653 union {
654
655
656
657 __le16 l3l4_flags;
658
659
660
661
662 __le16 phy_data4;
663 };
664
665
666
667
668 __le16 status;
669
670
671
672 u8 hash_filter;
673
674
675
676 u8 sta_id_flags;
677
678
679
680
681 __le32 reorder_data;
682
683 union {
684 struct iwl_rx_mpdu_desc_v1 v1;
685 struct iwl_rx_mpdu_desc_v3 v3;
686 };
687 } __packed;
688
689 #define IWL_RX_DESC_SIZE_V1 offsetofend(struct iwl_rx_mpdu_desc, v1)
690
691 #define RX_NO_DATA_CHAIN_A_POS 0
692 #define RX_NO_DATA_CHAIN_A_MSK (0xff << RX_NO_DATA_CHAIN_A_POS)
693 #define RX_NO_DATA_CHAIN_B_POS 8
694 #define RX_NO_DATA_CHAIN_B_MSK (0xff << RX_NO_DATA_CHAIN_B_POS)
695 #define RX_NO_DATA_CHANNEL_POS 16
696 #define RX_NO_DATA_CHANNEL_MSK (0xff << RX_NO_DATA_CHANNEL_POS)
697
698 #define RX_NO_DATA_INFO_TYPE_POS 0
699 #define RX_NO_DATA_INFO_TYPE_MSK (0xff << RX_NO_DATA_INFO_TYPE_POS)
700 #define RX_NO_DATA_INFO_TYPE_NONE 0
701 #define RX_NO_DATA_INFO_TYPE_RX_ERR 1
702 #define RX_NO_DATA_INFO_TYPE_NDP 2
703 #define RX_NO_DATA_INFO_TYPE_MU_UNMATCHED 3
704 #define RX_NO_DATA_INFO_TYPE_HE_TB_UNMATCHED 4
705
706 #define RX_NO_DATA_INFO_ERR_POS 8
707 #define RX_NO_DATA_INFO_ERR_MSK (0xff << RX_NO_DATA_INFO_ERR_POS)
708 #define RX_NO_DATA_INFO_ERR_NONE 0
709 #define RX_NO_DATA_INFO_ERR_BAD_PLCP 1
710 #define RX_NO_DATA_INFO_ERR_UNSUPPORTED_RATE 2
711 #define RX_NO_DATA_INFO_ERR_NO_DELIM 3
712 #define RX_NO_DATA_INFO_ERR_BAD_MAC_HDR 4
713
714 #define RX_NO_DATA_FRAME_TIME_POS 0
715 #define RX_NO_DATA_FRAME_TIME_MSK (0xfffff << RX_NO_DATA_FRAME_TIME_POS)
716
717 #define RX_NO_DATA_RX_VEC0_HE_NSTS_MSK 0x03800000
718 #define RX_NO_DATA_RX_VEC0_VHT_NSTS_MSK 0x38000000
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733 struct iwl_rx_no_data {
734 __le32 info;
735 __le32 rssi;
736 __le32 on_air_rise_time;
737 __le32 fr_time;
738 __le32 rate;
739 __le32 phy_info[2];
740 __le32 rx_vec[2];
741 } __packed;
742
743 struct iwl_frame_release {
744 u8 baid;
745 u8 reserved;
746 __le16 nssn;
747 };
748
749
750
751
752
753
754 enum iwl_bar_frame_release_sta_tid {
755 IWL_BAR_FRAME_RELEASE_TID_MASK = 0x0000000f,
756 IWL_BAR_FRAME_RELEASE_STA_MASK = 0x000001f0,
757 };
758
759
760
761
762
763
764
765 enum iwl_bar_frame_release_ba_info {
766 IWL_BAR_FRAME_RELEASE_NSSN_MASK = 0x00000fff,
767 IWL_BAR_FRAME_RELEASE_SN_MASK = 0x00fff000,
768 IWL_BAR_FRAME_RELEASE_BAID_MASK = 0x3f000000,
769 };
770
771
772
773
774
775
776 struct iwl_bar_frame_release {
777 __le32 sta_tid;
778 __le32 ba_info;
779 } __packed;
780
781 enum iwl_rss_hash_func_en {
782 IWL_RSS_HASH_TYPE_IPV4_TCP,
783 IWL_RSS_HASH_TYPE_IPV4_UDP,
784 IWL_RSS_HASH_TYPE_IPV4_PAYLOAD,
785 IWL_RSS_HASH_TYPE_IPV6_TCP,
786 IWL_RSS_HASH_TYPE_IPV6_UDP,
787 IWL_RSS_HASH_TYPE_IPV6_PAYLOAD,
788 };
789
790 #define IWL_RSS_HASH_KEY_CNT 10
791 #define IWL_RSS_INDIRECTION_TABLE_SIZE 128
792 #define IWL_RSS_ENABLE 1
793
794
795
796
797
798
799
800
801
802
803 struct iwl_rss_config_cmd {
804 __le32 flags;
805 u8 hash_mask;
806 u8 reserved[3];
807 __le32 secret_key[IWL_RSS_HASH_KEY_CNT];
808 u8 indirection_table[IWL_RSS_INDIRECTION_TABLE_SIZE];
809 } __packed;
810
811 #define IWL_MULTI_QUEUE_SYNC_SENDER_POS 0
812 #define IWL_MULTI_QUEUE_SYNC_SENDER_MSK 0xf
813
814
815
816
817
818
819
820
821
822 struct iwl_rxq_sync_cmd {
823 __le32 flags;
824 __le32 rxq_mask;
825 __le32 count;
826 u8 payload[];
827 } __packed;
828
829
830
831
832
833
834
835
836 struct iwl_rxq_sync_notification {
837 __le32 count;
838 u8 payload[];
839 } __packed;
840
841
842
843
844
845
846
847
848 enum iwl_mvm_rxq_notif_type {
849 IWL_MVM_RXQ_EMPTY,
850 IWL_MVM_RXQ_NOTIF_DEL_BA,
851 IWL_MVM_RXQ_NSSN_SYNC,
852 };
853
854
855
856
857
858
859
860
861
862
863
864 struct iwl_mvm_internal_rxq_notif {
865 u16 type;
866 u16 sync;
867 u32 cookie;
868 u8 data[];
869 } __packed;
870
871
872
873
874
875
876
877
878 enum iwl_mvm_pm_event {
879 IWL_MVM_PM_EVENT_AWAKE,
880 IWL_MVM_PM_EVENT_ASLEEP,
881 IWL_MVM_PM_EVENT_UAPSD,
882 IWL_MVM_PM_EVENT_PS_POLL,
883 };
884
885
886
887
888
889
890 struct iwl_mvm_pm_state_notification {
891 u8 sta_id;
892 u8 type;
893
894 __le16 reserved;
895 } __packed;
896
897 #define BA_WINDOW_STREAMS_MAX 16
898 #define BA_WINDOW_STATUS_TID_MSK 0x000F
899 #define BA_WINDOW_STATUS_STA_ID_POS 4
900 #define BA_WINDOW_STATUS_STA_ID_MSK 0x01F0
901 #define BA_WINDOW_STATUS_VALID_MSK BIT(9)
902
903
904
905
906
907
908
909
910 struct iwl_ba_window_status_notif {
911 __le64 bitmap[BA_WINDOW_STREAMS_MAX];
912 __le16 ra_tid[BA_WINDOW_STREAMS_MAX];
913 __le32 start_seq_num[BA_WINDOW_STREAMS_MAX];
914 __le16 mpdu_rx_count[BA_WINDOW_STREAMS_MAX];
915 } __packed;
916
917
918
919
920
921
922
923
924
925
926
927 struct iwl_rfh_queue_data {
928 u8 q_num;
929 u8 enable;
930 __le16 reserved;
931 __le64 urbd_stts_wrptr;
932 __le64 fr_bd_cb;
933 __le64 ur_bd_cb;
934 __le32 fr_bd_wid;
935 } __packed;
936
937
938
939
940
941
942
943 struct iwl_rfh_queue_config {
944 u8 num_queues;
945 u8 reserved[3];
946 struct iwl_rfh_queue_data data[];
947 } __packed;
948
949 #endif