![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 0002 /* 0003 * Copyright (C) 2012-2014, 2018-2021 Intel Corporation 0004 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH 0005 * Copyright (C) 2016-2017 Intel Deutschland GmbH 0006 */ 0007 #ifndef __iwl_fw_api_sta_h__ 0008 #define __iwl_fw_api_sta_h__ 0009 0010 /** 0011 * enum iwl_sta_flags - flags for the ADD_STA host command 0012 * @STA_FLG_REDUCED_TX_PWR_CTRL: reduced TX power (control frames) 0013 * @STA_FLG_REDUCED_TX_PWR_DATA: reduced TX power (data frames) 0014 * @STA_FLG_DISABLE_TX: set if TX should be disabled 0015 * @STA_FLG_PS: set if STA is in Power Save 0016 * @STA_FLG_DRAIN_FLOW: drain flow 0017 * @STA_FLG_PAN: STA is for PAN interface 0018 * @STA_FLG_CLASS_AUTH: station is authenticated 0019 * @STA_FLG_CLASS_ASSOC: station is associated 0020 * @STA_FLG_RTS_MIMO_PROT: station requires RTS MIMO protection (dynamic SMPS) 0021 * @STA_FLG_MAX_AGG_SIZE_MSK: maximal size for A-MPDU (mask) 0022 * @STA_FLG_MAX_AGG_SIZE_SHIFT: maximal size for A-MPDU (bit shift) 0023 * @STA_FLG_MAX_AGG_SIZE_8K: maximal size for A-MPDU (8k supported) 0024 * @STA_FLG_MAX_AGG_SIZE_16K: maximal size for A-MPDU (16k supported) 0025 * @STA_FLG_MAX_AGG_SIZE_32K: maximal size for A-MPDU (32k supported) 0026 * @STA_FLG_MAX_AGG_SIZE_64K: maximal size for A-MPDU (64k supported) 0027 * @STA_FLG_MAX_AGG_SIZE_128K: maximal size for A-MPDU (128k supported) 0028 * @STA_FLG_MAX_AGG_SIZE_256K: maximal size for A-MPDU (256k supported) 0029 * @STA_FLG_MAX_AGG_SIZE_512K: maximal size for A-MPDU (512k supported) 0030 * @STA_FLG_MAX_AGG_SIZE_1024K: maximal size for A-MPDU (1024k supported) 0031 * @STA_FLG_MAX_AGG_SIZE_2M: maximal size for A-MPDU (2M supported) 0032 * @STA_FLG_MAX_AGG_SIZE_4M: maximal size for A-MPDU (4M supported) 0033 * @STA_FLG_AGG_MPDU_DENS_MSK: maximal MPDU density for Tx aggregation 0034 * @STA_FLG_FAT_EN_MSK: support for channel width (for Tx). This flag is 0035 * initialised by driver and can be updated by fw upon reception of 0036 * action frames that can change the channel width. When cleared the fw 0037 * will send all the frames in 20MHz even when FAT channel is requested. 0038 * @STA_FLG_FAT_EN_20MHZ: no wide channels are supported, only 20 MHz 0039 * @STA_FLG_FAT_EN_40MHZ: wide channels up to 40 MHz supported 0040 * @STA_FLG_FAT_EN_80MHZ: wide channels up to 80 MHz supported 0041 * @STA_FLG_FAT_EN_160MHZ: wide channels up to 160 MHz supported 0042 * @STA_FLG_MIMO_EN_MSK: support for MIMO. This flag is initialised by the 0043 * driver and can be updated by fw upon reception of action frames. 0044 * @STA_FLG_MIMO_EN_SISO: no support for MIMO 0045 * @STA_FLG_MIMO_EN_MIMO2: 2 streams supported 0046 * @STA_FLG_MIMO_EN_MIMO3: 3 streams supported 0047 * @STA_FLG_AGG_MPDU_DENS_MSK: A-MPDU density (mask) 0048 * @STA_FLG_AGG_MPDU_DENS_SHIFT: A-MPDU density (bit shift) 0049 * @STA_FLG_AGG_MPDU_DENS_2US: A-MPDU density (2 usec gap) 0050 * @STA_FLG_AGG_MPDU_DENS_4US: A-MPDU density (4 usec gap) 0051 * @STA_FLG_AGG_MPDU_DENS_8US: A-MPDU density (8 usec gap) 0052 * @STA_FLG_AGG_MPDU_DENS_16US: A-MPDU density (16 usec gap) 0053 */ 0054 enum iwl_sta_flags { 0055 STA_FLG_REDUCED_TX_PWR_CTRL = BIT(3), 0056 STA_FLG_REDUCED_TX_PWR_DATA = BIT(6), 0057 0058 STA_FLG_DISABLE_TX = BIT(4), 0059 0060 STA_FLG_PS = BIT(8), 0061 STA_FLG_DRAIN_FLOW = BIT(12), 0062 STA_FLG_PAN = BIT(13), 0063 STA_FLG_CLASS_AUTH = BIT(14), 0064 STA_FLG_CLASS_ASSOC = BIT(15), 0065 STA_FLG_RTS_MIMO_PROT = BIT(17), 0066 0067 STA_FLG_MAX_AGG_SIZE_SHIFT = 19, 0068 STA_FLG_MAX_AGG_SIZE_8K = (0 << STA_FLG_MAX_AGG_SIZE_SHIFT), 0069 STA_FLG_MAX_AGG_SIZE_16K = (1 << STA_FLG_MAX_AGG_SIZE_SHIFT), 0070 STA_FLG_MAX_AGG_SIZE_32K = (2 << STA_FLG_MAX_AGG_SIZE_SHIFT), 0071 STA_FLG_MAX_AGG_SIZE_64K = (3 << STA_FLG_MAX_AGG_SIZE_SHIFT), 0072 STA_FLG_MAX_AGG_SIZE_128K = (4 << STA_FLG_MAX_AGG_SIZE_SHIFT), 0073 STA_FLG_MAX_AGG_SIZE_256K = (5 << STA_FLG_MAX_AGG_SIZE_SHIFT), 0074 STA_FLG_MAX_AGG_SIZE_512K = (6 << STA_FLG_MAX_AGG_SIZE_SHIFT), 0075 STA_FLG_MAX_AGG_SIZE_1024K = (7 << STA_FLG_MAX_AGG_SIZE_SHIFT), 0076 STA_FLG_MAX_AGG_SIZE_2M = (8 << STA_FLG_MAX_AGG_SIZE_SHIFT), 0077 STA_FLG_MAX_AGG_SIZE_4M = (9 << STA_FLG_MAX_AGG_SIZE_SHIFT), 0078 STA_FLG_MAX_AGG_SIZE_MSK = (0xf << STA_FLG_MAX_AGG_SIZE_SHIFT), 0079 0080 STA_FLG_AGG_MPDU_DENS_SHIFT = 23, 0081 STA_FLG_AGG_MPDU_DENS_2US = (4 << STA_FLG_AGG_MPDU_DENS_SHIFT), 0082 STA_FLG_AGG_MPDU_DENS_4US = (5 << STA_FLG_AGG_MPDU_DENS_SHIFT), 0083 STA_FLG_AGG_MPDU_DENS_8US = (6 << STA_FLG_AGG_MPDU_DENS_SHIFT), 0084 STA_FLG_AGG_MPDU_DENS_16US = (7 << STA_FLG_AGG_MPDU_DENS_SHIFT), 0085 STA_FLG_AGG_MPDU_DENS_MSK = (7 << STA_FLG_AGG_MPDU_DENS_SHIFT), 0086 0087 STA_FLG_FAT_EN_20MHZ = (0 << 26), 0088 STA_FLG_FAT_EN_40MHZ = (1 << 26), 0089 STA_FLG_FAT_EN_80MHZ = (2 << 26), 0090 STA_FLG_FAT_EN_160MHZ = (3 << 26), 0091 STA_FLG_FAT_EN_MSK = (3 << 26), 0092 0093 STA_FLG_MIMO_EN_SISO = (0 << 28), 0094 STA_FLG_MIMO_EN_MIMO2 = (1 << 28), 0095 STA_FLG_MIMO_EN_MIMO3 = (2 << 28), 0096 STA_FLG_MIMO_EN_MSK = (3 << 28), 0097 }; 0098 0099 /** 0100 * enum iwl_sta_key_flag - key flags for the ADD_STA host command 0101 * @STA_KEY_FLG_NO_ENC: no encryption 0102 * @STA_KEY_FLG_WEP: WEP encryption algorithm 0103 * @STA_KEY_FLG_CCM: CCMP encryption algorithm 0104 * @STA_KEY_FLG_TKIP: TKIP encryption algorithm 0105 * @STA_KEY_FLG_EXT: extended cipher algorithm (depends on the FW support) 0106 * @STA_KEY_FLG_GCMP: GCMP encryption algorithm 0107 * @STA_KEY_FLG_CMAC: CMAC encryption algorithm 0108 * @STA_KEY_FLG_ENC_UNKNOWN: unknown encryption algorithm 0109 * @STA_KEY_FLG_EN_MSK: mask for encryption algorithmi value 0110 * @STA_KEY_FLG_WEP_KEY_MAP: wep is either a group key (0 - legacy WEP) or from 0111 * station info array (1 - n 1X mode) 0112 * @STA_KEY_FLG_KEYID_MSK: the index of the key 0113 * @STA_KEY_FLG_KEYID_POS: key index bit position 0114 * @STA_KEY_NOT_VALID: key is invalid 0115 * @STA_KEY_FLG_WEP_13BYTES: set for 13 bytes WEP key 0116 * @STA_KEY_FLG_KEY_32BYTES: for non-wep key set for 32 bytes key 0117 * @STA_KEY_MULTICAST: set for multical key 0118 * @STA_KEY_MFP: key is used for Management Frame Protection 0119 */ 0120 enum iwl_sta_key_flag { 0121 STA_KEY_FLG_NO_ENC = (0 << 0), 0122 STA_KEY_FLG_WEP = (1 << 0), 0123 STA_KEY_FLG_CCM = (2 << 0), 0124 STA_KEY_FLG_TKIP = (3 << 0), 0125 STA_KEY_FLG_EXT = (4 << 0), 0126 STA_KEY_FLG_GCMP = (5 << 0), 0127 STA_KEY_FLG_CMAC = (6 << 0), 0128 STA_KEY_FLG_ENC_UNKNOWN = (7 << 0), 0129 STA_KEY_FLG_EN_MSK = (7 << 0), 0130 0131 STA_KEY_FLG_WEP_KEY_MAP = BIT(3), 0132 STA_KEY_FLG_KEYID_POS = 8, 0133 STA_KEY_FLG_KEYID_MSK = (3 << STA_KEY_FLG_KEYID_POS), 0134 STA_KEY_NOT_VALID = BIT(11), 0135 STA_KEY_FLG_WEP_13BYTES = BIT(12), 0136 STA_KEY_FLG_KEY_32BYTES = BIT(12), 0137 STA_KEY_MULTICAST = BIT(14), 0138 STA_KEY_MFP = BIT(15), 0139 }; 0140 0141 /** 0142 * enum iwl_sta_modify_flag - indicate to the fw what flag are being changed 0143 * @STA_MODIFY_QUEUE_REMOVAL: this command removes a queue 0144 * @STA_MODIFY_TID_DISABLE_TX: this command modifies %tid_disable_tx 0145 * @STA_MODIFY_UAPSD_ACS: this command modifies %uapsd_acs 0146 * @STA_MODIFY_ADD_BA_TID: this command modifies %add_immediate_ba_tid 0147 * @STA_MODIFY_REMOVE_BA_TID: this command modifies %remove_immediate_ba_tid 0148 * @STA_MODIFY_SLEEPING_STA_TX_COUNT: this command modifies %sleep_tx_count 0149 * @STA_MODIFY_PROT_TH: modify RTS threshold 0150 * @STA_MODIFY_QUEUES: modify the queues used by this station 0151 */ 0152 enum iwl_sta_modify_flag { 0153 STA_MODIFY_QUEUE_REMOVAL = BIT(0), 0154 STA_MODIFY_TID_DISABLE_TX = BIT(1), 0155 STA_MODIFY_UAPSD_ACS = BIT(2), 0156 STA_MODIFY_ADD_BA_TID = BIT(3), 0157 STA_MODIFY_REMOVE_BA_TID = BIT(4), 0158 STA_MODIFY_SLEEPING_STA_TX_COUNT = BIT(5), 0159 STA_MODIFY_PROT_TH = BIT(6), 0160 STA_MODIFY_QUEUES = BIT(7), 0161 }; 0162 0163 /** 0164 * enum iwl_sta_mode - station command mode 0165 * @STA_MODE_ADD: add new station 0166 * @STA_MODE_MODIFY: modify the station 0167 */ 0168 enum iwl_sta_mode { 0169 STA_MODE_ADD = 0, 0170 STA_MODE_MODIFY = 1, 0171 }; 0172 0173 /** 0174 * enum iwl_sta_sleep_flag - type of sleep of the station 0175 * @STA_SLEEP_STATE_AWAKE: station is awake 0176 * @STA_SLEEP_STATE_PS_POLL: station is PS-polling 0177 * @STA_SLEEP_STATE_UAPSD: station uses U-APSD 0178 * @STA_SLEEP_STATE_MOREDATA: set more-data bit on 0179 * (last) released frame 0180 */ 0181 enum iwl_sta_sleep_flag { 0182 STA_SLEEP_STATE_AWAKE = 0, 0183 STA_SLEEP_STATE_PS_POLL = BIT(0), 0184 STA_SLEEP_STATE_UAPSD = BIT(1), 0185 STA_SLEEP_STATE_MOREDATA = BIT(2), 0186 }; 0187 0188 #define STA_KEY_MAX_NUM (16) 0189 #define STA_KEY_IDX_INVALID (0xff) 0190 #define STA_KEY_MAX_DATA_KEY_NUM (4) 0191 #define IWL_MAX_GLOBAL_KEYS (4) 0192 #define STA_KEY_LEN_WEP40 (5) 0193 #define STA_KEY_LEN_WEP104 (13) 0194 0195 #define IWL_ADD_STA_STATUS_MASK 0xFF 0196 #define IWL_ADD_STA_BAID_VALID_MASK 0x8000 0197 #define IWL_ADD_STA_BAID_MASK 0x7F00 0198 #define IWL_ADD_STA_BAID_SHIFT 8 0199 0200 /** 0201 * struct iwl_mvm_add_sta_cmd_v7 - Add/modify a station in the fw's sta table. 0202 * ( REPLY_ADD_STA = 0x18 ) 0203 * @add_modify: see &enum iwl_sta_mode 0204 * @awake_acs: ACs to transmit data on while station is sleeping (for U-APSD) 0205 * @tid_disable_tx: is tid BIT(tid) enabled for Tx. Clear BIT(x) to enable 0206 * AMPDU for tid x. Set %STA_MODIFY_TID_DISABLE_TX to change this field. 0207 * @mac_id_n_color: the Mac context this station belongs to, 0208 * see &enum iwl_ctxt_id_and_color 0209 * @addr: station's MAC address 0210 * @reserved2: reserved 0211 * @sta_id: index of station in uCode's station table 0212 * @modify_mask: from &enum iwl_sta_modify_flag, selects what to change 0213 * @reserved3: reserved 0214 * @station_flags: look at &enum iwl_sta_flags 0215 * @station_flags_msk: what of %station_flags have changed, 0216 * also &enum iwl_sta_flags 0217 * @add_immediate_ba_tid: tid for which to add block-ack support (Rx) 0218 * Set %STA_MODIFY_ADD_BA_TID to use this field, and also set 0219 * add_immediate_ba_ssn. 0220 * @remove_immediate_ba_tid: tid for which to remove block-ack support (Rx) 0221 * Set %STA_MODIFY_REMOVE_BA_TID to use this field 0222 * @add_immediate_ba_ssn: ssn for the Rx block-ack session. Used together with 0223 * add_immediate_ba_tid. 0224 * @sleep_tx_count: number of packets to transmit to station even though it is 0225 * asleep. Used to synchronise PS-poll and u-APSD responses while ucode 0226 * keeps track of STA sleep state. 0227 * @sleep_state_flags: Look at &enum iwl_sta_sleep_flag. 0228 * @assoc_id: assoc_id to be sent in VHT PLCP (9-bit), for grp use 0, for AP 0229 * mac-addr. 0230 * @beamform_flags: beam forming controls 0231 * @tfd_queue_msk: tfd queues used by this station 0232 * 0233 * The device contains an internal table of per-station information, with info 0234 * on security keys, aggregation parameters, and Tx rates for initial Tx 0235 * attempt and any retries (set by REPLY_TX_LINK_QUALITY_CMD). 0236 * 0237 * ADD_STA sets up the table entry for one station, either creating a new 0238 * entry, or modifying a pre-existing one. 0239 */ 0240 struct iwl_mvm_add_sta_cmd_v7 { 0241 u8 add_modify; 0242 u8 awake_acs; 0243 __le16 tid_disable_tx; 0244 __le32 mac_id_n_color; 0245 u8 addr[ETH_ALEN]; /* _STA_ID_MODIFY_INFO_API_S_VER_1 */ 0246 __le16 reserved2; 0247 u8 sta_id; 0248 u8 modify_mask; 0249 __le16 reserved3; 0250 __le32 station_flags; 0251 __le32 station_flags_msk; 0252 u8 add_immediate_ba_tid; 0253 u8 remove_immediate_ba_tid; 0254 __le16 add_immediate_ba_ssn; 0255 __le16 sleep_tx_count; 0256 __le16 sleep_state_flags; 0257 __le16 assoc_id; 0258 __le16 beamform_flags; 0259 __le32 tfd_queue_msk; 0260 } __packed; /* ADD_STA_CMD_API_S_VER_7 */ 0261 0262 /** 0263 * enum iwl_sta_type - FW station types 0264 * ( REPLY_ADD_STA = 0x18 ) 0265 * @IWL_STA_LINK: Link station - normal RX and TX traffic. 0266 * @IWL_STA_GENERAL_PURPOSE: General purpose. In AP mode used for beacons 0267 * and probe responses. 0268 * @IWL_STA_MULTICAST: multicast traffic, 0269 * @IWL_STA_TDLS_LINK: TDLS link station 0270 * @IWL_STA_AUX_ACTIVITY: auxilary station (scan, ROC and so on). 0271 */ 0272 enum iwl_sta_type { 0273 IWL_STA_LINK, 0274 IWL_STA_GENERAL_PURPOSE, 0275 IWL_STA_MULTICAST, 0276 IWL_STA_TDLS_LINK, 0277 IWL_STA_AUX_ACTIVITY, 0278 }; 0279 0280 /** 0281 * struct iwl_mvm_add_sta_cmd - Add/modify a station in the fw's sta table. 0282 * ( REPLY_ADD_STA = 0x18 ) 0283 * @add_modify: see &enum iwl_sta_mode 0284 * @awake_acs: ACs to transmit data on while station is sleeping (for U-APSD) 0285 * @tid_disable_tx: is tid BIT(tid) enabled for Tx. Clear BIT(x) to enable 0286 * AMPDU for tid x. Set %STA_MODIFY_TID_DISABLE_TX to change this field. 0287 * @mac_id_n_color: the Mac context this station belongs to, 0288 * see &enum iwl_ctxt_id_and_color 0289 * @addr: station's MAC address 0290 * @reserved2: reserved 0291 * @sta_id: index of station in uCode's station table 0292 * @modify_mask: from &enum iwl_sta_modify_flag, selects what to change 0293 * @reserved3: reserved 0294 * @station_flags: look at &enum iwl_sta_flags 0295 * @station_flags_msk: what of %station_flags have changed, 0296 * also &enum iwl_sta_flags 0297 * @add_immediate_ba_tid: tid for which to add block-ack support (Rx) 0298 * Set %STA_MODIFY_ADD_BA_TID to use this field, and also set 0299 * add_immediate_ba_ssn. 0300 * @remove_immediate_ba_tid: tid for which to remove block-ack support (Rx) 0301 * Set %STA_MODIFY_REMOVE_BA_TID to use this field 0302 * @add_immediate_ba_ssn: ssn for the Rx block-ack session. Used together with 0303 * add_immediate_ba_tid. 0304 * @sleep_tx_count: number of packets to transmit to station even though it is 0305 * asleep. Used to synchronise PS-poll and u-APSD responses while ucode 0306 * keeps track of STA sleep state. 0307 * @station_type: type of this station. See &enum iwl_sta_type. 0308 * @sleep_state_flags: Look at &enum iwl_sta_sleep_flag. 0309 * @assoc_id: assoc_id to be sent in VHT PLCP (9-bit), for grp use 0, for AP 0310 * mac-addr. 0311 * @beamform_flags: beam forming controls 0312 * @tfd_queue_msk: tfd queues used by this station. 0313 * Obselete for new TX API (9 and above). 0314 * @rx_ba_window: aggregation window size 0315 * @sp_length: the size of the SP in actual number of frames 0316 * @uapsd_acs: 4 LS bits are trigger enabled ACs, 4 MS bits are the deliver 0317 * enabled ACs. 0318 * 0319 * The device contains an internal table of per-station information, with info 0320 * on security keys, aggregation parameters, and Tx rates for initial Tx 0321 * attempt and any retries (set by REPLY_TX_LINK_QUALITY_CMD). 0322 * 0323 * ADD_STA sets up the table entry for one station, either creating a new 0324 * entry, or modifying a pre-existing one. 0325 */ 0326 struct iwl_mvm_add_sta_cmd { 0327 u8 add_modify; 0328 u8 awake_acs; 0329 __le16 tid_disable_tx; 0330 __le32 mac_id_n_color; /* can be used for lmac id when using cmd v12 */ 0331 u8 addr[ETH_ALEN]; /* _STA_ID_MODIFY_INFO_API_S_VER_1 */ 0332 __le16 reserved2; 0333 u8 sta_id; 0334 u8 modify_mask; 0335 __le16 reserved3; 0336 __le32 station_flags; 0337 __le32 station_flags_msk; 0338 u8 add_immediate_ba_tid; 0339 u8 remove_immediate_ba_tid; 0340 __le16 add_immediate_ba_ssn; 0341 __le16 sleep_tx_count; 0342 u8 sleep_state_flags; 0343 u8 station_type; 0344 __le16 assoc_id; 0345 __le16 beamform_flags; 0346 __le32 tfd_queue_msk; 0347 __le16 rx_ba_window; 0348 u8 sp_length; 0349 u8 uapsd_acs; 0350 } __packed; /* ADD_STA_CMD_API_S_VER_10 */ 0351 0352 /** 0353 * struct iwl_mvm_add_sta_key_common - add/modify sta key common part 0354 * ( REPLY_ADD_STA_KEY = 0x17 ) 0355 * @sta_id: index of station in uCode's station table 0356 * @key_offset: key offset in key storage 0357 * @key_flags: type &enum iwl_sta_key_flag 0358 * @key: key material data 0359 * @rx_secur_seq_cnt: RX security sequence counter for the key 0360 */ 0361 struct iwl_mvm_add_sta_key_common { 0362 u8 sta_id; 0363 u8 key_offset; 0364 __le16 key_flags; 0365 u8 key[32]; 0366 u8 rx_secur_seq_cnt[16]; 0367 } __packed; 0368 0369 /** 0370 * struct iwl_mvm_add_sta_key_cmd_v1 - add/modify sta key 0371 * @common: see &struct iwl_mvm_add_sta_key_common 0372 * @tkip_rx_tsc_byte2: TSC[2] for key mix ph1 detection 0373 * @reserved: reserved 0374 * @tkip_rx_ttak: 10-byte unicast TKIP TTAK for Rx 0375 */ 0376 struct iwl_mvm_add_sta_key_cmd_v1 { 0377 struct iwl_mvm_add_sta_key_common common; 0378 u8 tkip_rx_tsc_byte2; 0379 u8 reserved; 0380 __le16 tkip_rx_ttak[5]; 0381 } __packed; /* ADD_MODIFY_STA_KEY_API_S_VER_1 */ 0382 0383 /** 0384 * struct iwl_mvm_add_sta_key_cmd - add/modify sta key 0385 * @common: see &struct iwl_mvm_add_sta_key_common 0386 * @rx_mic_key: TKIP RX unicast or multicast key 0387 * @tx_mic_key: TKIP TX key 0388 * @transmit_seq_cnt: TSC, transmit packet number 0389 * 0390 * Note: This is used for both v2 and v3, the difference being 0391 * in the way the common.rx_secur_seq_cnt is used, in v2 that's 0392 * the strange hole format, in v3 it's just a u64. 0393 */ 0394 struct iwl_mvm_add_sta_key_cmd { 0395 struct iwl_mvm_add_sta_key_common common; 0396 __le64 rx_mic_key; 0397 __le64 tx_mic_key; 0398 __le64 transmit_seq_cnt; 0399 } __packed; /* ADD_MODIFY_STA_KEY_API_S_VER_2, ADD_MODIFY_STA_KEY_API_S_VER_3 */ 0400 0401 /** 0402 * enum iwl_mvm_add_sta_rsp_status - status in the response to ADD_STA command 0403 * @ADD_STA_SUCCESS: operation was executed successfully 0404 * @ADD_STA_STATIONS_OVERLOAD: no room left in the fw's station table 0405 * @ADD_STA_IMMEDIATE_BA_FAILURE: can't add Rx block ack session 0406 * @ADD_STA_MODIFY_NON_EXISTING_STA: driver requested to modify a station that 0407 * doesn't exist. 0408 */ 0409 enum iwl_mvm_add_sta_rsp_status { 0410 ADD_STA_SUCCESS = 0x1, 0411 ADD_STA_STATIONS_OVERLOAD = 0x2, 0412 ADD_STA_IMMEDIATE_BA_FAILURE = 0x4, 0413 ADD_STA_MODIFY_NON_EXISTING_STA = 0x8, 0414 }; 0415 0416 /** 0417 * struct iwl_mvm_rm_sta_cmd - Add / modify a station in the fw's station table 0418 * ( REMOVE_STA = 0x19 ) 0419 * @sta_id: the station id of the station to be removed 0420 * @reserved: reserved 0421 */ 0422 struct iwl_mvm_rm_sta_cmd { 0423 u8 sta_id; 0424 u8 reserved[3]; 0425 } __packed; /* REMOVE_STA_CMD_API_S_VER_2 */ 0426 0427 /** 0428 * struct iwl_mvm_mgmt_mcast_key_cmd_v1 0429 * ( MGMT_MCAST_KEY = 0x1f ) 0430 * @ctrl_flags: &enum iwl_sta_key_flag 0431 * @igtk: IGTK key material 0432 * @k1: unused 0433 * @k2: unused 0434 * @sta_id: station ID that support IGTK 0435 * @key_id: key ID 0436 * @receive_seq_cnt: initial RSC/PN needed for replay check 0437 */ 0438 struct iwl_mvm_mgmt_mcast_key_cmd_v1 { 0439 __le32 ctrl_flags; 0440 u8 igtk[16]; 0441 u8 k1[16]; 0442 u8 k2[16]; 0443 __le32 key_id; 0444 __le32 sta_id; 0445 __le64 receive_seq_cnt; 0446 } __packed; /* SEC_MGMT_MULTICAST_KEY_CMD_API_S_VER_1 */ 0447 0448 /** 0449 * struct iwl_mvm_mgmt_mcast_key_cmd 0450 * ( MGMT_MCAST_KEY = 0x1f ) 0451 * @ctrl_flags: &enum iwl_sta_key_flag 0452 * @igtk: IGTK master key 0453 * @sta_id: station ID that support IGTK 0454 * @key_id: key ID 0455 * @receive_seq_cnt: initial RSC/PN needed for replay check 0456 */ 0457 struct iwl_mvm_mgmt_mcast_key_cmd { 0458 __le32 ctrl_flags; 0459 u8 igtk[32]; 0460 __le32 key_id; 0461 __le32 sta_id; 0462 __le64 receive_seq_cnt; 0463 } __packed; /* SEC_MGMT_MULTICAST_KEY_CMD_API_S_VER_2 */ 0464 0465 struct iwl_mvm_wep_key { 0466 u8 key_index; 0467 u8 key_offset; 0468 __le16 reserved1; 0469 u8 key_size; 0470 u8 reserved2[3]; 0471 u8 key[16]; 0472 } __packed; 0473 0474 struct iwl_mvm_wep_key_cmd { 0475 __le32 mac_id_n_color; 0476 u8 num_keys; 0477 u8 decryption_type; 0478 u8 flags; 0479 u8 reserved; 0480 struct iwl_mvm_wep_key wep_key[]; 0481 } __packed; /* SEC_CURR_WEP_KEY_CMD_API_S_VER_2 */ 0482 0483 /** 0484 * struct iwl_mvm_eosp_notification - EOSP notification from firmware 0485 * @remain_frame_count: # of frames remaining, non-zero if SP was cut 0486 * short by GO absence 0487 * @sta_id: station ID 0488 */ 0489 struct iwl_mvm_eosp_notification { 0490 __le32 remain_frame_count; 0491 __le32 sta_id; 0492 } __packed; /* UAPSD_EOSP_NTFY_API_S_VER_1 */ 0493 0494 #endif /* __iwl_fw_api_sta_h__ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |