18e99ea8dSJohannes Berg /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
28e99ea8dSJohannes Berg /*
39be162a7SMiri Korenblit  * Copyright (C) 2012-2014, 2018-2019, 2021-2022 Intel Corporation
48e99ea8dSJohannes Berg  * Copyright (C) 2013-2015 Intel Mobile Communications GmbH
58e99ea8dSJohannes Berg  * Copyright (C) 2016-2017 Intel Deutschland GmbH
68e99ea8dSJohannes Berg  */
7d172a5efSJohannes Berg #ifndef __iwl_fw_api_mac_cfg_h__
8d172a5efSJohannes Berg #define __iwl_fw_api_mac_cfg_h__
9d172a5efSJohannes Berg 
109be162a7SMiri Korenblit #include "mac.h"
119be162a7SMiri Korenblit 
12d172a5efSJohannes Berg /**
13d172a5efSJohannes Berg  * enum iwl_mac_conf_subcmd_ids - mac configuration command IDs
14d172a5efSJohannes Berg  */
15d172a5efSJohannes Berg enum iwl_mac_conf_subcmd_ids {
16d172a5efSJohannes Berg 	/**
1709f1ee8cSShaul Triebitz 	 * @LOW_LATENCY_CMD: &struct iwl_mac_low_latency_cmd
1809f1ee8cSShaul Triebitz 	 */
1909f1ee8cSShaul Triebitz 	LOW_LATENCY_CMD = 0x3,
2009f1ee8cSShaul Triebitz 	/**
2174a10252SSara Sharon 	 * @CHANNEL_SWITCH_TIME_EVENT_CMD: &struct iwl_chan_switch_te_cmd
2274a10252SSara Sharon 	 */
2374a10252SSara Sharon 	CHANNEL_SWITCH_TIME_EVENT_CMD = 0x4,
2474a10252SSara Sharon 	/**
25449a29d0SLior Cohen 	 * @MISSED_VAP_NOTIF: &struct iwl_missed_vap_notif
26449a29d0SLior Cohen 	 */
27449a29d0SLior Cohen 	MISSED_VAP_NOTIF = 0xFA,
28449a29d0SLior Cohen 	/**
29fe959c7bSEmmanuel Grumbach 	 * @SESSION_PROTECTION_CMD: &struct iwl_mvm_session_prot_cmd
30fe959c7bSEmmanuel Grumbach 	 */
31fe959c7bSEmmanuel Grumbach 	SESSION_PROTECTION_CMD = 0x5,
32ad12b231SNathan Errera 	/**
33ad12b231SNathan Errera 	 * @CANCEL_CHANNEL_SWITCH_CMD: &struct iwl_cancel_channel_switch_cmd
34ad12b231SNathan Errera 	 */
35ad12b231SNathan Errera 	CANCEL_CHANNEL_SWITCH_CMD = 0x6,
369be162a7SMiri Korenblit 	/**
379be162a7SMiri Korenblit 	 * @MAC_CONFIG_CMD: &struct iwl_mac_config_cmd
389be162a7SMiri Korenblit 	 */
399be162a7SMiri Korenblit 	MAC_CONFIG_CMD = 0x8,
40fe959c7bSEmmanuel Grumbach 	/**
4155eb1c5fSMiri Korenblit 	 * @LINK_CONFIG_CMD: &struct iwl_link_config_cmd
4255eb1c5fSMiri Korenblit 	 */
4355eb1c5fSMiri Korenblit 	LINK_CONFIG_CMD = 0x9,
4455eb1c5fSMiri Korenblit 	/**
45006c152aSMiri Korenblit 	 * @STA_CONFIG_CMD: &struct iwl_mvm_sta_cfg_cmd
46006c152aSMiri Korenblit 	 */
47006c152aSMiri Korenblit 	STA_CONFIG_CMD = 0xA,
48006c152aSMiri Korenblit 	/**
49006c152aSMiri Korenblit 	 * @AUX_STA_CMD: &struct iwl_mvm_aux_sta_cmd
50006c152aSMiri Korenblit 	 */
51006c152aSMiri Korenblit 	AUX_STA_CMD = 0xB,
52006c152aSMiri Korenblit 	/**
53006c152aSMiri Korenblit 	 * @STA_REMOVE_CMD: &struct iwl_mvm_remove_sta_cmd
54006c152aSMiri Korenblit 	 */
55006c152aSMiri Korenblit 	STA_REMOVE_CMD = 0xC,
56006c152aSMiri Korenblit 	/**
57006c152aSMiri Korenblit 	 * @STA_DISABLE_TX_CMD: &struct iwl_mvm_sta_disable_tx_cmd
58006c152aSMiri Korenblit 	 */
59006c152aSMiri Korenblit 	STA_DISABLE_TX_CMD = 0xD,
60006c152aSMiri Korenblit 	/**
61fe959c7bSEmmanuel Grumbach 	 * @SESSION_PROTECTION_NOTIF: &struct iwl_mvm_session_prot_notif
62fe959c7bSEmmanuel Grumbach 	 */
63fe959c7bSEmmanuel Grumbach 	SESSION_PROTECTION_NOTIF = 0xFB,
64fe959c7bSEmmanuel Grumbach 
65fe959c7bSEmmanuel Grumbach 	/**
6686e177d8SGregory Greenman 	 * @PROBE_RESPONSE_DATA_NOTIF: &struct iwl_probe_resp_data_notif
6786e177d8SGregory Greenman 	 */
6886e177d8SGregory Greenman 	PROBE_RESPONSE_DATA_NOTIF = 0xFC,
6986e177d8SGregory Greenman 
7086e177d8SGregory Greenman 	/**
716905eb1cSNathan Errera 	 * @CHANNEL_SWITCH_START_NOTIF: &struct iwl_channel_switch_start_notif
72d172a5efSJohannes Berg 	 */
736905eb1cSNathan Errera 	CHANNEL_SWITCH_START_NOTIF = 0xFF,
74ad12b231SNathan Errera 
75ad12b231SNathan Errera 	/**
76ad12b231SNathan Errera 	 *@CHANNEL_SWITCH_ERROR_NOTIF: &struct iwl_channel_switch_error_notif
77ad12b231SNathan Errera 	 */
78ad12b231SNathan Errera 	CHANNEL_SWITCH_ERROR_NOTIF = 0xF9,
79d172a5efSJohannes Berg };
80d172a5efSJohannes Berg 
8186e177d8SGregory Greenman #define IWL_P2P_NOA_DESC_COUNT	(2)
8286e177d8SGregory Greenman 
8386e177d8SGregory Greenman /**
8486e177d8SGregory Greenman  * struct iwl_p2p_noa_attr - NOA attr contained in probe resp FW notification
8586e177d8SGregory Greenman  *
8686e177d8SGregory Greenman  * @id: attribute id
8786e177d8SGregory Greenman  * @len_low: length low half
8886e177d8SGregory Greenman  * @len_high: length high half
8986e177d8SGregory Greenman  * @idx: instance of NoA timing
9086e177d8SGregory Greenman  * @ctwin: GO's ct window and pwer save capability
9186e177d8SGregory Greenman  * @desc: NoA descriptor
9286e177d8SGregory Greenman  * @reserved: reserved for alignment purposes
9386e177d8SGregory Greenman  */
9486e177d8SGregory Greenman struct iwl_p2p_noa_attr {
9586e177d8SGregory Greenman 	u8 id;
9686e177d8SGregory Greenman 	u8 len_low;
9786e177d8SGregory Greenman 	u8 len_high;
9886e177d8SGregory Greenman 	u8 idx;
9986e177d8SGregory Greenman 	u8 ctwin;
10086e177d8SGregory Greenman 	struct ieee80211_p2p_noa_desc desc[IWL_P2P_NOA_DESC_COUNT];
10186e177d8SGregory Greenman 	u8 reserved;
10286e177d8SGregory Greenman } __packed;
10386e177d8SGregory Greenman 
10486e177d8SGregory Greenman #define IWL_PROBE_RESP_DATA_NO_CSA (0xff)
10586e177d8SGregory Greenman 
10686e177d8SGregory Greenman /**
10786e177d8SGregory Greenman  * struct iwl_probe_resp_data_notif - notification with NOA and CSA counter
10886e177d8SGregory Greenman  *
10986e177d8SGregory Greenman  * @mac_id: the mac which should send the probe response
11086e177d8SGregory Greenman  * @noa_active: notifies if the noa attribute should be handled
11186e177d8SGregory Greenman  * @noa_attr: P2P NOA attribute
11286e177d8SGregory Greenman  * @csa_counter: current csa counter
11386e177d8SGregory Greenman  * @reserved: reserved for alignment purposes
11486e177d8SGregory Greenman  */
11586e177d8SGregory Greenman struct iwl_probe_resp_data_notif {
11686e177d8SGregory Greenman 	__le32 mac_id;
11786e177d8SGregory Greenman 	__le32 noa_active;
11886e177d8SGregory Greenman 	struct iwl_p2p_noa_attr noa_attr;
11986e177d8SGregory Greenman 	u8 csa_counter;
12086e177d8SGregory Greenman 	u8 reserved[3];
12186e177d8SGregory Greenman } __packed; /* PROBE_RESPONSE_DATA_NTFY_API_S_VER_1 */
12286e177d8SGregory Greenman 
123d172a5efSJohannes Berg /**
124449a29d0SLior Cohen  * struct iwl_missed_vap_notif - notification of missing vap detection
125449a29d0SLior Cohen  *
126449a29d0SLior Cohen  * @mac_id: the mac for which the ucode sends the notification for
127449a29d0SLior Cohen  * @num_beacon_intervals_elapsed: beacons elpased with no vap profile inside
128449a29d0SLior Cohen  * @profile_periodicity: beacons period to have our profile inside
129449a29d0SLior Cohen  * @reserved: reserved for alignment purposes
130449a29d0SLior Cohen  */
131449a29d0SLior Cohen struct iwl_missed_vap_notif {
132449a29d0SLior Cohen 	__le32 mac_id;
133449a29d0SLior Cohen 	u8 num_beacon_intervals_elapsed;
134449a29d0SLior Cohen 	u8 profile_periodicity;
135449a29d0SLior Cohen 	u8 reserved[2];
136449a29d0SLior Cohen } __packed; /* MISSED_VAP_NTFY_API_S_VER_1 */
137449a29d0SLior Cohen 
138449a29d0SLior Cohen /**
1396905eb1cSNathan Errera  * struct iwl_channel_switch_start_notif - Channel switch start notification
140d172a5efSJohannes Berg  *
141d172a5efSJohannes Berg  * @id_and_color: ID and color of the MAC
142d172a5efSJohannes Berg  */
143fa53608bSGregory Greenman struct iwl_channel_switch_start_notif_v1 {
144d172a5efSJohannes Berg 	__le32 id_and_color;
145d172a5efSJohannes Berg } __packed; /* CHANNEL_SWITCH_START_NTFY_API_S_VER_1 */
146d172a5efSJohannes Berg 
147fa53608bSGregory Greenman /**
148fa53608bSGregory Greenman  * struct iwl_channel_switch_start_notif - Channel switch start notification
149fa53608bSGregory Greenman  *
150fa53608bSGregory Greenman  * @link_id: FW link id
151fa53608bSGregory Greenman  */
152fa53608bSGregory Greenman struct iwl_channel_switch_start_notif {
153fa53608bSGregory Greenman 	__le32 link_id;
154fa53608bSGregory Greenman } __packed; /* CHANNEL_SWITCH_START_NTFY_API_S_VER_3 */
155fa53608bSGregory Greenman 
156ad12b231SNathan Errera #define CS_ERR_COUNT_ERROR BIT(0)
157ad12b231SNathan Errera #define CS_ERR_LONG_DELAY_AFTER_CS BIT(1)
158ad12b231SNathan Errera #define CS_ERR_LONG_TX_BLOCK BIT(2)
159ad12b231SNathan Errera #define CS_ERR_TX_BLOCK_TIMER_EXPIRED BIT(3)
160ad12b231SNathan Errera 
161ad12b231SNathan Errera /**
162fa53608bSGregory Greenman  * struct iwl_channel_switch_error_notif_v1 - Channel switch error notification
163ad12b231SNathan Errera  *
164ad12b231SNathan Errera  * @mac_id: the mac for which the ucode sends the notification for
165ad12b231SNathan Errera  * @csa_err_mask: mask of channel switch error that can occur
166ad12b231SNathan Errera  */
167fa53608bSGregory Greenman struct iwl_channel_switch_error_notif_v1 {
168ad12b231SNathan Errera 	__le32 mac_id;
169ad12b231SNathan Errera 	__le32 csa_err_mask;
170ad12b231SNathan Errera } __packed; /* CHANNEL_SWITCH_ERROR_NTFY_API_S_VER_1 */
171ad12b231SNathan Errera 
172ad12b231SNathan Errera /**
173fa53608bSGregory Greenman  * struct iwl_channel_switch_error_notif - Channel switch error notification
174fa53608bSGregory Greenman  *
175fa53608bSGregory Greenman  * @link_id: FW link id
176fa53608bSGregory Greenman  * @csa_err_mask: mask of channel switch error that can occur
177fa53608bSGregory Greenman  */
178fa53608bSGregory Greenman struct iwl_channel_switch_error_notif {
179fa53608bSGregory Greenman 	__le32 link_id;
180fa53608bSGregory Greenman 	__le32 csa_err_mask;
181fa53608bSGregory Greenman } __packed; /* CHANNEL_SWITCH_ERROR_NTFY_API_S_VER_2 */
182fa53608bSGregory Greenman 
183fa53608bSGregory Greenman /**
184ad12b231SNathan Errera  * struct iwl_cancel_channel_switch_cmd - Cancel Channel Switch command
185ad12b231SNathan Errera  *
186fa53608bSGregory Greenman  * @id: the id of the link or mac that should cancel the channel switch
187ad12b231SNathan Errera  */
188ad12b231SNathan Errera struct iwl_cancel_channel_switch_cmd {
189fa53608bSGregory Greenman 	__le32 id;
190ad12b231SNathan Errera } __packed; /* MAC_CANCEL_CHANNEL_SWITCH_S_VER_1 */
191ad12b231SNathan Errera 
19209f1ee8cSShaul Triebitz /**
19374a10252SSara Sharon  * struct iwl_chan_switch_te_cmd - Channel Switch Time Event command
19474a10252SSara Sharon  *
19574a10252SSara Sharon  * @mac_id: MAC ID for channel switch
19659505471SJohannes Berg  * @action: action to perform, see &enum iwl_ctxt_action
19774a10252SSara Sharon  * @tsf: beacon tsf
19874a10252SSara Sharon  * @cs_count: channel switch count from CSA/eCSA IE
19974a10252SSara Sharon  * @cs_delayed_bcn_count: if set to N (!= 0) GO/AP can delay N beacon intervals
20074a10252SSara Sharon  *	at the new channel after the channel switch, otherwise (N == 0) expect
20174a10252SSara Sharon  *	beacon right after the channel switch.
20274a10252SSara Sharon  * @cs_mode: 1 - quiet, 0 - otherwise
20374a10252SSara Sharon  * @reserved: reserved for alignment purposes
20474a10252SSara Sharon  */
20574a10252SSara Sharon struct iwl_chan_switch_te_cmd {
20674a10252SSara Sharon 	__le32 mac_id;
20774a10252SSara Sharon 	__le32 action;
20874a10252SSara Sharon 	__le32 tsf;
20974a10252SSara Sharon 	u8 cs_count;
21074a10252SSara Sharon 	u8 cs_delayed_bcn_count;
21174a10252SSara Sharon 	u8 cs_mode;
21274a10252SSara Sharon 	u8 reserved;
21374a10252SSara Sharon } __packed; /* MAC_CHANNEL_SWITCH_TIME_EVENT_S_VER_2 */
21474a10252SSara Sharon 
21574a10252SSara Sharon /**
21609f1ee8cSShaul Triebitz  * struct iwl_mac_low_latency_cmd - set/clear mac to 'low-latency mode'
21709f1ee8cSShaul Triebitz  *
21809f1ee8cSShaul Triebitz  * @mac_id: MAC ID to whom to apply the low-latency configurations
21909f1ee8cSShaul Triebitz  * @low_latency_rx: 1/0 to set/clear Rx low latency direction
22009f1ee8cSShaul Triebitz  * @low_latency_tx: 1/0 to set/clear Tx low latency direction
22109f1ee8cSShaul Triebitz  * @reserved: reserved for alignment purposes
22209f1ee8cSShaul Triebitz  */
22309f1ee8cSShaul Triebitz struct iwl_mac_low_latency_cmd {
22409f1ee8cSShaul Triebitz 	__le32 mac_id;
22509f1ee8cSShaul Triebitz 	u8 low_latency_rx;
22609f1ee8cSShaul Triebitz 	u8 low_latency_tx;
22709f1ee8cSShaul Triebitz 	__le16 reserved;
22809f1ee8cSShaul Triebitz } __packed; /* MAC_LOW_LATENCY_API_S_VER_1 */
22909f1ee8cSShaul Triebitz 
2309be162a7SMiri Korenblit /**
2319be162a7SMiri Korenblit  * struct iwl_mac_client_data - configuration data for client MAC context
2329be162a7SMiri Korenblit  *
2339be162a7SMiri Korenblit  * @is_assoc: 1 for associated state, 0 otherwise
2343f302269SEmmanuel Grumbach  * @esr_transition_timeout: the timeout required by the AP for the
2353f302269SEmmanuel Grumbach  *	eSR transition.
2363f302269SEmmanuel Grumbach  *	Available only from version 2 of the command.
2373f302269SEmmanuel Grumbach  *	This values comes from the EMLSR transition delay in the EML
2383f302269SEmmanuel Grumbach  *	Capabilities subfield.
239*6107f300SEmmanuel Grumbach  * @medium_sync_delay: the value as it appeasr in P802.11be_D2.2 Figure 9-1002j.
2409be162a7SMiri Korenblit  * @assoc_id: unique ID assigned by the AP during association
2413f302269SEmmanuel Grumbach  * @reserved1: alignment
2429be162a7SMiri Korenblit  * @data_policy: see &enum iwl_mac_data_policy
2433f302269SEmmanuel Grumbach  * @reserved2: alignment
2449be162a7SMiri Korenblit  * @ctwin: client traffic window in TU (period after TBTT when GO is present).
2459be162a7SMiri Korenblit  *	0 indicates that there is no CT window.
2469be162a7SMiri Korenblit  */
2479be162a7SMiri Korenblit struct iwl_mac_client_data {
2483f302269SEmmanuel Grumbach 	u8 is_assoc;
2493f302269SEmmanuel Grumbach 	u8 esr_transition_timeout;
250*6107f300SEmmanuel Grumbach 	__le16 medium_sync_delay;
2513f302269SEmmanuel Grumbach 
2523f302269SEmmanuel Grumbach 	__le16 assoc_id;
2533f302269SEmmanuel Grumbach 	__le16 reserved1;
2543f302269SEmmanuel Grumbach 	__le16 data_policy;
2553f302269SEmmanuel Grumbach 	__le16 reserved2;
2569be162a7SMiri Korenblit 	__le32 ctwin;
2573f302269SEmmanuel Grumbach } __packed; /* MAC_CONTEXT_CONFIG_CLIENT_DATA_API_S_VER_2 */
2589be162a7SMiri Korenblit 
2599be162a7SMiri Korenblit /**
2609be162a7SMiri Korenblit  * struct iwl_mac_p2p_dev_data  - configuration data for P2P device MAC context
2619be162a7SMiri Korenblit  *
2629be162a7SMiri Korenblit  * @is_disc_extended: if set to true, P2P Device discoverability is enabled on
2639be162a7SMiri Korenblit  *	other channels as well. This should be to true only in case that the
2649be162a7SMiri Korenblit  *	device is discoverable and there is an active GO. Note that setting this
2659be162a7SMiri Korenblit  *	field when not needed, will increase the number of interrupts and have
2669be162a7SMiri Korenblit  *	effect on the platform power, as this setting opens the Rx filters on
2679be162a7SMiri Korenblit  *	all macs.
2689be162a7SMiri Korenblit  */
2699be162a7SMiri Korenblit struct iwl_mac_p2p_dev_data {
2709be162a7SMiri Korenblit 	__le32 is_disc_extended;
2719be162a7SMiri Korenblit } __packed; /* MAC_CONTEXT_CONFIG_P2P_DEV_DATA_API_S_VER_1 */
2729be162a7SMiri Korenblit 
2739be162a7SMiri Korenblit /**
2749be162a7SMiri Korenblit  * enum iwl_mac_config_filter_flags - MAC context configuration filter flags
2759be162a7SMiri Korenblit  *
2769be162a7SMiri Korenblit  * @MAC_CFG_FILTER_PROMISC: accept all data frames
2779be162a7SMiri Korenblit  * @MAC_CFG_FILTER_ACCEPT_CONTROL_AND_MGMT: pass all management and
2789be162a7SMiri Korenblit  *	control frames to the host
2799be162a7SMiri Korenblit  * @MAC_CFG_FILTER_ACCEPT_GRP: accept multicast frames
2809be162a7SMiri Korenblit  * @MAC_CFG_FILTER_ACCEPT_BEACON: accept beacon frames
2819be162a7SMiri Korenblit  * @MAC_CFG_FILTER_ACCEPT_BCAST_PROBE_RESP: accept broadcast probe response
2829be162a7SMiri Korenblit  * @MAC_CFG_FILTER_ACCEPT_PROBE_REQ: accept probe requests
2839be162a7SMiri Korenblit  */
2849be162a7SMiri Korenblit enum iwl_mac_config_filter_flags {
2859be162a7SMiri Korenblit 	MAC_CFG_FILTER_PROMISC			= BIT(0),
2869be162a7SMiri Korenblit 	MAC_CFG_FILTER_ACCEPT_CONTROL_AND_MGMT	= BIT(1),
2879be162a7SMiri Korenblit 	MAC_CFG_FILTER_ACCEPT_GRP		= BIT(2),
2889be162a7SMiri Korenblit 	MAC_CFG_FILTER_ACCEPT_BEACON		= BIT(3),
2899be162a7SMiri Korenblit 	MAC_CFG_FILTER_ACCEPT_BCAST_PROBE_RESP	= BIT(4),
2909be162a7SMiri Korenblit 	MAC_CFG_FILTER_ACCEPT_PROBE_REQ		= BIT(5),
2919be162a7SMiri Korenblit }; /* MAC_FILTER_FLAGS_MASK_E_VER_1 */
2929be162a7SMiri Korenblit 
2939be162a7SMiri Korenblit /**
2949be162a7SMiri Korenblit  * struct iwl_mac_config_cmd - command structure to configure MAC contexts in
2959be162a7SMiri Korenblit  *	MLD API
2969be162a7SMiri Korenblit  * ( MAC_CONTEXT_CONFIG_CMD = 0x8 )
2979be162a7SMiri Korenblit  *
2989be162a7SMiri Korenblit  * @id_and_color: ID and color of the MAC
29959505471SJohannes Berg  * @action: action to perform, see &enum iwl_ctxt_action
3009be162a7SMiri Korenblit  * @mac_type: one of &enum iwl_mac_types
3019be162a7SMiri Korenblit  * @local_mld_addr: mld address
3029be162a7SMiri Korenblit  * @reserved_for_local_mld_addr: reserved
3039be162a7SMiri Korenblit  * @filter_flags: combination of &enum iwl_mac_config_filter_flags
3049be162a7SMiri Korenblit  * @he_support: does this MAC support HE
305bb7fcb37SJohannes Berg  * @he_ap_support: HE AP enabled, "pseudo HE", no trigger frame handling
3069be162a7SMiri Korenblit  * @eht_support: does this MAC support EHT. Requires he_support
3079be162a7SMiri Korenblit  * @nic_not_ack_enabled: mark that the NIC doesn't support receiving
3089be162a7SMiri Korenblit  *	ACK-enabled AGG, (i.e. both BACK and non-BACK frames in single AGG).
3099be162a7SMiri Korenblit  *	If the NIC is not ACK_ENABLED it may use the EOF-bit in first non-0
3109be162a7SMiri Korenblit  *	len delim to determine if AGG or single.
3119be162a7SMiri Korenblit  * @client: client mac data
3129be162a7SMiri Korenblit  * @go_ibss: mac data for go or ibss
3139be162a7SMiri Korenblit  * @p2p_dev: mac data for p2p device
3149be162a7SMiri Korenblit  */
3159be162a7SMiri Korenblit struct iwl_mac_config_cmd {
3169be162a7SMiri Korenblit 	/* COMMON_INDEX_HDR_API_S_VER_1 */
3179be162a7SMiri Korenblit 	__le32 id_and_color;
3189be162a7SMiri Korenblit 	__le32 action;
3199be162a7SMiri Korenblit 	/* MAC_CONTEXT_TYPE_API_E */
3209be162a7SMiri Korenblit 	__le32 mac_type;
3219be162a7SMiri Korenblit 	u8 local_mld_addr[6];
3229be162a7SMiri Korenblit 	__le16 reserved_for_local_mld_addr;
3239be162a7SMiri Korenblit 	__le32 filter_flags;
324bb7fcb37SJohannes Berg 	__le16 he_support;
325bb7fcb37SJohannes Berg 	__le16 he_ap_support;
3269be162a7SMiri Korenblit 	__le32 eht_support;
3279be162a7SMiri Korenblit 	__le32 nic_not_ack_enabled;
3283f302269SEmmanuel Grumbach 	/* MAC_CONTEXT_CONFIG_SPECIFIC_DATA_API_U_VER_2 */
3299be162a7SMiri Korenblit 	union {
3309be162a7SMiri Korenblit 		struct iwl_mac_client_data client;
3319be162a7SMiri Korenblit 		struct iwl_mac_p2p_dev_data p2p_dev;
3329be162a7SMiri Korenblit 	};
3333f302269SEmmanuel Grumbach } __packed; /* MAC_CONTEXT_CONFIG_CMD_API_S_VER_2 */
3349be162a7SMiri Korenblit 
33555eb1c5fSMiri Korenblit /**
33655eb1c5fSMiri Korenblit  * enum iwl_link_ctx_modify_flags - indicate to the fw what fields are being
33755eb1c5fSMiri Korenblit  *	modified in &iwl_link_ctx_cfg_cmd
33855eb1c5fSMiri Korenblit  *
33955eb1c5fSMiri Korenblit  * @LINK_CONTEXT_MODIFY_ACTIVE: covers iwl_link_ctx_cfg_cmd::active
34055eb1c5fSMiri Korenblit  * @LINK_CONTEXT_MODIFY_RATES_INFO: covers iwl_link_ctx_cfg_cmd::cck_rates,
34155eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::ofdm_rates,
34255eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::cck_short_preamble,
34355eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::short_slot
34455eb1c5fSMiri Korenblit  * @LINK_CONTEXT_MODIFY_PROTECT_FLAGS: covers
34555eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::protection_flags
34655eb1c5fSMiri Korenblit  * @LINK_CONTEXT_MODIFY_QOS_PARAMS: covers iwl_link_ctx_cfg_cmd::qos_flags,
34755eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::ac,
34855eb1c5fSMiri Korenblit  * @LINK_CONTEXT_MODIFY_BEACON_TIMING: covers iwl_link_ctx_cfg_cmd::bi,
34955eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::dtim_interval,
35055eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::dtim_time,
35155eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::dtim_tsf,
35255eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::assoc_beacon_arrive_time.
35355eb1c5fSMiri Korenblit  *	This flag can be set only once after assoc.
35455eb1c5fSMiri Korenblit  * @LINK_CONTEXT_MODIFY_HE_PARAMS: covers
35555eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::htc_trig_based_pkt_ext
35655eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::rand_alloc_ecwmin,
35755eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::rand_alloc_ecwmax,
35855eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::trig_based_txf,
35955eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::bss_color,
36055eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::ndp_fdbk_buff_th_exp,
36155eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::ref_bssid_addr
36255eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::bssid_index,
36355eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::frame_time_rts_th.
36455eb1c5fSMiri Korenblit  *	This flag can be set any time.
36555eb1c5fSMiri Korenblit  * @LINK_CONTEXT_MODIFY_BSS_COLOR_DISABLE: covers
36655eb1c5fSMiri Korenblit  *	iwl_link_ctx_cfg_cmd::bss_color_disable
36755eb1c5fSMiri Korenblit  * @LINK_CONTEXT_MODIFY_EHT_PARAMS: covers iwl_link_ctx_cfg_cmd::puncture_mask.
36855eb1c5fSMiri Korenblit  *	This flag can be set only if the MAC that this link relates to has
36955eb1c5fSMiri Korenblit  *	eht_support set to true.
37055eb1c5fSMiri Korenblit  * @LINK_CONTEXT_MODIFY_ALL: set all above flags
37155eb1c5fSMiri Korenblit  */
37255eb1c5fSMiri Korenblit enum iwl_link_ctx_modify_flags {
37355eb1c5fSMiri Korenblit 	LINK_CONTEXT_MODIFY_ACTIVE		= BIT(0),
37455eb1c5fSMiri Korenblit 	LINK_CONTEXT_MODIFY_RATES_INFO		= BIT(1),
37555eb1c5fSMiri Korenblit 	LINK_CONTEXT_MODIFY_PROTECT_FLAGS	= BIT(2),
37655eb1c5fSMiri Korenblit 	LINK_CONTEXT_MODIFY_QOS_PARAMS		= BIT(3),
37755eb1c5fSMiri Korenblit 	LINK_CONTEXT_MODIFY_BEACON_TIMING	= BIT(4),
37855eb1c5fSMiri Korenblit 	LINK_CONTEXT_MODIFY_HE_PARAMS		= BIT(5),
37955eb1c5fSMiri Korenblit 	LINK_CONTEXT_MODIFY_BSS_COLOR_DISABLE	= BIT(6),
38055eb1c5fSMiri Korenblit 	LINK_CONTEXT_MODIFY_EHT_PARAMS		= BIT(7),
38155eb1c5fSMiri Korenblit 	LINK_CONTEXT_MODIFY_ALL			= 0xff,
38255eb1c5fSMiri Korenblit }; /* LINK_CONTEXT_MODIFY_MASK_E_VER_1 */
38355eb1c5fSMiri Korenblit 
38455eb1c5fSMiri Korenblit /**
38555eb1c5fSMiri Korenblit  * enum iwl_link_ctx_protection_flags - link protection flags
38655eb1c5fSMiri Korenblit  * @LINK_PROT_FLG_TGG_PROTECT: 11g protection when transmitting OFDM frames,
38755eb1c5fSMiri Korenblit  *	this will require CCK RTS/CTS2self.
38855eb1c5fSMiri Korenblit  *	RTS/CTS will protect full burst time.
38955eb1c5fSMiri Korenblit  * @LINK_PROT_FLG_HT_PROT: enable HT protection
39055eb1c5fSMiri Korenblit  * @LINK_PROT_FLG_FAT_PROT: protect 40 MHz transmissions
39155eb1c5fSMiri Korenblit  * @LINK_PROT_FLG_SELF_CTS_EN: allow CTS2self
39255eb1c5fSMiri Korenblit  */
39355eb1c5fSMiri Korenblit enum iwl_link_ctx_protection_flags {
39455eb1c5fSMiri Korenblit 	LINK_PROT_FLG_TGG_PROTECT	= BIT(0),
39555eb1c5fSMiri Korenblit 	LINK_PROT_FLG_HT_PROT		= BIT(1),
39655eb1c5fSMiri Korenblit 	LINK_PROT_FLG_FAT_PROT		= BIT(2),
39755eb1c5fSMiri Korenblit 	LINK_PROT_FLG_SELF_CTS_EN	= BIT(3),
39855eb1c5fSMiri Korenblit }; /* LINK_PROTECT_FLAGS_E_VER_1 */
39955eb1c5fSMiri Korenblit 
40055eb1c5fSMiri Korenblit /**
40155eb1c5fSMiri Korenblit  * enum iwl_link_ctx_flags - link context flags
40255eb1c5fSMiri Korenblit  *
40355eb1c5fSMiri Korenblit  * @LINK_FLG_BSS_COLOR_DIS: BSS color disable, don't use the BSS
40455eb1c5fSMiri Korenblit  *	color for RX filter but use MAC header
40555eb1c5fSMiri Korenblit  *	enabled AGG, i.e. both BACK and non-BACK frames in a single AGG
40655eb1c5fSMiri Korenblit  * @LINK_FLG_MU_EDCA_CW: indicates that there is an element of MU EDCA
40755eb1c5fSMiri Korenblit  *	parameter set, i.e. the backoff counters for trig-based ACs
40855eb1c5fSMiri Korenblit  * @LINK_FLG_RU_2MHZ_BLOCK: indicates that 26-tone RU OFDMA transmission are
40955eb1c5fSMiri Korenblit  *      not allowed (as there are OBSS that might classify such transmissions as
41055eb1c5fSMiri Korenblit  *      radar pulses).
4116b5a87dfSMiri Korenblit  * @LINK_FLG_NDP_FEEDBACK_ENABLED: mark support for NDP feedback and change
4126b5a87dfSMiri Korenblit  *	of threshold
41355eb1c5fSMiri Korenblit  */
41455eb1c5fSMiri Korenblit enum iwl_link_ctx_flags {
41555eb1c5fSMiri Korenblit 	LINK_FLG_BSS_COLOR_DIS		= BIT(0),
41655eb1c5fSMiri Korenblit 	LINK_FLG_MU_EDCA_CW		= BIT(1),
41755eb1c5fSMiri Korenblit 	LINK_FLG_RU_2MHZ_BLOCK		= BIT(2),
4186b5a87dfSMiri Korenblit 	LINK_FLG_NDP_FEEDBACK_ENABLED	= BIT(3),
41955eb1c5fSMiri Korenblit }; /* LINK_CONTEXT_FLAG_E_VER_1 */
42055eb1c5fSMiri Korenblit 
42155eb1c5fSMiri Korenblit /**
42255eb1c5fSMiri Korenblit  * struct iwl_link_config_cmd - command structure to configure the LINK context
42355eb1c5fSMiri Korenblit  *	in MLD API
42455eb1c5fSMiri Korenblit  * ( LINK_CONFIG_CMD =0x9 )
42555eb1c5fSMiri Korenblit  *
42659505471SJohannes Berg  * @action: action to perform, see &enum iwl_ctxt_action
42755eb1c5fSMiri Korenblit  * @link_id: the id of the link that this cmd configures
42855eb1c5fSMiri Korenblit  * @mac_id: interface ID. Relevant only if action is FW_CTXT_ACTION_ADD
42955eb1c5fSMiri Korenblit  * @phy_id: PHY index. Can be changed only if the link was inactive
43055eb1c5fSMiri Korenblit  *	(and stays inactive). If the link is active (or becomes active),
43155eb1c5fSMiri Korenblit  *	this field is ignored.
43255eb1c5fSMiri Korenblit  * @local_link_addr: the links MAC address. Can be changed only if the link was
43355eb1c5fSMiri Korenblit  *	inactive (and stays inactive). If the link is active
43455eb1c5fSMiri Korenblit  *	(or becomes active), this field is ignored.
43555eb1c5fSMiri Korenblit  * @reserved_for_local_link_addr: reserved
43655eb1c5fSMiri Korenblit  * @modify_mask: from &enum iwl_link_ctx_modify_flags, selects what to change.
43755eb1c5fSMiri Korenblit  *	Relevant only if action is FW_CTXT_ACTION_MODIFY
43855eb1c5fSMiri Korenblit  * @active: indicates whether the link is active or not
43955eb1c5fSMiri Korenblit  * @listen_lmac: indicates whether the link should be allocated on the Listen
44055eb1c5fSMiri Korenblit  *	Lmac or on the Main Lmac. Cannot be changed on an active Link.
44155eb1c5fSMiri Korenblit  *	Relevant only for eSR.
44255eb1c5fSMiri Korenblit  * @cck_rates: basic rates available for CCK
44355eb1c5fSMiri Korenblit  * @ofdm_rates: basic rates available for OFDM
44455eb1c5fSMiri Korenblit  * @cck_short_preamble: 1 for enabling short preamble, 0 otherwise
44555eb1c5fSMiri Korenblit  * @short_slot: 1 for enabling short slots, 0 otherwise
44655eb1c5fSMiri Korenblit  * @protection_flags: combination of &enum iwl_link_ctx_protection_flags
44755eb1c5fSMiri Korenblit  * @qos_flags: from &enum iwl_mac_qos_flags
44855eb1c5fSMiri Korenblit  * @ac: one iwl_mac_qos configuration for each AC
44955eb1c5fSMiri Korenblit  * @htc_trig_based_pkt_ext: default PE in 4us units
45055eb1c5fSMiri Korenblit  * @rand_alloc_ecwmin: random CWmin = 2**ECWmin-1
45155eb1c5fSMiri Korenblit  * @rand_alloc_ecwmax: random CWmax = 2**ECWmax-1
45255eb1c5fSMiri Korenblit  * @ndp_fdbk_buff_th_exp: set exponent for the NDP feedback buffered threshold
45355eb1c5fSMiri Korenblit  * @trig_based_txf: MU EDCA Parameter set for the trigger based traffic queues
45455eb1c5fSMiri Korenblit  * @bi: beacon interval in TU, applicable only when associated
45555eb1c5fSMiri Korenblit  * @dtim_interval: DTIM interval in TU.
45655eb1c5fSMiri Korenblit  *	Relevant only for GO, otherwise this is offloaded.
45755eb1c5fSMiri Korenblit  * @puncture_mask: puncture mask for EHT
45855eb1c5fSMiri Korenblit  * @frame_time_rts_th: HE duration RTS threshold, in units of 32us
45955eb1c5fSMiri Korenblit  * @flags: a combination from &enum iwl_link_ctx_flags
46055eb1c5fSMiri Korenblit  * @flags_mask: what of %flags have changed. Also &enum iwl_link_ctx_flags
46155eb1c5fSMiri Korenblit  * Below fields are for multi-bssid:
46255eb1c5fSMiri Korenblit  * @ref_bssid_addr: reference BSSID used by the AP
46355eb1c5fSMiri Korenblit  * @reserved_for_ref_bssid_addr: reserved
46455eb1c5fSMiri Korenblit  * @bssid_index: index of the associated VAP
46555eb1c5fSMiri Korenblit  * @bss_color: 11ax AP ID that is used in the HE SIG-A to mark inter BSS frame
4663f302269SEmmanuel Grumbach  * @spec_link_id: link_id as the AP knows it
46755eb1c5fSMiri Korenblit  * @reserved: alignment
4686b5a87dfSMiri Korenblit  * @ibss_bssid_addr: bssid for ibss
4696b5a87dfSMiri Korenblit  * @reserved_for_ibss_bssid_addr: reserved
4706b5a87dfSMiri Korenblit  * @reserved1: reserved for future use
47155eb1c5fSMiri Korenblit  */
47255eb1c5fSMiri Korenblit struct iwl_link_config_cmd {
47355eb1c5fSMiri Korenblit 	__le32 action;
47455eb1c5fSMiri Korenblit 	__le32 link_id;
47555eb1c5fSMiri Korenblit 	__le32 mac_id;
47655eb1c5fSMiri Korenblit 	__le32 phy_id;
47755eb1c5fSMiri Korenblit 	u8 local_link_addr[6];
47855eb1c5fSMiri Korenblit 	__le16 reserved_for_local_link_addr;
47955eb1c5fSMiri Korenblit 	__le32 modify_mask;
48055eb1c5fSMiri Korenblit 	__le32 active;
48155eb1c5fSMiri Korenblit 	__le32 listen_lmac;
48255eb1c5fSMiri Korenblit 	__le32 cck_rates;
48355eb1c5fSMiri Korenblit 	__le32 ofdm_rates;
48455eb1c5fSMiri Korenblit 	__le32 cck_short_preamble;
48555eb1c5fSMiri Korenblit 	__le32 short_slot;
48655eb1c5fSMiri Korenblit 	__le32 protection_flags;
48755eb1c5fSMiri Korenblit 	/* MAC_QOS_PARAM_API_S_VER_1 */
48855eb1c5fSMiri Korenblit 	__le32 qos_flags;
48955eb1c5fSMiri Korenblit 	struct iwl_ac_qos ac[AC_NUM + 1];
49055eb1c5fSMiri Korenblit 	u8 htc_trig_based_pkt_ext;
49155eb1c5fSMiri Korenblit 	u8 rand_alloc_ecwmin;
49255eb1c5fSMiri Korenblit 	u8 rand_alloc_ecwmax;
49355eb1c5fSMiri Korenblit 	u8 ndp_fdbk_buff_th_exp;
49455eb1c5fSMiri Korenblit 	struct iwl_he_backoff_conf trig_based_txf[AC_NUM];
49555eb1c5fSMiri Korenblit 	__le32 bi;
49655eb1c5fSMiri Korenblit 	__le32 dtim_interval;
49755eb1c5fSMiri Korenblit 	__le16 puncture_mask;
49855eb1c5fSMiri Korenblit 	__le16 frame_time_rts_th;
49955eb1c5fSMiri Korenblit 	__le32 flags;
50055eb1c5fSMiri Korenblit 	__le32 flags_mask;
50155eb1c5fSMiri Korenblit 	/* The below fields are for multi-bssid */
50255eb1c5fSMiri Korenblit 	u8 ref_bssid_addr[6];
50355eb1c5fSMiri Korenblit 	__le16 reserved_for_ref_bssid_addr;
50455eb1c5fSMiri Korenblit 	u8 bssid_index;
50555eb1c5fSMiri Korenblit 	u8 bss_color;
5063f302269SEmmanuel Grumbach 	u8 spec_link_id;
5073f302269SEmmanuel Grumbach 	u8 reserved;
5086b5a87dfSMiri Korenblit 	u8 ibss_bssid_addr[6];
5096b5a87dfSMiri Korenblit 	__le16 reserved_for_ibss_bssid_addr;
5106b5a87dfSMiri Korenblit 	__le32 reserved1[8];
51155eb1c5fSMiri Korenblit } __packed; /* LINK_CONTEXT_CONFIG_CMD_API_S_VER_1 */
51255eb1c5fSMiri Korenblit 
513d6f6b0d8SGregory Greenman /* Currently FW supports link ids in the range 0-3 and can have
514d6f6b0d8SGregory Greenman  * at most two active links for each vif.
515d6f6b0d8SGregory Greenman  */
516d6f6b0d8SGregory Greenman #define IWL_MVM_FW_MAX_ACTIVE_LINKS_NUM 2
517d6f6b0d8SGregory Greenman #define IWL_MVM_FW_MAX_LINK_ID 3
518d6f6b0d8SGregory Greenman 
519006c152aSMiri Korenblit /**
520006c152aSMiri Korenblit  * enum iwl_fw_sta_type - FW station types
521006c152aSMiri Korenblit  * @STATION_TYPE_PEER: represents a peer - AP in BSS, a TDLS sta, a client in
522006c152aSMiri Korenblit  *	P2P.
523006c152aSMiri Korenblit  * @STATION_TYPE_BCAST_MGMT: The station used to send beacons and
524006c152aSMiri Korenblit  *	probe responses. Also used for traffic injection in sniffer mode
525006c152aSMiri Korenblit  * @STATION_TYPE_MCAST: the station used for BCAST / MCAST in GO. Will be
526006c152aSMiri Korenblit  *	suspended / resumed at the right timing depending on the clients'
527006c152aSMiri Korenblit  *	power save state and the DTIM timing
528fe8b2ad3SMiri Korenblit  * @STATION_TYPE_AUX: aux sta. In the FW there is no need for a special type
529fe8b2ad3SMiri Korenblit  *	for the aux sta, so this type is only for driver - internal use.
530006c152aSMiri Korenblit  */
531006c152aSMiri Korenblit enum iwl_fw_sta_type {
532006c152aSMiri Korenblit 	STATION_TYPE_PEER,
533006c152aSMiri Korenblit 	STATION_TYPE_BCAST_MGMT,
534006c152aSMiri Korenblit 	STATION_TYPE_MCAST,
535fe8b2ad3SMiri Korenblit 	STATION_TYPE_AUX,
536006c152aSMiri Korenblit }; /* STATION_TYPE_E_VER_1 */
537006c152aSMiri Korenblit 
538006c152aSMiri Korenblit /**
539006c152aSMiri Korenblit  * struct iwl_mvm_sta_cfg_cmd - cmd structure to add a peer sta to the uCode's
540006c152aSMiri Korenblit  *	station table
541006c152aSMiri Korenblit  * ( STA_CONFIG_CMD = 0xA )
542006c152aSMiri Korenblit  *
543006c152aSMiri Korenblit  * @sta_id: index of station in uCode's station table
544006c152aSMiri Korenblit  * @link_id: the id of the link that is used to communicate with this sta
545006c152aSMiri Korenblit  * @peer_mld_address: the peers mld address
546006c152aSMiri Korenblit  * @reserved_for_peer_mld_address: reserved
547006c152aSMiri Korenblit  * @peer_link_address: the address of the link that is used to communicate
548006c152aSMiri Korenblit  *	with this sta
549006c152aSMiri Korenblit  * @reserved_for_peer_link_address: reserved
550006c152aSMiri Korenblit  * @station_type: type of this station. See &enum iwl_fw_sta_type
551006c152aSMiri Korenblit  * @assoc_id: for GO only
552006c152aSMiri Korenblit  * @beamform_flags: beam forming controls
553006c152aSMiri Korenblit  * @mfp: indicates whether the STA uses management frame protection or not.
554006c152aSMiri Korenblit  * @mimo: indicates whether the sta uses mimo or not
555006c152aSMiri Korenblit  * @mimo_protection: indicates whether the sta uses mimo protection or not
556006c152aSMiri Korenblit  * @ack_enabled: indicates that the AP supports receiving ACK-
557006c152aSMiri Korenblit  *	enabled AGG, i.e. both BACK and non-BACK frames in a single AGG
558006c152aSMiri Korenblit  * @trig_rnd_alloc: indicates that trigger based random allocation
559006c152aSMiri Korenblit  *	is enabled according to UORA element existence
560006c152aSMiri Korenblit  * @tx_ampdu_spacing: minimum A-MPDU spacing:
561006c152aSMiri Korenblit  *	4 - 2us density, 5 - 4us density, 6 - 8us density, 7 - 16us density
562006c152aSMiri Korenblit  * @tx_ampdu_max_size: maximum A-MPDU length: 0 - 8K, 1 - 16K, 2 - 32K,
563006c152aSMiri Korenblit  *	3 - 64K, 4 - 128K, 5 - 256K, 6 - 512K, 7 - 1024K.
564006c152aSMiri Korenblit  * @sp_length: the size of the SP in actual number of frames
565006c152aSMiri Korenblit  * @uapsd_acs:  4 LS bits are trigger enabled ACs, 4 MS bits are the deliver
566006c152aSMiri Korenblit  *	enabled ACs.
567006c152aSMiri Korenblit  * @pkt_ext: optional, exists according to PPE-present bit in the HE/EHT-PHY
568006c152aSMiri Korenblit  *	capa
569006c152aSMiri Korenblit  * @htc_flags: which features are supported in HTC
570006c152aSMiri Korenblit  */
571006c152aSMiri Korenblit struct iwl_mvm_sta_cfg_cmd {
572006c152aSMiri Korenblit 	__le32 sta_id;
573006c152aSMiri Korenblit 	__le32 link_id;
574006c152aSMiri Korenblit 	u8 peer_mld_address[ETH_ALEN];
575006c152aSMiri Korenblit 	__le16 reserved_for_peer_mld_address;
576006c152aSMiri Korenblit 	u8 peer_link_address[ETH_ALEN];
577006c152aSMiri Korenblit 	__le16 reserved_for_peer_link_address;
578006c152aSMiri Korenblit 	__le32 station_type;
579006c152aSMiri Korenblit 	__le32 assoc_id;
580006c152aSMiri Korenblit 	__le32 beamform_flags;
581006c152aSMiri Korenblit 	__le32 mfp;
582006c152aSMiri Korenblit 	__le32 mimo;
583006c152aSMiri Korenblit 	__le32 mimo_protection;
584006c152aSMiri Korenblit 	__le32 ack_enabled;
585006c152aSMiri Korenblit 	__le32 trig_rnd_alloc;
586006c152aSMiri Korenblit 	__le32 tx_ampdu_spacing;
587006c152aSMiri Korenblit 	__le32 tx_ampdu_max_size;
588006c152aSMiri Korenblit 	__le32 sp_length;
589006c152aSMiri Korenblit 	__le32 uapsd_acs;
590006c152aSMiri Korenblit 	struct iwl_he_pkt_ext_v2 pkt_ext;
591006c152aSMiri Korenblit 	__le32 htc_flags;
592006c152aSMiri Korenblit } __packed; /* STA_CMD_API_S_VER_1 */
593006c152aSMiri Korenblit 
594006c152aSMiri Korenblit /**
595006c152aSMiri Korenblit  * struct iwl_mvm_aux_sta_cmd - command for AUX STA configuration
596006c152aSMiri Korenblit  * ( AUX_STA_CMD = 0xB )
597006c152aSMiri Korenblit  *
598006c152aSMiri Korenblit  * @sta_id: index of aux sta to configure
599006c152aSMiri Korenblit  * @lmac_id: ?
600006c152aSMiri Korenblit  * @mac_addr: mac addr of the auxilary sta
601006c152aSMiri Korenblit  * @reserved_for_mac_addr: reserved
602006c152aSMiri Korenblit  */
603006c152aSMiri Korenblit struct iwl_mvm_aux_sta_cmd {
604006c152aSMiri Korenblit 	__le32 sta_id;
605006c152aSMiri Korenblit 	__le32 lmac_id;
606006c152aSMiri Korenblit 	u8 mac_addr[ETH_ALEN];
607006c152aSMiri Korenblit 	__le16 reserved_for_mac_addr;
608006c152aSMiri Korenblit 
609006c152aSMiri Korenblit } __packed; /* AUX_STA_CMD_API_S_VER_1 */
610006c152aSMiri Korenblit 
611006c152aSMiri Korenblit /**
612006c152aSMiri Korenblit  * struct iwl_mvm_remove_sta_cmd - a cmd structure to remove a sta added by
613006c152aSMiri Korenblit  *	STA_CONFIG_CMD or AUX_STA_CONFIG_CMD
614006c152aSMiri Korenblit  * ( STA_REMOVE_CMD = 0xC )
615006c152aSMiri Korenblit  *
616006c152aSMiri Korenblit  * @sta_id: index of station to remove
617006c152aSMiri Korenblit  */
618006c152aSMiri Korenblit struct iwl_mvm_remove_sta_cmd {
619006c152aSMiri Korenblit 	__le32 sta_id;
620006c152aSMiri Korenblit } __packed; /* REMOVE_STA_API_S_VER_1 */
621006c152aSMiri Korenblit 
622006c152aSMiri Korenblit /**
623006c152aSMiri Korenblit  * struct iwl_mvm_sta_disable_tx_cmd - disable / re-enable tx to a sta
624006c152aSMiri Korenblit  * ( STA_DISABLE_TX_CMD = 0xD )
625006c152aSMiri Korenblit  *
626006c152aSMiri Korenblit  * @sta_id: index of the station to disable tx to
627006c152aSMiri Korenblit  * @disable: indicates if to disable or re-enable tx
628006c152aSMiri Korenblit  */
629006c152aSMiri Korenblit struct iwl_mvm_sta_disable_tx_cmd {
630006c152aSMiri Korenblit 	__le32 sta_id;
631006c152aSMiri Korenblit 	__le32 disable;
632006c152aSMiri Korenblit } __packed; /* STA_DISABLE_TX_API_S_VER_1 */
633006c152aSMiri Korenblit 
634d172a5efSJohannes Berg #endif /* __iwl_fw_api_mac_cfg_h__ */
635