18e99ea8dSJohannes Berg /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 28e99ea8dSJohannes Berg /* 3e619ad55SMiri Korenblit * Copyright (C) 2024 Intel Corporation 421fb8da6SAvraham Stern * Copyright (C) 2012-2014, 2018-2022 Intel Corporation 58e99ea8dSJohannes Berg * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 68e99ea8dSJohannes Berg * Copyright (C) 2016-2017 Intel Deutschland GmbH 78e99ea8dSJohannes Berg */ 8d172a5efSJohannes Berg #ifndef __iwl_fw_api_datapath_h__ 9d172a5efSJohannes Berg #define __iwl_fw_api_datapath_h__ 10d172a5efSJohannes Berg 11d172a5efSJohannes Berg /** 12d172a5efSJohannes Berg * enum iwl_data_path_subcmd_ids - data path group commands 13d172a5efSJohannes Berg */ 14d172a5efSJohannes Berg enum iwl_data_path_subcmd_ids { 15d172a5efSJohannes Berg /** 16d172a5efSJohannes Berg * @DQA_ENABLE_CMD: &struct iwl_dqa_enable_cmd 17d172a5efSJohannes Berg */ 18d172a5efSJohannes Berg DQA_ENABLE_CMD = 0x0, 19d172a5efSJohannes Berg 20d172a5efSJohannes Berg /** 21d172a5efSJohannes Berg * @UPDATE_MU_GROUPS_CMD: &struct iwl_mu_group_mgmt_cmd 22d172a5efSJohannes Berg */ 23d172a5efSJohannes Berg UPDATE_MU_GROUPS_CMD = 0x1, 24d172a5efSJohannes Berg 25d172a5efSJohannes Berg /** 26d172a5efSJohannes Berg * @TRIGGER_RX_QUEUES_NOTIF_CMD: &struct iwl_rxq_sync_cmd 27d172a5efSJohannes Berg */ 28d172a5efSJohannes Berg TRIGGER_RX_QUEUES_NOTIF_CMD = 0x2, 29d172a5efSJohannes Berg 30d172a5efSJohannes Berg /** 3121fb8da6SAvraham Stern * @WNM_PLATFORM_PTM_REQUEST_CMD: &struct iwl_time_sync_cfg_cmd 3221fb8da6SAvraham Stern */ 3321fb8da6SAvraham Stern WNM_PLATFORM_PTM_REQUEST_CMD = 0x3, 3421fb8da6SAvraham Stern 3521fb8da6SAvraham Stern /** 36c7eca79dSAvraham Stern * @WNM_80211V_TIMING_MEASUREMENT_CONFIG_CMD: 37c7eca79dSAvraham Stern * &struct iwl_time_sync_cfg_cmd 38c7eca79dSAvraham Stern */ 39c7eca79dSAvraham Stern WNM_80211V_TIMING_MEASUREMENT_CONFIG_CMD = 0x4, 40c7eca79dSAvraham Stern 41c7eca79dSAvraham Stern /** 4243413a36SJohannes Berg * @STA_HE_CTXT_CMD: &struct iwl_he_sta_context_cmd_v1, 4343413a36SJohannes Berg * &struct iwl_he_sta_context_cmd_v2 or 4443413a36SJohannes Berg * &struct iwl_he_sta_context_cmd_v3 458a6171a7SLuca Coelho */ 468a6171a7SLuca Coelho STA_HE_CTXT_CMD = 0x7, 478a6171a7SLuca Coelho 488a6171a7SLuca Coelho /** 49c48e93a6SJohannes Berg * @RLC_CONFIG_CMD: &struct iwl_rlc_config_cmd 50c48e93a6SJohannes Berg */ 51c48e93a6SJohannes Berg RLC_CONFIG_CMD = 0x8, 52c48e93a6SJohannes Berg 53c48e93a6SJohannes Berg /** 548edbfaa1SSara Sharon * @RFH_QUEUE_CONFIG_CMD: &struct iwl_rfh_queue_config 558edbfaa1SSara Sharon */ 568edbfaa1SSara Sharon RFH_QUEUE_CONFIG_CMD = 0xD, 578edbfaa1SSara Sharon 588edbfaa1SSara Sharon /** 59e4b89fceSAbhishek Naik * @TLC_MNG_CONFIG_CMD: &struct iwl_tlc_config_cmd_v4 60110b32f0SGregory Greenman */ 61110b32f0SGregory Greenman TLC_MNG_CONFIG_CMD = 0xF, 62110b32f0SGregory Greenman 63110b32f0SGregory Greenman /** 6498920961SShaul Triebitz * @HE_AIR_SNIFFER_CONFIG_CMD: &struct iwl_he_monitor_cmd 6598920961SShaul Triebitz */ 6698920961SShaul Triebitz HE_AIR_SNIFFER_CONFIG_CMD = 0x13, 6798920961SShaul Triebitz 6898920961SShaul Triebitz /** 695213e8a8SJohannes Berg * @CHEST_COLLECTOR_FILTER_CONFIG_CMD: Configure the CSI 705213e8a8SJohannes Berg * matrix collection, uses &struct iwl_channel_estimation_cfg 715213e8a8SJohannes Berg */ 725213e8a8SJohannes Berg CHEST_COLLECTOR_FILTER_CONFIG_CMD = 0x14, 735213e8a8SJohannes Berg 745213e8a8SJohannes Berg /** 7597f70c56SJohannes Berg * @RX_BAID_ALLOCATION_CONFIG_CMD: Allocate/deallocate a BAID for an RX 7697f70c56SJohannes Berg * blockack session, uses &struct iwl_rx_baid_cfg_cmd for the 7797f70c56SJohannes Berg * command, and &struct iwl_rx_baid_cfg_resp as a response. 7897f70c56SJohannes Berg */ 7997f70c56SJohannes Berg RX_BAID_ALLOCATION_CONFIG_CMD = 0x16, 8097f70c56SJohannes Berg 8197f70c56SJohannes Berg /** 82227f2597SJohannes Berg * @SCD_QUEUE_CONFIG_CMD: new scheduler queue allocation/config/removal 83227f2597SJohannes Berg * command, uses &struct iwl_scd_queue_cfg_cmd and the response 84227f2597SJohannes Berg * is (same as before) &struct iwl_tx_queue_cfg_rsp. 85227f2597SJohannes Berg */ 86227f2597SJohannes Berg SCD_QUEUE_CONFIG_CMD = 0x17, 87227f2597SJohannes Berg 88227f2597SJohannes Berg /** 895c75a208SJohannes Berg * @SEC_KEY_CMD: security key command, uses &struct iwl_sec_key_cmd 905c75a208SJohannes Berg */ 915c75a208SJohannes Berg SEC_KEY_CMD = 0x18, 925c75a208SJohannes Berg 935c75a208SJohannes Berg /** 94e619ad55SMiri Korenblit * @ESR_MODE_NOTIF: notification to recommend/force a wanted esr mode, 95e619ad55SMiri Korenblit * uses &struct iwl_mvm_esr_mode_notif 96e619ad55SMiri Korenblit */ 97e619ad55SMiri Korenblit ESR_MODE_NOTIF = 0xF3, 98e619ad55SMiri Korenblit 99e619ad55SMiri Korenblit /** 100f7d6ef33SJohannes Berg * @MONITOR_NOTIF: Datapath monitoring notification, using 101f7d6ef33SJohannes Berg * &struct iwl_datapath_monitor_notif 102f7d6ef33SJohannes Berg */ 103f7d6ef33SJohannes Berg MONITOR_NOTIF = 0xF4, 104f7d6ef33SJohannes Berg 105f7d6ef33SJohannes Berg /** 1068dd51b5fSMordechay Goodstein * @RX_NO_DATA_NOTIF: &struct iwl_rx_no_data or &struct iwl_rx_no_data_ver_3 107bf9dfedaSShaul Triebitz */ 108bf9dfedaSShaul Triebitz RX_NO_DATA_NOTIF = 0xF5, 109bf9dfedaSShaul Triebitz 110bf9dfedaSShaul Triebitz /** 111d10fb5ecSEmmanuel Grumbach * @THERMAL_DUAL_CHAIN_REQUEST: firmware request for SMPS mode, 1122a7ce54cSJohannes Berg * &struct iwl_thermal_dual_chain_request 1132a7ce54cSJohannes Berg */ 1142a7ce54cSJohannes Berg THERMAL_DUAL_CHAIN_REQUEST = 0xF6, 1152a7ce54cSJohannes Berg 1162a7ce54cSJohannes Berg /** 11746d372afSGregory Greenman * @TLC_MNG_UPDATE_NOTIF: &struct iwl_tlc_update_notif 11846d372afSGregory Greenman */ 11946d372afSGregory Greenman TLC_MNG_UPDATE_NOTIF = 0xF7, 12046d372afSGregory Greenman 12146d372afSGregory Greenman /** 122d172a5efSJohannes Berg * @STA_PM_NOTIF: &struct iwl_mvm_pm_state_notification 123d172a5efSJohannes Berg */ 124d172a5efSJohannes Berg STA_PM_NOTIF = 0xFD, 125d172a5efSJohannes Berg 126d172a5efSJohannes Berg /** 127d172a5efSJohannes Berg * @MU_GROUP_MGMT_NOTIF: &struct iwl_mu_group_mgmt_notif 128d172a5efSJohannes Berg */ 129d172a5efSJohannes Berg MU_GROUP_MGMT_NOTIF = 0xFE, 130d172a5efSJohannes Berg 131d172a5efSJohannes Berg /** 132d172a5efSJohannes Berg * @RX_QUEUES_NOTIFICATION: &struct iwl_rxq_sync_notification 133d172a5efSJohannes Berg */ 134d172a5efSJohannes Berg RX_QUEUES_NOTIFICATION = 0xFF, 135d172a5efSJohannes Berg }; 136d172a5efSJohannes Berg 137d172a5efSJohannes Berg /** 138d172a5efSJohannes Berg * struct iwl_mu_group_mgmt_cmd - VHT MU-MIMO group configuration 139d172a5efSJohannes Berg * 140d172a5efSJohannes Berg * @reserved: reserved 141d172a5efSJohannes Berg * @membership_status: a bitmap of MU groups 142d172a5efSJohannes Berg * @user_position:the position of station in a group. If the station is in the 143d172a5efSJohannes Berg * group then bits (group * 2) is the position -1 144d172a5efSJohannes Berg */ 145d172a5efSJohannes Berg struct iwl_mu_group_mgmt_cmd { 146d172a5efSJohannes Berg __le32 reserved; 147d172a5efSJohannes Berg __le32 membership_status[2]; 148d172a5efSJohannes Berg __le32 user_position[4]; 149d172a5efSJohannes Berg } __packed; /* MU_GROUP_ID_MNG_TABLE_API_S_VER_1 */ 150d172a5efSJohannes Berg 151d172a5efSJohannes Berg /** 152d172a5efSJohannes Berg * struct iwl_mu_group_mgmt_notif - VHT MU-MIMO group id notification 153d172a5efSJohannes Berg * 154d172a5efSJohannes Berg * @membership_status: a bitmap of MU groups 155d172a5efSJohannes Berg * @user_position: the position of station in a group. If the station is in the 156d172a5efSJohannes Berg * group then bits (group * 2) is the position -1 157d172a5efSJohannes Berg */ 158d172a5efSJohannes Berg struct iwl_mu_group_mgmt_notif { 159d172a5efSJohannes Berg __le32 membership_status[2]; 160d172a5efSJohannes Berg __le32 user_position[4]; 161d172a5efSJohannes Berg } __packed; /* MU_GROUP_MNG_NTFY_API_S_VER_1 */ 162d172a5efSJohannes Berg 1635213e8a8SJohannes Berg enum iwl_channel_estimation_flags { 1645213e8a8SJohannes Berg IWL_CHANNEL_ESTIMATION_ENABLE = BIT(0), 1655213e8a8SJohannes Berg IWL_CHANNEL_ESTIMATION_TIMER = BIT(1), 1665213e8a8SJohannes Berg IWL_CHANNEL_ESTIMATION_COUNTER = BIT(2), 1675213e8a8SJohannes Berg }; 1685213e8a8SJohannes Berg 169c7eca79dSAvraham Stern enum iwl_time_sync_protocol_type { 170c7eca79dSAvraham Stern IWL_TIME_SYNC_PROTOCOL_TM = BIT(0), 171c7eca79dSAvraham Stern IWL_TIME_SYNC_PROTOCOL_FTM = BIT(1), 172c7eca79dSAvraham Stern }; /* WNM_TIMING_ENABLED_PROTOCOL_API_E_VER_1 */ 173c7eca79dSAvraham Stern 174c7eca79dSAvraham Stern /** 175c7eca79dSAvraham Stern * struct iwl_time_sync_cfg_cmd - TM/FTM time sync measurement configuration 176c7eca79dSAvraham Stern * 177c7eca79dSAvraham Stern * @protocols: The type of frames to raise notifications for. A bitmap 178c7eca79dSAvraham Stern * of @iwl_time_sync_protocol_type 179c7eca79dSAvraham Stern * @peer_addr: peer address with which TM/FTM measurements are required 180c7eca79dSAvraham Stern * @reserved: for alignment 181c7eca79dSAvraham Stern */ 182c7eca79dSAvraham Stern struct iwl_time_sync_cfg_cmd { 183c7eca79dSAvraham Stern __le32 protocols; 184c7eca79dSAvraham Stern u8 peer_addr[ETH_ALEN]; 185c7eca79dSAvraham Stern u8 reserved[2]; 186c7eca79dSAvraham Stern } __packed; /* WNM_80211V_TIMING_MEASUREMENT_CONFIG_CMD_API_S_VER_1 */ 187c7eca79dSAvraham Stern 1885213e8a8SJohannes Berg /** 18921fb8da6SAvraham Stern * enum iwl_synced_time_operation - PTM request options 19021fb8da6SAvraham Stern * 19121fb8da6SAvraham Stern * @IWL_SYNCED_TIME_OPERATION_READ_ARTB: read only the ARTB time 19221fb8da6SAvraham Stern * @IWL_SYNCED_TIME_OPERATION_READ_GP2: read only the GP2 time 19321fb8da6SAvraham Stern * @IWL_SYNCED_TIME_OPERATION_READ_BOTH: latch the ARTB and GP2 clocks and 19421fb8da6SAvraham Stern * provide timestamps from both clocks for the same time point 19521fb8da6SAvraham Stern */ 19621fb8da6SAvraham Stern enum iwl_synced_time_operation { 19721fb8da6SAvraham Stern IWL_SYNCED_TIME_OPERATION_READ_ARTB = 1, 19821fb8da6SAvraham Stern IWL_SYNCED_TIME_OPERATION_READ_GP2, 19921fb8da6SAvraham Stern IWL_SYNCED_TIME_OPERATION_READ_BOTH, 20021fb8da6SAvraham Stern }; 20121fb8da6SAvraham Stern 20221fb8da6SAvraham Stern /** 20321fb8da6SAvraham Stern * struct iwl_synced_time_cmd - request synced GP2/ARTB timestamps 20421fb8da6SAvraham Stern * 20521fb8da6SAvraham Stern * @operation: one of &enum iwl_synced_time_operation 20621fb8da6SAvraham Stern */ 20721fb8da6SAvraham Stern struct iwl_synced_time_cmd { 20821fb8da6SAvraham Stern __le32 operation; 20921fb8da6SAvraham Stern } __packed; /* WNM_80211V_TIMING_CMD_API_S_VER_1 */ 21021fb8da6SAvraham Stern 21121fb8da6SAvraham Stern /** 21221fb8da6SAvraham Stern * struct iwl_synced_time_rsp - response to iwl_synced_time_cmd 21321fb8da6SAvraham Stern * 21421fb8da6SAvraham Stern * @operation: one of &enum iwl_synced_time_operation 21521fb8da6SAvraham Stern * @platform_timestamp_hi: high DWORD of the ARTB clock timestamp in nanoseconds 21621fb8da6SAvraham Stern * @platform_timestamp_lo: low DWORD of the ARTB clock timestamp in nanoseconds 21721fb8da6SAvraham Stern * @gp2_timestamp_hi: high DWORD of the GP2 clock timestamp in 10's of 21821fb8da6SAvraham Stern * nanoseconds 21921fb8da6SAvraham Stern * @gp2_timestamp_lo: low DWORD of the GP2 clock timestamp in 10's of 22021fb8da6SAvraham Stern * nanoseconds 22121fb8da6SAvraham Stern */ 22221fb8da6SAvraham Stern struct iwl_synced_time_rsp { 22321fb8da6SAvraham Stern __le32 operation; 22421fb8da6SAvraham Stern __le32 platform_timestamp_hi; 22521fb8da6SAvraham Stern __le32 platform_timestamp_lo; 22621fb8da6SAvraham Stern __le32 gp2_timestamp_hi; 22721fb8da6SAvraham Stern __le32 gp2_timestamp_lo; 22821fb8da6SAvraham Stern } __packed; /* WNM_80211V_TIMING_RSP_API_S_VER_1 */ 22921fb8da6SAvraham Stern 230c7eca79dSAvraham Stern /* PTP_CTX_MAX_DATA_SIZE_IN_API_D_VER_1 */ 231c7eca79dSAvraham Stern #define PTP_CTX_MAX_DATA_SIZE 128 232c7eca79dSAvraham Stern 233c7eca79dSAvraham Stern /** 234*ba59cfb7SJohannes Berg * struct iwl_time_msmt_ptp_ctx - Vendor specific element 235c7eca79dSAvraham Stern * to allow a space for flexibility for the userspace App 236c7eca79dSAvraham Stern * 237*ba59cfb7SJohannes Berg * @ftm: FTM specific vendor element 238*ba59cfb7SJohannes Berg * @ftm.element_id: element id of vendor specific ie 239*ba59cfb7SJohannes Berg * @ftm.length: length of vendor specific ie 240*ba59cfb7SJohannes Berg * @ftm.reserved: for alignment 241*ba59cfb7SJohannes Berg * @ftm.data: vendor specific data blob 242*ba59cfb7SJohannes Berg * @tm: TM specific vendor element 243*ba59cfb7SJohannes Berg * @tm.element_id: element id of vendor specific ie 244*ba59cfb7SJohannes Berg * @tm.length: length of vendor specific ie 245*ba59cfb7SJohannes Berg * @tm.data: vendor specific data blob 246c7eca79dSAvraham Stern */ 247c7eca79dSAvraham Stern struct iwl_time_msmt_ptp_ctx { 248*ba59cfb7SJohannes Berg /* Differentiate between FTM and TM specific Vendor elements */ 249c7eca79dSAvraham Stern union { 250c7eca79dSAvraham Stern struct { 251c7eca79dSAvraham Stern u8 element_id; 252c7eca79dSAvraham Stern u8 length; 253c7eca79dSAvraham Stern __le16 reserved; 254c7eca79dSAvraham Stern u8 data[PTP_CTX_MAX_DATA_SIZE]; 255*ba59cfb7SJohannes Berg } ftm; 256c7eca79dSAvraham Stern struct { 257c7eca79dSAvraham Stern u8 element_id; 258c7eca79dSAvraham Stern u8 length; 259c7eca79dSAvraham Stern u8 data[PTP_CTX_MAX_DATA_SIZE]; 260*ba59cfb7SJohannes Berg } tm; 261c7eca79dSAvraham Stern }; 262c7eca79dSAvraham Stern } __packed /* PTP_CTX_VER_1 */; 263c7eca79dSAvraham Stern 264c7eca79dSAvraham Stern /** 265c7eca79dSAvraham Stern * struct iwl_time_msmt_notify - Time Sync measurement notification 266c7eca79dSAvraham Stern * for TM/FTM, along with additional meta data. 267c7eca79dSAvraham Stern * 268c7eca79dSAvraham Stern * @peer_addr: peer address 269c7eca79dSAvraham Stern * @reserved: for alignment 270c7eca79dSAvraham Stern * @dialog_token: measurement flow dialog token number 271c7eca79dSAvraham Stern * @followup_dialog_token: Measurement flow previous dialog token number 272c7eca79dSAvraham Stern * @t1_hi: high dword of t1-time of the Tx'ed action frame departure on 273c7eca79dSAvraham Stern * sender side in units of 10 nano seconds 274c7eca79dSAvraham Stern * @t1_lo: low dword of t1-time of the Tx'ed action frame departure on 275c7eca79dSAvraham Stern * sender side in units of 10 nano seconds 276c7eca79dSAvraham Stern * @t1_max_err: maximum t1-time error in units of 10 nano seconds 277c7eca79dSAvraham Stern * @t4_hi: high dword of t4-time of the Rx'ed action frame's Ack arrival on 278c7eca79dSAvraham Stern * sender side in units of 10 nano seconds 279c7eca79dSAvraham Stern * @t4_lo: low dword of t4-time of the Rx'ed action frame's Ack arrival on 280c7eca79dSAvraham Stern * sender side in units of 10 nano seconds 281c7eca79dSAvraham Stern * @t4_max_err: maximum t4-time error in units of 10 nano seconds 282c7eca79dSAvraham Stern * @t2_hi: high dword of t2-time of the Rx'ed action frame arrival on 283c7eca79dSAvraham Stern * receiver side in units of 10 nano seconds 284c7eca79dSAvraham Stern * @t2_lo: low dword of t2-time of the Rx'ed action frame arrival on 285c7eca79dSAvraham Stern * receiver side in units of 10 nano seconds 286c7eca79dSAvraham Stern * @t2_max_err: maximum t2-time error in units of 10 nano seconds 287c7eca79dSAvraham Stern * @t3_hi: high dword of t3-time of the Tx'ed action frame's Ack departure on 288c7eca79dSAvraham Stern * receiver side in units of 10 nano seconds 289c7eca79dSAvraham Stern * @t3_lo: low dword of t3-time of the Tx'ed action frame's Ack departure on 290c7eca79dSAvraham Stern * receiver side in units of 10 nano seconds 291c7eca79dSAvraham Stern * @t3_max_err: maximum t3-time error in units of 10 nano seconds 292c7eca79dSAvraham Stern * @ptp: vendor specific information element 293c7eca79dSAvraham Stern */ 294c7eca79dSAvraham Stern struct iwl_time_msmt_notify { 295c7eca79dSAvraham Stern u8 peer_addr[ETH_ALEN]; 296c7eca79dSAvraham Stern u8 reserved[2]; 297c7eca79dSAvraham Stern __le32 dialog_token; 298c7eca79dSAvraham Stern __le32 followup_dialog_token; 299c7eca79dSAvraham Stern __le32 t1_hi; 300c7eca79dSAvraham Stern __le32 t1_lo; 301c7eca79dSAvraham Stern __le32 t1_max_err; 302c7eca79dSAvraham Stern __le32 t4_hi; 303c7eca79dSAvraham Stern __le32 t4_lo; 304c7eca79dSAvraham Stern __le32 t4_max_err; 305c7eca79dSAvraham Stern __le32 t2_hi; 306c7eca79dSAvraham Stern __le32 t2_lo; 307c7eca79dSAvraham Stern __le32 t2_max_err; 308c7eca79dSAvraham Stern __le32 t3_hi; 309c7eca79dSAvraham Stern __le32 t3_lo; 310c7eca79dSAvraham Stern __le32 t3_max_err; 311c7eca79dSAvraham Stern struct iwl_time_msmt_ptp_ctx ptp; 312c7eca79dSAvraham Stern } __packed; /* WNM_80211V_TIMING_MEASUREMENT_NTFY_API_S_VER_1 */ 313c7eca79dSAvraham Stern 314c7eca79dSAvraham Stern /** 315c7eca79dSAvraham Stern * struct iwl_time_msmt_cfm_notify - Time Sync measurement confirmation 316c7eca79dSAvraham Stern * notification for TM/FTM. Sent on receipt of 802.11 Ack from peer for the 317c7eca79dSAvraham Stern * Tx'ed TM/FTM measurement action frame. 318c7eca79dSAvraham Stern * 319c7eca79dSAvraham Stern * @peer_addr: peer address 320c7eca79dSAvraham Stern * @reserved: for alignment 321c7eca79dSAvraham Stern * @dialog_token: measurement flow dialog token number 322c7eca79dSAvraham Stern * @t1_hi: high dword of t1-time of the Tx'ed action frame departure on 323c7eca79dSAvraham Stern * sender side in units of 10 nano seconds 324c7eca79dSAvraham Stern * @t1_lo: low dword of t1-time of the Tx'ed action frame departure on 325c7eca79dSAvraham Stern * sender side in units of 10 nano seconds 326c7eca79dSAvraham Stern * @t1_max_err: maximum t1-time error in units of 10 nano seconds 327c7eca79dSAvraham Stern * @t4_hi: high dword of t4-time of the Rx'ed action frame's Ack arrival on 328c7eca79dSAvraham Stern * sender side in units of 10 nano seconds 329c7eca79dSAvraham Stern * @t4_lo: low dword of t4-time of the Rx'ed action frame's Ack arrival on 330c7eca79dSAvraham Stern * sender side in units of 10 nano seconds 331c7eca79dSAvraham Stern * @t4_max_err: maximum t4-time error in units of 10 nano seconds 332c7eca79dSAvraham Stern */ 333c7eca79dSAvraham Stern struct iwl_time_msmt_cfm_notify { 334c7eca79dSAvraham Stern u8 peer_addr[ETH_ALEN]; 335c7eca79dSAvraham Stern u8 reserved[2]; 336c7eca79dSAvraham Stern __le32 dialog_token; 337c7eca79dSAvraham Stern __le32 t1_hi; 338c7eca79dSAvraham Stern __le32 t1_lo; 339c7eca79dSAvraham Stern __le32 t1_max_err; 340c7eca79dSAvraham Stern __le32 t4_hi; 341c7eca79dSAvraham Stern __le32 t4_lo; 342c7eca79dSAvraham Stern __le32 t4_max_err; 343c7eca79dSAvraham Stern } __packed; /* WNM_80211V_TIMING_MEASUREMENT_CONFIRM_NTFY_API_S_VER_1 */ 344c7eca79dSAvraham Stern 34521fb8da6SAvraham Stern /** 3465213e8a8SJohannes Berg * struct iwl_channel_estimation_cfg - channel estimation reporting config 3475213e8a8SJohannes Berg */ 3485213e8a8SJohannes Berg struct iwl_channel_estimation_cfg { 3495213e8a8SJohannes Berg /** 3505213e8a8SJohannes Berg * @flags: flags, see &enum iwl_channel_estimation_flags 3515213e8a8SJohannes Berg */ 3525213e8a8SJohannes Berg __le32 flags; 3535213e8a8SJohannes Berg /** 3545213e8a8SJohannes Berg * @timer: if enabled via flags, automatically disable after this many 3555213e8a8SJohannes Berg * microseconds 3565213e8a8SJohannes Berg */ 3575213e8a8SJohannes Berg __le32 timer; 3585213e8a8SJohannes Berg /** 3595213e8a8SJohannes Berg * @count: if enabled via flags, automatically disable after this many 3605213e8a8SJohannes Berg * frames with channel estimation matrix were captured 3615213e8a8SJohannes Berg */ 3625213e8a8SJohannes Berg __le32 count; 3635213e8a8SJohannes Berg /** 3645213e8a8SJohannes Berg * @rate_n_flags_mask: only try to record the channel estimation matrix 3655213e8a8SJohannes Berg * if the rate_n_flags value for the received frame (let's call 3665213e8a8SJohannes Berg * that rx_rnf) matches the mask/value given here like this: 3675213e8a8SJohannes Berg * (rx_rnf & rate_n_flags_mask) == rate_n_flags_val. 3685213e8a8SJohannes Berg */ 3695213e8a8SJohannes Berg __le32 rate_n_flags_mask; 3705213e8a8SJohannes Berg /** 3715213e8a8SJohannes Berg * @rate_n_flags_val: see @rate_n_flags_mask 3725213e8a8SJohannes Berg */ 3735213e8a8SJohannes Berg __le32 rate_n_flags_val; 3745213e8a8SJohannes Berg /** 3755213e8a8SJohannes Berg * @reserved: reserved (for alignment) 3765213e8a8SJohannes Berg */ 3775213e8a8SJohannes Berg __le32 reserved; 3785213e8a8SJohannes Berg /** 3795213e8a8SJohannes Berg * @frame_types: bitmap of frame types to capture, the received frame's 3805213e8a8SJohannes Berg * subtype|type takes 6 bits in the frame and the corresponding bit 3815213e8a8SJohannes Berg * in this field must be set to 1 to capture channel estimation for 3825213e8a8SJohannes Berg * that frame type. Set to all-ones to enable capturing for all 3835213e8a8SJohannes Berg * frame types. 3845213e8a8SJohannes Berg */ 3855213e8a8SJohannes Berg __le64 frame_types; 3865213e8a8SJohannes Berg } __packed; /* CHEST_COLLECTOR_FILTER_CMD_API_S_VER_1 */ 3875213e8a8SJohannes Berg 388f7d6ef33SJohannes Berg enum iwl_datapath_monitor_notif_type { 389f7d6ef33SJohannes Berg IWL_DP_MON_NOTIF_TYPE_EXT_CCA, 390f7d6ef33SJohannes Berg }; 391f7d6ef33SJohannes Berg 392f7d6ef33SJohannes Berg struct iwl_datapath_monitor_notif { 393f7d6ef33SJohannes Berg __le32 type; 394f7d6ef33SJohannes Berg u8 mac_id; 395f7d6ef33SJohannes Berg u8 reserved[3]; 396f7d6ef33SJohannes Berg } __packed; /* MONITOR_NTF_API_S_VER_1 */ 397f7d6ef33SJohannes Berg 3982a7ce54cSJohannes Berg /** 3992a7ce54cSJohannes Berg * enum iwl_thermal_dual_chain_req_events - firmware SMPS request event 4002a7ce54cSJohannes Berg * @THERMAL_DUAL_CHAIN_REQ_ENABLE: (re-)enable dual-chain operation 4012a7ce54cSJohannes Berg * (subject to other constraints) 4022a7ce54cSJohannes Berg * @THERMAL_DUAL_CHAIN_REQ_DISABLE: disable dual-chain operation 4032a7ce54cSJohannes Berg * (static SMPS) 4042a7ce54cSJohannes Berg */ 4052a7ce54cSJohannes Berg enum iwl_thermal_dual_chain_req_events { 4062a7ce54cSJohannes Berg THERMAL_DUAL_CHAIN_REQ_ENABLE, 4072a7ce54cSJohannes Berg THERMAL_DUAL_CHAIN_REQ_DISABLE, 4082a7ce54cSJohannes Berg }; /* THERMAL_DUAL_CHAIN_DISABLE_STATE_API_E_VER_1 */ 4092a7ce54cSJohannes Berg 4102a7ce54cSJohannes Berg /** 4112a7ce54cSJohannes Berg * struct iwl_thermal_dual_chain_request - SMPS request 4122a7ce54cSJohannes Berg * @event: the type of request, see &enum iwl_thermal_dual_chain_req_events 4132a7ce54cSJohannes Berg */ 4142a7ce54cSJohannes Berg struct iwl_thermal_dual_chain_request { 4152a7ce54cSJohannes Berg __le32 event; 4162a7ce54cSJohannes Berg } __packed; /* THERMAL_DUAL_CHAIN_DISABLE_REQ_NTFY_API_S_VER_1 */ 4172a7ce54cSJohannes Berg 418c48e93a6SJohannes Berg enum iwl_rlc_chain_info { 419c48e93a6SJohannes Berg IWL_RLC_CHAIN_INFO_DRIVER_FORCE = BIT(0), 420c48e93a6SJohannes Berg IWL_RLC_CHAIN_INFO_VALID = 0x000e, 421c48e93a6SJohannes Berg IWL_RLC_CHAIN_INFO_FORCE = 0x0070, 422c48e93a6SJohannes Berg IWL_RLC_CHAIN_INFO_FORCE_MIMO = 0x0380, 423c48e93a6SJohannes Berg IWL_RLC_CHAIN_INFO_COUNT = 0x0c00, 424c48e93a6SJohannes Berg IWL_RLC_CHAIN_INFO_MIMO_COUNT = 0x3000, 425c48e93a6SJohannes Berg }; 426c48e93a6SJohannes Berg 427c48e93a6SJohannes Berg /** 428c48e93a6SJohannes Berg * struct iwl_rlc_properties - RLC properties 429c48e93a6SJohannes Berg * @rx_chain_info: RX chain info, &enum iwl_rlc_chain_info 430c48e93a6SJohannes Berg * @reserved: reserved 431c48e93a6SJohannes Berg */ 432c48e93a6SJohannes Berg struct iwl_rlc_properties { 433c48e93a6SJohannes Berg __le32 rx_chain_info; 434c48e93a6SJohannes Berg __le32 reserved; 435c48e93a6SJohannes Berg } __packed; /* RLC_PROPERTIES_S_VER_1 */ 436c48e93a6SJohannes Berg 437c48e93a6SJohannes Berg enum iwl_sad_mode { 438c48e93a6SJohannes Berg IWL_SAD_MODE_ENABLED = BIT(0), 439c48e93a6SJohannes Berg IWL_SAD_MODE_DEFAULT_ANT_MSK = 0x6, 440c48e93a6SJohannes Berg IWL_SAD_MODE_DEFAULT_ANT_FW = 0x0, 441c48e93a6SJohannes Berg IWL_SAD_MODE_DEFAULT_ANT_A = 0x2, 442c48e93a6SJohannes Berg IWL_SAD_MODE_DEFAULT_ANT_B = 0x4, 443c48e93a6SJohannes Berg }; 444c48e93a6SJohannes Berg 445c48e93a6SJohannes Berg /** 446c48e93a6SJohannes Berg * struct iwl_sad_properties - SAD properties 447c48e93a6SJohannes Berg * @chain_a_sad_mode: chain A SAD mode, &enum iwl_sad_mode 448c48e93a6SJohannes Berg * @chain_b_sad_mode: chain B SAD mode, &enum iwl_sad_mode 449c48e93a6SJohannes Berg * @mac_id: MAC index 450c48e93a6SJohannes Berg * @reserved: reserved 451c48e93a6SJohannes Berg */ 452c48e93a6SJohannes Berg struct iwl_sad_properties { 453c48e93a6SJohannes Berg __le32 chain_a_sad_mode; 454c48e93a6SJohannes Berg __le32 chain_b_sad_mode; 455c48e93a6SJohannes Berg __le32 mac_id; 456c48e93a6SJohannes Berg __le32 reserved; 457c48e93a6SJohannes Berg } __packed; 458c48e93a6SJohannes Berg 459c48e93a6SJohannes Berg /** 460c48e93a6SJohannes Berg * struct iwl_rlc_config_cmd - RLC configuration 461c48e93a6SJohannes Berg * @phy_id: PHY index 462c48e93a6SJohannes Berg * @rlc: RLC properties, &struct iwl_rlc_properties 463c48e93a6SJohannes Berg * @sad: SAD (single antenna diversity) options, &struct iwl_sad_properties 46443413a36SJohannes Berg * @flags: flags (unused) 465c48e93a6SJohannes Berg * @reserved: reserved 466c48e93a6SJohannes Berg */ 467c48e93a6SJohannes Berg struct iwl_rlc_config_cmd { 468c48e93a6SJohannes Berg __le32 phy_id; 469c48e93a6SJohannes Berg struct iwl_rlc_properties rlc; 470c48e93a6SJohannes Berg struct iwl_sad_properties sad; 471c48e93a6SJohannes Berg u8 flags; 472c48e93a6SJohannes Berg u8 reserved[3]; 473c48e93a6SJohannes Berg } __packed; /* RLC_CONFIG_CMD_API_S_VER_2 */ 474c48e93a6SJohannes Berg 475ded5ded3SEmmanuel Grumbach #define IWL_MAX_BAID_OLD 16 /* MAX_IMMEDIATE_BA_API_D_VER_2 */ 476ded5ded3SEmmanuel Grumbach #define IWL_MAX_BAID 32 /* MAX_IMMEDIATE_BA_API_D_VER_3 */ 477ded5ded3SEmmanuel Grumbach 47897f70c56SJohannes Berg /** 47997f70c56SJohannes Berg * enum iwl_rx_baid_action - BAID allocation/config action 48097f70c56SJohannes Berg * @IWL_RX_BAID_ACTION_ADD: add a new BAID session 48197f70c56SJohannes Berg * @IWL_RX_BAID_ACTION_MODIFY: modify the BAID session 48297f70c56SJohannes Berg * @IWL_RX_BAID_ACTION_REMOVE: remove the BAID session 48397f70c56SJohannes Berg */ 48497f70c56SJohannes Berg enum iwl_rx_baid_action { 48597f70c56SJohannes Berg IWL_RX_BAID_ACTION_ADD, 48697f70c56SJohannes Berg IWL_RX_BAID_ACTION_MODIFY, 48797f70c56SJohannes Berg IWL_RX_BAID_ACTION_REMOVE, 48897f70c56SJohannes Berg }; /* RX_BAID_ALLOCATION_ACTION_E_VER_1 */ 48997f70c56SJohannes Berg 49097f70c56SJohannes Berg /** 49197f70c56SJohannes Berg * struct iwl_rx_baid_cfg_cmd_alloc - BAID allocation data 49297f70c56SJohannes Berg * @sta_id_mask: station ID mask 49397f70c56SJohannes Berg * @tid: the TID for this session 49497f70c56SJohannes Berg * @reserved: reserved 49597f70c56SJohannes Berg * @ssn: the starting sequence number 49697f70c56SJohannes Berg * @win_size: RX BA session window size 49797f70c56SJohannes Berg */ 49897f70c56SJohannes Berg struct iwl_rx_baid_cfg_cmd_alloc { 49997f70c56SJohannes Berg __le32 sta_id_mask; 50097f70c56SJohannes Berg u8 tid; 50197f70c56SJohannes Berg u8 reserved[3]; 50297f70c56SJohannes Berg __le16 ssn; 50397f70c56SJohannes Berg __le16 win_size; 50497f70c56SJohannes Berg } __packed; /* RX_BAID_ALLOCATION_ADD_CMD_API_S_VER_1 */ 50597f70c56SJohannes Berg 50697f70c56SJohannes Berg /** 50797f70c56SJohannes Berg * struct iwl_rx_baid_cfg_cmd_modify - BAID modification data 50826de4c8bSJohannes Berg * @old_sta_id_mask: old station ID mask 50926de4c8bSJohannes Berg * @new_sta_id_mask: new station ID mask 51026de4c8bSJohannes Berg * @tid: TID of the BAID 51197f70c56SJohannes Berg */ 51297f70c56SJohannes Berg struct iwl_rx_baid_cfg_cmd_modify { 51326de4c8bSJohannes Berg __le32 old_sta_id_mask; 51426de4c8bSJohannes Berg __le32 new_sta_id_mask; 51526de4c8bSJohannes Berg __le32 tid; 51626de4c8bSJohannes Berg } __packed; /* RX_BAID_ALLOCATION_MODIFY_CMD_API_S_VER_2 */ 51726de4c8bSJohannes Berg 51826de4c8bSJohannes Berg /** 51926de4c8bSJohannes Berg * struct iwl_rx_baid_cfg_cmd_remove_v1 - BAID removal data 52026de4c8bSJohannes Berg * @baid: the BAID to remove 52126de4c8bSJohannes Berg */ 52226de4c8bSJohannes Berg struct iwl_rx_baid_cfg_cmd_remove_v1 { 52397f70c56SJohannes Berg __le32 baid; 52426de4c8bSJohannes Berg } __packed; /* RX_BAID_ALLOCATION_REMOVE_CMD_API_S_VER_1 */ 52597f70c56SJohannes Berg 52697f70c56SJohannes Berg /** 52797f70c56SJohannes Berg * struct iwl_rx_baid_cfg_cmd_remove - BAID removal data 52826de4c8bSJohannes Berg * @sta_id_mask: the station mask of the BAID to remove 52926de4c8bSJohannes Berg * @tid: the TID of the BAID to remove 53097f70c56SJohannes Berg */ 53197f70c56SJohannes Berg struct iwl_rx_baid_cfg_cmd_remove { 53226de4c8bSJohannes Berg __le32 sta_id_mask; 53326de4c8bSJohannes Berg __le32 tid; 53426de4c8bSJohannes Berg } __packed; /* RX_BAID_ALLOCATION_REMOVE_CMD_API_S_VER_2 */ 53597f70c56SJohannes Berg 53697f70c56SJohannes Berg /** 53797f70c56SJohannes Berg * struct iwl_rx_baid_cfg_cmd - BAID allocation/config command 53897f70c56SJohannes Berg * @action: the action, from &enum iwl_rx_baid_action 539*ba59cfb7SJohannes Berg * @alloc: allocation data 540*ba59cfb7SJohannes Berg * @modify: modify data 541*ba59cfb7SJohannes Berg * @remove_v1: remove data (version 1) 542*ba59cfb7SJohannes Berg * @remove: remove data 54397f70c56SJohannes Berg */ 54497f70c56SJohannes Berg struct iwl_rx_baid_cfg_cmd { 54597f70c56SJohannes Berg __le32 action; 54697f70c56SJohannes Berg union { 54797f70c56SJohannes Berg struct iwl_rx_baid_cfg_cmd_alloc alloc; 54897f70c56SJohannes Berg struct iwl_rx_baid_cfg_cmd_modify modify; 54926de4c8bSJohannes Berg struct iwl_rx_baid_cfg_cmd_remove_v1 remove_v1; 55097f70c56SJohannes Berg struct iwl_rx_baid_cfg_cmd_remove remove; 55126de4c8bSJohannes Berg }; /* RX_BAID_ALLOCATION_OPERATION_API_U_VER_2 */ 55226de4c8bSJohannes Berg } __packed; /* RX_BAID_ALLOCATION_CONFIG_CMD_API_S_VER_2 */ 55397f70c56SJohannes Berg 55497f70c56SJohannes Berg /** 55597f70c56SJohannes Berg * struct iwl_rx_baid_cfg_resp - BAID allocation response 55697f70c56SJohannes Berg * @baid: the allocated BAID 55797f70c56SJohannes Berg */ 55897f70c56SJohannes Berg struct iwl_rx_baid_cfg_resp { 55997f70c56SJohannes Berg __le32 baid; 56097f70c56SJohannes Berg }; /* RX_BAID_ALLOCATION_RESPONSE_API_S_VER_1 */ 56197f70c56SJohannes Berg 562227f2597SJohannes Berg /** 563227f2597SJohannes Berg * enum iwl_scd_queue_cfg_operation - scheduler queue operation 564227f2597SJohannes Berg * @IWL_SCD_QUEUE_ADD: allocate a new queue 565227f2597SJohannes Berg * @IWL_SCD_QUEUE_REMOVE: remove a queue 566227f2597SJohannes Berg * @IWL_SCD_QUEUE_MODIFY: modify a queue 567227f2597SJohannes Berg */ 568227f2597SJohannes Berg enum iwl_scd_queue_cfg_operation { 569227f2597SJohannes Berg IWL_SCD_QUEUE_ADD = 0, 570227f2597SJohannes Berg IWL_SCD_QUEUE_REMOVE = 1, 571227f2597SJohannes Berg IWL_SCD_QUEUE_MODIFY = 2, 572227f2597SJohannes Berg }; 573227f2597SJohannes Berg 574227f2597SJohannes Berg /** 575227f2597SJohannes Berg * struct iwl_scd_queue_cfg_cmd - scheduler queue allocation command 576227f2597SJohannes Berg * @operation: the operation, see &enum iwl_scd_queue_cfg_operation 577*ba59cfb7SJohannes Berg * @u: union depending on command usage 578227f2597SJohannes Berg * @u.add.sta_mask: station mask 579227f2597SJohannes Berg * @u.add.tid: TID 580227f2597SJohannes Berg * @u.add.reserved: reserved 581227f2597SJohannes Berg * @u.add.flags: flags from &enum iwl_tx_queue_cfg_actions, except 582227f2597SJohannes Berg * %TX_QUEUE_CFG_ENABLE_QUEUE is not valid 583227f2597SJohannes Berg * @u.add.cb_size: size code 584227f2597SJohannes Berg * @u.add.bc_dram_addr: byte-count table IOVA 585227f2597SJohannes Berg * @u.add.tfdq_dram_addr: TFD queue IOVA 586c5a976cfSJohannes Berg * @u.remove.sta_mask: station mask of queue to remove 587c5a976cfSJohannes Berg * @u.remove.tid: TID of queue to remove 588c5a976cfSJohannes Berg * @u.modify.old_sta_mask: old station mask for modify 589c5a976cfSJohannes Berg * @u.modify.tid: TID of queue to modify 590c5a976cfSJohannes Berg * @u.modify.new_sta_mask: new station mask for modify 591227f2597SJohannes Berg */ 592227f2597SJohannes Berg struct iwl_scd_queue_cfg_cmd { 593227f2597SJohannes Berg __le32 operation; 594227f2597SJohannes Berg union { 595227f2597SJohannes Berg struct { 596227f2597SJohannes Berg __le32 sta_mask; 597227f2597SJohannes Berg u8 tid; 598227f2597SJohannes Berg u8 reserved[3]; 599227f2597SJohannes Berg __le32 flags; 600227f2597SJohannes Berg __le32 cb_size; 601227f2597SJohannes Berg __le64 bc_dram_addr; 602227f2597SJohannes Berg __le64 tfdq_dram_addr; 603227f2597SJohannes Berg } __packed add; /* TX_QUEUE_CFG_CMD_ADD_API_S_VER_1 */ 604227f2597SJohannes Berg struct { 605c5a976cfSJohannes Berg __le32 sta_mask; 606c5a976cfSJohannes Berg __le32 tid; 607227f2597SJohannes Berg } __packed remove; /* TX_QUEUE_CFG_CMD_REMOVE_API_S_VER_1 */ 608227f2597SJohannes Berg struct { 609c5a976cfSJohannes Berg __le32 old_sta_mask; 610c5a976cfSJohannes Berg __le32 tid; 611c5a976cfSJohannes Berg __le32 new_sta_mask; 612227f2597SJohannes Berg } __packed modify; /* TX_QUEUE_CFG_CMD_MODIFY_API_S_VER_1 */ 613227f2597SJohannes Berg } __packed u; /* TX_QUEUE_CFG_CMD_OPERATION_API_U_VER_1 */ 614227f2597SJohannes Berg } __packed; /* TX_QUEUE_CFG_CMD_API_S_VER_3 */ 615227f2597SJohannes Berg 6165c75a208SJohannes Berg /** 6175c75a208SJohannes Berg * enum iwl_sec_key_flags - security key command key flags 6185c75a208SJohannes Berg * @IWL_SEC_KEY_FLAG_CIPHER_MASK: cipher mask 6195c75a208SJohannes Berg * @IWL_SEC_KEY_FLAG_CIPHER_WEP: WEP cipher 6205c75a208SJohannes Berg * @IWL_SEC_KEY_FLAG_CIPHER_CCMP: CCMP/CMAC cipher 6215c75a208SJohannes Berg * @IWL_SEC_KEY_FLAG_CIPHER_TKIP: TKIP cipher 6225c75a208SJohannes Berg * @IWL_SEC_KEY_FLAG_CIPHER_GCMP: GCMP/GMAC cipher 6235c75a208SJohannes Berg * @IWL_SEC_KEY_FLAG_NO_TX: don't install for TX 6245c75a208SJohannes Berg * @IWL_SEC_KEY_FLAG_KEY_SIZE: large key size (WEP-104, GCMP-256, GMAC-256) 6255c75a208SJohannes Berg * @IWL_SEC_KEY_FLAG_MFP: MFP is in used for this key 6265c75a208SJohannes Berg * @IWL_SEC_KEY_FLAG_MCAST_KEY: this is a multicast key 6275c75a208SJohannes Berg * @IWL_SEC_KEY_FLAG_SPP_AMSDU: SPP A-MSDU should be used 6285c75a208SJohannes Berg */ 6295c75a208SJohannes Berg enum iwl_sec_key_flags { 6305c75a208SJohannes Berg IWL_SEC_KEY_FLAG_CIPHER_MASK = 0x07, 6315c75a208SJohannes Berg IWL_SEC_KEY_FLAG_CIPHER_WEP = 0x01, 6325c75a208SJohannes Berg IWL_SEC_KEY_FLAG_CIPHER_CCMP = 0x02, 6335c75a208SJohannes Berg IWL_SEC_KEY_FLAG_CIPHER_TKIP = 0x03, 6345c75a208SJohannes Berg IWL_SEC_KEY_FLAG_CIPHER_GCMP = 0x05, 6355c75a208SJohannes Berg IWL_SEC_KEY_FLAG_NO_TX = 0x08, 6365c75a208SJohannes Berg IWL_SEC_KEY_FLAG_KEY_SIZE = 0x10, 6375c75a208SJohannes Berg IWL_SEC_KEY_FLAG_MFP = 0x20, 6385c75a208SJohannes Berg IWL_SEC_KEY_FLAG_MCAST_KEY = 0x40, 6395c75a208SJohannes Berg IWL_SEC_KEY_FLAG_SPP_AMSDU = 0x80, 6405c75a208SJohannes Berg }; 6415c75a208SJohannes Berg 6425c75a208SJohannes Berg #define IWL_SEC_WEP_KEY_OFFSET 3 6435c75a208SJohannes Berg 6445c75a208SJohannes Berg /** 6455c75a208SJohannes Berg * struct iwl_sec_key_cmd - security key command 6465c75a208SJohannes Berg * @action: action from &enum iwl_ctxt_action 647*ba59cfb7SJohannes Berg * @u: union depending on command type 6485c75a208SJohannes Berg * @u.add.sta_mask: station mask for the new key 6495c75a208SJohannes Berg * @u.add.key_id: key ID (0-7) for the new key 6505c75a208SJohannes Berg * @u.add.key_flags: key flags per &enum iwl_sec_key_flags 6515c75a208SJohannes Berg * @u.add.key: key material. WEP keys should start from &IWL_SEC_WEP_KEY_OFFSET. 6525c75a208SJohannes Berg * @u.add.tkip_mic_rx_key: TKIP MIC RX key 6535c75a208SJohannes Berg * @u.add.tkip_mic_tx_key: TKIP MIC TX key 6545c75a208SJohannes Berg * @u.add.rx_seq: RX sequence counter value 6555c75a208SJohannes Berg * @u.add.tx_seq: TX sequence counter value 6565c75a208SJohannes Berg * @u.modify.old_sta_mask: old station mask 6575c75a208SJohannes Berg * @u.modify.new_sta_mask: new station mask 6585c75a208SJohannes Berg * @u.modify.key_id: key ID 6595c75a208SJohannes Berg * @u.modify.key_flags: new key flags 6605c75a208SJohannes Berg * @u.remove.sta_mask: station mask 6615c75a208SJohannes Berg * @u.remove.key_id: key ID 6625c75a208SJohannes Berg * @u.remove.key_flags: key flags 6635c75a208SJohannes Berg */ 6645c75a208SJohannes Berg struct iwl_sec_key_cmd { 6655c75a208SJohannes Berg __le32 action; 6665c75a208SJohannes Berg union { 6675c75a208SJohannes Berg struct { 6685c75a208SJohannes Berg __le32 sta_mask; 6695c75a208SJohannes Berg __le32 key_id; 6705c75a208SJohannes Berg __le32 key_flags; 6715c75a208SJohannes Berg u8 key[32]; 6725c75a208SJohannes Berg u8 tkip_mic_rx_key[8]; 6735c75a208SJohannes Berg u8 tkip_mic_tx_key[8]; 6745c75a208SJohannes Berg __le64 rx_seq; 6755c75a208SJohannes Berg __le64 tx_seq; 6765c75a208SJohannes Berg } __packed add; /* SEC_KEY_ADD_CMD_API_S_VER_1 */ 6775c75a208SJohannes Berg struct { 6785c75a208SJohannes Berg __le32 old_sta_mask; 6795c75a208SJohannes Berg __le32 new_sta_mask; 6805c75a208SJohannes Berg __le32 key_id; 6815c75a208SJohannes Berg __le32 key_flags; 6825c75a208SJohannes Berg } __packed modify; /* SEC_KEY_MODIFY_CMD_API_S_VER_1 */ 6835c75a208SJohannes Berg struct { 6845c75a208SJohannes Berg __le32 sta_mask; 6855c75a208SJohannes Berg __le32 key_id; 6865c75a208SJohannes Berg __le32 key_flags; 6875c75a208SJohannes Berg } __packed remove; /* SEC_KEY_REMOVE_CMD_API_S_VER_1 */ 6885c75a208SJohannes Berg } __packed u; /* SEC_KEY_OPERATION_API_U_VER_1 */ 6895c75a208SJohannes Berg } __packed; /* SEC_KEY_CMD_API_S_VER_1 */ 6905c75a208SJohannes Berg 691d172a5efSJohannes Berg #endif /* __iwl_fw_api_datapath_h__ */ 692