Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/sys/contrib/dev/iwlwifi/fw/api/sta.h
48426 views
1
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2
/*
3
* Copyright (C) 2012-2014, 2018-2021, 2023 Intel Corporation
4
* Copyright (C) 2013-2014 Intel Mobile Communications GmbH
5
* Copyright (C) 2016-2017 Intel Deutschland GmbH
6
*/
7
#ifndef __iwl_fw_api_sta_h__
8
#define __iwl_fw_api_sta_h__
9
10
/**
11
* enum iwl_sta_flags - flags for the ADD_STA host command
12
* @STA_FLG_REDUCED_TX_PWR_CTRL: reduced TX power (control frames)
13
* @STA_FLG_REDUCED_TX_PWR_DATA: reduced TX power (data frames)
14
* @STA_FLG_DISABLE_TX: set if TX should be disabled
15
* @STA_FLG_PS: set if STA is in Power Save
16
* @STA_FLG_DRAIN_FLOW: drain flow
17
* @STA_FLG_PAN: STA is for PAN interface
18
* @STA_FLG_CLASS_AUTH: station is authenticated
19
* @STA_FLG_CLASS_ASSOC: station is associated
20
* @STA_FLG_RTS_MIMO_PROT: station requires RTS MIMO protection (dynamic SMPS)
21
* @STA_FLG_MAX_AGG_SIZE_MSK: maximal size for A-MPDU (mask)
22
* @STA_FLG_MAX_AGG_SIZE_SHIFT: maximal size for A-MPDU (bit shift)
23
* @STA_FLG_MAX_AGG_SIZE_8K: maximal size for A-MPDU (8k supported)
24
* @STA_FLG_MAX_AGG_SIZE_16K: maximal size for A-MPDU (16k supported)
25
* @STA_FLG_MAX_AGG_SIZE_32K: maximal size for A-MPDU (32k supported)
26
* @STA_FLG_MAX_AGG_SIZE_64K: maximal size for A-MPDU (64k supported)
27
* @STA_FLG_MAX_AGG_SIZE_128K: maximal size for A-MPDU (128k supported)
28
* @STA_FLG_MAX_AGG_SIZE_256K: maximal size for A-MPDU (256k supported)
29
* @STA_FLG_MAX_AGG_SIZE_512K: maximal size for A-MPDU (512k supported)
30
* @STA_FLG_MAX_AGG_SIZE_1024K: maximal size for A-MPDU (1024k supported)
31
* @STA_FLG_MAX_AGG_SIZE_2M: maximal size for A-MPDU (2M supported)
32
* @STA_FLG_MAX_AGG_SIZE_4M: maximal size for A-MPDU (4M supported)
33
* @STA_FLG_AGG_MPDU_DENS_MSK: maximal MPDU density for Tx aggregation
34
* @STA_FLG_FAT_EN_MSK: support for channel width (for Tx). This flag is
35
* initialised by driver and can be updated by fw upon reception of
36
* action frames that can change the channel width. When cleared the fw
37
* will send all the frames in 20MHz even when FAT channel is requested.
38
* @STA_FLG_FAT_EN_20MHZ: no wide channels are supported, only 20 MHz
39
* @STA_FLG_FAT_EN_40MHZ: wide channels up to 40 MHz supported
40
* @STA_FLG_FAT_EN_80MHZ: wide channels up to 80 MHz supported
41
* @STA_FLG_FAT_EN_160MHZ: wide channels up to 160 MHz supported
42
* @STA_FLG_MIMO_EN_MSK: support for MIMO. This flag is initialised by the
43
* driver and can be updated by fw upon reception of action frames.
44
* @STA_FLG_MIMO_EN_SISO: no support for MIMO
45
* @STA_FLG_MIMO_EN_MIMO2: 2 streams supported
46
* @STA_FLG_MIMO_EN_MIMO3: 3 streams supported
47
* @STA_FLG_AGG_MPDU_DENS_MSK: A-MPDU density (mask)
48
* @STA_FLG_AGG_MPDU_DENS_SHIFT: A-MPDU density (bit shift)
49
* @STA_FLG_AGG_MPDU_DENS_2US: A-MPDU density (2 usec gap)
50
* @STA_FLG_AGG_MPDU_DENS_4US: A-MPDU density (4 usec gap)
51
* @STA_FLG_AGG_MPDU_DENS_8US: A-MPDU density (8 usec gap)
52
* @STA_FLG_AGG_MPDU_DENS_16US: A-MPDU density (16 usec gap)
53
*/
54
enum iwl_sta_flags {
55
STA_FLG_REDUCED_TX_PWR_CTRL = BIT(3),
56
STA_FLG_REDUCED_TX_PWR_DATA = BIT(6),
57
58
STA_FLG_DISABLE_TX = BIT(4),
59
60
STA_FLG_PS = BIT(8),
61
STA_FLG_DRAIN_FLOW = BIT(12),
62
STA_FLG_PAN = BIT(13),
63
STA_FLG_CLASS_AUTH = BIT(14),
64
STA_FLG_CLASS_ASSOC = BIT(15),
65
STA_FLG_RTS_MIMO_PROT = BIT(17),
66
67
STA_FLG_MAX_AGG_SIZE_SHIFT = 19,
68
STA_FLG_MAX_AGG_SIZE_8K = (0 << STA_FLG_MAX_AGG_SIZE_SHIFT),
69
STA_FLG_MAX_AGG_SIZE_16K = (1 << STA_FLG_MAX_AGG_SIZE_SHIFT),
70
STA_FLG_MAX_AGG_SIZE_32K = (2 << STA_FLG_MAX_AGG_SIZE_SHIFT),
71
STA_FLG_MAX_AGG_SIZE_64K = (3 << STA_FLG_MAX_AGG_SIZE_SHIFT),
72
STA_FLG_MAX_AGG_SIZE_128K = (4 << STA_FLG_MAX_AGG_SIZE_SHIFT),
73
STA_FLG_MAX_AGG_SIZE_256K = (5 << STA_FLG_MAX_AGG_SIZE_SHIFT),
74
STA_FLG_MAX_AGG_SIZE_512K = (6 << STA_FLG_MAX_AGG_SIZE_SHIFT),
75
STA_FLG_MAX_AGG_SIZE_1024K = (7 << STA_FLG_MAX_AGG_SIZE_SHIFT),
76
STA_FLG_MAX_AGG_SIZE_2M = (8 << STA_FLG_MAX_AGG_SIZE_SHIFT),
77
STA_FLG_MAX_AGG_SIZE_4M = (9 << STA_FLG_MAX_AGG_SIZE_SHIFT),
78
STA_FLG_MAX_AGG_SIZE_MSK = (0xf << STA_FLG_MAX_AGG_SIZE_SHIFT),
79
80
STA_FLG_AGG_MPDU_DENS_SHIFT = 23,
81
STA_FLG_AGG_MPDU_DENS_2US = (4 << STA_FLG_AGG_MPDU_DENS_SHIFT),
82
STA_FLG_AGG_MPDU_DENS_4US = (5 << STA_FLG_AGG_MPDU_DENS_SHIFT),
83
STA_FLG_AGG_MPDU_DENS_8US = (6 << STA_FLG_AGG_MPDU_DENS_SHIFT),
84
STA_FLG_AGG_MPDU_DENS_16US = (7 << STA_FLG_AGG_MPDU_DENS_SHIFT),
85
STA_FLG_AGG_MPDU_DENS_MSK = (7 << STA_FLG_AGG_MPDU_DENS_SHIFT),
86
87
STA_FLG_FAT_EN_20MHZ = (0 << 26),
88
STA_FLG_FAT_EN_40MHZ = (1 << 26),
89
STA_FLG_FAT_EN_80MHZ = (2 << 26),
90
STA_FLG_FAT_EN_160MHZ = (3 << 26),
91
STA_FLG_FAT_EN_MSK = (3 << 26),
92
93
STA_FLG_MIMO_EN_SISO = (0 << 28),
94
STA_FLG_MIMO_EN_MIMO2 = (1 << 28),
95
STA_FLG_MIMO_EN_MIMO3 = (2 << 28),
96
STA_FLG_MIMO_EN_MSK = (3 << 28),
97
};
98
99
/**
100
* enum iwl_sta_key_flag - key flags for the ADD_STA host command
101
* @STA_KEY_FLG_NO_ENC: no encryption
102
* @STA_KEY_FLG_WEP: WEP encryption algorithm
103
* @STA_KEY_FLG_CCM: CCMP encryption algorithm
104
* @STA_KEY_FLG_TKIP: TKIP encryption algorithm
105
* @STA_KEY_FLG_EXT: extended cipher algorithm (depends on the FW support)
106
* @STA_KEY_FLG_GCMP: GCMP encryption algorithm
107
* @STA_KEY_FLG_CMAC: CMAC encryption algorithm
108
* @STA_KEY_FLG_ENC_UNKNOWN: unknown encryption algorithm
109
* @STA_KEY_FLG_EN_MSK: mask for encryption algorithmi value
110
* @STA_KEY_FLG_WEP_KEY_MAP: wep is either a group key (0 - legacy WEP) or from
111
* station info array (1 - n 1X mode)
112
* @STA_KEY_FLG_AMSDU_SPP: SPP (signaling and payload protected) A-MSDU
113
* @STA_KEY_FLG_KEYID_MSK: the index of the key
114
* @STA_KEY_FLG_KEYID_POS: key index bit position
115
* @STA_KEY_NOT_VALID: key is invalid
116
* @STA_KEY_FLG_WEP_13BYTES: set for 13 bytes WEP key
117
* @STA_KEY_FLG_KEY_32BYTES: for non-wep key set for 32 bytes key
118
* @STA_KEY_MULTICAST: set for multical key
119
* @STA_KEY_MFP: key is used for Management Frame Protection
120
*/
121
enum iwl_sta_key_flag {
122
STA_KEY_FLG_NO_ENC = (0 << 0),
123
STA_KEY_FLG_WEP = (1 << 0),
124
STA_KEY_FLG_CCM = (2 << 0),
125
STA_KEY_FLG_TKIP = (3 << 0),
126
STA_KEY_FLG_EXT = (4 << 0),
127
STA_KEY_FLG_GCMP = (5 << 0),
128
STA_KEY_FLG_CMAC = (6 << 0),
129
STA_KEY_FLG_ENC_UNKNOWN = (7 << 0),
130
STA_KEY_FLG_EN_MSK = (7 << 0),
131
132
STA_KEY_FLG_WEP_KEY_MAP = BIT(3),
133
STA_KEY_FLG_AMSDU_SPP = BIT(7),
134
STA_KEY_FLG_KEYID_POS = 8,
135
STA_KEY_FLG_KEYID_MSK = (3 << STA_KEY_FLG_KEYID_POS),
136
STA_KEY_NOT_VALID = BIT(11),
137
STA_KEY_FLG_WEP_13BYTES = BIT(12),
138
STA_KEY_FLG_KEY_32BYTES = BIT(12),
139
STA_KEY_MULTICAST = BIT(14),
140
STA_KEY_MFP = BIT(15),
141
};
142
143
/**
144
* enum iwl_sta_modify_flag - indicate to the fw what flag are being changed
145
* @STA_MODIFY_QUEUE_REMOVAL: this command removes a queue
146
* @STA_MODIFY_TID_DISABLE_TX: this command modifies %tid_disable_tx
147
* @STA_MODIFY_UAPSD_ACS: this command modifies %uapsd_acs
148
* @STA_MODIFY_ADD_BA_TID: this command modifies %add_immediate_ba_tid
149
* @STA_MODIFY_REMOVE_BA_TID: this command modifies %remove_immediate_ba_tid
150
* @STA_MODIFY_SLEEPING_STA_TX_COUNT: this command modifies %sleep_tx_count
151
* @STA_MODIFY_PROT_TH: modify RTS threshold
152
* @STA_MODIFY_QUEUES: modify the queues used by this station
153
*/
154
enum iwl_sta_modify_flag {
155
STA_MODIFY_QUEUE_REMOVAL = BIT(0),
156
STA_MODIFY_TID_DISABLE_TX = BIT(1),
157
STA_MODIFY_UAPSD_ACS = BIT(2),
158
STA_MODIFY_ADD_BA_TID = BIT(3),
159
STA_MODIFY_REMOVE_BA_TID = BIT(4),
160
STA_MODIFY_SLEEPING_STA_TX_COUNT = BIT(5),
161
STA_MODIFY_PROT_TH = BIT(6),
162
STA_MODIFY_QUEUES = BIT(7),
163
};
164
165
/**
166
* enum iwl_sta_mode - station command mode
167
* @STA_MODE_ADD: add new station
168
* @STA_MODE_MODIFY: modify the station
169
*/
170
enum iwl_sta_mode {
171
STA_MODE_ADD = 0,
172
STA_MODE_MODIFY = 1,
173
};
174
175
/**
176
* enum iwl_sta_sleep_flag - type of sleep of the station
177
* @STA_SLEEP_STATE_AWAKE: station is awake
178
* @STA_SLEEP_STATE_PS_POLL: station is PS-polling
179
* @STA_SLEEP_STATE_UAPSD: station uses U-APSD
180
* @STA_SLEEP_STATE_MOREDATA: set more-data bit on
181
* (last) released frame
182
*/
183
enum iwl_sta_sleep_flag {
184
STA_SLEEP_STATE_AWAKE = 0,
185
STA_SLEEP_STATE_PS_POLL = BIT(0),
186
STA_SLEEP_STATE_UAPSD = BIT(1),
187
STA_SLEEP_STATE_MOREDATA = BIT(2),
188
};
189
190
#define STA_KEY_MAX_NUM (16)
191
#define STA_KEY_IDX_INVALID (0xff)
192
#define STA_KEY_MAX_DATA_KEY_NUM (4)
193
#define IWL_MAX_GLOBAL_KEYS (4)
194
#define IWL_MAX_NUM_IGTKS 2
195
#define STA_KEY_LEN_WEP40 (5)
196
#define STA_KEY_LEN_WEP104 (13)
197
198
#define IWL_ADD_STA_STATUS_MASK 0xFF
199
#define IWL_ADD_STA_BAID_VALID_MASK 0x8000
200
#define IWL_ADD_STA_BAID_MASK 0x7F00
201
#define IWL_ADD_STA_BAID_SHIFT 8
202
203
/**
204
* struct iwl_mvm_add_sta_cmd_v7 - Add/modify a station in the fw's sta table.
205
* ( REPLY_ADD_STA = 0x18 )
206
* @add_modify: see &enum iwl_sta_mode
207
* @awake_acs: ACs to transmit data on while station is sleeping (for U-APSD)
208
* @tid_disable_tx: is tid BIT(tid) enabled for Tx. Clear BIT(x) to enable
209
* AMPDU for tid x. Set %STA_MODIFY_TID_DISABLE_TX to change this field.
210
* @mac_id_n_color: the Mac context this station belongs to,
211
* see &enum iwl_ctxt_id_and_color
212
* @addr: station's MAC address
213
* @reserved2: reserved
214
* @sta_id: index of station in uCode's station table
215
* @modify_mask: from &enum iwl_sta_modify_flag, selects what to change
216
* @reserved3: reserved
217
* @station_flags: look at &enum iwl_sta_flags
218
* @station_flags_msk: what of %station_flags have changed,
219
* also &enum iwl_sta_flags
220
* @add_immediate_ba_tid: tid for which to add block-ack support (Rx)
221
* Set %STA_MODIFY_ADD_BA_TID to use this field, and also set
222
* add_immediate_ba_ssn.
223
* @remove_immediate_ba_tid: tid for which to remove block-ack support (Rx)
224
* Set %STA_MODIFY_REMOVE_BA_TID to use this field
225
* @add_immediate_ba_ssn: ssn for the Rx block-ack session. Used together with
226
* add_immediate_ba_tid.
227
* @sleep_tx_count: number of packets to transmit to station even though it is
228
* asleep. Used to synchronise PS-poll and u-APSD responses while ucode
229
* keeps track of STA sleep state.
230
* @sleep_state_flags: Look at &enum iwl_sta_sleep_flag.
231
* @assoc_id: assoc_id to be sent in VHT PLCP (9-bit), for grp use 0, for AP
232
* mac-addr.
233
* @beamform_flags: beam forming controls
234
* @tfd_queue_msk: tfd queues used by this station
235
*
236
* The device contains an internal table of per-station information, with info
237
* on security keys, aggregation parameters, and Tx rates for initial Tx
238
* attempt and any retries (set by REPLY_TX_LINK_QUALITY_CMD).
239
*
240
* ADD_STA sets up the table entry for one station, either creating a new
241
* entry, or modifying a pre-existing one.
242
*/
243
struct iwl_mvm_add_sta_cmd_v7 {
244
u8 add_modify;
245
u8 awake_acs;
246
__le16 tid_disable_tx;
247
__le32 mac_id_n_color;
248
u8 addr[ETH_ALEN]; /* _STA_ID_MODIFY_INFO_API_S_VER_1 */
249
__le16 reserved2;
250
u8 sta_id;
251
u8 modify_mask;
252
__le16 reserved3;
253
__le32 station_flags;
254
__le32 station_flags_msk;
255
u8 add_immediate_ba_tid;
256
u8 remove_immediate_ba_tid;
257
__le16 add_immediate_ba_ssn;
258
__le16 sleep_tx_count;
259
__le16 sleep_state_flags;
260
__le16 assoc_id;
261
__le16 beamform_flags;
262
__le32 tfd_queue_msk;
263
} __packed; /* ADD_STA_CMD_API_S_VER_7 */
264
265
/**
266
* enum iwl_sta_type - FW station types
267
* ( REPLY_ADD_STA = 0x18 )
268
* @IWL_STA_LINK: Link station - normal RX and TX traffic.
269
* @IWL_STA_GENERAL_PURPOSE: General purpose. In AP mode used for beacons
270
* and probe responses.
271
* @IWL_STA_MULTICAST: multicast traffic,
272
* @IWL_STA_TDLS_LINK: TDLS link station
273
* @IWL_STA_AUX_ACTIVITY: auxilary station (scan, ROC and so on).
274
*/
275
enum iwl_sta_type {
276
IWL_STA_LINK,
277
IWL_STA_GENERAL_PURPOSE,
278
IWL_STA_MULTICAST,
279
IWL_STA_TDLS_LINK,
280
IWL_STA_AUX_ACTIVITY,
281
};
282
283
/**
284
* struct iwl_mvm_add_sta_cmd - Add/modify a station in the fw's sta table.
285
* ( REPLY_ADD_STA = 0x18 )
286
* @add_modify: see &enum iwl_sta_mode
287
* @awake_acs: ACs to transmit data on while station is sleeping (for U-APSD)
288
* @tid_disable_tx: is tid BIT(tid) enabled for Tx. Clear BIT(x) to enable
289
* AMPDU for tid x. Set %STA_MODIFY_TID_DISABLE_TX to change this field.
290
* @mac_id_n_color: the Mac context this station belongs to,
291
* see &enum iwl_ctxt_id_and_color
292
* @addr: station's MAC address
293
* @reserved2: reserved
294
* @sta_id: index of station in uCode's station table
295
* @modify_mask: from &enum iwl_sta_modify_flag, selects what to change
296
* @reserved3: reserved
297
* @station_flags: look at &enum iwl_sta_flags
298
* @station_flags_msk: what of %station_flags have changed,
299
* also &enum iwl_sta_flags
300
* @add_immediate_ba_tid: tid for which to add block-ack support (Rx)
301
* Set %STA_MODIFY_ADD_BA_TID to use this field, and also set
302
* add_immediate_ba_ssn.
303
* @remove_immediate_ba_tid: tid for which to remove block-ack support (Rx)
304
* Set %STA_MODIFY_REMOVE_BA_TID to use this field
305
* @add_immediate_ba_ssn: ssn for the Rx block-ack session. Used together with
306
* add_immediate_ba_tid.
307
* @sleep_tx_count: number of packets to transmit to station even though it is
308
* asleep. Used to synchronise PS-poll and u-APSD responses while ucode
309
* keeps track of STA sleep state.
310
* @station_type: type of this station. See &enum iwl_sta_type.
311
* @sleep_state_flags: Look at &enum iwl_sta_sleep_flag.
312
* @assoc_id: assoc_id to be sent in VHT PLCP (9-bit), for grp use 0, for AP
313
* mac-addr.
314
* @beamform_flags: beam forming controls
315
* @tfd_queue_msk: tfd queues used by this station.
316
* Obselete for new TX API (9 and above).
317
* @rx_ba_window: aggregation window size
318
* @sp_length: the size of the SP in actual number of frames
319
* @uapsd_acs: 4 LS bits are trigger enabled ACs, 4 MS bits are the deliver
320
* enabled ACs.
321
*
322
* The device contains an internal table of per-station information, with info
323
* on security keys, aggregation parameters, and Tx rates for initial Tx
324
* attempt and any retries (set by REPLY_TX_LINK_QUALITY_CMD).
325
*
326
* ADD_STA sets up the table entry for one station, either creating a new
327
* entry, or modifying a pre-existing one.
328
*/
329
struct iwl_mvm_add_sta_cmd {
330
u8 add_modify;
331
u8 awake_acs;
332
__le16 tid_disable_tx;
333
__le32 mac_id_n_color; /* can be used for lmac id when using cmd v12 */
334
u8 addr[ETH_ALEN]; /* _STA_ID_MODIFY_INFO_API_S_VER_1 */
335
__le16 reserved2;
336
u8 sta_id;
337
u8 modify_mask;
338
__le16 reserved3;
339
__le32 station_flags;
340
__le32 station_flags_msk;
341
u8 add_immediate_ba_tid;
342
u8 remove_immediate_ba_tid;
343
__le16 add_immediate_ba_ssn;
344
__le16 sleep_tx_count;
345
u8 sleep_state_flags;
346
u8 station_type;
347
__le16 assoc_id;
348
__le16 beamform_flags;
349
__le32 tfd_queue_msk;
350
__le16 rx_ba_window;
351
u8 sp_length;
352
u8 uapsd_acs;
353
} __packed; /* ADD_STA_CMD_API_S_VER_10 */
354
355
/**
356
* struct iwl_mvm_add_sta_key_common - add/modify sta key common part
357
* ( REPLY_ADD_STA_KEY = 0x17 )
358
* @sta_id: index of station in uCode's station table
359
* @key_offset: key offset in key storage
360
* @key_flags: type &enum iwl_sta_key_flag
361
* @key: key material data
362
* @rx_secur_seq_cnt: RX security sequence counter for the key
363
*/
364
struct iwl_mvm_add_sta_key_common {
365
u8 sta_id;
366
u8 key_offset;
367
__le16 key_flags;
368
u8 key[32];
369
u8 rx_secur_seq_cnt[16];
370
} __packed;
371
372
/**
373
* struct iwl_mvm_add_sta_key_cmd_v1 - add/modify sta key
374
* @common: see &struct iwl_mvm_add_sta_key_common
375
* @tkip_rx_tsc_byte2: TSC[2] for key mix ph1 detection
376
* @reserved: reserved
377
* @tkip_rx_ttak: 10-byte unicast TKIP TTAK for Rx
378
*/
379
struct iwl_mvm_add_sta_key_cmd_v1 {
380
struct iwl_mvm_add_sta_key_common common;
381
u8 tkip_rx_tsc_byte2;
382
u8 reserved;
383
__le16 tkip_rx_ttak[5];
384
} __packed; /* ADD_MODIFY_STA_KEY_API_S_VER_1 */
385
386
/**
387
* struct iwl_mvm_add_sta_key_cmd - add/modify sta key
388
* @common: see &struct iwl_mvm_add_sta_key_common
389
* @rx_mic_key: TKIP RX unicast or multicast key
390
* @tx_mic_key: TKIP TX key
391
* @transmit_seq_cnt: TSC, transmit packet number
392
*
393
* Note: This is used for both v2 and v3, the difference being
394
* in the way the common.rx_secur_seq_cnt is used, in v2 that's
395
* the strange hole format, in v3 it's just a u64.
396
*/
397
struct iwl_mvm_add_sta_key_cmd {
398
struct iwl_mvm_add_sta_key_common common;
399
__le64 rx_mic_key;
400
__le64 tx_mic_key;
401
__le64 transmit_seq_cnt;
402
} __packed; /* ADD_MODIFY_STA_KEY_API_S_VER_2, ADD_MODIFY_STA_KEY_API_S_VER_3 */
403
404
/**
405
* enum iwl_mvm_add_sta_rsp_status - status in the response to ADD_STA command
406
* @ADD_STA_SUCCESS: operation was executed successfully
407
* @ADD_STA_STATIONS_OVERLOAD: no room left in the fw's station table
408
* @ADD_STA_IMMEDIATE_BA_FAILURE: can't add Rx block ack session
409
* @ADD_STA_MODIFY_NON_EXISTING_STA: driver requested to modify a station that
410
* doesn't exist.
411
*/
412
enum iwl_mvm_add_sta_rsp_status {
413
ADD_STA_SUCCESS = 0x1,
414
ADD_STA_STATIONS_OVERLOAD = 0x2,
415
ADD_STA_IMMEDIATE_BA_FAILURE = 0x4,
416
ADD_STA_MODIFY_NON_EXISTING_STA = 0x8,
417
};
418
419
/**
420
* struct iwl_mvm_rm_sta_cmd - Add / modify a station in the fw's station table
421
* ( REMOVE_STA = 0x19 )
422
* @sta_id: the station id of the station to be removed
423
* @reserved: reserved
424
*/
425
struct iwl_mvm_rm_sta_cmd {
426
u8 sta_id;
427
u8 reserved[3];
428
} __packed; /* REMOVE_STA_CMD_API_S_VER_2 */
429
430
/**
431
* struct iwl_mvm_mgmt_mcast_key_cmd_v1
432
* ( MGMT_MCAST_KEY = 0x1f )
433
* @ctrl_flags: &enum iwl_sta_key_flag
434
* @igtk: IGTK key material
435
* @k1: unused
436
* @k2: unused
437
* @sta_id: station ID that support IGTK
438
* @key_id: key ID
439
* @receive_seq_cnt: initial RSC/PN needed for replay check
440
*/
441
struct iwl_mvm_mgmt_mcast_key_cmd_v1 {
442
__le32 ctrl_flags;
443
u8 igtk[16];
444
u8 k1[16];
445
u8 k2[16];
446
__le32 key_id;
447
__le32 sta_id;
448
__le64 receive_seq_cnt;
449
} __packed; /* SEC_MGMT_MULTICAST_KEY_CMD_API_S_VER_1 */
450
451
/**
452
* struct iwl_mvm_mgmt_mcast_key_cmd
453
* ( MGMT_MCAST_KEY = 0x1f )
454
* @ctrl_flags: &enum iwl_sta_key_flag
455
* @igtk: IGTK master key
456
* @sta_id: station ID that support IGTK
457
* @key_id: key ID
458
* @receive_seq_cnt: initial RSC/PN needed for replay check
459
*/
460
struct iwl_mvm_mgmt_mcast_key_cmd {
461
__le32 ctrl_flags;
462
u8 igtk[32];
463
__le32 key_id;
464
__le32 sta_id;
465
__le64 receive_seq_cnt;
466
} __packed; /* SEC_MGMT_MULTICAST_KEY_CMD_API_S_VER_2 */
467
468
struct iwl_mvm_wep_key {
469
u8 key_index;
470
u8 key_offset;
471
__le16 reserved1;
472
u8 key_size;
473
u8 reserved2[3];
474
u8 key[16];
475
} __packed;
476
477
struct iwl_mvm_wep_key_cmd {
478
__le32 mac_id_n_color;
479
u8 num_keys;
480
u8 decryption_type;
481
u8 flags;
482
u8 reserved;
483
#if defined(__linux__)
484
struct iwl_mvm_wep_key wep_key[];
485
#elif defined(__FreeBSD__)
486
struct iwl_mvm_wep_key wep_key[0];
487
#endif
488
} __packed; /* SEC_CURR_WEP_KEY_CMD_API_S_VER_2 */
489
490
/**
491
* struct iwl_mvm_eosp_notification - EOSP notification from firmware
492
* @remain_frame_count: # of frames remaining, non-zero if SP was cut
493
* short by GO absence
494
* @sta_id: station ID
495
*/
496
struct iwl_mvm_eosp_notification {
497
__le32 remain_frame_count;
498
__le32 sta_id;
499
} __packed; /* UAPSD_EOSP_NTFY_API_S_VER_1 */
500
501
#endif /* __iwl_fw_api_sta_h__ */
502
503