Path: blob/main/sys/contrib/dev/iwlwifi/fw/api/sta.h
48426 views
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */1/*2* Copyright (C) 2012-2014, 2018-2021, 2023 Intel Corporation3* Copyright (C) 2013-2014 Intel Mobile Communications GmbH4* Copyright (C) 2016-2017 Intel Deutschland GmbH5*/6#ifndef __iwl_fw_api_sta_h__7#define __iwl_fw_api_sta_h__89/**10* enum iwl_sta_flags - flags for the ADD_STA host command11* @STA_FLG_REDUCED_TX_PWR_CTRL: reduced TX power (control frames)12* @STA_FLG_REDUCED_TX_PWR_DATA: reduced TX power (data frames)13* @STA_FLG_DISABLE_TX: set if TX should be disabled14* @STA_FLG_PS: set if STA is in Power Save15* @STA_FLG_DRAIN_FLOW: drain flow16* @STA_FLG_PAN: STA is for PAN interface17* @STA_FLG_CLASS_AUTH: station is authenticated18* @STA_FLG_CLASS_ASSOC: station is associated19* @STA_FLG_RTS_MIMO_PROT: station requires RTS MIMO protection (dynamic SMPS)20* @STA_FLG_MAX_AGG_SIZE_MSK: maximal size for A-MPDU (mask)21* @STA_FLG_MAX_AGG_SIZE_SHIFT: maximal size for A-MPDU (bit shift)22* @STA_FLG_MAX_AGG_SIZE_8K: maximal size for A-MPDU (8k supported)23* @STA_FLG_MAX_AGG_SIZE_16K: maximal size for A-MPDU (16k supported)24* @STA_FLG_MAX_AGG_SIZE_32K: maximal size for A-MPDU (32k supported)25* @STA_FLG_MAX_AGG_SIZE_64K: maximal size for A-MPDU (64k supported)26* @STA_FLG_MAX_AGG_SIZE_128K: maximal size for A-MPDU (128k supported)27* @STA_FLG_MAX_AGG_SIZE_256K: maximal size for A-MPDU (256k supported)28* @STA_FLG_MAX_AGG_SIZE_512K: maximal size for A-MPDU (512k supported)29* @STA_FLG_MAX_AGG_SIZE_1024K: maximal size for A-MPDU (1024k supported)30* @STA_FLG_MAX_AGG_SIZE_2M: maximal size for A-MPDU (2M supported)31* @STA_FLG_MAX_AGG_SIZE_4M: maximal size for A-MPDU (4M supported)32* @STA_FLG_AGG_MPDU_DENS_MSK: maximal MPDU density for Tx aggregation33* @STA_FLG_FAT_EN_MSK: support for channel width (for Tx). This flag is34* initialised by driver and can be updated by fw upon reception of35* action frames that can change the channel width. When cleared the fw36* will send all the frames in 20MHz even when FAT channel is requested.37* @STA_FLG_FAT_EN_20MHZ: no wide channels are supported, only 20 MHz38* @STA_FLG_FAT_EN_40MHZ: wide channels up to 40 MHz supported39* @STA_FLG_FAT_EN_80MHZ: wide channels up to 80 MHz supported40* @STA_FLG_FAT_EN_160MHZ: wide channels up to 160 MHz supported41* @STA_FLG_MIMO_EN_MSK: support for MIMO. This flag is initialised by the42* driver and can be updated by fw upon reception of action frames.43* @STA_FLG_MIMO_EN_SISO: no support for MIMO44* @STA_FLG_MIMO_EN_MIMO2: 2 streams supported45* @STA_FLG_MIMO_EN_MIMO3: 3 streams supported46* @STA_FLG_AGG_MPDU_DENS_MSK: A-MPDU density (mask)47* @STA_FLG_AGG_MPDU_DENS_SHIFT: A-MPDU density (bit shift)48* @STA_FLG_AGG_MPDU_DENS_2US: A-MPDU density (2 usec gap)49* @STA_FLG_AGG_MPDU_DENS_4US: A-MPDU density (4 usec gap)50* @STA_FLG_AGG_MPDU_DENS_8US: A-MPDU density (8 usec gap)51* @STA_FLG_AGG_MPDU_DENS_16US: A-MPDU density (16 usec gap)52*/53enum iwl_sta_flags {54STA_FLG_REDUCED_TX_PWR_CTRL = BIT(3),55STA_FLG_REDUCED_TX_PWR_DATA = BIT(6),5657STA_FLG_DISABLE_TX = BIT(4),5859STA_FLG_PS = BIT(8),60STA_FLG_DRAIN_FLOW = BIT(12),61STA_FLG_PAN = BIT(13),62STA_FLG_CLASS_AUTH = BIT(14),63STA_FLG_CLASS_ASSOC = BIT(15),64STA_FLG_RTS_MIMO_PROT = BIT(17),6566STA_FLG_MAX_AGG_SIZE_SHIFT = 19,67STA_FLG_MAX_AGG_SIZE_8K = (0 << STA_FLG_MAX_AGG_SIZE_SHIFT),68STA_FLG_MAX_AGG_SIZE_16K = (1 << STA_FLG_MAX_AGG_SIZE_SHIFT),69STA_FLG_MAX_AGG_SIZE_32K = (2 << STA_FLG_MAX_AGG_SIZE_SHIFT),70STA_FLG_MAX_AGG_SIZE_64K = (3 << STA_FLG_MAX_AGG_SIZE_SHIFT),71STA_FLG_MAX_AGG_SIZE_128K = (4 << STA_FLG_MAX_AGG_SIZE_SHIFT),72STA_FLG_MAX_AGG_SIZE_256K = (5 << STA_FLG_MAX_AGG_SIZE_SHIFT),73STA_FLG_MAX_AGG_SIZE_512K = (6 << STA_FLG_MAX_AGG_SIZE_SHIFT),74STA_FLG_MAX_AGG_SIZE_1024K = (7 << STA_FLG_MAX_AGG_SIZE_SHIFT),75STA_FLG_MAX_AGG_SIZE_2M = (8 << STA_FLG_MAX_AGG_SIZE_SHIFT),76STA_FLG_MAX_AGG_SIZE_4M = (9 << STA_FLG_MAX_AGG_SIZE_SHIFT),77STA_FLG_MAX_AGG_SIZE_MSK = (0xf << STA_FLG_MAX_AGG_SIZE_SHIFT),7879STA_FLG_AGG_MPDU_DENS_SHIFT = 23,80STA_FLG_AGG_MPDU_DENS_2US = (4 << STA_FLG_AGG_MPDU_DENS_SHIFT),81STA_FLG_AGG_MPDU_DENS_4US = (5 << STA_FLG_AGG_MPDU_DENS_SHIFT),82STA_FLG_AGG_MPDU_DENS_8US = (6 << STA_FLG_AGG_MPDU_DENS_SHIFT),83STA_FLG_AGG_MPDU_DENS_16US = (7 << STA_FLG_AGG_MPDU_DENS_SHIFT),84STA_FLG_AGG_MPDU_DENS_MSK = (7 << STA_FLG_AGG_MPDU_DENS_SHIFT),8586STA_FLG_FAT_EN_20MHZ = (0 << 26),87STA_FLG_FAT_EN_40MHZ = (1 << 26),88STA_FLG_FAT_EN_80MHZ = (2 << 26),89STA_FLG_FAT_EN_160MHZ = (3 << 26),90STA_FLG_FAT_EN_MSK = (3 << 26),9192STA_FLG_MIMO_EN_SISO = (0 << 28),93STA_FLG_MIMO_EN_MIMO2 = (1 << 28),94STA_FLG_MIMO_EN_MIMO3 = (2 << 28),95STA_FLG_MIMO_EN_MSK = (3 << 28),96};9798/**99* enum iwl_sta_key_flag - key flags for the ADD_STA host command100* @STA_KEY_FLG_NO_ENC: no encryption101* @STA_KEY_FLG_WEP: WEP encryption algorithm102* @STA_KEY_FLG_CCM: CCMP encryption algorithm103* @STA_KEY_FLG_TKIP: TKIP encryption algorithm104* @STA_KEY_FLG_EXT: extended cipher algorithm (depends on the FW support)105* @STA_KEY_FLG_GCMP: GCMP encryption algorithm106* @STA_KEY_FLG_CMAC: CMAC encryption algorithm107* @STA_KEY_FLG_ENC_UNKNOWN: unknown encryption algorithm108* @STA_KEY_FLG_EN_MSK: mask for encryption algorithmi value109* @STA_KEY_FLG_WEP_KEY_MAP: wep is either a group key (0 - legacy WEP) or from110* station info array (1 - n 1X mode)111* @STA_KEY_FLG_AMSDU_SPP: SPP (signaling and payload protected) A-MSDU112* @STA_KEY_FLG_KEYID_MSK: the index of the key113* @STA_KEY_FLG_KEYID_POS: key index bit position114* @STA_KEY_NOT_VALID: key is invalid115* @STA_KEY_FLG_WEP_13BYTES: set for 13 bytes WEP key116* @STA_KEY_FLG_KEY_32BYTES: for non-wep key set for 32 bytes key117* @STA_KEY_MULTICAST: set for multical key118* @STA_KEY_MFP: key is used for Management Frame Protection119*/120enum iwl_sta_key_flag {121STA_KEY_FLG_NO_ENC = (0 << 0),122STA_KEY_FLG_WEP = (1 << 0),123STA_KEY_FLG_CCM = (2 << 0),124STA_KEY_FLG_TKIP = (3 << 0),125STA_KEY_FLG_EXT = (4 << 0),126STA_KEY_FLG_GCMP = (5 << 0),127STA_KEY_FLG_CMAC = (6 << 0),128STA_KEY_FLG_ENC_UNKNOWN = (7 << 0),129STA_KEY_FLG_EN_MSK = (7 << 0),130131STA_KEY_FLG_WEP_KEY_MAP = BIT(3),132STA_KEY_FLG_AMSDU_SPP = BIT(7),133STA_KEY_FLG_KEYID_POS = 8,134STA_KEY_FLG_KEYID_MSK = (3 << STA_KEY_FLG_KEYID_POS),135STA_KEY_NOT_VALID = BIT(11),136STA_KEY_FLG_WEP_13BYTES = BIT(12),137STA_KEY_FLG_KEY_32BYTES = BIT(12),138STA_KEY_MULTICAST = BIT(14),139STA_KEY_MFP = BIT(15),140};141142/**143* enum iwl_sta_modify_flag - indicate to the fw what flag are being changed144* @STA_MODIFY_QUEUE_REMOVAL: this command removes a queue145* @STA_MODIFY_TID_DISABLE_TX: this command modifies %tid_disable_tx146* @STA_MODIFY_UAPSD_ACS: this command modifies %uapsd_acs147* @STA_MODIFY_ADD_BA_TID: this command modifies %add_immediate_ba_tid148* @STA_MODIFY_REMOVE_BA_TID: this command modifies %remove_immediate_ba_tid149* @STA_MODIFY_SLEEPING_STA_TX_COUNT: this command modifies %sleep_tx_count150* @STA_MODIFY_PROT_TH: modify RTS threshold151* @STA_MODIFY_QUEUES: modify the queues used by this station152*/153enum iwl_sta_modify_flag {154STA_MODIFY_QUEUE_REMOVAL = BIT(0),155STA_MODIFY_TID_DISABLE_TX = BIT(1),156STA_MODIFY_UAPSD_ACS = BIT(2),157STA_MODIFY_ADD_BA_TID = BIT(3),158STA_MODIFY_REMOVE_BA_TID = BIT(4),159STA_MODIFY_SLEEPING_STA_TX_COUNT = BIT(5),160STA_MODIFY_PROT_TH = BIT(6),161STA_MODIFY_QUEUES = BIT(7),162};163164/**165* enum iwl_sta_mode - station command mode166* @STA_MODE_ADD: add new station167* @STA_MODE_MODIFY: modify the station168*/169enum iwl_sta_mode {170STA_MODE_ADD = 0,171STA_MODE_MODIFY = 1,172};173174/**175* enum iwl_sta_sleep_flag - type of sleep of the station176* @STA_SLEEP_STATE_AWAKE: station is awake177* @STA_SLEEP_STATE_PS_POLL: station is PS-polling178* @STA_SLEEP_STATE_UAPSD: station uses U-APSD179* @STA_SLEEP_STATE_MOREDATA: set more-data bit on180* (last) released frame181*/182enum iwl_sta_sleep_flag {183STA_SLEEP_STATE_AWAKE = 0,184STA_SLEEP_STATE_PS_POLL = BIT(0),185STA_SLEEP_STATE_UAPSD = BIT(1),186STA_SLEEP_STATE_MOREDATA = BIT(2),187};188189#define STA_KEY_MAX_NUM (16)190#define STA_KEY_IDX_INVALID (0xff)191#define STA_KEY_MAX_DATA_KEY_NUM (4)192#define IWL_MAX_GLOBAL_KEYS (4)193#define IWL_MAX_NUM_IGTKS 2194#define STA_KEY_LEN_WEP40 (5)195#define STA_KEY_LEN_WEP104 (13)196197#define IWL_ADD_STA_STATUS_MASK 0xFF198#define IWL_ADD_STA_BAID_VALID_MASK 0x8000199#define IWL_ADD_STA_BAID_MASK 0x7F00200#define IWL_ADD_STA_BAID_SHIFT 8201202/**203* struct iwl_mvm_add_sta_cmd_v7 - Add/modify a station in the fw's sta table.204* ( REPLY_ADD_STA = 0x18 )205* @add_modify: see &enum iwl_sta_mode206* @awake_acs: ACs to transmit data on while station is sleeping (for U-APSD)207* @tid_disable_tx: is tid BIT(tid) enabled for Tx. Clear BIT(x) to enable208* AMPDU for tid x. Set %STA_MODIFY_TID_DISABLE_TX to change this field.209* @mac_id_n_color: the Mac context this station belongs to,210* see &enum iwl_ctxt_id_and_color211* @addr: station's MAC address212* @reserved2: reserved213* @sta_id: index of station in uCode's station table214* @modify_mask: from &enum iwl_sta_modify_flag, selects what to change215* @reserved3: reserved216* @station_flags: look at &enum iwl_sta_flags217* @station_flags_msk: what of %station_flags have changed,218* also &enum iwl_sta_flags219* @add_immediate_ba_tid: tid for which to add block-ack support (Rx)220* Set %STA_MODIFY_ADD_BA_TID to use this field, and also set221* add_immediate_ba_ssn.222* @remove_immediate_ba_tid: tid for which to remove block-ack support (Rx)223* Set %STA_MODIFY_REMOVE_BA_TID to use this field224* @add_immediate_ba_ssn: ssn for the Rx block-ack session. Used together with225* add_immediate_ba_tid.226* @sleep_tx_count: number of packets to transmit to station even though it is227* asleep. Used to synchronise PS-poll and u-APSD responses while ucode228* keeps track of STA sleep state.229* @sleep_state_flags: Look at &enum iwl_sta_sleep_flag.230* @assoc_id: assoc_id to be sent in VHT PLCP (9-bit), for grp use 0, for AP231* mac-addr.232* @beamform_flags: beam forming controls233* @tfd_queue_msk: tfd queues used by this station234*235* The device contains an internal table of per-station information, with info236* on security keys, aggregation parameters, and Tx rates for initial Tx237* attempt and any retries (set by REPLY_TX_LINK_QUALITY_CMD).238*239* ADD_STA sets up the table entry for one station, either creating a new240* entry, or modifying a pre-existing one.241*/242struct iwl_mvm_add_sta_cmd_v7 {243u8 add_modify;244u8 awake_acs;245__le16 tid_disable_tx;246__le32 mac_id_n_color;247u8 addr[ETH_ALEN]; /* _STA_ID_MODIFY_INFO_API_S_VER_1 */248__le16 reserved2;249u8 sta_id;250u8 modify_mask;251__le16 reserved3;252__le32 station_flags;253__le32 station_flags_msk;254u8 add_immediate_ba_tid;255u8 remove_immediate_ba_tid;256__le16 add_immediate_ba_ssn;257__le16 sleep_tx_count;258__le16 sleep_state_flags;259__le16 assoc_id;260__le16 beamform_flags;261__le32 tfd_queue_msk;262} __packed; /* ADD_STA_CMD_API_S_VER_7 */263264/**265* enum iwl_sta_type - FW station types266* ( REPLY_ADD_STA = 0x18 )267* @IWL_STA_LINK: Link station - normal RX and TX traffic.268* @IWL_STA_GENERAL_PURPOSE: General purpose. In AP mode used for beacons269* and probe responses.270* @IWL_STA_MULTICAST: multicast traffic,271* @IWL_STA_TDLS_LINK: TDLS link station272* @IWL_STA_AUX_ACTIVITY: auxilary station (scan, ROC and so on).273*/274enum iwl_sta_type {275IWL_STA_LINK,276IWL_STA_GENERAL_PURPOSE,277IWL_STA_MULTICAST,278IWL_STA_TDLS_LINK,279IWL_STA_AUX_ACTIVITY,280};281282/**283* struct iwl_mvm_add_sta_cmd - Add/modify a station in the fw's sta table.284* ( REPLY_ADD_STA = 0x18 )285* @add_modify: see &enum iwl_sta_mode286* @awake_acs: ACs to transmit data on while station is sleeping (for U-APSD)287* @tid_disable_tx: is tid BIT(tid) enabled for Tx. Clear BIT(x) to enable288* AMPDU for tid x. Set %STA_MODIFY_TID_DISABLE_TX to change this field.289* @mac_id_n_color: the Mac context this station belongs to,290* see &enum iwl_ctxt_id_and_color291* @addr: station's MAC address292* @reserved2: reserved293* @sta_id: index of station in uCode's station table294* @modify_mask: from &enum iwl_sta_modify_flag, selects what to change295* @reserved3: reserved296* @station_flags: look at &enum iwl_sta_flags297* @station_flags_msk: what of %station_flags have changed,298* also &enum iwl_sta_flags299* @add_immediate_ba_tid: tid for which to add block-ack support (Rx)300* Set %STA_MODIFY_ADD_BA_TID to use this field, and also set301* add_immediate_ba_ssn.302* @remove_immediate_ba_tid: tid for which to remove block-ack support (Rx)303* Set %STA_MODIFY_REMOVE_BA_TID to use this field304* @add_immediate_ba_ssn: ssn for the Rx block-ack session. Used together with305* add_immediate_ba_tid.306* @sleep_tx_count: number of packets to transmit to station even though it is307* asleep. Used to synchronise PS-poll and u-APSD responses while ucode308* keeps track of STA sleep state.309* @station_type: type of this station. See &enum iwl_sta_type.310* @sleep_state_flags: Look at &enum iwl_sta_sleep_flag.311* @assoc_id: assoc_id to be sent in VHT PLCP (9-bit), for grp use 0, for AP312* mac-addr.313* @beamform_flags: beam forming controls314* @tfd_queue_msk: tfd queues used by this station.315* Obselete for new TX API (9 and above).316* @rx_ba_window: aggregation window size317* @sp_length: the size of the SP in actual number of frames318* @uapsd_acs: 4 LS bits are trigger enabled ACs, 4 MS bits are the deliver319* enabled ACs.320*321* The device contains an internal table of per-station information, with info322* on security keys, aggregation parameters, and Tx rates for initial Tx323* attempt and any retries (set by REPLY_TX_LINK_QUALITY_CMD).324*325* ADD_STA sets up the table entry for one station, either creating a new326* entry, or modifying a pre-existing one.327*/328struct iwl_mvm_add_sta_cmd {329u8 add_modify;330u8 awake_acs;331__le16 tid_disable_tx;332__le32 mac_id_n_color; /* can be used for lmac id when using cmd v12 */333u8 addr[ETH_ALEN]; /* _STA_ID_MODIFY_INFO_API_S_VER_1 */334__le16 reserved2;335u8 sta_id;336u8 modify_mask;337__le16 reserved3;338__le32 station_flags;339__le32 station_flags_msk;340u8 add_immediate_ba_tid;341u8 remove_immediate_ba_tid;342__le16 add_immediate_ba_ssn;343__le16 sleep_tx_count;344u8 sleep_state_flags;345u8 station_type;346__le16 assoc_id;347__le16 beamform_flags;348__le32 tfd_queue_msk;349__le16 rx_ba_window;350u8 sp_length;351u8 uapsd_acs;352} __packed; /* ADD_STA_CMD_API_S_VER_10 */353354/**355* struct iwl_mvm_add_sta_key_common - add/modify sta key common part356* ( REPLY_ADD_STA_KEY = 0x17 )357* @sta_id: index of station in uCode's station table358* @key_offset: key offset in key storage359* @key_flags: type &enum iwl_sta_key_flag360* @key: key material data361* @rx_secur_seq_cnt: RX security sequence counter for the key362*/363struct iwl_mvm_add_sta_key_common {364u8 sta_id;365u8 key_offset;366__le16 key_flags;367u8 key[32];368u8 rx_secur_seq_cnt[16];369} __packed;370371/**372* struct iwl_mvm_add_sta_key_cmd_v1 - add/modify sta key373* @common: see &struct iwl_mvm_add_sta_key_common374* @tkip_rx_tsc_byte2: TSC[2] for key mix ph1 detection375* @reserved: reserved376* @tkip_rx_ttak: 10-byte unicast TKIP TTAK for Rx377*/378struct iwl_mvm_add_sta_key_cmd_v1 {379struct iwl_mvm_add_sta_key_common common;380u8 tkip_rx_tsc_byte2;381u8 reserved;382__le16 tkip_rx_ttak[5];383} __packed; /* ADD_MODIFY_STA_KEY_API_S_VER_1 */384385/**386* struct iwl_mvm_add_sta_key_cmd - add/modify sta key387* @common: see &struct iwl_mvm_add_sta_key_common388* @rx_mic_key: TKIP RX unicast or multicast key389* @tx_mic_key: TKIP TX key390* @transmit_seq_cnt: TSC, transmit packet number391*392* Note: This is used for both v2 and v3, the difference being393* in the way the common.rx_secur_seq_cnt is used, in v2 that's394* the strange hole format, in v3 it's just a u64.395*/396struct iwl_mvm_add_sta_key_cmd {397struct iwl_mvm_add_sta_key_common common;398__le64 rx_mic_key;399__le64 tx_mic_key;400__le64 transmit_seq_cnt;401} __packed; /* ADD_MODIFY_STA_KEY_API_S_VER_2, ADD_MODIFY_STA_KEY_API_S_VER_3 */402403/**404* enum iwl_mvm_add_sta_rsp_status - status in the response to ADD_STA command405* @ADD_STA_SUCCESS: operation was executed successfully406* @ADD_STA_STATIONS_OVERLOAD: no room left in the fw's station table407* @ADD_STA_IMMEDIATE_BA_FAILURE: can't add Rx block ack session408* @ADD_STA_MODIFY_NON_EXISTING_STA: driver requested to modify a station that409* doesn't exist.410*/411enum iwl_mvm_add_sta_rsp_status {412ADD_STA_SUCCESS = 0x1,413ADD_STA_STATIONS_OVERLOAD = 0x2,414ADD_STA_IMMEDIATE_BA_FAILURE = 0x4,415ADD_STA_MODIFY_NON_EXISTING_STA = 0x8,416};417418/**419* struct iwl_mvm_rm_sta_cmd - Add / modify a station in the fw's station table420* ( REMOVE_STA = 0x19 )421* @sta_id: the station id of the station to be removed422* @reserved: reserved423*/424struct iwl_mvm_rm_sta_cmd {425u8 sta_id;426u8 reserved[3];427} __packed; /* REMOVE_STA_CMD_API_S_VER_2 */428429/**430* struct iwl_mvm_mgmt_mcast_key_cmd_v1431* ( MGMT_MCAST_KEY = 0x1f )432* @ctrl_flags: &enum iwl_sta_key_flag433* @igtk: IGTK key material434* @k1: unused435* @k2: unused436* @sta_id: station ID that support IGTK437* @key_id: key ID438* @receive_seq_cnt: initial RSC/PN needed for replay check439*/440struct iwl_mvm_mgmt_mcast_key_cmd_v1 {441__le32 ctrl_flags;442u8 igtk[16];443u8 k1[16];444u8 k2[16];445__le32 key_id;446__le32 sta_id;447__le64 receive_seq_cnt;448} __packed; /* SEC_MGMT_MULTICAST_KEY_CMD_API_S_VER_1 */449450/**451* struct iwl_mvm_mgmt_mcast_key_cmd452* ( MGMT_MCAST_KEY = 0x1f )453* @ctrl_flags: &enum iwl_sta_key_flag454* @igtk: IGTK master key455* @sta_id: station ID that support IGTK456* @key_id: key ID457* @receive_seq_cnt: initial RSC/PN needed for replay check458*/459struct iwl_mvm_mgmt_mcast_key_cmd {460__le32 ctrl_flags;461u8 igtk[32];462__le32 key_id;463__le32 sta_id;464__le64 receive_seq_cnt;465} __packed; /* SEC_MGMT_MULTICAST_KEY_CMD_API_S_VER_2 */466467struct iwl_mvm_wep_key {468u8 key_index;469u8 key_offset;470__le16 reserved1;471u8 key_size;472u8 reserved2[3];473u8 key[16];474} __packed;475476struct iwl_mvm_wep_key_cmd {477__le32 mac_id_n_color;478u8 num_keys;479u8 decryption_type;480u8 flags;481u8 reserved;482#if defined(__linux__)483struct iwl_mvm_wep_key wep_key[];484#elif defined(__FreeBSD__)485struct iwl_mvm_wep_key wep_key[0];486#endif487} __packed; /* SEC_CURR_WEP_KEY_CMD_API_S_VER_2 */488489/**490* struct iwl_mvm_eosp_notification - EOSP notification from firmware491* @remain_frame_count: # of frames remaining, non-zero if SP was cut492* short by GO absence493* @sta_id: station ID494*/495struct iwl_mvm_eosp_notification {496__le32 remain_frame_count;497__le32 sta_id;498} __packed; /* UAPSD_EOSP_NTFY_API_S_VER_1 */499500#endif /* __iwl_fw_api_sta_h__ */501502503