| /* SPDX-License-Identifier: ISC */ |
| /* |
| * Copyright (c) 2005-2011 Atheros Communications Inc. |
| * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. |
| * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. |
| */ |
| |
| #ifndef _WMI_H_ |
| #define _WMI_H_ |
| |
| #include <linux/types.h> |
| #include <linux/ieee80211.h> |
| |
| /* |
| * This file specifies the WMI interface for the Unified Software |
| * Architecture. |
| * |
| * It includes definitions of all the commands and events. Commands are |
| * messages from the host to the target. Events and Replies are messages |
| * from the target to the host. |
| * |
| * Ownership of correctness in regards to WMI commands belongs to the host |
| * driver and the target is not required to validate parameters for value, |
| * proper range, or any other checking. |
| * |
| * Guidelines for extending this interface are below. |
| * |
| * 1. Add new WMI commands ONLY within the specified range - 0x9000 - 0x9fff |
| * |
| * 2. Use ONLY u32 type for defining member variables within WMI |
| * command/event structures. Do not use u8, u16, bool or |
| * enum types within these structures. |
| * |
| * 3. DO NOT define bit fields within structures. Implement bit fields |
| * using masks if necessary. Do not use the programming language's bit |
| * field definition. |
| * |
| * 4. Define macros for encode/decode of u8, u16 fields within |
| * the u32 variables. Use these macros for set/get of these fields. |
| * Try to use this to optimize the structure without bloating it with |
| * u32 variables for every lower sized field. |
| * |
| * 5. Do not use PACK/UNPACK attributes for the structures as each member |
| * variable is already 4-byte aligned by virtue of being a u32 |
| * type. |
| * |
| * 6. Comment each parameter part of the WMI command/event structure by |
| * using the 2 stars at the beginning of C comment instead of one star to |
| * enable HTML document generation using Doxygen. |
| * |
| */ |
| |
| /* Control Path */ |
| struct wmi_cmd_hdr { |
| __le32 cmd_id; |
| } __packed; |
| |
| #define WMI_CMD_HDR_CMD_ID_MASK 0x00FFFFFF |
| #define WMI_CMD_HDR_CMD_ID_LSB 0 |
| #define WMI_CMD_HDR_PLT_PRIV_MASK 0xFF000000 |
| #define WMI_CMD_HDR_PLT_PRIV_LSB 24 |
| |
| #define HTC_PROTOCOL_VERSION 0x0002 |
| #define WMI_PROTOCOL_VERSION 0x0002 |
| |
| /* |
| * There is no signed version of __le32, so for a temporary solution come |
| * up with our own version. The idea is from fs/ntfs/endian.h. |
| * |
| * Use a_ prefix so that it doesn't conflict if we get proper support to |
| * linux/types.h. |
| */ |
| typedef __s32 __bitwise a_sle32; |
| |
| static inline a_sle32 a_cpu_to_sle32(s32 val) |
| { |
| return (__force a_sle32)cpu_to_le32(val); |
| } |
| |
| static inline s32 a_sle32_to_cpu(a_sle32 val) |
| { |
| return le32_to_cpu((__force __le32)val); |
| } |
| |
| enum wmi_service { |
| WMI_SERVICE_BEACON_OFFLOAD = 0, |
| WMI_SERVICE_SCAN_OFFLOAD, |
| WMI_SERVICE_ROAM_OFFLOAD, |
| WMI_SERVICE_BCN_MISS_OFFLOAD, |
| WMI_SERVICE_STA_PWRSAVE, |
| WMI_SERVICE_STA_ADVANCED_PWRSAVE, |
| WMI_SERVICE_AP_UAPSD, |
| WMI_SERVICE_AP_DFS, |
| WMI_SERVICE_11AC, |
| WMI_SERVICE_BLOCKACK, |
| WMI_SERVICE_PHYERR, |
| WMI_SERVICE_BCN_FILTER, |
| WMI_SERVICE_RTT, |
| WMI_SERVICE_RATECTRL, |
| WMI_SERVICE_WOW, |
| WMI_SERVICE_RATECTRL_CACHE, |
| WMI_SERVICE_IRAM_TIDS, |
| WMI_SERVICE_ARPNS_OFFLOAD, |
| WMI_SERVICE_NLO, |
| WMI_SERVICE_GTK_OFFLOAD, |
| WMI_SERVICE_SCAN_SCH, |
| WMI_SERVICE_CSA_OFFLOAD, |
| WMI_SERVICE_CHATTER, |
| WMI_SERVICE_COEX_FREQAVOID, |
| WMI_SERVICE_PACKET_POWER_SAVE, |
| WMI_SERVICE_FORCE_FW_HANG, |
| WMI_SERVICE_GPIO, |
| WMI_SERVICE_STA_DTIM_PS_MODULATED_DTIM, |
| WMI_SERVICE_STA_UAPSD_BASIC_AUTO_TRIG, |
| WMI_SERVICE_STA_UAPSD_VAR_AUTO_TRIG, |
| WMI_SERVICE_STA_KEEP_ALIVE, |
| WMI_SERVICE_TX_ENCAP, |
| WMI_SERVICE_BURST, |
| WMI_SERVICE_SMART_ANTENNA_SW_SUPPORT, |
| WMI_SERVICE_SMART_ANTENNA_HW_SUPPORT, |
| WMI_SERVICE_ROAM_SCAN_OFFLOAD, |
| WMI_SERVICE_AP_PS_DETECT_OUT_OF_SYNC, |
| WMI_SERVICE_EARLY_RX, |
| WMI_SERVICE_STA_SMPS, |
| WMI_SERVICE_FWTEST, |
| WMI_SERVICE_STA_WMMAC, |
| WMI_SERVICE_TDLS, |
| WMI_SERVICE_MCC_BCN_INTERVAL_CHANGE, |
| WMI_SERVICE_ADAPTIVE_OCS, |
| WMI_SERVICE_BA_SSN_SUPPORT, |
| WMI_SERVICE_FILTER_IPSEC_NATKEEPALIVE, |
| WMI_SERVICE_WLAN_HB, |
| WMI_SERVICE_LTE_ANT_SHARE_SUPPORT, |
| WMI_SERVICE_BATCH_SCAN, |
| WMI_SERVICE_QPOWER, |
| WMI_SERVICE_PLMREQ, |
| WMI_SERVICE_THERMAL_MGMT, |
| WMI_SERVICE_RMC, |
| WMI_SERVICE_MHF_OFFLOAD, |
| WMI_SERVICE_COEX_SAR, |
| WMI_SERVICE_BCN_TXRATE_OVERRIDE, |
| WMI_SERVICE_NAN, |
| WMI_SERVICE_L1SS_STAT, |
| WMI_SERVICE_ESTIMATE_LINKSPEED, |
| WMI_SERVICE_OBSS_SCAN, |
| WMI_SERVICE_TDLS_OFFCHAN, |
| WMI_SERVICE_TDLS_UAPSD_BUFFER_STA, |
| WMI_SERVICE_TDLS_UAPSD_SLEEP_STA, |
| WMI_SERVICE_IBSS_PWRSAVE, |
| WMI_SERVICE_LPASS, |
| WMI_SERVICE_EXTSCAN, |
| WMI_SERVICE_D0WOW, |
| WMI_SERVICE_HSOFFLOAD, |
| WMI_SERVICE_ROAM_HO_OFFLOAD, |
| WMI_SERVICE_RX_FULL_REORDER, |
| WMI_SERVICE_DHCP_OFFLOAD, |
| WMI_SERVICE_STA_RX_IPA_OFFLOAD_SUPPORT, |
| WMI_SERVICE_MDNS_OFFLOAD, |
| WMI_SERVICE_SAP_AUTH_OFFLOAD, |
| WMI_SERVICE_ATF, |
| WMI_SERVICE_COEX_GPIO, |
| WMI_SERVICE_ENHANCED_PROXY_STA, |
| WMI_SERVICE_TT, |
| WMI_SERVICE_PEER_CACHING, |
| WMI_SERVICE_AUX_SPECTRAL_INTF, |
| WMI_SERVICE_AUX_CHAN_LOAD_INTF, |
| WMI_SERVICE_BSS_CHANNEL_INFO_64, |
| WMI_SERVICE_EXT_RES_CFG_SUPPORT, |
| WMI_SERVICE_MESH_11S, |
| WMI_SERVICE_MESH_NON_11S, |
| WMI_SERVICE_PEER_STATS, |
| WMI_SERVICE_RESTRT_CHNL_SUPPORT, |
| WMI_SERVICE_PERIODIC_CHAN_STAT_SUPPORT, |
| WMI_SERVICE_TX_MODE_PUSH_ONLY, |
| WMI_SERVICE_TX_MODE_PUSH_PULL, |
| WMI_SERVICE_TX_MODE_DYNAMIC, |
| WMI_SERVICE_VDEV_RX_FILTER, |
| WMI_SERVICE_BTCOEX, |
| WMI_SERVICE_CHECK_CAL_VERSION, |
| WMI_SERVICE_DBGLOG_WARN2, |
| WMI_SERVICE_BTCOEX_DUTY_CYCLE, |
| WMI_SERVICE_4_WIRE_COEX_SUPPORT, |
| WMI_SERVICE_EXTENDED_NSS_SUPPORT, |
| WMI_SERVICE_PROG_GPIO_BAND_SELECT, |
| WMI_SERVICE_SMART_LOGGING_SUPPORT, |
| WMI_SERVICE_TDLS_CONN_TRACKER_IN_HOST_MODE, |
| WMI_SERVICE_TDLS_EXPLICIT_MODE_ONLY, |
| WMI_SERVICE_MGMT_TX_WMI, |
| WMI_SERVICE_TDLS_WIDER_BANDWIDTH, |
| WMI_SERVICE_HTT_MGMT_TX_COMP_VALID_FLAGS, |
| WMI_SERVICE_HOST_DFS_CHECK_SUPPORT, |
| WMI_SERVICE_TPC_STATS_FINAL, |
| WMI_SERVICE_RESET_CHIP, |
| WMI_SERVICE_SPOOF_MAC_SUPPORT, |
| WMI_SERVICE_TX_DATA_ACK_RSSI, |
| WMI_SERVICE_VDEV_DIFFERENT_BEACON_INTERVAL_SUPPORT, |
| WMI_SERVICE_VDEV_DISABLE_4_ADDR_SRC_LRN_SUPPORT, |
| WMI_SERVICE_BB_TIMING_CONFIG_SUPPORT, |
| WMI_SERVICE_THERM_THROT, |
| WMI_SERVICE_RTT_RESPONDER_ROLE, |
| WMI_SERVICE_PER_PACKET_SW_ENCRYPT, |
| WMI_SERVICE_REPORT_AIRTIME, |
| WMI_SERVICE_SYNC_DELETE_CMDS, |
| WMI_SERVICE_TX_PWR_PER_PEER, |
| WMI_SERVICE_SUPPORT_EXTEND_ADDRESS, |
| WMI_SERVICE_PEER_TID_CONFIGS_SUPPORT, |
| WMI_SERVICE_EXT_PEER_TID_CONFIGS_SUPPORT, |
| |
| /* Remember to add the new value to wmi_service_name()! */ |
| |
| /* keep last */ |
| WMI_SERVICE_MAX, |
| }; |
| |
| enum wmi_10x_service { |
| WMI_10X_SERVICE_BEACON_OFFLOAD = 0, |
| WMI_10X_SERVICE_SCAN_OFFLOAD, |
| WMI_10X_SERVICE_ROAM_OFFLOAD, |
| WMI_10X_SERVICE_BCN_MISS_OFFLOAD, |
| WMI_10X_SERVICE_STA_PWRSAVE, |
| WMI_10X_SERVICE_STA_ADVANCED_PWRSAVE, |
| WMI_10X_SERVICE_AP_UAPSD, |
| WMI_10X_SERVICE_AP_DFS, |
| WMI_10X_SERVICE_11AC, |
| WMI_10X_SERVICE_BLOCKACK, |
| WMI_10X_SERVICE_PHYERR, |
| WMI_10X_SERVICE_BCN_FILTER, |
| WMI_10X_SERVICE_RTT, |
| WMI_10X_SERVICE_RATECTRL, |
| WMI_10X_SERVICE_WOW, |
| WMI_10X_SERVICE_RATECTRL_CACHE, |
| WMI_10X_SERVICE_IRAM_TIDS, |
| WMI_10X_SERVICE_BURST, |
| |
| /* introduced in 10.2 */ |
| WMI_10X_SERVICE_SMART_ANTENNA_SW_SUPPORT, |
| WMI_10X_SERVICE_FORCE_FW_HANG, |
| WMI_10X_SERVICE_SMART_ANTENNA_HW_SUPPORT, |
| WMI_10X_SERVICE_ATF, |
| WMI_10X_SERVICE_COEX_GPIO, |
| WMI_10X_SERVICE_AUX_SPECTRAL_INTF, |
| WMI_10X_SERVICE_AUX_CHAN_LOAD_INTF, |
| WMI_10X_SERVICE_BSS_CHANNEL_INFO_64, |
| WMI_10X_SERVICE_MESH, |
| WMI_10X_SERVICE_EXT_RES_CFG_SUPPORT, |
| WMI_10X_SERVICE_PEER_STATS, |
| WMI_10X_SERVICE_RESET_CHIP, |
| WMI_10X_SERVICE_HTT_MGMT_TX_COMP_VALID_FLAGS, |
| WMI_10X_SERVICE_VDEV_BCN_RATE_CONTROL, |
| WMI_10X_SERVICE_PER_PACKET_SW_ENCRYPT, |
| WMI_10X_SERVICE_BB_TIMING_CONFIG_SUPPORT, |
| }; |
| |
| enum wmi_main_service { |
| WMI_MAIN_SERVICE_BEACON_OFFLOAD = 0, |
| WMI_MAIN_SERVICE_SCAN_OFFLOAD, |
| WMI_MAIN_SERVICE_ROAM_OFFLOAD, |
| WMI_MAIN_SERVICE_BCN_MISS_OFFLOAD, |
| WMI_MAIN_SERVICE_STA_PWRSAVE, |
| WMI_MAIN_SERVICE_STA_ADVANCED_PWRSAVE, |
| WMI_MAIN_SERVICE_AP_UAPSD, |
| WMI_MAIN_SERVICE_AP_DFS, |
| WMI_MAIN_SERVICE_11AC, |
| WMI_MAIN_SERVICE_BLOCKACK, |
| WMI_MAIN_SERVICE_PHYERR, |
| WMI_MAIN_SERVICE_BCN_FILTER, |
| WMI_MAIN_SERVICE_RTT, |
| WMI_MAIN_SERVICE_RATECTRL, |
| WMI_MAIN_SERVICE_WOW, |
| WMI_MAIN_SERVICE_RATECTRL_CACHE, |
| WMI_MAIN_SERVICE_IRAM_TIDS, |
| WMI_MAIN_SERVICE_ARPNS_OFFLOAD, |
| WMI_MAIN_SERVICE_NLO, |
| WMI_MAIN_SERVICE_GTK_OFFLOAD, |
| WMI_MAIN_SERVICE_SCAN_SCH, |
| WMI_MAIN_SERVICE_CSA_OFFLOAD, |
| WMI_MAIN_SERVICE_CHATTER, |
| WMI_MAIN_SERVICE_COEX_FREQAVOID, |
| WMI_MAIN_SERVICE_PACKET_POWER_SAVE, |
| WMI_MAIN_SERVICE_FORCE_FW_HANG, |
| WMI_MAIN_SERVICE_GPIO, |
| WMI_MAIN_SERVICE_STA_DTIM_PS_MODULATED_DTIM, |
| WMI_MAIN_SERVICE_STA_UAPSD_BASIC_AUTO_TRIG, |
| WMI_MAIN_SERVICE_STA_UAPSD_VAR_AUTO_TRIG, |
| WMI_MAIN_SERVICE_STA_KEEP_ALIVE, |
| WMI_MAIN_SERVICE_TX_ENCAP, |
| }; |
| |
| enum wmi_10_4_service { |
| WMI_10_4_SERVICE_BEACON_OFFLOAD = 0, |
| WMI_10_4_SERVICE_SCAN_OFFLOAD, |
| WMI_10_4_SERVICE_ROAM_OFFLOAD, |
| WMI_10_4_SERVICE_BCN_MISS_OFFLOAD, |
| WMI_10_4_SERVICE_STA_PWRSAVE, |
| WMI_10_4_SERVICE_STA_ADVANCED_PWRSAVE, |
| WMI_10_4_SERVICE_AP_UAPSD, |
| WMI_10_4_SERVICE_AP_DFS, |
| WMI_10_4_SERVICE_11AC, |
| WMI_10_4_SERVICE_BLOCKACK, |
| WMI_10_4_SERVICE_PHYERR, |
| WMI_10_4_SERVICE_BCN_FILTER, |
| WMI_10_4_SERVICE_RTT, |
| WMI_10_4_SERVICE_RATECTRL, |
| WMI_10_4_SERVICE_WOW, |
| WMI_10_4_SERVICE_RATECTRL_CACHE, |
| WMI_10_4_SERVICE_IRAM_TIDS, |
| WMI_10_4_SERVICE_BURST, |
| WMI_10_4_SERVICE_SMART_ANTENNA_SW_SUPPORT, |
| WMI_10_4_SERVICE_GTK_OFFLOAD, |
| WMI_10_4_SERVICE_SCAN_SCH, |
| WMI_10_4_SERVICE_CSA_OFFLOAD, |
| WMI_10_4_SERVICE_CHATTER, |
| WMI_10_4_SERVICE_COEX_FREQAVOID, |
| WMI_10_4_SERVICE_PACKET_POWER_SAVE, |
| WMI_10_4_SERVICE_FORCE_FW_HANG, |
| WMI_10_4_SERVICE_SMART_ANTENNA_HW_SUPPORT, |
| WMI_10_4_SERVICE_GPIO, |
| WMI_10_4_SERVICE_STA_UAPSD_BASIC_AUTO_TRIG, |
| WMI_10_4_SERVICE_STA_UAPSD_VAR_AUTO_TRIG, |
| WMI_10_4_SERVICE_STA_KEEP_ALIVE, |
| WMI_10_4_SERVICE_TX_ENCAP, |
| WMI_10_4_SERVICE_AP_PS_DETECT_OUT_OF_SYNC, |
| WMI_10_4_SERVICE_EARLY_RX, |
| WMI_10_4_SERVICE_ENHANCED_PROXY_STA, |
| WMI_10_4_SERVICE_TT, |
| WMI_10_4_SERVICE_ATF, |
| WMI_10_4_SERVICE_PEER_CACHING, |
| WMI_10_4_SERVICE_COEX_GPIO, |
| WMI_10_4_SERVICE_AUX_SPECTRAL_INTF, |
| WMI_10_4_SERVICE_AUX_CHAN_LOAD_INTF, |
| WMI_10_4_SERVICE_BSS_CHANNEL_INFO_64, |
| WMI_10_4_SERVICE_EXT_RES_CFG_SUPPORT, |
| WMI_10_4_SERVICE_MESH_NON_11S, |
| WMI_10_4_SERVICE_RESTRT_CHNL_SUPPORT, |
| WMI_10_4_SERVICE_PEER_STATS, |
| WMI_10_4_SERVICE_MESH_11S, |
| WMI_10_4_SERVICE_PERIODIC_CHAN_STAT_SUPPORT, |
| WMI_10_4_SERVICE_TX_MODE_PUSH_ONLY, |
| WMI_10_4_SERVICE_TX_MODE_PUSH_PULL, |
| WMI_10_4_SERVICE_TX_MODE_DYNAMIC, |
| WMI_10_4_SERVICE_VDEV_RX_FILTER, |
| WMI_10_4_SERVICE_BTCOEX, |
| WMI_10_4_SERVICE_CHECK_CAL_VERSION, |
| WMI_10_4_SERVICE_DBGLOG_WARN2, |
| WMI_10_4_SERVICE_BTCOEX_DUTY_CYCLE, |
| WMI_10_4_SERVICE_4_WIRE_COEX_SUPPORT, |
| WMI_10_4_SERVICE_EXTENDED_NSS_SUPPORT, |
| WMI_10_4_SERVICE_PROG_GPIO_BAND_SELECT, |
| WMI_10_4_SERVICE_SMART_LOGGING_SUPPORT, |
| WMI_10_4_SERVICE_TDLS, |
| WMI_10_4_SERVICE_TDLS_OFFCHAN, |
| WMI_10_4_SERVICE_TDLS_UAPSD_BUFFER_STA, |
| WMI_10_4_SERVICE_TDLS_UAPSD_SLEEP_STA, |
| WMI_10_4_SERVICE_TDLS_CONN_TRACKER_IN_HOST_MODE, |
| WMI_10_4_SERVICE_TDLS_EXPLICIT_MODE_ONLY, |
| WMI_10_4_SERVICE_TDLS_WIDER_BANDWIDTH, |
| WMI_10_4_SERVICE_HTT_MGMT_TX_COMP_VALID_FLAGS, |
| WMI_10_4_SERVICE_HOST_DFS_CHECK_SUPPORT, |
| WMI_10_4_SERVICE_TPC_STATS_FINAL, |
| WMI_10_4_SERVICE_CFR_CAPTURE_SUPPORT, |
| WMI_10_4_SERVICE_TX_DATA_ACK_RSSI, |
| WMI_10_4_SERVICE_CFR_CAPTURE_IND_MSG_TYPE_LEGACY, |
| WMI_10_4_SERVICE_PER_PACKET_SW_ENCRYPT, |
| WMI_10_4_SERVICE_PEER_TID_CONFIGS_SUPPORT, |
| WMI_10_4_SERVICE_VDEV_BCN_RATE_CONTROL, |
| WMI_10_4_SERVICE_VDEV_DIFFERENT_BEACON_INTERVAL_SUPPORT, |
| WMI_10_4_SERVICE_HTT_ASSERT_TRIGGER_SUPPORT, |
| WMI_10_4_SERVICE_VDEV_FILTER_NEIGHBOR_RX_PACKETS, |
| WMI_10_4_SERVICE_VDEV_DISABLE_4_ADDR_SRC_LRN_SUPPORT, |
| WMI_10_4_SERVICE_PEER_CHWIDTH_CHANGE, |
| WMI_10_4_SERVICE_RX_FILTER_OUT_COUNT, |
| WMI_10_4_SERVICE_RTT_RESPONDER_ROLE, |
| WMI_10_4_SERVICE_EXT_PEER_TID_CONFIGS_SUPPORT, |
| WMI_10_4_SERVICE_REPORT_AIRTIME, |
| WMI_10_4_SERVICE_TX_PWR_PER_PEER, |
| WMI_10_4_SERVICE_FETCH_PEER_TX_PN, |
| WMI_10_4_SERVICE_MULTIPLE_VDEV_RESTART, |
| WMI_10_4_SERVICE_ENHANCED_RADIO_COUNTERS, |
| WMI_10_4_SERVICE_QINQ_SUPPORT, |
| WMI_10_4_SERVICE_RESET_CHIP, |
| }; |
| |
| static inline char *wmi_service_name(enum wmi_service service_id) |
| { |
| #define SVCSTR(x) case x: return #x |
| |
| switch (service_id) { |
| SVCSTR(WMI_SERVICE_BEACON_OFFLOAD); |
| SVCSTR(WMI_SERVICE_SCAN_OFFLOAD); |
| SVCSTR(WMI_SERVICE_ROAM_OFFLOAD); |
| SVCSTR(WMI_SERVICE_BCN_MISS_OFFLOAD); |
| SVCSTR(WMI_SERVICE_STA_PWRSAVE); |
| SVCSTR(WMI_SERVICE_STA_ADVANCED_PWRSAVE); |
| SVCSTR(WMI_SERVICE_AP_UAPSD); |
| SVCSTR(WMI_SERVICE_AP_DFS); |
| SVCSTR(WMI_SERVICE_11AC); |
| SVCSTR(WMI_SERVICE_BLOCKACK); |
| SVCSTR(WMI_SERVICE_PHYERR); |
| SVCSTR(WMI_SERVICE_BCN_FILTER); |
| SVCSTR(WMI_SERVICE_RTT); |
| SVCSTR(WMI_SERVICE_RATECTRL); |
| SVCSTR(WMI_SERVICE_WOW); |
| SVCSTR(WMI_SERVICE_RATECTRL_CACHE); |
| SVCSTR(WMI_SERVICE_IRAM_TIDS); |
| SVCSTR(WMI_SERVICE_ARPNS_OFFLOAD); |
| SVCSTR(WMI_SERVICE_NLO); |
| SVCSTR(WMI_SERVICE_GTK_OFFLOAD); |
| SVCSTR(WMI_SERVICE_SCAN_SCH); |
| SVCSTR(WMI_SERVICE_CSA_OFFLOAD); |
| SVCSTR(WMI_SERVICE_CHATTER); |
| SVCSTR(WMI_SERVICE_COEX_FREQAVOID); |
| SVCSTR(WMI_SERVICE_PACKET_POWER_SAVE); |
| SVCSTR(WMI_SERVICE_FORCE_FW_HANG); |
| SVCSTR(WMI_SERVICE_GPIO); |
| SVCSTR(WMI_SERVICE_STA_DTIM_PS_MODULATED_DTIM); |
| SVCSTR(WMI_SERVICE_STA_UAPSD_BASIC_AUTO_TRIG); |
| SVCSTR(WMI_SERVICE_STA_UAPSD_VAR_AUTO_TRIG); |
| SVCSTR(WMI_SERVICE_STA_KEEP_ALIVE); |
| SVCSTR(WMI_SERVICE_TX_ENCAP); |
| SVCSTR(WMI_SERVICE_BURST); |
| SVCSTR(WMI_SERVICE_SMART_ANTENNA_SW_SUPPORT); |
| SVCSTR(WMI_SERVICE_SMART_ANTENNA_HW_SUPPORT); |
| SVCSTR(WMI_SERVICE_ROAM_SCAN_OFFLOAD); |
| SVCSTR(WMI_SERVICE_AP_PS_DETECT_OUT_OF_SYNC); |
| SVCSTR(WMI_SERVICE_EARLY_RX); |
| SVCSTR(WMI_SERVICE_STA_SMPS); |
| SVCSTR(WMI_SERVICE_FWTEST); |
| SVCSTR(WMI_SERVICE_STA_WMMAC); |
| SVCSTR(WMI_SERVICE_TDLS); |
| SVCSTR(WMI_SERVICE_MCC_BCN_INTERVAL_CHANGE); |
| SVCSTR(WMI_SERVICE_ADAPTIVE_OCS); |
| SVCSTR(WMI_SERVICE_BA_SSN_SUPPORT); |
| SVCSTR(WMI_SERVICE_FILTER_IPSEC_NATKEEPALIVE); |
| SVCSTR(WMI_SERVICE_WLAN_HB); |
| SVCSTR(WMI_SERVICE_LTE_ANT_SHARE_SUPPORT); |
| SVCSTR(WMI_SERVICE_BATCH_SCAN); |
| SVCSTR(WMI_SERVICE_QPOWER); |
| SVCSTR(WMI_SERVICE_PLMREQ); |
| SVCSTR(WMI_SERVICE_THERMAL_MGMT); |
| SVCSTR(WMI_SERVICE_RMC); |
| SVCSTR(WMI_SERVICE_MHF_OFFLOAD); |
| SVCSTR(WMI_SERVICE_COEX_SAR); |
| SVCSTR(WMI_SERVICE_BCN_TXRATE_OVERRIDE); |
| SVCSTR(WMI_SERVICE_NAN); |
| SVCSTR(WMI_SERVICE_L1SS_STAT); |
| SVCSTR(WMI_SERVICE_ESTIMATE_LINKSPEED); |
| SVCSTR(WMI_SERVICE_OBSS_SCAN); |
| SVCSTR(WMI_SERVICE_TDLS_OFFCHAN); |
| SVCSTR(WMI_SERVICE_TDLS_UAPSD_BUFFER_STA); |
| SVCSTR(WMI_SERVICE_TDLS_UAPSD_SLEEP_STA); |
| SVCSTR(WMI_SERVICE_IBSS_PWRSAVE); |
| SVCSTR(WMI_SERVICE_LPASS); |
| SVCSTR(WMI_SERVICE_EXTSCAN); |
| SVCSTR(WMI_SERVICE_D0WOW); |
| SVCSTR(WMI_SERVICE_HSOFFLOAD); |
| SVCSTR(WMI_SERVICE_ROAM_HO_OFFLOAD); |
| SVCSTR(WMI_SERVICE_RX_FULL_REORDER); |
| SVCSTR(WMI_SERVICE_DHCP_OFFLOAD); |
| SVCSTR(WMI_SERVICE_STA_RX_IPA_OFFLOAD_SUPPORT); |
| SVCSTR(WMI_SERVICE_MDNS_OFFLOAD); |
| SVCSTR(WMI_SERVICE_SAP_AUTH_OFFLOAD); |
| SVCSTR(WMI_SERVICE_ATF); |
| SVCSTR(WMI_SERVICE_COEX_GPIO); |
| SVCSTR(WMI_SERVICE_ENHANCED_PROXY_STA); |
| SVCSTR(WMI_SERVICE_TT); |
| SVCSTR(WMI_SERVICE_PEER_CACHING); |
| SVCSTR(WMI_SERVICE_AUX_SPECTRAL_INTF); |
| SVCSTR(WMI_SERVICE_AUX_CHAN_LOAD_INTF); |
| SVCSTR(WMI_SERVICE_BSS_CHANNEL_INFO_64); |
| SVCSTR(WMI_SERVICE_EXT_RES_CFG_SUPPORT); |
| SVCSTR(WMI_SERVICE_MESH_11S); |
| SVCSTR(WMI_SERVICE_MESH_NON_11S); |
| SVCSTR(WMI_SERVICE_PEER_STATS); |
| SVCSTR(WMI_SERVICE_RESTRT_CHNL_SUPPORT); |
| SVCSTR(WMI_SERVICE_PERIODIC_CHAN_STAT_SUPPORT); |
| SVCSTR(WMI_SERVICE_TX_MODE_PUSH_ONLY); |
| SVCSTR(WMI_SERVICE_TX_MODE_PUSH_PULL); |
| SVCSTR(WMI_SERVICE_TX_MODE_DYNAMIC); |
| SVCSTR(WMI_SERVICE_VDEV_RX_FILTER); |
| SVCSTR(WMI_SERVICE_BTCOEX); |
| SVCSTR(WMI_SERVICE_CHECK_CAL_VERSION); |
| SVCSTR(WMI_SERVICE_DBGLOG_WARN2); |
| SVCSTR(WMI_SERVICE_BTCOEX_DUTY_CYCLE); |
| SVCSTR(WMI_SERVICE_4_WIRE_COEX_SUPPORT); |
| SVCSTR(WMI_SERVICE_EXTENDED_NSS_SUPPORT); |
| SVCSTR(WMI_SERVICE_PROG_GPIO_BAND_SELECT); |
| SVCSTR(WMI_SERVICE_SMART_LOGGING_SUPPORT); |
| SVCSTR(WMI_SERVICE_TDLS_CONN_TRACKER_IN_HOST_MODE); |
| SVCSTR(WMI_SERVICE_TDLS_EXPLICIT_MODE_ONLY); |
| SVCSTR(WMI_SERVICE_MGMT_TX_WMI); |
| SVCSTR(WMI_SERVICE_TDLS_WIDER_BANDWIDTH); |
| SVCSTR(WMI_SERVICE_HTT_MGMT_TX_COMP_VALID_FLAGS); |
| SVCSTR(WMI_SERVICE_HOST_DFS_CHECK_SUPPORT); |
| SVCSTR(WMI_SERVICE_TPC_STATS_FINAL); |
| SVCSTR(WMI_SERVICE_RESET_CHIP); |
| SVCSTR(WMI_SERVICE_SPOOF_MAC_SUPPORT); |
| SVCSTR(WMI_SERVICE_TX_DATA_ACK_RSSI); |
| SVCSTR(WMI_SERVICE_VDEV_DIFFERENT_BEACON_INTERVAL_SUPPORT); |
| SVCSTR(WMI_SERVICE_VDEV_DISABLE_4_ADDR_SRC_LRN_SUPPORT); |
| SVCSTR(WMI_SERVICE_BB_TIMING_CONFIG_SUPPORT); |
| SVCSTR(WMI_SERVICE_THERM_THROT); |
| SVCSTR(WMI_SERVICE_RTT_RESPONDER_ROLE); |
| SVCSTR(WMI_SERVICE_PER_PACKET_SW_ENCRYPT); |
| SVCSTR(WMI_SERVICE_REPORT_AIRTIME); |
| SVCSTR(WMI_SERVICE_SYNC_DELETE_CMDS); |
| SVCSTR(WMI_SERVICE_TX_PWR_PER_PEER); |
| SVCSTR(WMI_SERVICE_SUPPORT_EXTEND_ADDRESS); |
| SVCSTR(WMI_SERVICE_PEER_TID_CONFIGS_SUPPORT); |
| SVCSTR(WMI_SERVICE_EXT_PEER_TID_CONFIGS_SUPPORT); |
| |
| case WMI_SERVICE_MAX: |
| return NULL; |
| } |
| |
| #undef SVCSTR |
| |
| return NULL; |
| } |
| |
| #define WMI_SERVICE_IS_ENABLED(wmi_svc_bmap, svc_id, len) \ |
| ((svc_id) < (len) && \ |
| __le32_to_cpu((wmi_svc_bmap)[(svc_id) / (sizeof(u32))]) & \ |
| BIT((svc_id) % (sizeof(u32)))) |
| |
| /* This extension is required to accommodate new services, current limit |
| * for wmi_services is 64 as target is using only 4-bits of each 32-bit |
| * wmi_service word. Extending this to make use of remaining unused bits |
| * for new services. |
| */ |
| #define WMI_EXT_SERVICE_IS_ENABLED(wmi_svc_bmap, svc_id, len) \ |
| ((svc_id) >= (len) && \ |
| __le32_to_cpu((wmi_svc_bmap)[((svc_id) - (len)) / 28]) & \ |
| BIT(((((svc_id) - (len)) % 28) & 0x1f) + 4)) |
| |
| #define SVCMAP(x, y, len) \ |
| do { \ |
| if ((WMI_SERVICE_IS_ENABLED((in), (x), (len))) || \ |
| (WMI_EXT_SERVICE_IS_ENABLED((in), (x), (len)))) \ |
| __set_bit(y, out); \ |
| } while (0) |
| |
| static inline void wmi_10x_svc_map(const __le32 *in, unsigned long *out, |
| size_t len) |
| { |
| SVCMAP(WMI_10X_SERVICE_BEACON_OFFLOAD, |
| WMI_SERVICE_BEACON_OFFLOAD, len); |
| SVCMAP(WMI_10X_SERVICE_SCAN_OFFLOAD, |
| WMI_SERVICE_SCAN_OFFLOAD, len); |
| SVCMAP(WMI_10X_SERVICE_ROAM_OFFLOAD, |
| WMI_SERVICE_ROAM_OFFLOAD, len); |
| SVCMAP(WMI_10X_SERVICE_BCN_MISS_OFFLOAD, |
| WMI_SERVICE_BCN_MISS_OFFLOAD, len); |
| SVCMAP(WMI_10X_SERVICE_STA_PWRSAVE, |
| WMI_SERVICE_STA_PWRSAVE, len); |
| SVCMAP(WMI_10X_SERVICE_STA_ADVANCED_PWRSAVE, |
| WMI_SERVICE_STA_ADVANCED_PWRSAVE, len); |
| SVCMAP(WMI_10X_SERVICE_AP_UAPSD, |
| WMI_SERVICE_AP_UAPSD, len); |
| SVCMAP(WMI_10X_SERVICE_AP_DFS, |
| WMI_SERVICE_AP_DFS, len); |
| SVCMAP(WMI_10X_SERVICE_11AC, |
| WMI_SERVICE_11AC, len); |
| SVCMAP(WMI_10X_SERVICE_BLOCKACK, |
| WMI_SERVICE_BLOCKACK, len); |
| SVCMAP(WMI_10X_SERVICE_PHYERR, |
| WMI_SERVICE_PHYERR, len); |
| SVCMAP(WMI_10X_SERVICE_BCN_FILTER, |
| WMI_SERVICE_BCN_FILTER, len); |
| SVCMAP(WMI_10X_SERVICE_RTT, |
| WMI_SERVICE_RTT, len); |
| SVCMAP(WMI_10X_SERVICE_RATECTRL, |
| WMI_SERVICE_RATECTRL, len); |
| SVCMAP(WMI_10X_SERVICE_WOW, |
| WMI_SERVICE_WOW, len); |
| SVCMAP(WMI_10X_SERVICE_RATECTRL_CACHE, |
| WMI_SERVICE_RATECTRL_CACHE, len); |
| SVCMAP(WMI_10X_SERVICE_IRAM_TIDS, |
| WMI_SERVICE_IRAM_TIDS, len); |
| SVCMAP(WMI_10X_SERVICE_BURST, |
| WMI_SERVICE_BURST, len); |
| SVCMAP(WMI_10X_SERVICE_SMART_ANTENNA_SW_SUPPORT, |
| WMI_SERVICE_SMART_ANTENNA_SW_SUPPORT, len); |
| SVCMAP(WMI_10X_SERVICE_FORCE_FW_HANG, |
| WMI_SERVICE_FORCE_FW_HANG, len); |
| SVCMAP(WMI_10X_SERVICE_SMART_ANTENNA_HW_SUPPORT, |
| WMI_SERVICE_SMART_ANTENNA_HW_SUPPORT, len); |
| SVCMAP(WMI_10X_SERVICE_ATF, |
| WMI_SERVICE_ATF, len); |
| SVCMAP(WMI_10X_SERVICE_COEX_GPIO, |
| WMI_SERVICE_COEX_GPIO, len); |
| SVCMAP(WMI_10X_SERVICE_AUX_SPECTRAL_INTF, |
| WMI_SERVICE_AUX_SPECTRAL_INTF, len); |
| SVCMAP(WMI_10X_SERVICE_AUX_CHAN_LOAD_INTF, |
| WMI_SERVICE_AUX_CHAN_LOAD_INTF, len); |
| SVCMAP(WMI_10X_SERVICE_BSS_CHANNEL_INFO_64, |
| WMI_SERVICE_BSS_CHANNEL_INFO_64, len); |
| SVCMAP(WMI_10X_SERVICE_MESH, |
| WMI_SERVICE_MESH_11S, len); |
| SVCMAP(WMI_10X_SERVICE_EXT_RES_CFG_SUPPORT, |
| WMI_SERVICE_EXT_RES_CFG_SUPPORT, len); |
| SVCMAP(WMI_10X_SERVICE_PEER_STATS, |
| WMI_SERVICE_PEER_STATS, len); |
| SVCMAP(WMI_10X_SERVICE_RESET_CHIP, |
| WMI_SERVICE_RESET_CHIP, len); |
| SVCMAP(WMI_10X_SERVICE_HTT_MGMT_TX_COMP_VALID_FLAGS, |
| WMI_SERVICE_HTT_MGMT_TX_COMP_VALID_FLAGS, len); |
| SVCMAP(WMI_10X_SERVICE_BB_TIMING_CONFIG_SUPPORT, |
| WMI_SERVICE_BB_TIMING_CONFIG_SUPPORT, len); |
| SVCMAP(WMI_10X_SERVICE_PER_PACKET_SW_ENCRYPT, |
| WMI_SERVICE_PER_PACKET_SW_ENCRYPT, len); |
| } |
| |
| static inline void wmi_main_svc_map(const __le32 *in, unsigned long *out, |
| size_t len) |
| { |
| SVCMAP(WMI_MAIN_SERVICE_BEACON_OFFLOAD, |
| WMI_SERVICE_BEACON_OFFLOAD, len); |
| SVCMAP(WMI_MAIN_SERVICE_SCAN_OFFLOAD, |
| WMI_SERVICE_SCAN_OFFLOAD, len); |
| SVCMAP(WMI_MAIN_SERVICE_ROAM_OFFLOAD, |
| WMI_SERVICE_ROAM_OFFLOAD, len); |
| SVCMAP(WMI_MAIN_SERVICE_BCN_MISS_OFFLOAD, |
| WMI_SERVICE_BCN_MISS_OFFLOAD, len); |
| SVCMAP(WMI_MAIN_SERVICE_STA_PWRSAVE, |
| WMI_SERVICE_STA_PWRSAVE, len); |
| SVCMAP(WMI_MAIN_SERVICE_STA_ADVANCED_PWRSAVE, |
| WMI_SERVICE_STA_ADVANCED_PWRSAVE, len); |
| SVCMAP(WMI_MAIN_SERVICE_AP_UAPSD, |
| WMI_SERVICE_AP_UAPSD, len); |
| SVCMAP(WMI_MAIN_SERVICE_AP_DFS, |
| WMI_SERVICE_AP_DFS, len); |
| SVCMAP(WMI_MAIN_SERVICE_11AC, |
| WMI_SERVICE_11AC, len); |
| SVCMAP(WMI_MAIN_SERVICE_BLOCKACK, |
| WMI_SERVICE_BLOCKACK, len); |
| SVCMAP(WMI_MAIN_SERVICE_PHYERR, |
| WMI_SERVICE_PHYERR, len); |
| SVCMAP(WMI_MAIN_SERVICE_BCN_FILTER, |
| WMI_SERVICE_BCN_FILTER, len); |
| SVCMAP(WMI_MAIN_SERVICE_RTT, |
| WMI_SERVICE_RTT, len); |
| SVCMAP(WMI_MAIN_SERVICE_RATECTRL, |
| WMI_SERVICE_RATECTRL, len); |
| SVCMAP(WMI_MAIN_SERVICE_WOW, |
| WMI_SERVICE_WOW, len); |
| SVCMAP(WMI_MAIN_SERVICE_RATECTRL_CACHE, |
| WMI_SERVICE_RATECTRL_CACHE, len); |
| SVCMAP(WMI_MAIN_SERVICE_IRAM_TIDS, |
| WMI_SERVICE_IRAM_TIDS, len); |
| SVCMAP(WMI_MAIN_SERVICE_ARPNS_OFFLOAD, |
| WMI_SERVICE_ARPNS_OFFLOAD, len); |
| SVCMAP(WMI_MAIN_SERVICE_NLO, |
| WMI_SERVICE_NLO, len); |
| SVCMAP(WMI_MAIN_SERVICE_GTK_OFFLOAD, |
| WMI_SERVICE_GTK_OFFLOAD, len); |
| SVCMAP(WMI_MAIN_SERVICE_SCAN_SCH, |
| WMI_SERVICE_SCAN_SCH, len); |
| SVCMAP(WMI_MAIN_SERVICE_CSA_OFFLOAD, |
| WMI_SERVICE_CSA_OFFLOAD, len); |
| SVCMAP(WMI_MAIN_SERVICE_CHATTER, |
| WMI_SERVICE_CHATTER, len); |
| SVCMAP(WMI_MAIN_SERVICE_COEX_FREQAVOID, |
| WMI_SERVICE_COEX_FREQAVOID, len); |
| SVCMAP(WMI_MAIN_SERVICE_PACKET_POWER_SAVE, |
| WMI_SERVICE_PACKET_POWER_SAVE, len); |
| SVCMAP(WMI_MAIN_SERVICE_FORCE_FW_HANG, |
| WMI_SERVICE_FORCE_FW_HANG, len); |
| SVCMAP(WMI_MAIN_SERVICE_GPIO, |
| WMI_SERVICE_GPIO, len); |
| SVCMAP(WMI_MAIN_SERVICE_STA_DTIM_PS_MODULATED_DTIM, |
| WMI_SERVICE_STA_DTIM_PS_MODULATED_DTIM, len); |
| SVCMAP(WMI_MAIN_SERVICE_STA_UAPSD_BASIC_AUTO_TRIG, |
| WMI_SERVICE_STA_UAPSD_BASIC_AUTO_TRIG, len); |
| SVCMAP(WMI_MAIN_SERVICE_STA_UAPSD_VAR_AUTO_TRIG, |
| WMI_SERVICE_STA_UAPSD_VAR_AUTO_TRIG, len); |
| SVCMAP(WMI_MAIN_SERVICE_STA_KEEP_ALIVE, |
| WMI_SERVICE_STA_KEEP_ALIVE, len); |
| SVCMAP(WMI_MAIN_SERVICE_TX_ENCAP, |
| WMI_SERVICE_TX_ENCAP, len); |
| } |
| |
| static inline void wmi_10_4_svc_map(const __le32 *in, unsigned long *out, |
| size_t len) |
| { |
| SVCMAP(WMI_10_4_SERVICE_BEACON_OFFLOAD, |
| WMI_SERVICE_BEACON_OFFLOAD, len); |
| SVCMAP(WMI_10_4_SERVICE_SCAN_OFFLOAD, |
| WMI_SERVICE_SCAN_OFFLOAD, len); |
| SVCMAP(WMI_10_4_SERVICE_ROAM_OFFLOAD, |
| WMI_SERVICE_ROAM_OFFLOAD, len); |
| SVCMAP(WMI_10_4_SERVICE_BCN_MISS_OFFLOAD, |
| WMI_SERVICE_BCN_MISS_OFFLOAD, len); |
| SVCMAP(WMI_10_4_SERVICE_STA_PWRSAVE, |
| WMI_SERVICE_STA_PWRSAVE, len); |
| SVCMAP(WMI_10_4_SERVICE_STA_ADVANCED_PWRSAVE, |
| WMI_SERVICE_STA_ADVANCED_PWRSAVE, len); |
| SVCMAP(WMI_10_4_SERVICE_AP_UAPSD, |
| WMI_SERVICE_AP_UAPSD, len); |
| SVCMAP(WMI_10_4_SERVICE_AP_DFS, |
| WMI_SERVICE_AP_DFS, len); |
| SVCMAP(WMI_10_4_SERVICE_11AC, |
| WMI_SERVICE_11AC, len); |
| SVCMAP(WMI_10_4_SERVICE_BLOCKACK, |
| WMI_SERVICE_BLOCKACK, len); |
| SVCMAP(WMI_10_4_SERVICE_PHYERR, |
| WMI_SERVICE_PHYERR, len); |
| SVCMAP(WMI_10_4_SERVICE_BCN_FILTER, |
| WMI_SERVICE_BCN_FILTER, len); |
| SVCMAP(WMI_10_4_SERVICE_RTT, |
| WMI_SERVICE_RTT, len); |
| SVCMAP(WMI_10_4_SERVICE_RATECTRL, |
| WMI_SERVICE_RATECTRL, len); |
| SVCMAP(WMI_10_4_SERVICE_WOW, |
| WMI_SERVICE_WOW, len); |
| SVCMAP(WMI_10_4_SERVICE_RATECTRL_CACHE, |
| WMI_SERVICE_RATECTRL_CACHE, len); |
| SVCMAP(WMI_10_4_SERVICE_IRAM_TIDS, |
| WMI_SERVICE_IRAM_TIDS, len); |
| SVCMAP(WMI_10_4_SERVICE_BURST, |
| WMI_SERVICE_BURST, len); |
| SVCMAP(WMI_10_4_SERVICE_SMART_ANTENNA_SW_SUPPORT, |
| WMI_SERVICE_SMART_ANTENNA_SW_SUPPORT, len); |
| SVCMAP(WMI_10_4_SERVICE_GTK_OFFLOAD, |
| WMI_SERVICE_GTK_OFFLOAD, len); |
| SVCMAP(WMI_10_4_SERVICE_SCAN_SCH, |
| WMI_SERVICE_SCAN_SCH, len); |
| SVCMAP(WMI_10_4_SERVICE_CSA_OFFLOAD, |
| WMI_SERVICE_CSA_OFFLOAD, len); |
| SVCMAP(WMI_10_4_SERVICE_CHATTER, |
| WMI_SERVICE_CHATTER, len); |
| SVCMAP(WMI_10_4_SERVICE_COEX_FREQAVOID, |
| WMI_SERVICE_COEX_FREQAVOID, len); |
| SVCMAP(WMI_10_4_SERVICE_PACKET_POWER_SAVE, |
| WMI_SERVICE_PACKET_POWER_SAVE, len); |
| SVCMAP(WMI_10_4_SERVICE_FORCE_FW_HANG, |
| WMI_SERVICE_FORCE_FW_HANG, len); |
| SVCMAP(WMI_10_4_SERVICE_SMART_ANTENNA_HW_SUPPORT, |
| WMI_SERVICE_SMART_ANTENNA_HW_SUPPORT, len); |
| SVCMAP(WMI_10_4_SERVICE_GPIO, |
| WMI_SERVICE_GPIO, len); |
| SVCMAP(WMI_10_4_SERVICE_STA_UAPSD_BASIC_AUTO_TRIG, |
| WMI_SERVICE_STA_UAPSD_BASIC_AUTO_TRIG, len); |
| SVCMAP(WMI_10_4_SERVICE_STA_UAPSD_VAR_AUTO_TRIG, |
| WMI_SERVICE_STA_UAPSD_VAR_AUTO_TRIG, len); |
| SVCMAP(WMI_10_4_SERVICE_STA_KEEP_ALIVE, |
| WMI_SERVICE_STA_KEEP_ALIVE, len); |
| SVCMAP(WMI_10_4_SERVICE_TX_ENCAP, |
| WMI_SERVICE_TX_ENCAP, len); |
| SVCMAP(WMI_10_4_SERVICE_AP_PS_DETECT_OUT_OF_SYNC, |
| WMI_SERVICE_AP_PS_DETECT_OUT_OF_SYNC, len); |
| SVCMAP(WMI_10_4_SERVICE_EARLY_RX, |
| WMI_SERVICE_EARLY_RX, len); |
| SVCMAP(WMI_10_4_SERVICE_ENHANCED_PROXY_STA, |
| WMI_SERVICE_ENHANCED_PROXY_STA, len); |
| SVCMAP(WMI_10_4_SERVICE_TT, |
| WMI_SERVICE_TT, len); |
| SVCMAP(WMI_10_4_SERVICE_ATF, |
| WMI_SERVICE_ATF, len); |
| SVCMAP(WMI_10_4_SERVICE_PEER_CACHING, |
| WMI_SERVICE_PEER_CACHING, len); |
| SVCMAP(WMI_10_4_SERVICE_COEX_GPIO, |
| WMI_SERVICE_COEX_GPIO, len); |
| SVCMAP(WMI_10_4_SERVICE_AUX_SPECTRAL_INTF, |
| WMI_SERVICE_AUX_SPECTRAL_INTF, len); |
| SVCMAP(WMI_10_4_SERVICE_AUX_CHAN_LOAD_INTF, |
| WMI_SERVICE_AUX_CHAN_LOAD_INTF, len); |
| SVCMAP(WMI_10_4_SERVICE_BSS_CHANNEL_INFO_64, |
| WMI_SERVICE_BSS_CHANNEL_INFO_64, len); |
| SVCMAP(WMI_10_4_SERVICE_EXT_RES_CFG_SUPPORT, |
| WMI_SERVICE_EXT_RES_CFG_SUPPORT, len); |
| SVCMAP(WMI_10_4_SERVICE_MESH_NON_11S, |
| WMI_SERVICE_MESH_NON_11S, len); |
| SVCMAP(WMI_10_4_SERVICE_RESTRT_CHNL_SUPPORT, |
| WMI_SERVICE_RESTRT_CHNL_SUPPORT, len); |
| SVCMAP(WMI_10_4_SERVICE_PEER_STATS, |
| WMI_SERVICE_PEER_STATS, len); |
| SVCMAP(WMI_10_4_SERVICE_MESH_11S, |
| WMI_SERVICE_MESH_11S, len); |
| SVCMAP(WMI_10_4_SERVICE_PERIODIC_CHAN_STAT_SUPPORT, |
| WMI_SERVICE_PERIODIC_CHAN_STAT_SUPPORT, len); |
| SVCMAP(WMI_10_4_SERVICE_TX_MODE_PUSH_ONLY, |
| WMI_SERVICE_TX_MODE_PUSH_ONLY, len); |
| SVCMAP(WMI_10_4_SERVICE_TX_MODE_PUSH_PULL, |
| WMI_SERVICE_TX_MODE_PUSH_PULL, len); |
| SVCMAP(WMI_10_4_SERVICE_TX_MODE_DYNAMIC, |
| WMI_SERVICE_TX_MODE_DYNAMIC, len); |
| SVCMAP(WMI_10_4_SERVICE_VDEV_RX_FILTER, |
| WMI_SERVICE_VDEV_RX_FILTER, len); |
| SVCMAP(WMI_10_4_SERVICE_BTCOEX, |
| WMI_SERVICE_BTCOEX, len); |
| SVCMAP(WMI_10_4_SERVICE_CHECK_CAL_VERSION, |
| WMI_SERVICE_CHECK_CAL_VERSION, len); |
| SVCMAP(WMI_10_4_SERVICE_DBGLOG_WARN2, |
| WMI_SERVICE_DBGLOG_WARN2, len); |
| SVCMAP(WMI_10_4_SERVICE_BTCOEX_DUTY_CYCLE, |
| WMI_SERVICE_BTCOEX_DUTY_CYCLE, len); |
| SVCMAP(WMI_10_4_SERVICE_4_WIRE_COEX_SUPPORT, |
| WMI_SERVICE_4_WIRE_COEX_SUPPORT, len); |
| SVCMAP(WMI_10_4_SERVICE_EXTENDED_NSS_SUPPORT, |
| WMI_SERVICE_EXTENDED_NSS_SUPPORT, len); |
| SVCMAP(WMI_10_4_SERVICE_PROG_GPIO_BAND_SELECT, |
| WMI_SERVICE_PROG_GPIO_BAND_SELECT, len); |
| SVCMAP(WMI_10_4_SERVICE_SMART_LOGGING_SUPPORT, |
| WMI_SERVICE_SMART_LOGGING_SUPPORT, len); |
| SVCMAP(WMI_10_4_SERVICE_TDLS, |
| WMI_SERVICE_TDLS, len); |
| SVCMAP(WMI_10_4_SERVICE_TDLS_OFFCHAN, |
| WMI_SERVICE_TDLS_OFFCHAN, len); |
| SVCMAP(WMI_10_4_SERVICE_TDLS_UAPSD_BUFFER_STA, |
| WMI_SERVICE_TDLS_UAPSD_BUFFER_STA, len); |
| SVCMAP(WMI_10_4_SERVICE_TDLS_UAPSD_SLEEP_STA, |
| WMI_SERVICE_TDLS_UAPSD_SLEEP_STA, len); |
| SVCMAP(WMI_10_4_SERVICE_TDLS_CONN_TRACKER_IN_HOST_MODE, |
| WMI_SERVICE_TDLS_CONN_TRACKER_IN_HOST_MODE, len); |
| SVCMAP(WMI_10_4_SERVICE_TDLS_EXPLICIT_MODE_ONLY, |
| WMI_SERVICE_TDLS_EXPLICIT_MODE_ONLY, len); |
| SVCMAP(WMI_10_4_SERVICE_TDLS_WIDER_BANDWIDTH, |
| WMI_SERVICE_TDLS_WIDER_BANDWIDTH, len); |
| SVCMAP(WMI_10_4_SERVICE_HTT_MGMT_TX_COMP_VALID_FLAGS, |
| WMI_SERVICE_HTT_MGMT_TX_COMP_VALID_FLAGS, len); |
| SVCMAP(WMI_10_4_SERVICE_HOST_DFS_CHECK_SUPPORT, |
| WMI_SERVICE_HOST_DFS_CHECK_SUPPORT, len); |
| SVCMAP(WMI_10_4_SERVICE_TPC_STATS_FINAL, |
| WMI_SERVICE_TPC_STATS_FINAL, len); |
| SVCMAP(WMI_10_4_SERVICE_TX_DATA_ACK_RSSI, |
| WMI_SERVICE_TX_DATA_ACK_RSSI, len); |
| SVCMAP(WMI_10_4_SERVICE_VDEV_DIFFERENT_BEACON_INTERVAL_SUPPORT, |
| WMI_SERVICE_VDEV_DIFFERENT_BEACON_INTERVAL_SUPPORT, len); |
| SVCMAP(WMI_10_4_SERVICE_VDEV_DISABLE_4_ADDR_SRC_LRN_SUPPORT, |
| WMI_SERVICE_VDEV_DISABLE_4_ADDR_SRC_LRN_SUPPORT, len); |
| SVCMAP(WMI_10_4_SERVICE_RTT_RESPONDER_ROLE, |
| WMI_SERVICE_RTT_RESPONDER_ROLE, len); |
| SVCMAP(WMI_10_4_SERVICE_PER_PACKET_SW_ENCRYPT, |
| WMI_SERVICE_PER_PACKET_SW_ENCRYPT, len); |
| SVCMAP(WMI_10_4_SERVICE_REPORT_AIRTIME, |
| WMI_SERVICE_REPORT_AIRTIME, len); |
| SVCMAP(WMI_10_4_SERVICE_TX_PWR_PER_PEER, |
| WMI_SERVICE_TX_PWR_PER_PEER, len); |
| SVCMAP(WMI_10_4_SERVICE_RESET_CHIP, |
| WMI_SERVICE_RESET_CHIP, len); |
| SVCMAP(WMI_10_4_SERVICE_PEER_TID_CONFIGS_SUPPORT, |
| WMI_SERVICE_PEER_TID_CONFIGS_SUPPORT, len); |
| SVCMAP(WMI_10_4_SERVICE_EXT_PEER_TID_CONFIGS_SUPPORT, |
| WMI_SERVICE_PEER_TID_CONFIGS_SUPPORT, len); |
| } |
| |
| #undef SVCMAP |
| |
| /* 2 word representation of MAC addr */ |
| struct wmi_mac_addr { |
| union { |
| u8 addr[6]; |
| struct { |
| u32 word0; |
| u32 word1; |
| } __packed; |
| } __packed; |
| } __packed; |
| |
| struct wmi_cmd_map { |
| u32 init_cmdid; |
| u32 start_scan_cmdid; |
| u32 stop_scan_cmdid; |
| u32 scan_chan_list_cmdid; |
| u32 scan_sch_prio_tbl_cmdid; |
| u32 scan_prob_req_oui_cmdid; |
| u32 pdev_set_regdomain_cmdid; |
| u32 pdev_set_channel_cmdid; |
| u32 pdev_set_param_cmdid; |
| u32 pdev_pktlog_enable_cmdid; |
| u32 pdev_pktlog_disable_cmdid; |
| u32 pdev_set_wmm_params_cmdid; |
| u32 pdev_set_ht_cap_ie_cmdid; |
| u32 pdev_set_vht_cap_ie_cmdid; |
| u32 pdev_set_dscp_tid_map_cmdid; |
| u32 pdev_set_quiet_mode_cmdid; |
| u32 pdev_green_ap_ps_enable_cmdid; |
| u32 pdev_get_tpc_config_cmdid; |
| u32 pdev_set_base_macaddr_cmdid; |
| u32 vdev_create_cmdid; |
| u32 vdev_delete_cmdid; |
| u32 vdev_start_request_cmdid; |
| u32 vdev_restart_request_cmdid; |
| u32 vdev_up_cmdid; |
| u32 vdev_stop_cmdid; |
| u32 vdev_down_cmdid; |
| u32 vdev_set_param_cmdid; |
| u32 vdev_install_key_cmdid; |
| u32 peer_create_cmdid; |
| u32 peer_delete_cmdid; |
| u32 peer_flush_tids_cmdid; |
| u32 peer_set_param_cmdid; |
| u32 peer_assoc_cmdid; |
| u32 peer_add_wds_entry_cmdid; |
| u32 peer_remove_wds_entry_cmdid; |
| u32 peer_mcast_group_cmdid; |
| u32 bcn_tx_cmdid; |
| u32 pdev_send_bcn_cmdid; |
| u32 bcn_tmpl_cmdid; |
| u32 bcn_filter_rx_cmdid; |
| u32 prb_req_filter_rx_cmdid; |
| u32 mgmt_tx_cmdid; |
| u32 mgmt_tx_send_cmdid; |
| u32 prb_tmpl_cmdid; |
| u32 addba_clear_resp_cmdid; |
| u32 addba_send_cmdid; |
| u32 addba_status_cmdid; |
| u32 delba_send_cmdid; |
| u32 addba_set_resp_cmdid; |
| u32 send_singleamsdu_cmdid; |
| u32 sta_powersave_mode_cmdid; |
| u32 sta_powersave_param_cmdid; |
| u32 sta_mimo_ps_mode_cmdid; |
| u32 pdev_dfs_enable_cmdid; |
| u32 pdev_dfs_disable_cmdid; |
| u32 roam_scan_mode; |
| u32 roam_scan_rssi_threshold; |
| u32 roam_scan_period; |
| u32 roam_scan_rssi_change_threshold; |
| u32 roam_ap_profile; |
| u32 ofl_scan_add_ap_profile; |
| u32 ofl_scan_remove_ap_profile; |
| u32 ofl_scan_period; |
| u32 p2p_dev_set_device_info; |
| u32 p2p_dev_set_discoverability; |
| u32 p2p_go_set_beacon_ie; |
| u32 p2p_go_set_probe_resp_ie; |
| u32 p2p_set_vendor_ie_data_cmdid; |
| u32 ap_ps_peer_param_cmdid; |
| u32 ap_ps_peer_uapsd_coex_cmdid; |
| u32 peer_rate_retry_sched_cmdid; |
| u32 wlan_profile_trigger_cmdid; |
| u32 wlan_profile_set_hist_intvl_cmdid; |
| u32 wlan_profile_get_profile_data_cmdid; |
| u32 wlan_profile_enable_profile_id_cmdid; |
| u32 wlan_profile_list_profile_id_cmdid; |
| u32 pdev_suspend_cmdid; |
| u32 pdev_resume_cmdid; |
| u32 add_bcn_filter_cmdid; |
| u32 rmv_bcn_filter_cmdid; |
| u32 wow_add_wake_pattern_cmdid; |
| u32 wow_del_wake_pattern_cmdid; |
| u32 wow_enable_disable_wake_event_cmdid; |
| u32 wow_enable_cmdid; |
| u32 wow_hostwakeup_from_sleep_cmdid; |
| u32 rtt_measreq_cmdid; |
| u32 rtt_tsf_cmdid; |
| u32 vdev_spectral_scan_configure_cmdid; |
| u32 vdev_spectral_scan_enable_cmdid; |
| u32 request_stats_cmdid; |
| u32 request_peer_stats_info_cmdid; |
| u32 set_arp_ns_offload_cmdid; |
| u32 network_list_offload_config_cmdid; |
| u32 gtk_offload_cmdid; |
| u32 csa_offload_enable_cmdid; |
| u32 csa_offload_chanswitch_cmdid; |
| u32 chatter_set_mode_cmdid; |
| u32 peer_tid_addba_cmdid; |
| u32 peer_tid_delba_cmdid; |
| u32 sta_dtim_ps_method_cmdid; |
| u32 sta_uapsd_auto_trig_cmdid; |
| u32 sta_keepalive_cmd; |
| u32 echo_cmdid; |
| u32 pdev_utf_cmdid; |
| u32 dbglog_cfg_cmdid; |
| u32 pdev_qvit_cmdid; |
| u32 pdev_ftm_intg_cmdid; |
| u32 vdev_set_keepalive_cmdid; |
| u32 vdev_get_keepalive_cmdid; |
| u32 force_fw_hang_cmdid; |
| u32 gpio_config_cmdid; |
| u32 gpio_output_cmdid; |
| u32 pdev_get_temperature_cmdid; |
| u32 vdev_set_wmm_params_cmdid; |
| u32 tdls_set_state_cmdid; |
| u32 tdls_peer_update_cmdid; |
| u32 adaptive_qcs_cmdid; |
| u32 scan_update_request_cmdid; |
| u32 vdev_standby_response_cmdid; |
| u32 vdev_resume_response_cmdid; |
| u32 wlan_peer_caching_add_peer_cmdid; |
| u32 wlan_peer_caching_evict_peer_cmdid; |
| u32 wlan_peer_caching_restore_peer_cmdid; |
| u32 wlan_peer_caching_print_all_peers_info_cmdid; |
| u32 peer_update_wds_entry_cmdid; |
| u32 peer_add_proxy_sta_entry_cmdid; |
| u32 rtt_keepalive_cmdid; |
| u32 oem_req_cmdid; |
| u32 nan_cmdid; |
| u32 vdev_ratemask_cmdid; |
| u32 qboost_cfg_cmdid; |
| u32 pdev_smart_ant_enable_cmdid; |
| u32 pdev_smart_ant_set_rx_antenna_cmdid; |
| u32 peer_smart_ant_set_tx_antenna_cmdid; |
| u32 peer_smart_ant_set_train_info_cmdid; |
| u32 peer_smart_ant_set_node_config_ops_cmdid; |
| u32 pdev_set_antenna_switch_table_cmdid; |
| u32 pdev_set_ctl_table_cmdid; |
| u32 pdev_set_mimogain_table_cmdid; |
| u32 pdev_ratepwr_table_cmdid; |
| u32 pdev_ratepwr_chainmsk_table_cmdid; |
| u32 pdev_fips_cmdid; |
| u32 tt_set_conf_cmdid; |
| u32 fwtest_cmdid; |
| u32 vdev_atf_request_cmdid; |
| u32 peer_atf_request_cmdid; |
| u32 pdev_get_ani_cck_config_cmdid; |
| u32 pdev_get_ani_ofdm_config_cmdid; |
| u32 pdev_reserve_ast_entry_cmdid; |
| u32 pdev_get_nfcal_power_cmdid; |
| u32 pdev_get_tpc_cmdid; |
| u32 pdev_get_ast_info_cmdid; |
| u32 vdev_set_dscp_tid_map_cmdid; |
| u32 pdev_get_info_cmdid; |
| u32 vdev_get_info_cmdid; |
| u32 vdev_filter_neighbor_rx_packets_cmdid; |
| u32 mu_cal_start_cmdid; |
| u32 set_cca_params_cmdid; |
| u32 pdev_bss_chan_info_request_cmdid; |
| u32 pdev_enable_adaptive_cca_cmdid; |
| u32 ext_resource_cfg_cmdid; |
| u32 vdev_set_ie_cmdid; |
| u32 set_lteu_config_cmdid; |
| u32 atf_ssid_grouping_request_cmdid; |
| u32 peer_atf_ext_request_cmdid; |
| u32 set_periodic_channel_stats_cfg_cmdid; |
| u32 peer_bwf_request_cmdid; |
| u32 btcoex_cfg_cmdid; |
| u32 peer_tx_mu_txmit_count_cmdid; |
| u32 peer_tx_mu_txmit_rstcnt_cmdid; |
| u32 peer_gid_userpos_list_cmdid; |
| u32 pdev_check_cal_version_cmdid; |
| u32 coex_version_cfg_cmid; |
| u32 pdev_get_rx_filter_cmdid; |
| u32 pdev_extended_nss_cfg_cmdid; |
| u32 vdev_set_scan_nac_rssi_cmdid; |
| u32 prog_gpio_band_select_cmdid; |
| u32 config_smart_logging_cmdid; |
| u32 debug_fatal_condition_cmdid; |
| u32 get_tsf_timer_cmdid; |
| u32 pdev_get_tpc_table_cmdid; |
| u32 vdev_sifs_trigger_time_cmdid; |
| u32 pdev_wds_entry_list_cmdid; |
| u32 tdls_set_offchan_mode_cmdid; |
| u32 radar_found_cmdid; |
| u32 set_bb_timing_cmdid; |
| u32 per_peer_per_tid_config_cmdid; |
| }; |
| |
| /* |
| * wmi command groups. |
| */ |
| enum wmi_cmd_group { |
| /* 0 to 2 are reserved */ |
| WMI_GRP_START = 0x3, |
| WMI_GRP_SCAN = WMI_GRP_START, |
| WMI_GRP_PDEV, |
| WMI_GRP_VDEV, |
| WMI_GRP_PEER, |
| WMI_GRP_MGMT, |
| WMI_GRP_BA_NEG, |
| WMI_GRP_STA_PS, |
| WMI_GRP_DFS, |
| WMI_GRP_ROAM, |
| WMI_GRP_OFL_SCAN, |
| WMI_GRP_P2P, |
| WMI_GRP_AP_PS, |
| WMI_GRP_RATE_CTRL, |
| WMI_GRP_PROFILE, |
| WMI_GRP_SUSPEND, |
| WMI_GRP_BCN_FILTER, |
| WMI_GRP_WOW, |
| WMI_GRP_RTT, |
| WMI_GRP_SPECTRAL, |
| WMI_GRP_STATS, |
| WMI_GRP_ARP_NS_OFL, |
| WMI_GRP_NLO_OFL, |
| WMI_GRP_GTK_OFL, |
| WMI_GRP_CSA_OFL, |
| WMI_GRP_CHATTER, |
| WMI_GRP_TID_ADDBA, |
| WMI_GRP_MISC, |
| WMI_GRP_GPIO, |
| }; |
| |
| #define WMI_CMD_GRP(grp_id) (((grp_id) << 12) | 0x1) |
| #define WMI_EVT_GRP_START_ID(grp_id) (((grp_id) << 12) | 0x1) |
| |
| #define WMI_CMD_UNSUPPORTED 0 |
| |
| /* Command IDs and command events for MAIN FW. */ |
| enum wmi_cmd_id { |
| WMI_INIT_CMDID = 0x1, |
| |
| /* Scan specific commands */ |
| WMI_START_SCAN_CMDID = WMI_CMD_GRP(WMI_GRP_SCAN), |
| WMI_STOP_SCAN_CMDID, |
| WMI_SCAN_CHAN_LIST_CMDID, |
| WMI_SCAN_SCH_PRIO_TBL_CMDID, |
| |
| /* PDEV (physical device) specific commands */ |
| WMI_PDEV_SET_REGDOMAIN_CMDID = WMI_CMD_GRP(WMI_GRP_PDEV), |
| WMI_PDEV_SET_CHANNEL_CMDID, |
| WMI_PDEV_SET_PARAM_CMDID, |
| WMI_PDEV_PKTLOG_ENABLE_CMDID, |
| WMI_PDEV_PKTLOG_DISABLE_CMDID, |
| WMI_PDEV_SET_WMM_PARAMS_CMDID, |
| WMI_PDEV_SET_HT_CAP_IE_CMDID, |
| WMI_PDEV_SET_VHT_CAP_IE_CMDID, |
| WMI_PDEV_SET_DSCP_TID_MAP_CMDID, |
| WMI_PDEV_SET_QUIET_MODE_CMDID, |
| WMI_PDEV_GREEN_AP_PS_ENABLE_CMDID, |
| WMI_PDEV_GET_TPC_CONFIG_CMDID, |
| WMI_PDEV_SET_BASE_MACADDR_CMDID, |
| |
| /* VDEV (virtual device) specific commands */ |
| WMI_VDEV_CREATE_CMDID = WMI_CMD_GRP(WMI_GRP_VDEV), |
| WMI_VDEV_DELETE_CMDID, |
| WMI_VDEV_START_REQUEST_CMDID, |
| WMI_VDEV_RESTART_REQUEST_CMDID, |
| WMI_VDEV_UP_CMDID, |
| WMI_VDEV_STOP_CMDID, |
| WMI_VDEV_DOWN_CMDID, |
| WMI_VDEV_SET_PARAM_CMDID, |
| WMI_VDEV_INSTALL_KEY_CMDID, |
| |
| /* peer specific commands */ |
| WMI_PEER_CREATE_CMDID = WMI_CMD_GRP(WMI_GRP_PEER), |
| WMI_PEER_DELETE_CMDID, |
| WMI_PEER_FLUSH_TIDS_CMDID, |
| WMI_PEER_SET_PARAM_CMDID, |
| WMI_PEER_ASSOC_CMDID, |
| WMI_PEER_ADD_WDS_ENTRY_CMDID, |
| WMI_PEER_REMOVE_WDS_ENTRY_CMDID, |
| WMI_PEER_MCAST_GROUP_CMDID, |
| |
| /* beacon/management specific commands */ |
| WMI_BCN_TX_CMDID = WMI_CMD_GRP(WMI_GRP_MGMT), |
| WMI_PDEV_SEND_BCN_CMDID, |
| WMI_BCN_TMPL_CMDID, |
| WMI_BCN_FILTER_RX_CMDID, |
| WMI_PRB_REQ_FILTER_RX_CMDID, |
| WMI_MGMT_TX_CMDID, |
| WMI_PRB_TMPL_CMDID, |
| |
| /* commands to directly control BA negotiation directly from host. */ |
| WMI_ADDBA_CLEAR_RESP_CMDID = WMI_CMD_GRP(WMI_GRP_BA_NEG), |
| WMI_ADDBA_SEND_CMDID, |
| WMI_ADDBA_STATUS_CMDID, |
| WMI_DELBA_SEND_CMDID, |
| WMI_ADDBA_SET_RESP_CMDID, |
| WMI_SEND_SINGLEAMSDU_CMDID, |
| |
| /* Station power save specific config */ |
| WMI_STA_POWERSAVE_MODE_CMDID = WMI_CMD_GRP(WMI_GRP_STA_PS), |
| WMI_STA_POWERSAVE_PARAM_CMDID, |
| WMI_STA_MIMO_PS_MODE_CMDID, |
| |
| /** DFS-specific commands */ |
| WMI_PDEV_DFS_ENABLE_CMDID = WMI_CMD_GRP(WMI_GRP_DFS), |
| WMI_PDEV_DFS_DISABLE_CMDID, |
| |
| /* Roaming specific commands */ |
| WMI_ROAM_SCAN_MODE = WMI_CMD_GRP(WMI_GRP_ROAM), |
| WMI_ROAM_SCAN_RSSI_THRESHOLD, |
| WMI_ROAM_SCAN_PERIOD, |
| WMI_ROAM_SCAN_RSSI_CHANGE_THRESHOLD, |
| WMI_ROAM_AP_PROFILE, |
| |
| /* offload scan specific commands */ |
| WMI_OFL_SCAN_ADD_AP_PROFILE = WMI_CMD_GRP(WMI_GRP_OFL_SCAN), |
| WMI_OFL_SCAN_REMOVE_AP_PROFILE, |
| WMI_OFL_SCAN_PERIOD, |
| |
| /* P2P specific commands */ |
| WMI_P2P_DEV_SET_DEVICE_INFO = WMI_CMD_GRP(WMI_GRP_P2P), |
| WMI_P2P_DEV_SET_DISCOVERABILITY, |
| WMI_P2P_GO_SET_BEACON_IE, |
| WMI_P2P_GO_SET_PROBE_RESP_IE, |
| WMI_P2P_SET_VENDOR_IE_DATA_CMDID, |
| |
| /* AP power save specific config */ |
| WMI_AP_PS_PEER_PARAM_CMDID = WMI_CMD_GRP(WMI_GRP_AP_PS), |
| WMI_AP_PS_PEER_UAPSD_COEX_CMDID, |
| |
| /* Rate-control specific commands */ |
| WMI_PEER_RATE_RETRY_SCHED_CMDID = |
| WMI_CMD_GRP(WMI_GRP_RATE_CTRL), |
| |
| /* WLAN Profiling commands. */ |
| WMI_WLAN_PROFILE_TRIGGER_CMDID = WMI_CMD_GRP(WMI_GRP_PROFILE), |
| WMI_WLAN_PROFILE_SET_HIST_INTVL_CMDID, |
| WMI_WLAN_PROFILE_GET_PROFILE_DATA_CMDID, |
| WMI_WLAN_PROFILE_ENABLE_PROFILE_ID_CMDID, |
| WMI_WLAN_PROFILE_LIST_PROFILE_ID_CMDID, |
| |
| /* Suspend resume command Ids */ |
| WMI_PDEV_SUSPEND_CMDID = WMI_CMD_GRP(WMI_GRP_SUSPEND), |
| WMI_PDEV_RESUME_CMDID, |
| |
| /* Beacon filter commands */ |
| WMI_ADD_BCN_FILTER_CMDID = WMI_CMD_GRP(WMI_GRP_BCN_FILTER), |
| WMI_RMV_BCN_FILTER_CMDID, |
| |
| /* WOW Specific WMI commands*/ |
| WMI_WOW_ADD_WAKE_PATTERN_CMDID = WMI_CMD_GRP(WMI_GRP_WOW), |
| WMI_WOW_DEL_WAKE_PATTERN_CMDID, |
| WMI_WOW_ENABLE_DISABLE_WAKE_EVENT_CMDID, |
| WMI_WOW_ENABLE_CMDID, |
| WMI_WOW_HOSTWAKEUP_FROM_SLEEP_CMDID, |
| |
| /* RTT measurement related cmd */ |
| WMI_RTT_MEASREQ_CMDID = WMI_CMD_GRP(WMI_GRP_RTT), |
| WMI_RTT_TSF_CMDID, |
| |
| /* spectral scan commands */ |
| WMI_VDEV_SPECTRAL_SCAN_CONFIGURE_CMDID = WMI_CMD_GRP(WMI_GRP_SPECTRAL), |
| WMI_VDEV_SPECTRAL_SCAN_ENABLE_CMDID, |
| |
| /* F/W stats */ |
| WMI_REQUEST_STATS_CMDID = WMI_CMD_GRP(WMI_GRP_STATS), |
| |
| /* ARP OFFLOAD REQUEST*/ |
| WMI_SET_ARP_NS_OFFLOAD_CMDID = WMI_CMD_GRP(WMI_GRP_ARP_NS_OFL), |
| |
| /* NS offload confid*/ |
| WMI_NETWORK_LIST_OFFLOAD_CONFIG_CMDID = WMI_CMD_GRP(WMI_GRP_NLO_OFL), |
| |
| /* GTK offload Specific WMI commands*/ |
| WMI_GTK_OFFLOAD_CMDID = WMI_CMD_GRP(WMI_GRP_GTK_OFL), |
| |
| /* CSA offload Specific WMI commands*/ |
| WMI_CSA_OFFLOAD_ENABLE_CMDID = WMI_CMD_GRP(WMI_GRP_CSA_OFL), |
| WMI_CSA_OFFLOAD_CHANSWITCH_CMDID, |
| |
| /* Chatter commands*/ |
| WMI_CHATTER_SET_MODE_CMDID = WMI_CMD_GRP(WMI_GRP_CHATTER), |
| |
| /* addba specific commands */ |
| WMI_PEER_TID_ADDBA_CMDID = WMI_CMD_GRP(WMI_GRP_TID_ADDBA), |
| WMI_PEER_TID_DELBA_CMDID, |
| |
| /* set station mimo powersave method */ |
| WMI_STA_DTIM_PS_METHOD_CMDID, |
| /* Configure the Station UAPSD AC Auto Trigger Parameters */ |
| WMI_STA_UAPSD_AUTO_TRIG_CMDID, |
| |
| /* STA Keep alive parameter configuration, |
| * Requires WMI_SERVICE_STA_KEEP_ALIVE |
| */ |
| WMI_STA_KEEPALIVE_CMD, |
| |
| /* misc command group */ |
| WMI_ECHO_CMDID = WMI_CMD_GRP(WMI_GRP_MISC), |
| WMI_PDEV_UTF_CMDID, |
| WMI_DBGLOG_CFG_CMDID, |
| WMI_PDEV_QVIT_CMDID, |
| WMI_PDEV_FTM_INTG_CMDID, |
| WMI_VDEV_SET_KEEPALIVE_CMDID, |
| WMI_VDEV_GET_KEEPALIVE_CMDID, |
| WMI_FORCE_FW_HANG_CMDID, |
| |
| /* GPIO Configuration */ |
| WMI_GPIO_CONFIG_CMDID = WMI_CMD_GRP(WMI_GRP_GPIO), |
| WMI_GPIO_OUTPUT_CMDID, |
| }; |
| |
| enum wmi_event_id { |
| WMI_SERVICE_READY_EVENTID = 0x1, |
| WMI_READY_EVENTID, |
| WMI_SERVICE_AVAILABLE_EVENTID, |
| |
| /* Scan specific events */ |
| WMI_SCAN_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_SCAN), |
| |
| /* PDEV specific events */ |
| WMI_PDEV_TPC_CONFIG_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_PDEV), |
| WMI_CHAN_INFO_EVENTID, |
| WMI_PHYERR_EVENTID, |
| |
| /* VDEV specific events */ |
| WMI_VDEV_START_RESP_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_VDEV), |
| WMI_VDEV_STOPPED_EVENTID, |
| WMI_VDEV_INSTALL_KEY_COMPLETE_EVENTID, |
| |
| /* peer specific events */ |
| WMI_PEER_STA_KICKOUT_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_PEER), |
| |
| /* beacon/mgmt specific events */ |
| WMI_MGMT_RX_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_MGMT), |
| WMI_HOST_SWBA_EVENTID, |
| WMI_TBTTOFFSET_UPDATE_EVENTID, |
| |
| /* ADDBA Related WMI Events*/ |
| WMI_TX_DELBA_COMPLETE_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_BA_NEG), |
| WMI_TX_ADDBA_COMPLETE_EVENTID, |
| |
| /* Roam event to trigger roaming on host */ |
| WMI_ROAM_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_ROAM), |
| WMI_PROFILE_MATCH, |
| |
| /* WoW */ |
| WMI_WOW_WAKEUP_HOST_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_WOW), |
| |
| /* RTT */ |
| WMI_RTT_MEASUREMENT_REPORT_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_RTT), |
| WMI_TSF_MEASUREMENT_REPORT_EVENTID, |
| WMI_RTT_ERROR_REPORT_EVENTID, |
| |
| /* GTK offload */ |
| WMI_GTK_OFFLOAD_STATUS_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_GTK_OFL), |
| WMI_GTK_REKEY_FAIL_EVENTID, |
| |
| /* CSA IE received event */ |
| WMI_CSA_HANDLING_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_CSA_OFL), |
| |
| /* Misc events */ |
| WMI_ECHO_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_MISC), |
| WMI_PDEV_UTF_EVENTID, |
| WMI_DEBUG_MESG_EVENTID, |
| WMI_UPDATE_STATS_EVENTID, |
| WMI_DEBUG_PRINT_EVENTID, |
| WMI_DCS_INTERFERENCE_EVENTID, |
| WMI_PDEV_QVIT_EVENTID, |
| WMI_WLAN_PROFILE_DATA_EVENTID, |
| WMI_PDEV_FTM_INTG_EVENTID, |
| WMI_WLAN_FREQ_AVOID_EVENTID, |
| WMI_VDEV_GET_KEEPALIVE_EVENTID, |
| |
| /* GPIO Event */ |
| WMI_GPIO_INPUT_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_GPIO), |
| }; |
| |
| /* Command IDs and command events for 10.X firmware */ |
| enum wmi_10x_cmd_id { |
| WMI_10X_START_CMDID = 0x9000, |
| WMI_10X_END_CMDID = 0x9FFF, |
| |
| /* initialize the wlan sub system */ |
| WMI_10X_INIT_CMDID, |
| |
| /* Scan specific commands */ |
| |
| WMI_10X_START_SCAN_CMDID = WMI_10X_START_CMDID, |
| WMI_10X_STOP_SCAN_CMDID, |
| WMI_10X_SCAN_CHAN_LIST_CMDID, |
| WMI_10X_ECHO_CMDID, |
| |
| /* PDEV(physical device) specific commands */ |
| WMI_10X_PDEV_SET_REGDOMAIN_CMDID, |
| WMI_10X_PDEV_SET_CHANNEL_CMDID, |
| WMI_10X_PDEV_SET_PARAM_CMDID, |
| WMI_10X_PDEV_PKTLOG_ENABLE_CMDID, |
| WMI_10X_PDEV_PKTLOG_DISABLE_CMDID, |
| WMI_10X_PDEV_SET_WMM_PARAMS_CMDID, |
| WMI_10X_PDEV_SET_HT_CAP_IE_CMDID, |
| WMI_10X_PDEV_SET_VHT_CAP_IE_CMDID, |
| WMI_10X_PDEV_SET_BASE_MACADDR_CMDID, |
| WMI_10X_PDEV_SET_DSCP_TID_MAP_CMDID, |
| WMI_10X_PDEV_SET_QUIET_MODE_CMDID, |
| WMI_10X_PDEV_GREEN_AP_PS_ENABLE_CMDID, |
| WMI_10X_PDEV_GET_TPC_CONFIG_CMDID, |
| |
| /* VDEV(virtual device) specific commands */ |
| WMI_10X_VDEV_CREATE_CMDID, |
| WMI_10X_VDEV_DELETE_CMDID, |
| WMI_10X_VDEV_START_REQUEST_CMDID, |
| WMI_10X_VDEV_RESTART_REQUEST_CMDID, |
| WMI_10X_VDEV_UP_CMDID, |
| WMI_10X_VDEV_STOP_CMDID, |
| WMI_10X_VDEV_DOWN_CMDID, |
| WMI_10X_VDEV_STANDBY_RESPONSE_CMDID, |
| WMI_10X_VDEV_RESUME_RESPONSE_CMDID, |
| WMI_10X_VDEV_SET_PARAM_CMDID, |
| WMI_10X_VDEV_INSTALL_KEY_CMDID, |
| |
| /* peer specific commands */ |
| WMI_10X_PEER_CREATE_CMDID, |
| WMI_10X_PEER_DELETE_CMDID, |
| WMI_10X_PEER_FLUSH_TIDS_CMDID, |
| WMI_10X_PEER_SET_PARAM_CMDID, |
| WMI_10X_PEER_ASSOC_CMDID, |
| WMI_10X_PEER_ADD_WDS_ENTRY_CMDID, |
| WMI_10X_PEER_REMOVE_WDS_ENTRY_CMDID, |
| WMI_10X_PEER_MCAST_GROUP_CMDID, |
| |
| /* beacon/management specific commands */ |
| |
| WMI_10X_BCN_TX_CMDID, |
| WMI_10X_BCN_PRB_TMPL_CMDID, |
| WMI_10X_BCN_FILTER_RX_CMDID, |
| WMI_10X_PRB_REQ_FILTER_RX_CMDID, |
| WMI_10X_MGMT_TX_CMDID, |
| |
| /* commands to directly control ba negotiation directly from host. */ |
| WMI_10X_ADDBA_CLEAR_RESP_CMDID, |
| WMI_10X_ADDBA_SEND_CMDID, |
| WMI_10X_ADDBA_STATUS_CMDID, |
| WMI_10X_DELBA_SEND_CMDID, |
| WMI_10X_ADDBA_SET_RESP_CMDID, |
| WMI_10X_SEND_SINGLEAMSDU_CMDID, |
| |
| /* Station power save specific config */ |
| WMI_10X_STA_POWERSAVE_MODE_CMDID, |
| WMI_10X_STA_POWERSAVE_PARAM_CMDID, |
| WMI_10X_STA_MIMO_PS_MODE_CMDID, |
| |
| /* set debug log config */ |
| WMI_10X_DBGLOG_CFG_CMDID, |
| |
| /* DFS-specific commands */ |
| WMI_10X_PDEV_DFS_ENABLE_CMDID, |
| WMI_10X_PDEV_DFS_DISABLE_CMDID, |
| |
| /* QVIT specific command id */ |
| WMI_10X_PDEV_QVIT_CMDID, |
| |
| /* Offload Scan and Roaming related commands */ |
| WMI_10X_ROAM_SCAN_MODE, |
| WMI_10X_ROAM_SCAN_RSSI_THRESHOLD, |
| WMI_10X_ROAM_SCAN_PERIOD, |
| WMI_10X_ROAM_SCAN_RSSI_CHANGE_THRESHOLD, |
| WMI_10X_ROAM_AP_PROFILE, |
| WMI_10X_OFL_SCAN_ADD_AP_PROFILE, |
| WMI_10X_OFL_SCAN_REMOVE_AP_PROFILE, |
| WMI_10X_OFL_SCAN_PERIOD, |
| |
| /* P2P specific commands */ |
| WMI_10X_P2P_DEV_SET_DEVICE_INFO, |
| WMI_10X_P2P_DEV_SET_DISCOVERABILITY, |
| WMI_10X_P2P_GO_SET_BEACON_IE, |
| WMI_10X_P2P_GO_SET_PROBE_RESP_IE, |
| |
| /* AP power save specific config */ |
| WMI_10X_AP_PS_PEER_PARAM_CMDID, |
| WMI_10X_AP_PS_PEER_UAPSD_COEX_CMDID, |
| |
| /* Rate-control specific commands */ |
| WMI_10X_PEER_RATE_RETRY_SCHED_CMDID, |
| |
| /* WLAN Profiling commands. */ |
| WMI_10X_WLAN_PROFILE_TRIGGER_CMDID, |
| WMI_10X_WLAN_PROFILE_SET_HIST_INTVL_CMDID, |
| WMI_10X_WLAN_PROFILE_GET_PROFILE_DATA_CMDID, |
| WMI_10X_WLAN_PROFILE_ENABLE_PROFILE_ID_CMDID, |
| WMI_10X_WLAN_PROFILE_LIST_PROFILE_ID_CMDID, |
| |
| /* Suspend resume command Ids */ |
| WMI_10X_PDEV_SUSPEND_CMDID, |
| WMI_10X_PDEV_RESUME_CMDID, |
| |
| /* Beacon filter commands */ |
| WMI_10X_ADD_BCN_FILTER_CMDID, |
| WMI_10X_RMV_BCN_FILTER_CMDID, |
| |
| /* WOW Specific WMI commands*/ |
| WMI_10X_WOW_ADD_WAKE_PATTERN_CMDID, |
| WMI_10X_WOW_DEL_WAKE_PATTERN_CMDID, |
| WMI_10X_WOW_ENABLE_DISABLE_WAKE_EVENT_CMDID, |
| WMI_10X_WOW_ENABLE_CMDID, |
| WMI_10X_WOW_HOSTWAKEUP_FROM_SLEEP_CMDID, |
| |
| /* RTT measurement related cmd */ |
| WMI_10X_RTT_MEASREQ_CMDID, |
| WMI_10X_RTT_TSF_CMDID, |
| |
| /* transmit beacon by value */ |
| WMI_10X_PDEV_SEND_BCN_CMDID, |
| |
| /* F/W stats */ |
| WMI_10X_VDEV_SPECTRAL_SCAN_CONFIGURE_CMDID, |
| WMI_10X_VDEV_SPECTRAL_SCAN_ENABLE_CMDID, |
| WMI_10X_REQUEST_STATS_CMDID, |
| |
| /* GPIO Configuration */ |
| WMI_10X_GPIO_CONFIG_CMDID, |
| WMI_10X_GPIO_OUTPUT_CMDID, |
| |
| WMI_10X_PDEV_UTF_CMDID = WMI_10X_END_CMDID - 1, |
| }; |
| |
| enum wmi_10x_event_id { |
| WMI_10X_SERVICE_READY_EVENTID = 0x8000, |
| WMI_10X_READY_EVENTID, |
| WMI_10X_START_EVENTID = 0x9000, |
| WMI_10X_END_EVENTID = 0x9FFF, |
| |
| /* Scan specific events */ |
| WMI_10X_SCAN_EVENTID = WMI_10X_START_EVENTID, |
| WMI_10X_ECHO_EVENTID, |
| WMI_10X_DEBUG_MESG_EVENTID, |
| WMI_10X_UPDATE_STATS_EVENTID, |
| |
| /* Instantaneous RSSI event */ |
| WMI_10X_INST_RSSI_STATS_EVENTID, |
| |
| /* VDEV specific events */ |
| WMI_10X_VDEV_START_RESP_EVENTID, |
| WMI_10X_VDEV_STANDBY_REQ_EVENTID, |
| WMI_10X_VDEV_RESUME_REQ_EVENTID, |
| WMI_10X_VDEV_STOPPED_EVENTID, |
| |
| /* peer specific events */ |
| WMI_10X_PEER_STA_KICKOUT_EVENTID, |
| |
| /* beacon/mgmt specific events */ |
| WMI_10X_HOST_SWBA_EVENTID, |
| WMI_10X_TBTTOFFSET_UPDATE_EVENTID, |
| WMI_10X_MGMT_RX_EVENTID, |
| |
| /* Channel stats event */ |
| WMI_10X_CHAN_INFO_EVENTID, |
| |
| /* PHY Error specific WMI event */ |
| WMI_10X_PHYERR_EVENTID, |
| |
| /* Roam event to trigger roaming on host */ |
| WMI_10X_ROAM_EVENTID, |
| |
| /* matching AP found from list of profiles */ |
| WMI_10X_PROFILE_MATCH, |
| |
| /* debug print message used for tracing FW code while debugging */ |
| WMI_10X_DEBUG_PRINT_EVENTID, |
| /* VI spoecific event */ |
| WMI_10X_PDEV_QVIT_EVENTID, |
| /* FW code profile data in response to profile request */ |
| WMI_10X_WLAN_PROFILE_DATA_EVENTID, |
| |
| /*RTT related event ID*/ |
| WMI_10X_RTT_MEASUREMENT_REPORT_EVENTID, |
| WMI_10X_TSF_MEASUREMENT_REPORT_EVENTID, |
| WMI_10X_RTT_ERROR_REPORT_EVENTID, |
| |
| WMI_10X_WOW_WAKEUP_HOST_EVENTID, |
| WMI_10X_DCS_INTERFERENCE_EVENTID, |
| |
| /* TPC config for the current operating channel */ |
| WMI_10X_PDEV_TPC_CONFIG_EVENTID, |
| |
| WMI_10X_GPIO_INPUT_EVENTID, |
| WMI_10X_PDEV_UTF_EVENTID = WMI_10X_END_EVENTID - 1, |
| }; |
| |
| enum wmi_10_2_cmd_id { |
| WMI_10_2_START_CMDID = 0x9000, |
| WMI_10_2_END_CMDID = 0x9FFF, |
| WMI_10_2_INIT_CMDID, |
| WMI_10_2_START_SCAN_CMDID = WMI_10_2_START_CMDID, |
| WMI_10_2_STOP_SCAN_CMDID, |
| WMI_10_2_SCAN_CHAN_LIST_CMDID, |
| WMI_10_2_ECHO_CMDID, |
| WMI_10_2_PDEV_SET_REGDOMAIN_CMDID, |
| WMI_10_2_PDEV_SET_CHANNEL_CMDID, |
| WMI_10_2_PDEV_SET_PARAM_CMDID, |
| WMI_10_2_PDEV_PKTLOG_ENABLE_CMDID, |
| WMI_10_2_PDEV_PKTLOG_DISABLE_CMDID, |
| WMI_10_2_PDEV_SET_WMM_PARAMS_CMDID, |
| WMI_10_2_PDEV_SET_HT_CAP_IE_CMDID, |
| WMI_10_2_PDEV_SET_VHT_CAP_IE_CMDID, |
| WMI_10_2_PDEV_SET_BASE_MACADDR_CMDID, |
| WMI_10_2_PDEV_SET_QUIET_MODE_CMDID, |
| WMI_10_2_PDEV_GREEN_AP_PS_ENABLE_CMDID, |
| WMI_10_2_PDEV_GET_TPC_CONFIG_CMDID, |
| WMI_10_2_VDEV_CREATE_CMDID, |
| WMI_10_2_VDEV_DELETE_CMDID, |
| WMI_10_2_VDEV_START_REQUEST_CMDID, |
| WMI_10_2_VDEV_RESTART_REQUEST_CMDID, |
| WMI_10_2_VDEV_UP_CMDID, |
| WMI_10_2_VDEV_STOP_CMDID, |
| WMI_10_2_VDEV_DOWN_CMDID, |
| WMI_10_2_VDEV_STANDBY_RESPONSE_CMDID, |
| WMI_10_2_VDEV_RESUME_RESPONSE_CMDID, |
| WMI_10_2_VDEV_SET_PARAM_CMDID, |
| WMI_10_2_VDEV_INSTALL_KEY_CMDID, |
| WMI_10_2_VDEV_SET_DSCP_TID_MAP_CMDID, |
| WMI_10_2_PEER_CREATE_CMDID, |
| WMI_10_2_PEER_DELETE_CMDID, |
| WMI_10_2_PEER_FLUSH_TIDS_CMDID, |
| WMI_10_2_PEER_SET_PARAM_CMDID, |
| WMI_10_2_PEER_ASSOC_CMDID, |
| WMI_10_2_PEER_ADD_WDS_ENTRY_CMDID, |
| WMI_10_2_PEER_UPDATE_WDS_ENTRY_CMDID, |
| WMI_10_2_PEER_REMOVE_WDS_ENTRY_CMDID, |
| WMI_10_2_PEER_MCAST_GROUP_CMDID, |
| WMI_10_2_BCN_TX_CMDID, |
| WMI_10_2_BCN_PRB_TMPL_CMDID, |
| WMI_10_2_BCN_FILTER_RX_CMDID, |
| WMI_10_2_PRB_REQ_FILTER_RX_CMDID, |
| WMI_10_2_MGMT_TX_CMDID, |
| WMI_10_2_ADDBA_CLEAR_RESP_CMDID, |
| WMI_10_2_ADDBA_SEND_CMDID, |
| WMI_10_2_ADDBA_STATUS_CMDID, |
| WMI_10_2_DELBA_SEND_CMDID, |
| WMI_10_2_ADDBA_SET_RESP_CMDID, |
| WMI_10_2_SEND_SINGLEAMSDU_CMDID, |
| WMI_10_2_STA_POWERSAVE_MODE_CMDID, |
| WMI_10_2_STA_POWERSAVE_PARAM_CMDID, |
| WMI_10_2_STA_MIMO_PS_MODE_CMDID, |
| WMI_10_2_DBGLOG_CFG_CMDID, |
| WMI_10_2_PDEV_DFS_ENABLE_CMDID, |
| WMI_10_2_PDEV_DFS_DISABLE_CMDID, |
| WMI_10_2_PDEV_QVIT_CMDID, |
| WMI_10_2_ROAM_SCAN_MODE, |
| WMI_10_2_ROAM_SCAN_RSSI_THRESHOLD, |
| WMI_10_2_ROAM_SCAN_PERIOD, |
| WMI_10_2_ROAM_SCAN_RSSI_CHANGE_THRESHOLD, |
| WMI_10_2_ROAM_AP_PROFILE, |
| WMI_10_2_OFL_SCAN_ADD_AP_PROFILE, |
| WMI_10_2_OFL_SCAN_REMOVE_AP_PROFILE, |
| WMI_10_2_OFL_SCAN_PERIOD, |
| WMI_10_2_P2P_DEV_SET_DEVICE_INFO, |
| WMI_10_2_P2P_DEV_SET_DISCOVERABILITY, |
| WMI_10_2_P2P_GO_SET_BEACON_IE, |
| WMI_10_2_P2P_GO_SET_PROBE_RESP_IE, |
| WMI_10_2_AP_PS_PEER_PARAM_CMDID, |
| WMI_10_2_AP_PS_PEER_UAPSD_COEX_CMDID, |
| WMI_10_2_PEER_RATE_RETRY_SCHED_CMDID, |
| WMI_10_2_WLAN_PROFILE_TRIGGER_CMDID, |
| WMI_10_2_WLAN_PROFILE_SET_HIST_INTVL_CMDID, |
| WMI_10_2_WLAN_PROFILE_GET_PROFILE_DATA_CMDID, |
| WMI_10_2_WLAN_PROFILE_ENABLE_PROFILE_ID_CMDID, |
| WMI_10_2_WLAN_PROFILE_LIST_PROFILE_ID_CMDID, |
| WMI_10_2_PDEV_SUSPEND_CMDID, |
| WMI_10_2_PDEV_RESUME_CMDID, |
| WMI_10_2_ADD_BCN_FILTER_CMDID, |
| WMI_10_2_RMV_BCN_FILTER_CMDID, |
| WMI_10_2_WOW_ADD_WAKE_PATTERN_CMDID, |
| WMI_10_2_WOW_DEL_WAKE_PATTERN_CMDID, |
| WMI_10_2_WOW_ENABLE_DISABLE_WAKE_EVENT_CMDID, |
| WMI_10_2_WOW_ENABLE_CMDID, |
| WMI_10_2_WOW_HOSTWAKEUP_FROM_SLEEP_CMDID, |
| WMI_10_2_RTT_MEASREQ_CMDID, |
| WMI_10_2_RTT_TSF_CMDID, |
| WMI_10_2_RTT_KEEPALIVE_CMDID, |
| WMI_10_2_PDEV_SEND_BCN_CMDID, |
| WMI_10_2_VDEV_SPECTRAL_SCAN_CONFIGURE_CMDID, |
| WMI_10_2_VDEV_SPECTRAL_SCAN_ENABLE_CMDID, |
| WMI_10_2_REQUEST_STATS_CMDID, |
| WMI_10_2_GPIO_CONFIG_CMDID, |
| WMI_10_2_GPIO_OUTPUT_CMDID, |
| WMI_10_2_VDEV_RATEMASK_CMDID, |
| WMI_10_2_PDEV_SMART_ANT_ENABLE_CMDID, |
| WMI_10_2_PDEV_SMART_ANT_SET_RX_ANTENNA_CMDID, |
| WMI_10_2_PEER_SMART_ANT_SET_TX_ANTENNA_CMDID, |
| WMI_10_2_PEER_SMART_ANT_SET_TRAIN_INFO_CMDID, |
| WMI_10_2_PEER_SMART_ANT_SET_NODE_CONFIG_OPS_CMDID, |
| WMI_10_2_FORCE_FW_HANG_CMDID, |
| WMI_10_2_PDEV_SET_ANTENNA_SWITCH_TABLE_CMDID, |
| WMI_10_2_PDEV_SET_CTL_TABLE_CMDID, |
| WMI_10_2_PDEV_SET_MIMOGAIN_TABLE_CMDID, |
| WMI_10_2_PDEV_RATEPWR_TABLE_CMDID, |
| WMI_10_2_PDEV_RATEPWR_CHAINMSK_TABLE_CMDID, |
| WMI_10_2_PDEV_GET_INFO, |
| WMI_10_2_VDEV_GET_INFO, |
| WMI_10_2_VDEV_ATF_REQUEST_CMDID, |
| WMI_10_2_PEER_ATF_REQUEST_CMDID, |
| WMI_10_2_PDEV_GET_TEMPERATURE_CMDID, |
| WMI_10_2_MU_CAL_START_CMDID, |
| WMI_10_2_SET_LTEU_CONFIG_CMDID, |
| WMI_10_2_SET_CCA_PARAMS, |
| WMI_10_2_PDEV_BSS_CHAN_INFO_REQUEST_CMDID, |
| WMI_10_2_FWTEST_CMDID, |
| WMI_10_2_PDEV_SET_BB_TIMING_CONFIG_CMDID, |
| WMI_10_2_PDEV_UTF_CMDID = WMI_10_2_END_CMDID - 1, |
| }; |
| |
| enum wmi_10_2_event_id { |
| WMI_10_2_SERVICE_READY_EVENTID = 0x8000, |
| WMI_10_2_READY_EVENTID, |
| WMI_10_2_DEBUG_MESG_EVENTID, |
| WMI_10_2_START_EVENTID = 0x9000, |
| WMI_10_2_END_EVENTID = 0x9FFF, |
| WMI_10_2_SCAN_EVENTID = WMI_10_2_START_EVENTID, |
| WMI_10_2_ECHO_EVENTID, |
| WMI_10_2_UPDATE_STATS_EVENTID, |
| WMI_10_2_INST_RSSI_STATS_EVENTID, |
| WMI_10_2_VDEV_START_RESP_EVENTID, |
| WMI_10_2_VDEV_STANDBY_REQ_EVENTID, |
| WMI_10_2_VDEV_RESUME_REQ_EVENTID, |
| WMI_10_2_VDEV_STOPPED_EVENTID, |
| WMI_10_2_PEER_STA_KICKOUT_EVENTID, |
| WMI_10_2_HOST_SWBA_EVENTID, |
| WMI_10_2_TBTTOFFSET_UPDATE_EVENTID, |
| WMI_10_2_MGMT_RX_EVENTID, |
| WMI_10_2_CHAN_INFO_EVENTID, |
| WMI_10_2_PHYERR_EVENTID, |
| WMI_10_2_ROAM_EVENTID, |
| WMI_10_2_PROFILE_MATCH, |
| WMI_10_2_DEBUG_PRINT_EVENTID, |
| WMI_10_2_PDEV_QVIT_EVENTID, |
| WMI_10_2_WLAN_PROFILE_DATA_EVENTID, |
| WMI_10_2_RTT_MEASUREMENT_REPORT_EVENTID, |
| WMI_10_2_TSF_MEASUREMENT_REPORT_EVENTID, |
| WMI_10_2_RTT_ERROR_REPORT_EVENTID, |
| WMI_10_2_RTT_KEEPALIVE_EVENTID, |
| WMI_10_2_WOW_WAKEUP_HOST_EVENTID, |
| WMI_10_2_DCS_INTERFERENCE_EVENTID, |
| WMI_10_2_PDEV_TPC_CONFIG_EVENTID, |
| WMI_10_2_GPIO_INPUT_EVENTID, |
| WMI_10_2_PEER_RATECODE_LIST_EVENTID, |
| WMI_10_2_GENERIC_BUFFER_EVENTID, |
| WMI_10_2_MCAST_BUF_RELEASE_EVENTID, |
| WMI_10_2_MCAST_LIST_AGEOUT_EVENTID, |
| WMI_10_2_WDS_PEER_EVENTID, |
| WMI_10_2_PEER_STA_PS_STATECHG_EVENTID, |
| WMI_10_2_PDEV_TEMPERATURE_EVENTID, |
| WMI_10_2_MU_REPORT_EVENTID, |
| WMI_10_2_PDEV_BSS_CHAN_INFO_EVENTID, |
| WMI_10_2_PDEV_UTF_EVENTID = WMI_10_2_END_EVENTID - 1, |
| }; |
| |
| enum wmi_10_4_cmd_id { |
| WMI_10_4_START_CMDID = 0x9000, |
| WMI_10_4_END_CMDID = 0x9FFF, |
| WMI_10_4_INIT_CMDID, |
| WMI_10_4_START_SCAN_CMDID = WMI_10_4_START_CMDID, |
| WMI_10_4_STOP_SCAN_CMDID, |
| WMI_10_4_SCAN_CHAN_LIST_CMDID, |
| WMI_10_4_SCAN_SCH_PRIO_TBL_CMDID, |
| WMI_10_4_SCAN_UPDATE_REQUEST_CMDID, |
| WMI_10_4_ECHO_CMDID, |
| WMI_10_4_PDEV_SET_REGDOMAIN_CMDID, |
| WMI_10_4_PDEV_SET_CHANNEL_CMDID, |
| WMI_10_4_PDEV_SET_PARAM_CMDID, |
| WMI_10_4_PDEV_PKTLOG_ENABLE_CMDID, |
| WMI_10_4_PDEV_PKTLOG_DISABLE_CMDID, |
| WMI_10_4_PDEV_SET_WMM_PARAMS_CMDID, |
| WMI_10_4_PDEV_SET_HT_CAP_IE_CMDID, |
| WMI_10_4_PDEV_SET_VHT_CAP_IE_CMDID, |
| WMI_10_4_PDEV_SET_BASE_MACADDR_CMDID, |
| WMI_10_4_PDEV_SET_DSCP_TID_MAP_CMDID, |
| WMI_10_4_PDEV_SET_QUIET_MODE_CMDID, |
| WMI_10_4_PDEV_GREEN_AP_PS_ENABLE_CMDID, |
| WMI_10_4_PDEV_GET_TPC_CONFIG_CMDID, |
| WMI_10_4_VDEV_CREATE_CMDID, |
| WMI_10_4_VDEV_DELETE_CMDID, |
| WMI_10_4_VDEV_START_REQUEST_CMDID, |
| WMI_10_4_VDEV_RESTART_REQUEST_CMDID, |
| WMI_10_4_VDEV_UP_CMDID, |
| WMI_10_4_VDEV_STOP_CMDID, |
| WMI_10_4_VDEV_DOWN_CMDID, |
| WMI_10_4_VDEV_STANDBY_RESPONSE_CMDID, |
| WMI_10_4_VDEV_RESUME_RESPONSE_CMDID, |
| WMI_10_4_VDEV_SET_PARAM_CMDID, |
| WMI_10_4_VDEV_INSTALL_KEY_CMDID, |
| WMI_10_4_WLAN_PEER_CACHING_ADD_PEER_CMDID, |
| WMI_10_4_WLAN_PEER_CACHING_EVICT_PEER_CMDID, |
| WMI_10_4_WLAN_PEER_CACHING_RESTORE_PEER_CMDID, |
| WMI_10_4_WLAN_PEER_CACHING_PRINT_ALL_PEERS_INFO_CMDID, |
| WMI_10_4_PEER_CREATE_CMDID, |
| WMI_10_4_PEER_DELETE_CMDID, |
| WMI_10_4_PEER_FLUSH_TIDS_CMDID, |
| WMI_10_4_PEER_SET_PARAM_CMDID, |
| WMI_10_4_PEER_ASSOC_CMDID, |
| WMI_10_4_PEER_ADD_WDS_ENTRY_CMDID, |
| WMI_10_4_PEER_UPDATE_WDS_ENTRY_CMDID, |
| WMI_10_4_PEER_REMOVE_WDS_ENTRY_CMDID, |
| WMI_10_4_PEER_ADD_PROXY_STA_ENTRY_CMDID, |
| WMI_10_4_PEER_MCAST_GROUP_CMDID, |
| WMI_10_4_BCN_TX_CMDID, |
| WMI_10_4_PDEV_SEND_BCN_CMDID, |
| WMI_10_4_BCN_PRB_TMPL_CMDID, |
| WMI_10_4_BCN_FILTER_RX_CMDID, |
| WMI_10_4_PRB_REQ_FILTER_RX_CMDID, |
| WMI_10_4_MGMT_TX_CMDID, |
| WMI_10_4_PRB_TMPL_CMDID, |
| WMI_10_4_ADDBA_CLEAR_RESP_CMDID, |
| WMI_10_4_ADDBA_SEND_CMDID, |
| WMI_10_4_ADDBA_STATUS_CMDID, |
| WMI_10_4_DELBA_SEND_CMDID, |
| WMI_10_4_ADDBA_SET_RESP_CMDID, |
| WMI_10_4_SEND_SINGLEAMSDU_CMDID, |
| WMI_10_4_STA_POWERSAVE_MODE_CMDID, |
| WMI_10_4_STA_POWERSAVE_PARAM_CMDID, |
| WMI_10_4_STA_MIMO_PS_MODE_CMDID, |
| WMI_10_4_DBGLOG_CFG_CMDID, |
| WMI_10_4_PDEV_DFS_ENABLE_CMDID, |
| WMI_10_4_PDEV_DFS_DISABLE_CMDID, |
| WMI_10_4_PDEV_QVIT_CMDID, |
| WMI_10_4_ROAM_SCAN_MODE, |
| WMI_10_4_ROAM_SCAN_RSSI_THRESHOLD, |
| WMI_10_4_ROAM_SCAN_PERIOD, |
| WMI_10_4_ROAM_SCAN_RSSI_CHANGE_THRESHOLD, |
| WMI_10_4_ROAM_AP_PROFILE, |
| WMI_10_4_OFL_SCAN_ADD_AP_PROFILE, |
| WMI_10_4_OFL_SCAN_REMOVE_AP_PROFILE, |
| WMI_10_4_OFL_SCAN_PERIOD, |
| WMI_10_4_P2P_DEV_SET_DEVICE_INFO, |
| WMI_10_4_P2P_DEV_SET_DISCOVERABILITY, |
| WMI_10_4_P2P_GO_SET_BEACON_IE, |
| WMI_10_4_P2P_GO_SET_PROBE_RESP_IE, |
| WMI_10_4_P2P_SET_VENDOR_IE_DATA_CMDID, |
| WMI_10_4_AP_PS_PEER_PARAM_CMDID, |
| WMI_10_4_AP_PS_PEER_UAPSD_COEX_CMDID, |
| WMI_10_4_PEER_RATE_RETRY_SCHED_CMDID, |
| WMI_10_4_WLAN_PROFILE_TRIGGER_CMDID, |
| WMI_10_4_WLAN_PROFILE_SET_HIST_INTVL_CMDID, |
| WMI_10_4_WLAN_PROFILE_GET_PROFILE_DATA_CMDID, |
| WMI_10_4_WLAN_PROFILE_ENABLE_PROFILE_ID_CMDID, |
| WMI_10_4_WLAN_PROFILE_LIST_PROFILE_ID_CMDID, |
| WMI_10_4_PDEV_SUSPEND_CMDID, |
| WMI_10_4_PDEV_RESUME_CMDID, |
| WMI_10_4_ADD_BCN_FILTER_CMDID, |
| WMI_10_4_RMV_BCN_FILTER_CMDID, |
| WMI_10_4_WOW_ADD_WAKE_PATTERN_CMDID, |
| WMI_10_4_WOW_DEL_WAKE_PATTERN_CMDID, |
| WMI_10_4_WOW_ENABLE_DISABLE_WAKE_EVENT_CMDID, |
| WMI_10_4_WOW_ENABLE_CMDID, |
| WMI_10_4_WOW_HOSTWAKEUP_FROM_SLEEP_CMDID, |
| WMI_10_4_RTT_MEASREQ_CMDID, |
| WMI_10_4_RTT_TSF_CMDID, |
| WMI_10_4_RTT_KEEPALIVE_CMDID, |
| WMI_10_4_OEM_REQ_CMDID, |
| WMI_10_4_NAN_CMDID, |
| WMI_10_4_VDEV_SPECTRAL_SCAN_CONFIGURE_CMDID, |
| WMI_10_4_VDEV_SPECTRAL_SCAN_ENABLE_CMDID, |
| WMI_10_4_REQUEST_STATS_CMDID, |
| WMI_10_4_GPIO_CONFIG_CMDID, |
| WMI_10_4_GPIO_OUTPUT_CMDID, |
| WMI_10_4_VDEV_RATEMASK_CMDID, |
| WMI_10_4_CSA_OFFLOAD_ENABLE_CMDID, |
| WMI_10_4_GTK_OFFLOAD_CMDID, |
| WMI_10_4_QBOOST_CFG_CMDID, |
| WMI_10_4_CSA_OFFLOAD_CHANSWITCH_CMDID, |
| WMI_10_4_PDEV_SMART_ANT_ENABLE_CMDID, |
| WMI_10_4_PDEV_SMART_ANT_SET_RX_ANTENNA_CMDID, |
| WMI_10_4_PEER_SMART_ANT_SET_TX_ANTENNA_CMDID, |
| WMI_10_4_PEER_SMART_ANT_SET_TRAIN_INFO_CMDID, |
| WMI_10_4_PEER_SMART_ANT_SET_NODE_CONFIG_OPS_CMDID, |
| WMI_10_4_VDEV_SET_KEEPALIVE_CMDID, |
| WMI_10_4_VDEV_GET_KEEPALIVE_CMDID, |
| WMI_10_4_FORCE_FW_HANG_CMDID, |
| WMI_10_4_PDEV_SET_ANTENNA_SWITCH_TABLE_CMDID, |
| WMI_10_4_PDEV_SET_CTL_TABLE_CMDID, |
| WMI_10_4_PDEV_SET_MIMOGAIN_TABLE_CMDID, |
| WMI_10_4_PDEV_RATEPWR_TABLE_CMDID, |
| WMI_10_4_PDEV_RATEPWR_CHAINMSK_TABLE_CMDID, |
| WMI_10_4_PDEV_FIPS_CMDID, |
| WMI_10_4_TT_SET_CONF_CMDID, |
| WMI_10_4_FWTEST_CMDID, |
| WMI_10_4_VDEV_ATF_REQUEST_CMDID, |
| WMI_10_4_PEER_ATF_REQUEST_CMDID, |
| WMI_10_4_PDEV_GET_ANI_CCK_CONFIG_CMDID, |
| WMI_10_4_PDEV_GET_ANI_OFDM_CONFIG_CMDID, |
| WMI_10_4_PDEV_RESERVE_AST_ENTRY_CMDID, |
| WMI_10_4_PDEV_GET_NFCAL_POWER_CMDID, |
| WMI_10_4_PDEV_GET_TPC_CMDID, |
| WMI_10_4_PDEV_GET_AST_INFO_CMDID, |
| WMI_10_4_VDEV_SET_DSCP_TID_MAP_CMDID, |
| WMI_10_4_PDEV_GET_TEMPERATURE_CMDID, |
| WMI_10_4_PDEV_GET_INFO_CMDID, |
| WMI_10_4_VDEV_GET_INFO_CMDID, |
| WMI_10_4_VDEV_FILTER_NEIGHBOR_RX_PACKETS_CMDID, |
| WMI_10_4_MU_CAL_START_CMDID, |
| WMI_10_4_SET_CCA_PARAMS_CMDID, |
| WMI_10_4_PDEV_BSS_CHAN_INFO_REQUEST_CMDID, |
| WMI_10_4_EXT_RESOURCE_CFG_CMDID, |
| WMI_10_4_VDEV_SET_IE_CMDID, |
| WMI_10_4_SET_LTEU_CONFIG_CMDID, |
| WMI_10_4_ATF_SSID_GROUPING_REQUEST_CMDID, |
| WMI_10_4_PEER_ATF_EXT_REQUEST_CMDID, |
| WMI_10_4_SET_PERIODIC_CHANNEL_STATS_CONFIG, |
| WMI_10_4_PEER_BWF_REQUEST_CMDID, |
| WMI_10_4_BTCOEX_CFG_CMDID, |
| WMI_10_4_PEER_TX_MU_TXMIT_COUNT_CMDID, |
| WMI_10_4_PEER_TX_MU_TXMIT_RSTCNT_CMDID, |
| WMI_10_4_PEER_GID_USERPOS_LIST_CMDID, |
| WMI_10_4_PDEV_CHECK_CAL_VERSION_CMDID, |
| WMI_10_4_COEX_VERSION_CFG_CMID, |
| WMI_10_4_PDEV_GET_RX_FILTER_CMDID, |
| WMI_10_4_PDEV_EXTENDED_NSS_CFG_CMDID, |
| WMI_10_4_VDEV_SET_SCAN_NAC_RSSI_CMDID, |
| WMI_10_4_PROG_GPIO_BAND_SELECT_CMDID, |
| WMI_10_4_CONFIG_SMART_LOGGING_CMDID, |
| WMI_10_4_DEBUG_FATAL_CONDITION_CMDID, |
| WMI_10_4_GET_TSF_TIMER_CMDID, |
| WMI_10_4_PDEV_GET_TPC_TABLE_CMDID, |
| WMI_10_4_VDEV_SIFS_TRIGGER_TIME_CMDID, |
| WMI_10_4_PDEV_WDS_ENTRY_LIST_CMDID, |
| WMI_10_4_TDLS_SET_STATE_CMDID, |
| WMI_10_4_TDLS_PEER_UPDATE_CMDID, |
| WMI_10_4_TDLS_SET_OFFCHAN_MODE_CMDID, |
| WMI_10_4_PDEV_SEND_FD_CMDID, |
| WMI_10_4_ENABLE_FILS_CMDID, |
| WMI_10_4_PDEV_SET_BRIDGE_MACADDR_CMDID, |
| WMI_10_4_ATF_GROUP_WMM_AC_CONFIG_REQUEST_CMDID, |
| WMI_10_4_RADAR_FOUND_CMDID, |
| WMI_10_4_PEER_CFR_CAPTURE_CMDID, |
| WMI_10_4_PER_PEER_PER_TID_CONFIG_CMDID, |
| WMI_10_4_PDEV_UTF_CMDID = WMI_10_4_END_CMDID - 1, |
| }; |
| |
| enum wmi_10_4_event_id { |
| WMI_10_4_SERVICE_READY_EVENTID = 0x8000, |
| WMI_10_4_READY_EVENTID, |
| WMI_10_4_DEBUG_MESG_EVENTID, |
| WMI_10_4_START_EVENTID = 0x9000, |
| WMI_10_4_END_EVENTID = 0x9FFF, |
| WMI_10_4_SCAN_EVENTID = WMI_10_4_START_EVENTID, |
| WMI_10_4_ECHO_EVENTID, |
| WMI_10_4_UPDATE_STATS_EVENTID, |
| WMI_10_4_INST_RSSI_STATS_EVENTID, |
| WMI_10_4_VDEV_START_RESP_EVENTID, |
| WMI_10_4_VDEV_STANDBY_REQ_EVENTID, |
| WMI_10_4_VDEV_RESUME_REQ_EVENTID, |
| WMI_10_4_VDEV_STOPPED_EVENTID, |
| WMI_10_4_PEER_STA_KICKOUT_EVENTID, |
| WMI_10_4_HOST_SWBA_EVENTID, |
| WMI_10_4_TBTTOFFSET_UPDATE_EVENTID, |
| WMI_10_4_MGMT_RX_EVENTID, |
| WMI_10_4_CHAN_INFO_EVENTID, |
| WMI_10_4_PHYERR_EVENTID, |
| WMI_10_4_ROAM_EVENTID, |
| WMI_10_4_PROFILE_MATCH, |
| WMI_10_4_DEBUG_PRINT_EVENTID, |
| WMI_10_4_PDEV_QVIT_EVENTID, |
| WMI_10_4_WLAN_PROFILE_DATA_EVENTID, |
| WMI_10_4_RTT_MEASUREMENT_REPORT_EVENTID, |
| WMI_10_4_TSF_MEASUREMENT_REPORT_EVENTID, |
| WMI_10_4_RTT_ERROR_REPORT_EVENTID, |
| WMI_10_4_RTT_KEEPALIVE_EVENTID, |
| WMI_10_4_OEM_CAPABILITY_EVENTID, |
| WMI_10_4_OEM_MEASUREMENT_REPORT_EVENTID, |
| WMI_10_4_OEM_ERROR_REPORT_EVENTID, |
| WMI_10_4_NAN_EVENTID, |
| WMI_10_4_WOW_WAKEUP_HOST_EVENTID, |
| WMI_10_4_GTK_OFFLOAD_STATUS_EVENTID, |
| WMI_10_4_GTK_REKEY_FAIL_EVENTID, |
| WMI_10_4_DCS_INTERFERENCE_EVENTID, |
| WMI_10_4_PDEV_TPC_CONFIG_EVENTID, |
| WMI_10_4_CSA_HANDLING_EVENTID, |
| WMI_10_4_GPIO_INPUT_EVENTID, |
| WMI_10_4_PEER_RATECODE_LIST_EVENTID, |
| WMI_10_4_GENERIC_BUFFER_EVENTID, |
| WMI_10_4_MCAST_BUF_RELEASE_EVENTID, |
| WMI_10_4_MCAST_LIST_AGEOUT_EVENTID, |
| WMI_10_4_VDEV_GET_KEEPALIVE_EVENTID, |
| WMI_10_4_WDS_PEER_EVENTID, |
| WMI_10_4_PEER_STA_PS_STATECHG_EVENTID, |
| WMI_10_4_PDEV_FIPS_EVENTID, |
| WMI_10_4_TT_STATS_EVENTID, |
| WMI_10_4_PDEV_CHANNEL_HOPPING_EVENTID, |
| WMI_10_4_PDEV_ANI_CCK_LEVEL_EVENTID, |
| WMI_10_4_PDEV_ANI_OFDM_LEVEL_EVENTID, |
| WMI_10_4_PDEV_RESERVE_AST_ENTRY_EVENTID, |
| WMI_10_4_PDEV_NFCAL_POWER_EVENTID, |
| WMI_10_4_PDEV_TPC_EVENTID, |
| WMI_10_4_PDEV_GET_AST_INFO_EVENTID, |
| WMI_10_4_PDEV_TEMPERATURE_EVENTID, |
| WMI_10_4_PDEV_NFCAL_POWER_ALL_CHANNELS_EVENTID, |
| WMI_10_4_PDEV_BSS_CHAN_INFO_EVENTID, |
| WMI_10_4_MU_REPORT_EVENTID, |
| WMI_10_4_TX_DATA_TRAFFIC_CTRL_EVENTID, |
| WMI_10_4_PEER_TX_MU_TXMIT_COUNT_EVENTID, |
| WMI_10_4_PEER_GID_USERPOS_LIST_EVENTID, |
| WMI_10_4_PDEV_CHECK_CAL_VERSION_EVENTID, |
| WMI_10_4_ATF_PEER_STATS_EVENTID, |
| WMI_10_4_PDEV_GET_RX_FILTER_EVENTID, |
| WMI_10_4_NAC_RSSI_EVENTID, |
| WMI_10_4_DEBUG_FATAL_CONDITION_EVENTID, |
| WMI_10_4_GET_TSF_TIMER_RESP_EVENTID, |
| WMI_10_4_PDEV_TPC_TABLE_EVENTID, |
| WMI_10_4_PDEV_WDS_ENTRY_LIST_EVENTID, |
| WMI_10_4_TDLS_PEER_EVENTID, |
| WMI_10_4_HOST_SWFDA_EVENTID, |
| WMI_10_4_ESP_ESTIMATE_EVENTID, |
| WMI_10_4_DFS_STATUS_CHECK_EVENTID, |
| WMI_10_4_PDEV_UTF_EVENTID = WMI_10_4_END_EVENTID - 1, |
| }; |
| |
| enum wmi_phy_mode { |
| MODE_11A = 0, /* 11a Mode */ |
| MODE_11G = 1, /* 11b/g Mode */ |
| MODE_11B = 2, /* 11b Mode */ |
| MODE_11GONLY = 3, /* 11g only Mode */ |
| MODE_11NA_HT20 = 4, /* 11a HT20 mode */ |
| MODE_11NG_HT20 = 5, /* 11g HT20 mode */ |
| MODE_11NA_HT40 = 6, /* 11a HT40 mode */ |
| MODE_11NG_HT40 = 7, /* 11g HT40 mode */ |
| MODE_11AC_VHT20 = 8, |
| MODE_11AC_VHT40 = 9, |
| MODE_11AC_VHT80 = 10, |
| /* MODE_11AC_VHT160 = 11, */ |
| MODE_11AC_VHT20_2G = 11, |
| MODE_11AC_VHT40_2G = 12, |
| MODE_11AC_VHT80_2G = 13, |
| MODE_11AC_VHT80_80 = 14, |
| MODE_11AC_VHT160 = 15, |
| MODE_UNKNOWN = 16, |
| MODE_MAX = 16 |
| }; |
| |
| static inline const char *ath10k_wmi_phymode_str(enum wmi_phy_mode mode) |
| { |
| switch (mode) { |
| case MODE_11A: |
| return "11a"; |
| case MODE_11G: |
| return "11g"; |
| case MODE_11B: |
| return "11b"; |
| case MODE_11GONLY: |
| return "11gonly"; |
| case MODE_11NA_HT20: |
| return "11na-ht20"; |
| case MODE_11NG_HT20: |
| return "11ng-ht20"; |
| case MODE_11NA_HT40: |
| return "11na-ht40"; |
| case MODE_11NG_HT40: |
| return "11ng-ht40"; |
| case MODE_11AC_VHT20: |
| return "11ac-vht20"; |
| case MODE_11AC_VHT40: |
| return "11ac-vht40"; |
| case MODE_11AC_VHT80: |
| return "11ac-vht80"; |
| case MODE_11AC_VHT160: |
| return "11ac-vht160"; |
| case MODE_11AC_VHT80_80: |
| return "11ac-vht80+80"; |
| case MODE_11AC_VHT20_2G: |
| return "11ac-vht20-2g"; |
| case MODE_11AC_VHT40_2G: |
| return "11ac-vht40-2g"; |
| case MODE_11AC_VHT80_2G: |
| return "11ac-vht80-2g"; |
| case MODE_UNKNOWN: |
| /* skip */ |
| break; |
| |
| /* no default handler to allow compiler to check that the |
| * enum is fully handled |
| */ |
| } |
| |
| return "<unknown>"; |
| } |
| |
| #define WMI_CHAN_LIST_TAG 0x1 |
| #define WMI_SSID_LIST_TAG 0x2 |
| #define WMI_BSSID_LIST_TAG 0x3 |
| #define WMI_IE_TAG 0x4 |
| |
| struct wmi_channel { |
| __le32 mhz; |
| __le32 band_center_freq1; |
| __le32 band_center_freq2; /* valid for 11ac, 80plus80 */ |
| union { |
| __le32 flags; /* WMI_CHAN_FLAG_ */ |
| struct { |
| u8 mode; /* only 6 LSBs */ |
| } __packed; |
| } __packed; |
| union { |
| __le32 reginfo0; |
| struct { |
| /* note: power unit is 0.5 dBm */ |
| u8 min_power; |
| u8 max_power; |
| u8 reg_power; |
| u8 reg_classid; |
| } __packed; |
| } __packed; |
| union { |
| __le32 reginfo1; |
| struct { |
| /* note: power unit is 1 dBm */ |
| u8 antenna_max; |
| /* note: power unit is 0.5 dBm */ |
| u8 max_tx_power; |
| } __packed; |
| } __packed; |
| } __packed; |
| |
| struct wmi_channel_arg { |
| u32 freq; |
| u32 band_center_freq1; |
| u32 band_center_freq2; |
| bool passive; |
| bool allow_ibss; |
| bool allow_ht; |
| bool allow_vht; |
| bool ht40plus; |
| bool chan_radar; |
| /* note: power unit is 0.5 dBm */ |
| u32 min_power; |
| u32 max_power; |
| u32 max_reg_power; |
| /* note: power unit is 1 dBm */ |
| u32 max_antenna_gain; |
| u32 reg_class_id; |
| enum wmi_phy_mode mode; |
| }; |
| |
| enum wmi_channel_change_cause { |
| WMI_CHANNEL_CHANGE_CAUSE_NONE = 0, |
| WMI_CHANNEL_CHANGE_CAUSE_CSA, |
| }; |
| |
| #define WMI_CHAN_FLAG_HT40_PLUS (1 << 6) |
| #define WMI_CHAN_FLAG_PASSIVE (1 << 7) |
| #define WMI_CHAN_FLAG_ADHOC_ALLOWED (1 << 8) |
| #define WMI_CHAN_FLAG_AP_DISABLED (1 << 9) |
| #define WMI_CHAN_FLAG_DFS (1 << 10) |
| #define WMI_CHAN_FLAG_ALLOW_HT (1 << 11) |
| #define WMI_CHAN_FLAG_ALLOW_VHT (1 << 12) |
| |
| /* Indicate reason for channel switch */ |
| #define WMI_CHANNEL_CHANGE_CAUSE_CSA (1 << 13) |
| /* DFS required on channel for 2nd segment of VHT160 and VHT80+80*/ |
| #define WMI_CHAN_FLAG_DFS_CFREQ2 (1 << 15) |
| #define WMI_MAX_SPATIAL_STREAM 3 /* default max ss */ |
| |
| /* HT Capabilities*/ |
| #define WMI_HT_CAP_ENABLED 0x0001 /* HT Enabled/ disabled */ |
| #define WMI_HT_CAP_HT20_SGI 0x0002 /* Short Guard Interval with HT20 */ |
| #define WMI_HT_CAP_DYNAMIC_SMPS 0x0004 /* Dynamic MIMO powersave */ |
| #define WMI_HT_CAP_TX_STBC 0x0008 /* B3 TX STBC */ |
| #define WMI_HT_CAP_TX_STBC_MASK_SHIFT 3 |
| #define WMI_HT_CAP_RX_STBC 0x0030 /* B4-B5 RX STBC */ |
| #define WMI_HT_CAP_RX_STBC_MASK_SHIFT 4 |
| #define WMI_HT_CAP_LDPC 0x0040 /* LDPC supported */ |
| #define WMI_HT_CAP_L_SIG_TXOP_PROT 0x0080 /* L-SIG TXOP Protection */ |
| #define WMI_HT_CAP_MPDU_DENSITY 0x0700 /* MPDU Density */ |
| #define WMI_HT_CAP_MPDU_DENSITY_MASK_SHIFT 8 |
| #define WMI_HT_CAP_HT40_SGI 0x0800 |
| #define WMI_HT_CAP_RX_LDPC 0x1000 /* LDPC RX support */ |
| #define WMI_HT_CAP_TX_LDPC 0x2000 /* LDPC TX support */ |
| |
| #define WMI_HT_CAP_DEFAULT_ALL (WMI_HT_CAP_ENABLED | \ |
| WMI_HT_CAP_HT20_SGI | \ |
| WMI_HT_CAP_HT40_SGI | \ |
| WMI_HT_CAP_TX_STBC | \ |
| WMI_HT_CAP_RX_STBC | \ |
| WMI_HT_CAP_LDPC) |
| |
| /* |
| * WMI_VHT_CAP_* these maps to ieee 802.11ac vht capability information |
| * field. The fields not defined here are not supported, or reserved. |
| * Do not change these masks and if you have to add new one follow the |
| * bitmask as specified by 802.11ac draft. |
| */ |
| |
| #define WMI_VHT_CAP_MAX_MPDU_LEN_MASK 0x00000003 |
| #define WMI_VHT_CAP_RX_LDPC 0x00000010 |
| #define WMI_VHT_CAP_SGI_80MHZ 0x00000020 |
| #define WMI_VHT_CAP_SGI_160MHZ 0x00000040 |
| #define WMI_VHT_CAP_TX_STBC 0x00000080 |
| #define WMI_VHT_CAP_RX_STBC_MASK 0x00000300 |
| #define WMI_VHT_CAP_RX_STBC_MASK_SHIFT 8 |
| #define WMI_VHT_CAP_SU_BFER 0x00000800 |
| #define WMI_VHT_CAP_SU_BFEE 0x00001000 |
| #define WMI_VHT_CAP_MAX_CS_ANT_MASK 0x0000E000 |
| #define WMI_VHT_CAP_MAX_CS_ANT_MASK_SHIFT 13 |
| #define WMI_VHT_CAP_MAX_SND_DIM_MASK 0x00070000 |
| #define WMI_VHT_CAP_MAX_SND_DIM_MASK_SHIFT 16 |
| #define WMI_VHT_CAP_MU_BFER 0x00080000 |
| #define WMI_VHT_CAP_MU_BFEE 0x00100000 |
| #define WMI_VHT_CAP_MAX_AMPDU_LEN_EXP 0x03800000 |
| #define WMI_VHT_CAP_MAX_AMPDU_LEN_EXP_SHIFT 23 |
| #define WMI_VHT_CAP_RX_FIXED_ANT 0x10000000 |
| #define WMI_VHT_CAP_TX_FIXED_ANT 0x20000000 |
| |
| /* The following also refer for max HT AMSDU */ |
| #define WMI_VHT_CAP_MAX_MPDU_LEN_3839 0x00000000 |
| #define WMI_VHT_CAP_MAX_MPDU_LEN_7935 0x00000001 |
| #define WMI_VHT_CAP_MAX_MPDU_LEN_11454 0x00000002 |
| |
| #define WMI_VHT_CAP_DEFAULT_ALL (WMI_VHT_CAP_MAX_MPDU_LEN_11454 | \ |
| WMI_VHT_CAP_RX_LDPC | \ |
| WMI_VHT_CAP_SGI_80MHZ | \ |
| WMI_VHT_CAP_TX_STBC | \ |
| WMI_VHT_CAP_RX_STBC_MASK | \ |
| WMI_VHT_CAP_MAX_AMPDU_LEN_EXP | \ |
| WMI_VHT_CAP_RX_FIXED_ANT | \ |
| WMI_VHT_CAP_TX_FIXED_ANT) |
| |
| /* |
| * Interested readers refer to Rx/Tx MCS Map definition as defined in |
| * 802.11ac |
| */ |
| #define WMI_VHT_MAX_MCS_4_SS_MASK(r, ss) ((3 & (r)) << (((ss) - 1) << 1)) |
| #define WMI_VHT_MAX_SUPP_RATE_MASK 0x1fff0000 |
| #define WMI_VHT_MAX_SUPP_RATE_MASK_SHIFT 16 |
| |
| enum { |
| REGDMN_MODE_11A = 0x00001, /* 11a channels */ |
| REGDMN_MODE_TURBO = 0x00002, /* 11a turbo-only channels */ |
| REGDMN_MODE_11B = 0x00004, /* 11b channels */ |
| REGDMN_MODE_PUREG = 0x00008, /* 11g channels (OFDM only) */ |
| REGDMN_MODE_11G = 0x00008, /* XXX historical */ |
| REGDMN_MODE_108G = 0x00020, /* 11a+Turbo channels */ |
| REGDMN_MODE_108A = 0x00040, /* 11g+Turbo channels */ |
| REGDMN_MODE_XR = 0x00100, /* XR channels */ |
| REGDMN_MODE_11A_HALF_RATE = 0x00200, /* 11A half rate channels */ |
| REGDMN_MODE_11A_QUARTER_RATE = 0x00400, /* 11A quarter rate channels */ |
| REGDMN_MODE_11NG_HT20 = 0x00800, /* 11N-G HT20 channels */ |
| REGDMN_MODE_11NA_HT20 = 0x01000, /* 11N-A HT20 channels */ |
| REGDMN_MODE_11NG_HT40PLUS = 0x02000, /* 11N-G HT40 + channels */ |
| REGDMN_MODE_11NG_HT40MINUS = 0x04000, /* 11N-G HT40 - channels */ |
| REGDMN_MODE_11NA_HT40PLUS = 0x08000, /* 11N-A HT40 + channels */ |
| REGDMN_MODE_11NA_HT40MINUS = 0x10000, /* 11N-A HT40 - channels */ |
| REGDMN_MODE_11AC_VHT20 = 0x20000, /* 5Ghz, VHT20 */ |
| REGDMN_MODE_11AC_VHT40PLUS = 0x40000, /* 5Ghz, VHT40 + channels */ |
| REGDMN_MODE_11AC_VHT40MINUS = 0x80000, /* 5Ghz VHT40 - channels */ |
| REGDMN_MODE_11AC_VHT80 = 0x100000, /* 5Ghz, VHT80 channels */ |
| REGDMN_MODE_11AC_VHT160 = 0x200000, /* 5Ghz, VHT160 channels */ |
| REGDMN_MODE_11AC_VHT80_80 = 0x400000, /* 5Ghz, VHT80+80 channels */ |
| REGDMN_MODE_ALL = 0xffffffff |
| }; |
| |
| #define REGDMN_CAP1_CHAN_HALF_RATE 0x00000001 |
| #define REGDMN_CAP1_CHAN_QUARTER_RATE 0x00000002 |
| #define REGDMN_CAP1_CHAN_HAL49GHZ 0x00000004 |
| |
| /* regulatory capabilities */ |
| #define REGDMN_EEPROM_EEREGCAP_EN_FCC_MIDBAND 0x0040 |
| #define REGDMN_EEPROM_EEREGCAP_EN_KK_U1_EVEN 0x0080 |
| #define REGDMN_EEPROM_EEREGCAP_EN_KK_U2 0x0100 |
| #define REGDMN_EEPROM_EEREGCAP_EN_KK_MIDBAND 0x0200 |
| #define REGDMN_EEPROM_EEREGCAP_EN_KK_U1_ODD 0x0400 |
| #define REGDMN_EEPROM_EEREGCAP_EN_KK_NEW_11A 0x0800 |
| |
| struct hal_reg_capabilities { |
| /* regdomain value specified in EEPROM */ |
| __le32 eeprom_rd; |
| /*regdomain */ |
| __le32 eeprom_rd_ext; |
| /* CAP1 capabilities bit map. */ |
| __le32 regcap1; |
| /* REGDMN EEPROM CAP. */ |
| __le32 regcap2; |
| /* REGDMN MODE */ |
| __le32 wireless_modes; |
| __le32 low_2ghz_chan; |
| __le32 high_2ghz_chan; |
| __le32 low_5ghz_chan; |
| __le32 high_5ghz_chan; |
| } __packed; |
| |
| enum wlan_mode_capability { |
| WHAL_WLAN_11A_CAPABILITY = 0x1, |
| WHAL_WLAN_11G_CAPABILITY = 0x2, |
| WHAL_WLAN_11AG_CAPABILITY = 0x3, |
| }; |
| |
| /* structure used by FW for requesting host memory */ |
| struct wlan_host_mem_req { |
| /* ID of the request */ |
| __le32 req_id; |
| /* size of the of each unit */ |
| __le32 unit_size; |
| /* flags to indicate that |
| * the number units is dependent |
| * on number of resources(num vdevs num peers .. etc) |
| */ |
| __le32 num_unit_info; |
| /* |
| * actual number of units to allocate . if flags in the num_unit_info |
| * indicate that number of units is tied to number of a particular |
| * resource to allocate then num_units filed is set to 0 and host |
| * will derive the number units from number of the resources it is |
| * requesting. |
| */ |
| __le32 num_units; |
| } __packed; |
| |
| /* |
| * The following struct holds optional payload for |
| * wmi_service_ready_event,e.g., 11ac pass some of the |
| * device capability to the host. |
| */ |
| struct wmi_service_ready_event { |
| __le32 sw_version; |
| __le32 sw_version_1; |
| __le32 abi_version; |
| /* WMI_PHY_CAPABILITY */ |
| __le32 phy_capability; |
| /* Maximum number of frag table entries that SW will populate less 1 */ |
| __le32 max_frag_entry; |
| __le32 wmi_service_bitmap[16]; |
| __le32 num_rf_chains; |
| /* |
| * The following field is only valid for service type |
| * WMI_SERVICE_11AC |
| */ |
| __le32 ht_cap_info; /* WMI HT Capability */ |
| __le32 vht_cap_info; /* VHT capability info field of 802.11ac */ |
| __le32 vht_supp_mcs; /* VHT Supported MCS Set field Rx/Tx same */ |
| __le32 hw_min_tx_power; |
| __le32 hw_max_tx_power; |
| struct hal_reg_capabilities hal_reg_capabilities; |
| __le32 sys_cap_info; |
| __le32 min_pkt_size_enable; /* Enterprise mode short pkt enable */ |
| /* |
| * Max beacon and Probe Response IE offload size |
| * (includes optional P2P IEs) |
| */ |
| __le32 max_bcn_ie_size; |
| /* |
| * request to host to allocate a chuck of memory and pss it down to FW |
| * via WM_INIT. FW uses this as FW extesnsion memory for saving its |
| * data structures. Only valid for low latency interfaces like PCIE |
| * where FW can access this memory directly (or) by DMA. |
| */ |
| __le32 num_mem_reqs; |
| struct wlan_host_mem_req mem_reqs[]; |
| } __packed; |
| |
| /* This is the definition from 10.X firmware branch */ |
| struct wmi_10x_service_ready_event { |
| __le32 sw_version; |
| __le32 abi_version; |
| |
| /* WMI_PHY_CAPABILITY */ |
| __le32 phy_capability; |
| |
| /* Maximum number of frag table entries that SW will populate less 1 */ |
| __le32 max_frag_entry; |
| __le32 wmi_service_bitmap[16]; |
| __le32 num_rf_chains; |
| |
| /* |
| * The following field is only valid for service type |
| * WMI_SERVICE_11AC |
| */ |
| __le32 ht_cap_info; /* WMI HT Capability */ |
| __le32 vht_cap_info; /* VHT capability info field of 802.11ac */ |
| __le32 vht_supp_mcs; /* VHT Supported MCS Set field Rx/Tx same */ |
| __le32 hw_min_tx_power; |
| __le32 hw_max_tx_power; |
| |
| struct hal_reg_capabilities hal_reg_capabilities; |
| |
| __le32 sys_cap_info; |
| __le32 min_pkt_size_enable; /* Enterprise mode short pkt enable */ |
| |
| /* |
| * request to host to allocate a chuck of memory and pss it down to FW |
| * via WM_INIT. FW uses this as FW extesnsion memory for saving its |
| * data structures. Only valid for low latency interfaces like PCIE |
| * where FW can access this memory directly (or) by DMA. |
| */ |
| __le32 num_mem_reqs; |
| |
| struct wlan_host_mem_req mem_reqs[]; |
| } __packed; |
| |
| #define WMI_SERVICE_READY_TIMEOUT_HZ (5 * HZ) |
| #define WMI_UNIFIED_READY_TIMEOUT_HZ (5 * HZ) |
| |
| struct wmi_ready_event { |
| __le32 sw_version; |
| __le32 abi_version; |
| struct wmi_mac_addr mac_addr; |
| __le32 status; |
| } __packed; |
| |
| struct wmi_resource_config { |
| /* number of virtual devices (VAPs) to support */ |
| __le32 num_vdevs; |
| |
| /* number of peer nodes to support */ |
| __le32 num_peers; |
| |
| /* |
| * In offload mode target supports features like WOW, chatter and |
| * other protocol offloads. In order to support them some |
| * functionalities like reorder buffering, PN checking need to be |
| * done in target. This determines maximum number of peers supported |
| * by target in offload mode |
| */ |
| __le32 num_offload_peers; |
| |
| /* For target-based RX reordering */ |
| __le32 num_offload_reorder_bufs; |
| |
| /* number of keys per peer */ |
| __le32 num_peer_keys; |
| |
| /* total number of TX/RX data TIDs */ |
| __le32 num_tids; |
| |
| /* |
| * max skid for resolving hash collisions |
| * |
| * The address search table is sparse, so that if two MAC addresses |
| * result in the same hash value, the second of these conflicting |
| * entries can slide to the next index in the address search table, |
| * and use it, if it is unoccupied. This ast_skid_limit parameter |
| * specifies the upper bound on how many subsequent indices to search |
| * over to find an unoccupied space. |
| */ |
| __le32 ast_skid_limit; |
| |
| /* |
| * the nominal chain mask for transmit |
| * |
| * The chain mask may be modified dynamically, e.g. to operate AP |
| * tx with a reduced number of chains if no clients are associated. |
| * This configuration parameter specifies the nominal chain-mask that |
| * should be used when not operating with a reduced set of tx chains. |
| */ |
| __le32 tx_chain_mask; |
| |
| /* |
| * the nominal chain mask for receive |
| * |
| * The chain mask may be modified dynamically, e.g. for a client |
| * to use a reduced number of chains for receive if the traffic to |
| * the client is low enough that it doesn't require downlink MIMO |
| * or antenna diversity. |
| * This configuration parameter specifies the nominal chain-mask that |
| * should be used when not operating with a reduced set of rx chains. |
| */ |
| __le32 rx_chain_mask; |
| |
| /* |
| * what rx reorder timeout (ms) to use for the AC |
| * |
| * Each WMM access class (voice, video, best-effort, background) will |
| * have its own timeout value to dictate how long to wait for missing |
| * rx MPDUs to arrive before flushing subsequent MPDUs that have |
| * already been received. |
| * This parameter specifies the timeout in milliseconds for each |
| * class. |
| */ |
| __le32 rx_timeout_pri_vi; |
| __le32 rx_timeout_pri_vo; |
| __le32 rx_timeout_pri_be; |
| __le32 rx_timeout_pri_bk; |
| |
| /* |
| * what mode the rx should decap packets to |
| * |
| * MAC can decap to RAW (no decap), native wifi or Ethernet types |
| * THis setting also determines the default TX behavior, however TX |
| * behavior can be modified on a per VAP basis during VAP init |
| */ |
| __le32 rx_decap_mode; |
| |
| /* what is the maximum number of scan requests that can be queued */ |
| __le32 scan_max_pending_reqs; |
| |
| /* maximum VDEV that could use BMISS offload */ |
| __le32 bmiss_offload_max_vdev; |
| |
| /* maximum VDEV that could use offload roaming */ |
| __le32 roam_offload_max_vdev; |
| |
| /* maximum AP profiles that would push to offload roaming */ |
| __le32 roam_offload_max_ap_profiles; |
| |
| /* |
| * how many groups to use for mcast->ucast conversion |
| * |
| * The target's WAL maintains a table to hold information regarding |
| * which peers belong to a given multicast group, so that if |
| * multicast->unicast conversion is enabled, the target can convert |
| * multicast tx frames to a series of unicast tx frames, to each |
| * peer within the multicast group. |
| This num_mcast_groups configuration parameter tells the target how |
| * many multicast groups to provide storage for within its multicast |
| * group membership table. |
| */ |
| __le32 num_mcast_groups; |
| |
| /* |
| * size to alloc for the mcast membership table |
| * |
| * This num_mcast_table_elems configuration parameter tells the |
| * target how many peer elements it needs to provide storage for in |
| * its multicast group membership table. |
| * These multicast group membership table elements are shared by the |
| * multicast groups stored within the table. |
| */ |
| __le32 num_mcast_table_elems; |
| |
| /* |
| * whether/how to do multicast->unicast conversion |
| * |
| * This configuration parameter specifies whether the target should |
| * perform multicast --> unicast conversion on transmit, and if so, |
| * what to do if it finds no entries in its multicast group |
| * membership table for the multicast IP address in the tx frame. |
| * Configuration value: |
| * 0 -> Do not perform multicast to unicast conversion. |
| * 1 -> Convert multicast frames to unicast, if the IP multicast |
| * address from the tx frame is found in the multicast group |
| * membership table. If the IP multicast address is not found, |
| * drop the frame. |
| * 2 -> Convert multicast frames to unicast, if the IP multicast |
| * address from the tx frame is found in the multicast group |
| * membership table. If the IP multicast address is not found, |
| * transmit the frame as multicast. |
| */ |
| __le32 mcast2ucast_mode; |
| |
| /* |
| * how much memory to allocate for a tx PPDU dbg log |
| * |
| * This parameter controls how much memory the target will allocate |
| * to store a log of tx PPDU meta-information (how large the PPDU |
| * was, when it was sent, whether it was successful, etc.) |
| */ |
| __le32 tx_dbg_log_size; |
| |
| /* how many AST entries to be allocated for WDS */ |
| __le32 num_wds_entries; |
| |
| /* |
| * MAC DMA burst size, e.g., For target PCI limit can be |
| * 0 -default, 1 256B |
| */ |
| __le32 dma_burst_size; |
| |
| /* |
| * Fixed delimiters to be inserted after every MPDU to |
| * account for interface latency to avoid underrun. |
| */ |
| __le32 mac_aggr_delim; |
| |
| /* |
| * determine whether target is responsible for detecting duplicate |
| * non-aggregate MPDU and timing out stale fragments. |
| * |
| * A-MPDU reordering is always performed on the target. |
| * |
| * 0: target responsible for frag timeout and dup checking |
| * 1: host responsible for frag timeout and dup checking |
| */ |
| __le32 rx_skip_defrag_timeout_dup_detection_check; |
| |
| /* |
| * Configuration for VoW : |
| * No of Video Nodes to be supported |
| * and Max no of descriptors for each Video link (node). |
| */ |
| __le32 vow_config; |
| |
| /* maximum VDEV that could use GTK offload */ |
| __le32 gtk_offload_max_vdev; |
| |
| /* Number of msdu descriptors target should use */ |
| __le32 num_msdu_desc; |
| |
| /* |
| * Max. number of Tx fragments per MSDU |
| * This parameter controls the max number of Tx fragments per MSDU. |
| * This is sent by the target as part of the WMI_SERVICE_READY event |
| * and is overridden by the OS shim as required. |
| */ |
| __le32 max_frag_entries; |
| } __packed; |
| |
| struct wmi_resource_config_10x { |
| /* number of virtual devices (VAPs) to support */ |
| __le32 num_vdevs; |
| |
| /* number of peer nodes to support */ |
| __le32 num_peers; |
| |
| /* number of keys per peer */ |
| __le32 num_peer_keys; |
| |
| /* total number of TX/RX data TIDs */ |
| __le32 num_tids; |
| |
| /* |
| * max skid for resolving hash collisions |
| * |
| * The address search table is sparse, so that if two MAC addresses |
| * result in the same hash value, the second of these conflicting |
| * entries can slide to the next index in the address search table, |
| * and use it, if it is unoccupied. This ast_skid_limit parameter |
| * specifies the upper bound on how many subsequent indices to search |
| * over to find an unoccupied space. |
| */ |
| __le32 ast_skid_limit; |
| |
| /* |
| * the nominal chain mask for transmit |
| * |
| * The chain mask may be modified dynamically, e.g. to operate AP |
| * tx with a reduced number of chains if no clients are associated. |
| * This configuration parameter specifies the nominal chain-mask that |
| * should be used when not operating with a reduced set of tx chains. |
| */ |
| __le32 tx_chain_mask; |
| |
| /* |
| * the nominal chain mask for receive |
| * |
| * The chain mask may be modified dynamically, e.g. for a client |
| * to use a reduced number of chains for receive if the traffic to |
| * the client is low enough that it doesn't require downlink MIMO |
| * or antenna diversity. |
| * This configuration parameter specifies the nominal chain-mask that |
| * should be used when not operating with a reduced set of rx chains. |
| */ |
| __le32 rx_chain_mask; |
| |
| /* |
| * what rx reorder timeout (ms) to use for the AC |
| * |
| * Each WMM access class (voice, video, best-effort, background) will |
| * have its own timeout value to dictate how long to wait for missing |
| * rx MPDUs to arrive before flushing subsequent MPDUs that have |
| * already been received. |
| * This parameter specifies the timeout in milliseconds for each |
| * class. |
| */ |
| __le32 rx_timeout_pri_vi; |
| __le32 rx_timeout_pri_vo; |
| __le32 rx_timeout_pri_be; |
| __le32 rx_timeout_pri_bk; |
| |
| /* |
| * what mode the rx should decap packets to |
| * |
| * MAC can decap to RAW (no decap), native wifi or Ethernet types |
| * THis setting also determines the default TX behavior, however TX |
| * behavior can be modified on a per VAP basis during VAP init |
| */ |
| __le32 rx_decap_mode; |
| |
| /* what is the maximum number of scan requests that can be queued */ |
| __le32 scan_max_pending_reqs; |
| |
| /* maximum VDEV that could use BMISS offload */ |
| __le32 bmiss_offload_max_vdev; |
| |
| /* maximum VDEV that could use offload roaming */ |
| __le32 roam_offload_max_vdev; |
| |
| /* maximum AP profiles that would push to offload roaming */ |
| __le32 roam_offload_max_ap_profiles; |
| |
| /* |
| * how many groups to use for mcast->ucast conversion |
| * |
| * The target's WAL maintains a table to hold information regarding |
| * which peers belong to a given multicast group, so that if |
| * multicast->unicast conversion is enabled, the target can convert |
| * multicast tx frames to a series of unicast tx frames, to each |
| * peer within the multicast group. |
| This num_mcast_groups configuration parameter tells the target how |
| * many multicast groups to provide storage for within its multicast |
| * group membership table. |
| */ |
| __le32 num_mcast_groups; |
| |
| /* |
| * size to alloc for the mcast membership table |
| * |
| * This num_mcast_table_elems configuration parameter tells the |
| * target how many peer elements it needs to provide storage for in |
| * its multicast group membership table. |
| * These multicast group membership table elements are shared by the |
| * multicast groups stored within the table. |
| */ |
| __le32 num_mcast_table_elems; |
| |
| /* |
| * whether/how to do multicast->unicast conversion |
| * |
| * This configuration parameter specifies whether the target should |
| * perform multicast --> unicast conversion on transmit, and if so, |
| * what to do if it finds no entries in its multicast group |
| * membership table for the multicast IP address in the tx frame. |
| * Configuration value: |
| * 0 -> Do not perform multicast to unicast conversion. |
| * 1 -> Convert multicast frames to unicast, if the IP multicast |
| * address from the tx frame is found in the multicast group |
| * membership table. If the IP multicast address is not found, |
| * drop the frame. |
| * 2 -> Convert multicast frames to unicast, if the IP multicast |
| * address from the tx frame is found in the multicast group |
| * membership table. If the IP multicast address is not found, |
| * transmit the frame as multicast. |
| */ |
| __le32 mcast2ucast_mode; |
| |
| /* |
| * how much memory to allocate for a tx PPDU dbg log |
| * |
| * This parameter controls how much memory the target will allocate |
| * to store a log of tx PPDU meta-information (how large the PPDU |
| * was, when it was sent, whether it was successful, etc.) |
| */ |
| __le32 tx_dbg_log_size; |
| |
| /* how many AST entries to be allocated for WDS */ |
| __le32 num_wds_entries; |
| |
| /* |
| * MAC DMA burst size, e.g., For target PCI limit can be |
| * 0 -default, 1 256B |
| */ |
| __le32 dma_burst_size; |
| |
| /* |
| * Fixed delimiters to be inserted after every MPDU to |
| * account for interface latency to avoid underrun. |
| */ |
| __le32 mac_aggr_delim; |
| |
| /* |
| * determine whether target is responsible for detecting duplicate |
| * non-aggregate MPDU and timing out stale fragments. |
| * |
| * A-MPDU reordering is always performed on the target. |
| * |
| * 0: target responsible for frag timeout and dup checking |
| * 1: host responsible for frag timeout and dup checking |
| */ |
| __le32 rx_skip_defrag_timeout_dup_detection_check; |
| |
| /* |
| * Configuration for VoW : |
| * No of Video Nodes to be supported |
| * and Max no of descriptors for each Video link (node). |
| */ |
| __le32 vow_config; |
| |
| /* Number of msdu descriptors target should use */ |
| __le32 num_msdu_desc; |
| |
| /* |
| * Max. number of Tx fragments per MSDU |
| * This parameter controls the max number of Tx fragments per MSDU. |
| * This is sent by the target as part of the WMI_SERVICE_READY event |
| * and is overridden by the OS shim as required. |
| */ |
| __le32 max_frag_entries; |
| } __packed; |
| |
| enum wmi_10_2_feature_mask { |
| WMI_10_2_RX_BATCH_MODE = BIT(0), |
| WMI_10_2_ATF_CONFIG = BIT(1), |
| WMI_10_2_COEX_GPIO = BIT(3), |
| WMI_10_2_BSS_CHAN_INFO = BIT(6), |
| WMI_10_2_PEER_STATS = BIT(7), |
| }; |
| |
| struct wmi_resource_config_10_2 { |
| struct wmi_resource_config_10x common; |
| __le32 max_peer_ext_stats; |
| __le32 smart_ant_cap; /* 0-disable, 1-enable */ |
| __le32 bk_min_free; |
| __le32 be_min_free; |
| __le32 vi_min_free; |
| __le32 vo_min_free; |
| __le32 feature_mask; |
| } __packed; |
| |
| #define NUM_UNITS_IS_NUM_VDEVS BIT(0) |
| #define NUM_UNITS_IS_NUM_PEERS BIT(1) |
| #define NUM_UNITS_IS_NUM_ACTIVE_PEERS BIT(2) |
| |
| struct wmi_resource_config_10_4 { |
| /* Number of virtual devices (VAPs) to support */ |
| __le32 num_vdevs; |
| |
| /* Number of peer nodes to support */ |
| __le32 num_peers; |
| |
| /* Number of active peer nodes to support */ |
| __le32 num_active_peers; |
| |
| /* In offload mode, target supports features like WOW, chatter and other |
| * protocol offloads. In order to support them some functionalities like |
| * reorder buffering, PN checking need to be done in target. |
| * This determines maximum number of peers supported by target in |
| * offload mode. |
| */ |
| __le32 num_offload_peers; |
| |
| /* Number of reorder buffers available for doing target based reorder |
| * Rx reorder buffering |
| */ |
| __le32 num_offload_reorder_buffs; |
| |
| /* Number of keys per peer */ |
| __le32 num_peer_keys; |
| |
| /* Total number of TX/RX data TIDs */ |
| __le32 num_tids; |
| |
| /* Max skid for resolving hash collisions. |
| * The address search table is sparse, so that if two MAC addresses |
| * result in the same hash value, the second of these conflicting |
| * entries can slide to the next index in the address search table, |
| * and use it, if it is unoccupied. This ast_skid_limit parameter |
| * specifies the upper bound on how many subsequent indices to search |
| * over to find an unoccupied space. |
| */ |
| __le32 ast_skid_limit; |
| |
| /* The nominal chain mask for transmit. |
| * The chain mask may be modified dynamically, e.g. to operate AP tx |
| * with a reduced number of chains if no clients are associated. |
| * This configuration parameter specifies the nominal chain-mask that |
| * should be used when not operating with a reduced set of tx chains. |
| */ |
| __le32 tx_chain_mask; |
| |
| /* The nominal chain mask for receive. |
| * The chain mask may be modified dynamically, e.g. for a client to use |
| * a reduced number of chains for receive if the traffic to the client |
| * is low enough that it doesn't require downlink MIMO or antenna |
| * diversity. This configuration parameter specifies the nominal |
| * chain-mask that should be used when not operating with a reduced |
| * set of rx chains. |
| */ |
| __le32 rx_chain_mask; |
| |
| /* What rx reorder timeout (ms) to use for the AC. |
| * Each WMM access class (voice, video, best-effort, background) will |
| * have its own timeout value to dictate how long to wait for missing |
| * rx MPDUs to arrive before flushing subsequent MPDUs that have already |
| * been received. This parameter specifies the timeout in milliseconds |
| * for each class. |
| */ |
| __le32 rx_timeout_pri[4]; |
| |
| /* What mode the rx should decap packets to. |
| * MAC can decap to RAW (no decap), native wifi or Ethernet types. |
| * This setting also determines the default TX behavior, however TX |
| * behavior can be modified on a per VAP basis during VAP init |
| */ |
| __le32 rx_decap_mode; |
| |
| __le32 scan_max_pending_req; |
| |
| __le32 bmiss_offload_max_vdev; |
| |
| __le32 roam_offload_max_vdev; |
| |
| __le32 roam_offload_max_ap_profiles; |
| |
| /* How many groups to use for mcast->ucast conversion. |
| * The target's WAL maintains a table to hold information regarding |
| * which peers belong to a given multicast group, so that if |
| * multicast->unicast conversion is enabled, the target can convert |
| * multicast tx frames to a series of unicast tx frames, to each peer |
| * within the multicast group. This num_mcast_groups configuration |
| * parameter tells the target how many multicast groups to provide |
| * storage for within its multicast group membership table. |
| */ |
| __le32 num_mcast_groups; |
| |
| /* Size to alloc for the mcast membership table. |
| * This num_mcast_table_elems configuration parameter tells the target |
| * how many peer elements it needs to provide storage for in its |
| * multicast group membership table. These multicast group membership |
| * table elements are shared by the multicast groups stored within |
| * the table. |
| */ |
| __le32 num_mcast_table_elems; |
| |
| /* Whether/how to do multicast->unicast conversion. |
| * This configuration parameter specifies whether the target should |
| * perform multicast --> unicast conversion on transmit, and if so, |
| * what to do if it finds no entries in its multicast group membership |
| * table for the multicast IP address in the tx frame. |
| * Configuration value: |
| * 0 -> Do not perform multicast to unicast conversion. |
| * 1 -> Convert multicast frames to unicast, if the IP multicast address |
| * from the tx frame is found in the multicast group membership |
| * table. If the IP multicast address is not found, drop the frame |
| * 2 -> Convert multicast frames to unicast, if the IP multicast address |
| * from the tx frame is found in the multicast group membership |
| * table. If the IP multicast address is not found, transmit the |
| * frame as multicast. |
| */ |
| __le32 mcast2ucast_mode; |
| |
| /* How much memory to allocate for a tx PPDU dbg log. |
| * This parameter controls how much memory the target will allocate to |
| * store a log of tx PPDU meta-information (how large the PPDU was, |
| * when it was sent, whether it was successful, etc.) |
| */ |
| __le32 tx_dbg_log_size; |
| |
| /* How many AST entries to be allocated for WDS */ |
| __le32 num_wds_entries; |
| |
| /* MAC DMA burst size. 0 -default, 1 -256B */ |
| __le32 dma_burst_size; |
| |
| /* Fixed delimiters to be inserted after every MPDU to account for |
| * interface latency to avoid underrun. |
| */ |
| __le32 mac_aggr_delim; |
| |
| /* Determine whether target is responsible for detecting duplicate |
| * non-aggregate MPDU and timing out stale fragments. A-MPDU reordering |
| * is always performed on the target. |
| * |
| * 0: target responsible for frag timeout and dup checking |
| * 1: host responsible for frag timeout and dup checking |
| */ |
| __le32 rx_skip_defrag_timeout_dup_detection_check; |
| |
| /* Configuration for VoW : No of Video nodes to be supported and max |
| * no of descriptors for each video link (node). |
| */ |
| __le32 vow_config; |
| |
| /* Maximum vdev that could use gtk offload */ |
| __le32 gtk_offload_max_vdev; |
| |
| /* Number of msdu descriptors target should use */ |
| __le32 num_msdu_desc; |
| |
| /* Max number of tx fragments per MSDU. |
| * This parameter controls the max number of tx fragments per MSDU. |
| * This will passed by target as part of the WMI_SERVICE_READY event |
| * and is overridden by the OS shim as required. |
| */ |
| __le32 max_frag_entries; |
| |
| /* Max number of extended peer stats. |
| * This parameter controls the max number of peers for which extended |
| * statistics are supported by target |
| */ |
| __le32 max_peer_ext_stats; |
| |
| /* Smart antenna capabilities information. |
| * 1 - Smart antenna is enabled |
| * 0 - Smart antenna is disabled |
| * In future this can contain smart antenna specific capabilities. |
| */ |
| __le32 smart_ant_cap; |
| |
| /* User can configure the buffers allocated for each AC (BE, BK, VI, VO) |
| * during init. |
| */ |
| __le32 bk_minfree; |
| __le32 be_minfree; |
| __le32 vi_minfree; |
| __le32 vo_minfree; |
| |
| /* Rx batch mode capability. |
| * 1 - Rx batch mode enabled |
| * 0 - Rx batch mode disabled |
| */ |
| __le32 rx_batchmode; |
| |
| /* Thermal throttling capability. |
| * 1 - Capable of thermal throttling |
| * 0 - Not capable of thermal throttling |
| */ |
| __le32 tt_support; |
| |
| /* ATF configuration. |
| * 1 - Enable ATF |
| * 0 - Disable ATF |
| */ |
| __le32 atf_config; |
| |
| /* Configure padding to manage IP header un-alignment |
| * 1 - Enable padding |
| * 0 - Disable padding |
| */ |
| __le32 iphdr_pad_config; |
| |
| /* qwrap configuration (bits 15-0) |
| * 1 - This is qwrap configuration |
| * 0 - This is not qwrap |
| * |
| * Bits 31-16 is alloc_frag_desc_for_data_pkt (1 enables, 0 disables) |
| * In order to get ack-RSSI reporting and to specify the tx-rate for |
| * individual frames, this option must be enabled. This uses an extra |
| * 4 bytes per tx-msdu descriptor, so don't enable it unless you need it. |
| */ |
| __le32 qwrap_config; |
| } __packed; |
| |
| enum wmi_coex_version { |
| WMI_NO_COEX_VERSION_SUPPORT = 0, |
| /* 3 wire coex support*/ |
| WMI_COEX_VERSION_1 = 1, |
| /* 2.5 wire coex support*/ |
| WMI_COEX_VERSION_2 = 2, |
| /* 2.5 wire coex with duty cycle support */ |
| WMI_COEX_VERSION_3 = 3, |
| /* 4 wire coex support*/ |
| WMI_COEX_VERSION_4 = 4, |
| }; |
| |
| /** |
| * enum wmi_10_4_feature_mask - WMI 10.4 feature enable/disable flags |
| * @WMI_10_4_LTEU_SUPPORT: LTEU config |
| * @WMI_10_4_COEX_GPIO_SUPPORT: COEX GPIO config |
| * @WMI_10_4_AUX_RADIO_SPECTRAL_INTF: AUX Radio Enhancement for spectral scan |
| * @WMI_10_4_AUX_RADIO_CHAN_LOAD_INTF: AUX Radio Enhancement for chan load scan |
| * @WMI_10_4_BSS_CHANNEL_INFO_64: BSS channel info stats |
| * @WMI_10_4_PEER_STATS: Per station stats |
| * @WMI_10_4_VDEV_STATS: Per vdev stats |
| * @WMI_10_4_TDLS: Implicit TDLS support in firmware enable/disable |
| * @WMI_10_4_TDLS_OFFCHAN: TDLS offchannel support enable/disable |
| * @WMI_10_4_TDLS_UAPSD_BUFFER_STA: TDLS buffer sta support enable/disable |
| * @WMI_10_4_TDLS_UAPSD_SLEEP_STA: TDLS sleep sta support enable/disable |
| * @WMI_10_4_TDLS_CONN_TRACKER_IN_HOST_MODE: TDLS connection tracker in host |
| * enable/disable |
| * @WMI_10_4_TDLS_EXPLICIT_MODE_ONLY:Explicit TDLS mode enable/disable |
| * @WMI_10_4_TX_DATA_ACK_RSSI: Enable DATA ACK RSSI if firmware is capable |
| */ |
| enum wmi_10_4_feature_mask { |
| WMI_10_4_LTEU_SUPPORT = BIT(0), |
| WMI_10_4_COEX_GPIO_SUPPORT = BIT(1), |
| WMI_10_4_AUX_RADIO_SPECTRAL_INTF = BIT(2), |
| WMI_10_4_AUX_RADIO_CHAN_LOAD_INTF = BIT(3), |
| WMI_10_4_BSS_CHANNEL_INFO_64 = BIT(4), |
| WMI_10_4_PEER_STATS = BIT(5), |
| WMI_10_4_VDEV_STATS = BIT(6), |
| WMI_10_4_TDLS = BIT(7), |
| WMI_10_4_TDLS_OFFCHAN = BIT(8), |
| WMI_10_4_TDLS_UAPSD_BUFFER_STA = BIT(9), |
| WMI_10_4_TDLS_UAPSD_SLEEP_STA = BIT(10), |
| WMI_10_4_TDLS_CONN_TRACKER_IN_HOST_MODE = BIT(11), |
| WMI_10_4_TDLS_EXPLICIT_MODE_ONLY = BIT(12), |
| WMI_10_4_TX_DATA_ACK_RSSI = BIT(16), |
| WMI_10_4_EXT_PEER_TID_CONFIGS_SUPPORT = BIT(17), |
| WMI_10_4_REPORT_AIRTIME = BIT(18), |
| |
| }; |
| |
| struct wmi_ext_resource_config_10_4_cmd { |
| /* contains enum wmi_host_platform_type */ |
| __le32 host_platform_config; |
| /* see enum wmi_10_4_feature_mask */ |
| __le32 fw_feature_bitmap; |
| /* WLAN priority GPIO number */ |
| __le32 wlan_gpio_priority; |
| /* see enum wmi_coex_version */ |
| __le32 coex_version; |
| /* COEX GPIO config */ |
| __le32 coex_gpio_pin1; |
| __le32 coex_gpio_pin2; |
| __le32 coex_gpio_pin3; |
| /* number of vdevs allowed to perform tdls */ |
| __le32 num_tdls_vdevs; |
| /* number of peers to track per TDLS vdev */ |
| __le32 num_tdls_conn_table_entries; |
| /* number of tdls sleep sta supported */ |
| __le32 max_tdls_concurrent_sleep_sta; |
| /* number of tdls buffer sta supported */ |
| __le32 max_tdls_concurrent_buffer_sta; |
| }; |
| |
| /* structure describing host memory chunk. */ |
| struct host_memory_chunk { |
| /* id of the request that is passed up in service ready */ |
| __le32 req_id; |
| /* the physical address the memory chunk */ |
| __le32 ptr; |
| /* size of the chunk */ |
| __le32 size; |
| } __packed; |
| |
| #define WMI_IRAM_RECOVERY_HOST_MEM_REQ_ID 8 |
| |
| struct wmi_host_mem_chunks { |
| __le32 count; |
| /* some fw revisions require at least 1 chunk regardless of count */ |
| struct host_memory_chunk items[1]; |
| } __packed; |
| |
| struct wmi_init_cmd { |
| struct wmi_resource_config resource_config; |
| struct wmi_host_mem_chunks mem_chunks; |
| } __packed; |
| |
| /* _10x structure is from 10.X FW API */ |
| struct wmi_init_cmd_10x { |
| struct wmi_resource_config_10x resource_config; |
| struct wmi_host_mem_chunks mem_chunks; |
| } __packed; |
| |
| struct wmi_init_cmd_10_2 { |
| struct wmi_resource_config_10_2 resource_config; |
| struct wmi_host_mem_chunks mem_chunks; |
| } __packed; |
| |
| struct wmi_init_cmd_10_4 { |
| struct wmi_resource_config_10_4 resource_config; |
| struct wmi_host_mem_chunks mem_chunks; |
| } __packed; |
| |
| struct wmi_chan_list_entry { |
| __le16 freq; |
| u8 phy_mode; /* valid for 10.2 only */ |
| u8 reserved; |
| } __packed; |
| |
| /* TLV for channel list */ |
| struct wmi_chan_list { |
| __le32 tag; /* WMI_CHAN_LIST_TAG */ |
| __le32 num_chan; |
| struct wmi_chan_list_entry channel_list[]; |
| } __packed; |
| |
| struct wmi_bssid_list { |
| __le32 tag; /* WMI_BSSID_LIST_TAG */ |
| __le32 num_bssid; |
| struct wmi_mac_addr bssid_list[]; |
| } __packed; |
| |
| struct wmi_ie_data { |
| __le32 tag; /* WMI_IE_TAG */ |
| __le32 ie_len; |
| u8 ie_data[]; |
| } __packed; |
| |
| struct wmi_ssid { |
| __le32 ssid_len; |
| u8 ssid[32]; |
| } __packed; |
| |
| struct wmi_ssid_list { |
| __le32 tag; /* WMI_SSID_LIST_TAG */ |
| __le32 num_ssids; |
| struct wmi_ssid ssids[]; |
| } __packed; |
| |
| /* prefix used by scan requestor ids on the host */ |
| #define WMI_HOST_SCAN_REQUESTOR_ID_PREFIX 0xA000 |
| |
| /* prefix used by scan request ids generated on the host */ |
| /* host cycles through the lower 12 bits to generate ids */ |
| #define WMI_HOST_SCAN_REQ_ID_PREFIX 0xA000 |
| |
| #define WLAN_SCAN_PARAMS_MAX_SSID 16 |
| #define WLAN_SCAN_PARAMS_MAX_BSSID 4 |
| #define WLAN_SCAN_PARAMS_MAX_IE_LEN 256 |
| |
| /* Values lower than this may be refused by some firmware revisions with a scan |
| * completion with a timedout reason. |
| */ |
| #define WMI_SCAN_CHAN_MIN_TIME_MSEC 40 |
| |
| /* Scan priority numbers must be sequential, starting with 0 */ |
| enum wmi_scan_priority { |
| WMI_SCAN_PRIORITY_VERY_LOW = 0, |
| WMI_SCAN_PRIORITY_LOW, |
| WMI_SCAN_PRIORITY_MEDIUM, |
| WMI_SCAN_PRIORITY_HIGH, |
| WMI_SCAN_PRIORITY_VERY_HIGH, |
| WMI_SCAN_PRIORITY_COUNT /* number of priorities supported */ |
| }; |
| |
| struct wmi_start_scan_common { |
| /* Scan ID */ |
| __le32 scan_id; |
| /* Scan requestor ID */ |
| __le32 scan_req_id; |
| /* VDEV id(interface) that is requesting scan */ |
| __le32 vdev_id; |
| /* Scan Priority, input to scan scheduler */ |
| __le32 scan_priority; |
| /* Scan events subscription */ |
| __le32 notify_scan_events; |
| /* dwell time in msec on active channels */ |
| __le32 dwell_time_active; |
| /* dwell time in msec on passive channels */ |
| __le32 dwell_time_passive; |
| /* |
| * min time in msec on the BSS channel,only valid if atleast one |
| * VDEV is active |
| */ |
| __le32 min_rest_time; |
| /* |
| * max rest time in msec on the BSS channel,only valid if at least |
| * one VDEV is active |
| */ |
| /* |
| * the scanner will rest on the bss channel at least min_rest_time |
| * after min_rest_time the scanner will start checking for tx/rx |
| * activity on all VDEVs. if there is no activity the scanner will |
| * switch to off channel. if there is activity the scanner will let |
| * the radio on the bss channel until max_rest_time expires.at |
| * max_rest_time scanner will switch to off channel irrespective of |
| * activity. activity is determined by the idle_time parameter. |
| */ |
| __le32 max_rest_time; |
| /* |
| * time before sending next set of probe requests. |
| * The scanner keeps repeating probe requests transmission with |
| * period specified by repeat_probe_time. |
| * The number of probe requests specified depends on the ssid_list |
| * and bssid_list |
| */ |
| __le32 repeat_probe_time; |
| /* time in msec between 2 consequetive probe requests with in a set. */ |
| __le32 probe_spacing_time; |
| /* |
| * data inactivity time in msec on bss channel that will be used by |
| * scanner for measuring the inactivity. |
| */ |
| __le32 idle_time; |
| /* maximum time in msec allowed for scan */ |
| __le32 max_scan_time; |
| /* |
| * delay in msec before sending first probe request after switching |
| * to a channel |
| */ |
| __le32 probe_delay; |
| /* Scan control flags */ |
| __le32 scan_ctrl_flags; |
| } __packed; |
| |
| struct wmi_start_scan_tlvs { |
| /* TLV parameters. These includes channel list, ssid list, bssid list, |
| * extra ies. |
| */ |
| u8 tlvs[0]; |
| } __packed; |
| |
| struct wmi_start_scan_cmd { |
| struct wmi_start_scan_common common; |
| __le32 burst_duration_ms; |
| struct wmi_start_scan_tlvs tlvs; |
| } __packed; |
| |
| /* This is the definition from 10.X firmware branch */ |
| struct wmi_10x_start_scan_cmd { |
| struct wmi_start_scan_common common; |
| struct wmi_start_scan_tlvs tlvs; |
| } __packed; |
| |
| struct wmi_ssid_arg { |
| int len; |
| const u8 *ssid; |
| }; |
| |
| struct wmi_bssid_arg { |
| const u8 *bssid; |
| }; |
| |
| struct wmi_start_scan_arg { |
| u32 scan_id; |
| u32 scan_req_id; |
| u32 vdev_id; |
| u32 scan_priority; |
| u32 notify_scan_events; |
| u32 dwell_time_active; |
| u32 dwell_time_passive; |
| u32 min_rest_time; |
| u32 max_rest_time; |
| u32 repeat_probe_time; |
| u32 probe_spacing_time; |
| u32 idle_time; |
| u32 max_scan_time; |
| u32 probe_delay; |
| u32 scan_ctrl_flags; |
| u32 burst_duration_ms; |
| |
| u32 ie_len; |
| u32 n_channels; |
| u32 n_ssids; |
| u32 n_bssids; |
| |
| u8 ie[WLAN_SCAN_PARAMS_MAX_IE_LEN]; |
| u16 channels[64]; |
| struct wmi_ssid_arg ssids[WLAN_SCAN_PARAMS_MAX_SSID]; |
| struct wmi_bssid_arg bssids[WLAN_SCAN_PARAMS_MAX_BSSID]; |
| struct wmi_mac_addr mac_addr; |
| struct wmi_mac_addr mac_mask; |
| }; |
| |
| /* scan control flags */ |
| |
| /* passively scan all channels including active channels */ |
| #define WMI_SCAN_FLAG_PASSIVE 0x1 |
| /* add wild card ssid probe request even though ssid_list is specified. */ |
| #define WMI_SCAN_ADD_BCAST_PROBE_REQ 0x2 |
| /* add cck rates to rates/xrate ie for the generated probe request */ |
| #define WMI_SCAN_ADD_CCK_RATES 0x4 |
| /* add ofdm rates to rates/xrate ie for the generated probe request */ |
| #define WMI_SCAN_ADD_OFDM_RATES 0x8 |
| /* To enable indication of Chan load and Noise floor to host */ |
| #define WMI_SCAN_CHAN_STAT_EVENT 0x10 |
| /* Filter Probe request frames */ |
| #define WMI_SCAN_FILTER_PROBE_REQ 0x20 |
| /* When set, DFS channels will not be scanned */ |
| #define WMI_SCAN_BYPASS_DFS_CHN 0x40 |
| /* Different FW scan engine may choose to bail out on errors. |
| * Allow the driver to have influence over that. |
| */ |
| #define WMI_SCAN_CONTINUE_ON_ERROR 0x80 |
| |
| /* Use random MAC address for TA for Probe Request frame and add |
| * OUI specified by WMI_SCAN_PROB_REQ_OUI_CMDID to the Probe Request frame. |
| * if OUI is not set by WMI_SCAN_PROB_REQ_OUI_CMDID then the flag is ignored. |
| */ |
| #define WMI_SCAN_ADD_SPOOFED_MAC_IN_PROBE_REQ 0x1000 |
| |
| /* WMI_SCAN_CLASS_MASK must be the same value as IEEE80211_SCAN_CLASS_MASK */ |
| #define WMI_SCAN_CLASS_MASK 0xFF000000 |
| |
| enum wmi_stop_scan_type { |
| WMI_SCAN_STOP_ONE = 0x00000000, /* stop by scan_id */ |
| WMI_SCAN_STOP_VDEV_ALL = 0x01000000, /* stop by vdev_id */ |
| WMI_SCAN_STOP_ALL = 0x04000000, /* stop all scans */ |
| }; |
| |
| struct wmi_stop_scan_cmd { |
| __le32 scan_req_id; |
| __le32 scan_id; |
| __le32 req_type; |
| __le32 vdev_id; |
| } __packed; |
| |
| struct wmi_stop_scan_arg { |
| u32 req_id; |
| enum wmi_stop_scan_type req_type; |
| union { |
| u32 scan_id; |
| u32 vdev_id; |
| } u; |
| }; |
| |
| struct wmi_scan_chan_list_cmd { |
| __le32 num_scan_chans; |
| struct wmi_channel chan_info[]; |
| } __packed; |
| |
| struct wmi_scan_chan_list_arg { |
| u32 n_channels; |
| struct wmi_channel_arg *channels; |
| }; |
| |
| enum wmi_bss_filter { |
| WMI_BSS_FILTER_NONE = 0, /* no beacons forwarded */ |
| WMI_BSS_FILTER_ALL, /* all beacons forwarded */ |
| WMI_BSS_FILTER_PROFILE, /* only beacons matching profile */ |
| WMI_BSS_FILTER_ALL_BUT_PROFILE, /* all but beacons matching profile */ |
| WMI_BSS_FILTER_CURRENT_BSS, /* only beacons matching current BSS */ |
| WMI_BSS_FILTER_ALL_BUT_BSS, /* all but beacons matching BSS */ |
| WMI_BSS_FILTER_PROBED_SSID, /* beacons matching probed ssid */ |
| WMI_BSS_FILTER_LAST_BSS, /* marker only */ |
| }; |
| |
| enum wmi_scan_event_type { |
| WMI_SCAN_EVENT_STARTED = BIT(0), |
| WMI_SCAN_EVENT_COMPLETED = BIT(1), |
| WMI_SCAN_EVENT_BSS_CHANNEL = BIT(2), |
| WMI_SCAN_EVENT_FOREIGN_CHANNEL = BIT(3), |
| WMI_SCAN_EVENT_DEQUEUED = BIT(4), |
| /* possibly by high-prio scan */ |
| WMI_SCAN_EVENT_PREEMPTED = BIT(5), |
| WMI_SCAN_EVENT_START_FAILED = BIT(6), |
| WMI_SCAN_EVENT_RESTARTED = BIT(7), |
| WMI_SCAN_EVENT_FOREIGN_CHANNEL_EXIT = BIT(8), |
| WMI_SCAN_EVENT_MAX = BIT(15), |
| }; |
| |
| enum wmi_scan_completion_reason { |
| WMI_SCAN_REASON_COMPLETED, |
| WMI_SCAN_REASON_CANCELLED, |
| WMI_SCAN_REASON_PREEMPTED, |
| WMI_SCAN_REASON_TIMEDOUT, |
| WMI_SCAN_REASON_INTERNAL_FAILURE, |
| WMI_SCAN_REASON_MAX, |
| }; |
| |
| struct wmi_scan_event { |
| __le32 event_type; /* %WMI_SCAN_EVENT_ */ |
| __le32 reason; /* %WMI_SCAN_REASON_ */ |
| __le32 channel_freq; /* only valid for WMI_SCAN_EVENT_FOREIGN_CHANNEL */ |
| __le32 scan_req_id; |
| __le32 scan_id; |
| __le32 vdev_id; |
| } __packed; |
| |
| /* |
| * This defines how much headroom is kept in the |
| * receive frame between the descriptor and the |
| * payload, in order for the WMI PHY error and |
| * management handler to insert header contents. |
| * |
| * This is in bytes. |
| */ |
| #define WMI_MGMT_RX_HDR_HEADROOM 52 |
| |
| /* |
| * This event will be used for sending scan results |
| * as well as rx mgmt frames to the host. The rx buffer |
| * will be sent as part of this WMI event. It would be a |
| * good idea to pass all the fields in the RX status |
| * descriptor up to the host. |
| */ |
| struct wmi_mgmt_rx_hdr_v1 { |
| __le32 channel; |
| __le32 snr; |
| __le32 rate; |
| __le32 phy_mode; |
| __le32 buf_len; |
| __le32 status; /* %WMI_RX_STATUS_ */ |
| } __packed; |
| |
| struct wmi_mgmt_rx_hdr_v2 { |
| struct wmi_mgmt_rx_hdr_v1 v1; |
| __le32 rssi_ctl[4]; |
| } __packed; |
| |
| struct wmi_mgmt_rx_event_v1 { |
| struct wmi_mgmt_rx_hdr_v1 hdr; |
| u8 buf[]; |
| } __packed; |
| |
| struct wmi_mgmt_rx_event_v2 { |
| struct wmi_mgmt_rx_hdr_v2 hdr; |
| u8 buf[]; |
| } __packed; |
| |
| struct wmi_10_4_mgmt_rx_hdr { |
| __le32 channel; |
| __le32 snr; |
| u8 rssi_ctl[4]; |
| __le32 rate; |
| __le32 phy_mode; |
| __le32 buf_len; |
| __le32 status; |
| } __packed; |
| |
| struct wmi_10_4_mgmt_rx_event { |
| struct wmi_10_4_mgmt_rx_hdr hdr; |
| u8 buf[]; |
| } __packed; |
| |
| struct wmi_mgmt_rx_ext_info { |
| __le64 rx_mac_timestamp; |
| } __packed __aligned(4); |
| |
| #define WMI_RX_STATUS_OK 0x00 |
| #define WMI_RX_STATUS_ERR_CRC 0x01 |
| #define WMI_RX_STATUS_ERR_DECRYPT 0x08 |
| #define WMI_RX_STATUS_ERR_MIC 0x10 |
| #define WMI_RX_STATUS_ERR_KEY_CACHE_MISS 0x20 |
| /* Extension data at the end of mgmt frame */ |
| #define WMI_RX_STATUS_EXT_INFO 0x40 |
| |
| #define PHY_ERROR_GEN_SPECTRAL_SCAN 0x26 |
| #define PHY_ERROR_GEN_FALSE_RADAR_EXT 0x24 |
| #define PHY_ERROR_GEN_RADAR 0x05 |
| |
| #define PHY_ERROR_10_4_RADAR_MASK 0x4 |
| #define PHY_ERROR_10_4_SPECTRAL_SCAN_MASK 0x4000000 |
| |
| enum phy_err_type { |
| PHY_ERROR_UNKNOWN, |
| PHY_ERROR_SPECTRAL_SCAN, |
| PHY_ERROR_FALSE_RADAR_EXT, |
| PHY_ERROR_RADAR |
| }; |
| |
| struct wmi_phyerr { |
| __le32 tsf_timestamp; |
| __le16 freq1; |
| __le16 freq2; |
| u8 rssi_combined; |
| u8 chan_width_mhz; |
| u8 phy_err_code; |
| u8 rsvd0; |
| __le32 rssi_chains[4]; |
| __le16 nf_chains[4]; |
| __le32 buf_len; |
| u8 buf[]; |
| } __packed; |
| |
| struct wmi_phyerr_event { |
| __le32 num_phyerrs; |
| __le32 tsf_l32; |
| __le32 tsf_u32; |
| struct wmi_phyerr phyerrs[]; |
| } __packed; |
| |
| struct wmi_10_4_phyerr_event { |
| __le32 tsf_l32; |
| __le32 tsf_u32; |
| __le16 freq1; |
| __le16 freq2; |
| u8 rssi_combined; |
| u8 chan_width_mhz; |
| u8 phy_err_code; |
| u8 rsvd0; |
| __le32 rssi_chains[4]; |
| __le16 nf_chains[4]; |
| __le32 phy_err_mask[2]; |
| __le32 tsf_timestamp; |
| __le32 buf_len; |
| u8 buf[]; |
| } __packed; |
| |
| struct wmi_radar_found_info { |
| __le32 pri_min; |
| __le32 pri_max; |
| __le32 width_min; |
| __le32 width_max; |
| __le32 sidx_min; |
| __le32 sidx_max; |
| } __packed; |
| |
| enum wmi_radar_confirmation_status { |
| /* Detected radar was due to SW pulses */ |
| WMI_SW_RADAR_DETECTED = 0, |
| |
| WMI_RADAR_DETECTION_FAIL = 1, |
| |
| /* Real radar detected */ |
| WMI_HW_RADAR_DETECTED = 2, |
| }; |
| |
| #define PHYERR_TLV_SIG 0xBB |
| #define PHYERR_TLV_TAG_SEARCH_FFT_REPORT 0xFB |
| #define PHYERR_TLV_TAG_RADAR_PULSE_SUMMARY 0xF8 |
| #define PHYERR_TLV_TAG_SPECTRAL_SUMMARY_REPORT 0xF9 |
| |
| struct phyerr_radar_report { |
| __le32 reg0; /* RADAR_REPORT_REG0_* */ |
| __le32 reg1; /* RADAR_REPORT_REG1_* */ |
| } __packed; |
| |
| #define RADAR_REPORT_REG0_PULSE_IS_CHIRP_MASK 0x80000000 |
| #define RADAR_REPORT_REG0_PULSE_IS_CHIRP_LSB 31 |
| |
| #define RADAR_REPORT_REG0_PULSE_IS_MAX_WIDTH_MASK 0x40000000 |
| #define RADAR_REPORT_REG0_PULSE_IS_MAX_WIDTH_LSB 30 |
| |
| #define RADAR_REPORT_REG0_AGC_TOTAL_GAIN_MASK 0x3FF00000 |
| #define RADAR_REPORT_REG0_AGC_TOTAL_GAIN_LSB 20 |
| |
| #define RADAR_REPORT_REG0_PULSE_DELTA_DIFF_MASK 0x000F0000 |
| #define RADAR_REPORT_REG0_PULSE_DELTA_DIFF_LSB 16 |
| |
| #define RADAR_REPORT_REG0_PULSE_DELTA_PEAK_MASK 0x0000FC00 |
| #define RADAR_REPORT_REG0_PULSE_DELTA_PEAK_LSB 10 |
| |
| #define RADAR_REPORT_REG0_PULSE_SIDX_MASK 0x000003FF |
| #define RADAR_REPORT_REG0_PULSE_SIDX_LSB 0 |
| |
| #define RADAR_REPORT_REG1_PULSE_SRCH_FFT_VALID_MASK 0x80000000 |
| #define RADAR_REPORT_REG1_PULSE_SRCH_FFT_VALID_LSB 31 |
| |
| #define RADAR_REPORT_REG1_PULSE_AGC_MB_GAIN_MASK 0x7F000000 |
| #define RADAR_REPORT_REG1_PULSE_AGC_MB_GAIN_LSB 24 |
| |
| #define RADAR_REPORT_REG1_PULSE_SUBCHAN_MASK_MASK 0x00FF0000 |
| #define RADAR_REPORT_REG1_PULSE_SUBCHAN_MASK_LSB 16 |
| |
| #define RADAR_REPORT_REG1_PULSE_TSF_OFFSET_MASK 0x0000FF00 |
| #define RADAR_REPORT_REG1_PULSE_TSF_OFFSET_LSB 8 |
| |
| #define RADAR_REPORT_REG1_PULSE_DUR_MASK 0x000000FF |
| #define RADAR_REPORT_REG1_PULSE_DUR_LSB 0 |
| |
| struct phyerr_fft_report { |
| __le32 reg0; /* SEARCH_FFT_REPORT_REG0_ * */ |
| __le32 reg1; /* SEARCH_FFT_REPORT_REG1_ * */ |
| } __packed; |
| |
| #define SEARCH_FFT_REPORT_REG0_TOTAL_GAIN_DB_MASK 0xFF800000 |
| #define SEARCH_FFT_REPORT_REG0_TOTAL_GAIN_DB_LSB 23 |
| |
| #define SEARCH_FFT_REPORT_REG0_BASE_PWR_DB_MASK 0x007FC000 |
| #define SEARCH_FFT_REPORT_REG0_BASE_PWR_DB_LSB 14 |
| |
| #define SEARCH_FFT_REPORT_REG0_FFT_CHN_IDX_MASK 0x00003000 |
| #define SEARCH_FFT_REPORT_REG0_FFT_CHN_IDX_LSB 12 |
| |
| #define SEARCH_FFT_REPORT_REG0_PEAK_SIDX_MASK 0x00000FFF |
| #define SEARCH_FFT_REPORT_REG0_PEAK_SIDX_LSB 0 |
| |
| #define SEARCH_FFT_REPORT_REG1_RELPWR_DB_MASK 0xFC000000 |
| #define SEARCH_FFT_REPORT_REG1_RELPWR_DB_LSB 26 |
| |
| #define SEARCH_FFT_REPORT_REG1_AVGPWR_DB_MASK 0x03FC0000 |
| #define SEARCH_FFT_REPORT_REG1_AVGPWR_DB_LSB 18 |
| |
| #define SEARCH_FFT_REPORT_REG1_PEAK_MAG_MASK 0x0003FF00 |
| #define SEARCH_FFT_REPORT_REG1_PEAK_MAG_LSB 8 |
| |
| #define SEARCH_FFT_REPORT_REG1_NUM_STR_BINS_IB_MASK 0x000000FF |
| #define SEARCH_FFT_REPORT_REG1_NUM_STR_BINS_IB_LSB 0 |
| |
| struct phyerr_tlv { |
| __le16 len; |
| u8 tag; |
| u8 sig; |
| } __packed; |
| |
| #define DFS_RSSI_POSSIBLY_FALSE 50 |
| #define DFS_PEAK_MAG_THOLD_POSSIBLY_FALSE 40 |
| |
| struct wmi_mgmt_tx_hdr { |
| __le32 vdev_id; |
| struct wmi_mac_addr peer_macaddr; |
| __le32 tx_rate; |
| __le32 tx_power; |
| __le32 buf_len; |
| } __packed; |
| |
| struct wmi_mgmt_tx_cmd { |
| struct wmi_mgmt_tx_hdr hdr; |
| u8 buf[]; |
| } __packed; |
| |
| struct wmi_echo_event { |
| __le32 value; |
| } __packed; |
| |
| struct wmi_echo_cmd { |
| __le32 value; |
| } __packed; |
| |
| struct wmi_pdev_set_regdomain_cmd { |
| __le32 reg_domain; |
| __le32 reg_domain_2G; |
| __le32 reg_domain_5G; |
| __le32 conformance_test_limit_2G; |
| __le32 conformance_test_limit_5G; |
| } __packed; |
| |
| enum wmi_dfs_region { |
| /* Uninitialized dfs domain */ |
| WMI_UNINIT_DFS_DOMAIN = 0, |
| |
| /* FCC3 dfs domain */ |
| WMI_FCC_DFS_DOMAIN = 1, |
| |
| /* ETSI dfs domain */ |
| WMI_ETSI_DFS_DOMAIN = 2, |
| |
| /*Japan dfs domain */ |
| WMI_MKK4_DFS_DOMAIN = 3, |
| }; |
| |
| struct wmi_pdev_set_regdomain_cmd_10x { |
| __le32 reg_domain; |
| __le32 reg_domain_2G; |
| __le32 reg_domain_5G; |
| __le32 conformance_test_limit_2G; |
| __le32 conformance_test_limit_5G; |
| |
| /* dfs domain from wmi_dfs_region */ |
| __le32 dfs_domain; |
| } __packed; |
| |
| /* Command to set/unset chip in quiet mode */ |
| struct wmi_pdev_set_quiet_cmd { |
| /* period in TUs */ |
| __le32 period; |
| |
| /* duration in TUs */ |
| __le32 duration; |
| |
| /* offset in TUs */ |
| __le32 next_start; |
| |
| /* enable/disable */ |
| __le32 enabled; |
| } __packed; |
| |
| /* |
| * 802.11g protection mode. |
| */ |
| enum ath10k_protmode { |
| ATH10K_PROT_NONE = 0, /* no protection */ |
| ATH10K_PROT_CTSONLY = 1, /* CTS to self */ |
| ATH10K_PROT_RTSCTS = 2, /* RTS-CTS */ |
| }; |
| |
| enum wmi_rtscts_profile { |
| WMI_RTSCTS_FOR_NO_RATESERIES = 0, |
| WMI_RTSCTS_FOR_SECOND_RATESERIES, |
| WMI_RTSCTS_ACROSS_SW_RETRIES |
| }; |
| |
| #define WMI_RTSCTS_ENABLED 1 |
| #define WMI_RTSCTS_SET_MASK 0x0f |
| #define WMI_RTSCTS_SET_LSB 0 |
| |
| #define WMI_RTSCTS_PROFILE_MASK 0xf0 |
| #define WMI_RTSCTS_PROFILE_LSB 4 |
| |
| enum wmi_beacon_gen_mode { |
| WMI_BEACON_STAGGERED_MODE = 0, |
| WMI_BEACON_BURST_MODE = 1 |
| }; |
| |
| enum wmi_csa_event_ies_present_flag { |
| WMI_CSA_IE_PRESENT = 0x00000001, |
| WMI_XCSA_IE_PRESENT = 0x00000002, |
| WMI_WBW_IE_PRESENT = 0x00000004, |
| WMI_CSWARP_IE_PRESENT = 0x00000008, |
| }; |
| |
| /* wmi CSA receive event from beacon frame */ |
| struct wmi_csa_event { |
| __le32 i_fc_dur; |
| /* Bit 0-15: FC */ |
| /* Bit 16-31: DUR */ |
| struct wmi_mac_addr i_addr1; |
| struct wmi_mac_addr i_addr2; |
| __le32 csa_ie[2]; |
| __le32 xcsa_ie[2]; |
| __le32 wb_ie[2]; |
| __le32 cswarp_ie; |
| __le32 ies_present_flag; /* wmi_csa_event_ies_present_flag */ |
| } __packed; |
| |
| /* the definition of different PDEV parameters */ |
| #define PDEV_DEFAULT_STATS_UPDATE_PERIOD 500 |
| #define VDEV_DEFAULT_STATS_UPDATE_PERIOD 500 |
| #define PEER_DEFAULT_STATS_UPDATE_PERIOD 500 |
| |
| struct wmi_pdev_param_map { |
| u32 tx_chain_mask; |
| u32 rx_chain_mask; |
| u32 txpower_limit2g; |
| u32 txpower_limit5g; |
| u32 txpower_scale; |
| u32 beacon_gen_mode; |
| u32 beacon_tx_mode; |
| u32 resmgr_offchan_mode; |
| u32 protection_mode; |
| u32 dynamic_bw; |
| u32 non_agg_sw_retry_th; |
| u32 agg_sw_retry_th; |
| u32 sta_kickout_th; |
| u32 ac_aggrsize_scaling; |
| u32 ltr_enable; |
| u32 ltr_ac_latency_be; |
| u32 ltr_ac_latency_bk; |
| u32 ltr_ac_latency_vi; |
| u32 ltr_ac_latency_vo; |
| u32 ltr_ac_latency_timeout; |
| u32 ltr_sleep_override; |
| u32 ltr_rx_override; |
| u32 ltr_tx_activity_timeout; |
| u32 l1ss_enable; |
| u32 dsleep_enable; |
| u32 pcielp_txbuf_flush; |
| u32 pcielp_txbuf_watermark; |
| u32 pcielp_txbuf_tmo_en; |
| u32 pcielp_txbuf_tmo_value; |
| u32 pdev_stats_update_period; |
| u32 vdev_stats_update_period; |
| u32 peer_stats_update_period; |
| u32 bcnflt_stats_update_period; |
| u32 pmf_qos; |
| u32 arp_ac_override; |
| u32 dcs; |
| u32 ani_enable; |
| u32 ani_poll_period; |
| u32 ani_listen_period; |
| u32 ani_ofdm_level; |
| u32 ani_cck_level; |
| u32 dyntxchain; |
| u32 proxy_sta; |
| u32 idle_ps_config; |
| u32 power_gating_sleep; |
|