1 /* 2 * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved. 3 * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for 6 * any purpose with or without fee is hereby granted, provided that the 7 * above copyright notice and this permission notice appear in all 8 * copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 /* 21 * This file wni_api.h contains message definitions exported by 22 * Sirius software modules. 23 * NOTE: See projects/sirius/include/sir_api.h for structure 24 * definitions of the host/FW messages. 25 * 26 * Author: Chandra Modumudi 27 * Date: 04/11/2002 28 * History:- 29 * Date Modified by Modification Information 30 * -------------------------------------------------------------------- 31 */ 32 33 #ifndef __WNI_API_H 34 #define __WNI_API_H 35 36 #include "sir_api.h" 37 38 #define SIR_SME_MSG_TYPES_BEGIN (SIR_SME_MODULE_ID << 8) 39 40 enum eWniMsgTypes { 41 eWNI_SME_MSG_TYPES_BEGIN = SIR_SME_MSG_TYPES_BEGIN, 42 eWNI_SME_SYS_READY_IND = SIR_SME_MSG_TYPES_BEGIN + 1, 43 eWNI_SME_JOIN_REQ = SIR_SME_MSG_TYPES_BEGIN + 2, 44 eWNI_SME_JOIN_RSP = SIR_SME_MSG_TYPES_BEGIN + 3, 45 eWNI_SME_SETCONTEXT_RSP = SIR_SME_MSG_TYPES_BEGIN + 5, 46 eWNI_SME_REASSOC_REQ = SIR_SME_MSG_TYPES_BEGIN + 6, 47 eWNI_SME_REASSOC_RSP = SIR_SME_MSG_TYPES_BEGIN + 7, 48 eWNI_SME_DISASSOC_REQ = SIR_SME_MSG_TYPES_BEGIN + 8, 49 eWNI_SME_DISASSOC_RSP = SIR_SME_MSG_TYPES_BEGIN + 9, 50 eWNI_SME_DISASSOC_IND = SIR_SME_MSG_TYPES_BEGIN + 10, 51 eWNI_SME_DISASSOC_CNF = SIR_SME_MSG_TYPES_BEGIN + 11, 52 eWNI_SME_DEAUTH_REQ = SIR_SME_MSG_TYPES_BEGIN + 12, 53 eWNI_SME_DEAUTH_RSP = SIR_SME_MSG_TYPES_BEGIN + 13, 54 eWNI_SME_DEAUTH_IND = SIR_SME_MSG_TYPES_BEGIN + 14, 55 eWNI_SME_DISCONNECT_DONE_IND = SIR_SME_MSG_TYPES_BEGIN + 15, 56 eWNI_SME_START_BSS_REQ = SIR_SME_MSG_TYPES_BEGIN + 19, 57 eWNI_SME_START_BSS_RSP = SIR_SME_MSG_TYPES_BEGIN + 20, 58 eWNI_SME_ASSOC_IND = SIR_SME_MSG_TYPES_BEGIN + 21, 59 eWNI_SME_ASSOC_CNF = SIR_SME_MSG_TYPES_BEGIN + 22, 60 eWNI_SME_SWITCH_CHL_IND = SIR_SME_MSG_TYPES_BEGIN + 23, 61 eWNI_SME_STOP_BSS_REQ = SIR_SME_MSG_TYPES_BEGIN + 24, 62 eWNI_SME_STOP_BSS_RSP = SIR_SME_MSG_TYPES_BEGIN + 25, 63 eWNI_SME_DEAUTH_CNF = SIR_SME_MSG_TYPES_BEGIN + 26, 64 eWNI_SME_MIC_FAILURE_IND = SIR_SME_MSG_TYPES_BEGIN + 27, 65 eWNI_SME_ADDTS_REQ = SIR_SME_MSG_TYPES_BEGIN + 28, 66 eWNI_SME_ADDTS_RSP = SIR_SME_MSG_TYPES_BEGIN + 29, 67 eWNI_SME_DELTS_REQ = SIR_SME_MSG_TYPES_BEGIN + 30, 68 eWNI_SME_DELTS_RSP = SIR_SME_MSG_TYPES_BEGIN + 31, 69 eWNI_SME_DELTS_IND = SIR_SME_MSG_TYPES_BEGIN + 32, 70 eWNI_SME_MSCS_REQ = SIR_SME_MSG_TYPES_BEGIN + 33, 71 eWNI_SME_RECONFIG_OBSS_SCAN_PARAM = SIR_SME_MSG_TYPES_BEGIN + 34, 72 73 /* unused SIR_SME_MSG_TYPES_BEGIN + 35 */ 74 75 eWNI_SME_ASSOC_IND_UPPER_LAYER = SIR_SME_MSG_TYPES_BEGIN + 36, 76 eWNI_SME_WPS_PBC_PROBE_REQ_IND = SIR_SME_MSG_TYPES_BEGIN + 37, 77 eWNI_SME_UPPER_LAYER_ASSOC_CNF = SIR_SME_MSG_TYPES_BEGIN + 38, 78 eWNI_SME_SESSION_UPDATE_PARAM = SIR_SME_MSG_TYPES_BEGIN + 39, 79 eWNI_SME_CHNG_MCC_BEACON_INTERVAL = SIR_SME_MSG_TYPES_BEGIN + 40, 80 eWNI_SME_GET_SNR_REQ = SIR_SME_MSG_TYPES_BEGIN + 41, 81 82 eWNI_SME_RRM_MSG_TYPE_BEGIN = SIR_SME_MSG_TYPES_BEGIN + 42, 83 84 eWNI_SME_NEIGHBOR_REPORT_REQ_IND = SIR_SME_MSG_TYPES_BEGIN + 43, 85 eWNI_SME_NEIGHBOR_REPORT_IND = SIR_SME_MSG_TYPES_BEGIN + 44, 86 eWNI_SME_BEACON_REPORT_REQ_IND = SIR_SME_MSG_TYPES_BEGIN + 45, 87 eWNI_SME_BEACON_REPORT_RESP_XMIT_IND = SIR_SME_MSG_TYPES_BEGIN + 46, 88 eWNI_SME_CHAN_LOAD_REQ_IND = SIR_SME_MSG_TYPES_BEGIN + 47, 89 eWNI_SME_CHAN_LOAD_REPORT_RESP_XMIT_IND = SIR_SME_MSG_TYPES_BEGIN + 48, 90 eWNI_SME_SAP_CH_WIDTH_UPDATE_REQ = SIR_SME_MSG_TYPES_BEGIN + 49, 91 eWNI_SME_SAP_CH_WIDTH_UPDATE_RSP = SIR_SME_MSG_TYPES_BEGIN + 50, 92 93 /* unused SIR_SME_MSG_TYPES_BEGIN + 51 */ 94 eWNI_SME_FT_AGGR_QOS_REQ = SIR_SME_MSG_TYPES_BEGIN + 52, 95 eWNI_SME_FT_AGGR_QOS_RSP = SIR_SME_MSG_TYPES_BEGIN + 53, 96 97 #if defined FEATURE_WLAN_ESE 98 eWNI_SME_ESE_ADJACENT_AP_REPORT = SIR_SME_MSG_TYPES_BEGIN + 54, 99 #endif 100 101 eWNI_SME_REGISTER_MGMT_FRAME_REQ = SIR_SME_MSG_TYPES_BEGIN + 55, 102 eWNI_SME_GENERIC_CHANGE_COUNTRY_CODE = SIR_SME_MSG_TYPES_BEGIN + 56, 103 eWNI_SME_MAX_ASSOC_EXCEEDED = SIR_SME_MSG_TYPES_BEGIN + 57, 104 #ifdef FEATURE_WLAN_TDLS 105 eWNI_SME_TDLS_SEND_MGMT_REQ = SIR_SME_MSG_TYPES_BEGIN + 58, 106 eWNI_SME_TDLS_SEND_MGMT_RSP = SIR_SME_MSG_TYPES_BEGIN + 59, 107 eWNI_SME_TDLS_ADD_STA_REQ = SIR_SME_MSG_TYPES_BEGIN + 60, 108 eWNI_SME_TDLS_ADD_STA_RSP = SIR_SME_MSG_TYPES_BEGIN + 61, 109 eWNI_SME_TDLS_DEL_STA_REQ = SIR_SME_MSG_TYPES_BEGIN + 62, 110 eWNI_SME_TDLS_DEL_STA_RSP = SIR_SME_MSG_TYPES_BEGIN + 63, 111 eWNI_SME_TDLS_DEL_STA_IND = SIR_SME_MSG_TYPES_BEGIN + 64, 112 eWNI_SME_TDLS_DEL_ALL_PEER_IND = SIR_SME_MSG_TYPES_BEGIN + 65, 113 eWNI_SME_MGMT_FRM_TX_COMPLETION_IND = SIR_SME_MSG_TYPES_BEGIN + 66, 114 eWNI_SME_TDLS_LINK_ESTABLISH_REQ = SIR_SME_MSG_TYPES_BEGIN + 67, 115 eWNI_SME_TDLS_LINK_ESTABLISH_RSP = SIR_SME_MSG_TYPES_BEGIN + 68, 116 eWNI_SME_TDLS_SHOULD_DISCOVER = SIR_SME_MSG_TYPES_BEGIN + 69, 117 eWNI_SME_TDLS_SHOULD_TEARDOWN = SIR_SME_MSG_TYPES_BEGIN + 70, 118 eWNI_SME_TDLS_PEER_DISCONNECTED = SIR_SME_MSG_TYPES_BEGIN + 71, 119 #endif 120 eWNI_SME_UNPROT_MGMT_FRM_IND = SIR_SME_MSG_TYPES_BEGIN + 74, 121 #ifdef WLAN_FEATURE_GTK_OFFLOAD 122 eWNI_PMC_GTK_OFFLOAD_GETINFO_RSP = SIR_SME_MSG_TYPES_BEGIN + 75, 123 #endif /* WLAN_FEATURE_GTK_OFFLOAD */ 124 eWNI_SME_GET_TSM_STATS_REQ = SIR_SME_MSG_TYPES_BEGIN + 80, 125 eWNI_SME_GET_TSM_STATS_RSP = SIR_SME_MSG_TYPES_BEGIN + 81, 126 eWNI_SME_TSM_IE_IND = SIR_SME_MSG_TYPES_BEGIN + 82, 127 128 /* DFS EVENTS */ 129 /* RADAR found indication from DFS */ 130 eWNI_SME_DFS_RADAR_FOUND = SIR_SME_MSG_TYPES_BEGIN + 83, 131 /* Channel Change Request from SAP */ 132 eWNI_SME_CHANNEL_CHANGE_REQ = SIR_SME_MSG_TYPES_BEGIN + 84, 133 /* Channel Change Response from WMA */ 134 eWNI_SME_CHANNEL_CHANGE_RSP = SIR_SME_MSG_TYPES_BEGIN + 85, 135 /* Start Beacon Transmission. */ 136 eWNI_SME_START_BEACON_REQ = SIR_SME_MSG_TYPES_BEGIN + 86, 137 /* Transmit CSA IE in beacons */ 138 eWNI_SME_DFS_BEACON_CHAN_SW_IE_REQ = SIR_SME_MSG_TYPES_BEGIN + 87, 139 /* To indicate completion of CSA IE */ 140 eWNI_SME_DFS_CSAIE_TX_COMPLETE_IND = SIR_SME_MSG_TYPES_BEGIN + 88, 141 /* update in beacons/probe rsp */ 142 eWNI_SME_STATS_EXT_EVENT = SIR_SME_MSG_TYPES_BEGIN + 89, 143 /* Unused SIR_SME_MSG_TYPES_BEGIN + 90 */ 144 eWNI_SME_GET_PEER_INFO_EXT_IND = SIR_SME_MSG_TYPES_BEGIN + 91, 145 /* indicates Additional IE from hdd to PE */ 146 eWNI_SME_UPDATE_ADDITIONAL_IES = SIR_SME_MSG_TYPES_BEGIN + 93, 147 /* To indicate IE modify from hdd to PE */ 148 eWNI_SME_MODIFY_ADDITIONAL_IES = SIR_SME_MSG_TYPES_BEGIN + 94, 149 #ifdef FEATURE_WLAN_AUTO_SHUTDOWN 150 eWNI_SME_AUTO_SHUTDOWN_IND = SIR_SME_MSG_TYPES_BEGIN + 95, 151 #endif 152 #ifdef QCA_HT_2040_COEX 153 eWNI_SME_SET_HT_2040_MODE = SIR_SME_MSG_TYPES_BEGIN + 96, 154 #endif 155 #ifdef WLAN_FEATURE_NAN 156 eWNI_SME_NAN_EVENT = SIR_SME_MSG_TYPES_BEGIN + 98, 157 #endif 158 eWNI_SME_LINK_STATUS_IND = SIR_SME_MSG_TYPES_BEGIN + 99, 159 #ifdef WLAN_FEATURE_EXTWOW_SUPPORT 160 eWNI_SME_READY_TO_EXTWOW_IND = SIR_SME_MSG_TYPES_BEGIN + 100, 161 #endif 162 eWNI_SME_MSG_GET_TEMPERATURE_IND = SIR_SME_MSG_TYPES_BEGIN + 101, 163 eWNI_SME_SNR_IND = SIR_SME_MSG_TYPES_BEGIN + 102, 164 #ifdef FEATURE_WLAN_EXTSCAN 165 eWNI_SME_EXTSCAN_FULL_SCAN_RESULT_IND = SIR_SME_MSG_TYPES_BEGIN + 103, 166 eWNI_SME_EPNO_NETWORK_FOUND_IND = SIR_SME_MSG_TYPES_BEGIN + 104, 167 #endif 168 eWNI_SME_SET_HW_MODE_REQ = SIR_SME_MSG_TYPES_BEGIN + 105, 169 eWNI_SME_SET_HW_MODE_RESP = SIR_SME_MSG_TYPES_BEGIN + 106, 170 eWNI_SME_HW_MODE_TRANS_IND = SIR_SME_MSG_TYPES_BEGIN + 107, 171 eWNI_SME_NSS_UPDATE_REQ = SIR_SME_MSG_TYPES_BEGIN + 108, 172 eWNI_SME_NSS_UPDATE_RSP = SIR_SME_MSG_TYPES_BEGIN + 109, 173 eWNI_SME_OCB_SET_CONFIG_RSP = SIR_SME_MSG_TYPES_BEGIN + 110, 174 eWNI_SME_OCB_GET_TSF_TIMER_RSP = SIR_SME_MSG_TYPES_BEGIN + 111, 175 eWNI_SME_DCC_GET_STATS_RSP = SIR_SME_MSG_TYPES_BEGIN + 112, 176 eWNI_SME_DCC_UPDATE_NDL_RSP = SIR_SME_MSG_TYPES_BEGIN + 113, 177 eWNI_SME_DCC_STATS_EVENT = SIR_SME_MSG_TYPES_BEGIN + 114, 178 eWNI_SME_SET_DUAL_MAC_CFG_REQ = SIR_SME_MSG_TYPES_BEGIN + 115, 179 eWNI_SME_SET_DUAL_MAC_CFG_RESP = SIR_SME_MSG_TYPES_BEGIN + 116, 180 eWNI_SME_SET_THERMAL_LEVEL_IND = SIR_SME_MSG_TYPES_BEGIN + 117, 181 eWNI_SME_SET_IE_REQ = SIR_SME_MSG_TYPES_BEGIN + 118, 182 eWNI_SME_EXT_CHANGE_CHANNEL = SIR_SME_MSG_TYPES_BEGIN + 119, 183 eWNI_SME_EXT_CHANGE_CHANNEL_IND = SIR_SME_MSG_TYPES_BEGIN + 120, 184 eWNI_SME_REGISTER_MGMT_FRAME_CB = SIR_SME_MSG_TYPES_BEGIN + 121, 185 /* START and UPDATE OBSS SCAN Indication*/ 186 eWNI_SME_HT40_OBSS_SCAN_IND = SIR_SME_MSG_TYPES_BEGIN + 122, 187 eWNI_SME_SET_ANTENNA_MODE_REQ = SIR_SME_MSG_TYPES_BEGIN + 123, 188 eWNI_SME_SET_ANTENNA_MODE_RESP = SIR_SME_MSG_TYPES_BEGIN + 124, 189 eWNI_SME_TSF_EVENT = SIR_SME_MSG_TYPES_BEGIN + 125, 190 eWNI_SME_MON_INIT_SESSION = SIR_SME_MSG_TYPES_BEGIN + 126, 191 eWNI_SME_PDEV_SET_HT_VHT_IE = SIR_SME_MSG_TYPES_BEGIN + 127, 192 eWNI_SME_SET_VDEV_IES_PER_BAND = SIR_SME_MSG_TYPES_BEGIN + 128, 193 eWNI_SME_SEND_DISASSOC_FRAME = SIR_SME_MSG_TYPES_BEGIN + 129, 194 eWNI_SME_UPDATE_ACCESS_POLICY_VENDOR_IE = SIR_SME_MSG_TYPES_BEGIN + 130, 195 eWNI_SME_DEFAULT_SCAN_IE = SIR_SME_MSG_TYPES_BEGIN + 131, 196 /* 133 unused */ 197 eWNI_SME_LOST_LINK_INFO_IND = SIR_SME_MSG_TYPES_BEGIN + 134, 198 eWNI_SME_DEL_ALL_TDLS_PEERS = SIR_SME_MSG_TYPES_BEGIN + 135, 199 eWNI_SME_RSO_CMD_STATUS_IND = SIR_SME_MSG_TYPES_BEGIN + 136, 200 eWMI_SME_LL_STATS_IND = SIR_SME_MSG_TYPES_BEGIN + 137, 201 eWNI_SME_DFS_CAC_COMPLETE = SIR_SME_MSG_TYPES_BEGIN + 138, 202 eWNI_SME_UPDATE_CONFIG = SIR_SME_MSG_TYPES_BEGIN + 139, 203 eWNI_SME_BT_ACTIVITY_INFO_IND = SIR_SME_MSG_TYPES_BEGIN + 140, 204 eWNI_SME_SET_HE_BSS_COLOR = SIR_SME_MSG_TYPES_BEGIN + 141, 205 eWNI_SME_TRIGGER_SAE = SIR_SME_MSG_TYPES_BEGIN + 142, 206 eWNI_SME_SEND_MGMT_FRAME_TX = SIR_SME_MSG_TYPES_BEGIN + 143, 207 eWNI_SME_SEND_SAE_MSG = SIR_SME_MSG_TYPES_BEGIN + 144, 208 eWNI_SME_SET_ADDBA_ACCEPT = SIR_SME_MSG_TYPES_BEGIN + 145, 209 eWNI_SME_UPDATE_EDCA_PROFILE = SIR_SME_MSG_TYPES_BEGIN + 146, 210 WNI_SME_UPDATE_MU_EDCA_PARAMS = SIR_SME_MSG_TYPES_BEGIN + 147, 211 eWNI_SME_CSA_RESTART_REQ = SIR_SME_MSG_TYPES_BEGIN + 148, 212 eWNI_SME_CSA_RESTART_RSP = SIR_SME_MSG_TYPES_BEGIN + 149, 213 WNI_SME_CFG_ACTION_FRM_HE_TB_PPDU = SIR_SME_MSG_TYPES_BEGIN + 150, 214 /* To indicate Hidden ssid start complition to upper layer */ 215 eWNI_SME_HIDDEN_SSID_RESTART_RSP = SIR_SME_MSG_TYPES_BEGIN + 151, 216 eWNI_SME_FW_STATUS_IND = SIR_SME_MSG_TYPES_BEGIN + 152, 217 eWNI_SME_STA_CSA_CONTINUE_REQ = SIR_SME_MSG_TYPES_BEGIN + 153, 218 /* 154 unused */ 219 eWNI_SME_ANTENNA_ISOLATION_RSP = SIR_SME_MSG_TYPES_BEGIN + 155, 220 eWNI_SME_MON_DEINIT_SESSION = SIR_SME_MSG_TYPES_BEGIN + 156, 221 eWNI_SME_VDEV_DELETE_RSP = SIR_SME_MSG_TYPES_BEGIN + 157, 222 /* 158, 159 unused */ 223 eWNI_SME_GET_ROAM_SCAN_CH_LIST_EVENT = 224 SIR_SME_MSG_TYPES_BEGIN + 160, 225 eWNI_SME_MONITOR_MODE_VDEV_UP = SIR_SME_MSG_TYPES_BEGIN + 161, 226 eWNI_SME_UPDATE_SESSION_EDCA_TXQ_PARAMS = SIR_SME_MSG_TYPES_BEGIN + 162, 227 /* 164 unused */ 228 eWNI_SME_TWT_ADD_DIALOG_EVENT = SIR_SME_MSG_TYPES_BEGIN + 165, 229 eWNI_SME_TWT_DEL_DIALOG_EVENT = SIR_SME_MSG_TYPES_BEGIN + 166, 230 eWNI_SME_TWT_PAUSE_DIALOG_EVENT = SIR_SME_MSG_TYPES_BEGIN + 167, 231 eWNI_SME_TWT_RESUME_DIALOG_EVENT = SIR_SME_MSG_TYPES_BEGIN + 168, 232 eWNI_SME_TWT_NUDGE_DIALOG_EVENT = SIR_SME_MSG_TYPES_BEGIN + 169, 233 eWNI_SME_TWT_NOTIFY_EVENT = SIR_SME_MSG_TYPES_BEGIN + 170, 234 CM_BSS_PEER_CREATE_REQ = SIR_SME_MSG_TYPES_BEGIN + 171, 235 CM_CONNECT_REQ = SIR_SME_MSG_TYPES_BEGIN + 172, 236 CM_DISCONNECT_REQ = SIR_SME_MSG_TYPES_BEGIN + 173, 237 CM_REASSOC_REQ = SIR_SME_MSG_TYPES_BEGIN + 174, 238 CM_PREAUTH_REQ = SIR_SME_MSG_TYPES_BEGIN + 175, 239 eWNI_SME_CSA_REQ = SIR_SME_MSG_TYPES_BEGIN + 176, 240 CM_ABORT_CONN_TIMER = SIR_SME_MSG_TYPES_BEGIN + 177, 241 WIFI_POS_PASN_PEER_DELETE_ALL = SIR_SME_MSG_TYPES_BEGIN + 178, 242 eWNI_SME_CHAN_INFO_EVENT = SIR_SME_MSG_TYPES_BEGIN + 179, 243 eWNI_SME_MSG_TYPES_END = SIR_SME_MSG_TYPES_BEGIN + 180, 244 eWNI_SME_VDEV_PAUSE_IND = SIR_SME_MSG_TYPES_BEGIN + 181 245 }; 246 247 typedef struct sAniCfgTxRateCtrs { 248 /* add the rate counters here */ 249 unsigned long TxFrames_1Mbps; 250 unsigned long TxFrames_2Mbps; 251 unsigned long TxFrames_5_5Mbps; 252 unsigned long TxFrames_6Mbps; 253 unsigned long TxFrames_9Mbps; 254 unsigned long TxFrames_11Mbps; 255 unsigned long TxFrames_12Mbps; 256 unsigned long TxFrames_18Mbps; 257 unsigned long TxFrames_24Mbps; 258 unsigned long TxFrames_36Mbps; 259 unsigned long TxFrames_48Mbps; 260 unsigned long TxFrames_54Mbps; 261 unsigned long TxFrames_72Mbps; 262 unsigned long TxFrames_96Mbps; 263 unsigned long TxFrames_108Mbps; 264 265 } tAniCfgTxRateCtrs, *tpAniCfgTxRateCtrs; 266 #endif /* __WNI_API_H */ 267