1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */ 2 /* 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. 5 */ 6 7 #ifndef ATH12K_WMI_H 8 #define ATH12K_WMI_H 9 10 #include <net/mac80211.h> 11 #include "htc.h" 12 13 /* Naming conventions for structures: 14 * 15 * _cmd means that this is a firmware command sent from host to firmware. 16 * 17 * _event means that this is a firmware event sent from firmware to host 18 * 19 * _params is a structure which is embedded either into _cmd or _event (or 20 * both), it is not sent individually. 21 * 22 * _arg is used inside the host, the firmware does not see that at all. 23 */ 24 25 struct ath12k_base; 26 struct ath12k; 27 28 /* There is no signed version of __le32, so for a temporary solution come 29 * up with our own version. The idea is from fs/ntfs/endian.h. 30 * 31 * Use a_ prefix so that it doesn't conflict if we get proper support to 32 * linux/types.h. 33 */ 34 typedef __s32 __bitwise a_sle32; 35 36 static inline a_sle32 a_cpu_to_sle32(s32 val) 37 { 38 return (__force a_sle32)cpu_to_le32(val); 39 } 40 41 static inline s32 a_sle32_to_cpu(a_sle32 val) 42 { 43 return le32_to_cpu((__force __le32)val); 44 } 45 46 /* defines to set Packet extension values which can be 0 us, 8 usec or 16 usec */ 47 #define MAX_HE_NSS 8 48 #define MAX_HE_MODULATION 8 49 #define MAX_HE_RU 4 50 #define HE_MODULATION_NONE 7 51 #define HE_PET_0_USEC 0 52 #define HE_PET_8_USEC 1 53 #define HE_PET_16_USEC 2 54 55 #define WMI_MAX_CHAINS 8 56 57 #define WMI_MAX_NUM_SS MAX_HE_NSS 58 #define WMI_MAX_NUM_RU MAX_HE_RU 59 60 #define WMI_TLV_CMD(grp_id) (((grp_id) << 12) | 0x1) 61 #define WMI_TLV_EV(grp_id) (((grp_id) << 12) | 0x1) 62 #define WMI_TLV_CMD_UNSUPPORTED 0 63 #define WMI_TLV_PDEV_PARAM_UNSUPPORTED 0 64 #define WMI_TLV_VDEV_PARAM_UNSUPPORTED 0 65 66 struct wmi_cmd_hdr { 67 __le32 cmd_id; 68 } __packed; 69 70 struct wmi_tlv { 71 __le32 header; 72 u8 value[]; 73 } __packed; 74 75 #define WMI_TLV_LEN GENMASK(15, 0) 76 #define WMI_TLV_TAG GENMASK(31, 16) 77 #define TLV_HDR_SIZE sizeof_field(struct wmi_tlv, header) 78 79 #define WMI_CMD_HDR_CMD_ID GENMASK(23, 0) 80 #define WMI_MAX_MEM_REQS 32 81 #define ATH12K_MAX_HW_LISTEN_INTERVAL 5 82 83 #define WMI_HOST_RC_DS_FLAG 0x01 84 #define WMI_HOST_RC_CW40_FLAG 0x02 85 #define WMI_HOST_RC_SGI_FLAG 0x04 86 #define WMI_HOST_RC_HT_FLAG 0x08 87 #define WMI_HOST_RC_RTSCTS_FLAG 0x10 88 #define WMI_HOST_RC_TX_STBC_FLAG 0x20 89 #define WMI_HOST_RC_RX_STBC_FLAG 0xC0 90 #define WMI_HOST_RC_RX_STBC_FLAG_S 6 91 #define WMI_HOST_RC_WEP_TKIP_FLAG 0x100 92 #define WMI_HOST_RC_TS_FLAG 0x200 93 #define WMI_HOST_RC_UAPSD_FLAG 0x400 94 95 #define WMI_HT_CAP_ENABLED 0x0001 96 #define WMI_HT_CAP_HT20_SGI 0x0002 97 #define WMI_HT_CAP_DYNAMIC_SMPS 0x0004 98 #define WMI_HT_CAP_TX_STBC 0x0008 99 #define WMI_HT_CAP_TX_STBC_MASK_SHIFT 3 100 #define WMI_HT_CAP_RX_STBC 0x0030 101 #define WMI_HT_CAP_RX_STBC_MASK_SHIFT 4 102 #define WMI_HT_CAP_LDPC 0x0040 103 #define WMI_HT_CAP_L_SIG_TXOP_PROT 0x0080 104 #define WMI_HT_CAP_MPDU_DENSITY 0x0700 105 #define WMI_HT_CAP_MPDU_DENSITY_MASK_SHIFT 8 106 #define WMI_HT_CAP_HT40_SGI 0x0800 107 #define WMI_HT_CAP_RX_LDPC 0x1000 108 #define WMI_HT_CAP_TX_LDPC 0x2000 109 #define WMI_HT_CAP_IBF_BFER 0x4000 110 111 /* These macros should be used when we wish to advertise STBC support for 112 * only 1SS or 2SS or 3SS. 113 */ 114 #define WMI_HT_CAP_RX_STBC_1SS 0x0010 115 #define WMI_HT_CAP_RX_STBC_2SS 0x0020 116 #define WMI_HT_CAP_RX_STBC_3SS 0x0030 117 118 #define WMI_HT_CAP_DEFAULT_ALL (WMI_HT_CAP_ENABLED | \ 119 WMI_HT_CAP_HT20_SGI | \ 120 WMI_HT_CAP_HT40_SGI | \ 121 WMI_HT_CAP_TX_STBC | \ 122 WMI_HT_CAP_RX_STBC | \ 123 WMI_HT_CAP_LDPC) 124 125 #define WMI_VHT_CAP_MAX_MPDU_LEN_MASK 0x00000003 126 #define WMI_VHT_CAP_RX_LDPC 0x00000010 127 #define WMI_VHT_CAP_SGI_80MHZ 0x00000020 128 #define WMI_VHT_CAP_SGI_160MHZ 0x00000040 129 #define WMI_VHT_CAP_TX_STBC 0x00000080 130 #define WMI_VHT_CAP_RX_STBC_MASK 0x00000300 131 #define WMI_VHT_CAP_RX_STBC_MASK_SHIFT 8 132 #define WMI_VHT_CAP_SU_BFER 0x00000800 133 #define WMI_VHT_CAP_SU_BFEE 0x00001000 134 #define WMI_VHT_CAP_MAX_CS_ANT_MASK 0x0000E000 135 #define WMI_VHT_CAP_MAX_CS_ANT_MASK_SHIFT 13 136 #define WMI_VHT_CAP_MAX_SND_DIM_MASK 0x00070000 137 #define WMI_VHT_CAP_MAX_SND_DIM_MASK_SHIFT 16 138 #define WMI_VHT_CAP_MU_BFER 0x00080000 139 #define WMI_VHT_CAP_MU_BFEE 0x00100000 140 #define WMI_VHT_CAP_MAX_AMPDU_LEN_EXP 0x03800000 141 #define WMI_VHT_CAP_MAX_AMPDU_LEN_EXP_SHIT 23 142 #define WMI_VHT_CAP_RX_FIXED_ANT 0x10000000 143 #define WMI_VHT_CAP_TX_FIXED_ANT 0x20000000 144 145 #define WMI_VHT_CAP_MAX_MPDU_LEN_11454 0x00000002 146 147 /* These macros should be used when we wish to advertise STBC support for 148 * only 1SS or 2SS or 3SS. 149 */ 150 #define WMI_VHT_CAP_RX_STBC_1SS 0x00000100 151 #define WMI_VHT_CAP_RX_STBC_2SS 0x00000200 152 #define WMI_VHT_CAP_RX_STBC_3SS 0x00000300 153 154 #define WMI_VHT_CAP_DEFAULT_ALL (WMI_VHT_CAP_MAX_MPDU_LEN_11454 | \ 155 WMI_VHT_CAP_SGI_80MHZ | \ 156 WMI_VHT_CAP_TX_STBC | \ 157 WMI_VHT_CAP_RX_STBC_MASK | \ 158 WMI_VHT_CAP_RX_LDPC | \ 159 WMI_VHT_CAP_MAX_AMPDU_LEN_EXP | \ 160 WMI_VHT_CAP_RX_FIXED_ANT | \ 161 WMI_VHT_CAP_TX_FIXED_ANT) 162 163 #define WLAN_SCAN_MAX_HINT_S_SSID 10 164 #define WLAN_SCAN_MAX_HINT_BSSID 10 165 #define MAX_RNR_BSS 5 166 167 #define WLAN_SCAN_MAX_HINT_S_SSID 10 168 #define WLAN_SCAN_MAX_HINT_BSSID 10 169 #define MAX_RNR_BSS 5 170 171 #define WLAN_SCAN_PARAMS_MAX_SSID 16 172 #define WLAN_SCAN_PARAMS_MAX_BSSID 4 173 #define WLAN_SCAN_PARAMS_MAX_IE_LEN 256 174 175 #define WMI_APPEND_TO_EXISTING_CHAN_LIST_FLAG 1 176 177 #define WMI_BA_MODE_BUFFER_SIZE_256 3 178 179 /* HW mode config type replicated from FW header 180 * @WMI_HOST_HW_MODE_SINGLE: Only one PHY is active. 181 * @WMI_HOST_HW_MODE_DBS: Both PHYs are active in different bands, 182 * one in 2G and another in 5G. 183 * @WMI_HOST_HW_MODE_SBS_PASSIVE: Both PHYs are in passive mode (only rx) in 184 * same band; no tx allowed. 185 * @WMI_HOST_HW_MODE_SBS: Both PHYs are active in the same band. 186 * Support for both PHYs within one band is planned 187 * for 5G only(as indicated in WMI_MAC_PHY_CAPABILITIES), 188 * but could be extended to other bands in the future. 189 * The separation of the band between the two PHYs needs 190 * to be communicated separately. 191 * @WMI_HOST_HW_MODE_DBS_SBS: 3 PHYs, with 2 on the same band doing SBS 192 * as in WMI_HW_MODE_SBS, and 3rd on the other band 193 * @WMI_HOST_HW_MODE_DBS_OR_SBS: Two PHY with one PHY capabale of both 2G and 194 * 5G. It can support SBS (5G + 5G) OR DBS (5G + 2G). 195 * @WMI_HOST_HW_MODE_MAX: Max hw_mode_id. Used to indicate invalid mode. 196 */ 197 enum wmi_host_hw_mode_config_type { 198 WMI_HOST_HW_MODE_SINGLE = 0, 199 WMI_HOST_HW_MODE_DBS = 1, 200 WMI_HOST_HW_MODE_SBS_PASSIVE = 2, 201 WMI_HOST_HW_MODE_SBS = 3, 202 WMI_HOST_HW_MODE_DBS_SBS = 4, 203 WMI_HOST_HW_MODE_DBS_OR_SBS = 5, 204 205 /* keep last */ 206 WMI_HOST_HW_MODE_MAX 207 }; 208 209 /* HW mode priority values used to detect the preferred HW mode 210 * on the available modes. 211 */ 212 enum wmi_host_hw_mode_priority { 213 WMI_HOST_HW_MODE_DBS_SBS_PRI, 214 WMI_HOST_HW_MODE_DBS_PRI, 215 WMI_HOST_HW_MODE_DBS_OR_SBS_PRI, 216 WMI_HOST_HW_MODE_SBS_PRI, 217 WMI_HOST_HW_MODE_SBS_PASSIVE_PRI, 218 WMI_HOST_HW_MODE_SINGLE_PRI, 219 220 /* keep last the lowest priority */ 221 WMI_HOST_HW_MODE_MAX_PRI 222 }; 223 224 enum WMI_HOST_WLAN_BAND { 225 WMI_HOST_WLAN_2G_CAP = 1, 226 WMI_HOST_WLAN_5G_CAP = 2, 227 WMI_HOST_WLAN_2G_5G_CAP = 3, 228 }; 229 230 enum wmi_cmd_group { 231 /* 0 to 2 are reserved */ 232 WMI_GRP_START = 0x3, 233 WMI_GRP_SCAN = WMI_GRP_START, 234 WMI_GRP_PDEV = 0x4, 235 WMI_GRP_VDEV = 0x5, 236 WMI_GRP_PEER = 0x6, 237 WMI_GRP_MGMT = 0x7, 238 WMI_GRP_BA_NEG = 0x8, 239 WMI_GRP_STA_PS = 0x9, 240 WMI_GRP_DFS = 0xa, 241 WMI_GRP_ROAM = 0xb, 242 WMI_GRP_OFL_SCAN = 0xc, 243 WMI_GRP_P2P = 0xd, 244 WMI_GRP_AP_PS = 0xe, 245 WMI_GRP_RATE_CTRL = 0xf, 246 WMI_GRP_PROFILE = 0x10, 247 WMI_GRP_SUSPEND = 0x11, 248 WMI_GRP_BCN_FILTER = 0x12, 249 WMI_GRP_WOW = 0x13, 250 WMI_GRP_RTT = 0x14, 251 WMI_GRP_SPECTRAL = 0x15, 252 WMI_GRP_STATS = 0x16, 253 WMI_GRP_ARP_NS_OFL = 0x17, 254 WMI_GRP_NLO_OFL = 0x18, 255 WMI_GRP_GTK_OFL = 0x19, 256 WMI_GRP_CSA_OFL = 0x1a, 257 WMI_GRP_CHATTER = 0x1b, 258 WMI_GRP_TID_ADDBA = 0x1c, 259 WMI_GRP_MISC = 0x1d, 260 WMI_GRP_GPIO = 0x1e, 261 WMI_GRP_FWTEST = 0x1f, 262 WMI_GRP_TDLS = 0x20, 263 WMI_GRP_RESMGR = 0x21, 264 WMI_GRP_STA_SMPS = 0x22, 265 WMI_GRP_WLAN_HB = 0x23, 266 WMI_GRP_RMC = 0x24, 267 WMI_GRP_MHF_OFL = 0x25, 268 WMI_GRP_LOCATION_SCAN = 0x26, 269 WMI_GRP_OEM = 0x27, 270 WMI_GRP_NAN = 0x28, 271 WMI_GRP_COEX = 0x29, 272 WMI_GRP_OBSS_OFL = 0x2a, 273 WMI_GRP_LPI = 0x2b, 274 WMI_GRP_EXTSCAN = 0x2c, 275 WMI_GRP_DHCP_OFL = 0x2d, 276 WMI_GRP_IPA = 0x2e, 277 WMI_GRP_MDNS_OFL = 0x2f, 278 WMI_GRP_SAP_OFL = 0x30, 279 WMI_GRP_OCB = 0x31, 280 WMI_GRP_SOC = 0x32, 281 WMI_GRP_PKT_FILTER = 0x33, 282 WMI_GRP_MAWC = 0x34, 283 WMI_GRP_PMF_OFFLOAD = 0x35, 284 WMI_GRP_BPF_OFFLOAD = 0x36, 285 WMI_GRP_NAN_DATA = 0x37, 286 WMI_GRP_PROTOTYPE = 0x38, 287 WMI_GRP_MONITOR = 0x39, 288 WMI_GRP_REGULATORY = 0x3a, 289 WMI_GRP_HW_DATA_FILTER = 0x3b, 290 WMI_GRP_WLM = 0x3c, 291 WMI_GRP_11K_OFFLOAD = 0x3d, 292 WMI_GRP_TWT = 0x3e, 293 WMI_GRP_MOTION_DET = 0x3f, 294 WMI_GRP_SPATIAL_REUSE = 0x40, 295 }; 296 297 #define WMI_CMD_GRP(grp_id) (((grp_id) << 12) | 0x1) 298 #define WMI_EVT_GRP_START_ID(grp_id) (((grp_id) << 12) | 0x1) 299 300 enum wmi_tlv_cmd_id { 301 WMI_CMD_UNSUPPORTED = 0, 302 WMI_INIT_CMDID = 0x1, 303 WMI_START_SCAN_CMDID = WMI_TLV_CMD(WMI_GRP_SCAN), 304 WMI_STOP_SCAN_CMDID, 305 WMI_SCAN_CHAN_LIST_CMDID, 306 WMI_SCAN_SCH_PRIO_TBL_CMDID, 307 WMI_SCAN_UPDATE_REQUEST_CMDID, 308 WMI_SCAN_PROB_REQ_OUI_CMDID, 309 WMI_SCAN_ADAPTIVE_DWELL_CONFIG_CMDID, 310 WMI_PDEV_SET_REGDOMAIN_CMDID = WMI_TLV_CMD(WMI_GRP_PDEV), 311 WMI_PDEV_SET_CHANNEL_CMDID, 312 WMI_PDEV_SET_PARAM_CMDID, 313 WMI_PDEV_PKTLOG_ENABLE_CMDID, 314 WMI_PDEV_PKTLOG_DISABLE_CMDID, 315 WMI_PDEV_SET_WMM_PARAMS_CMDID, 316 WMI_PDEV_SET_HT_CAP_IE_CMDID, 317 WMI_PDEV_SET_VHT_CAP_IE_CMDID, 318 WMI_PDEV_SET_DSCP_TID_MAP_CMDID, 319 WMI_PDEV_SET_QUIET_MODE_CMDID, 320 WMI_PDEV_GREEN_AP_PS_ENABLE_CMDID, 321 WMI_PDEV_GET_TPC_CONFIG_CMDID, 322 WMI_PDEV_SET_BASE_MACADDR_CMDID, 323 WMI_PDEV_DUMP_CMDID, 324 WMI_PDEV_SET_LED_CONFIG_CMDID, 325 WMI_PDEV_GET_TEMPERATURE_CMDID, 326 WMI_PDEV_SET_LED_FLASHING_CMDID, 327 WMI_PDEV_SMART_ANT_ENABLE_CMDID, 328 WMI_PDEV_SMART_ANT_SET_RX_ANTENNA_CMDID, 329 WMI_PDEV_SET_ANTENNA_SWITCH_TABLE_CMDID, 330 WMI_PDEV_SET_CTL_TABLE_CMDID, 331 WMI_PDEV_SET_MIMOGAIN_TABLE_CMDID, 332 WMI_PDEV_FIPS_CMDID, 333 WMI_PDEV_GET_ANI_CCK_CONFIG_CMDID, 334 WMI_PDEV_GET_ANI_OFDM_CONFIG_CMDID, 335 WMI_PDEV_GET_NFCAL_POWER_CMDID, 336 WMI_PDEV_GET_TPC_CMDID, 337 WMI_MIB_STATS_ENABLE_CMDID, 338 WMI_PDEV_SET_PCL_CMDID, 339 WMI_PDEV_SET_HW_MODE_CMDID, 340 WMI_PDEV_SET_MAC_CONFIG_CMDID, 341 WMI_PDEV_SET_ANTENNA_MODE_CMDID, 342 WMI_SET_PERIODIC_CHANNEL_STATS_CONFIG_CMDID, 343 WMI_PDEV_WAL_POWER_DEBUG_CMDID, 344 WMI_PDEV_SET_REORDER_TIMEOUT_VAL_CMDID, 345 WMI_PDEV_SET_WAKEUP_CONFIG_CMDID, 346 WMI_PDEV_GET_ANTDIV_STATUS_CMDID, 347 WMI_PDEV_GET_CHIP_POWER_STATS_CMDID, 348 WMI_PDEV_SET_STATS_THRESHOLD_CMDID, 349 WMI_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMDID, 350 WMI_PDEV_UPDATE_PKT_ROUTING_CMDID, 351 WMI_PDEV_CHECK_CAL_VERSION_CMDID, 352 WMI_PDEV_SET_DIVERSITY_GAIN_CMDID, 353 WMI_PDEV_DIV_GET_RSSI_ANTID_CMDID, 354 WMI_PDEV_BSS_CHAN_INFO_REQUEST_CMDID, 355 WMI_PDEV_UPDATE_PMK_CACHE_CMDID, 356 WMI_PDEV_UPDATE_FILS_HLP_PKT_CMDID, 357 WMI_PDEV_UPDATE_CTLTABLE_REQUEST_CMDID, 358 WMI_PDEV_CONFIG_VENDOR_OUI_ACTION_CMDID, 359 WMI_PDEV_SET_AC_TX_QUEUE_OPTIMIZED_CMDID, 360 WMI_PDEV_SET_RX_FILTER_PROMISCUOUS_CMDID, 361 WMI_PDEV_DMA_RING_CFG_REQ_CMDID, 362 WMI_PDEV_HE_TB_ACTION_FRM_CMDID, 363 WMI_PDEV_PKTLOG_FILTER_CMDID, 364 WMI_VDEV_CREATE_CMDID = WMI_TLV_CMD(WMI_GRP_VDEV), 365 WMI_VDEV_DELETE_CMDID, 366 WMI_VDEV_START_REQUEST_CMDID, 367 WMI_VDEV_RESTART_REQUEST_CMDID, 368 WMI_VDEV_UP_CMDID, 369 WMI_VDEV_STOP_CMDID, 370 WMI_VDEV_DOWN_CMDID, 371 WMI_VDEV_SET_PARAM_CMDID, 372 WMI_VDEV_INSTALL_KEY_CMDID, 373 WMI_VDEV_WNM_SLEEPMODE_CMDID, 374 WMI_VDEV_WMM_ADDTS_CMDID, 375 WMI_VDEV_WMM_DELTS_CMDID, 376 WMI_VDEV_SET_WMM_PARAMS_CMDID, 377 WMI_VDEV_SET_GTX_PARAMS_CMDID, 378 WMI_VDEV_IPSEC_NATKEEPALIVE_FILTER_CMDID, 379 WMI_VDEV_PLMREQ_START_CMDID, 380 WMI_VDEV_PLMREQ_STOP_CMDID, 381 WMI_VDEV_TSF_TSTAMP_ACTION_CMDID, 382 WMI_VDEV_SET_IE_CMDID, 383 WMI_VDEV_RATEMASK_CMDID, 384 WMI_VDEV_ATF_REQUEST_CMDID, 385 WMI_VDEV_SET_DSCP_TID_MAP_CMDID, 386 WMI_VDEV_FILTER_NEIGHBOR_RX_PACKETS_CMDID, 387 WMI_VDEV_SET_QUIET_MODE_CMDID, 388 WMI_VDEV_SET_CUSTOM_AGGR_SIZE_CMDID, 389 WMI_VDEV_ENCRYPT_DECRYPT_DATA_REQ_CMDID, 390 WMI_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_CMDID, 391 WMI_PEER_CREATE_CMDID = WMI_TLV_CMD(WMI_GRP_PEER), 392 WMI_PEER_DELETE_CMDID, 393 WMI_PEER_FLUSH_TIDS_CMDID, 394 WMI_PEER_SET_PARAM_CMDID, 395 WMI_PEER_ASSOC_CMDID, 396 WMI_PEER_ADD_WDS_ENTRY_CMDID, 397 WMI_PEER_REMOVE_WDS_ENTRY_CMDID, 398 WMI_PEER_MCAST_GROUP_CMDID, 399 WMI_PEER_INFO_REQ_CMDID, 400 WMI_PEER_GET_ESTIMATED_LINKSPEED_CMDID, 401 WMI_PEER_SET_RATE_REPORT_CONDITION_CMDID, 402 WMI_PEER_UPDATE_WDS_ENTRY_CMDID, 403 WMI_PEER_ADD_PROXY_STA_ENTRY_CMDID, 404 WMI_PEER_SMART_ANT_SET_TX_ANTENNA_CMDID, 405 WMI_PEER_SMART_ANT_SET_TRAIN_INFO_CMDID, 406 WMI_PEER_SMART_ANT_SET_NODE_CONFIG_OPS_CMDID, 407 WMI_PEER_ATF_REQUEST_CMDID, 408 WMI_PEER_BWF_REQUEST_CMDID, 409 WMI_PEER_REORDER_QUEUE_SETUP_CMDID, 410 WMI_PEER_REORDER_QUEUE_REMOVE_CMDID, 411 WMI_PEER_SET_RX_BLOCKSIZE_CMDID, 412 WMI_PEER_ANTDIV_INFO_REQ_CMDID, 413 WMI_BCN_TX_CMDID = WMI_TLV_CMD(WMI_GRP_MGMT), 414 WMI_PDEV_SEND_BCN_CMDID, 415 WMI_BCN_TMPL_CMDID, 416 WMI_BCN_FILTER_RX_CMDID, 417 WMI_PRB_REQ_FILTER_RX_CMDID, 418 WMI_MGMT_TX_CMDID, 419 WMI_PRB_TMPL_CMDID, 420 WMI_MGMT_TX_SEND_CMDID, 421 WMI_OFFCHAN_DATA_TX_SEND_CMDID, 422 WMI_PDEV_SEND_FD_CMDID, 423 WMI_BCN_OFFLOAD_CTRL_CMDID, 424 WMI_BSS_COLOR_CHANGE_ENABLE_CMDID, 425 WMI_VDEV_BCN_OFFLOAD_QUIET_CONFIG_CMDID, 426 WMI_FILS_DISCOVERY_TMPL_CMDID, 427 WMI_ADDBA_CLEAR_RESP_CMDID = WMI_TLV_CMD(WMI_GRP_BA_NEG), 428 WMI_ADDBA_SEND_CMDID, 429 WMI_ADDBA_STATUS_CMDID, 430 WMI_DELBA_SEND_CMDID, 431 WMI_ADDBA_SET_RESP_CMDID, 432 WMI_SEND_SINGLEAMSDU_CMDID, 433 WMI_STA_POWERSAVE_MODE_CMDID = WMI_TLV_CMD(WMI_GRP_STA_PS), 434 WMI_STA_POWERSAVE_PARAM_CMDID, 435 WMI_STA_MIMO_PS_MODE_CMDID, 436 WMI_PDEV_DFS_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_DFS), 437 WMI_PDEV_DFS_DISABLE_CMDID, 438 WMI_DFS_PHYERR_FILTER_ENA_CMDID, 439 WMI_DFS_PHYERR_FILTER_DIS_CMDID, 440 WMI_PDEV_DFS_PHYERR_OFFLOAD_ENABLE_CMDID, 441 WMI_PDEV_DFS_PHYERR_OFFLOAD_DISABLE_CMDID, 442 WMI_VDEV_ADFS_CH_CFG_CMDID, 443 WMI_VDEV_ADFS_OCAC_ABORT_CMDID, 444 WMI_ROAM_SCAN_MODE = WMI_TLV_CMD(WMI_GRP_ROAM), 445 WMI_ROAM_SCAN_RSSI_THRESHOLD, 446 WMI_ROAM_SCAN_PERIOD, 447 WMI_ROAM_SCAN_RSSI_CHANGE_THRESHOLD, 448 WMI_ROAM_AP_PROFILE, 449 WMI_ROAM_CHAN_LIST, 450 WMI_ROAM_SCAN_CMD, 451 WMI_ROAM_SYNCH_COMPLETE, 452 WMI_ROAM_SET_RIC_REQUEST_CMDID, 453 WMI_ROAM_INVOKE_CMDID, 454 WMI_ROAM_FILTER_CMDID, 455 WMI_ROAM_SUBNET_CHANGE_CONFIG_CMDID, 456 WMI_ROAM_CONFIGURE_MAWC_CMDID, 457 WMI_ROAM_SET_MBO_PARAM_CMDID, 458 WMI_ROAM_PER_CONFIG_CMDID, 459 WMI_ROAM_BTM_CONFIG_CMDID, 460 WMI_ENABLE_FILS_CMDID, 461 WMI_OFL_SCAN_ADD_AP_PROFILE = WMI_TLV_CMD(WMI_GRP_OFL_SCAN), 462 WMI_OFL_SCAN_REMOVE_AP_PROFILE, 463 WMI_OFL_SCAN_PERIOD, 464 WMI_P2P_DEV_SET_DEVICE_INFO = WMI_TLV_CMD(WMI_GRP_P2P), 465 WMI_P2P_DEV_SET_DISCOVERABILITY, 466 WMI_P2P_GO_SET_BEACON_IE, 467 WMI_P2P_GO_SET_PROBE_RESP_IE, 468 WMI_P2P_SET_VENDOR_IE_DATA_CMDID, 469 WMI_P2P_DISC_OFFLOAD_CONFIG_CMDID, 470 WMI_P2P_DISC_OFFLOAD_APPIE_CMDID, 471 WMI_P2P_DISC_OFFLOAD_PATTERN_CMDID, 472 WMI_P2P_SET_OPPPS_PARAM_CMDID, 473 WMI_P2P_LISTEN_OFFLOAD_START_CMDID, 474 WMI_P2P_LISTEN_OFFLOAD_STOP_CMDID, 475 WMI_AP_PS_PEER_PARAM_CMDID = WMI_TLV_CMD(WMI_GRP_AP_PS), 476 WMI_AP_PS_PEER_UAPSD_COEX_CMDID, 477 WMI_AP_PS_EGAP_PARAM_CMDID, 478 WMI_PEER_RATE_RETRY_SCHED_CMDID = WMI_TLV_CMD(WMI_GRP_RATE_CTRL), 479 WMI_WLAN_PROFILE_TRIGGER_CMDID = WMI_TLV_CMD(WMI_GRP_PROFILE), 480 WMI_WLAN_PROFILE_SET_HIST_INTVL_CMDID, 481 WMI_WLAN_PROFILE_GET_PROFILE_DATA_CMDID, 482 WMI_WLAN_PROFILE_ENABLE_PROFILE_ID_CMDID, 483 WMI_WLAN_PROFILE_LIST_PROFILE_ID_CMDID, 484 WMI_PDEV_SUSPEND_CMDID = WMI_TLV_CMD(WMI_GRP_SUSPEND), 485 WMI_PDEV_RESUME_CMDID, 486 WMI_ADD_BCN_FILTER_CMDID = WMI_TLV_CMD(WMI_GRP_BCN_FILTER), 487 WMI_RMV_BCN_FILTER_CMDID, 488 WMI_WOW_ADD_WAKE_PATTERN_CMDID = WMI_TLV_CMD(WMI_GRP_WOW), 489 WMI_WOW_DEL_WAKE_PATTERN_CMDID, 490 WMI_WOW_ENABLE_DISABLE_WAKE_EVENT_CMDID, 491 WMI_WOW_ENABLE_CMDID, 492 WMI_WOW_HOSTWAKEUP_FROM_SLEEP_CMDID, 493 WMI_WOW_IOAC_ADD_KEEPALIVE_CMDID, 494 WMI_WOW_IOAC_DEL_KEEPALIVE_CMDID, 495 WMI_WOW_IOAC_ADD_WAKE_PATTERN_CMDID, 496 WMI_WOW_IOAC_DEL_WAKE_PATTERN_CMDID, 497 WMI_D0_WOW_ENABLE_DISABLE_CMDID, 498 WMI_EXTWOW_ENABLE_CMDID, 499 WMI_EXTWOW_SET_APP_TYPE1_PARAMS_CMDID, 500 WMI_EXTWOW_SET_APP_TYPE2_PARAMS_CMDID, 501 WMI_WOW_ENABLE_ICMPV6_NA_FLT_CMDID, 502 WMI_WOW_UDP_SVC_OFLD_CMDID, 503 WMI_WOW_HOSTWAKEUP_GPIO_PIN_PATTERN_CONFIG_CMDID, 504 WMI_WOW_SET_ACTION_WAKE_UP_CMDID, 505 WMI_RTT_MEASREQ_CMDID = WMI_TLV_CMD(WMI_GRP_RTT), 506 WMI_RTT_TSF_CMDID, 507 WMI_VDEV_SPECTRAL_SCAN_CONFIGURE_CMDID = WMI_TLV_CMD(WMI_GRP_SPECTRAL), 508 WMI_VDEV_SPECTRAL_SCAN_ENABLE_CMDID, 509 WMI_REQUEST_STATS_CMDID = WMI_TLV_CMD(WMI_GRP_STATS), 510 WMI_MCC_SCHED_TRAFFIC_STATS_CMDID, 511 WMI_REQUEST_STATS_EXT_CMDID, 512 WMI_REQUEST_LINK_STATS_CMDID, 513 WMI_START_LINK_STATS_CMDID, 514 WMI_CLEAR_LINK_STATS_CMDID, 515 WMI_GET_FW_MEM_DUMP_CMDID, 516 WMI_DEBUG_MESG_FLUSH_CMDID, 517 WMI_DIAG_EVENT_LOG_CONFIG_CMDID, 518 WMI_REQUEST_WLAN_STATS_CMDID, 519 WMI_REQUEST_RCPI_CMDID, 520 WMI_REQUEST_PEER_STATS_INFO_CMDID, 521 WMI_REQUEST_RADIO_CHAN_STATS_CMDID, 522 WMI_SET_ARP_NS_OFFLOAD_CMDID = WMI_TLV_CMD(WMI_GRP_ARP_NS_OFL), 523 WMI_ADD_PROACTIVE_ARP_RSP_PATTERN_CMDID, 524 WMI_DEL_PROACTIVE_ARP_RSP_PATTERN_CMDID, 525 WMI_NETWORK_LIST_OFFLOAD_CONFIG_CMDID = WMI_TLV_CMD(WMI_GRP_NLO_OFL), 526 WMI_APFIND_CMDID, 527 WMI_PASSPOINT_LIST_CONFIG_CMDID, 528 WMI_NLO_CONFIGURE_MAWC_CMDID, 529 WMI_GTK_OFFLOAD_CMDID = WMI_TLV_CMD(WMI_GRP_GTK_OFL), 530 WMI_CSA_OFFLOAD_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_CSA_OFL), 531 WMI_CSA_OFFLOAD_CHANSWITCH_CMDID, 532 WMI_CHATTER_SET_MODE_CMDID = WMI_TLV_CMD(WMI_GRP_CHATTER), 533 WMI_CHATTER_ADD_COALESCING_FILTER_CMDID, 534 WMI_CHATTER_DELETE_COALESCING_FILTER_CMDID, 535 WMI_CHATTER_COALESCING_QUERY_CMDID, 536 WMI_PEER_TID_ADDBA_CMDID = WMI_TLV_CMD(WMI_GRP_TID_ADDBA), 537 WMI_PEER_TID_DELBA_CMDID, 538 WMI_STA_DTIM_PS_METHOD_CMDID, 539 WMI_STA_UAPSD_AUTO_TRIG_CMDID, 540 WMI_STA_KEEPALIVE_CMDID, 541 WMI_BA_REQ_SSN_CMDID, 542 WMI_ECHO_CMDID = WMI_TLV_CMD(WMI_GRP_MISC), 543 WMI_PDEV_UTF_CMDID, 544 WMI_DBGLOG_CFG_CMDID, 545 WMI_PDEV_QVIT_CMDID, 546 WMI_PDEV_FTM_INTG_CMDID, 547 WMI_VDEV_SET_KEEPALIVE_CMDID, 548 WMI_VDEV_GET_KEEPALIVE_CMDID, 549 WMI_FORCE_FW_HANG_CMDID, 550 WMI_SET_MCASTBCAST_FILTER_CMDID, 551 WMI_THERMAL_MGMT_CMDID, 552 WMI_HOST_AUTO_SHUTDOWN_CFG_CMDID, 553 WMI_TPC_CHAINMASK_CONFIG_CMDID, 554 WMI_SET_ANTENNA_DIVERSITY_CMDID, 555 WMI_OCB_SET_SCHED_CMDID, 556 WMI_RSSI_BREACH_MONITOR_CONFIG_CMDID, 557 WMI_LRO_CONFIG_CMDID, 558 WMI_TRANSFER_DATA_TO_FLASH_CMDID, 559 WMI_CONFIG_ENHANCED_MCAST_FILTER_CMDID, 560 WMI_VDEV_WISA_CMDID, 561 WMI_DBGLOG_TIME_STAMP_SYNC_CMDID, 562 WMI_SET_MULTIPLE_MCAST_FILTER_CMDID, 563 WMI_READ_DATA_FROM_FLASH_CMDID, 564 WMI_THERM_THROT_SET_CONF_CMDID, 565 WMI_RUNTIME_DPD_RECAL_CMDID, 566 WMI_GET_TPC_POWER_CMDID, 567 WMI_IDLE_TRIGGER_MONITOR_CMDID, 568 WMI_GPIO_CONFIG_CMDID = WMI_TLV_CMD(WMI_GRP_GPIO), 569 WMI_GPIO_OUTPUT_CMDID, 570 WMI_TXBF_CMDID, 571 WMI_FWTEST_VDEV_MCC_SET_TBTT_MODE_CMDID = WMI_TLV_CMD(WMI_GRP_FWTEST), 572 WMI_FWTEST_P2P_SET_NOA_PARAM_CMDID, 573 WMI_UNIT_TEST_CMDID, 574 WMI_FWTEST_CMDID, 575 WMI_QBOOST_CFG_CMDID, 576 WMI_TDLS_SET_STATE_CMDID = WMI_TLV_CMD(WMI_GRP_TDLS), 577 WMI_TDLS_PEER_UPDATE_CMDID, 578 WMI_TDLS_SET_OFFCHAN_MODE_CMDID, 579 WMI_RESMGR_ADAPTIVE_OCS_EN_DIS_CMDID = WMI_TLV_CMD(WMI_GRP_RESMGR), 580 WMI_RESMGR_SET_CHAN_TIME_QUOTA_CMDID, 581 WMI_RESMGR_SET_CHAN_LATENCY_CMDID, 582 WMI_STA_SMPS_FORCE_MODE_CMDID = WMI_TLV_CMD(WMI_GRP_STA_SMPS), 583 WMI_STA_SMPS_PARAM_CMDID, 584 WMI_HB_SET_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_WLAN_HB), 585 WMI_HB_SET_TCP_PARAMS_CMDID, 586 WMI_HB_SET_TCP_PKT_FILTER_CMDID, 587 WMI_HB_SET_UDP_PARAMS_CMDID, 588 WMI_HB_SET_UDP_PKT_FILTER_CMDID, 589 WMI_RMC_SET_MODE_CMDID = WMI_TLV_CMD(WMI_GRP_RMC), 590 WMI_RMC_SET_ACTION_PERIOD_CMDID, 591 WMI_RMC_CONFIG_CMDID, 592 WMI_RMC_SET_MANUAL_LEADER_CMDID, 593 WMI_MHF_OFFLOAD_SET_MODE_CMDID = WMI_TLV_CMD(WMI_GRP_MHF_OFL), 594 WMI_MHF_OFFLOAD_PLUMB_ROUTING_TBL_CMDID, 595 WMI_BATCH_SCAN_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_LOCATION_SCAN), 596 WMI_BATCH_SCAN_DISABLE_CMDID, 597 WMI_BATCH_SCAN_TRIGGER_RESULT_CMDID, 598 WMI_OEM_REQ_CMDID = WMI_TLV_CMD(WMI_GRP_OEM), 599 WMI_OEM_REQUEST_CMDID, 600 WMI_LPI_OEM_REQ_CMDID, 601 WMI_NAN_CMDID = WMI_TLV_CMD(WMI_GRP_NAN), 602 WMI_MODEM_POWER_STATE_CMDID = WMI_TLV_CMD(WMI_GRP_COEX), 603 WMI_CHAN_AVOID_UPDATE_CMDID, 604 WMI_COEX_CONFIG_CMDID, 605 WMI_CHAN_AVOID_RPT_ALLOW_CMDID, 606 WMI_COEX_GET_ANTENNA_ISOLATION_CMDID, 607 WMI_SAR_LIMITS_CMDID, 608 WMI_OBSS_SCAN_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_OBSS_OFL), 609 WMI_OBSS_SCAN_DISABLE_CMDID, 610 WMI_OBSS_COLOR_COLLISION_DET_CONFIG_CMDID, 611 WMI_LPI_MGMT_SNOOPING_CONFIG_CMDID = WMI_TLV_CMD(WMI_GRP_LPI), 612 WMI_LPI_START_SCAN_CMDID, 613 WMI_LPI_STOP_SCAN_CMDID, 614 WMI_EXTSCAN_START_CMDID = WMI_TLV_CMD(WMI_GRP_EXTSCAN), 615 WMI_EXTSCAN_STOP_CMDID, 616 WMI_EXTSCAN_CONFIGURE_WLAN_CHANGE_MONITOR_CMDID, 617 WMI_EXTSCAN_CONFIGURE_HOTLIST_MONITOR_CMDID, 618 WMI_EXTSCAN_GET_CACHED_RESULTS_CMDID, 619 WMI_EXTSCAN_GET_WLAN_CHANGE_RESULTS_CMDID, 620 WMI_EXTSCAN_SET_CAPABILITIES_CMDID, 621 WMI_EXTSCAN_GET_CAPABILITIES_CMDID, 622 WMI_EXTSCAN_CONFIGURE_HOTLIST_SSID_MONITOR_CMDID, 623 WMI_EXTSCAN_CONFIGURE_MAWC_CMDID, 624 WMI_SET_DHCP_SERVER_OFFLOAD_CMDID = WMI_TLV_CMD(WMI_GRP_DHCP_OFL), 625 WMI_IPA_OFFLOAD_ENABLE_DISABLE_CMDID = WMI_TLV_CMD(WMI_GRP_IPA), 626 WMI_MDNS_OFFLOAD_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_MDNS_OFL), 627 WMI_MDNS_SET_FQDN_CMDID, 628 WMI_MDNS_SET_RESPONSE_CMDID, 629 WMI_MDNS_GET_STATS_CMDID, 630 WMI_SAP_OFL_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_SAP_OFL), 631 WMI_SAP_SET_BLACKLIST_PARAM_CMDID, 632 WMI_OCB_SET_CONFIG_CMDID = WMI_TLV_CMD(WMI_GRP_OCB), 633 WMI_OCB_SET_UTC_TIME_CMDID, 634 WMI_OCB_START_TIMING_ADVERT_CMDID, 635 WMI_OCB_STOP_TIMING_ADVERT_CMDID, 636 WMI_OCB_GET_TSF_TIMER_CMDID, 637 WMI_DCC_GET_STATS_CMDID, 638 WMI_DCC_CLEAR_STATS_CMDID, 639 WMI_DCC_UPDATE_NDL_CMDID, 640 WMI_SOC_SET_PCL_CMDID = WMI_TLV_CMD(WMI_GRP_SOC), 641 WMI_SOC_SET_HW_MODE_CMDID, 642 WMI_SOC_SET_DUAL_MAC_CONFIG_CMDID, 643 WMI_SOC_SET_ANTENNA_MODE_CMDID, 644 WMI_PACKET_FILTER_CONFIG_CMDID = WMI_TLV_CMD(WMI_GRP_PKT_FILTER), 645 WMI_PACKET_FILTER_ENABLE_CMDID, 646 WMI_MAWC_SENSOR_REPORT_IND_CMDID = WMI_TLV_CMD(WMI_GRP_MAWC), 647 WMI_PMF_OFFLOAD_SET_SA_QUERY_CMDID = WMI_TLV_CMD(WMI_GRP_PMF_OFFLOAD), 648 WMI_BPF_GET_CAPABILITY_CMDID = WMI_TLV_CMD(WMI_GRP_BPF_OFFLOAD), 649 WMI_BPF_GET_VDEV_STATS_CMDID, 650 WMI_BPF_SET_VDEV_INSTRUCTIONS_CMDID, 651 WMI_BPF_DEL_VDEV_INSTRUCTIONS_CMDID, 652 WMI_BPF_SET_VDEV_ACTIVE_MODE_CMDID, 653 WMI_MNT_FILTER_CMDID = WMI_TLV_CMD(WMI_GRP_MONITOR), 654 WMI_SET_CURRENT_COUNTRY_CMDID = WMI_TLV_CMD(WMI_GRP_REGULATORY), 655 WMI_11D_SCAN_START_CMDID, 656 WMI_11D_SCAN_STOP_CMDID, 657 WMI_SET_INIT_COUNTRY_CMDID, 658 WMI_NDI_GET_CAP_REQ_CMDID = WMI_TLV_CMD(WMI_GRP_PROTOTYPE), 659 WMI_NDP_INITIATOR_REQ_CMDID, 660 WMI_NDP_RESPONDER_REQ_CMDID, 661 WMI_NDP_END_REQ_CMDID, 662 WMI_HW_DATA_FILTER_CMDID = WMI_TLV_CMD(WMI_GRP_HW_DATA_FILTER), 663 WMI_TWT_ENABLE_CMDID = WMI_TLV_CMD(WMI_GRP_TWT), 664 WMI_TWT_DISABLE_CMDID, 665 WMI_TWT_ADD_DIALOG_CMDID, 666 WMI_TWT_DEL_DIALOG_CMDID, 667 WMI_TWT_PAUSE_DIALOG_CMDID, 668 WMI_TWT_RESUME_DIALOG_CMDID, 669 WMI_PDEV_OBSS_PD_SPATIAL_REUSE_CMDID = 670 WMI_TLV_CMD(WMI_GRP_SPATIAL_REUSE), 671 WMI_PDEV_OBSS_PD_SPATIAL_REUSE_SET_DEF_OBSS_THRESH_CMDID, 672 }; 673 674 enum wmi_tlv_event_id { 675 WMI_SERVICE_READY_EVENTID = 0x1, 676 WMI_READY_EVENTID, 677 WMI_SERVICE_AVAILABLE_EVENTID, 678 WMI_SCAN_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_SCAN), 679 WMI_PDEV_TPC_CONFIG_EVENTID = WMI_TLV_CMD(WMI_GRP_PDEV), 680 WMI_CHAN_INFO_EVENTID, 681 WMI_PHYERR_EVENTID, 682 WMI_PDEV_DUMP_EVENTID, 683 WMI_TX_PAUSE_EVENTID, 684 WMI_DFS_RADAR_EVENTID, 685 WMI_PDEV_L1SS_TRACK_EVENTID, 686 WMI_PDEV_TEMPERATURE_EVENTID, 687 WMI_SERVICE_READY_EXT_EVENTID, 688 WMI_PDEV_FIPS_EVENTID, 689 WMI_PDEV_CHANNEL_HOPPING_EVENTID, 690 WMI_PDEV_ANI_CCK_LEVEL_EVENTID, 691 WMI_PDEV_ANI_OFDM_LEVEL_EVENTID, 692 WMI_PDEV_TPC_EVENTID, 693 WMI_PDEV_NFCAL_POWER_ALL_CHANNELS_EVENTID, 694 WMI_PDEV_SET_HW_MODE_RESP_EVENTID, 695 WMI_PDEV_HW_MODE_TRANSITION_EVENTID, 696 WMI_PDEV_SET_MAC_CONFIG_RESP_EVENTID, 697 WMI_PDEV_ANTDIV_STATUS_EVENTID, 698 WMI_PDEV_CHIP_POWER_STATS_EVENTID, 699 WMI_PDEV_CHIP_POWER_SAVE_FAILURE_DETECTED_EVENTID, 700 WMI_PDEV_CSA_SWITCH_COUNT_STATUS_EVENTID, 701 WMI_PDEV_CHECK_CAL_VERSION_EVENTID, 702 WMI_PDEV_DIV_RSSI_ANTID_EVENTID, 703 WMI_PDEV_BSS_CHAN_INFO_EVENTID, 704 WMI_PDEV_UPDATE_CTLTABLE_EVENTID, 705 WMI_PDEV_DMA_RING_CFG_RSP_EVENTID, 706 WMI_PDEV_DMA_RING_BUF_RELEASE_EVENTID, 707 WMI_PDEV_CTL_FAILSAFE_CHECK_EVENTID, 708 WMI_PDEV_CSC_SWITCH_COUNT_STATUS_EVENTID, 709 WMI_PDEV_COLD_BOOT_CAL_DATA_EVENTID, 710 WMI_PDEV_RAP_INFO_EVENTID, 711 WMI_CHAN_RF_CHARACTERIZATION_INFO_EVENTID, 712 WMI_SERVICE_READY_EXT2_EVENTID, 713 WMI_VDEV_START_RESP_EVENTID = WMI_TLV_CMD(WMI_GRP_VDEV), 714 WMI_VDEV_STOPPED_EVENTID, 715 WMI_VDEV_INSTALL_KEY_COMPLETE_EVENTID, 716 WMI_VDEV_MCC_BCN_INTERVAL_CHANGE_REQ_EVENTID, 717 WMI_VDEV_TSF_REPORT_EVENTID, 718 WMI_VDEV_DELETE_RESP_EVENTID, 719 WMI_VDEV_ENCRYPT_DECRYPT_DATA_RESP_EVENTID, 720 WMI_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_STATUS_EVENTID, 721 WMI_PEER_STA_KICKOUT_EVENTID = WMI_TLV_CMD(WMI_GRP_PEER), 722 WMI_PEER_INFO_EVENTID, 723 WMI_PEER_TX_FAIL_CNT_THR_EVENTID, 724 WMI_PEER_ESTIMATED_LINKSPEED_EVENTID, 725 WMI_PEER_STATE_EVENTID, 726 WMI_PEER_ASSOC_CONF_EVENTID, 727 WMI_PEER_DELETE_RESP_EVENTID, 728 WMI_PEER_RATECODE_LIST_EVENTID, 729 WMI_WDS_PEER_EVENTID, 730 WMI_PEER_STA_PS_STATECHG_EVENTID, 731 WMI_PEER_ANTDIV_INFO_EVENTID, 732 WMI_PEER_RESERVED0_EVENTID, 733 WMI_PEER_RESERVED1_EVENTID, 734 WMI_PEER_RESERVED2_EVENTID, 735 WMI_PEER_RESERVED3_EVENTID, 736 WMI_PEER_RESERVED4_EVENTID, 737 WMI_PEER_RESERVED5_EVENTID, 738 WMI_PEER_RESERVED6_EVENTID, 739 WMI_PEER_RESERVED7_EVENTID, 740 WMI_PEER_RESERVED8_EVENTID, 741 WMI_PEER_RESERVED9_EVENTID, 742 WMI_PEER_RESERVED10_EVENTID, 743 WMI_PEER_OPER_MODE_CHANGE_EVENTID, 744 WMI_MGMT_RX_EVENTID = WMI_TLV_CMD(WMI_GRP_MGMT), 745 WMI_HOST_SWBA_EVENTID, 746 WMI_TBTTOFFSET_UPDATE_EVENTID, 747 WMI_OFFLOAD_BCN_TX_STATUS_EVENTID, 748 WMI_OFFLOAD_PROB_RESP_TX_STATUS_EVENTID, 749 WMI_MGMT_TX_COMPLETION_EVENTID, 750 WMI_MGMT_TX_BUNDLE_COMPLETION_EVENTID, 751 WMI_TBTTOFFSET_EXT_UPDATE_EVENTID, 752 WMI_OFFCHAN_DATA_TX_COMPLETION_EVENTID, 753 WMI_HOST_FILS_DISCOVERY_EVENTID, 754 WMI_TX_DELBA_COMPLETE_EVENTID = WMI_TLV_CMD(WMI_GRP_BA_NEG), 755 WMI_TX_ADDBA_COMPLETE_EVENTID, 756 WMI_BA_RSP_SSN_EVENTID, 757 WMI_AGGR_STATE_TRIG_EVENTID, 758 WMI_ROAM_EVENTID = WMI_TLV_CMD(WMI_GRP_ROAM), 759 WMI_PROFILE_MATCH, 760 WMI_ROAM_SYNCH_EVENTID, 761 WMI_P2P_DISC_EVENTID = WMI_TLV_CMD(WMI_GRP_P2P), 762 WMI_P2P_NOA_EVENTID, 763 WMI_P2P_LISTEN_OFFLOAD_STOPPED_EVENTID, 764 WMI_AP_PS_EGAP_INFO_EVENTID = WMI_TLV_CMD(WMI_GRP_AP_PS), 765 WMI_PDEV_RESUME_EVENTID = WMI_TLV_CMD(WMI_GRP_SUSPEND), 766 WMI_WOW_WAKEUP_HOST_EVENTID = WMI_TLV_CMD(WMI_GRP_WOW), 767 WMI_D0_WOW_DISABLE_ACK_EVENTID, 768 WMI_WOW_INITIAL_WAKEUP_EVENTID, 769 WMI_RTT_MEASUREMENT_REPORT_EVENTID = WMI_TLV_CMD(WMI_GRP_RTT), 770 WMI_TSF_MEASUREMENT_REPORT_EVENTID, 771 WMI_RTT_ERROR_REPORT_EVENTID, 772 WMI_STATS_EXT_EVENTID = WMI_TLV_CMD(WMI_GRP_STATS), 773 WMI_IFACE_LINK_STATS_EVENTID, 774 WMI_PEER_LINK_STATS_EVENTID, 775 WMI_RADIO_LINK_STATS_EVENTID, 776 WMI_UPDATE_FW_MEM_DUMP_EVENTID, 777 WMI_DIAG_EVENT_LOG_SUPPORTED_EVENTID, 778 WMI_INST_RSSI_STATS_EVENTID, 779 WMI_RADIO_TX_POWER_LEVEL_STATS_EVENTID, 780 WMI_REPORT_STATS_EVENTID, 781 WMI_UPDATE_RCPI_EVENTID, 782 WMI_PEER_STATS_INFO_EVENTID, 783 WMI_RADIO_CHAN_STATS_EVENTID, 784 WMI_NLO_MATCH_EVENTID = WMI_TLV_CMD(WMI_GRP_NLO_OFL), 785 WMI_NLO_SCAN_COMPLETE_EVENTID, 786 WMI_APFIND_EVENTID, 787 WMI_PASSPOINT_MATCH_EVENTID, 788 WMI_GTK_OFFLOAD_STATUS_EVENTID = WMI_TLV_CMD(WMI_GRP_GTK_OFL), 789 WMI_GTK_REKEY_FAIL_EVENTID, 790 WMI_CSA_HANDLING_EVENTID = WMI_TLV_CMD(WMI_GRP_CSA_OFL), 791 WMI_CHATTER_PC_QUERY_EVENTID = WMI_TLV_CMD(WMI_GRP_CHATTER), 792 WMI_PDEV_DFS_RADAR_DETECTION_EVENTID = WMI_TLV_CMD(WMI_GRP_DFS), 793 WMI_VDEV_DFS_CAC_COMPLETE_EVENTID, 794 WMI_VDEV_ADFS_OCAC_COMPLETE_EVENTID, 795 WMI_ECHO_EVENTID = WMI_TLV_CMD(WMI_GRP_MISC), 796 WMI_PDEV_UTF_EVENTID, 797 WMI_DEBUG_MESG_EVENTID, 798 WMI_UPDATE_STATS_EVENTID, 799 WMI_DEBUG_PRINT_EVENTID, 800 WMI_DCS_INTERFERENCE_EVENTID, 801 WMI_PDEV_QVIT_EVENTID, 802 WMI_WLAN_PROFILE_DATA_EVENTID, 803 WMI_PDEV_FTM_INTG_EVENTID, 804 WMI_WLAN_FREQ_AVOID_EVENTID, 805 WMI_VDEV_GET_KEEPALIVE_EVENTID, 806 WMI_THERMAL_MGMT_EVENTID, 807 WMI_DIAG_DATA_CONTAINER_EVENTID, 808 WMI_HOST_AUTO_SHUTDOWN_EVENTID, 809 WMI_UPDATE_WHAL_MIB_STATS_EVENTID, 810 WMI_UPDATE_VDEV_RATE_STATS_EVENTID, 811 WMI_DIAG_EVENTID, 812 WMI_OCB_SET_SCHED_EVENTID, 813 WMI_DEBUG_MESG_FLUSH_COMPLETE_EVENTID, 814 WMI_RSSI_BREACH_EVENTID, 815 WMI_TRANSFER_DATA_TO_FLASH_COMPLETE_EVENTID, 816 WMI_PDEV_UTF_SCPC_EVENTID, 817 WMI_READ_DATA_FROM_FLASH_EVENTID, 818 WMI_REPORT_RX_AGGR_FAILURE_EVENTID, 819 WMI_PKGID_EVENTID, 820 WMI_GPIO_INPUT_EVENTID = WMI_TLV_CMD(WMI_GRP_GPIO), 821 WMI_UPLOADH_EVENTID, 822 WMI_CAPTUREH_EVENTID, 823 WMI_RFKILL_STATE_CHANGE_EVENTID, 824 WMI_TDLS_PEER_EVENTID = WMI_TLV_CMD(WMI_GRP_TDLS), 825 WMI_STA_SMPS_FORCE_MODE_COMPL_EVENTID = WMI_TLV_CMD(WMI_GRP_STA_SMPS), 826 WMI_BATCH_SCAN_ENABLED_EVENTID = WMI_TLV_CMD(WMI_GRP_LOCATION_SCAN), 827 WMI_BATCH_SCAN_RESULT_EVENTID, 828 WMI_OEM_CAPABILITY_EVENTID = WMI_TLV_CMD(WMI_GRP_OEM), 829 WMI_OEM_MEASUREMENT_REPORT_EVENTID, 830 WMI_OEM_ERROR_REPORT_EVENTID, 831 WMI_OEM_RESPONSE_EVENTID, 832 WMI_NAN_EVENTID = WMI_TLV_CMD(WMI_GRP_NAN), 833 WMI_NAN_DISC_IFACE_CREATED_EVENTID, 834 WMI_NAN_DISC_IFACE_DELETED_EVENTID, 835 WMI_NAN_STARTED_CLUSTER_EVENTID, 836 WMI_NAN_JOINED_CLUSTER_EVENTID, 837 WMI_COEX_REPORT_ANTENNA_ISOLATION_EVENTID = WMI_TLV_CMD(WMI_GRP_COEX), 838 WMI_LPI_RESULT_EVENTID = WMI_TLV_CMD(WMI_GRP_LPI), 839 WMI_LPI_STATUS_EVENTID, 840 WMI_LPI_HANDOFF_EVENTID, 841 WMI_EXTSCAN_START_STOP_EVENTID = WMI_TLV_CMD(WMI_GRP_EXTSCAN), 842 WMI_EXTSCAN_OPERATION_EVENTID, 843 WMI_EXTSCAN_TABLE_USAGE_EVENTID, 844 WMI_EXTSCAN_CACHED_RESULTS_EVENTID, 845 WMI_EXTSCAN_WLAN_CHANGE_RESULTS_EVENTID, 846 WMI_EXTSCAN_HOTLIST_MATCH_EVENTID, 847 WMI_EXTSCAN_CAPABILITIES_EVENTID, 848 WMI_EXTSCAN_HOTLIST_SSID_MATCH_EVENTID, 849 WMI_MDNS_STATS_EVENTID = WMI_TLV_CMD(WMI_GRP_MDNS_OFL), 850 WMI_SAP_OFL_ADD_STA_EVENTID = WMI_TLV_CMD(WMI_GRP_SAP_OFL), 851 WMI_SAP_OFL_DEL_STA_EVENTID, 852 WMI_OCB_SET_CONFIG_RESP_EVENTID = WMI_TLV_CMD(WMI_GRP_OCB), 853 WMI_OCB_GET_TSF_TIMER_RESP_EVENTID, 854 WMI_DCC_GET_STATS_RESP_EVENTID, 855 WMI_DCC_UPDATE_NDL_RESP_EVENTID, 856 WMI_DCC_STATS_EVENTID, 857 WMI_SOC_SET_HW_MODE_RESP_EVENTID = WMI_TLV_CMD(WMI_GRP_SOC), 858 WMI_SOC_HW_MODE_TRANSITION_EVENTID, 859 WMI_SOC_SET_DUAL_MAC_CONFIG_RESP_EVENTID, 860 WMI_MAWC_ENABLE_SENSOR_EVENTID = WMI_TLV_CMD(WMI_GRP_MAWC), 861 WMI_BPF_CAPABILIY_INFO_EVENTID = WMI_TLV_CMD(WMI_GRP_BPF_OFFLOAD), 862 WMI_BPF_VDEV_STATS_INFO_EVENTID, 863 WMI_RMC_NEW_LEADER_EVENTID = WMI_TLV_CMD(WMI_GRP_RMC), 864 WMI_REG_CHAN_LIST_CC_EVENTID = WMI_TLV_CMD(WMI_GRP_REGULATORY), 865 WMI_11D_NEW_COUNTRY_EVENTID, 866 WMI_REG_CHAN_LIST_CC_EXT_EVENTID, 867 WMI_NDI_CAP_RSP_EVENTID = WMI_TLV_CMD(WMI_GRP_PROTOTYPE), 868 WMI_NDP_INITIATOR_RSP_EVENTID, 869 WMI_NDP_RESPONDER_RSP_EVENTID, 870 WMI_NDP_END_RSP_EVENTID, 871 WMI_NDP_INDICATION_EVENTID, 872 WMI_NDP_CONFIRM_EVENTID, 873 WMI_NDP_END_INDICATION_EVENTID, 874 875 WMI_TWT_ENABLE_EVENTID = WMI_TLV_CMD(WMI_GRP_TWT), 876 WMI_TWT_DISABLE_EVENTID, 877 WMI_TWT_ADD_DIALOG_EVENTID, 878 WMI_TWT_DEL_DIALOG_EVENTID, 879 WMI_TWT_PAUSE_DIALOG_EVENTID, 880 WMI_TWT_RESUME_DIALOG_EVENTID, 881 }; 882 883 enum wmi_tlv_pdev_param { 884 WMI_PDEV_PARAM_TX_CHAIN_MASK = 0x1, 885 WMI_PDEV_PARAM_RX_CHAIN_MASK, 886 WMI_PDEV_PARAM_TXPOWER_LIMIT2G, 887 WMI_PDEV_PARAM_TXPOWER_LIMIT5G, 888 WMI_PDEV_PARAM_TXPOWER_SCALE, 889 WMI_PDEV_PARAM_BEACON_GEN_MODE, 890 WMI_PDEV_PARAM_BEACON_TX_MODE, 891 WMI_PDEV_PARAM_RESMGR_OFFCHAN_MODE, 892 WMI_PDEV_PARAM_PROTECTION_MODE, 893 WMI_PDEV_PARAM_DYNAMIC_BW, 894 WMI_PDEV_PARAM_NON_AGG_SW_RETRY_TH, 895 WMI_PDEV_PARAM_AGG_SW_RETRY_TH, 896 WMI_PDEV_PARAM_STA_KICKOUT_TH, 897 WMI_PDEV_PARAM_AC_AGGRSIZE_SCALING, 898 WMI_PDEV_PARAM_LTR_ENABLE, 899 WMI_PDEV_PARAM_LTR_AC_LATENCY_BE, 900 WMI_PDEV_PARAM_LTR_AC_LATENCY_BK, 901 WMI_PDEV_PARAM_LTR_AC_LATENCY_VI, 902 WMI_PDEV_PARAM_LTR_AC_LATENCY_VO, 903 WMI_PDEV_PARAM_LTR_AC_LATENCY_TIMEOUT, 904 WMI_PDEV_PARAM_LTR_SLEEP_OVERRIDE, 905 WMI_PDEV_PARAM_LTR_RX_OVERRIDE, 906 WMI_PDEV_PARAM_LTR_TX_ACTIVITY_TIMEOUT, 907 WMI_PDEV_PARAM_L1SS_ENABLE, 908 WMI_PDEV_PARAM_DSLEEP_ENABLE, 909 WMI_PDEV_PARAM_PCIELP_TXBUF_FLUSH, 910 WMI_PDEV_PARAM_PCIELP_TXBUF_WATERMARK, 911 WMI_PDEV_PARAM_PCIELP_TXBUF_TMO_EN, 912 WMI_PDEV_PARAM_PCIELP_TXBUF_TMO_VALUE, 913 WMI_PDEV_PARAM_PDEV_STATS_UPDATE_PERIOD, 914 WMI_PDEV_PARAM_VDEV_STATS_UPDATE_PERIOD, 915 WMI_PDEV_PARAM_PEER_STATS_UPDATE_PERIOD, 916 WMI_PDEV_PARAM_BCNFLT_STATS_UPDATE_PERIOD, 917 WMI_PDEV_PARAM_PMF_QOS, 918 WMI_PDEV_PARAM_ARP_AC_OVERRIDE, 919 WMI_PDEV_PARAM_DCS, 920 WMI_PDEV_PARAM_ANI_ENABLE, 921 WMI_PDEV_PARAM_ANI_POLL_PERIOD, 922 WMI_PDEV_PARAM_ANI_LISTEN_PERIOD, 923 WMI_PDEV_PARAM_ANI_OFDM_LEVEL, 924 WMI_PDEV_PARAM_ANI_CCK_LEVEL, 925 WMI_PDEV_PARAM_DYNTXCHAIN, 926 WMI_PDEV_PARAM_PROXY_STA, 927 WMI_PDEV_PARAM_IDLE_PS_CONFIG, 928 WMI_PDEV_PARAM_POWER_GATING_SLEEP, 929 WMI_PDEV_PARAM_RFKILL_ENABLE, 930 WMI_PDEV_PARAM_BURST_DUR, 931 WMI_PDEV_PARAM_BURST_ENABLE, 932 WMI_PDEV_PARAM_HW_RFKILL_CONFIG, 933 WMI_PDEV_PARAM_LOW_POWER_RF_ENABLE, 934 WMI_PDEV_PARAM_L1SS_TRACK, 935 WMI_PDEV_PARAM_HYST_EN, 936 WMI_PDEV_PARAM_POWER_COLLAPSE_ENABLE, 937 WMI_PDEV_PARAM_LED_SYS_STATE, 938 WMI_PDEV_PARAM_LED_ENABLE, 939 WMI_PDEV_PARAM_AUDIO_OVER_WLAN_LATENCY, 940 WMI_PDEV_PARAM_AUDIO_OVER_WLAN_ENABLE, 941 WMI_PDEV_PARAM_WHAL_MIB_STATS_UPDATE_ENABLE, 942 WMI_PDEV_PARAM_VDEV_RATE_STATS_UPDATE_PERIOD, 943 WMI_PDEV_PARAM_CTS_CBW, 944 WMI_PDEV_PARAM_WNTS_CONFIG, 945 WMI_PDEV_PARAM_ADAPTIVE_EARLY_RX_ENABLE, 946 WMI_PDEV_PARAM_ADAPTIVE_EARLY_RX_MIN_SLEEP_SLOP, 947 WMI_PDEV_PARAM_ADAPTIVE_EARLY_RX_INC_DEC_STEP, 948 WMI_PDEV_PARAM_EARLY_RX_FIX_SLEEP_SLOP, 949 WMI_PDEV_PARAM_BMISS_BASED_ADAPTIVE_BTO_ENABLE, 950 WMI_PDEV_PARAM_BMISS_BTO_MIN_BCN_TIMEOUT, 951 WMI_PDEV_PARAM_BMISS_BTO_INC_DEC_STEP, 952 WMI_PDEV_PARAM_BTO_FIX_BCN_TIMEOUT, 953 WMI_PDEV_PARAM_CE_BASED_ADAPTIVE_BTO_ENABLE, 954 WMI_PDEV_PARAM_CE_BTO_COMBO_CE_VALUE, 955 WMI_PDEV_PARAM_TX_CHAIN_MASK_2G, 956 WMI_PDEV_PARAM_RX_CHAIN_MASK_2G, 957 WMI_PDEV_PARAM_TX_CHAIN_MASK_5G, 958 WMI_PDEV_PARAM_RX_CHAIN_MASK_5G, 959 WMI_PDEV_PARAM_TX_CHAIN_MASK_CCK, 960 WMI_PDEV_PARAM_TX_CHAIN_MASK_1SS, 961 WMI_PDEV_PARAM_CTS2SELF_FOR_P2P_GO_CONFIG, 962 WMI_PDEV_PARAM_TXPOWER_DECR_DB, 963 WMI_PDEV_PARAM_AGGR_BURST, 964 WMI_PDEV_PARAM_RX_DECAP_MODE, 965 WMI_PDEV_PARAM_FAST_CHANNEL_RESET, 966 WMI_PDEV_PARAM_SMART_ANTENNA_DEFAULT_ANTENNA, 967 WMI_PDEV_PARAM_ANTENNA_GAIN, 968 WMI_PDEV_PARAM_RX_FILTER, 969 WMI_PDEV_SET_MCAST_TO_UCAST_TID, 970 WMI_PDEV_PARAM_PROXY_STA_MODE, 971 WMI_PDEV_PARAM_SET_MCAST2UCAST_MODE, 972 WMI_PDEV_PARAM_SET_MCAST2UCAST_BUFFER, 973 WMI_PDEV_PARAM_REMOVE_MCAST2UCAST_BUFFER, 974 WMI_PDEV_PEER_STA_PS_STATECHG_ENABLE, 975 WMI_PDEV_PARAM_IGMPMLD_AC_OVERRIDE, 976 WMI_PDEV_PARAM_BLOCK_INTERBSS, 977 WMI_PDEV_PARAM_SET_DISABLE_RESET_CMDID, 978 WMI_PDEV_PARAM_SET_MSDU_TTL_CMDID, 979 WMI_PDEV_PARAM_SET_PPDU_DURATION_CMDID, 980 WMI_PDEV_PARAM_TXBF_SOUND_PERIOD_CMDID, 981 WMI_PDEV_PARAM_SET_PROMISC_MODE_CMDID, 982 WMI_PDEV_PARAM_SET_BURST_MODE_CMDID, 983 WMI_PDEV_PARAM_EN_STATS, 984 WMI_PDEV_PARAM_MU_GROUP_POLICY, 985 WMI_PDEV_PARAM_NOISE_DETECTION, 986 WMI_PDEV_PARAM_NOISE_THRESHOLD, 987 WMI_PDEV_PARAM_DPD_ENABLE, 988 WMI_PDEV_PARAM_SET_MCAST_BCAST_ECHO, 989 WMI_PDEV_PARAM_ATF_STRICT_SCH, 990 WMI_PDEV_PARAM_ATF_SCHED_DURATION, 991 WMI_PDEV_PARAM_ANT_PLZN, 992 WMI_PDEV_PARAM_MGMT_RETRY_LIMIT, 993 WMI_PDEV_PARAM_SENSITIVITY_LEVEL, 994 WMI_PDEV_PARAM_SIGNED_TXPOWER_2G, 995 WMI_PDEV_PARAM_SIGNED_TXPOWER_5G, 996 WMI_PDEV_PARAM_ENABLE_PER_TID_AMSDU, 997 WMI_PDEV_PARAM_ENABLE_PER_TID_AMPDU, 998 WMI_PDEV_PARAM_CCA_THRESHOLD, 999 WMI_PDEV_PARAM_RTS_FIXED_RATE, 1000 WMI_PDEV_PARAM_PDEV_RESET, 1001 WMI_PDEV_PARAM_WAPI_MBSSID_OFFSET, 1002 WMI_PDEV_PARAM_ARP_DBG_SRCADDR, 1003 WMI_PDEV_PARAM_ARP_DBG_DSTADDR, 1004 WMI_PDEV_PARAM_ATF_OBSS_NOISE_SCH, 1005 WMI_PDEV_PARAM_ATF_OBSS_NOISE_SCALING_FACTOR, 1006 WMI_PDEV_PARAM_CUST_TXPOWER_SCALE, 1007 WMI_PDEV_PARAM_ATF_DYNAMIC_ENABLE, 1008 WMI_PDEV_PARAM_CTRL_RETRY_LIMIT, 1009 WMI_PDEV_PARAM_PROPAGATION_DELAY, 1010 WMI_PDEV_PARAM_ENA_ANT_DIV, 1011 WMI_PDEV_PARAM_FORCE_CHAIN_ANT, 1012 WMI_PDEV_PARAM_ANT_DIV_SELFTEST, 1013 WMI_PDEV_PARAM_ANT_DIV_SELFTEST_INTVL, 1014 WMI_PDEV_PARAM_STATS_OBSERVATION_PERIOD, 1015 WMI_PDEV_PARAM_TX_PPDU_DELAY_BIN_SIZE_MS, 1016 WMI_PDEV_PARAM_TX_PPDU_DELAY_ARRAY_LEN, 1017 WMI_PDEV_PARAM_TX_MPDU_AGGR_ARRAY_LEN, 1018 WMI_PDEV_PARAM_RX_MPDU_AGGR_ARRAY_LEN, 1019 WMI_PDEV_PARAM_TX_SCH_DELAY, 1020 WMI_PDEV_PARAM_ENABLE_RTS_SIFS_BURSTING, 1021 WMI_PDEV_PARAM_MAX_MPDUS_IN_AMPDU, 1022 WMI_PDEV_PARAM_PEER_STATS_INFO_ENABLE, 1023 WMI_PDEV_PARAM_FAST_PWR_TRANSITION, 1024 WMI_PDEV_PARAM_RADIO_CHAN_STATS_ENABLE, 1025 WMI_PDEV_PARAM_RADIO_DIAGNOSIS_ENABLE, 1026 WMI_PDEV_PARAM_MESH_MCAST_ENABLE, 1027 }; 1028 1029 enum wmi_tlv_vdev_param { 1030 WMI_VDEV_PARAM_RTS_THRESHOLD = 0x1, 1031 WMI_VDEV_PARAM_FRAGMENTATION_THRESHOLD, 1032 WMI_VDEV_PARAM_BEACON_INTERVAL, 1033 WMI_VDEV_PARAM_LISTEN_INTERVAL, 1034 WMI_VDEV_PARAM_MULTICAST_RATE, 1035 WMI_VDEV_PARAM_MGMT_TX_RATE, 1036 WMI_VDEV_PARAM_SLOT_TIME, 1037 WMI_VDEV_PARAM_PREAMBLE, 1038 WMI_VDEV_PARAM_SWBA_TIME, 1039 WMI_VDEV_STATS_UPDATE_PERIOD, 1040 WMI_VDEV_PWRSAVE_AGEOUT_TIME, 1041 WMI_VDEV_HOST_SWBA_INTERVAL, 1042 WMI_VDEV_PARAM_DTIM_PERIOD, 1043 WMI_VDEV_OC_SCHEDULER_AIR_TIME_LIMIT, 1044 WMI_VDEV_PARAM_WDS, 1045 WMI_VDEV_PARAM_ATIM_WINDOW, 1046 WMI_VDEV_PARAM_BMISS_COUNT_MAX, 1047 WMI_VDEV_PARAM_BMISS_FIRST_BCNT, 1048 WMI_VDEV_PARAM_BMISS_FINAL_BCNT, 1049 WMI_VDEV_PARAM_FEATURE_WMM, 1050 WMI_VDEV_PARAM_CHWIDTH, 1051 WMI_VDEV_PARAM_CHEXTOFFSET, 1052 WMI_VDEV_PARAM_DISABLE_HTPROTECTION, 1053 WMI_VDEV_PARAM_STA_QUICKKICKOUT, 1054 WMI_VDEV_PARAM_MGMT_RATE, 1055 WMI_VDEV_PARAM_PROTECTION_MODE, 1056 WMI_VDEV_PARAM_FIXED_RATE, 1057 WMI_VDEV_PARAM_SGI, 1058 WMI_VDEV_PARAM_LDPC, 1059 WMI_VDEV_PARAM_TX_STBC, 1060 WMI_VDEV_PARAM_RX_STBC, 1061 WMI_VDEV_PARAM_INTRA_BSS_FWD, 1062 WMI_VDEV_PARAM_DEF_KEYID, 1063 WMI_VDEV_PARAM_NSS, 1064 WMI_VDEV_PARAM_BCAST_DATA_RATE, 1065 WMI_VDEV_PARAM_MCAST_DATA_RATE, 1066 WMI_VDEV_PARAM_MCAST_INDICATE, 1067 WMI_VDEV_PARAM_DHCP_INDICATE, 1068 WMI_VDEV_PARAM_UNKNOWN_DEST_INDICATE, 1069 WMI_VDEV_PARAM_AP_KEEPALIVE_MIN_IDLE_INACTIVE_TIME_SECS, 1070 WMI_VDEV_PARAM_AP_KEEPALIVE_MAX_IDLE_INACTIVE_TIME_SECS, 1071 WMI_VDEV_PARAM_AP_KEEPALIVE_MAX_UNRESPONSIVE_TIME_SECS, 1072 WMI_VDEV_PARAM_AP_ENABLE_NAWDS, 1073 WMI_VDEV_PARAM_ENABLE_RTSCTS, 1074 WMI_VDEV_PARAM_TXBF, 1075 WMI_VDEV_PARAM_PACKET_POWERSAVE, 1076 WMI_VDEV_PARAM_DROP_UNENCRY, 1077 WMI_VDEV_PARAM_TX_ENCAP_TYPE, 1078 WMI_VDEV_PARAM_AP_DETECT_OUT_OF_SYNC_SLEEPING_STA_TIME_SECS, 1079 WMI_VDEV_PARAM_EARLY_RX_ADJUST_ENABLE, 1080 WMI_VDEV_PARAM_EARLY_RX_TGT_BMISS_NUM, 1081 WMI_VDEV_PARAM_EARLY_RX_BMISS_SAMPLE_CYCLE, 1082 WMI_VDEV_PARAM_EARLY_RX_SLOP_STEP, 1083 WMI_VDEV_PARAM_EARLY_RX_INIT_SLOP, 1084 WMI_VDEV_PARAM_EARLY_RX_ADJUST_PAUSE, 1085 WMI_VDEV_PARAM_TX_PWRLIMIT, 1086 WMI_VDEV_PARAM_SNR_NUM_FOR_CAL, 1087 WMI_VDEV_PARAM_ROAM_FW_OFFLOAD, 1088 WMI_VDEV_PARAM_ENABLE_RMC, 1089 WMI_VDEV_PARAM_IBSS_MAX_BCN_LOST_MS, 1090 WMI_VDEV_PARAM_MAX_RATE, 1091 WMI_VDEV_PARAM_EARLY_RX_DRIFT_SAMPLE, 1092 WMI_VDEV_PARAM_SET_IBSS_TX_FAIL_CNT_THR, 1093 WMI_VDEV_PARAM_EBT_RESYNC_TIMEOUT, 1094 WMI_VDEV_PARAM_AGGR_TRIG_EVENT_ENABLE, 1095 WMI_VDEV_PARAM_IS_IBSS_POWER_SAVE_ALLOWED, 1096 WMI_VDEV_PARAM_IS_POWER_COLLAPSE_ALLOWED, 1097 WMI_VDEV_PARAM_IS_AWAKE_ON_TXRX_ENABLED, 1098 WMI_VDEV_PARAM_INACTIVITY_CNT, 1099 WMI_VDEV_PARAM_TXSP_END_INACTIVITY_TIME_MS, 1100 WMI_VDEV_PARAM_DTIM_POLICY, 1101 WMI_VDEV_PARAM_IBSS_PS_WARMUP_TIME_SECS, 1102 WMI_VDEV_PARAM_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_ENABLE, 1103 WMI_VDEV_PARAM_RX_LEAK_WINDOW, 1104 WMI_VDEV_PARAM_STATS_AVG_FACTOR, 1105 WMI_VDEV_PARAM_DISCONNECT_TH, 1106 WMI_VDEV_PARAM_RTSCTS_RATE, 1107 WMI_VDEV_PARAM_MCC_RTSCTS_PROTECTION_ENABLE, 1108 WMI_VDEV_PARAM_MCC_BROADCAST_PROBE_ENABLE, 1109 WMI_VDEV_PARAM_TXPOWER_SCALE, 1110 WMI_VDEV_PARAM_TXPOWER_SCALE_DECR_DB, 1111 WMI_VDEV_PARAM_MCAST2UCAST_SET, 1112 WMI_VDEV_PARAM_RC_NUM_RETRIES, 1113 WMI_VDEV_PARAM_CABQ_MAXDUR, 1114 WMI_VDEV_PARAM_MFPTEST_SET, 1115 WMI_VDEV_PARAM_RTS_FIXED_RATE, 1116 WMI_VDEV_PARAM_VHT_SGIMASK, 1117 WMI_VDEV_PARAM_VHT80_RATEMASK, 1118 WMI_VDEV_PARAM_PROXY_STA, 1119 WMI_VDEV_PARAM_VIRTUAL_CELL_MODE, 1120 WMI_VDEV_PARAM_RX_DECAP_TYPE, 1121 WMI_VDEV_PARAM_BW_NSS_RATEMASK, 1122 WMI_VDEV_PARAM_SENSOR_AP, 1123 WMI_VDEV_PARAM_BEACON_RATE, 1124 WMI_VDEV_PARAM_DTIM_ENABLE_CTS, 1125 WMI_VDEV_PARAM_STA_KICKOUT, 1126 WMI_VDEV_PARAM_CAPABILITIES, 1127 WMI_VDEV_PARAM_TSF_INCREMENT, 1128 WMI_VDEV_PARAM_AMPDU_PER_AC, 1129 WMI_VDEV_PARAM_RX_FILTER, 1130 WMI_VDEV_PARAM_MGMT_TX_POWER, 1131 WMI_VDEV_PARAM_NON_AGG_SW_RETRY_TH, 1132 WMI_VDEV_PARAM_AGG_SW_RETRY_TH, 1133 WMI_VDEV_PARAM_DISABLE_DYN_BW_RTS, 1134 WMI_VDEV_PARAM_ATF_SSID_SCHED_POLICY, 1135 WMI_VDEV_PARAM_HE_DCM, 1136 WMI_VDEV_PARAM_HE_RANGE_EXT, 1137 WMI_VDEV_PARAM_ENABLE_BCAST_PROBE_RESPONSE, 1138 WMI_VDEV_PARAM_FILS_MAX_CHANNEL_GUARD_TIME, 1139 WMI_VDEV_PARAM_BA_MODE = 0x7e, 1140 WMI_VDEV_PARAM_SET_HE_SOUNDING_MODE = 0x87, 1141 WMI_VDEV_PARAM_6GHZ_PARAMS = 0x99, 1142 WMI_VDEV_PARAM_PROTOTYPE = 0x8000, 1143 WMI_VDEV_PARAM_BSS_COLOR, 1144 WMI_VDEV_PARAM_SET_HEMU_MODE, 1145 WMI_VDEV_PARAM_HEOPS_0_31 = 0x8003, 1146 }; 1147 1148 enum wmi_tlv_peer_flags { 1149 WMI_TLV_PEER_AUTH = 0x00000001, 1150 WMI_TLV_PEER_QOS = 0x00000002, 1151 WMI_TLV_PEER_NEED_PTK_4_WAY = 0x00000004, 1152 WMI_TLV_PEER_NEED_GTK_2_WAY = 0x00000010, 1153 WMI_TLV_PEER_APSD = 0x00000800, 1154 WMI_TLV_PEER_HT = 0x00001000, 1155 WMI_TLV_PEER_40MHZ = 0x00002000, 1156 WMI_TLV_PEER_STBC = 0x00008000, 1157 WMI_TLV_PEER_LDPC = 0x00010000, 1158 WMI_TLV_PEER_DYN_MIMOPS = 0x00020000, 1159 WMI_TLV_PEER_STATIC_MIMOPS = 0x00040000, 1160 WMI_TLV_PEER_SPATIAL_MUX = 0x00200000, 1161 WMI_TLV_PEER_VHT = 0x02000000, 1162 WMI_TLV_PEER_80MHZ = 0x04000000, 1163 WMI_TLV_PEER_PMF = 0x08000000, 1164 WMI_PEER_IS_P2P_CAPABLE = 0x20000000, 1165 WMI_PEER_160MHZ = 0x40000000, 1166 WMI_PEER_SAFEMODE_EN = 0x80000000, 1167 1168 }; 1169 1170 /** Enum list of TLV Tags for each parameter structure type. */ 1171 enum wmi_tlv_tag { 1172 WMI_TAG_LAST_RESERVED = 15, 1173 WMI_TAG_FIRST_ARRAY_ENUM, 1174 WMI_TAG_ARRAY_UINT32 = WMI_TAG_FIRST_ARRAY_ENUM, 1175 WMI_TAG_ARRAY_BYTE, 1176 WMI_TAG_ARRAY_STRUCT, 1177 WMI_TAG_ARRAY_FIXED_STRUCT, 1178 WMI_TAG_LAST_ARRAY_ENUM = 31, 1179 WMI_TAG_SERVICE_READY_EVENT, 1180 WMI_TAG_HAL_REG_CAPABILITIES, 1181 WMI_TAG_WLAN_HOST_MEM_REQ, 1182 WMI_TAG_READY_EVENT, 1183 WMI_TAG_SCAN_EVENT, 1184 WMI_TAG_PDEV_TPC_CONFIG_EVENT, 1185 WMI_TAG_CHAN_INFO_EVENT, 1186 WMI_TAG_COMB_PHYERR_RX_HDR, 1187 WMI_TAG_VDEV_START_RESPONSE_EVENT, 1188 WMI_TAG_VDEV_STOPPED_EVENT, 1189 WMI_TAG_VDEV_INSTALL_KEY_COMPLETE_EVENT, 1190 WMI_TAG_PEER_STA_KICKOUT_EVENT, 1191 WMI_TAG_MGMT_RX_HDR, 1192 WMI_TAG_TBTT_OFFSET_EVENT, 1193 WMI_TAG_TX_DELBA_COMPLETE_EVENT, 1194 WMI_TAG_TX_ADDBA_COMPLETE_EVENT, 1195 WMI_TAG_ROAM_EVENT, 1196 WMI_TAG_WOW_EVENT_INFO, 1197 WMI_TAG_WOW_EVENT_INFO_SECTION_BITMAP, 1198 WMI_TAG_RTT_EVENT_HEADER, 1199 WMI_TAG_RTT_ERROR_REPORT_EVENT, 1200 WMI_TAG_RTT_MEAS_EVENT, 1201 WMI_TAG_ECHO_EVENT, 1202 WMI_TAG_FTM_INTG_EVENT, 1203 WMI_TAG_VDEV_GET_KEEPALIVE_EVENT, 1204 WMI_TAG_GPIO_INPUT_EVENT, 1205 WMI_TAG_CSA_EVENT, 1206 WMI_TAG_GTK_OFFLOAD_STATUS_EVENT, 1207 WMI_TAG_IGTK_INFO, 1208 WMI_TAG_DCS_INTERFERENCE_EVENT, 1209 WMI_TAG_ATH_DCS_CW_INT, 1210 WMI_TAG_WLAN_DCS_CW_INT = /* ALIAS */ 1211 WMI_TAG_ATH_DCS_CW_INT, 1212 WMI_TAG_ATH_DCS_WLAN_INT_STAT, 1213 WMI_TAG_WLAN_DCS_IM_TGT_STATS_T = /* ALIAS */ 1214 WMI_TAG_ATH_DCS_WLAN_INT_STAT, 1215 WMI_TAG_WLAN_PROFILE_CTX_T, 1216 WMI_TAG_WLAN_PROFILE_T, 1217 WMI_TAG_PDEV_QVIT_EVENT, 1218 WMI_TAG_HOST_SWBA_EVENT, 1219 WMI_TAG_TIM_INFO, 1220 WMI_TAG_P2P_NOA_INFO, 1221 WMI_TAG_STATS_EVENT, 1222 WMI_TAG_AVOID_FREQ_RANGES_EVENT, 1223 WMI_TAG_AVOID_FREQ_RANGE_DESC, 1224 WMI_TAG_GTK_REKEY_FAIL_EVENT, 1225 WMI_TAG_INIT_CMD, 1226 WMI_TAG_RESOURCE_CONFIG, 1227 WMI_TAG_WLAN_HOST_MEMORY_CHUNK, 1228 WMI_TAG_START_SCAN_CMD, 1229 WMI_TAG_STOP_SCAN_CMD, 1230 WMI_TAG_SCAN_CHAN_LIST_CMD, 1231 WMI_TAG_CHANNEL, 1232 WMI_TAG_PDEV_SET_REGDOMAIN_CMD, 1233 WMI_TAG_PDEV_SET_PARAM_CMD, 1234 WMI_TAG_PDEV_SET_WMM_PARAMS_CMD, 1235 WMI_TAG_WMM_PARAMS, 1236 WMI_TAG_PDEV_SET_QUIET_CMD, 1237 WMI_TAG_VDEV_CREATE_CMD, 1238 WMI_TAG_VDEV_DELETE_CMD, 1239 WMI_TAG_VDEV_START_REQUEST_CMD, 1240 WMI_TAG_P2P_NOA_DESCRIPTOR, 1241 WMI_TAG_P2P_GO_SET_BEACON_IE, 1242 WMI_TAG_GTK_OFFLOAD_CMD, 1243 WMI_TAG_VDEV_UP_CMD, 1244 WMI_TAG_VDEV_STOP_CMD, 1245 WMI_TAG_VDEV_DOWN_CMD, 1246 WMI_TAG_VDEV_SET_PARAM_CMD, 1247 WMI_TAG_VDEV_INSTALL_KEY_CMD, 1248 WMI_TAG_PEER_CREATE_CMD, 1249 WMI_TAG_PEER_DELETE_CMD, 1250 WMI_TAG_PEER_FLUSH_TIDS_CMD, 1251 WMI_TAG_PEER_SET_PARAM_CMD, 1252 WMI_TAG_PEER_ASSOC_COMPLETE_CMD, 1253 WMI_TAG_VHT_RATE_SET, 1254 WMI_TAG_BCN_TMPL_CMD, 1255 WMI_TAG_PRB_TMPL_CMD, 1256 WMI_TAG_BCN_PRB_INFO, 1257 WMI_TAG_PEER_TID_ADDBA_CMD, 1258 WMI_TAG_PEER_TID_DELBA_CMD, 1259 WMI_TAG_STA_POWERSAVE_MODE_CMD, 1260 WMI_TAG_STA_POWERSAVE_PARAM_CMD, 1261 WMI_TAG_STA_DTIM_PS_METHOD_CMD, 1262 WMI_TAG_ROAM_SCAN_MODE, 1263 WMI_TAG_ROAM_SCAN_RSSI_THRESHOLD, 1264 WMI_TAG_ROAM_SCAN_PERIOD, 1265 WMI_TAG_ROAM_SCAN_RSSI_CHANGE_THRESHOLD, 1266 WMI_TAG_PDEV_SUSPEND_CMD, 1267 WMI_TAG_PDEV_RESUME_CMD, 1268 WMI_TAG_ADD_BCN_FILTER_CMD, 1269 WMI_TAG_RMV_BCN_FILTER_CMD, 1270 WMI_TAG_WOW_ENABLE_CMD, 1271 WMI_TAG_WOW_HOSTWAKEUP_FROM_SLEEP_CMD, 1272 WMI_TAG_STA_UAPSD_AUTO_TRIG_CMD, 1273 WMI_TAG_STA_UAPSD_AUTO_TRIG_PARAM, 1274 WMI_TAG_SET_ARP_NS_OFFLOAD_CMD, 1275 WMI_TAG_ARP_OFFLOAD_TUPLE, 1276 WMI_TAG_NS_OFFLOAD_TUPLE, 1277 WMI_TAG_FTM_INTG_CMD, 1278 WMI_TAG_STA_KEEPALIVE_CMD, 1279 WMI_TAG_STA_KEEPALVE_ARP_RESPONSE, 1280 WMI_TAG_P2P_SET_VENDOR_IE_DATA_CMD, 1281 WMI_TAG_AP_PS_PEER_CMD, 1282 WMI_TAG_PEER_RATE_RETRY_SCHED_CMD, 1283 WMI_TAG_WLAN_PROFILE_TRIGGER_CMD, 1284 WMI_TAG_WLAN_PROFILE_SET_HIST_INTVL_CMD, 1285 WMI_TAG_WLAN_PROFILE_GET_PROF_DATA_CMD, 1286 WMI_TAG_WLAN_PROFILE_ENABLE_PROFILE_ID_CMD, 1287 WMI_TAG_WOW_DEL_PATTERN_CMD, 1288 WMI_TAG_WOW_ADD_DEL_EVT_CMD, 1289 WMI_TAG_RTT_MEASREQ_HEAD, 1290 WMI_TAG_RTT_MEASREQ_BODY, 1291 WMI_TAG_RTT_TSF_CMD, 1292 WMI_TAG_VDEV_SPECTRAL_CONFIGURE_CMD, 1293 WMI_TAG_VDEV_SPECTRAL_ENABLE_CMD, 1294 WMI_TAG_REQUEST_STATS_CMD, 1295 WMI_TAG_NLO_CONFIG_CMD, 1296 WMI_TAG_NLO_CONFIGURED_PARAMETERS, 1297 WMI_TAG_CSA_OFFLOAD_ENABLE_CMD, 1298 WMI_TAG_CSA_OFFLOAD_CHANSWITCH_CMD, 1299 WMI_TAG_CHATTER_SET_MODE_CMD, 1300 WMI_TAG_ECHO_CMD, 1301 WMI_TAG_VDEV_SET_KEEPALIVE_CMD, 1302 WMI_TAG_VDEV_GET_KEEPALIVE_CMD, 1303 WMI_TAG_FORCE_FW_HANG_CMD, 1304 WMI_TAG_GPIO_CONFIG_CMD, 1305 WMI_TAG_GPIO_OUTPUT_CMD, 1306 WMI_TAG_PEER_ADD_WDS_ENTRY_CMD, 1307 WMI_TAG_PEER_REMOVE_WDS_ENTRY_CMD, 1308 WMI_TAG_BCN_TX_HDR, 1309 WMI_TAG_BCN_SEND_FROM_HOST_CMD, 1310 WMI_TAG_MGMT_TX_HDR, 1311 WMI_TAG_ADDBA_CLEAR_RESP_CMD, 1312 WMI_TAG_ADDBA_SEND_CMD, 1313 WMI_TAG_DELBA_SEND_CMD, 1314 WMI_TAG_ADDBA_SETRESPONSE_CMD, 1315 WMI_TAG_SEND_SINGLEAMSDU_CMD, 1316 WMI_TAG_PDEV_PKTLOG_ENABLE_CMD, 1317 WMI_TAG_PDEV_PKTLOG_DISABLE_CMD, 1318 WMI_TAG_PDEV_SET_HT_IE_CMD, 1319 WMI_TAG_PDEV_SET_VHT_IE_CMD, 1320 WMI_TAG_PDEV_SET_DSCP_TID_MAP_CMD, 1321 WMI_TAG_PDEV_GREEN_AP_PS_ENABLE_CMD, 1322 WMI_TAG_PDEV_GET_TPC_CONFIG_CMD, 1323 WMI_TAG_PDEV_SET_BASE_MACADDR_CMD, 1324 WMI_TAG_PEER_MCAST_GROUP_CMD, 1325 WMI_TAG_ROAM_AP_PROFILE, 1326 WMI_TAG_AP_PROFILE, 1327 WMI_TAG_SCAN_SCH_PRIORITY_TABLE_CMD, 1328 WMI_TAG_PDEV_DFS_ENABLE_CMD, 1329 WMI_TAG_PDEV_DFS_DISABLE_CMD, 1330 WMI_TAG_WOW_ADD_PATTERN_CMD, 1331 WMI_TAG_WOW_BITMAP_PATTERN_T, 1332 WMI_TAG_WOW_IPV4_SYNC_PATTERN_T, 1333 WMI_TAG_WOW_IPV6_SYNC_PATTERN_T, 1334 WMI_TAG_WOW_MAGIC_PATTERN_CMD, 1335 WMI_TAG_SCAN_UPDATE_REQUEST_CMD, 1336 WMI_TAG_CHATTER_PKT_COALESCING_FILTER, 1337 WMI_TAG_CHATTER_COALESCING_ADD_FILTER_CMD, 1338 WMI_TAG_CHATTER_COALESCING_DELETE_FILTER_CMD, 1339 WMI_TAG_CHATTER_COALESCING_QUERY_CMD, 1340 WMI_TAG_TXBF_CMD, 1341 WMI_TAG_DEBUG_LOG_CONFIG_CMD, 1342 WMI_TAG_NLO_EVENT, 1343 WMI_TAG_CHATTER_QUERY_REPLY_EVENT, 1344 WMI_TAG_UPLOAD_H_HDR, 1345 WMI_TAG_CAPTURE_H_EVENT_HDR, 1346 WMI_TAG_VDEV_WNM_SLEEPMODE_CMD, 1347 WMI_TAG_VDEV_IPSEC_NATKEEPALIVE_FILTER_CMD, 1348 WMI_TAG_VDEV_WMM_ADDTS_CMD, 1349 WMI_TAG_VDEV_WMM_DELTS_CMD, 1350 WMI_TAG_VDEV_SET_WMM_PARAMS_CMD, 1351 WMI_TAG_TDLS_SET_STATE_CMD, 1352 WMI_TAG_TDLS_PEER_UPDATE_CMD, 1353 WMI_TAG_TDLS_PEER_EVENT, 1354 WMI_TAG_TDLS_PEER_CAPABILITIES, 1355 WMI_TAG_VDEV_MCC_SET_TBTT_MODE_CMD, 1356 WMI_TAG_ROAM_CHAN_LIST, 1357 WMI_TAG_VDEV_MCC_BCN_INTVL_CHANGE_EVENT, 1358 WMI_TAG_RESMGR_ADAPTIVE_OCS_ENABLE_DISABLE_CMD, 1359 WMI_TAG_RESMGR_SET_CHAN_TIME_QUOTA_CMD, 1360 WMI_TAG_RESMGR_SET_CHAN_LATENCY_CMD, 1361 WMI_TAG_BA_REQ_SSN_CMD, 1362 WMI_TAG_BA_RSP_SSN_EVENT, 1363 WMI_TAG_STA_SMPS_FORCE_MODE_CMD, 1364 WMI_TAG_SET_MCASTBCAST_FILTER_CMD, 1365 WMI_TAG_P2P_SET_OPPPS_CMD, 1366 WMI_TAG_P2P_SET_NOA_CMD, 1367 WMI_TAG_BA_REQ_SSN_CMD_SUB_STRUCT_PARAM, 1368 WMI_TAG_BA_REQ_SSN_EVENT_SUB_STRUCT_PARAM, 1369 WMI_TAG_STA_SMPS_PARAM_CMD, 1370 WMI_TAG_VDEV_SET_GTX_PARAMS_CMD, 1371 WMI_TAG_MCC_SCHED_TRAFFIC_STATS_CMD, 1372 WMI_TAG_MCC_SCHED_STA_TRAFFIC_STATS, 1373 WMI_TAG_OFFLOAD_BCN_TX_STATUS_EVENT, 1374 WMI_TAG_P2P_NOA_EVENT, 1375 WMI_TAG_HB_SET_ENABLE_CMD, 1376 WMI_TAG_HB_SET_TCP_PARAMS_CMD, 1377 WMI_TAG_HB_SET_TCP_PKT_FILTER_CMD, 1378 WMI_TAG_HB_SET_UDP_PARAMS_CMD, 1379 WMI_TAG_HB_SET_UDP_PKT_FILTER_CMD, 1380 WMI_TAG_HB_IND_EVENT, 1381 WMI_TAG_TX_PAUSE_EVENT, 1382 WMI_TAG_RFKILL_EVENT, 1383 WMI_TAG_DFS_RADAR_EVENT, 1384 WMI_TAG_DFS_PHYERR_FILTER_ENA_CMD, 1385 WMI_TAG_DFS_PHYERR_FILTER_DIS_CMD, 1386 WMI_TAG_BATCH_SCAN_RESULT_SCAN_LIST, 1387 WMI_TAG_BATCH_SCAN_RESULT_NETWORK_INFO, 1388 WMI_TAG_BATCH_SCAN_ENABLE_CMD, 1389 WMI_TAG_BATCH_SCAN_DISABLE_CMD, 1390 WMI_TAG_BATCH_SCAN_TRIGGER_RESULT_CMD, 1391 WMI_TAG_BATCH_SCAN_ENABLED_EVENT, 1392 WMI_TAG_BATCH_SCAN_RESULT_EVENT, 1393 WMI_TAG_VDEV_PLMREQ_START_CMD, 1394 WMI_TAG_VDEV_PLMREQ_STOP_CMD, 1395 WMI_TAG_THERMAL_MGMT_CMD, 1396 WMI_TAG_THERMAL_MGMT_EVENT, 1397 WMI_TAG_PEER_INFO_REQ_CMD, 1398 WMI_TAG_PEER_INFO_EVENT, 1399 WMI_TAG_PEER_INFO, 1400 WMI_TAG_PEER_TX_FAIL_CNT_THR_EVENT, 1401 WMI_TAG_RMC_SET_MODE_CMD, 1402 WMI_TAG_RMC_SET_ACTION_PERIOD_CMD, 1403 WMI_TAG_RMC_CONFIG_CMD, 1404 WMI_TAG_MHF_OFFLOAD_SET_MODE_CMD, 1405 WMI_TAG_MHF_OFFLOAD_PLUMB_ROUTING_TABLE_CMD, 1406 WMI_TAG_ADD_PROACTIVE_ARP_RSP_PATTERN_CMD, 1407 WMI_TAG_DEL_PROACTIVE_ARP_RSP_PATTERN_CMD, 1408 WMI_TAG_NAN_CMD_PARAM, 1409 WMI_TAG_NAN_EVENT_HDR, 1410 WMI_TAG_PDEV_L1SS_TRACK_EVENT, 1411 WMI_TAG_DIAG_DATA_CONTAINER_EVENT, 1412 WMI_TAG_MODEM_POWER_STATE_CMD_PARAM, 1413 WMI_TAG_PEER_GET_ESTIMATED_LINKSPEED_CMD, 1414 WMI_TAG_PEER_ESTIMATED_LINKSPEED_EVENT, 1415 WMI_TAG_AGGR_STATE_TRIG_EVENT, 1416 WMI_TAG_MHF_OFFLOAD_ROUTING_TABLE_ENTRY, 1417 WMI_TAG_ROAM_SCAN_CMD, 1418 WMI_TAG_REQ_STATS_EXT_CMD, 1419 WMI_TAG_STATS_EXT_EVENT, 1420 WMI_TAG_OBSS_SCAN_ENABLE_CMD, 1421 WMI_TAG_OBSS_SCAN_DISABLE_CMD, 1422 WMI_TAG_OFFLOAD_PRB_RSP_TX_STATUS_EVENT, 1423 WMI_TAG_PDEV_SET_LED_CONFIG_CMD, 1424 WMI_TAG_HOST_AUTO_SHUTDOWN_CFG_CMD, 1425 WMI_TAG_HOST_AUTO_SHUTDOWN_EVENT, 1426 WMI_TAG_UPDATE_WHAL_MIB_STATS_EVENT, 1427 WMI_TAG_CHAN_AVOID_UPDATE_CMD_PARAM, 1428 WMI_TAG_WOW_IOAC_PKT_PATTERN_T, 1429 WMI_TAG_WOW_IOAC_TMR_PATTERN_T, 1430 WMI_TAG_WOW_IOAC_ADD_KEEPALIVE_CMD, 1431 WMI_TAG_WOW_IOAC_DEL_KEEPALIVE_CMD, 1432 WMI_TAG_WOW_IOAC_KEEPALIVE_T, 1433 WMI_TAG_WOW_IOAC_ADD_PATTERN_CMD, 1434 WMI_TAG_WOW_IOAC_DEL_PATTERN_CMD, 1435 WMI_TAG_START_LINK_STATS_CMD, 1436 WMI_TAG_CLEAR_LINK_STATS_CMD, 1437 WMI_TAG_REQUEST_LINK_STATS_CMD, 1438 WMI_TAG_IFACE_LINK_STATS_EVENT, 1439 WMI_TAG_RADIO_LINK_STATS_EVENT, 1440 WMI_TAG_PEER_STATS_EVENT, 1441 WMI_TAG_CHANNEL_STATS, 1442 WMI_TAG_RADIO_LINK_STATS, 1443 WMI_TAG_RATE_STATS, 1444 WMI_TAG_PEER_LINK_STATS, 1445 WMI_TAG_WMM_AC_STATS, 1446 WMI_TAG_IFACE_LINK_STATS, 1447 WMI_TAG_LPI_MGMT_SNOOPING_CONFIG_CMD, 1448 WMI_TAG_LPI_START_SCAN_CMD, 1449 WMI_TAG_LPI_STOP_SCAN_CMD, 1450 WMI_TAG_LPI_RESULT_EVENT, 1451 WMI_TAG_PEER_STATE_EVENT, 1452 WMI_TAG_EXTSCAN_BUCKET_CMD, 1453 WMI_TAG_EXTSCAN_BUCKET_CHANNEL_EVENT, 1454 WMI_TAG_EXTSCAN_START_CMD, 1455 WMI_TAG_EXTSCAN_STOP_CMD, 1456 WMI_TAG_EXTSCAN_CONFIGURE_WLAN_CHANGE_MONITOR_CMD, 1457 WMI_TAG_EXTSCAN_WLAN_CHANGE_BSSID_PARAM_CMD, 1458 WMI_TAG_EXTSCAN_CONFIGURE_HOTLIST_MONITOR_CMD, 1459 WMI_TAG_EXTSCAN_GET_CACHED_RESULTS_CMD, 1460 WMI_TAG_EXTSCAN_GET_WLAN_CHANGE_RESULTS_CMD, 1461 WMI_TAG_EXTSCAN_SET_CAPABILITIES_CMD, 1462 WMI_TAG_EXTSCAN_GET_CAPABILITIES_CMD, 1463 WMI_TAG_EXTSCAN_OPERATION_EVENT, 1464 WMI_TAG_EXTSCAN_START_STOP_EVENT, 1465 WMI_TAG_EXTSCAN_TABLE_USAGE_EVENT, 1466 WMI_TAG_EXTSCAN_WLAN_DESCRIPTOR_EVENT, 1467 WMI_TAG_EXTSCAN_RSSI_INFO_EVENT, 1468 WMI_TAG_EXTSCAN_CACHED_RESULTS_EVENT, 1469 WMI_TAG_EXTSCAN_WLAN_CHANGE_RESULTS_EVENT, 1470 WMI_TAG_EXTSCAN_WLAN_CHANGE_RESULT_BSSID_EVENT, 1471 WMI_TAG_EXTSCAN_HOTLIST_MATCH_EVENT, 1472 WMI_TAG_EXTSCAN_CAPABILITIES_EVENT, 1473 WMI_TAG_EXTSCAN_CACHE_CAPABILITIES_EVENT, 1474 WMI_TAG_EXTSCAN_WLAN_CHANGE_MONITOR_CAPABILITIES_EVENT, 1475 WMI_TAG_EXTSCAN_HOTLIST_MONITOR_CAPABILITIES_EVENT, 1476 WMI_TAG_D0_WOW_ENABLE_DISABLE_CMD, 1477 WMI_TAG_D0_WOW_DISABLE_ACK_EVENT, 1478 WMI_TAG_UNIT_TEST_CMD, 1479 WMI_TAG_ROAM_OFFLOAD_TLV_PARAM, 1480 WMI_TAG_ROAM_11I_OFFLOAD_TLV_PARAM, 1481 WMI_TAG_ROAM_11R_OFFLOAD_TLV_PARAM, 1482 WMI_TAG_ROAM_ESE_OFFLOAD_TLV_PARAM, 1483 WMI_TAG_ROAM_SYNCH_EVENT, 1484 WMI_TAG_ROAM_SYNCH_COMPLETE, 1485 WMI_TAG_EXTWOW_ENABLE_CMD, 1486 WMI_TAG_EXTWOW_SET_APP_TYPE1_PARAMS_CMD, 1487 WMI_TAG_EXTWOW_SET_APP_TYPE2_PARAMS_CMD, 1488 WMI_TAG_LPI_STATUS_EVENT, 1489 WMI_TAG_LPI_HANDOFF_EVENT, 1490 WMI_TAG_VDEV_RATE_STATS_EVENT, 1491 WMI_TAG_VDEV_RATE_HT_INFO, 1492 WMI_TAG_RIC_REQUEST, 1493 WMI_TAG_PDEV_GET_TEMPERATURE_CMD, 1494 WMI_TAG_PDEV_TEMPERATURE_EVENT, 1495 WMI_TAG_SET_DHCP_SERVER_OFFLOAD_CMD, 1496 WMI_TAG_TPC_CHAINMASK_CONFIG_CMD, 1497 WMI_TAG_RIC_TSPEC, 1498 WMI_TAG_TPC_CHAINMASK_CONFIG, 1499 WMI_TAG_IPA_OFFLOAD_ENABLE_DISABLE_CMD, 1500 WMI_TAG_SCAN_PROB_REQ_OUI_CMD, 1501 WMI_TAG_KEY_MATERIAL, 1502 WMI_TAG_TDLS_SET_OFFCHAN_MODE_CMD, 1503 WMI_TAG_SET_LED_FLASHING_CMD, 1504 WMI_TAG_MDNS_OFFLOAD_CMD, 1505 WMI_TAG_MDNS_SET_FQDN_CMD, 1506 WMI_TAG_MDNS_SET_RESP_CMD, 1507 WMI_TAG_MDNS_GET_STATS_CMD, 1508 WMI_TAG_MDNS_STATS_EVENT, 1509 WMI_TAG_ROAM_INVOKE_CMD, 1510 WMI_TAG_PDEV_RESUME_EVENT, 1511 WMI_TAG_PDEV_SET_ANTENNA_DIVERSITY_CMD, 1512 WMI_TAG_SAP_OFL_ENABLE_CMD, 1513 WMI_TAG_SAP_OFL_ADD_STA_EVENT, 1514 WMI_TAG_SAP_OFL_DEL_STA_EVENT, 1515 WMI_TAG_APFIND_CMD_PARAM, 1516 WMI_TAG_APFIND_EVENT_HDR, 1517 WMI_TAG_OCB_SET_SCHED_CMD, 1518 WMI_TAG_OCB_SET_SCHED_EVENT, 1519 WMI_TAG_OCB_SET_CONFIG_CMD, 1520 WMI_TAG_OCB_SET_CONFIG_RESP_EVENT, 1521 WMI_TAG_OCB_SET_UTC_TIME_CMD, 1522 WMI_TAG_OCB_START_TIMING_ADVERT_CMD, 1523 WMI_TAG_OCB_STOP_TIMING_ADVERT_CMD, 1524 WMI_TAG_OCB_GET_TSF_TIMER_CMD, 1525 WMI_TAG_OCB_GET_TSF_TIMER_RESP_EVENT, 1526 WMI_TAG_DCC_GET_STATS_CMD, 1527 WMI_TAG_DCC_CHANNEL_STATS_REQUEST, 1528 WMI_TAG_DCC_GET_STATS_RESP_EVENT, 1529 WMI_TAG_DCC_CLEAR_STATS_CMD, 1530 WMI_TAG_DCC_UPDATE_NDL_CMD, 1531 WMI_TAG_DCC_UPDATE_NDL_RESP_EVENT, 1532 WMI_TAG_DCC_STATS_EVENT, 1533 WMI_TAG_OCB_CHANNEL, 1534 WMI_TAG_OCB_SCHEDULE_ELEMENT, 1535 WMI_TAG_DCC_NDL_STATS_PER_CHANNEL, 1536 WMI_TAG_DCC_NDL_CHAN, 1537 WMI_TAG_QOS_PARAMETER, 1538 WMI_TAG_DCC_NDL_ACTIVE_STATE_CONFIG, 1539 WMI_TAG_ROAM_SCAN_EXTENDED_THRESHOLD_PARAM, 1540 WMI_TAG_ROAM_FILTER, 1541 WMI_TAG_PASSPOINT_CONFIG_CMD, 1542 WMI_TAG_PASSPOINT_EVENT_HDR, 1543 WMI_TAG_EXTSCAN_CONFIGURE_HOTLIST_SSID_MONITOR_CMD, 1544 WMI_TAG_EXTSCAN_HOTLIST_SSID_MATCH_EVENT, 1545 WMI_TAG_VDEV_TSF_TSTAMP_ACTION_CMD, 1546 WMI_TAG_VDEV_TSF_REPORT_EVENT, 1547 WMI_TAG_GET_FW_MEM_DUMP, 1548 WMI_TAG_UPDATE_FW_MEM_DUMP, 1549 WMI_TAG_FW_MEM_DUMP_PARAMS, 1550 WMI_TAG_DEBUG_MESG_FLUSH, 1551 WMI_TAG_DEBUG_MESG_FLUSH_COMPLETE, 1552 WMI_TAG_PEER_SET_RATE_REPORT_CONDITION, 1553 WMI_TAG_ROAM_SUBNET_CHANGE_CONFIG, 1554 WMI_TAG_VDEV_SET_IE_CMD, 1555 WMI_TAG_RSSI_BREACH_MONITOR_CONFIG, 1556 WMI_TAG_RSSI_BREACH_EVENT, 1557 WMI_TAG_WOW_EVENT_INITIAL_WAKEUP, 1558 WMI_TAG_SOC_SET_PCL_CMD, 1559 WMI_TAG_SOC_SET_HW_MODE_CMD, 1560 WMI_TAG_SOC_SET_HW_MODE_RESPONSE_EVENT, 1561 WMI_TAG_SOC_HW_MODE_TRANSITION_EVENT, 1562 WMI_TAG_VDEV_TXRX_STREAMS, 1563 WMI_TAG_SOC_SET_HW_MODE_RESPONSE_VDEV_MAC_ENTRY, 1564 WMI_TAG_SOC_SET_DUAL_MAC_CONFIG_CMD, 1565 WMI_TAG_SOC_SET_DUAL_MAC_CONFIG_RESPONSE_EVENT, 1566 WMI_TAG_WOW_IOAC_SOCK_PATTERN_T, 1567 WMI_TAG_WOW_ENABLE_ICMPV6_NA_FLT_CMD, 1568 WMI_TAG_DIAG_EVENT_LOG_CONFIG, 1569 WMI_TAG_DIAG_EVENT_LOG_SUPPORTED_EVENT_FIXED_PARAMS, 1570 WMI_TAG_PACKET_FILTER_CONFIG, 1571 WMI_TAG_PACKET_FILTER_ENABLE, 1572 WMI_TAG_SAP_SET_BLACKLIST_PARAM_CMD, 1573 WMI_TAG_MGMT_TX_SEND_CMD, 1574 WMI_TAG_MGMT_TX_COMPL_EVENT, 1575 WMI_TAG_SOC_SET_ANTENNA_MODE_CMD, 1576 WMI_TAG_WOW_UDP_SVC_OFLD_CMD, 1577 WMI_TAG_LRO_INFO_CMD, 1578 WMI_TAG_ROAM_EARLYSTOP_RSSI_THRES_PARAM, 1579 WMI_TAG_SERVICE_READY_EXT_EVENT, 1580 WMI_TAG_MAWC_SENSOR_REPORT_IND_CMD, 1581 WMI_TAG_MAWC_ENABLE_SENSOR_EVENT, 1582 WMI_TAG_ROAM_CONFIGURE_MAWC_CMD, 1583 WMI_TAG_NLO_CONFIGURE_MAWC_CMD, 1584 WMI_TAG_EXTSCAN_CONFIGURE_MAWC_CMD, 1585 WMI_TAG_PEER_ASSOC_CONF_EVENT, 1586 WMI_TAG_WOW_HOSTWAKEUP_GPIO_PIN_PATTERN_CONFIG_CMD, 1587 WMI_TAG_AP_PS_EGAP_PARAM_CMD, 1588 WMI_TAG_AP_PS_EGAP_INFO_EVENT, 1589 WMI_TAG_PMF_OFFLOAD_SET_SA_QUERY_CMD, 1590 WMI_TAG_TRANSFER_DATA_TO_FLASH_CMD, 1591 WMI_TAG_TRANSFER_DATA_TO_FLASH_COMPLETE_EVENT, 1592 WMI_TAG_SCPC_EVENT, 1593 WMI_TAG_AP_PS_EGAP_INFO_CHAINMASK_LIST, 1594 WMI_TAG_STA_SMPS_FORCE_MODE_COMPLETE_EVENT, 1595 WMI_TAG_BPF_GET_CAPABILITY_CMD, 1596 WMI_TAG_BPF_CAPABILITY_INFO_EVT, 1597 WMI_TAG_BPF_GET_VDEV_STATS_CMD, 1598 WMI_TAG_BPF_VDEV_STATS_INFO_EVT, 1599 WMI_TAG_BPF_SET_VDEV_INSTRUCTIONS_CMD, 1600 WMI_TAG_BPF_DEL_VDEV_INSTRUCTIONS_CMD, 1601 WMI_TAG_VDEV_DELETE_RESP_EVENT, 1602 WMI_TAG_PEER_DELETE_RESP_EVENT, 1603 WMI_TAG_ROAM_DENSE_THRES_PARAM, 1604 WMI_TAG_ENLO_CANDIDATE_SCORE_PARAM, 1605 WMI_TAG_PEER_UPDATE_WDS_ENTRY_CMD, 1606 WMI_TAG_VDEV_CONFIG_RATEMASK, 1607 WMI_TAG_PDEV_FIPS_CMD, 1608 WMI_TAG_PDEV_SMART_ANT_ENABLE_CMD, 1609 WMI_TAG_PDEV_SMART_ANT_SET_RX_ANTENNA_CMD, 1610 WMI_TAG_PEER_SMART_ANT_SET_TX_ANTENNA_CMD, 1611 WMI_TAG_PEER_SMART_ANT_SET_TRAIN_ANTENNA_CMD, 1612 WMI_TAG_PEER_SMART_ANT_SET_NODE_CONFIG_OPS_CMD, 1613 WMI_TAG_PDEV_SET_ANT_SWITCH_TBL_CMD, 1614 WMI_TAG_PDEV_SET_CTL_TABLE_CMD, 1615 WMI_TAG_PDEV_SET_MIMOGAIN_TABLE_CMD, 1616 WMI_TAG_FWTEST_SET_PARAM_CMD, 1617 WMI_TAG_PEER_ATF_REQUEST, 1618 WMI_TAG_VDEV_ATF_REQUEST, 1619 WMI_TAG_PDEV_GET_ANI_CCK_CONFIG_CMD, 1620 WMI_TAG_PDEV_GET_ANI_OFDM_CONFIG_CMD, 1621 WMI_TAG_INST_RSSI_STATS_RESP, 1622 WMI_TAG_MED_UTIL_REPORT_EVENT, 1623 WMI_TAG_PEER_STA_PS_STATECHANGE_EVENT, 1624 WMI_TAG_WDS_ADDR_EVENT, 1625 WMI_TAG_PEER_RATECODE_LIST_EVENT, 1626 WMI_TAG_PDEV_NFCAL_POWER_ALL_CHANNELS_EVENT, 1627 WMI_TAG_PDEV_TPC_EVENT, 1628 WMI_TAG_ANI_OFDM_EVENT, 1629 WMI_TAG_ANI_CCK_EVENT, 1630 WMI_TAG_PDEV_CHANNEL_HOPPING_EVENT, 1631 WMI_TAG_PDEV_FIPS_EVENT, 1632 WMI_TAG_ATF_PEER_INFO, 1633 WMI_TAG_PDEV_GET_TPC_CMD, 1634 WMI_TAG_VDEV_FILTER_NRP_CONFIG_CMD, 1635 WMI_TAG_QBOOST_CFG_CMD, 1636 WMI_TAG_PDEV_SMART_ANT_GPIO_HANDLE, 1637 WMI_TAG_PEER_SMART_ANT_SET_TX_ANTENNA_SERIES, 1638 WMI_TAG_PEER_SMART_ANT_SET_TRAIN_ANTENNA_PARAM, 1639 WMI_TAG_PDEV_SET_ANT_CTRL_CHAIN, 1640 WMI_TAG_PEER_CCK_OFDM_RATE_INFO, 1641 WMI_TAG_PEER_MCS_RATE_INFO, 1642 WMI_TAG_PDEV_NFCAL_POWER_ALL_CHANNELS_NFDBR, 1643 WMI_TAG_PDEV_NFCAL_POWER_ALL_CHANNELS_NFDBM, 1644 WMI_TAG_PDEV_NFCAL_POWER_ALL_CHANNELS_FREQNUM, 1645 WMI_TAG_MU_REPORT_TOTAL_MU, 1646 WMI_TAG_VDEV_SET_DSCP_TID_MAP_CMD, 1647 WMI_TAG_ROAM_SET_MBO, 1648 WMI_TAG_MIB_STATS_ENABLE_CMD, 1649 WMI_TAG_NAN_DISC_IFACE_CREATED_EVENT, 1650 WMI_TAG_NAN_DISC_IFACE_DELETED_EVENT, 1651 WMI_TAG_NAN_STARTED_CLUSTER_EVENT, 1652 WMI_TAG_NAN_JOINED_CLUSTER_EVENT, 1653 WMI_TAG_NDI_GET_CAP_REQ, 1654 WMI_TAG_NDP_INITIATOR_REQ, 1655 WMI_TAG_NDP_RESPONDER_REQ, 1656 WMI_TAG_NDP_END_REQ, 1657 WMI_TAG_NDI_CAP_RSP_EVENT, 1658 WMI_TAG_NDP_INITIATOR_RSP_EVENT, 1659 WMI_TAG_NDP_RESPONDER_RSP_EVENT, 1660 WMI_TAG_NDP_END_RSP_EVENT, 1661 WMI_TAG_NDP_INDICATION_EVENT, 1662 WMI_TAG_NDP_CONFIRM_EVENT, 1663 WMI_TAG_NDP_END_INDICATION_EVENT, 1664 WMI_TAG_VDEV_SET_QUIET_CMD, 1665 WMI_TAG_PDEV_SET_PCL_CMD, 1666 WMI_TAG_PDEV_SET_HW_MODE_CMD, 1667 WMI_TAG_PDEV_SET_MAC_CONFIG_CMD, 1668 WMI_TAG_PDEV_SET_ANTENNA_MODE_CMD, 1669 WMI_TAG_PDEV_SET_HW_MODE_RESPONSE_EVENT, 1670 WMI_TAG_PDEV_HW_MODE_TRANSITION_EVENT, 1671 WMI_TAG_PDEV_SET_HW_MODE_RESPONSE_VDEV_MAC_ENTRY, 1672 WMI_TAG_PDEV_SET_MAC_CONFIG_RESPONSE_EVENT, 1673 WMI_TAG_COEX_CONFIG_CMD, 1674 WMI_TAG_CONFIG_ENHANCED_MCAST_FILTER, 1675 WMI_TAG_CHAN_AVOID_RPT_ALLOW_CMD, 1676 WMI_TAG_SET_PERIODIC_CHANNEL_STATS_CONFIG, 1677 WMI_TAG_VDEV_SET_CUSTOM_AGGR_SIZE_CMD, 1678 WMI_TAG_PDEV_WAL_POWER_DEBUG_CMD, 1679 WMI_TAG_MAC_PHY_CAPABILITIES, 1680 WMI_TAG_HW_MODE_CAPABILITIES, 1681 WMI_TAG_SOC_MAC_PHY_HW_MODE_CAPS, 1682 WMI_TAG_HAL_REG_CAPABILITIES_EXT, 1683 WMI_TAG_SOC_HAL_REG_CAPABILITIES, 1684 WMI_TAG_VDEV_WISA_CMD, 1685 WMI_TAG_TX_POWER_LEVEL_STATS_EVT, 1686 WMI_TAG_SCAN_ADAPTIVE_DWELL_PARAMETERS_TLV, 1687 WMI_TAG_SCAN_ADAPTIVE_DWELL_CONFIG, 1688 WMI_TAG_WOW_SET_ACTION_WAKE_UP_CMD, 1689 WMI_TAG_NDP_END_RSP_PER_NDI, 1690 WMI_TAG_PEER_BWF_REQUEST, 1691 WMI_TAG_BWF_PEER_INFO, 1692 WMI_TAG_DBGLOG_TIME_STAMP_SYNC_CMD, 1693 WMI_TAG_RMC_SET_LEADER_CMD, 1694 WMI_TAG_RMC_MANUAL_LEADER_EVENT, 1695 WMI_TAG_PER_CHAIN_RSSI_STATS, 1696 WMI_TAG_RSSI_STATS, 1697 WMI_TAG_P2P_LO_START_CMD, 1698 WMI_TAG_P2P_LO_STOP_CMD, 1699 WMI_TAG_P2P_LO_STOPPED_EVENT, 1700 WMI_TAG_REORDER_QUEUE_SETUP_CMD, 1701 WMI_TAG_REORDER_QUEUE_REMOVE_CMD, 1702 WMI_TAG_SET_MULTIPLE_MCAST_FILTER_CMD, 1703 WMI_TAG_MGMT_TX_COMPL_BUNDLE_EVENT, 1704 WMI_TAG_READ_DATA_FROM_FLASH_CMD, 1705 WMI_TAG_READ_DATA_FROM_FLASH_EVENT, 1706 WMI_TAG_PDEV_SET_REORDER_TIMEOUT_VAL_CMD, 1707 WMI_TAG_PEER_SET_RX_BLOCKSIZE_CMD, 1708 WMI_TAG_PDEV_SET_WAKEUP_CONFIG_CMDID, 1709 WMI_TAG_TLV_BUF_LEN_PARAM, 1710 WMI_TAG_SERVICE_AVAILABLE_EVENT, 1711 WMI_TAG_PEER_ANTDIV_INFO_REQ_CMD, 1712 WMI_TAG_PEER_ANTDIV_INFO_EVENT, 1713 WMI_TAG_PEER_ANTDIV_INFO, 1714 WMI_TAG_PDEV_GET_ANTDIV_STATUS_CMD, 1715 WMI_TAG_PDEV_ANTDIV_STATUS_EVENT, 1716 WMI_TAG_MNT_FILTER_CMD, 1717 WMI_TAG_GET_CHIP_POWER_STATS_CMD, 1718 WMI_TAG_PDEV_CHIP_POWER_STATS_EVENT, 1719 WMI_TAG_COEX_GET_ANTENNA_ISOLATION_CMD, 1720 WMI_TAG_COEX_REPORT_ISOLATION_EVENT, 1721 WMI_TAG_CHAN_CCA_STATS, 1722 WMI_TAG_PEER_SIGNAL_STATS, 1723 WMI_TAG_TX_STATS, 1724 WMI_TAG_PEER_AC_TX_STATS, 1725 WMI_TAG_RX_STATS, 1726 WMI_TAG_PEER_AC_RX_STATS, 1727 WMI_TAG_REPORT_STATS_EVENT, 1728 WMI_TAG_CHAN_CCA_STATS_THRESH, 1729 WMI_TAG_PEER_SIGNAL_STATS_THRESH, 1730 WMI_TAG_TX_STATS_THRESH, 1731 WMI_TAG_RX_STATS_THRESH, 1732 WMI_TAG_PDEV_SET_STATS_THRESHOLD_CMD, 1733 WMI_TAG_REQUEST_WLAN_STATS_CMD, 1734 WMI_TAG_RX_AGGR_FAILURE_EVENT, 1735 WMI_TAG_RX_AGGR_FAILURE_INFO, 1736 WMI_TAG_VDEV_ENCRYPT_DECRYPT_DATA_REQ_CMD, 1737 WMI_TAG_VDEV_ENCRYPT_DECRYPT_DATA_RESP_EVENT, 1738 WMI_TAG_PDEV_BAND_TO_MAC, 1739 WMI_TAG_TBTT_OFFSET_INFO, 1740 WMI_TAG_TBTT_OFFSET_EXT_EVENT, 1741 WMI_TAG_SAR_LIMITS_CMD, 1742 WMI_TAG_SAR_LIMIT_CMD_ROW, 1743 WMI_TAG_PDEV_DFS_PHYERR_OFFLOAD_ENABLE_CMD, 1744 WMI_TAG_PDEV_DFS_PHYERR_OFFLOAD_DISABLE_CMD, 1745 WMI_TAG_VDEV_ADFS_CH_CFG_CMD, 1746 WMI_TAG_VDEV_ADFS_OCAC_ABORT_CMD, 1747 WMI_TAG_PDEV_DFS_RADAR_DETECTION_EVENT, 1748 WMI_TAG_VDEV_ADFS_OCAC_COMPLETE_EVENT, 1749 WMI_TAG_VDEV_DFS_CAC_COMPLETE_EVENT, 1750 WMI_TAG_VENDOR_OUI, 1751 WMI_TAG_REQUEST_RCPI_CMD, 1752 WMI_TAG_UPDATE_RCPI_EVENT, 1753 WMI_TAG_REQUEST_PEER_STATS_INFO_CMD, 1754 WMI_TAG_PEER_STATS_INFO, 1755 WMI_TAG_PEER_STATS_INFO_EVENT, 1756 WMI_TAG_PKGID_EVENT, 1757 WMI_TAG_CONNECTED_NLO_RSSI_PARAMS, 1758 WMI_TAG_SET_CURRENT_COUNTRY_CMD, 1759 WMI_TAG_REGULATORY_RULE_STRUCT, 1760 WMI_TAG_REG_CHAN_LIST_CC_EVENT, 1761 WMI_TAG_11D_SCAN_START_CMD, 1762 WMI_TAG_11D_SCAN_STOP_CMD, 1763 WMI_TAG_11D_NEW_COUNTRY_EVENT, 1764 WMI_TAG_REQUEST_RADIO_CHAN_STATS_CMD, 1765 WMI_TAG_RADIO_CHAN_STATS, 1766 WMI_TAG_RADIO_CHAN_STATS_EVENT, 1767 WMI_TAG_ROAM_PER_CONFIG, 1768 WMI_TAG_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_CMD, 1769 WMI_TAG_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_STATUS_EVENT, 1770 WMI_TAG_BPF_SET_VDEV_ACTIVE_MODE_CMD, 1771 WMI_TAG_HW_DATA_FILTER_CMD, 1772 WMI_TAG_CONNECTED_NLO_BSS_BAND_RSSI_PREF, 1773 WMI_TAG_PEER_OPER_MODE_CHANGE_EVENT, 1774 WMI_TAG_CHIP_POWER_SAVE_FAILURE_DETECTED, 1775 WMI_TAG_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMD, 1776 WMI_TAG_PDEV_CSA_SWITCH_COUNT_STATUS_EVENT, 1777 WMI_TAG_PDEV_UPDATE_PKT_ROUTING_CMD, 1778 WMI_TAG_PDEV_CHECK_CAL_VERSION_CMD, 1779 WMI_TAG_PDEV_CHECK_CAL_VERSION_EVENT, 1780 WMI_TAG_PDEV_SET_DIVERSITY_GAIN_CMD, 1781 WMI_TAG_MAC_PHY_CHAINMASK_COMBO, 1782 WMI_TAG_MAC_PHY_CHAINMASK_CAPABILITY, 1783 WMI_TAG_VDEV_SET_ARP_STATS_CMD, 1784 WMI_TAG_VDEV_GET_ARP_STATS_CMD, 1785 WMI_TAG_VDEV_GET_ARP_STATS_EVENT, 1786 WMI_TAG_IFACE_OFFLOAD_STATS, 1787 WMI_TAG_REQUEST_STATS_CMD_SUB_STRUCT_PARAM, 1788 WMI_TAG_RSSI_CTL_EXT, 1789 WMI_TAG_SINGLE_PHYERR_EXT_RX_HDR, 1790 WMI_TAG_COEX_BT_ACTIVITY_EVENT, 1791 WMI_TAG_VDEV_GET_TX_POWER_CMD, 1792 WMI_TAG_VDEV_TX_POWER_EVENT, 1793 WMI_TAG_OFFCHAN_DATA_TX_COMPL_EVENT, 1794 WMI_TAG_OFFCHAN_DATA_TX_SEND_CMD, 1795 WMI_TAG_TX_SEND_PARAMS, 1796 WMI_TAG_HE_RATE_SET, 1797 WMI_TAG_CONGESTION_STATS, 1798 WMI_TAG_SET_INIT_COUNTRY_CMD, 1799 WMI_TAG_SCAN_DBS_DUTY_CYCLE, 1800 WMI_TAG_SCAN_DBS_DUTY_CYCLE_PARAM_TLV, 1801 WMI_TAG_PDEV_DIV_GET_RSSI_ANTID, 1802 WMI_TAG_THERM_THROT_CONFIG_REQUEST, 1803 WMI_TAG_THERM_THROT_LEVEL_CONFIG_INFO, 1804 WMI_TAG_THERM_THROT_STATS_EVENT, 1805 WMI_TAG_THERM_THROT_LEVEL_STATS_INFO, 1806 WMI_TAG_PDEV_DIV_RSSI_ANTID_EVENT, 1807 WMI_TAG_OEM_DMA_RING_CAPABILITIES, 1808 WMI_TAG_OEM_DMA_RING_CFG_REQ, 1809 WMI_TAG_OEM_DMA_RING_CFG_RSP, 1810 WMI_TAG_OEM_INDIRECT_DATA, 1811 WMI_TAG_OEM_DMA_BUF_RELEASE, 1812 WMI_TAG_OEM_DMA_BUF_RELEASE_ENTRY, 1813 WMI_TAG_PDEV_BSS_CHAN_INFO_REQUEST, 1814 WMI_TAG_PDEV_BSS_CHAN_INFO_EVENT, 1815 WMI_TAG_ROAM_LCA_DISALLOW_CONFIG, 1816 WMI_TAG_VDEV_LIMIT_OFFCHAN_CMD, 1817 WMI_TAG_ROAM_RSSI_REJECTION_OCE_CONFIG, 1818 WMI_TAG_UNIT_TEST_EVENT, 1819 WMI_TAG_ROAM_FILS_OFFLOAD, 1820 WMI_TAG_PDEV_UPDATE_PMK_CACHE_CMD, 1821 WMI_TAG_PMK_CACHE, 1822 WMI_TAG_PDEV_UPDATE_FILS_HLP_PKT_CMD, 1823 WMI_TAG_ROAM_FILS_SYNCH, 1824 WMI_TAG_GTK_OFFLOAD_EXTENDED, 1825 WMI_TAG_ROAM_BG_SCAN_ROAMING, 1826 WMI_TAG_OIC_PING_OFFLOAD_PARAMS_CMD, 1827 WMI_TAG_OIC_PING_OFFLOAD_SET_ENABLE_CMD, 1828 WMI_TAG_OIC_PING_HANDOFF_EVENT, 1829 WMI_TAG_DHCP_LEASE_RENEW_OFFLOAD_CMD, 1830 WMI_TAG_DHCP_LEASE_RENEW_EVENT, 1831 WMI_TAG_BTM_CONFIG, 1832 WMI_TAG_DEBUG_MESG_FW_DATA_STALL, 1833 WMI_TAG_WLM_CONFIG_CMD, 1834 WMI_TAG_PDEV_UPDATE_CTLTABLE_REQUEST, 1835 WMI_TAG_PDEV_UPDATE_CTLTABLE_EVENT, 1836 WMI_TAG_ROAM_CND_SCORING_PARAM, 1837 WMI_TAG_PDEV_CONFIG_VENDOR_OUI_ACTION, 1838 WMI_TAG_VENDOR_OUI_EXT, 1839 WMI_TAG_ROAM_SYNCH_FRAME_EVENT, 1840 WMI_TAG_FD_SEND_FROM_HOST_CMD, 1841 WMI_TAG_ENABLE_FILS_CMD, 1842 WMI_TAG_HOST_SWFDA_EVENT, 1843 WMI_TAG_BCN_OFFLOAD_CTRL_CMD, 1844 WMI_TAG_PDEV_SET_AC_TX_QUEUE_OPTIMIZED_CMD, 1845 WMI_TAG_STATS_PERIOD, 1846 WMI_TAG_NDL_SCHEDULE_UPDATE, 1847 WMI_TAG_PEER_TID_MSDUQ_QDEPTH_THRESH_UPDATE_CMD, 1848 WMI_TAG_MSDUQ_QDEPTH_THRESH_UPDATE, 1849 WMI_TAG_PDEV_SET_RX_FILTER_PROMISCUOUS_CMD, 1850 WMI_TAG_SAR2_RESULT_EVENT, 1851 WMI_TAG_SAR_CAPABILITIES, 1852 WMI_TAG_SAP_OBSS_DETECTION_CFG_CMD, 1853 WMI_TAG_SAP_OBSS_DETECTION_INFO_EVT, 1854 WMI_TAG_DMA_RING_CAPABILITIES, 1855 WMI_TAG_DMA_RING_CFG_REQ, 1856 WMI_TAG_DMA_RING_CFG_RSP, 1857 WMI_TAG_DMA_BUF_RELEASE, 1858 WMI_TAG_DMA_BUF_RELEASE_ENTRY, 1859 WMI_TAG_SAR_GET_LIMITS_CMD, 1860 WMI_TAG_SAR_GET_LIMITS_EVENT, 1861 WMI_TAG_SAR_GET_LIMITS_EVENT_ROW, 1862 WMI_TAG_OFFLOAD_11K_REPORT, 1863 WMI_TAG_INVOKE_NEIGHBOR_REPORT, 1864 WMI_TAG_NEIGHBOR_REPORT_OFFLOAD, 1865 WMI_TAG_VDEV_SET_CONNECTIVITY_CHECK_STATS, 1866 WMI_TAG_VDEV_GET_CONNECTIVITY_CHECK_STATS, 1867 WMI_TAG_BPF_SET_VDEV_ENABLE_CMD, 1868 WMI_TAG_BPF_SET_VDEV_WORK_MEMORY_CMD, 1869 WMI_TAG_BPF_GET_VDEV_WORK_MEMORY_CMD, 1870 WMI_TAG_BPF_GET_VDEV_WORK_MEMORY_RESP_EVT, 1871 WMI_TAG_PDEV_GET_NFCAL_POWER, 1872 WMI_TAG_BSS_COLOR_CHANGE_ENABLE, 1873 WMI_TAG_OBSS_COLOR_COLLISION_DET_CONFIG, 1874 WMI_TAG_OBSS_COLOR_COLLISION_EVT, 1875 WMI_TAG_RUNTIME_DPD_RECAL_CMD, 1876 WMI_TAG_TWT_ENABLE_CMD, 1877 WMI_TAG_TWT_DISABLE_CMD, 1878 WMI_TAG_TWT_ADD_DIALOG_CMD, 1879 WMI_TAG_TWT_DEL_DIALOG_CMD, 1880 WMI_TAG_TWT_PAUSE_DIALOG_CMD, 1881 WMI_TAG_TWT_RESUME_DIALOG_CMD, 1882 WMI_TAG_TWT_ENABLE_COMPLETE_EVENT, 1883 WMI_TAG_TWT_DISABLE_COMPLETE_EVENT, 1884 WMI_TAG_TWT_ADD_DIALOG_COMPLETE_EVENT, 1885 WMI_TAG_TWT_DEL_DIALOG_COMPLETE_EVENT, 1886 WMI_TAG_TWT_PAUSE_DIALOG_COMPLETE_EVENT, 1887 WMI_TAG_TWT_RESUME_DIALOG_COMPLETE_EVENT, 1888 WMI_TAG_REQUEST_ROAM_SCAN_STATS_CMD, 1889 WMI_TAG_ROAM_SCAN_STATS_EVENT, 1890 WMI_TAG_PEER_TID_CONFIGURATIONS_CMD, 1891 WMI_TAG_VDEV_SET_CUSTOM_SW_RETRY_TH_CMD, 1892 WMI_TAG_GET_TPC_POWER_CMD, 1893 WMI_TAG_GET_TPC_POWER_EVENT, 1894 WMI_TAG_DMA_BUF_RELEASE_SPECTRAL_META_DATA, 1895 WMI_TAG_MOTION_DET_CONFIG_PARAMS_CMD, 1896 WMI_TAG_MOTION_DET_BASE_LINE_CONFIG_PARAMS_CMD, 1897 WMI_TAG_MOTION_DET_START_STOP_CMD, 1898 WMI_TAG_MOTION_DET_BASE_LINE_START_STOP_CMD, 1899 WMI_TAG_MOTION_DET_EVENT, 1900 WMI_TAG_MOTION_DET_BASE_LINE_EVENT, 1901 WMI_TAG_NDP_TRANSPORT_IP, 1902 WMI_TAG_OBSS_SPATIAL_REUSE_SET_CMD, 1903 WMI_TAG_ESP_ESTIMATE_EVENT, 1904 WMI_TAG_NAN_HOST_CONFIG, 1905 WMI_TAG_SPECTRAL_BIN_SCALING_PARAMS, 1906 WMI_TAG_PEER_CFR_CAPTURE_CMD, 1907 WMI_TAG_PEER_CHAN_WIDTH_SWITCH_CMD, 1908 WMI_TAG_CHAN_WIDTH_PEER_LIST, 1909 WMI_TAG_OBSS_SPATIAL_REUSE_SET_DEF_OBSS_THRESH_CMD, 1910 WMI_TAG_PDEV_HE_TB_ACTION_FRM_CMD, 1911 WMI_TAG_PEER_EXTD2_STATS, 1912 WMI_TAG_HPCS_PULSE_START_CMD, 1913 WMI_TAG_PDEV_CTL_FAILSAFE_CHECK_EVENT, 1914 WMI_TAG_VDEV_CHAINMASK_CONFIG_CMD, 1915 WMI_TAG_VDEV_BCN_OFFLOAD_QUIET_CONFIG_CMD, 1916 WMI_TAG_NAN_EVENT_INFO, 1917 WMI_TAG_NDP_CHANNEL_INFO, 1918 WMI_TAG_NDP_CMD, 1919 WMI_TAG_NDP_EVENT, 1920 /* TODO add all the missing cmds */ 1921 WMI_TAG_PDEV_PEER_PKTLOG_FILTER_CMD = 0x301, 1922 WMI_TAG_PDEV_PEER_PKTLOG_FILTER_INFO, 1923 WMI_TAG_FILS_DISCOVERY_TMPL_CMD = 0x344, 1924 WMI_TAG_MAC_PHY_CAPABILITIES_EXT = 0x36F, 1925 WMI_TAG_REGULATORY_RULE_EXT_STRUCT = 0x3A9, 1926 WMI_TAG_REG_CHAN_LIST_CC_EXT_EVENT, 1927 WMI_TAG_MAX 1928 }; 1929 1930 enum wmi_tlv_service { 1931 WMI_TLV_SERVICE_BEACON_OFFLOAD = 0, 1932 WMI_TLV_SERVICE_SCAN_OFFLOAD = 1, 1933 WMI_TLV_SERVICE_ROAM_SCAN_OFFLOAD = 2, 1934 WMI_TLV_SERVICE_BCN_MISS_OFFLOAD = 3, 1935 WMI_TLV_SERVICE_STA_PWRSAVE = 4, 1936 WMI_TLV_SERVICE_STA_ADVANCED_PWRSAVE = 5, 1937 WMI_TLV_SERVICE_AP_UAPSD = 6, 1938 WMI_TLV_SERVICE_AP_DFS = 7, 1939 WMI_TLV_SERVICE_11AC = 8, 1940 WMI_TLV_SERVICE_BLOCKACK = 9, 1941 WMI_TLV_SERVICE_PHYERR = 10, 1942 WMI_TLV_SERVICE_BCN_FILTER = 11, 1943 WMI_TLV_SERVICE_RTT = 12, 1944 WMI_TLV_SERVICE_WOW = 13, 1945 WMI_TLV_SERVICE_RATECTRL_CACHE = 14, 1946 WMI_TLV_SERVICE_IRAM_TIDS = 15, 1947 WMI_TLV_SERVICE_ARPNS_OFFLOAD = 16, 1948 WMI_TLV_SERVICE_NLO = 17, 1949 WMI_TLV_SERVICE_GTK_OFFLOAD = 18, 1950 WMI_TLV_SERVICE_SCAN_SCH = 19, 1951 WMI_TLV_SERVICE_CSA_OFFLOAD = 20, 1952 WMI_TLV_SERVICE_CHATTER = 21, 1953 WMI_TLV_SERVICE_COEX_FREQAVOID = 22, 1954 WMI_TLV_SERVICE_PACKET_POWER_SAVE = 23, 1955 WMI_TLV_SERVICE_FORCE_FW_HANG = 24, 1956 WMI_TLV_SERVICE_GPIO = 25, 1957 WMI_TLV_SERVICE_STA_DTIM_PS_MODULATED_DTIM = 26, 1958 WMI_STA_UAPSD_BASIC_AUTO_TRIG = 27, 1959 WMI_STA_UAPSD_VAR_AUTO_TRIG = 28, 1960 WMI_TLV_SERVICE_STA_KEEP_ALIVE = 29, 1961 WMI_TLV_SERVICE_TX_ENCAP = 30, 1962 WMI_TLV_SERVICE_AP_PS_DETECT_OUT_OF_SYNC = 31, 1963 WMI_TLV_SERVICE_EARLY_RX = 32, 1964 WMI_TLV_SERVICE_STA_SMPS = 33, 1965 WMI_TLV_SERVICE_FWTEST = 34, 1966 WMI_TLV_SERVICE_STA_WMMAC = 35, 1967 WMI_TLV_SERVICE_TDLS = 36, 1968 WMI_TLV_SERVICE_BURST = 37, 1969 WMI_TLV_SERVICE_MCC_BCN_INTERVAL_CHANGE = 38, 1970 WMI_TLV_SERVICE_ADAPTIVE_OCS = 39, 1971 WMI_TLV_SERVICE_BA_SSN_SUPPORT = 40, 1972 WMI_TLV_SERVICE_FILTER_IPSEC_NATKEEPALIVE = 41, 1973 WMI_TLV_SERVICE_WLAN_HB = 42, 1974 WMI_TLV_SERVICE_LTE_ANT_SHARE_SUPPORT = 43, 1975 WMI_TLV_SERVICE_BATCH_SCAN = 44, 1976 WMI_TLV_SERVICE_QPOWER = 45, 1977 WMI_TLV_SERVICE_PLMREQ = 46, 1978 WMI_TLV_SERVICE_THERMAL_MGMT = 47, 1979 WMI_TLV_SERVICE_RMC = 48, 1980 WMI_TLV_SERVICE_MHF_OFFLOAD = 49, 1981 WMI_TLV_SERVICE_COEX_SAR = 50, 1982 WMI_TLV_SERVICE_BCN_TXRATE_OVERRIDE = 51, 1983 WMI_TLV_SERVICE_NAN = 52, 1984 WMI_TLV_SERVICE_L1SS_STAT = 53, 1985 WMI_TLV_SERVICE_ESTIMATE_LINKSPEED = 54, 1986 WMI_TLV_SERVICE_OBSS_SCAN = 55, 1987 WMI_TLV_SERVICE_TDLS_OFFCHAN = 56, 1988 WMI_TLV_SERVICE_TDLS_UAPSD_BUFFER_STA = 57, 1989 WMI_TLV_SERVICE_TDLS_UAPSD_SLEEP_STA = 58, 1990 WMI_TLV_SERVICE_IBSS_PWRSAVE = 59, 1991 WMI_TLV_SERVICE_LPASS = 60, 1992 WMI_TLV_SERVICE_EXTSCAN = 61, 1993 WMI_TLV_SERVICE_D0WOW = 62, 1994 WMI_TLV_SERVICE_HSOFFLOAD = 63, 1995 WMI_TLV_SERVICE_ROAM_HO_OFFLOAD = 64, 1996 WMI_TLV_SERVICE_RX_FULL_REORDER = 65, 1997 WMI_TLV_SERVICE_DHCP_OFFLOAD = 66, 1998 WMI_TLV_SERVICE_STA_RX_IPA_OFFLOAD_SUPPORT = 67, 1999 WMI_TLV_SERVICE_MDNS_OFFLOAD = 68, 2000 WMI_TLV_SERVICE_SAP_AUTH_OFFLOAD = 69, 2001 WMI_TLV_SERVICE_DUAL_BAND_SIMULTANEOUS_SUPPORT = 70, 2002 WMI_TLV_SERVICE_OCB = 71, 2003 WMI_TLV_SERVICE_AP_ARPNS_OFFLOAD = 72, 2004 WMI_TLV_SERVICE_PER_BAND_CHAINMASK_SUPPORT = 73, 2005 WMI_TLV_SERVICE_PACKET_FILTER_OFFLOAD = 74, 2006 WMI_TLV_SERVICE_MGMT_TX_HTT = 75, 2007 WMI_TLV_SERVICE_MGMT_TX_WMI = 76, 2008 WMI_TLV_SERVICE_EXT_MSG = 77, 2009 WMI_TLV_SERVICE_MAWC = 78, 2010 WMI_TLV_SERVICE_PEER_ASSOC_CONF = 79, 2011 WMI_TLV_SERVICE_EGAP = 80, 2012 WMI_TLV_SERVICE_STA_PMF_OFFLOAD = 81, 2013 WMI_TLV_SERVICE_UNIFIED_WOW_CAPABILITY = 82, 2014 WMI_TLV_SERVICE_ENHANCED_PROXY_STA = 83, 2015 WMI_TLV_SERVICE_ATF = 84, 2016 WMI_TLV_SERVICE_COEX_GPIO = 85, 2017 WMI_TLV_SERVICE_AUX_SPECTRAL_INTF = 86, 2018 WMI_TLV_SERVICE_AUX_CHAN_LOAD_INTF = 87, 2019 WMI_TLV_SERVICE_BSS_CHANNEL_INFO_64 = 88, 2020 WMI_TLV_SERVICE_ENTERPRISE_MESH = 89, 2021 WMI_TLV_SERVICE_RESTRT_CHNL_SUPPORT = 90, 2022 WMI_TLV_SERVICE_BPF_OFFLOAD = 91, 2023 WMI_TLV_SERVICE_SYNC_DELETE_CMDS = 92, 2024 WMI_TLV_SERVICE_SMART_ANTENNA_SW_SUPPORT = 93, 2025 WMI_TLV_SERVICE_SMART_ANTENNA_HW_SUPPORT = 94, 2026 WMI_TLV_SERVICE_RATECTRL_LIMIT_MAX_MIN_RATES = 95, 2027 WMI_TLV_SERVICE_NAN_DATA = 96, 2028 WMI_TLV_SERVICE_NAN_RTT = 97, 2029 WMI_TLV_SERVICE_11AX = 98, 2030 WMI_TLV_SERVICE_DEPRECATED_REPLACE = 99, 2031 WMI_TLV_SERVICE_TDLS_CONN_TRACKER_IN_HOST_MODE = 100, 2032 WMI_TLV_SERVICE_ENHANCED_MCAST_FILTER = 101, 2033 WMI_TLV_SERVICE_PERIODIC_CHAN_STAT_SUPPORT = 102, 2034 WMI_TLV_SERVICE_MESH_11S = 103, 2035 WMI_TLV_SERVICE_HALF_RATE_QUARTER_RATE_SUPPORT = 104, 2036 WMI_TLV_SERVICE_VDEV_RX_FILTER = 105, 2037 WMI_TLV_SERVICE_P2P_LISTEN_OFFLOAD_SUPPORT = 106, 2038 WMI_TLV_SERVICE_MARK_FIRST_WAKEUP_PACKET = 107, 2039 WMI_TLV_SERVICE_MULTIPLE_MCAST_FILTER_SET = 108, 2040 WMI_TLV_SERVICE_HOST_MANAGED_RX_REORDER = 109, 2041 WMI_TLV_SERVICE_FLASH_RDWR_SUPPORT = 110, 2042 WMI_TLV_SERVICE_WLAN_STATS_REPORT = 111, 2043 WMI_TLV_SERVICE_TX_MSDU_ID_NEW_PARTITION_SUPPORT = 112, 2044 WMI_TLV_SERVICE_DFS_PHYERR_OFFLOAD = 113, 2045 WMI_TLV_SERVICE_RCPI_SUPPORT = 114, 2046 WMI_TLV_SERVICE_FW_MEM_DUMP_SUPPORT = 115, 2047 WMI_TLV_SERVICE_PEER_STATS_INFO = 116, 2048 WMI_TLV_SERVICE_REGULATORY_DB = 117, 2049 WMI_TLV_SERVICE_11D_OFFLOAD = 118, 2050 WMI_TLV_SERVICE_HW_DATA_FILTERING = 119, 2051 WMI_TLV_SERVICE_MULTIPLE_VDEV_RESTART = 120, 2052 WMI_TLV_SERVICE_PKT_ROUTING = 121, 2053 WMI_TLV_SERVICE_CHECK_CAL_VERSION = 122, 2054 WMI_TLV_SERVICE_OFFCHAN_TX_WMI = 123, 2055 WMI_TLV_SERVICE_8SS_TX_BFEE = 124, 2056 WMI_TLV_SERVICE_EXTENDED_NSS_SUPPORT = 125, 2057 WMI_TLV_SERVICE_ACK_TIMEOUT = 126, 2058 WMI_TLV_SERVICE_PDEV_BSS_CHANNEL_INFO_64 = 127, 2059 2060 WMI_MAX_SERVICE = 128, 2061 2062 WMI_TLV_SERVICE_CHAN_LOAD_INFO = 128, 2063 WMI_TLV_SERVICE_TX_PPDU_INFO_STATS_SUPPORT = 129, 2064 WMI_TLV_SERVICE_VDEV_LIMIT_OFFCHAN_SUPPORT = 130, 2065 WMI_TLV_SERVICE_FILS_SUPPORT = 131, 2066 WMI_TLV_SERVICE_WLAN_OIC_PING_OFFLOAD = 132, 2067 WMI_TLV_SERVICE_WLAN_DHCP_RENEW = 133, 2068 WMI_TLV_SERVICE_MAWC_SUPPORT = 134, 2069 WMI_TLV_SERVICE_VDEV_LATENCY_CONFIG = 135, 2070 WMI_TLV_SERVICE_PDEV_UPDATE_CTLTABLE_SUPPORT = 136, 2071 WMI_TLV_SERVICE_PKTLOG_SUPPORT_OVER_HTT = 137, 2072 WMI_TLV_SERVICE_VDEV_MULTI_GROUP_KEY_SUPPORT = 138, 2073 WMI_TLV_SERVICE_SCAN_PHYMODE_SUPPORT = 139, 2074 WMI_TLV_SERVICE_THERM_THROT = 140, 2075 WMI_TLV_SERVICE_BCN_OFFLOAD_START_STOP_SUPPORT = 141, 2076 WMI_TLV_SERVICE_WOW_WAKEUP_BY_TIMER_PATTERN = 142, 2077 WMI_TLV_SERVICE_PEER_MAP_UNMAP_V2_SUPPORT = 143, 2078 WMI_TLV_SERVICE_OFFCHAN_DATA_TID_SUPPORT = 144, 2079 WMI_TLV_SERVICE_RX_PROMISC_ENABLE_SUPPORT = 145, 2080 WMI_TLV_SERVICE_SUPPORT_DIRECT_DMA = 146, 2081 WMI_TLV_SERVICE_AP_OBSS_DETECTION_OFFLOAD = 147, 2082 WMI_TLV_SERVICE_11K_NEIGHBOUR_REPORT_SUPPORT = 148, 2083 WMI_TLV_SERVICE_LISTEN_INTERVAL_OFFLOAD_SUPPORT = 149, 2084 WMI_TLV_SERVICE_BSS_COLOR_OFFLOAD = 150, 2085 WMI_TLV_SERVICE_RUNTIME_DPD_RECAL = 151, 2086 WMI_TLV_SERVICE_STA_TWT = 152, 2087 WMI_TLV_SERVICE_AP_TWT = 153, 2088 WMI_TLV_SERVICE_GMAC_OFFLOAD_SUPPORT = 154, 2089 WMI_TLV_SERVICE_SPOOF_MAC_SUPPORT = 155, 2090 WMI_TLV_SERVICE_PEER_TID_CONFIGS_SUPPORT = 156, 2091 WMI_TLV_SERVICE_VDEV_SWRETRY_PER_AC_CONFIG_SUPPORT = 157, 2092 WMI_TLV_SERVICE_DUAL_BEACON_ON_SINGLE_MAC_SCC_SUPPORT = 158, 2093 WMI_TLV_SERVICE_DUAL_BEACON_ON_SINGLE_MAC_MCC_SUPPORT = 159, 2094 WMI_TLV_SERVICE_MOTION_DET = 160, 2095 WMI_TLV_SERVICE_INFRA_MBSSID = 161, 2096 WMI_TLV_SERVICE_OBSS_SPATIAL_REUSE = 162, 2097 WMI_TLV_SERVICE_VDEV_DIFFERENT_BEACON_INTERVAL_SUPPORT = 163, 2098 WMI_TLV_SERVICE_NAN_DBS_SUPPORT = 164, 2099 WMI_TLV_SERVICE_NDI_DBS_SUPPORT = 165, 2100 WMI_TLV_SERVICE_NAN_SAP_SUPPORT = 166, 2101 WMI_TLV_SERVICE_NDI_SAP_SUPPORT = 167, 2102 WMI_TLV_SERVICE_CFR_CAPTURE_SUPPORT = 168, 2103 WMI_TLV_SERVICE_CFR_CAPTURE_IND_MSG_TYPE_1 = 169, 2104 WMI_TLV_SERVICE_ESP_SUPPORT = 170, 2105 WMI_TLV_SERVICE_PEER_CHWIDTH_CHANGE = 171, 2106 WMI_TLV_SERVICE_WLAN_HPCS_PULSE = 172, 2107 WMI_TLV_SERVICE_PER_VDEV_CHAINMASK_CONFIG_SUPPORT = 173, 2108 WMI_TLV_SERVICE_TX_DATA_MGMT_ACK_RSSI = 174, 2109 WMI_TLV_SERVICE_NAN_DISABLE_SUPPORT = 175, 2110 WMI_TLV_SERVICE_HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN = 176, 2111 WMI_TLV_SERVICE_COEX_SUPPORT_UNEQUAL_ISOLATION = 177, 2112 WMI_TLV_SERVICE_HW_DB2DBM_CONVERSION_SUPPORT = 178, 2113 WMI_TLV_SERVICE_SUPPORT_EXTEND_ADDRESS = 179, 2114 WMI_TLV_SERVICE_BEACON_RECEPTION_STATS = 180, 2115 WMI_TLV_SERVICE_FETCH_TX_PN = 181, 2116 WMI_TLV_SERVICE_PEER_UNMAP_RESPONSE_SUPPORT = 182, 2117 WMI_TLV_SERVICE_TX_PER_PEER_AMPDU_SIZE = 183, 2118 WMI_TLV_SERVICE_BSS_COLOR_SWITCH_COUNT = 184, 2119 WMI_TLV_SERVICE_HTT_PEER_STATS_SUPPORT = 185, 2120 WMI_TLV_SERVICE_UL_RU26_ALLOWED = 186, 2121 WMI_TLV_SERVICE_GET_MWS_COEX_STATE = 187, 2122 WMI_TLV_SERVICE_GET_MWS_DPWB_STATE = 188, 2123 WMI_TLV_SERVICE_GET_MWS_TDM_STATE = 189, 2124 WMI_TLV_SERVICE_GET_MWS_IDRX_STATE = 190, 2125 WMI_TLV_SERVICE_GET_MWS_ANTENNA_SHARING_STATE = 191, 2126 WMI_TLV_SERVICE_ENHANCED_TPC_CONFIG_EVENT = 192, 2127 WMI_TLV_SERVICE_WLM_STATS_REQUEST = 193, 2128 WMI_TLV_SERVICE_EXT_PEER_TID_CONFIGS_SUPPORT = 194, 2129 WMI_TLV_SERVICE_WPA3_FT_SAE_SUPPORT = 195, 2130 WMI_TLV_SERVICE_WPA3_FT_SUITE_B_SUPPORT = 196, 2131 WMI_TLV_SERVICE_VOW_ENABLE = 197, 2132 WMI_TLV_SERVICE_CFR_CAPTURE_IND_EVT_TYPE_1 = 198, 2133 WMI_TLV_SERVICE_BROADCAST_TWT = 199, 2134 WMI_TLV_SERVICE_RAP_DETECTION_SUPPORT = 200, 2135 WMI_TLV_SERVICE_PS_TDCC = 201, 2136 WMI_TLV_SERVICE_THREE_WAY_COEX_CONFIG_LEGACY = 202, 2137 WMI_TLV_SERVICE_THREE_WAY_COEX_CONFIG_OVERRIDE = 203, 2138 WMI_TLV_SERVICE_TX_PWR_PER_PEER = 204, 2139 WMI_TLV_SERVICE_STA_PLUS_STA_SUPPORT = 205, 2140 WMI_TLV_SERVICE_WPA3_FT_FILS = 206, 2141 WMI_TLV_SERVICE_ADAPTIVE_11R_ROAM = 207, 2142 WMI_TLV_SERVICE_CHAN_RF_CHARACTERIZATION_INFO = 208, 2143 WMI_TLV_SERVICE_FW_IFACE_COMBINATION_SUPPORT = 209, 2144 WMI_TLV_SERVICE_TX_COMPL_TSF64 = 210, 2145 WMI_TLV_SERVICE_DSM_ROAM_FILTER = 211, 2146 WMI_TLV_SERVICE_PACKET_CAPTURE_SUPPORT = 212, 2147 WMI_TLV_SERVICE_PER_PEER_HTT_STATS_RESET = 213, 2148 WMI_TLV_SERVICE_FREQINFO_IN_METADATA = 219, 2149 WMI_TLV_SERVICE_EXT2_MSG = 220, 2150 2151 WMI_MAX_EXT_SERVICE 2152 }; 2153 2154 enum { 2155 WMI_SMPS_FORCED_MODE_NONE = 0, 2156 WMI_SMPS_FORCED_MODE_DISABLED, 2157 WMI_SMPS_FORCED_MODE_STATIC, 2158 WMI_SMPS_FORCED_MODE_DYNAMIC 2159 }; 2160 2161 enum wmi_tpc_chainmask { 2162 WMI_TPC_CHAINMASK_CONFIG_BAND_2G = 0, 2163 WMI_TPC_CHAINMASK_CONFIG_BAND_5G = 1, 2164 WMI_NUM_SUPPORTED_BAND_MAX = 2, 2165 }; 2166 2167 enum wmi_peer_param { 2168 WMI_PEER_MIMO_PS_STATE = 1, 2169 WMI_PEER_AMPDU = 2, 2170 WMI_PEER_AUTHORIZE = 3, 2171 WMI_PEER_CHWIDTH = 4, 2172 WMI_PEER_NSS = 5, 2173 WMI_PEER_USE_4ADDR = 6, 2174 WMI_PEER_MEMBERSHIP = 7, 2175 WMI_PEER_USERPOS = 8, 2176 WMI_PEER_CRIT_PROTO_HINT_ENABLED = 9, 2177 WMI_PEER_TX_FAIL_CNT_THR = 10, 2178 WMI_PEER_SET_HW_RETRY_CTS2S = 11, 2179 WMI_PEER_IBSS_ATIM_WINDOW_LENGTH = 12, 2180 WMI_PEER_PHYMODE = 13, 2181 WMI_PEER_USE_FIXED_PWR = 14, 2182 WMI_PEER_PARAM_FIXED_RATE = 15, 2183 WMI_PEER_SET_MU_WHITELIST = 16, 2184 WMI_PEER_SET_MAX_TX_RATE = 17, 2185 WMI_PEER_SET_MIN_TX_RATE = 18, 2186 WMI_PEER_SET_DEFAULT_ROUTING = 19, 2187 }; 2188 2189 enum wmi_slot_time { 2190 WMI_VDEV_SLOT_TIME_LONG = 1, 2191 WMI_VDEV_SLOT_TIME_SHORT = 2, 2192 }; 2193 2194 enum wmi_preamble { 2195 WMI_VDEV_PREAMBLE_LONG = 1, 2196 WMI_VDEV_PREAMBLE_SHORT = 2, 2197 }; 2198 2199 enum wmi_peer_smps_state { 2200 WMI_PEER_SMPS_PS_NONE = 0, 2201 WMI_PEER_SMPS_STATIC = 1, 2202 WMI_PEER_SMPS_DYNAMIC = 2 2203 }; 2204 2205 enum wmi_peer_chwidth { 2206 WMI_PEER_CHWIDTH_20MHZ = 0, 2207 WMI_PEER_CHWIDTH_40MHZ = 1, 2208 WMI_PEER_CHWIDTH_80MHZ = 2, 2209 WMI_PEER_CHWIDTH_160MHZ = 3, 2210 }; 2211 2212 enum wmi_beacon_gen_mode { 2213 WMI_BEACON_STAGGERED_MODE = 0, 2214 WMI_BEACON_BURST_MODE = 1 2215 }; 2216 2217 enum wmi_direct_buffer_module { 2218 WMI_DIRECT_BUF_SPECTRAL = 0, 2219 WMI_DIRECT_BUF_CFR = 1, 2220 2221 /* keep it last */ 2222 WMI_DIRECT_BUF_MAX 2223 }; 2224 2225 struct ath12k_wmi_pdev_band_arg { 2226 u32 pdev_id; 2227 u32 start_freq; 2228 u32 end_freq; 2229 }; 2230 2231 struct ath12k_wmi_ppe_threshold_arg { 2232 u32 numss_m1; 2233 u32 ru_bit_mask; 2234 u32 ppet16_ppet8_ru3_ru0[WMI_MAX_NUM_SS]; 2235 }; 2236 2237 #define PSOC_HOST_MAX_PHY_SIZE (3) 2238 #define ATH12K_11B_SUPPORT BIT(0) 2239 #define ATH12K_11G_SUPPORT BIT(1) 2240 #define ATH12K_11A_SUPPORT BIT(2) 2241 #define ATH12K_11N_SUPPORT BIT(3) 2242 #define ATH12K_11AC_SUPPORT BIT(4) 2243 #define ATH12K_11AX_SUPPORT BIT(5) 2244 2245 struct ath12k_wmi_hal_reg_capabilities_ext_arg { 2246 u32 phy_id; 2247 u32 eeprom_reg_domain; 2248 u32 eeprom_reg_domain_ext; 2249 u32 regcap1; 2250 u32 regcap2; 2251 u32 wireless_modes; 2252 u32 low_2ghz_chan; 2253 u32 high_2ghz_chan; 2254 u32 low_5ghz_chan; 2255 u32 high_5ghz_chan; 2256 }; 2257 2258 #define WMI_HOST_MAX_PDEV 3 2259 2260 struct ath12k_wmi_host_mem_chunk_params { 2261 __le32 tlv_header; 2262 __le32 req_id; 2263 __le32 ptr; 2264 __le32 size; 2265 } __packed; 2266 2267 struct ath12k_wmi_host_mem_chunk_arg { 2268 void *vaddr; 2269 dma_addr_t paddr; 2270 u32 len; 2271 u32 req_id; 2272 }; 2273 2274 struct ath12k_wmi_resource_config_arg { 2275 u32 num_vdevs; 2276 u32 num_peers; 2277 u32 num_active_peers; 2278 u32 num_offload_peers; 2279 u32 num_offload_reorder_buffs; 2280 u32 num_peer_keys; 2281 u32 num_tids; 2282 u32 ast_skid_limit; 2283 u32 tx_chain_mask; 2284 u32 rx_chain_mask; 2285 u32 rx_timeout_pri[4]; 2286 u32 rx_decap_mode; 2287 u32 scan_max_pending_req; 2288 u32 bmiss_offload_max_vdev; 2289 u32 roam_offload_max_vdev; 2290 u32 roam_offload_max_ap_profiles; 2291 u32 num_mcast_groups; 2292 u32 num_mcast_table_elems; 2293 u32 mcast2ucast_mode; 2294 u32 tx_dbg_log_size; 2295 u32 num_wds_entries; 2296 u32 dma_burst_size; 2297 u32 mac_aggr_delim; 2298 u32 rx_skip_defrag_timeout_dup_detection_check; 2299 u32 vow_config; 2300 u32 gtk_offload_max_vdev; 2301 u32 num_msdu_desc; 2302 u32 max_frag_entries; 2303 u32 max_peer_ext_stats; 2304 u32 smart_ant_cap; 2305 u32 bk_minfree; 2306 u32 be_minfree; 2307 u32 vi_minfree; 2308 u32 vo_minfree; 2309 u32 rx_batchmode; 2310 u32 tt_support; 2311 u32 atf_config; 2312 u32 iphdr_pad_config; 2313 u32 qwrap_config:16, 2314 alloc_frag_desc_for_data_pkt:16; 2315 u32 num_tdls_vdevs; 2316 u32 num_tdls_conn_table_entries; 2317 u32 beacon_tx_offload_max_vdev; 2318 u32 num_multicast_filter_entries; 2319 u32 num_wow_filters; 2320 u32 num_keep_alive_pattern; 2321 u32 keep_alive_pattern_size; 2322 u32 max_tdls_concurrent_sleep_sta; 2323 u32 max_tdls_concurrent_buffer_sta; 2324 u32 wmi_send_separate; 2325 u32 num_ocb_vdevs; 2326 u32 num_ocb_channels; 2327 u32 num_ocb_schedules; 2328 u32 num_ns_ext_tuples_cfg; 2329 u32 bpf_instruction_size; 2330 u32 max_bssid_rx_filters; 2331 u32 use_pdev_id; 2332 u32 peer_map_unmap_version; 2333 u32 sched_params; 2334 u32 twt_ap_pdev_count; 2335 u32 twt_ap_sta_count; 2336 }; 2337 2338 struct ath12k_wmi_init_cmd_arg { 2339 struct ath12k_wmi_resource_config_arg res_cfg; 2340 u8 num_mem_chunks; 2341 struct ath12k_wmi_host_mem_chunk_arg *mem_chunks; 2342 u32 hw_mode_id; 2343 u32 num_band_to_mac; 2344 struct ath12k_wmi_pdev_band_arg band_to_mac[WMI_HOST_MAX_PDEV]; 2345 }; 2346 2347 struct ath12k_wmi_pdev_band_to_mac_params { 2348 __le32 tlv_header; 2349 __le32 pdev_id; 2350 __le32 start_freq; 2351 __le32 end_freq; 2352 } __packed; 2353 2354 /* This is both individual command WMI_PDEV_SET_HW_MODE_CMDID and also part 2355 * of WMI_TAG_INIT_CMD. 2356 */ 2357 struct ath12k_wmi_pdev_set_hw_mode_cmd { 2358 __le32 tlv_header; 2359 __le32 pdev_id; 2360 __le32 hw_mode_index; 2361 __le32 num_band_to_mac; 2362 } __packed; 2363 2364 struct ath12k_wmi_ppe_threshold_params { 2365 __le32 numss_m1; /** NSS - 1*/ 2366 __le32 ru_info; 2367 __le32 ppet16_ppet8_ru3_ru0[WMI_MAX_NUM_SS]; 2368 } __packed; 2369 2370 #define HW_BD_INFO_SIZE 5 2371 2372 struct ath12k_wmi_abi_version_params { 2373 __le32 abi_version_0; 2374 __le32 abi_version_1; 2375 __le32 abi_version_ns_0; 2376 __le32 abi_version_ns_1; 2377 __le32 abi_version_ns_2; 2378 __le32 abi_version_ns_3; 2379 } __packed; 2380 2381 struct wmi_init_cmd { 2382 __le32 tlv_header; 2383 struct ath12k_wmi_abi_version_params host_abi_vers; 2384 __le32 num_host_mem_chunks; 2385 } __packed; 2386 2387 #define WMI_RSRC_CFG_HOST_SVC_FLAG_REG_CC_EXT_SUPPORT_BIT 4 2388 2389 struct ath12k_wmi_resource_config_params { 2390 __le32 tlv_header; 2391 __le32 num_vdevs; 2392 __le32 num_peers; 2393 __le32 num_offload_peers; 2394 __le32 num_offload_reorder_buffs; 2395 __le32 num_peer_keys; 2396 __le32 num_tids; 2397 __le32 ast_skid_limit; 2398 __le32 tx_chain_mask; 2399 __le32 rx_chain_mask; 2400 __le32 rx_timeout_pri[4]; 2401 __le32 rx_decap_mode; 2402 __le32 scan_max_pending_req; 2403 __le32 bmiss_offload_max_vdev; 2404 __le32 roam_offload_max_vdev; 2405 __le32 roam_offload_max_ap_profiles; 2406 __le32 num_mcast_groups; 2407 __le32 num_mcast_table_elems; 2408 __le32 mcast2ucast_mode; 2409 __le32 tx_dbg_log_size; 2410 __le32 num_wds_entries; 2411 __le32 dma_burst_size; 2412 __le32 mac_aggr_delim; 2413 __le32 rx_skip_defrag_timeout_dup_detection_check; 2414 __le32 vow_config; 2415 __le32 gtk_offload_max_vdev; 2416 __le32 num_msdu_desc; 2417 __le32 max_frag_entries; 2418 __le32 num_tdls_vdevs; 2419 __le32 num_tdls_conn_table_entries; 2420 __le32 beacon_tx_offload_max_vdev; 2421 __le32 num_multicast_filter_entries; 2422 __le32 num_wow_filters; 2423 __le32 num_keep_alive_pattern; 2424 __le32 keep_alive_pattern_size; 2425 __le32 max_tdls_concurrent_sleep_sta; 2426 __le32 max_tdls_concurrent_buffer_sta; 2427 __le32 wmi_send_separate; 2428 __le32 num_ocb_vdevs; 2429 __le32 num_ocb_channels; 2430 __le32 num_ocb_schedules; 2431 __le32 flag1; 2432 __le32 smart_ant_cap; 2433 __le32 bk_minfree; 2434 __le32 be_minfree; 2435 __le32 vi_minfree; 2436 __le32 vo_minfree; 2437 __le32 alloc_frag_desc_for_data_pkt; 2438 __le32 num_ns_ext_tuples_cfg; 2439 __le32 bpf_instruction_size; 2440 __le32 max_bssid_rx_filters; 2441 __le32 use_pdev_id; 2442 __le32 max_num_dbs_scan_duty_cycle; 2443 __le32 max_num_group_keys; 2444 __le32 peer_map_unmap_version; 2445 __le32 sched_params; 2446 __le32 twt_ap_pdev_count; 2447 __le32 twt_ap_sta_count; 2448 __le32 max_nlo_ssids; 2449 __le32 num_pkt_filters; 2450 __le32 num_max_sta_vdevs; 2451 __le32 max_bssid_indicator; 2452 __le32 ul_resp_config; 2453 __le32 msdu_flow_override_config0; 2454 __le32 msdu_flow_override_config1; 2455 __le32 flags2; 2456 __le32 host_service_flags; 2457 __le32 max_rnr_neighbours; 2458 __le32 ema_max_vap_cnt; 2459 __le32 ema_max_profile_period; 2460 } __packed; 2461 2462 struct wmi_service_ready_event { 2463 __le32 fw_build_vers; 2464 struct ath12k_wmi_abi_version_params fw_abi_vers; 2465 __le32 phy_capability; 2466 __le32 max_frag_entry; 2467 __le32 num_rf_chains; 2468 __le32 ht_cap_info; 2469 __le32 vht_cap_info; 2470 __le32 vht_supp_mcs; 2471 __le32 hw_min_tx_power; 2472 __le32 hw_max_tx_power; 2473 __le32 sys_cap_info; 2474 __le32 min_pkt_size_enable; 2475 __le32 max_bcn_ie_size; 2476 __le32 num_mem_reqs; 2477 __le32 max_num_scan_channels; 2478 __le32 hw_bd_id; 2479 __le32 hw_bd_info[HW_BD_INFO_SIZE]; 2480 __le32 max_supported_macs; 2481 __le32 wmi_fw_sub_feat_caps; 2482 __le32 num_dbs_hw_modes; 2483 /* txrx_chainmask 2484 * [7:0] - 2G band tx chain mask 2485 * [15:8] - 2G band rx chain mask 2486 * [23:16] - 5G band tx chain mask 2487 * [31:24] - 5G band rx chain mask 2488 */ 2489 __le32 txrx_chainmask; 2490 __le32 default_dbs_hw_mode_index; 2491 __le32 num_msdu_desc; 2492 } __packed; 2493 2494 #define WMI_SERVICE_BM_SIZE ((WMI_MAX_SERVICE + sizeof(u32) - 1) / sizeof(u32)) 2495 2496 #define WMI_SERVICE_SEGMENT_BM_SIZE32 4 /* 4x u32 = 128 bits */ 2497 #define WMI_SERVICE_EXT_BM_SIZE (WMI_SERVICE_SEGMENT_BM_SIZE32 * sizeof(u32)) 2498 #define WMI_AVAIL_SERVICE_BITS_IN_SIZE32 32 2499 #define WMI_SERVICE_BITS_IN_SIZE32 4 2500 2501 struct wmi_service_ready_ext_event { 2502 __le32 default_conc_scan_config_bits; 2503 __le32 default_fw_config_bits; 2504 struct ath12k_wmi_ppe_threshold_params ppet; 2505 __le32 he_cap_info; 2506 __le32 mpdu_density; 2507 __le32 max_bssid_rx_filters; 2508 __le32 fw_build_vers_ext; 2509 __le32 max_nlo_ssids; 2510 __le32 max_bssid_indicator; 2511 __le32 he_cap_info_ext; 2512 } __packed; 2513 2514 struct ath12k_wmi_soc_mac_phy_hw_mode_caps_params { 2515 __le32 num_hw_modes; 2516 __le32 num_chainmask_tables; 2517 } __packed; 2518 2519 struct ath12k_wmi_hw_mode_cap_params { 2520 __le32 tlv_header; 2521 __le32 hw_mode_id; 2522 __le32 phy_id_map; 2523 __le32 hw_mode_config_type; 2524 } __packed; 2525 2526 #define WMI_MAX_HECAP_PHY_SIZE (3) 2527 2528 struct ath12k_wmi_mac_phy_caps_params { 2529 __le32 hw_mode_id; 2530 __le32 pdev_id; 2531 __le32 phy_id; 2532 __le32 supported_flags; 2533 __le32 supported_bands; 2534 __le32 ampdu_density; 2535 __le32 max_bw_supported_2g; 2536 __le32 ht_cap_info_2g; 2537 __le32 vht_cap_info_2g; 2538 __le32 vht_supp_mcs_2g; 2539 __le32 he_cap_info_2g; 2540 __le32 he_supp_mcs_2g; 2541 __le32 tx_chain_mask_2g; 2542 __le32 rx_chain_mask_2g; 2543 __le32 max_bw_supported_5g; 2544 __le32 ht_cap_info_5g; 2545 __le32 vht_cap_info_5g; 2546 __le32 vht_supp_mcs_5g; 2547 __le32 he_cap_info_5g; 2548 __le32 he_supp_mcs_5g; 2549 __le32 tx_chain_mask_5g; 2550 __le32 rx_chain_mask_5g; 2551 __le32 he_cap_phy_info_2g[WMI_MAX_HECAP_PHY_SIZE]; 2552 __le32 he_cap_phy_info_5g[WMI_MAX_HECAP_PHY_SIZE]; 2553 struct ath12k_wmi_ppe_threshold_params he_ppet2g; 2554 struct ath12k_wmi_ppe_threshold_params he_ppet5g; 2555 __le32 chainmask_table_id; 2556 __le32 lmac_id; 2557 __le32 he_cap_info_2g_ext; 2558 __le32 he_cap_info_5g_ext; 2559 __le32 he_cap_info_internal; 2560 } __packed; 2561 2562 struct ath12k_wmi_hal_reg_caps_ext_params { 2563 __le32 tlv_header; 2564 __le32 phy_id; 2565 __le32 eeprom_reg_domain; 2566 __le32 eeprom_reg_domain_ext; 2567 __le32 regcap1; 2568 __le32 regcap2; 2569 __le32 wireless_modes; 2570 __le32 low_2ghz_chan; 2571 __le32 high_2ghz_chan; 2572 __le32 low_5ghz_chan; 2573 __le32 high_5ghz_chan; 2574 } __packed; 2575 2576 struct ath12k_wmi_soc_hal_reg_caps_params { 2577 __le32 num_phy; 2578 } __packed; 2579 2580 /* 2 word representation of MAC addr */ 2581 struct ath12k_wmi_mac_addr_params { 2582 u8 addr[ETH_ALEN]; 2583 u8 padding[2]; 2584 } __packed; 2585 2586 struct ath12k_wmi_dma_ring_caps_params { 2587 __le32 tlv_header; 2588 __le32 pdev_id; 2589 __le32 module_id; 2590 __le32 min_elem; 2591 __le32 min_buf_sz; 2592 __le32 min_buf_align; 2593 } __packed; 2594 2595 struct ath12k_wmi_ready_event_min_params { 2596 struct ath12k_wmi_abi_version_params fw_abi_vers; 2597 struct ath12k_wmi_mac_addr_params mac_addr; 2598 __le32 status; 2599 __le32 num_dscp_table; 2600 __le32 num_extra_mac_addr; 2601 __le32 num_total_peers; 2602 __le32 num_extra_peers; 2603 } __packed; 2604 2605 struct wmi_ready_event { 2606 struct ath12k_wmi_ready_event_min_params ready_event_min; 2607 __le32 max_ast_index; 2608 __le32 pktlog_defs_checksum; 2609 } __packed; 2610 2611 struct wmi_service_available_event { 2612 __le32 wmi_service_segment_offset; 2613 __le32 wmi_service_segment_bitmap[WMI_SERVICE_SEGMENT_BM_SIZE32]; 2614 } __packed; 2615 2616 struct ath12k_wmi_vdev_create_arg { 2617 u8 if_id; 2618 u32 type; 2619 u32 subtype; 2620 struct { 2621 u8 tx; 2622 u8 rx; 2623 } chains[NUM_NL80211_BANDS]; 2624 u32 pdev_id; 2625 u8 if_stats_id; 2626 }; 2627 2628 #define ATH12K_MAX_VDEV_STATS_ID 0x30 2629 #define ATH12K_INVAL_VDEV_STATS_ID 0xFF 2630 2631 struct wmi_vdev_create_cmd { 2632 __le32 tlv_header; 2633 __le32 vdev_id; 2634 __le32 vdev_type; 2635 __le32 vdev_subtype; 2636 struct ath12k_wmi_mac_addr_params vdev_macaddr; 2637 __le32 num_cfg_txrx_streams; 2638 __le32 pdev_id; 2639 __le32 vdev_stats_id; 2640 } __packed; 2641 2642 struct ath12k_wmi_vdev_txrx_streams_params { 2643 __le32 tlv_header; 2644 u32 band; 2645 u32 supported_tx_streams; 2646 u32 supported_rx_streams; 2647 } __packed; 2648 2649 struct wmi_vdev_delete_cmd { 2650 __le32 tlv_header; 2651 __le32 vdev_id; 2652 } __packed; 2653 2654 struct wmi_vdev_up_cmd { 2655 __le32 tlv_header; 2656 __le32 vdev_id; 2657 __le32 vdev_assoc_id; 2658 struct ath12k_wmi_mac_addr_params vdev_bssid; 2659 struct ath12k_wmi_mac_addr_params trans_bssid; 2660 __le32 profile_idx; 2661 __le32 profile_num; 2662 } __packed; 2663 2664 struct wmi_vdev_stop_cmd { 2665 __le32 tlv_header; 2666 __le32 vdev_id; 2667 } __packed; 2668 2669 struct wmi_vdev_down_cmd { 2670 __le32 tlv_header; 2671 __le32 vdev_id; 2672 } __packed; 2673 2674 #define WMI_VDEV_START_HIDDEN_SSID BIT(0) 2675 #define WMI_VDEV_START_PMF_ENABLED BIT(1) 2676 #define WMI_VDEV_START_LDPC_RX_ENABLED BIT(3) 2677 2678 #define ATH12K_WMI_SSID_LEN 32 2679 2680 struct ath12k_wmi_ssid_params { 2681 __le32 ssid_len; 2682 u8 ssid[ATH12K_WMI_SSID_LEN]; 2683 } __packed; 2684 2685 #define ATH12K_VDEV_SETUP_TIMEOUT_HZ (5 * HZ) 2686 2687 struct wmi_vdev_start_request_cmd { 2688 __le32 tlv_header; 2689 __le32 vdev_id; 2690 __le32 requestor_id; 2691 __le32 beacon_interval; 2692 __le32 dtim_period; 2693 __le32 flags; 2694 struct ath12k_wmi_ssid_params ssid; 2695 __le32 bcn_tx_rate; 2696 __le32 bcn_txpower; 2697 __le32 num_noa_descriptors; 2698 __le32 disable_hw_ack; 2699 __le32 preferred_tx_streams; 2700 __le32 preferred_rx_streams; 2701 __le32 he_ops; 2702 __le32 cac_duration_ms; 2703 __le32 regdomain; 2704 } __packed; 2705 2706 #define MGMT_TX_DL_FRM_LEN 64 2707 2708 struct ath12k_wmi_channel_arg { 2709 u8 chan_id; 2710 u8 pwr; 2711 u32 mhz; 2712 u32 half_rate:1, 2713 quarter_rate:1, 2714 dfs_set:1, 2715 dfs_set_cfreq2:1, 2716 is_chan_passive:1, 2717 allow_ht:1, 2718 allow_vht:1, 2719 allow_he:1, 2720 set_agile:1, 2721 psc_channel:1; 2722 u32 phy_mode; 2723 u32 cfreq1; 2724 u32 cfreq2; 2725 char maxpower; 2726 char minpower; 2727 char maxregpower; 2728 u8 antennamax; 2729 u8 reg_class_id; 2730 }; 2731 2732 enum wmi_phy_mode { 2733 MODE_11A = 0, 2734 MODE_11G = 1, /* 11b/g Mode */ 2735 MODE_11B = 2, /* 11b Mode */ 2736 MODE_11GONLY = 3, /* 11g only Mode */ 2737 MODE_11NA_HT20 = 4, 2738 MODE_11NG_HT20 = 5, 2739 MODE_11NA_HT40 = 6, 2740 MODE_11NG_HT40 = 7, 2741 MODE_11AC_VHT20 = 8, 2742 MODE_11AC_VHT40 = 9, 2743 MODE_11AC_VHT80 = 10, 2744 MODE_11AC_VHT20_2G = 11, 2745 MODE_11AC_VHT40_2G = 12, 2746 MODE_11AC_VHT80_2G = 13, 2747 MODE_11AC_VHT80_80 = 14, 2748 MODE_11AC_VHT160 = 15, 2749 MODE_11AX_HE20 = 16, 2750 MODE_11AX_HE40 = 17, 2751 MODE_11AX_HE80 = 18, 2752 MODE_11AX_HE80_80 = 19, 2753 MODE_11AX_HE160 = 20, 2754 MODE_11AX_HE20_2G = 21, 2755 MODE_11AX_HE40_2G = 22, 2756 MODE_11AX_HE80_2G = 23, 2757 MODE_UNKNOWN = 24, 2758 MODE_MAX = 24 2759 }; 2760 2761 struct wmi_vdev_start_req_arg { 2762 u32 vdev_id; 2763 u32 freq; 2764 u32 band_center_freq1; 2765 u32 band_center_freq2; 2766 bool passive; 2767 bool allow_ibss; 2768 bool allow_ht; 2769 bool allow_vht; 2770 bool ht40plus; 2771 bool chan_radar; 2772 bool freq2_radar; 2773 bool allow_he; 2774 u32 min_power; 2775 u32 max_power; 2776 u32 max_reg_power; 2777 u32 max_antenna_gain; 2778 enum wmi_phy_mode mode; 2779 u32 bcn_intval; 2780 u32 dtim_period; 2781 u8 *ssid; 2782 u32 ssid_len; 2783 u32 bcn_tx_rate; 2784 u32 bcn_tx_power; 2785 bool disable_hw_ack; 2786 bool hidden_ssid; 2787 bool pmf_enabled; 2788 u32 he_ops; 2789 u32 cac_duration_ms; 2790 u32 regdomain; 2791 u32 pref_rx_streams; 2792 u32 pref_tx_streams; 2793 u32 num_noa_descriptors; 2794 }; 2795 2796 struct ath12k_wmi_peer_create_arg { 2797 const u8 *peer_addr; 2798 u32 peer_type; 2799 u32 vdev_id; 2800 }; 2801 2802 struct ath12k_wmi_pdev_set_regdomain_arg { 2803 u16 current_rd_in_use; 2804 u16 current_rd_2g; 2805 u16 current_rd_5g; 2806 u32 ctl_2g; 2807 u32 ctl_5g; 2808 u8 dfs_domain; 2809 u32 pdev_id; 2810 }; 2811 2812 struct ath12k_wmi_rx_reorder_queue_remove_arg { 2813 u8 *peer_macaddr; 2814 u16 vdev_id; 2815 u32 peer_tid_bitmap; 2816 }; 2817 2818 #define WMI_HOST_PDEV_ID_SOC 0xFF 2819 #define WMI_HOST_PDEV_ID_0 0 2820 #define WMI_HOST_PDEV_ID_1 1 2821 #define WMI_HOST_PDEV_ID_2 2 2822 2823 #define WMI_PDEV_ID_SOC 0 2824 #define WMI_PDEV_ID_1ST 1 2825 #define WMI_PDEV_ID_2ND 2 2826 #define WMI_PDEV_ID_3RD 3 2827 2828 /* Freq units in MHz */ 2829 #define REG_RULE_START_FREQ 0x0000ffff 2830 #define REG_RULE_END_FREQ 0xffff0000 2831 #define REG_RULE_FLAGS 0x0000ffff 2832 #define REG_RULE_MAX_BW 0x0000ffff 2833 #define REG_RULE_REG_PWR 0x00ff0000 2834 #define REG_RULE_ANT_GAIN 0xff000000 2835 #define REG_RULE_PSD_INFO BIT(2) 2836 #define REG_RULE_PSD_EIRP 0xffff0000 2837 2838 #define WMI_VDEV_PARAM_TXBF_SU_TX_BFEE BIT(0) 2839 #define WMI_VDEV_PARAM_TXBF_MU_TX_BFEE BIT(1) 2840 #define WMI_VDEV_PARAM_TXBF_SU_TX_BFER BIT(2) 2841 #define WMI_VDEV_PARAM_TXBF_MU_TX_BFER BIT(3) 2842 2843 #define HECAP_PHYDWORD_0 0 2844 #define HECAP_PHYDWORD_1 1 2845 #define HECAP_PHYDWORD_2 2 2846 2847 #define HECAP_PHY_SU_BFER BIT(31) 2848 #define HECAP_PHY_SU_BFEE BIT(0) 2849 #define HECAP_PHY_MU_BFER BIT(1) 2850 #define HECAP_PHY_UL_MUMIMO BIT(22) 2851 #define HECAP_PHY_UL_MUOFDMA BIT(23) 2852 2853 #define HECAP_PHY_SUBFMR_GET(hecap_phy) \ 2854 u32_get_bits(hecap_phy[HECAP_PHYDWORD_0], HECAP_PHY_SU_BFER) 2855 2856 #define HECAP_PHY_SUBFME_GET(hecap_phy) \ 2857 u32_get_bits(hecap_phy[HECAP_PHYDWORD_1], HECAP_PHY_SU_BFEE) 2858 2859 #define HECAP_PHY_MUBFMR_GET(hecap_phy) \ 2860 u32_get_bits(hecap_phy[HECAP_PHYDWORD_1], HECAP_PHY_MU_BFER) 2861 2862 #define HECAP_PHY_ULMUMIMO_GET(hecap_phy) \ 2863 u32_get_bits(hecap_phy[HECAP_PHYDWORD_0], HECAP_PHY_UL_MUMIMO) 2864 2865 #define HECAP_PHY_ULOFDMA_GET(hecap_phy) \ 2866 u32_get_bits(hecap_phy[HECAP_PHYDWORD_0], HECAP_PHY_UL_MUOFDMA) 2867 2868 #define HE_MODE_SU_TX_BFEE BIT(0) 2869 #define HE_MODE_SU_TX_BFER BIT(1) 2870 #define HE_MODE_MU_TX_BFEE BIT(2) 2871 #define HE_MODE_MU_TX_BFER BIT(3) 2872 #define HE_MODE_DL_OFDMA BIT(4) 2873 #define HE_MODE_UL_OFDMA BIT(5) 2874 #define HE_MODE_UL_MUMIMO BIT(6) 2875 2876 #define HE_DL_MUOFDMA_ENABLE 1 2877 #define HE_UL_MUOFDMA_ENABLE 1 2878 #define HE_DL_MUMIMO_ENABLE 1 2879 #define HE_MU_BFEE_ENABLE 1 2880 #define HE_SU_BFEE_ENABLE 1 2881 2882 #define HE_VHT_SOUNDING_MODE_ENABLE 1 2883 #define HE_SU_MU_SOUNDING_MODE_ENABLE 1 2884 #define HE_TRIG_NONTRIG_SOUNDING_MODE_ENABLE 1 2885 2886 /* HE or VHT Sounding */ 2887 #define HE_VHT_SOUNDING_MODE BIT(0) 2888 /* SU or MU Sounding */ 2889 #define HE_SU_MU_SOUNDING_MODE BIT(2) 2890 /* Trig or Non-Trig Sounding */ 2891 #define HE_TRIG_NONTRIG_SOUNDING_MODE BIT(3) 2892 2893 #define WMI_TXBF_STS_CAP_OFFSET_LSB 4 2894 #define WMI_TXBF_STS_CAP_OFFSET_MASK 0x70 2895 #define WMI_BF_SOUND_DIM_OFFSET_LSB 8 2896 #define WMI_BF_SOUND_DIM_OFFSET_MASK 0x700 2897 2898 enum wmi_peer_type { 2899 WMI_PEER_TYPE_DEFAULT = 0, 2900 WMI_PEER_TYPE_BSS = 1, 2901 WMI_PEER_TYPE_TDLS = 2, 2902 }; 2903 2904 struct wmi_peer_create_cmd { 2905 __le32 tlv_header; 2906 __le32 vdev_id; 2907 struct ath12k_wmi_mac_addr_params peer_macaddr; 2908 __le32 peer_type; 2909 } __packed; 2910 2911 struct wmi_peer_delete_cmd { 2912 __le32 tlv_header; 2913 __le32 vdev_id; 2914 struct ath12k_wmi_mac_addr_params peer_macaddr; 2915 } __packed; 2916 2917 struct wmi_peer_reorder_queue_setup_cmd { 2918 __le32 tlv_header; 2919 __le32 vdev_id; 2920 struct ath12k_wmi_mac_addr_params peer_macaddr; 2921 __le32 tid; 2922 __le32 queue_ptr_lo; 2923 __le32 queue_ptr_hi; 2924 __le32 queue_no; 2925 __le32 ba_window_size_valid; 2926 __le32 ba_window_size; 2927 } __packed; 2928 2929 struct wmi_peer_reorder_queue_remove_cmd { 2930 __le32 tlv_header; 2931 __le32 vdev_id; 2932 struct ath12k_wmi_mac_addr_params peer_macaddr; 2933 __le32 tid_mask; 2934 } __packed; 2935 2936 enum wmi_bss_chan_info_req_type { 2937 WMI_BSS_SURVEY_REQ_TYPE_READ = 1, 2938 WMI_BSS_SURVEY_REQ_TYPE_READ_CLEAR, 2939 }; 2940 2941 struct wmi_pdev_set_param_cmd { 2942 __le32 tlv_header; 2943 __le32 pdev_id; 2944 __le32 param_id; 2945 __le32 param_value; 2946 } __packed; 2947 2948 struct wmi_pdev_set_ps_mode_cmd { 2949 __le32 tlv_header; 2950 __le32 vdev_id; 2951 __le32 sta_ps_mode; 2952 } __packed; 2953 2954 struct wmi_pdev_suspend_cmd { 2955 __le32 tlv_header; 2956 __le32 pdev_id; 2957 __le32 suspend_opt; 2958 } __packed; 2959 2960 struct wmi_pdev_resume_cmd { 2961 __le32 tlv_header; 2962 __le32 pdev_id; 2963 } __packed; 2964 2965 struct wmi_pdev_bss_chan_info_req_cmd { 2966 __le32 tlv_header; 2967 /* ref wmi_bss_chan_info_req_type */ 2968 __le32 req_type; 2969 } __packed; 2970 2971 struct wmi_ap_ps_peer_cmd { 2972 __le32 tlv_header; 2973 __le32 vdev_id; 2974 struct ath12k_wmi_mac_addr_params peer_macaddr; 2975 __le32 param; 2976 __le32 value; 2977 } __packed; 2978 2979 struct wmi_sta_powersave_param_cmd { 2980 __le32 tlv_header; 2981 __le32 vdev_id; 2982 __le32 param; 2983 __le32 value; 2984 } __packed; 2985 2986 struct wmi_pdev_set_regdomain_cmd { 2987 __le32 tlv_header; 2988 __le32 pdev_id; 2989 __le32 reg_domain; 2990 __le32 reg_domain_2g; 2991 __le32 reg_domain_5g; 2992 __le32 conformance_test_limit_2g; 2993 __le32 conformance_test_limit_5g; 2994 __le32 dfs_domain; 2995 } __packed; 2996 2997 struct wmi_peer_set_param_cmd { 2998 __le32 tlv_header; 2999 __le32 vdev_id; 3000 struct ath12k_wmi_mac_addr_params peer_macaddr; 3001 __le32 param_id; 3002 __le32 param_value; 3003 } __packed; 3004 3005 struct wmi_peer_flush_tids_cmd { 3006 __le32 tlv_header; 3007 __le32 vdev_id; 3008 struct ath12k_wmi_mac_addr_params peer_macaddr; 3009 __le32 peer_tid_bitmap; 3010 } __packed; 3011 3012 struct wmi_dfs_phyerr_offload_cmd { 3013 __le32 tlv_header; 3014 __le32 pdev_id; 3015 } __packed; 3016 3017 struct wmi_bcn_offload_ctrl_cmd { 3018 __le32 tlv_header; 3019 __le32 vdev_id; 3020 __le32 bcn_ctrl_op; 3021 } __packed; 3022 3023 enum scan_dwelltime_adaptive_mode { 3024 SCAN_DWELL_MODE_DEFAULT = 0, 3025 SCAN_DWELL_MODE_CONSERVATIVE = 1, 3026 SCAN_DWELL_MODE_MODERATE = 2, 3027 SCAN_DWELL_MODE_AGGRESSIVE = 3, 3028 SCAN_DWELL_MODE_STATIC = 4 3029 }; 3030 3031 #define WLAN_SCAN_MAX_NUM_SSID 10 3032 #define WLAN_SCAN_MAX_NUM_BSSID 10 3033 #define WLAN_SCAN_MAX_NUM_CHANNELS 40 3034 3035 struct ath12k_wmi_element_info_arg { 3036 u32 len; 3037 u8 *ptr; 3038 }; 3039 3040 #define WMI_IE_BITMAP_SIZE 8 3041 3042 #define WMI_SCAN_MAX_NUM_SSID 0x0A 3043 /* prefix used by scan requestor ids on the host */ 3044 #define WMI_HOST_SCAN_REQUESTOR_ID_PREFIX 0xA000 3045 3046 /* prefix used by scan request ids generated on the host */ 3047 /* host cycles through the lower 12 bits to generate ids */ 3048 #define WMI_HOST_SCAN_REQ_ID_PREFIX 0xA000 3049 3050 #define WLAN_SCAN_PARAMS_MAX_SSID 16 3051 #define WLAN_SCAN_PARAMS_MAX_BSSID 4 3052 #define WLAN_SCAN_PARAMS_MAX_IE_LEN 256 3053 3054 /* Values lower than this may be refused by some firmware revisions with a scan 3055 * completion with a timedout reason. 3056 */ 3057 #define WMI_SCAN_CHAN_MIN_TIME_MSEC 40 3058 3059 /* Scan priority numbers must be sequential, starting with 0 */ 3060 enum wmi_scan_priority { 3061 WMI_SCAN_PRIORITY_VERY_LOW = 0, 3062 WMI_SCAN_PRIORITY_LOW, 3063 WMI_SCAN_PRIORITY_MEDIUM, 3064 WMI_SCAN_PRIORITY_HIGH, 3065 WMI_SCAN_PRIORITY_VERY_HIGH, 3066 WMI_SCAN_PRIORITY_COUNT /* number of priorities supported */ 3067 }; 3068 3069 enum wmi_scan_event_type { 3070 WMI_SCAN_EVENT_STARTED = BIT(0), 3071 WMI_SCAN_EVENT_COMPLETED = BIT(1), 3072 WMI_SCAN_EVENT_BSS_CHANNEL = BIT(2), 3073 WMI_SCAN_EVENT_FOREIGN_CHAN = BIT(3), 3074 WMI_SCAN_EVENT_DEQUEUED = BIT(4), 3075 /* possibly by high-prio scan */ 3076 WMI_SCAN_EVENT_PREEMPTED = BIT(5), 3077 WMI_SCAN_EVENT_START_FAILED = BIT(6), 3078 WMI_SCAN_EVENT_RESTARTED = BIT(7), 3079 WMI_SCAN_EVENT_FOREIGN_CHAN_EXIT = BIT(8), 3080 WMI_SCAN_EVENT_SUSPENDED = BIT(9), 3081 WMI_SCAN_EVENT_RESUMED = BIT(10), 3082 WMI_SCAN_EVENT_MAX = BIT(15), 3083 }; 3084 3085 enum wmi_scan_completion_reason { 3086 WMI_SCAN_REASON_COMPLETED, 3087 WMI_SCAN_REASON_CANCELLED, 3088 WMI_SCAN_REASON_PREEMPTED, 3089 WMI_SCAN_REASON_TIMEDOUT, 3090 WMI_SCAN_REASON_INTERNAL_FAILURE, 3091 WMI_SCAN_REASON_MAX, 3092 }; 3093 3094 struct wmi_start_scan_cmd { 3095 __le32 tlv_header; 3096 __le32 scan_id; 3097 __le32 scan_req_id; 3098 __le32 vdev_id; 3099 __le32 scan_priority; 3100 __le32 notify_scan_events; 3101 __le32 dwell_time_active; 3102 __le32 dwell_time_passive; 3103 __le32 min_rest_time; 3104 __le32 max_rest_time; 3105 __le32 repeat_probe_time; 3106 __le32 probe_spacing_time; 3107 __le32 idle_time; 3108 __le32 max_scan_time; 3109 __le32 probe_delay; 3110 __le32 scan_ctrl_flags; 3111 __le32 burst_duration; 3112 __le32 num_chan; 3113 __le32 num_bssid; 3114 __le32 num_ssids; 3115 __le32 ie_len; 3116 __le32 n_probes; 3117 struct ath12k_wmi_mac_addr_params mac_addr; 3118 struct ath12k_wmi_mac_addr_params mac_mask; 3119 u32 ie_bitmap[WMI_IE_BITMAP_SIZE]; 3120 __le32 num_vendor_oui; 3121 __le32 scan_ctrl_flags_ext; 3122 __le32 dwell_time_active_2g; 3123 __le32 dwell_time_active_6g; 3124 __le32 dwell_time_passive_6g; 3125 __le32 scan_start_offset; 3126 } __packed; 3127 3128 #define WMI_SCAN_FLAG_PASSIVE 0x1 3129 #define WMI_SCAN_ADD_BCAST_PROBE_REQ 0x2 3130 #define WMI_SCAN_ADD_CCK_RATES 0x4 3131 #define WMI_SCAN_ADD_OFDM_RATES 0x8 3132 #define WMI_SCAN_CHAN_STAT_EVENT 0x10 3133 #define WMI_SCAN_FILTER_PROBE_REQ 0x20 3134 #define WMI_SCAN_BYPASS_DFS_CHN 0x40 3135 #define WMI_SCAN_CONTINUE_ON_ERROR 0x80 3136 #define WMI_SCAN_FILTER_PROMISCUOS 0x100 3137 #define WMI_SCAN_FLAG_FORCE_ACTIVE_ON_DFS 0x200 3138 #define WMI_SCAN_ADD_TPC_IE_IN_PROBE_REQ 0x400 3139 #define WMI_SCAN_ADD_DS_IE_IN_PROBE_REQ 0x800 3140 #define WMI_SCAN_ADD_SPOOF_MAC_IN_PROBE_REQ 0x1000 3141 #define WMI_SCAN_OFFCHAN_MGMT_TX 0x2000 3142 #define WMI_SCAN_OFFCHAN_DATA_TX 0x4000 3143 #define WMI_SCAN_CAPTURE_PHY_ERROR 0x8000 3144 #define WMI_SCAN_FLAG_STRICT_PASSIVE_ON_PCHN 0x10000 3145 #define WMI_SCAN_FLAG_HALF_RATE_SUPPORT 0x20000 3146 #define WMI_SCAN_FLAG_QUARTER_RATE_SUPPORT 0x40000 3147 #define WMI_SCAN_RANDOM_SEQ_NO_IN_PROBE_REQ 0x80000 3148 #define WMI_SCAN_ENABLE_IE_WHTELIST_IN_PROBE_REQ 0x100000 3149 3150 #define WMI_SCAN_DWELL_MODE_MASK GENMASK(23, 21) 3151 3152 enum { 3153 WMI_SCAN_DWELL_MODE_DEFAULT = 0, 3154 WMI_SCAN_DWELL_MODE_CONSERVATIVE = 1, 3155 WMI_SCAN_DWELL_MODE_MODERATE = 2, 3156 WMI_SCAN_DWELL_MODE_AGGRESSIVE = 3, 3157 WMI_SCAN_DWELL_MODE_STATIC = 4, 3158 }; 3159 3160 struct ath12k_wmi_hint_short_ssid_arg { 3161 u32 freq_flags; 3162 u32 short_ssid; 3163 }; 3164 3165 struct ath12k_wmi_hint_bssid_arg { 3166 u32 freq_flags; 3167 struct ath12k_wmi_mac_addr_params bssid; 3168 }; 3169 3170 struct ath12k_wmi_scan_req_arg { 3171 u32 scan_id; 3172 u32 scan_req_id; 3173 u32 vdev_id; 3174 u32 pdev_id; 3175 enum wmi_scan_priority scan_priority; 3176 union { 3177 struct { 3178 u32 scan_ev_started:1, 3179 scan_ev_completed:1, 3180 scan_ev_bss_chan:1, 3181 scan_ev_foreign_chan:1, 3182 scan_ev_dequeued:1, 3183 scan_ev_preempted:1, 3184 scan_ev_start_failed:1, 3185 scan_ev_restarted:1, 3186 scan_ev_foreign_chn_exit:1, 3187 scan_ev_invalid:1, 3188 scan_ev_gpio_timeout:1, 3189 scan_ev_suspended:1, 3190 scan_ev_resumed:1; 3191 }; 3192 u32 scan_events; 3193 }; 3194 u32 dwell_time_active; 3195 u32 dwell_time_active_2g; 3196 u32 dwell_time_passive; 3197 u32 dwell_time_active_6g; 3198 u32 dwell_time_passive_6g; 3199 u32 min_rest_time; 3200 u32 max_rest_time; 3201 u32 repeat_probe_time; 3202 u32 probe_spacing_time; 3203 u32 idle_time; 3204 u32 max_scan_time; 3205 u32 probe_delay; 3206 union { 3207 struct { 3208 u32 scan_f_passive:1, 3209 scan_f_bcast_probe:1, 3210 scan_f_cck_rates:1, 3211 scan_f_ofdm_rates:1, 3212 scan_f_chan_stat_evnt:1, 3213 scan_f_filter_prb_req:1, 3214 scan_f_bypass_dfs_chn:1, 3215 scan_f_continue_on_err:1, 3216 scan_f_offchan_mgmt_tx:1, 3217 scan_f_offchan_data_tx:1, 3218 scan_f_promisc_mode:1, 3219 scan_f_capture_phy_err:1, 3220 scan_f_strict_passive_pch:1, 3221 scan_f_half_rate:1, 3222 scan_f_quarter_rate:1, 3223 scan_f_force_active_dfs_chn:1, 3224 scan_f_add_tpc_ie_in_probe:1, 3225 scan_f_add_ds_ie_in_probe:1, 3226 scan_f_add_spoofed_mac_in_probe:1, 3227 scan_f_add_rand_seq_in_probe:1, 3228 scan_f_en_ie_whitelist_in_probe:1, 3229 scan_f_forced:1, 3230 scan_f_2ghz:1, 3231 scan_f_5ghz:1, 3232 scan_f_80mhz:1; 3233 }; 3234 u32 scan_flags; 3235 }; 3236 enum scan_dwelltime_adaptive_mode adaptive_dwell_time_mode; 3237 u32 burst_duration; 3238 u32 num_chan; 3239 u32 num_bssid; 3240 u32 num_ssids; 3241 u32 n_probes; 3242 u32 chan_list[WLAN_SCAN_MAX_NUM_CHANNELS]; 3243 u32 notify_scan_events; 3244 struct cfg80211_ssid ssid[WLAN_SCAN_MAX_NUM_SSID]; 3245 struct ath12k_wmi_mac_addr_params bssid_list[WLAN_SCAN_MAX_NUM_BSSID]; 3246 struct ath12k_wmi_element_info_arg extraie; 3247 u32 num_hint_s_ssid; 3248 u32 num_hint_bssid; 3249 struct ath12k_wmi_hint_short_ssid_arg hint_s_ssid[WLAN_SCAN_MAX_HINT_S_SSID]; 3250 struct ath12k_wmi_hint_bssid_arg hint_bssid[WLAN_SCAN_MAX_HINT_BSSID]; 3251 }; 3252 3253 struct wmi_ssid_arg { 3254 int len; 3255 const u8 *ssid; 3256 }; 3257 3258 struct wmi_bssid_arg { 3259 const u8 *bssid; 3260 }; 3261 3262 struct wmi_start_scan_arg { 3263 u32 scan_id; 3264 u32 scan_req_id; 3265 u32 vdev_id; 3266 u32 scan_priority; 3267 u32 notify_scan_events; 3268 u32 dwell_time_active; 3269 u32 dwell_time_passive; 3270 u32 min_rest_time; 3271 u32 max_rest_time; 3272 u32 repeat_probe_time; 3273 u32 probe_spacing_time; 3274 u32 idle_time; 3275 u32 max_scan_time; 3276 u32 probe_delay; 3277 u32 scan_ctrl_flags; 3278 3279 u32 ie_len; 3280 u32 n_channels; 3281 u32 n_ssids; 3282 u32 n_bssids; 3283 3284 u8 ie[WLAN_SCAN_PARAMS_MAX_IE_LEN]; 3285 u32 channels[64]; 3286 struct wmi_ssid_arg ssids[WLAN_SCAN_PARAMS_MAX_SSID]; 3287 struct wmi_bssid_arg bssids[WLAN_SCAN_PARAMS_MAX_BSSID]; 3288 }; 3289 3290 #define WMI_SCAN_STOP_ONE 0x00000000 3291 #define WMI_SCAN_STOP_VAP_ALL 0x01000000 3292 #define WMI_SCAN_STOP_ALL 0x04000000 3293 3294 /* Prefix 0xA000 indicates that the scan request 3295 * is trigger by HOST 3296 */ 3297 #define ATH12K_SCAN_ID 0xA000 3298 3299 enum scan_cancel_req_type { 3300 WLAN_SCAN_CANCEL_SINGLE = 1, 3301 WLAN_SCAN_CANCEL_VDEV_ALL, 3302 WLAN_SCAN_CANCEL_PDEV_ALL, 3303 }; 3304 3305 struct ath12k_wmi_scan_cancel_arg { 3306 u32 requester; 3307 u32 scan_id; 3308 enum scan_cancel_req_type req_type; 3309 u32 vdev_id; 3310 u32 pdev_id; 3311 }; 3312 3313 struct wmi_bcn_send_from_host_cmd { 3314 __le32 tlv_header; 3315 __le32 vdev_id; 3316 __le32 data_len; 3317 union { 3318 __le32 frag_ptr; 3319 __le32 frag_ptr_lo; 3320 }; 3321 __le32 frame_ctrl; 3322 __le32 dtim_flag; 3323 __le32 bcn_antenna; 3324 __le32 frag_ptr_hi; 3325 }; 3326 3327 #define WMI_CHAN_INFO_MODE GENMASK(5, 0) 3328 #define WMI_CHAN_INFO_HT40_PLUS BIT(6) 3329 #define WMI_CHAN_INFO_PASSIVE BIT(7) 3330 #define WMI_CHAN_INFO_ADHOC_ALLOWED BIT(8) 3331 #define WMI_CHAN_INFO_AP_DISABLED BIT(9) 3332 #define WMI_CHAN_INFO_DFS BIT(10) 3333 #define WMI_CHAN_INFO_ALLOW_HT BIT(11) 3334 #define WMI_CHAN_INFO_ALLOW_VHT BIT(12) 3335 #define WMI_CHAN_INFO_CHAN_CHANGE_CAUSE_CSA BIT(13) 3336 #define WMI_CHAN_INFO_HALF_RATE BIT(14) 3337 #define WMI_CHAN_INFO_QUARTER_RATE BIT(15) 3338 #define WMI_CHAN_INFO_DFS_FREQ2 BIT(16) 3339 #define WMI_CHAN_INFO_ALLOW_HE BIT(17) 3340 #define WMI_CHAN_INFO_PSC BIT(18) 3341 3342 #define WMI_CHAN_REG_INFO1_MIN_PWR GENMASK(7, 0) 3343 #define WMI_CHAN_REG_INFO1_MAX_PWR GENMASK(15, 8) 3344 #define WMI_CHAN_REG_INFO1_MAX_REG_PWR GENMASK(23, 16) 3345 #define WMI_CHAN_REG_INFO1_REG_CLS GENMASK(31, 24) 3346 3347 #define WMI_CHAN_REG_INFO2_ANT_MAX GENMASK(7, 0) 3348 #define WMI_CHAN_REG_INFO2_MAX_TX_PWR GENMASK(15, 8) 3349 3350 struct ath12k_wmi_channel_params { 3351 __le32 tlv_header; 3352 __le32 mhz; 3353 __le32 band_center_freq1; 3354 __le32 band_center_freq2; 3355 __le32 info; 3356 __le32 reg_info_1; 3357 __le32 reg_info_2; 3358 } __packed; 3359 3360 enum wmi_sta_ps_mode { 3361 WMI_STA_PS_MODE_DISABLED = 0, 3362 WMI_STA_PS_MODE_ENABLED = 1, 3363 }; 3364 3365 #define WMI_SMPS_MASK_LOWER_16BITS 0xFF 3366 #define WMI_SMPS_MASK_UPPER_3BITS 0x7 3367 #define WMI_SMPS_PARAM_VALUE_SHIFT 29 3368 3369 #define ATH12K_WMI_FW_HANG_ASSERT_TYPE 1 3370 #define ATH12K_WMI_FW_HANG_DELAY 0 3371 3372 /* type, 0:unused 1: ASSERT 2: not respond detect command 3373 * delay_time_ms, the simulate will delay time 3374 */ 3375 3376 struct wmi_force_fw_hang_cmd { 3377 __le32 tlv_header; 3378 __le32 type; 3379 __le32 delay_time_ms; 3380 } __packed; 3381 3382 struct wmi_vdev_set_param_cmd { 3383 __le32 tlv_header; 3384 __le32 vdev_id; 3385 __le32 param_id; 3386 __le32 param_value; 3387 } __packed; 3388 3389 struct wmi_get_pdev_temperature_cmd { 3390 __le32 tlv_header; 3391 __le32 param; 3392 __le32 pdev_id; 3393 } __packed; 3394 3395 #define WMI_BEACON_TX_BUFFER_SIZE 512 3396 3397 struct wmi_bcn_tmpl_cmd { 3398 __le32 tlv_header; 3399 __le32 vdev_id; 3400 __le32 tim_ie_offset; 3401 __le32 buf_len; 3402 __le32 csa_switch_count_offset; 3403 __le32 ext_csa_switch_count_offset; 3404 __le32 csa_event_bitmap; 3405 __le32 mbssid_ie_offset; 3406 __le32 esp_ie_offset; 3407 } __packed; 3408 3409 struct wmi_vdev_install_key_cmd { 3410 __le32 tlv_header; 3411 __le32 vdev_id; 3412 struct ath12k_wmi_mac_addr_params peer_macaddr; 3413 __le32 key_idx; 3414 __le32 key_flags; 3415 __le32 key_cipher; 3416 __le64 key_rsc_counter; 3417 __le64 key_global_rsc_counter; 3418 __le64 key_tsc_counter; 3419 u8 wpi_key_rsc_counter[16]; 3420 u8 wpi_key_tsc_counter[16]; 3421 __le32 key_len; 3422 __le32 key_txmic_len; 3423 __le32 key_rxmic_len; 3424 __le32 is_group_key_id_valid; 3425 __le32 group_key_id; 3426 3427 /* Followed by key_data containing key followed by 3428 * tx mic and then rx mic 3429 */ 3430 } __packed; 3431 3432 struct wmi_vdev_install_key_arg { 3433 u32 vdev_id; 3434 const u8 *macaddr; 3435 u32 key_idx; 3436 u32 key_flags; 3437 u32 key_cipher; 3438 u32 key_len; 3439 u32 key_txmic_len; 3440 u32 key_rxmic_len; 3441 u64 key_rsc_counter; 3442 const void *key_data; 3443 }; 3444 3445 #define WMI_MAX_SUPPORTED_RATES 128 3446 #define WMI_HOST_MAX_HECAP_PHY_SIZE 3 3447 #define WMI_HOST_MAX_HE_RATE_SET 3 3448 #define WMI_HECAP_TXRX_MCS_NSS_IDX_80 0 3449 #define WMI_HECAP_TXRX_MCS_NSS_IDX_160 1 3450 #define WMI_HECAP_TXRX_MCS_NSS_IDX_80_80 2 3451 3452 struct wmi_rate_set_arg { 3453 u32 num_rates; 3454 u8 rates[WMI_MAX_SUPPORTED_RATES]; 3455 }; 3456 3457 struct ath12k_wmi_peer_assoc_arg { 3458 u32 vdev_id; 3459 u32 peer_new_assoc; 3460 u32 peer_associd; 3461 u32 peer_flags; 3462 u32 peer_caps; 3463 u32 peer_listen_intval; 3464 u32 peer_ht_caps; 3465 u32 peer_max_mpdu; 3466 u32 peer_mpdu_density; 3467 u32 peer_rate_caps; 3468 u32 peer_nss; 3469 u32 peer_vht_caps; 3470 u32 peer_phymode; 3471 u32 peer_ht_info[2]; 3472 struct wmi_rate_set_arg peer_legacy_rates; 3473 struct wmi_rate_set_arg peer_ht_rates; 3474 u32 rx_max_rate; 3475 u32 rx_mcs_set; 3476 u32 tx_max_rate; 3477 u32 tx_mcs_set; 3478 u8 vht_capable; 3479 u8 min_data_rate; 3480 u32 tx_max_mcs_nss; 3481 u32 peer_bw_rxnss_override; 3482 bool is_pmf_enabled; 3483 bool is_wme_set; 3484 bool qos_flag; 3485 bool apsd_flag; 3486 bool ht_flag; 3487 bool bw_40; 3488 bool bw_80; 3489 bool bw_160; 3490 bool stbc_flag; 3491 bool ldpc_flag; 3492 bool static_mimops_flag; 3493 bool dynamic_mimops_flag; 3494 bool spatial_mux_flag; 3495 bool vht_flag; 3496 bool vht_ng_flag; 3497 bool need_ptk_4_way; 3498 bool need_gtk_2_way; 3499 bool auth_flag; 3500 bool safe_mode_enabled; 3501 bool amsdu_disable; 3502 /* Use common structure */ 3503 u8 peer_mac[ETH_ALEN]; 3504 3505 bool he_flag; 3506 u32 peer_he_cap_macinfo[2]; 3507 u32 peer_he_cap_macinfo_internal; 3508 u32 peer_he_caps_6ghz; 3509 u32 peer_he_ops; 3510 u32 peer_he_cap_phyinfo[WMI_HOST_MAX_HECAP_PHY_SIZE]; 3511 u32 peer_he_mcs_count; 3512 u32 peer_he_rx_mcs_set[WMI_HOST_MAX_HE_RATE_SET]; 3513 u32 peer_he_tx_mcs_set[WMI_HOST_MAX_HE_RATE_SET]; 3514 bool twt_responder; 3515 bool twt_requester; 3516 struct ath12k_wmi_ppe_threshold_arg peer_ppet; 3517 }; 3518 3519 struct wmi_peer_assoc_complete_cmd { 3520 __le32 tlv_header; 3521 struct ath12k_wmi_mac_addr_params peer_macaddr; 3522 __le32 vdev_id; 3523 __le32 peer_new_assoc; 3524 __le32 peer_associd; 3525 __le32 peer_flags; 3526 __le32 peer_caps; 3527 __le32 peer_listen_intval; 3528 __le32 peer_ht_caps; 3529 __le32 peer_max_mpdu; 3530 __le32 peer_mpdu_density; 3531 __le32 peer_rate_caps; 3532 __le32 peer_nss; 3533 __le32 peer_vht_caps; 3534 __le32 peer_phymode; 3535 __le32 peer_ht_info[2]; 3536 __le32 num_peer_legacy_rates; 3537 __le32 num_peer_ht_rates; 3538 __le32 peer_bw_rxnss_override; 3539 struct ath12k_wmi_ppe_threshold_params peer_ppet; 3540 __le32 peer_he_cap_info; 3541 __le32 peer_he_ops; 3542 __le32 peer_he_cap_phy[WMI_MAX_HECAP_PHY_SIZE]; 3543 __le32 peer_he_mcs; 3544 __le32 peer_he_cap_info_ext; 3545 __le32 peer_he_cap_info_internal; 3546 __le32 min_data_rate; 3547 __le32 peer_he_caps_6ghz; 3548 } __packed; 3549 3550 struct wmi_stop_scan_cmd { 3551 __le32 tlv_header; 3552 __le32 requestor; 3553 __le32 scan_id; 3554 __le32 req_type; 3555 __le32 vdev_id; 3556 __le32 pdev_id; 3557 } __packed; 3558 3559 struct ath12k_wmi_scan_chan_list_arg { 3560 u32 pdev_id; 3561 u16 nallchans; 3562 struct ath12k_wmi_channel_arg channel[]; 3563 }; 3564 3565 struct wmi_scan_chan_list_cmd { 3566 __le32 tlv_header; 3567 __le32 num_scan_chans; 3568 __le32 flags; 3569 __le32 pdev_id; 3570 } __packed; 3571 3572 #define WMI_MGMT_SEND_DOWNLD_LEN 64 3573 3574 #define WMI_TX_PARAMS_DWORD0_POWER GENMASK(7, 0) 3575 #define WMI_TX_PARAMS_DWORD0_MCS_MASK GENMASK(19, 8) 3576 #define WMI_TX_PARAMS_DWORD0_NSS_MASK GENMASK(27, 20) 3577 #define WMI_TX_PARAMS_DWORD0_RETRY_LIMIT GENMASK(31, 28) 3578 3579 #define WMI_TX_PARAMS_DWORD1_CHAIN_MASK GENMASK(7, 0) 3580 #define WMI_TX_PARAMS_DWORD1_BW_MASK GENMASK(14, 8) 3581 #define WMI_TX_PARAMS_DWORD1_PREAMBLE_TYPE GENMASK(19, 15) 3582 #define WMI_TX_PARAMS_DWORD1_FRAME_TYPE BIT(20) 3583 #define WMI_TX_PARAMS_DWORD1_RSVD GENMASK(31, 21) 3584 3585 struct wmi_mgmt_send_cmd { 3586 __le32 tlv_header; 3587 __le32 vdev_id; 3588 __le32 desc_id; 3589 __le32 chanfreq; 3590 __le32 paddr_lo; 3591 __le32 paddr_hi; 3592 __le32 frame_len; 3593 __le32 buf_len; 3594 __le32 tx_params_valid; 3595 3596 /* This TLV is followed by struct wmi_mgmt_frame */ 3597 3598 /* Followed by struct wmi_mgmt_send_params */ 3599 } __packed; 3600 3601 struct wmi_sta_powersave_mode_cmd { 3602 __le32 tlv_header; 3603 __le32 vdev_id; 3604 __le32 sta_ps_mode; 3605 } __packed; 3606 3607 struct wmi_sta_smps_force_mode_cmd { 3608 __le32 tlv_header; 3609 __le32 vdev_id; 3610 __le32 forced_mode; 3611 } __packed; 3612 3613 struct wmi_sta_smps_param_cmd { 3614 __le32 tlv_header; 3615 __le32 vdev_id; 3616 __le32 param; 3617 __le32 value; 3618 } __packed; 3619 3620 struct ath12k_wmi_bcn_prb_info_params { 3621 __le32 tlv_header; 3622 __le32 caps; 3623 __le32 erp; 3624 } __packed; 3625 3626 enum { 3627 WMI_PDEV_SUSPEND, 3628 WMI_PDEV_SUSPEND_AND_DISABLE_INTR, 3629 }; 3630 3631 struct wmi_pdev_green_ap_ps_enable_cmd_param { 3632 __le32 tlv_header; 3633 __le32 pdev_id; 3634 __le32 enable; 3635 } __packed; 3636 3637 struct ath12k_wmi_ap_ps_arg { 3638 u32 vdev_id; 3639 u32 param; 3640 u32 value; 3641 }; 3642 3643 enum set_init_cc_type { 3644 WMI_COUNTRY_INFO_TYPE_ALPHA, 3645 WMI_COUNTRY_INFO_TYPE_COUNTRY_CODE, 3646 WMI_COUNTRY_INFO_TYPE_REGDOMAIN, 3647 }; 3648 3649 enum set_init_cc_flags { 3650 INVALID_CC, 3651 CC_IS_SET, 3652 REGDMN_IS_SET, 3653 ALPHA_IS_SET, 3654 }; 3655 3656 struct ath12k_wmi_init_country_arg { 3657 union { 3658 u16 country_code; 3659 u16 regdom_id; 3660 u8 alpha2[3]; 3661 } cc_info; 3662 enum set_init_cc_flags flags; 3663 }; 3664 3665 struct wmi_init_country_cmd { 3666 __le32 tlv_header; 3667 __le32 pdev_id; 3668 __le32 init_cc_type; 3669 union { 3670 __le32 country_code; 3671 __le32 regdom_id; 3672 __le32 alpha2; 3673 } cc_info; 3674 } __packed; 3675 3676 struct wmi_delba_send_cmd { 3677 __le32 tlv_header; 3678 __le32 vdev_id; 3679 struct ath12k_wmi_mac_addr_params peer_macaddr; 3680 __le32 tid; 3681 __le32 initiator; 3682 __le32 reasoncode; 3683 } __packed; 3684 3685 struct wmi_addba_setresponse_cmd { 3686 __le32 tlv_header; 3687 __le32 vdev_id; 3688 struct ath12k_wmi_mac_addr_params peer_macaddr; 3689 __le32 tid; 3690 __le32 statuscode; 3691 } __packed; 3692 3693 struct wmi_addba_send_cmd { 3694 __le32 tlv_header; 3695 __le32 vdev_id; 3696 struct ath12k_wmi_mac_addr_params peer_macaddr; 3697 __le32 tid; 3698 __le32 buffersize; 3699 } __packed; 3700 3701 struct wmi_addba_clear_resp_cmd { 3702 __le32 tlv_header; 3703 __le32 vdev_id; 3704 struct ath12k_wmi_mac_addr_params peer_macaddr; 3705 } __packed; 3706 3707 #define DFS_PHYERR_UNIT_TEST_CMD 0 3708 #define DFS_UNIT_TEST_MODULE 0x2b 3709 #define DFS_UNIT_TEST_TOKEN 0xAA 3710 3711 enum dfs_test_args_idx { 3712 DFS_TEST_CMDID = 0, 3713 DFS_TEST_PDEV_ID, 3714 DFS_TEST_RADAR_PARAM, 3715 DFS_MAX_TEST_ARGS, 3716 }; 3717 3718 struct wmi_dfs_unit_test_arg { 3719 u32 cmd_id; 3720 u32 pdev_id; 3721 u32 radar_param; 3722 }; 3723 3724 struct wmi_unit_test_cmd { 3725 __le32 tlv_header; 3726 __le32 vdev_id; 3727 __le32 module_id; 3728 __le32 num_args; 3729 __le32 diag_token; 3730 /* Followed by test args*/ 3731 } __packed; 3732 3733 #define MAX_SUPPORTED_RATES 128 3734 3735 #define WMI_PEER_AUTH 0x00000001 3736 #define WMI_PEER_QOS 0x00000002 3737 #define WMI_PEER_NEED_PTK_4_WAY 0x00000004 3738 #define WMI_PEER_NEED_GTK_2_WAY 0x00000010 3739 #define WMI_PEER_HE 0x00000400 3740 #define WMI_PEER_APSD 0x00000800 3741 #define WMI_PEER_HT 0x00001000 3742 #define WMI_PEER_40MHZ 0x00002000 3743 #define WMI_PEER_STBC 0x00008000 3744 #define WMI_PEER_LDPC 0x00010000 3745 #define WMI_PEER_DYN_MIMOPS 0x00020000 3746 #define WMI_PEER_STATIC_MIMOPS 0x00040000 3747 #define WMI_PEER_SPATIAL_MUX 0x00200000 3748 #define WMI_PEER_TWT_REQ 0x00400000 3749 #define WMI_PEER_TWT_RESP 0x00800000 3750 #define WMI_PEER_VHT 0x02000000 3751 #define WMI_PEER_80MHZ 0x04000000 3752 #define WMI_PEER_PMF 0x08000000 3753 /* TODO: Place holder for WLAN_PEER_F_PS_PRESEND_REQUIRED = 0x10000000. 3754 * Need to be cleaned up 3755 */ 3756 #define WMI_PEER_IS_P2P_CAPABLE 0x20000000 3757 #define WMI_PEER_160MHZ 0x40000000 3758 #define WMI_PEER_SAFEMODE_EN 0x80000000 3759 3760 struct ath12k_wmi_vht_rate_set_params { 3761 __le32 tlv_header; 3762 __le32 rx_max_rate; 3763 __le32 rx_mcs_set; 3764 __le32 tx_max_rate; 3765 __le32 tx_mcs_set; 3766 __le32 tx_max_mcs_nss; 3767 } __packed; 3768 3769 struct ath12k_wmi_he_rate_set_params { 3770 __le32 tlv_header; 3771 __le32 rx_mcs_set; 3772 __le32 tx_mcs_set; 3773 } __packed; 3774 3775 #define MAX_REG_RULES 10 3776 #define REG_ALPHA2_LEN 2 3777 #define MAX_6G_REG_RULES 5 3778 #define REG_US_5G_NUM_REG_RULES 4 3779 3780 enum wmi_start_event_param { 3781 WMI_VDEV_START_RESP_EVENT = 0, 3782 WMI_VDEV_RESTART_RESP_EVENT, 3783 }; 3784 3785 struct wmi_vdev_start_resp_event { 3786 __le32 vdev_id; 3787 __le32 requestor_id; 3788 /* enum wmi_start_event_param */ 3789 __le32 resp_type; 3790 __le32 status; 3791 __le32 chain_mask; 3792 __le32 smps_mode; 3793 union { 3794 __le32 mac_id; 3795 __le32 pdev_id; 3796 }; 3797 __le32 cfgd_tx_streams; 3798 __le32 cfgd_rx_streams; 3799 } __packed; 3800 3801 /* VDEV start response status codes */ 3802 enum wmi_vdev_start_resp_status_code { 3803 WMI_VDEV_START_RESPONSE_STATUS_SUCCESS = 0, 3804 WMI_VDEV_START_RESPONSE_INVALID_VDEVID = 1, 3805 WMI_VDEV_START_RESPONSE_NOT_SUPPORTED = 2, 3806 WMI_VDEV_START_RESPONSE_DFS_VIOLATION = 3, 3807 WMI_VDEV_START_RESPONSE_INVALID_REGDOMAIN = 4, 3808 }; 3809 3810 enum wmi_reg_6g_ap_type { 3811 WMI_REG_INDOOR_AP = 0, 3812 WMI_REG_STD_POWER_AP = 1, 3813 WMI_REG_VLP_AP = 2, 3814 WMI_REG_CURRENT_MAX_AP_TYPE, 3815 WMI_REG_MAX_SUPP_AP_TYPE = WMI_REG_VLP_AP, 3816 WMI_REG_MAX_AP_TYPE = 7, 3817 }; 3818 3819 enum wmi_reg_6g_client_type { 3820 WMI_REG_DEFAULT_CLIENT = 0, 3821 WMI_REG_SUBORDINATE_CLIENT = 1, 3822 WMI_REG_MAX_CLIENT_TYPE = 2, 3823 }; 3824 3825 /* Regulatory Rule Flags Passed by FW */ 3826 #define REGULATORY_CHAN_DISABLED BIT(0) 3827 #define REGULATORY_CHAN_NO_IR BIT(1) 3828 #define REGULATORY_CHAN_RADAR BIT(3) 3829 #define REGULATORY_CHAN_NO_OFDM BIT(6) 3830 #define REGULATORY_CHAN_INDOOR_ONLY BIT(9) 3831 3832 #define REGULATORY_CHAN_NO_HT40 BIT(4) 3833 #define REGULATORY_CHAN_NO_80MHZ BIT(7) 3834 #define REGULATORY_CHAN_NO_160MHZ BIT(8) 3835 #define REGULATORY_CHAN_NO_20MHZ BIT(11) 3836 #define REGULATORY_CHAN_NO_10MHZ BIT(12) 3837 3838 enum { 3839 WMI_REG_SET_CC_STATUS_PASS = 0, 3840 WMI_REG_CURRENT_ALPHA2_NOT_FOUND = 1, 3841 WMI_REG_INIT_ALPHA2_NOT_FOUND = 2, 3842 WMI_REG_SET_CC_CHANGE_NOT_ALLOWED = 3, 3843 WMI_REG_SET_CC_STATUS_NO_MEMORY = 4, 3844 WMI_REG_SET_CC_STATUS_FAIL = 5, 3845 }; 3846 3847 #define WMI_REG_CLIENT_MAX 4 3848 3849 struct wmi_reg_chan_list_cc_ext_event { 3850 __le32 status_code; 3851 __le32 phy_id; 3852 __le32 alpha2; 3853 __le32 num_phy; 3854 __le32 country_id; 3855 __le32 domain_code; 3856 __le32 dfs_region; 3857 __le32 phybitmap; 3858 __le32 min_bw_2g; 3859 __le32 max_bw_2g; 3860 __le32 min_bw_5g; 3861 __le32 max_bw_5g; 3862 __le32 num_2g_reg_rules; 3863 __le32 num_5g_reg_rules; 3864 __le32 client_type; 3865 __le32 rnr_tpe_usable; 3866 __le32 unspecified_ap_usable; 3867 __le32 domain_code_6g_ap_lpi; 3868 __le32 domain_code_6g_ap_sp; 3869 __le32 domain_code_6g_ap_vlp; 3870 __le32 domain_code_6g_client_lpi[WMI_REG_CLIENT_MAX]; 3871 __le32 domain_code_6g_client_sp[WMI_REG_CLIENT_MAX]; 3872 __le32 domain_code_6g_client_vlp[WMI_REG_CLIENT_MAX]; 3873 __le32 domain_code_6g_super_id; 3874 __le32 min_bw_6g_ap_sp; 3875 __le32 max_bw_6g_ap_sp; 3876 __le32 min_bw_6g_ap_lpi; 3877 __le32 max_bw_6g_ap_lpi; 3878 __le32 min_bw_6g_ap_vlp; 3879 __le32 max_bw_6g_ap_vlp; 3880 __le32 min_bw_6g_client_sp[WMI_REG_CLIENT_MAX]; 3881 __le32 max_bw_6g_client_sp[WMI_REG_CLIENT_MAX]; 3882 __le32 min_bw_6g_client_lpi[WMI_REG_CLIENT_MAX]; 3883 __le32 max_bw_6g_client_lpi[WMI_REG_CLIENT_MAX]; 3884 __le32 min_bw_6g_client_vlp[WMI_REG_CLIENT_MAX]; 3885 __le32 max_bw_6g_client_vlp[WMI_REG_CLIENT_MAX]; 3886 __le32 num_6g_reg_rules_ap_sp; 3887 __le32 num_6g_reg_rules_ap_lpi; 3888 __le32 num_6g_reg_rules_ap_vlp; 3889 __le32 num_6g_reg_rules_cl_sp[WMI_REG_CLIENT_MAX]; 3890 __le32 num_6g_reg_rules_cl_lpi[WMI_REG_CLIENT_MAX]; 3891 __le32 num_6g_reg_rules_cl_vlp[WMI_REG_CLIENT_MAX]; 3892 } __packed; 3893 3894 struct ath12k_wmi_reg_rule_ext_params { 3895 __le32 tlv_header; 3896 __le32 freq_info; 3897 __le32 bw_pwr_info; 3898 __le32 flag_info; 3899 __le32 psd_power_info; 3900 } __packed; 3901 3902 struct wmi_vdev_delete_resp_event { 3903 __le32 vdev_id; 3904 } __packed; 3905 3906 struct wmi_peer_delete_resp_event { 3907 __le32 vdev_id; 3908 struct ath12k_wmi_mac_addr_params peer_macaddr; 3909 } __packed; 3910 3911 struct wmi_bcn_tx_status_event { 3912 __le32 vdev_id; 3913 __le32 tx_status; 3914 } __packed; 3915 3916 struct wmi_vdev_stopped_event { 3917 __le32 vdev_id; 3918 } __packed; 3919 3920 struct wmi_pdev_bss_chan_info_event { 3921 __le32 pdev_id; 3922 __le32 freq; /* Units in MHz */ 3923 __le32 noise_floor; /* units are dBm */ 3924 /* rx clear - how often the channel was unused */ 3925 __le32 rx_clear_count_low; 3926 __le32 rx_clear_count_high; 3927 /* cycle count - elapsed time during measured period, in clock ticks */ 3928 __le32 cycle_count_low; 3929 __le32 cycle_count_high; 3930 /* tx cycle count - elapsed time spent in tx, in clock ticks */ 3931 __le32 tx_cycle_count_low; 3932 __le32 tx_cycle_count_high; 3933 /* rx cycle count - elapsed time spent in rx, in clock ticks */ 3934 __le32 rx_cycle_count_low; 3935 __le32 rx_cycle_count_high; 3936 /*rx_cycle cnt for my bss in 64bits format */ 3937 __le32 rx_bss_cycle_count_low; 3938 __le32 rx_bss_cycle_count_high; 3939 } __packed; 3940 3941 #define WMI_VDEV_INSTALL_KEY_COMPL_STATUS_SUCCESS 0 3942 3943 struct wmi_vdev_install_key_compl_event { 3944 __le32 vdev_id; 3945 struct ath12k_wmi_mac_addr_params peer_macaddr; 3946 __le32 key_idx; 3947 __le32 key_flags; 3948 __le32 status; 3949 } __packed; 3950 3951 struct wmi_vdev_install_key_complete_arg { 3952 u32 vdev_id; 3953 const u8 *macaddr; 3954 u32 key_idx; 3955 u32 key_flags; 3956 u32 status; 3957 }; 3958 3959 struct wmi_peer_assoc_conf_event { 3960 __le32 vdev_id; 3961 struct ath12k_wmi_mac_addr_params peer_macaddr; 3962 } __packed; 3963 3964 struct wmi_peer_assoc_conf_arg { 3965 u32 vdev_id; 3966 const u8 *macaddr; 3967 }; 3968 3969 struct wmi_fils_discovery_event { 3970 __le32 vdev_id; 3971 __le32 fils_tt; 3972 __le32 tbtt; 3973 } __packed; 3974 3975 struct wmi_probe_resp_tx_status_event { 3976 __le32 vdev_id; 3977 __le32 tx_status; 3978 } __packed; 3979 3980 struct wmi_pdev_ctl_failsafe_chk_event { 3981 __le32 pdev_id; 3982 __le32 ctl_failsafe_status; 3983 } __packed; 3984 3985 struct ath12k_wmi_pdev_csa_event { 3986 __le32 pdev_id; 3987 __le32 current_switch_count; 3988 __le32 num_vdevs; 3989 } __packed; 3990 3991 struct ath12k_wmi_pdev_radar_event { 3992 __le32 pdev_id; 3993 __le32 detection_mode; 3994 __le32 chan_freq; 3995 __le32 chan_width; 3996 __le32 detector_id; 3997 __le32 segment_id; 3998 __le32 timestamp; 3999 __le32 is_chirp; 4000 a_sle32 freq_offset; 4001 a_sle32 sidx; 4002 } __packed; 4003 4004 struct wmi_pdev_temperature_event { 4005 /* temperature value in Celsius degree */ 4006 a_sle32 temp; 4007 __le32 pdev_id; 4008 } __packed; 4009 4010 #define WMI_RX_STATUS_OK 0x00 4011 #define WMI_RX_STATUS_ERR_CRC 0x01 4012 #define WMI_RX_STATUS_ERR_DECRYPT 0x08 4013 #define WMI_RX_STATUS_ERR_MIC 0x10 4014 #define WMI_RX_STATUS_ERR_KEY_CACHE_MISS 0x20 4015 4016 #define WLAN_MGMT_TXRX_HOST_MAX_ANTENNA 4 4017 4018 struct ath12k_wmi_mgmt_rx_arg { 4019 u32 chan_freq; 4020 u32 channel; 4021 u32 snr; 4022 u8 rssi_ctl[WLAN_MGMT_TXRX_HOST_MAX_ANTENNA]; 4023 u32 rate; 4024 enum wmi_phy_mode phy_mode; 4025 u32 buf_len; 4026 int status; 4027 u32 flags; 4028 int rssi; 4029 u32 tsf_delta; 4030 u8 pdev_id; 4031 }; 4032 4033 #define ATH_MAX_ANTENNA 4 4034 4035 struct ath12k_wmi_mgmt_rx_params { 4036 __le32 channel; 4037 __le32 snr; 4038 __le32 rate; 4039 __le32 phy_mode; 4040 __le32 buf_len; 4041 __le32 status; 4042 __le32 rssi_ctl[ATH_MAX_ANTENNA]; 4043 __le32 flags; 4044 a_sle32 rssi; 4045 __le32 tsf_delta; 4046 __le32 rx_tsf_l32; 4047 __le32 rx_tsf_u32; 4048 __le32 pdev_id; 4049 __le32 chan_freq; 4050 } __packed; 4051 4052 #define MAX_ANTENNA_EIGHT 8 4053 4054 struct wmi_mgmt_tx_compl_event { 4055 __le32 desc_id; 4056 __le32 status; 4057 __le32 pdev_id; 4058 } __packed; 4059 4060 struct wmi_scan_event { 4061 __le32 event_type; /* %WMI_SCAN_EVENT_ */ 4062 __le32 reason; /* %WMI_SCAN_REASON_ */ 4063 __le32 channel_freq; /* only valid for WMI_SCAN_EVENT_FOREIGN_CHANNEL */ 4064 __le32 scan_req_id; 4065 __le32 scan_id; 4066 __le32 vdev_id; 4067 /* TSF Timestamp when the scan event (%WMI_SCAN_EVENT_) is completed 4068 * In case of AP it is TSF of the AP vdev 4069 * In case of STA connected state, this is the TSF of the AP 4070 * In case of STA not connected, it will be the free running HW timer 4071 */ 4072 __le32 tsf_timestamp; 4073 } __packed; 4074 4075 struct wmi_peer_sta_kickout_arg { 4076 const u8 *mac_addr; 4077 }; 4078 4079 struct wmi_peer_sta_kickout_event { 4080 struct ath12k_wmi_mac_addr_params peer_macaddr; 4081 } __packed; 4082 4083 enum wmi_roam_reason { 4084 WMI_ROAM_REASON_BETTER_AP = 1, 4085 WMI_ROAM_REASON_BEACON_MISS = 2, 4086 WMI_ROAM_REASON_LOW_RSSI = 3, 4087 WMI_ROAM_REASON_SUITABLE_AP_FOUND = 4, 4088 WMI_ROAM_REASON_HO_FAILED = 5, 4089 4090 /* keep last */ 4091 WMI_ROAM_REASON_MAX, 4092 }; 4093 4094 struct wmi_roam_event { 4095 __le32 vdev_id; 4096 __le32 reason; 4097 __le32 rssi; 4098 } __packed; 4099 4100 #define WMI_CHAN_INFO_START_RESP 0 4101 #define WMI_CHAN_INFO_END_RESP 1 4102 4103 struct wmi_chan_info_event { 4104 __le32 err_code; 4105 __le32 freq; 4106 __le32 cmd_flags; 4107 __le32 noise_floor; 4108 __le32 rx_clear_count; 4109 __le32 cycle_count; 4110 __le32 chan_tx_pwr_range; 4111 __le32 chan_tx_pwr_tp; 4112 __le32 rx_frame_count; 4113 __le32 my_bss_rx_cycle_count; 4114 __le32 rx_11b_mode_data_duration; 4115 __le32 tx_frame_cnt; 4116 __le32 mac_clk_mhz; 4117 __le32 vdev_id; 4118 } __packed; 4119 4120 struct ath12k_wmi_target_cap_arg { 4121 u32 phy_capability; 4122 u32 max_frag_entry; 4123 u32 num_rf_chains; 4124 u32 ht_cap_info; 4125 u32 vht_cap_info; 4126 u32 vht_supp_mcs; 4127 u32 hw_min_tx_power; 4128 u32 hw_max_tx_power; 4129 u32 sys_cap_info; 4130 u32 min_pkt_size_enable; 4131 u32 max_bcn_ie_size; 4132 u32 max_num_scan_channels; 4133 u32 max_supported_macs; 4134 u32 wmi_fw_sub_feat_caps; 4135 u32 txrx_chainmask; 4136 u32 default_dbs_hw_mode_index; 4137 u32 num_msdu_desc; 4138 }; 4139 4140 enum wmi_vdev_type { 4141 WMI_VDEV_TYPE_AP = 1, 4142 WMI_VDEV_TYPE_STA = 2, 4143 WMI_VDEV_TYPE_IBSS = 3, 4144 WMI_VDEV_TYPE_MONITOR = 4, 4145 }; 4146 4147 enum wmi_vdev_subtype { 4148 WMI_VDEV_SUBTYPE_NONE, 4149 WMI_VDEV_SUBTYPE_P2P_DEVICE, 4150 WMI_VDEV_SUBTYPE_P2P_CLIENT, 4151 WMI_VDEV_SUBTYPE_P2P_GO, 4152 WMI_VDEV_SUBTYPE_PROXY_STA, 4153 WMI_VDEV_SUBTYPE_MESH_NON_11S, 4154 WMI_VDEV_SUBTYPE_MESH_11S, 4155 }; 4156 4157 enum wmi_sta_powersave_param { 4158 WMI_STA_PS_PARAM_RX_WAKE_POLICY = 0, 4159 WMI_STA_PS_PARAM_TX_WAKE_THRESHOLD = 1, 4160 WMI_STA_PS_PARAM_PSPOLL_COUNT = 2, 4161 WMI_STA_PS_PARAM_INACTIVITY_TIME = 3, 4162 WMI_STA_PS_PARAM_UAPSD = 4, 4163 }; 4164 4165 enum wmi_sta_ps_param_uapsd { 4166 WMI_STA_PS_UAPSD_AC0_DELIVERY_EN = (1 << 0), 4167 WMI_STA_PS_UAPSD_AC0_TRIGGER_EN = (1 << 1), 4168 WMI_STA_PS_UAPSD_AC1_DELIVERY_EN = (1 << 2), 4169 WMI_STA_PS_UAPSD_AC1_TRIGGER_EN = (1 << 3), 4170 WMI_STA_PS_UAPSD_AC2_DELIVERY_EN = (1 << 4), 4171 WMI_STA_PS_UAPSD_AC2_TRIGGER_EN = (1 << 5), 4172 WMI_STA_PS_UAPSD_AC3_DELIVERY_EN = (1 << 6), 4173 WMI_STA_PS_UAPSD_AC3_TRIGGER_EN = (1 << 7), 4174 }; 4175 4176 enum wmi_sta_ps_param_tx_wake_threshold { 4177 WMI_STA_PS_TX_WAKE_THRESHOLD_NEVER = 0, 4178 WMI_STA_PS_TX_WAKE_THRESHOLD_ALWAYS = 1, 4179 4180 /* Values greater than one indicate that many TX attempts per beacon 4181 * interval before the STA will wake up 4182 */ 4183 }; 4184 4185 /* The maximum number of PS-Poll frames the FW will send in response to 4186 * traffic advertised in TIM before waking up (by sending a null frame with PS 4187 * = 0). Value 0 has a special meaning: there is no maximum count and the FW 4188 * will send as many PS-Poll as are necessary to retrieve buffered BU. This 4189 * parameter is used when the RX wake policy is 4190 * WMI_STA_PS_RX_WAKE_POLICY_POLL_UAPSD and ignored when the RX wake 4191 * policy is WMI_STA_PS_RX_WAKE_POLICY_WAKE. 4192 */ 4193 enum wmi_sta_ps_param_pspoll_count { 4194 WMI_STA_PS_PSPOLL_COUNT_NO_MAX = 0, 4195 /* Values greater than 0 indicate the maximum number of PS-Poll frames 4196 * FW will send before waking up. 4197 */ 4198 }; 4199 4200 /* U-APSD configuration of peer station from (re)assoc request and TSPECs */ 4201 enum wmi_ap_ps_param_uapsd { 4202 WMI_AP_PS_UAPSD_AC0_DELIVERY_EN = (1 << 0), 4203 WMI_AP_PS_UAPSD_AC0_TRIGGER_EN = (1 << 1), 4204 WMI_AP_PS_UAPSD_AC1_DELIVERY_EN = (1 << 2), 4205 WMI_AP_PS_UAPSD_AC1_TRIGGER_EN = (1 << 3), 4206 WMI_AP_PS_UAPSD_AC2_DELIVERY_EN = (1 << 4), 4207 WMI_AP_PS_UAPSD_AC2_TRIGGER_EN = (1 << 5), 4208 WMI_AP_PS_UAPSD_AC3_DELIVERY_EN = (1 << 6), 4209 WMI_AP_PS_UAPSD_AC3_TRIGGER_EN = (1 << 7), 4210 }; 4211 4212 /* U-APSD maximum service period of peer station */ 4213 enum wmi_ap_ps_peer_param_max_sp { 4214 WMI_AP_PS_PEER_PARAM_MAX_SP_UNLIMITED = 0, 4215 WMI_AP_PS_PEER_PARAM_MAX_SP_2 = 1, 4216 WMI_AP_PS_PEER_PARAM_MAX_SP_4 = 2, 4217 WMI_AP_PS_PEER_PARAM_MAX_SP_6 = 3, 4218 MAX_WMI_AP_PS_PEER_PARAM_MAX_SP, 4219 }; 4220 4221 enum wmi_ap_ps_peer_param { 4222 /** Set uapsd configuration for a given peer. 4223 * 4224 * This include the delivery and trigger enabled state for each AC. 4225 * The host MLME needs to set this based on AP capability and stations 4226 * request Set in the association request received from the station. 4227 * 4228 * Lower 8 bits of the value specify the UAPSD configuration. 4229 * 4230 * (see enum wmi_ap_ps_param_uapsd) 4231 * The default value is 0. 4232 */ 4233 WMI_AP_PS_PEER_PARAM_UAPSD = 0, 4234 4235 /** 4236 * Set the service period for a UAPSD capable station 4237 * 4238 * The service period from wme ie in the (re)assoc request frame. 4239 * 4240 * (see enum wmi_ap_ps_peer_param_max_sp) 4241 */ 4242 WMI_AP_PS_PEER_PARAM_MAX_SP = 1, 4243 4244 /** Time in seconds for aging out buffered frames 4245 * for STA in power save 4246 */ 4247 WMI_AP_PS_PEER_PARAM_AGEOUT_TIME = 2, 4248 4249 /** Specify frame types that are considered SIFS 4250 * RESP trigger frame 4251 */ 4252 WMI_AP_PS_PEER_PARAM_SIFS_RESP_FRMTYPE = 3, 4253 4254 /** Specifies the trigger state of TID. 4255 * Valid only for UAPSD frame type 4256 */ 4257 WMI_AP_PS_PEER_PARAM_SIFS_RESP_UAPSD = 4, 4258 4259 /* Specifies the WNM sleep state of a STA */ 4260 WMI_AP_PS_PEER_PARAM_WNM_SLEEP = 5, 4261 }; 4262 4263 #define DISABLE_SIFS_RESPONSE_TRIGGER 0 4264 4265 #define WMI_MAX_KEY_INDEX 3 4266 #define WMI_MAX_KEY_LEN 32 4267 4268 enum wmi_key_type { 4269 WMI_KEY_PAIRWISE = 0, 4270 WMI_KEY_GROUP = 1, 4271 }; 4272 4273 enum wmi_cipher_type { 4274 WMI_CIPHER_NONE = 0, /* clear key */ 4275 WMI_CIPHER_WEP = 1, 4276 WMI_CIPHER_TKIP = 2, 4277 WMI_CIPHER_AES_OCB = 3, 4278 WMI_CIPHER_AES_CCM = 4, 4279 WMI_CIPHER_WAPI = 5, 4280 WMI_CIPHER_CKIP = 6, 4281 WMI_CIPHER_AES_CMAC = 7, 4282 WMI_CIPHER_ANY = 8, 4283 WMI_CIPHER_AES_GCM = 9, 4284 WMI_CIPHER_AES_GMAC = 10, 4285 }; 4286 4287 /* Value to disable fixed rate setting */ 4288 #define WMI_FIXED_RATE_NONE (0xffff) 4289 4290 #define ATH12K_RC_VERSION_OFFSET 28 4291 #define ATH12K_RC_PREAMBLE_OFFSET 8 4292 #define ATH12K_RC_NSS_OFFSET 5 4293 4294 #define ATH12K_HW_RATE_CODE(rate, nss, preamble) \ 4295 ((1 << ATH12K_RC_VERSION_OFFSET) | \ 4296 ((nss) << ATH12K_RC_NSS_OFFSET) | \ 4297 ((preamble) << ATH12K_RC_PREAMBLE_OFFSET) | \ 4298 (rate)) 4299 4300 /* Preamble types to be used with VDEV fixed rate configuration */ 4301 enum wmi_rate_preamble { 4302 WMI_RATE_PREAMBLE_OFDM, 4303 WMI_RATE_PREAMBLE_CCK, 4304 WMI_RATE_PREAMBLE_HT, 4305 WMI_RATE_PREAMBLE_VHT, 4306 WMI_RATE_PREAMBLE_HE, 4307 }; 4308 4309 /** 4310 * enum wmi_rtscts_prot_mode - Enable/Disable RTS/CTS and CTS2Self Protection. 4311 * @WMI_RTS_CTS_DISABLED: RTS/CTS protection is disabled. 4312 * @WMI_USE_RTS_CTS: RTS/CTS Enabled. 4313 * @WMI_USE_CTS2SELF: CTS to self protection Enabled. 4314 */ 4315 enum wmi_rtscts_prot_mode { 4316 WMI_RTS_CTS_DISABLED = 0, 4317 WMI_USE_RTS_CTS = 1, 4318 WMI_USE_CTS2SELF = 2, 4319 }; 4320 4321 /** 4322 * enum wmi_rtscts_profile - Selection of RTS CTS profile along with enabling 4323 * protection mode. 4324 * @WMI_RTSCTS_FOR_NO_RATESERIES: Neither of rate-series should use RTS-CTS 4325 * @WMI_RTSCTS_FOR_SECOND_RATESERIES: Only second rate-series will use RTS-CTS 4326 * @WMI_RTSCTS_ACROSS_SW_RETRIES: Only the second rate-series will use RTS-CTS, 4327 * but if there's a sw retry, both the rate 4328 * series will use RTS-CTS. 4329 * @WMI_RTSCTS_ERP: RTS/CTS used for ERP protection for every PPDU. 4330 * @WMI_RTSCTS_FOR_ALL_RATESERIES: Enable RTS-CTS for all rate series. 4331 */ 4332 enum wmi_rtscts_profile { 4333 WMI_RTSCTS_FOR_NO_RATESERIES = 0, 4334 WMI_RTSCTS_FOR_SECOND_RATESERIES = 1, 4335 WMI_RTSCTS_ACROSS_SW_RETRIES = 2, 4336 WMI_RTSCTS_ERP = 3, 4337 WMI_RTSCTS_FOR_ALL_RATESERIES = 4, 4338 }; 4339 4340 #define WMI_SKB_HEADROOM sizeof(struct wmi_cmd_hdr) 4341 4342 enum wmi_sta_ps_param_rx_wake_policy { 4343 WMI_STA_PS_RX_WAKE_POLICY_WAKE = 0, 4344 WMI_STA_PS_RX_WAKE_POLICY_POLL_UAPSD = 1, 4345 }; 4346 4347 /* Do not change existing values! Used by ath12k_frame_mode parameter 4348 * module parameter. 4349 */ 4350 enum ath12k_hw_txrx_mode { 4351 ATH12K_HW_TXRX_RAW = 0, 4352 ATH12K_HW_TXRX_NATIVE_WIFI = 1, 4353 ATH12K_HW_TXRX_ETHERNET = 2, 4354 }; 4355 4356 struct wmi_wmm_params { 4357 __le32 tlv_header; 4358 __le32 cwmin; 4359 __le32 cwmax; 4360 __le32 aifs; 4361 __le32 txoplimit; 4362 __le32 acm; 4363 __le32 no_ack; 4364 } __packed; 4365 4366 struct wmi_wmm_params_arg { 4367 u8 acm; 4368 u8 aifs; 4369 u16 cwmin; 4370 u16 cwmax; 4371 u16 txop; 4372 u8 no_ack; 4373 }; 4374 4375 struct wmi_vdev_set_wmm_params_cmd { 4376 __le32 tlv_header; 4377 __le32 vdev_id; 4378 struct wmi_wmm_params wmm_params[4]; 4379 __le32 wmm_param_type; 4380 } __packed; 4381 4382 struct wmi_wmm_params_all_arg { 4383 struct wmi_wmm_params_arg ac_be; 4384 struct wmi_wmm_params_arg ac_bk; 4385 struct wmi_wmm_params_arg ac_vi; 4386 struct wmi_wmm_params_arg ac_vo; 4387 }; 4388 4389 #define ATH12K_TWT_DEF_STA_CONG_TIMER_MS 5000 4390 #define ATH12K_TWT_DEF_DEFAULT_SLOT_SIZE 10 4391 #define ATH12K_TWT_DEF_CONGESTION_THRESH_SETUP 50 4392 #define ATH12K_TWT_DEF_CONGESTION_THRESH_TEARDOWN 20 4393 #define ATH12K_TWT_DEF_CONGESTION_THRESH_CRITICAL 100 4394 #define ATH12K_TWT_DEF_INTERFERENCE_THRESH_TEARDOWN 80 4395 #define ATH12K_TWT_DEF_INTERFERENCE_THRESH_SETUP 50 4396 #define ATH12K_TWT_DEF_MIN_NO_STA_SETUP 10 4397 #define ATH12K_TWT_DEF_MIN_NO_STA_TEARDOWN 2 4398 #define ATH12K_TWT_DEF_NO_OF_BCAST_MCAST_SLOTS 2 4399 #define ATH12K_TWT_DEF_MIN_NO_TWT_SLOTS 2 4400 #define ATH12K_TWT_DEF_MAX_NO_STA_TWT 500 4401 #define ATH12K_TWT_DEF_MODE_CHECK_INTERVAL 10000 4402 #define ATH12K_TWT_DEF_ADD_STA_SLOT_INTERVAL 1000 4403 #define ATH12K_TWT_DEF_REMOVE_STA_SLOT_INTERVAL 5000 4404 4405 struct wmi_twt_enable_params_cmd { 4406 __le32 tlv_header; 4407 __le32 pdev_id; 4408 __le32 sta_cong_timer_ms; 4409 __le32 mbss_support; 4410 __le32 default_slot_size; 4411 __le32 congestion_thresh_setup; 4412 __le32 congestion_thresh_teardown; 4413 __le32 congestion_thresh_critical; 4414 __le32 interference_thresh_teardown; 4415 __le32 interference_thresh_setup; 4416 __le32 min_no_sta_setup; 4417 __le32 min_no_sta_teardown; 4418 __le32 no_of_bcast_mcast_slots; 4419 __le32 min_no_twt_slots; 4420 __le32 max_no_sta_twt; 4421 __le32 mode_check_interval; 4422 __le32 add_sta_slot_interval; 4423 __le32 remove_sta_slot_interval; 4424 } __packed; 4425 4426 struct wmi_twt_disable_params_cmd { 4427 __le32 tlv_header; 4428 __le32 pdev_id; 4429 } __packed; 4430 4431 struct wmi_obss_spatial_reuse_params_cmd { 4432 __le32 tlv_header; 4433 __le32 pdev_id; 4434 __le32 enable; 4435 a_sle32 obss_min; 4436 a_sle32 obss_max; 4437 __le32 vdev_id; 4438 } __packed; 4439 4440 #define ATH12K_BSS_COLOR_COLLISION_SCAN_PERIOD_MS 200 4441 #define ATH12K_OBSS_COLOR_COLLISION_DETECTION_DISABLE 0 4442 #define ATH12K_OBSS_COLOR_COLLISION_DETECTION 1 4443 4444 #define ATH12K_BSS_COLOR_STA_PERIODS 10000 4445 #define ATH12K_BSS_COLOR_AP_PERIODS 5000 4446 4447 struct wmi_obss_color_collision_cfg_params_cmd { 4448 __le32 tlv_header; 4449 __le32 vdev_id; 4450 __le32 flags; 4451 __le32 evt_type; 4452 __le32 current_bss_color; 4453 __le32 detection_period_ms; 4454 __le32 scan_period_ms; 4455 __le32 free_slot_expiry_time_ms; 4456 } __packed; 4457 4458 struct wmi_bss_color_change_enable_params_cmd { 4459 __le32 tlv_header; 4460 __le32 vdev_id; 4461 __le32 enable; 4462 } __packed; 4463 4464 #define ATH12K_IPV4_TH_SEED_SIZE 5 4465 #define ATH12K_IPV6_TH_SEED_SIZE 11 4466 4467 struct ath12k_wmi_pdev_lro_config_cmd { 4468 __le32 tlv_header; 4469 __le32 lro_enable; 4470 __le32 res; 4471 u32 th_4[ATH12K_IPV4_TH_SEED_SIZE]; 4472 u32 th_6[ATH12K_IPV6_TH_SEED_SIZE]; 4473 __le32 pdev_id; 4474 } __packed; 4475 4476 #define ATH12K_WMI_SPECTRAL_COUNT_DEFAULT 0 4477 #define ATH12K_WMI_SPECTRAL_PERIOD_DEFAULT 224 4478 #define ATH12K_WMI_SPECTRAL_PRIORITY_DEFAULT 1 4479 #define ATH12K_WMI_SPECTRAL_FFT_SIZE_DEFAULT 7 4480 #define ATH12K_WMI_SPECTRAL_GC_ENA_DEFAULT 1 4481 #define ATH12K_WMI_SPECTRAL_RESTART_ENA_DEFAULT 0 4482 #define ATH12K_WMI_SPECTRAL_NOISE_FLOOR_REF_DEFAULT -96 4483 #define ATH12K_WMI_SPECTRAL_INIT_DELAY_DEFAULT 80 4484 #define ATH12K_WMI_SPECTRAL_NB_TONE_THR_DEFAULT 12 4485 #define ATH12K_WMI_SPECTRAL_STR_BIN_THR_DEFAULT 8 4486 #define ATH12K_WMI_SPECTRAL_WB_RPT_MODE_DEFAULT 0 4487 #define ATH12K_WMI_SPECTRAL_RSSI_RPT_MODE_DEFAULT 0 4488 #define ATH12K_WMI_SPECTRAL_RSSI_THR_DEFAULT 0xf0 4489 #define ATH12K_WMI_SPECTRAL_PWR_FORMAT_DEFAULT 0 4490 #define ATH12K_WMI_SPECTRAL_RPT_MODE_DEFAULT 2 4491 #define ATH12K_WMI_SPECTRAL_BIN_SCALE_DEFAULT 1 4492 #define ATH12K_WMI_SPECTRAL_DBM_ADJ_DEFAULT 1 4493 #define ATH12K_WMI_SPECTRAL_CHN_MASK_DEFAULT 1 4494 4495 struct ath12k_wmi_vdev_spectral_conf_arg { 4496 u32 vdev_id; 4497 u32 scan_count; 4498 u32 scan_period; 4499 u32 scan_priority; 4500 u32 scan_fft_size; 4501 u32 scan_gc_ena; 4502 u32 scan_restart_ena; 4503 u32 scan_noise_floor_ref; 4504 u32 scan_init_delay; 4505 u32 scan_nb_tone_thr; 4506 u32 scan_str_bin_thr; 4507 u32 scan_wb_rpt_mode; 4508 u32 scan_rssi_rpt_mode; 4509 u32 scan_rssi_thr; 4510 u32 scan_pwr_format; 4511 u32 scan_rpt_mode; 4512 u32 scan_bin_scale; 4513 u32 scan_dbm_adj; 4514 u32 scan_chn_mask; 4515 }; 4516 4517 struct ath12k_wmi_vdev_spectral_conf_cmd { 4518 __le32 tlv_header; 4519 __le32 vdev_id; 4520 __le32 scan_count; 4521 __le32 scan_period; 4522 __le32 scan_priority; 4523 __le32 scan_fft_size; 4524 __le32 scan_gc_ena; 4525 __le32 scan_restart_ena; 4526 __le32 scan_noise_floor_ref; 4527 __le32 scan_init_delay; 4528 __le32 scan_nb_tone_thr; 4529 __le32 scan_str_bin_thr; 4530 __le32 scan_wb_rpt_mode; 4531 __le32 scan_rssi_rpt_mode; 4532 __le32 scan_rssi_thr; 4533 __le32 scan_pwr_format; 4534 __le32 scan_rpt_mode; 4535 __le32 scan_bin_scale; 4536 __le32 scan_dbm_adj; 4537 __le32 scan_chn_mask; 4538 } __packed; 4539 4540 #define ATH12K_WMI_SPECTRAL_TRIGGER_CMD_TRIGGER 1 4541 #define ATH12K_WMI_SPECTRAL_TRIGGER_CMD_CLEAR 2 4542 #define ATH12K_WMI_SPECTRAL_ENABLE_CMD_ENABLE 1 4543 #define ATH12K_WMI_SPECTRAL_ENABLE_CMD_DISABLE 2 4544 4545 struct ath12k_wmi_vdev_spectral_enable_cmd { 4546 __le32 tlv_header; 4547 __le32 vdev_id; 4548 __le32 trigger_cmd; 4549 __le32 enable_cmd; 4550 } __packed; 4551 4552 struct ath12k_wmi_pdev_dma_ring_cfg_arg { 4553 u32 tlv_header; 4554 u32 pdev_id; 4555 u32 module_id; 4556 u32 base_paddr_lo; 4557 u32 base_paddr_hi; 4558 u32 head_idx_paddr_lo; 4559 u32 head_idx_paddr_hi; 4560 u32 tail_idx_paddr_lo; 4561 u32 tail_idx_paddr_hi; 4562 u32 num_elems; 4563 u32 buf_size; 4564 u32 num_resp_per_event; 4565 u32 event_timeout_ms; 4566 }; 4567 4568 struct ath12k_wmi_pdev_dma_ring_cfg_req_cmd { 4569 __le32 tlv_header; 4570 __le32 pdev_id; 4571 __le32 module_id; /* see enum wmi_direct_buffer_module */ 4572 __le32 base_paddr_lo; 4573 __le32 base_paddr_hi; 4574 __le32 head_idx_paddr_lo; 4575 __le32 head_idx_paddr_hi; 4576 __le32 tail_idx_paddr_lo; 4577 __le32 tail_idx_paddr_hi; 4578 __le32 num_elems; /* Number of elems in the ring */ 4579 __le32 buf_size; /* size of allocated buffer in bytes */ 4580 4581 /* Number of wmi_dma_buf_release_entry packed together */ 4582 __le32 num_resp_per_event; 4583 4584 /* Target should timeout and send whatever resp 4585 * it has if this time expires, units in milliseconds 4586 */ 4587 __le32 event_timeout_ms; 4588 } __packed; 4589 4590 struct ath12k_wmi_dma_buf_release_fixed_params { 4591 __le32 pdev_id; 4592 __le32 module_id; 4593 __le32 num_buf_release_entry; 4594 __le32 num_meta_data_entry; 4595 } __packed; 4596 4597 struct ath12k_wmi_dma_buf_release_entry_params { 4598 __le32 tlv_header; 4599 __le32 paddr_lo; 4600 4601 /* Bits 11:0: address of data 4602 * Bits 31:12: host context data 4603 */ 4604 __le32 paddr_hi; 4605 } __packed; 4606 4607 #define WMI_SPECTRAL_META_INFO1_FREQ1 GENMASK(15, 0) 4608 #define WMI_SPECTRAL_META_INFO1_FREQ2 GENMASK(31, 16) 4609 4610 #define WMI_SPECTRAL_META_INFO2_CHN_WIDTH GENMASK(7, 0) 4611 4612 struct ath12k_wmi_dma_buf_release_meta_data_params { 4613 __le32 tlv_header; 4614 a_sle32 noise_floor[WMI_MAX_CHAINS]; 4615 __le32 reset_delay; 4616 __le32 freq1; 4617 __le32 freq2; 4618 __le32 ch_width; 4619 } __packed; 4620 4621 enum wmi_fils_discovery_cmd_type { 4622 WMI_FILS_DISCOVERY_CMD, 4623 WMI_UNSOL_BCAST_PROBE_RESP, 4624 }; 4625 4626 struct wmi_fils_discovery_cmd { 4627 __le32 tlv_header; 4628 __le32 vdev_id; 4629 __le32 interval; 4630 __le32 config; /* enum wmi_fils_discovery_cmd_type */ 4631 } __packed; 4632 4633 struct wmi_fils_discovery_tmpl_cmd { 4634 __le32 tlv_header; 4635 __le32 vdev_id; 4636 __le32 buf_len; 4637 } __packed; 4638 4639 struct wmi_probe_tmpl_cmd { 4640 __le32 tlv_header; 4641 __le32 vdev_id; 4642 __le32 buf_len; 4643 } __packed; 4644 4645 #define WMI_MAX_MEM_REQS 32 4646 4647 #define MAX_RADIOS 3 4648 4649 #define WMI_SERVICE_READY_TIMEOUT_HZ (5 * HZ) 4650 #define WMI_SEND_TIMEOUT_HZ (3 * HZ) 4651 4652 struct ath12k_wmi_pdev { 4653 struct ath12k_wmi_base *wmi_ab; 4654 enum ath12k_htc_ep_id eid; 4655 const struct wmi_peer_flags_map *peer_flags; 4656 u32 rx_decap_mode; 4657 }; 4658 4659 struct ath12k_wmi_base { 4660 struct ath12k_base *ab; 4661 struct ath12k_wmi_pdev wmi[MAX_RADIOS]; 4662 enum ath12k_htc_ep_id wmi_endpoint_id[MAX_RADIOS]; 4663 u32 max_msg_len[MAX_RADIOS]; 4664 4665 struct completion service_ready; 4666 struct completion unified_ready; 4667 DECLARE_BITMAP(svc_map, WMI_MAX_EXT_SERVICE); 4668 wait_queue_head_t tx_credits_wq; 4669 const struct wmi_peer_flags_map *peer_flags; 4670 u32 num_mem_chunks; 4671 u32 rx_decap_mode; 4672 struct ath12k_wmi_host_mem_chunk_arg mem_chunks[WMI_MAX_MEM_REQS]; 4673 4674 enum wmi_host_hw_mode_config_type preferred_hw_mode; 4675 4676 struct ath12k_wmi_target_cap_arg *targ_cap; 4677 }; 4678 4679 #define ATH12K_FW_STATS_BUF_SIZE (1024 * 1024) 4680 4681 void ath12k_wmi_init_qcn9274(struct ath12k_base *ab, 4682 struct ath12k_wmi_resource_config_arg *config); 4683 void ath12k_wmi_init_wcn7850(struct ath12k_base *ab, 4684 struct ath12k_wmi_resource_config_arg *config); 4685 int ath12k_wmi_cmd_send(struct ath12k_wmi_pdev *wmi, struct sk_buff *skb, 4686 u32 cmd_id); 4687 struct sk_buff *ath12k_wmi_alloc_skb(struct ath12k_wmi_base *wmi_sc, u32 len); 4688 int ath12k_wmi_mgmt_send(struct ath12k *ar, u32 vdev_id, u32 buf_id, 4689 struct sk_buff *frame); 4690 int ath12k_wmi_bcn_tmpl(struct ath12k *ar, u32 vdev_id, 4691 struct ieee80211_mutable_offsets *offs, 4692 struct sk_buff *bcn); 4693 int ath12k_wmi_vdev_down(struct ath12k *ar, u8 vdev_id); 4694 int ath12k_wmi_vdev_up(struct ath12k *ar, u32 vdev_id, u32 aid, 4695 const u8 *bssid); 4696 int ath12k_wmi_vdev_stop(struct ath12k *ar, u8 vdev_id); 4697 int ath12k_wmi_vdev_start(struct ath12k *ar, struct wmi_vdev_start_req_arg *arg, 4698 bool restart); 4699 int ath12k_wmi_set_peer_param(struct ath12k *ar, const u8 *peer_addr, 4700 u32 vdev_id, u32 param_id, u32 param_val); 4701 int ath12k_wmi_pdev_set_param(struct ath12k *ar, u32 param_id, 4702 u32 param_value, u8 pdev_id); 4703 int ath12k_wmi_pdev_set_ps_mode(struct ath12k *ar, int vdev_id, u32 enable); 4704 int ath12k_wmi_wait_for_unified_ready(struct ath12k_base *ab); 4705 int ath12k_wmi_cmd_init(struct ath12k_base *ab); 4706 int ath12k_wmi_wait_for_service_ready(struct ath12k_base *ab); 4707 int ath12k_wmi_connect(struct ath12k_base *ab); 4708 int ath12k_wmi_pdev_attach(struct ath12k_base *ab, 4709 u8 pdev_id); 4710 int ath12k_wmi_attach(struct ath12k_base *ab); 4711 void ath12k_wmi_detach(struct ath12k_base *ab); 4712 int ath12k_wmi_vdev_create(struct ath12k *ar, u8 *macaddr, 4713 struct ath12k_wmi_vdev_create_arg *arg); 4714 int ath12k_wmi_send_peer_create_cmd(struct ath12k *ar, 4715 struct ath12k_wmi_peer_create_arg *arg); 4716 int ath12k_wmi_vdev_set_param_cmd(struct ath12k *ar, u32 vdev_id, 4717 u32 param_id, u32 param_value); 4718 4719 int ath12k_wmi_set_sta_ps_param(struct ath12k *ar, u32 vdev_id, 4720 u32 param, u32 param_value); 4721 int ath12k_wmi_force_fw_hang_cmd(struct ath12k *ar, u32 type, u32 delay_time_ms); 4722 int ath12k_wmi_send_peer_delete_cmd(struct ath12k *ar, 4723 const u8 *peer_addr, u8 vdev_id); 4724 int ath12k_wmi_vdev_delete(struct ath12k *ar, u8 vdev_id); 4725 void ath12k_wmi_start_scan_init(struct ath12k *ar, 4726 struct ath12k_wmi_scan_req_arg *arg); 4727 int ath12k_wmi_send_scan_start_cmd(struct ath12k *ar, 4728 struct ath12k_wmi_scan_req_arg *arg); 4729 int ath12k_wmi_send_scan_stop_cmd(struct ath12k *ar, 4730 struct ath12k_wmi_scan_cancel_arg *arg); 4731 int ath12k_wmi_send_wmm_update_cmd(struct ath12k *ar, u32 vdev_id, 4732 struct wmi_wmm_params_all_arg *param); 4733 int ath12k_wmi_pdev_suspend(struct ath12k *ar, u32 suspend_opt, 4734 u32 pdev_id); 4735 int ath12k_wmi_pdev_resume(struct ath12k *ar, u32 pdev_id); 4736 4737 int ath12k_wmi_send_peer_assoc_cmd(struct ath12k *ar, 4738 struct ath12k_wmi_peer_assoc_arg *arg); 4739 int ath12k_wmi_vdev_install_key(struct ath12k *ar, 4740 struct wmi_vdev_install_key_arg *arg); 4741 int ath12k_wmi_pdev_bss_chan_info_request(struct ath12k *ar, 4742 enum wmi_bss_chan_info_req_type type); 4743 int ath12k_wmi_send_stats_request_cmd(struct ath12k *ar, u32 stats_id, 4744 u32 vdev_id, u32 pdev_id); 4745 int ath12k_wmi_send_pdev_temperature_cmd(struct ath12k *ar); 4746 int ath12k_wmi_send_peer_flush_tids_cmd(struct ath12k *ar, 4747 u8 peer_addr[ETH_ALEN], 4748 u32 peer_tid_bitmap, 4749 u8 vdev_id); 4750 int ath12k_wmi_send_set_ap_ps_param_cmd(struct ath12k *ar, u8 *peer_addr, 4751 struct ath12k_wmi_ap_ps_arg *arg); 4752 int ath12k_wmi_send_scan_chan_list_cmd(struct ath12k *ar, 4753 struct ath12k_wmi_scan_chan_list_arg *arg); 4754 int ath12k_wmi_send_dfs_phyerr_offload_enable_cmd(struct ath12k *ar, 4755 u32 pdev_id); 4756 int ath12k_wmi_addba_clear_resp(struct ath12k *ar, u32 vdev_id, const u8 *mac); 4757 int ath12k_wmi_addba_send(struct ath12k *ar, u32 vdev_id, const u8 *mac, 4758 u32 tid, u32 buf_size); 4759 int ath12k_wmi_addba_set_resp(struct ath12k *ar, u32 vdev_id, const u8 *mac, 4760 u32 tid, u32 status); 4761 int ath12k_wmi_delba_send(struct ath12k *ar, u32 vdev_id, const u8 *mac, 4762 u32 tid, u32 initiator, u32 reason); 4763 int ath12k_wmi_send_bcn_offload_control_cmd(struct ath12k *ar, 4764 u32 vdev_id, u32 bcn_ctrl_op); 4765 int ath12k_wmi_send_init_country_cmd(struct ath12k *ar, 4766 struct ath12k_wmi_init_country_arg *arg); 4767 int ath12k_wmi_peer_rx_reorder_queue_setup(struct ath12k *ar, 4768 int vdev_id, const u8 *addr, 4769 dma_addr_t paddr, u8 tid, 4770 u8 ba_window_size_valid, 4771 u32 ba_window_size); 4772 int 4773 ath12k_wmi_rx_reord_queue_remove(struct ath12k *ar, 4774 struct ath12k_wmi_rx_reorder_queue_remove_arg *arg); 4775 int ath12k_wmi_send_pdev_set_regdomain(struct ath12k *ar, 4776 struct ath12k_wmi_pdev_set_regdomain_arg *arg); 4777 int ath12k_wmi_simulate_radar(struct ath12k *ar); 4778 int ath12k_wmi_send_twt_enable_cmd(struct ath12k *ar, u32 pdev_id); 4779 int ath12k_wmi_send_twt_disable_cmd(struct ath12k *ar, u32 pdev_id); 4780 int ath12k_wmi_send_obss_spr_cmd(struct ath12k *ar, u32 vdev_id, 4781 struct ieee80211_he_obss_pd *he_obss_pd); 4782 int ath12k_wmi_obss_color_cfg_cmd(struct ath12k *ar, u32 vdev_id, 4783 u8 bss_color, u32 period, 4784 bool enable); 4785 int ath12k_wmi_send_bss_color_change_enable_cmd(struct ath12k *ar, u32 vdev_id, 4786 bool enable); 4787 int ath12k_wmi_pdev_lro_cfg(struct ath12k *ar, int pdev_id); 4788 int ath12k_wmi_pdev_dma_ring_cfg(struct ath12k *ar, 4789 struct ath12k_wmi_pdev_dma_ring_cfg_arg *arg); 4790 int ath12k_wmi_vdev_spectral_enable(struct ath12k *ar, u32 vdev_id, 4791 u32 trigger, u32 enable); 4792 int ath12k_wmi_vdev_spectral_conf(struct ath12k *ar, 4793 struct ath12k_wmi_vdev_spectral_conf_arg *arg); 4794 int ath12k_wmi_fils_discovery_tmpl(struct ath12k *ar, u32 vdev_id, 4795 struct sk_buff *tmpl); 4796 int ath12k_wmi_fils_discovery(struct ath12k *ar, u32 vdev_id, u32 interval, 4797 bool unsol_bcast_probe_resp_enabled); 4798 int ath12k_wmi_probe_resp_tmpl(struct ath12k *ar, u32 vdev_id, 4799 struct sk_buff *tmpl); 4800 int ath12k_wmi_set_hw_mode(struct ath12k_base *ab, 4801 enum wmi_host_hw_mode_config_type mode); 4802 4803 #endif 4804