Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | /* |
Houston Hoffman | a76591b | 2015-11-10 16:52:05 -0800 | [diff] [blame] | 2 | * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved. |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 3 | * |
| 4 | * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| 5 | * |
| 6 | * |
| 7 | * Permission to use, copy, modify, and/or distribute this software for |
| 8 | * any purpose with or without fee is hereby granted, provided that the |
| 9 | * above copyright notice and this permission notice appear in all |
| 10 | * copies. |
| 11 | * |
| 12 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 13 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 14 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 15 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 16 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 17 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 18 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 19 | * PERFORMANCE OF THIS SOFTWARE. |
| 20 | */ |
| 21 | |
| 22 | /* |
| 23 | * This file was originally distributed by Qualcomm Atheros, Inc. |
| 24 | * under proprietary terms before Copyright ownership was assigned |
| 25 | * to the Linux Foundation. |
| 26 | */ |
| 27 | |
| 28 | /* |
| 29 | * This file sir_params.h contains the common parameter definitions, which |
| 30 | * are not dependent on threadX API. These can be used by all Firmware |
| 31 | * modules. |
| 32 | * |
| 33 | * Author: Sandesh Goel |
| 34 | * Date: 04/13/2002 |
| 35 | * History:- |
| 36 | * Date Modified by Modification Information |
| 37 | * -------------------------------------------------------------------- |
| 38 | */ |
| 39 | |
| 40 | #ifndef __SIRPARAMS_H |
| 41 | #define __SIRPARAMS_H |
| 42 | |
| 43 | #include "sir_types.h" |
| 44 | |
| 45 | /* defines for WPS config states */ |
| 46 | #define SAP_WPS_DISABLED 0 |
| 47 | #define SAP_WPS_ENABLED_UNCONFIGURED 1 |
| 48 | #define SAP_WPS_ENABLED_CONFIGURED 2 |
| 49 | |
| 50 | |
| 51 | /* Firmware wide constants */ |
| 52 | |
| 53 | #define SIR_MAX_PACKET_SIZE 512 |
| 54 | #define SIR_MAX_NUM_CHANNELS 64 |
| 55 | #define SIR_MAX_NUM_STA_IN_IBSS 16 |
| 56 | #define SIR_ESE_MAX_MEAS_IE_REQS 8 |
| 57 | |
| 58 | typedef enum { |
| 59 | PHY_SINGLE_CHANNEL_CENTERED = 0, /* 20MHz IF bandwidth centered on IF carrier */ |
| 60 | PHY_DOUBLE_CHANNEL_LOW_PRIMARY = 1, /* 40MHz IF bandwidth with lower 20MHz supporting the primary channel */ |
| 61 | PHY_DOUBLE_CHANNEL_HIGH_PRIMARY = 3, /* 40MHz IF bandwidth with higher 20MHz supporting the primary channel */ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 62 | PHY_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_CENTERED = 4, /* 20/40MHZ offset LOW 40/80MHZ offset CENTERED */ |
| 63 | PHY_QUADRUPLE_CHANNEL_20MHZ_CENTERED_40MHZ_CENTERED = 5, /* 20/40MHZ offset CENTERED 40/80MHZ offset CENTERED */ |
| 64 | PHY_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_CENTERED = 6, /* 20/40MHZ offset HIGH 40/80MHZ offset CENTERED */ |
| 65 | PHY_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_LOW = 7, /* 20/40MHZ offset LOW 40/80MHZ offset LOW */ |
| 66 | PHY_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_LOW = 8, /* 20/40MHZ offset HIGH 40/80MHZ offset LOW */ |
| 67 | PHY_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_HIGH = 9, /* 20/40MHZ offset LOW 40/80MHZ offset HIGH */ |
| 68 | PHY_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_HIGH = 10, /* 20/40MHZ offset-HIGH 40/80MHZ offset HIGH */ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 69 | PHY_CHANNEL_BONDING_STATE_MAX = 11 |
| 70 | } ePhyChanBondState; |
| 71 | |
Kiran Kumar Lokere | 999e58c | 2016-01-07 02:18:39 -0800 | [diff] [blame] | 72 | #define MAX_BONDED_CHANNELS 8 |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 73 | |
| 74 | typedef enum { |
| 75 | MCC = 0, |
| 76 | P2P = 1, |
| 77 | DOT11AC = 2, |
| 78 | SLM_SESSIONIZATION = 3, |
| 79 | DOT11AC_OPMODE = 4, |
| 80 | SAP32STA = 5, |
| 81 | TDLS = 6, |
| 82 | P2P_GO_NOA_DECOUPLE_INIT_SCAN = 7, |
| 83 | WLANACTIVE_OFFLOAD = 8, |
| 84 | #ifdef FEATURE_WLAN_EXTSCAN |
| 85 | EXTENDED_SCAN = 9, |
| 86 | #endif |
| 87 | #ifdef FEATURE_WLAN_SCAN_PNO |
| 88 | PNO = 10, |
| 89 | #endif |
| 90 | #ifdef WLAN_FEATURE_NAN |
| 91 | NAN = 11, |
| 92 | #endif |
| 93 | RTT = 12, |
| 94 | WOW = 22, |
| 95 | WLAN_ROAM_SCAN_OFFLOAD = 23, |
| 96 | IBSS_HEARTBEAT_OFFLOAD = 26, |
| 97 | WLAN_PERIODIC_TX_PTRN = 28, |
| 98 | #ifdef FEATURE_WLAN_TDLS |
| 99 | ADVANCE_TDLS = 29, |
| 100 | TDLS_OFF_CHANNEL = 30, |
| 101 | #endif |
| 102 | |
| 103 | /* MAX_FEATURE_SUPPORTED = 128 */ |
| 104 | } placeHolderInCapBitmap; |
| 105 | |
| 106 | typedef enum eSriLinkState { |
| 107 | eSIR_LINK_IDLE_STATE = 0, |
| 108 | eSIR_LINK_PREASSOC_STATE = 1, |
| 109 | eSIR_LINK_POSTASSOC_STATE = 2, |
| 110 | eSIR_LINK_AP_STATE = 3, |
| 111 | eSIR_LINK_IBSS_STATE = 4, |
Kiran Kumar Lokere | 92b1fca | 2016-05-23 15:28:15 -0700 | [diff] [blame] | 112 | eSIR_LINK_DOWN_STATE = 5, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 113 | } tSirLinkState; |
| 114 | |
| 115 | /* / Message queue structure used across Sirius project. */ |
| 116 | /* / NOTE: this structure should be multiples of a word size (4bytes) */ |
| 117 | /* / as this is used in tx_queue where it expects to be multiples of 4 bytes. */ |
| 118 | typedef struct sSirMsgQ { |
| 119 | uint16_t type; |
| 120 | /* |
| 121 | * This field can be used as sequence number/dialog token for matching |
| 122 | * requests and responses. |
| 123 | */ |
| 124 | uint16_t reserved; |
| 125 | /** |
| 126 | * Based on the type either a bodyptr pointer into |
| 127 | * memory or bodyval as a 32 bit data is used. |
| 128 | * bodyptr: is always a freeable pointer, one should always |
| 129 | * make sure that bodyptr is always freeable. |
| 130 | * |
| 131 | * Messages should use either bodyptr or bodyval; not both !!!. |
| 132 | */ |
| 133 | void *bodyptr; |
| 134 | uint32_t bodyval; |
| 135 | |
| 136 | /* |
| 137 | * Some messages provide a callback function. The function signature |
| 138 | * must be agreed upon between the two entities exchanging the message |
| 139 | */ |
| 140 | void *callback; |
| 141 | |
| 142 | } tSirMsgQ, *tpSirMsgQ; |
| 143 | |
| 144 | /* / Mailbox Message Structure Define */ |
| 145 | typedef struct sSirMbMsg { |
| 146 | uint16_t type; |
| 147 | |
| 148 | /** |
| 149 | * This length includes 4 bytes of header, that is, |
| 150 | * 2 bytes type + 2 bytes msgLen + n*4 bytes of data. |
| 151 | * This field is byte length. |
| 152 | */ |
| 153 | uint16_t msgLen; |
| 154 | |
| 155 | /** |
| 156 | * This is the first data word in the mailbox message. |
| 157 | * It is followed by n words of data. |
| 158 | * NOTE: data[1] is not a place holder to store data |
| 159 | * instead to dereference the message body. |
| 160 | */ |
| 161 | uint32_t data[1]; |
| 162 | } tSirMbMsg, *tpSirMbMsg; |
| 163 | |
| 164 | /* / Mailbox Message Structure for P2P */ |
| 165 | typedef struct sSirMbMsgP2p { |
| 166 | uint16_t type; |
| 167 | |
| 168 | /** |
| 169 | * This length includes 4 bytes of header, that is, |
| 170 | * 2 bytes type + 2 bytes msgLen + n*4 bytes of data. |
| 171 | * This field is byte length. |
| 172 | */ |
| 173 | uint16_t msgLen; |
| 174 | |
| 175 | uint8_t sessionId; |
| 176 | uint8_t noack; |
| 177 | uint16_t wait; |
| 178 | uint16_t channel_freq; |
| 179 | uint32_t scan_id; |
| 180 | |
| 181 | /** |
| 182 | * This is the first data word in the mailbox message. |
| 183 | * It is followed by n words of data. |
| 184 | * NOTE: data[1] is not a place holder to store data |
| 185 | * instead to dereference the message body. |
| 186 | */ |
| 187 | uint32_t data[1]; |
| 188 | } tSirMbMsgP2p, *tpSirMbMsgP2p; |
| 189 | |
| 190 | /* ******************************************* * |
| 191 | * * |
| 192 | * SIRIUS MESSAGE TYPES * |
| 193 | * * |
| 194 | * ******************************************* */ |
| 195 | |
| 196 | /* |
| 197 | * The following message types have bounds defined for each module for |
| 198 | * inter thread/module communications. |
| 199 | * Each module will get 256 message types in total. |
| 200 | * Note that message type definitions for mailbox messages for |
| 201 | * communication with Host are in wni_api.h file. |
| 202 | * |
| 203 | * Any addition/deletion to this message list should also be |
| 204 | * reflected in the halUtil_getMsgString() routine. |
| 205 | */ |
| 206 | |
| 207 | /* HAL message types */ |
| 208 | #define SIR_HAL_MSG_TYPES_BEGIN (SIR_HAL_MODULE_ID << 8) |
| 209 | #define SIR_HAL_ITC_MSG_TYPES_BEGIN (SIR_HAL_MSG_TYPES_BEGIN+0x20) |
| 210 | #define SIR_HAL_RADAR_DETECTED_IND SIR_HAL_ITC_MSG_TYPES_BEGIN |
| 211 | |
| 212 | /* |
| 213 | * New Taurus related messages |
| 214 | */ |
| 215 | #define SIR_HAL_ADD_STA_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 1) |
| 216 | #define SIR_HAL_ADD_STA_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 2) |
| 217 | #define SIR_HAL_DELETE_STA_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 3) |
| 218 | #define SIR_HAL_DELETE_STA_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 4) |
| 219 | #define SIR_HAL_ADD_BSS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 5) |
| 220 | #define SIR_HAL_ADD_BSS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 6) |
| 221 | #define SIR_HAL_DELETE_BSS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 7) |
| 222 | #define SIR_HAL_DELETE_BSS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 8) |
| 223 | #define SIR_HAL_INIT_SCAN_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 9) |
| 224 | #define SIR_HAL_INIT_SCAN_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 10) |
| 225 | #define SIR_HAL_START_SCAN_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 11) |
| 226 | #define SIR_HAL_START_SCAN_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 12) |
| 227 | #define SIR_HAL_END_SCAN_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 13) |
| 228 | #define SIR_HAL_END_SCAN_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 14) |
| 229 | #define SIR_HAL_FINISH_SCAN_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 15) |
| 230 | #define SIR_HAL_FINISH_SCAN_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 16) |
| 231 | #define SIR_HAL_SEND_BEACON_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 17) |
| 232 | |
| 233 | #define SIR_HAL_SET_BSSKEY_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 18) |
| 234 | #define SIR_HAL_SET_BSSKEY_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 19) |
| 235 | #define SIR_HAL_SET_STAKEY_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 20) |
| 236 | #define SIR_HAL_SET_STAKEY_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 21) |
| 237 | #define SIR_HAL_UPDATE_EDCA_PROFILE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 22) |
| 238 | |
| 239 | #define SIR_HAL_UPDATE_BEACON_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 23) |
| 240 | #define SIR_HAL_UPDATE_CF_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 24) |
| 241 | #define SIR_HAL_CHNL_SWITCH_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 25) |
| 242 | #define SIR_HAL_ADD_TS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 26) |
| 243 | #define SIR_HAL_DEL_TS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 27) |
| 244 | |
| 245 | #define SIR_HAL_MISSED_BEACON_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 34) |
| 246 | |
| 247 | #define SIR_HAL_SWITCH_CHANNEL_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 35) |
| 248 | #define SIR_HAL_PWR_SAVE_CFG (SIR_HAL_ITC_MSG_TYPES_BEGIN + 36) |
| 249 | |
| 250 | #define SIR_HAL_REGISTER_PE_CALLBACK (SIR_HAL_ITC_MSG_TYPES_BEGIN + 37) |
| 251 | |
| 252 | #define SIR_HAL_IBSS_STA_ADD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 43) |
| 253 | #define SIR_HAL_TIMER_ADJUST_ADAPTIVE_THRESHOLD_IND \ |
| 254 | (SIR_HAL_ITC_MSG_TYPES_BEGIN + 44) |
| 255 | #define SIR_HAL_SET_LINK_STATE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 45) |
| 256 | |
| 257 | /* |
| 258 | * (SIR_HAL_ITC_MSG_TYPES_BEGIN + 46) to |
| 259 | * (SIR_HAL_ITC_MSG_TYPES_BEGIN + 57) are unused |
| 260 | */ |
| 261 | |
| 262 | #define SIR_HAL_SET_STA_BCASTKEY_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 58) |
| 263 | #define SIR_HAL_SET_STA_BCASTKEY_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 59) |
| 264 | #define SIR_HAL_ADD_TS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 60) |
| 265 | #define SIR_HAL_DPU_MIC_ERROR (SIR_HAL_ITC_MSG_TYPES_BEGIN + 61) |
| 266 | #define SIR_HAL_TIMER_CHIP_MONITOR_TIMEOUT (SIR_HAL_ITC_MSG_TYPES_BEGIN + 63) |
| 267 | #define SIR_HAL_TIMER_TRAFFIC_ACTIVITY_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 64) |
| 268 | #define SIR_HAL_TIMER_ADC_RSSI_STATS (SIR_HAL_ITC_MSG_TYPES_BEGIN + 65) |
| 269 | /* (SIR_HAL_ITC_MSG_TYPES_BEGIN + 66) is unused */ |
| 270 | #define SIR_HAL_SET_MIMOPS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 67) |
| 271 | #define SIR_HAL_SET_MIMOPS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 68) |
| 272 | #define SIR_HAL_SYS_READY_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 69) |
| 273 | #define SIR_HAL_SET_TX_POWER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 70) |
| 274 | #define SIR_HAL_SET_TX_POWER_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 71) |
| 275 | #define SIR_HAL_GET_TX_POWER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 72) |
| 276 | #define SIR_HAL_GET_TX_POWER_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 73) |
| 277 | #define SIR_HAL_GET_NOISE_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 74) |
| 278 | |
| 279 | /* Messages to support transmit_halt and transmit_resume */ |
| 280 | #define SIR_HAL_TRANSMISSION_CONTROL_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 75) |
| 281 | |
| 282 | #define SIR_HAL_LOW_RSSI_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 80) |
| 283 | #define SIR_HAL_BEACON_FILTER_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 81) |
| 284 | /* / PE <-> HAL WOWL messages */ |
| 285 | #define SIR_HAL_WOW_ADD_PTRN (SIR_HAL_ITC_MSG_TYPES_BEGIN + 82) |
| 286 | #define SIR_HAL_WOW_DEL_PTRN (SIR_HAL_ITC_MSG_TYPES_BEGIN + 83) |
| 287 | #define SIR_HAL_WOWL_ENTER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 84) |
| 288 | #define SIR_HAL_WOWL_ENTER_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 85) |
| 289 | #define SIR_HAL_WOWL_EXIT_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 86) |
| 290 | #define SIR_HAL_WOWL_EXIT_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 87) |
| 291 | /* / PE <-> HAL statistics messages */ |
| 292 | #define SIR_HAL_GET_STATISTICS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 88) |
| 293 | #define SIR_HAL_GET_STATISTICS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 89) |
| 294 | #define SIR_HAL_SET_KEY_DONE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 90) |
| 295 | |
| 296 | /* / PE <-> HAL BTC messages */ |
| 297 | #define SIR_HAL_BTC_SET_CFG (SIR_HAL_ITC_MSG_TYPES_BEGIN + 91) |
| 298 | /* (SIR_HAL_ITC_MSG_TYPES_BEGIN + 92) is unused */ |
| 299 | #define SIR_HAL_HANDLE_FW_MBOX_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 93) |
| 300 | #define SIR_HAL_SEND_PROBE_RSP_TMPL (SIR_HAL_ITC_MSG_TYPES_BEGIN + 94) |
| 301 | |
| 302 | /* PE <-> HAL addr2 mismatch message */ |
| 303 | #define SIR_LIM_ADDR2_MISS_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 95) |
| 304 | #ifdef FEATURE_OEM_DATA_SUPPORT |
| 305 | /* PE <-> HAL OEM_DATA RELATED MESSAGES */ |
| 306 | #define SIR_HAL_START_OEM_DATA_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 96) |
| 307 | #define SIR_HAL_START_OEM_DATA_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 97) |
| 308 | #endif |
| 309 | |
| 310 | #define SIR_HAL_SET_MAX_TX_POWER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 98) |
| 311 | #define SIR_HAL_SET_MAX_TX_POWER_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 99) |
| 312 | |
| 313 | /* / PE <-> HAL Host Offload message */ |
| 314 | #define SIR_HAL_SET_HOST_OFFLOAD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 100) |
| 315 | |
| 316 | #define SIR_HAL_ADD_STA_SELF_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 101) |
| 317 | #define SIR_HAL_ADD_STA_SELF_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 102) |
| 318 | #define SIR_HAL_DEL_STA_SELF_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 103) |
| 319 | #define SIR_HAL_DEL_STA_SELF_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 104) |
| 320 | |
| 321 | #define SIR_HAL_CFG_RXP_FILTER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 106) |
| 322 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 323 | #define SIR_HAL_AGGR_ADD_TS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 107) |
| 324 | #define SIR_HAL_AGGR_ADD_TS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 108) |
| 325 | #define SIR_HAL_AGGR_QOS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 109) |
| 326 | #define SIR_HAL_AGGR_QOS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 110) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 327 | |
| 328 | /* P2P <-> HAL P2P msg */ |
| 329 | #define SIR_HAL_SET_P2P_GO_NOA_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 111) |
| 330 | #define SIR_HAL_P2P_NOA_ATTR_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 112) |
| 331 | #define SIR_HAL_P2P_NOA_START_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 113) |
| 332 | |
| 333 | #define SIR_HAL_SET_LINK_STATE_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 114) |
| 334 | |
| 335 | #define SIR_HAL_WLAN_SUSPEND_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 115) |
| 336 | #define SIR_HAL_WLAN_RESUME_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 116) |
| 337 | |
| 338 | /* / PE <-> HAL Keep Alive message */ |
| 339 | #define SIR_HAL_SET_KEEP_ALIVE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 117) |
| 340 | |
| 341 | #ifdef WLAN_NS_OFFLOAD |
| 342 | #define SIR_HAL_SET_NS_OFFLOAD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 118) |
| 343 | #endif /* WLAN_NS_OFFLOAD */ |
| 344 | |
| 345 | #ifdef FEATURE_WLAN_SCAN_PNO |
| 346 | #define SIR_HAL_SET_PNO_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 119) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 347 | #endif /* FEATURE_WLAN_SCAN_PNO */ |
| 348 | |
Archana Ramachandran | d41c3ed | 2016-02-10 15:48:06 -0800 | [diff] [blame] | 349 | #define SIR_HAL_SOC_ANTENNA_MODE_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 120) |
| 350 | #define SIR_HAL_SOC_ANTENNA_MODE_RESP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 121) |
| 351 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 352 | /* (SIR_HAL_ITC_MSG_TYPES_BEGIN + 122) is unused */ |
| 353 | |
| 354 | #ifdef WLAN_FEATURE_PACKET_FILTERING |
| 355 | #define SIR_HAL_8023_MULTICAST_LIST_REQ \ |
| 356 | (SIR_HAL_ITC_MSG_TYPES_BEGIN + 123) |
| 357 | #define SIR_HAL_RECEIVE_FILTER_SET_FILTER_REQ \ |
| 358 | (SIR_HAL_ITC_MSG_TYPES_BEGIN + 124) |
| 359 | #define SIR_HAL_PACKET_COALESCING_FILTER_MATCH_COUNT_REQ \ |
| 360 | (SIR_HAL_ITC_MSG_TYPES_BEGIN + 125) |
| 361 | #define SIR_HAL_PACKET_COALESCING_FILTER_MATCH_COUNT_RSP \ |
| 362 | (SIR_HAL_ITC_MSG_TYPES_BEGIN + 126) |
| 363 | #define SIR_HAL_RECEIVE_FILTER_CLEAR_FILTER_REQ \ |
| 364 | (SIR_HAL_ITC_MSG_TYPES_BEGIN + 127) |
| 365 | #endif /* WLAN_FEATURE_PACKET_FILTERING */ |
| 366 | |
| 367 | /* (SIR_HAL_ITC_MSG_TYPES_BEGIN + 128) is unused */ |
| 368 | |
| 369 | #ifdef WLAN_FEATURE_GTK_OFFLOAD |
| 370 | #define SIR_HAL_GTK_OFFLOAD_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 129) |
| 371 | #define SIR_HAL_GTK_OFFLOAD_GETINFO_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 130) |
| 372 | #define SIR_HAL_GTK_OFFLOAD_GETINFO_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 131) |
| 373 | #endif /* WLAN_FEATURE_GTK_OFFLOAD */ |
| 374 | |
| 375 | #ifdef FEATURE_WLAN_ESE |
| 376 | #define SIR_HAL_TSM_STATS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 132) |
| 377 | #define SIR_HAL_TSM_STATS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 133) |
| 378 | #endif |
| 379 | |
| 380 | #define SIR_HAL_SET_TM_LEVEL_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 134) |
| 381 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 382 | #define SIR_HAL_UPDATE_OP_MODE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 135) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 383 | |
| 384 | #ifdef FEATURE_WLAN_TDLS |
| 385 | /* / PE <-> HAL TDLS messages */ |
| 386 | #define SIR_HAL_TDLS_LINK_ESTABLISH (SIR_HAL_ITC_MSG_TYPES_BEGIN + 136) |
| 387 | #define SIR_HAL_TDLS_LINK_TEARDOWN (SIR_HAL_ITC_MSG_TYPES_BEGIN + 137) |
| 388 | #endif |
| 389 | #define SIR_HAL_ROAM_SCAN_OFFLOAD_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 138) |
| 390 | |
| 391 | #define SIR_HAL_TRAFFIC_STATS_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 141) |
| 392 | |
| 393 | #ifdef WLAN_FEATURE_11W |
| 394 | #define SIR_HAL_EXCLUDE_UNENCRYPTED_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 142) |
| 395 | #endif |
| 396 | #ifdef FEATURE_WLAN_TDLS |
| 397 | /* / PE <-> HAL TDLS messages */ |
| 398 | #define SIR_HAL_TDLS_LINK_ESTABLISH_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 143) |
| 399 | #define SIR_HAL_TDLS_LINK_ESTABLISH_REQ_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 144) |
| 400 | #define SIR_HAL_TDLS_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 145) |
| 401 | #endif |
| 402 | |
| 403 | #define SIR_HAL_STOP_SCAN_OFFLOAD_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 146) |
| 404 | #define SIR_HAL_RX_SCAN_EVENT (SIR_HAL_ITC_MSG_TYPES_BEGIN + 147) |
| 405 | #define SIR_HAL_DHCP_START_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 148) |
| 406 | #define SIR_HAL_DHCP_STOP_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 149) |
| 407 | #define SIR_HAL_IBSS_PEER_INACTIVITY_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 150) |
| 408 | |
| 409 | #define SIR_HAL_LPHB_CONF_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 151) |
| 410 | |
| 411 | #define SIR_HAL_ADD_PERIODIC_TX_PTRN_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 152) |
| 412 | #define SIR_HAL_DEL_PERIODIC_TX_PTRN_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 153) |
| 413 | |
| 414 | /* Messages between 156 to 157 are not used */ |
Manishekar Chandrasekaran | 5d46f70 | 2016-04-27 12:50:52 +0530 | [diff] [blame] | 415 | #define SIR_HAL_PDEV_DUAL_MAC_CFG_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 154) |
| 416 | #define SIR_HAL_PDEV_MAC_CFG_RESP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 155) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 417 | |
Rajeev Kumar | 8e3e283 | 2015-11-06 16:02:54 -0800 | [diff] [blame] | 418 | /* For IBSS peer info related messages */ |
| 419 | #define SIR_HAL_IBSS_PEER_INFO_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 158) |
| 420 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 421 | #define SIR_HAL_RATE_UPDATE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 159) |
| 422 | |
| 423 | #define SIR_HAL_FLUSH_LOG_TO_FW (SIR_HAL_ITC_MSG_TYPES_BEGIN + 160) |
| 424 | |
Manishekar Chandrasekaran | 7009f25 | 2016-04-21 19:14:15 +0530 | [diff] [blame] | 425 | #define SIR_HAL_PDEV_SET_PCL_TO_FW (SIR_HAL_ITC_MSG_TYPES_BEGIN + 161) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 426 | |
| 427 | /* 162 unused */ |
| 428 | |
| 429 | #define SIR_HAL_CLI_SET_CMD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 163) |
| 430 | #ifndef REMOVE_PKT_LOG |
| 431 | #define SIR_HAL_PKTLOG_ENABLE_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 164) |
| 432 | #endif |
| 433 | #ifdef FEATURE_WLAN_SCAN_PNO |
| 434 | #define SIR_HAL_SME_SCAN_CACHE_UPDATED (SIR_HAL_ITC_MSG_TYPES_BEGIN + 165) |
| 435 | #endif |
| 436 | #define SIR_HAL_START_SCAN_OFFLOAD_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 166) |
| 437 | #define SIR_HAL_UPDATE_CHAN_LIST_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 167) |
| 438 | #define SIR_CSA_OFFLOAD_EVENT (SIR_HAL_ITC_MSG_TYPES_BEGIN + 169) |
| 439 | |
| 440 | #define SIR_HAL_SET_MAX_TX_POWER_PER_BAND_REQ \ |
| 441 | (SIR_HAL_ITC_MSG_TYPES_BEGIN + 170) |
| 442 | |
Rajeev Kumar | 8e3e283 | 2015-11-06 16:02:54 -0800 | [diff] [blame] | 443 | #define SIR_HAL_TX_FAIL_MONITOR_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 171) |
| 444 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 445 | #define SIR_HAL_UPDATE_MEMBERSHIP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 172) |
| 446 | #define SIR_HAL_UPDATE_USERPOS (SIR_HAL_ITC_MSG_TYPES_BEGIN + 173) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 447 | |
| 448 | #ifdef FEATURE_WLAN_TDLS |
| 449 | #define SIR_HAL_UPDATE_FW_TDLS_STATE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 174) |
| 450 | #define SIR_HAL_UPDATE_TDLS_PEER_STATE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 175) |
| 451 | #define SIR_HAL_TDLS_SHOULD_DISCOVER (SIR_HAL_ITC_MSG_TYPES_BEGIN + 176) |
| 452 | #define SIR_HAL_TDLS_SHOULD_TEARDOWN (SIR_HAL_ITC_MSG_TYPES_BEGIN + 177) |
| 453 | #define SIR_HAL_TDLS_PEER_DISCONNECTED (SIR_HAL_ITC_MSG_TYPES_BEGIN + 178) |
| 454 | #endif |
| 455 | |
| 456 | /* Handling of beacon tx indication from FW */ |
| 457 | #define SIR_HAL_BEACON_TX_SUCCESS_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 179) |
| 458 | #define SIR_HAL_DFS_RADAR_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 180) |
| 459 | |
Rajeev Kumar | 8e3e283 | 2015-11-06 16:02:54 -0800 | [diff] [blame] | 460 | #define SIR_HAL_IBSS_CESIUM_ENABLE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 181) |
| 461 | |
| 462 | #define SIR_HAL_RMC_ENABLE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 182) |
| 463 | #define SIR_HAL_RMC_DISABLE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 183) |
| 464 | #define SIR_HAL_RMC_ACTION_PERIOD_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 184) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 465 | #define SIR_HAL_INIT_THERMAL_INFO_CMD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 185) |
| 466 | #define SIR_HAL_SET_THERMAL_LEVEL (SIR_HAL_ITC_MSG_TYPES_BEGIN + 186) |
| 467 | |
Srinivas Girigowda | 515a9ef | 2015-12-11 11:00:48 -0800 | [diff] [blame] | 468 | #ifdef FEATURE_WLAN_ESE |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 469 | #define SIR_HAL_SET_PLM_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 187) |
| 470 | #endif |
| 471 | |
| 472 | #define SIR_HAL_SET_TX_POWER_LIMIT (SIR_HAL_ITC_MSG_TYPES_BEGIN + 188) |
| 473 | #define SIR_HAL_SET_SAP_INTRABSS_DIS (SIR_HAL_ITC_MSG_TYPES_BEGIN + 189) |
| 474 | |
| 475 | #define SIR_HAL_MODEM_POWER_STATE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 190) |
| 476 | |
| 477 | #define SIR_HAL_DISASSOC_TX_COMP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 191) |
| 478 | #define SIR_HAL_DEAUTH_TX_COMP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 192) |
| 479 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 480 | #define SIR_HAL_UPDATE_RX_NSS (SIR_HAL_ITC_MSG_TYPES_BEGIN + 193) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 481 | |
| 482 | #ifdef WLAN_FEATURE_STATS_EXT |
| 483 | #define SIR_HAL_STATS_EXT_REQUEST (SIR_HAL_ITC_MSG_TYPES_BEGIN + 194) |
| 484 | #define SIR_HAL_STATS_EXT_EVENT (SIR_HAL_ITC_MSG_TYPES_BEGIN + 195) |
| 485 | #endif /* WLAN_FEATURE_STATS_EXT */ |
| 486 | |
| 487 | #define SIR_HAL_HIDE_SSID_VDEV_RESTART (SIR_HAL_ITC_MSG_TYPES_BEGIN + 196) |
| 488 | |
| 489 | #define SIR_HAL_GET_LINK_SPEED (SIR_HAL_ITC_MSG_TYPES_BEGIN + 197) |
| 490 | |
| 491 | #ifdef FEATURE_WLAN_EXTSCAN |
| 492 | #define SIR_HAL_EXTSCAN_GET_CAPABILITIES_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 198) |
| 493 | #define SIR_HAL_EXTSCAN_START_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 199) |
| 494 | #define SIR_HAL_EXTSCAN_STOP_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 200) |
| 495 | #define SIR_HAL_EXTSCAN_SET_BSS_HOTLIST_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 201) |
| 496 | #define SIR_HAL_EXTSCAN_RESET_BSS_HOTLIST_REQ \ |
| 497 | (SIR_HAL_ITC_MSG_TYPES_BEGIN + 202) |
| 498 | #define SIR_HAL_EXTSCAN_SET_SIGNF_CHANGE_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 203) |
| 499 | #define SIR_HAL_EXTSCAN_RESET_SIGNF_CHANGE_REQ \ |
| 500 | (SIR_HAL_ITC_MSG_TYPES_BEGIN + 204) |
| 501 | #define SIR_HAL_EXTSCAN_GET_CACHED_RESULTS_REQ \ |
| 502 | (SIR_HAL_ITC_MSG_TYPES_BEGIN + 205) |
| 503 | #endif /* FEATURE_WLAN_EXTSCAN */ |
| 504 | |
| 505 | #ifdef FEATURE_WLAN_CH_AVOID |
| 506 | #define SIR_HAL_CH_AVOID_UPDATE_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 206) |
| 507 | #endif |
| 508 | |
| 509 | #ifdef WLAN_FEATURE_LINK_LAYER_STATS |
| 510 | #define SIR_HAL_LL_STATS_CLEAR_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 207) |
| 511 | #define SIR_HAL_LL_STATS_SET_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 208) |
| 512 | #define SIR_HAL_LL_STATS_GET_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 209) |
| 513 | #define SIR_HAL_LL_STATS_RESULTS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 210) |
| 514 | #endif /* WLAN_FEATURE_LINK_LAYER_STATS */ |
| 515 | |
| 516 | #ifdef WLAN_FEATURE_ROAM_OFFLOAD |
| 517 | #define SIR_HAL_ROAM_OFFLOAD_SYNCH_CNF (SIR_HAL_ITC_MSG_TYPES_BEGIN + 211) |
| 518 | #endif |
| 519 | #ifdef WLAN_FEATURE_NAN |
| 520 | #define SIR_HAL_NAN_REQUEST (SIR_HAL_ITC_MSG_TYPES_BEGIN + 212) |
| 521 | #endif /* WLAN_FEATURE_NAN */ |
| 522 | |
| 523 | #ifdef FEATURE_WLAN_AUTO_SHUTDOWN |
| 524 | #define SIR_HAL_SET_AUTO_SHUTDOWN_TIMER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 213) |
| 525 | #endif |
| 526 | |
| 527 | #define SIR_HAL_SET_BASE_MACADDR_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 214) |
| 528 | |
| 529 | #define SIR_HAL_UNIT_TEST_CMD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 215) |
| 530 | |
| 531 | #define SIR_HAL_LINK_STATUS_GET_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 216) |
| 532 | |
| 533 | #ifdef WLAN_FEATURE_EXTWOW_SUPPORT |
| 534 | #define SIR_HAL_CONFIG_EXT_WOW (SIR_HAL_ITC_MSG_TYPES_BEGIN + 217) |
| 535 | #define SIR_HAL_CONFIG_APP_TYPE1_PARAMS (SIR_HAL_ITC_MSG_TYPES_BEGIN + 218) |
| 536 | #define SIR_HAL_CONFIG_APP_TYPE2_PARAMS (SIR_HAL_ITC_MSG_TYPES_BEGIN + 219) |
| 537 | #endif |
| 538 | |
| 539 | #define SIR_HAL_GET_TEMPERATURE_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 220) |
| 540 | #define SIR_HAL_SET_SCAN_MAC_OUI_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 221) |
| 541 | #ifdef DHCP_SERVER_OFFLOAD |
| 542 | #define SIR_HAL_SET_DHCP_SERVER_OFFLOAD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 222) |
| 543 | #endif /* DHCP_SERVER_OFFLOAD */ |
| 544 | #define SIR_HAL_LED_FLASHING_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 223) |
| 545 | #define SIR_HAL_PROCESS_FW_EVENT (SIR_HAL_ITC_MSG_TYPES_BEGIN + 224) |
| 546 | |
| 547 | #ifdef WLAN_FEATURE_ROAM_OFFLOAD |
| 548 | #define SIR_HAL_ROAM_OFFLOAD_SYNCH_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 225) |
| 549 | #define SIR_HAL_ROAM_OFFLOAD_SYNCH_FAIL (SIR_HAL_ITC_MSG_TYPES_BEGIN + 226) |
| 550 | #define SIR_HAL_ROAM_INVOKE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 227) |
| 551 | #endif |
| 552 | |
| 553 | #ifdef FEATURE_WLAN_TDLS |
| 554 | #define SIR_HAL_TDLS_SET_OFFCHAN_MODE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 228) |
| 555 | #endif |
| 556 | |
| 557 | #define SIR_HAL_SET_MAS (SIR_HAL_ITC_MSG_TYPES_BEGIN + 229) |
| 558 | #define SIR_HAL_SET_MIRACAST (SIR_HAL_ITC_MSG_TYPES_BEGIN + 230) |
| 559 | #ifdef FEATURE_AP_MCC_CH_AVOIDANCE |
| 560 | #define SIR_HAL_UPDATE_Q2Q_IE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 231) |
| 561 | #endif /* FEATURE_AP_MCC_CH_AVOIDANCE */ |
| 562 | #define SIR_HAL_CONFIG_STATS_FACTOR (SIR_HAL_ITC_MSG_TYPES_BEGIN + 232) |
| 563 | #define SIR_HAL_CONFIG_GUARD_TIME (SIR_HAL_ITC_MSG_TYPES_BEGIN + 233) |
| 564 | #define SIR_HAL_IPA_OFFLOAD_ENABLE_DISABLE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 234) |
| 565 | |
| 566 | #define SIR_HAL_ENTER_PS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 235) |
| 567 | #define SIR_HAL_EXIT_PS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 236) |
| 568 | #define SIR_HAL_ENABLE_UAPSD_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 237) |
| 569 | #define SIR_HAL_DISABLE_UAPSD_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 238) |
Ravi Joshi | 61c3c7a | 2015-11-09 18:41:20 -0800 | [diff] [blame] | 570 | #define SIR_HAL_GATEWAY_PARAM_UPDATE_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 239) |
Houston Hoffman | a76591b | 2015-11-10 16:52:05 -0800 | [diff] [blame] | 571 | |
| 572 | #define SIR_HAL_RUNTIME_PM_SUSPEND_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 308) |
| 573 | #define SIR_HAL_RUNTIME_PM_RESUME_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 309) |
| 574 | |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 575 | #define SIR_HAL_SET_EPNO_LIST_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 313) |
| 576 | #define SIR_HAL_SET_PASSPOINT_LIST_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 316) |
| 577 | #define SIR_HAL_RESET_PASSPOINT_LIST_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 317) |
| 578 | #define SIR_HAL_EXTSCAN_SET_SSID_HOTLIST_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 318) |
| 579 | |
| 580 | #define SIR_HAL_OCB_SET_CONFIG_CMD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 319) |
| 581 | #define SIR_HAL_OCB_SET_UTC_TIME_CMD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 320) |
| 582 | #define SIR_HAL_OCB_START_TIMING_ADVERT_CMD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 321) |
| 583 | #define SIR_HAL_OCB_STOP_TIMING_ADVERT_CMD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 322) |
| 584 | #define SIR_HAL_OCB_GET_TSF_TIMER_CMD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 323) |
| 585 | #define SIR_HAL_DCC_GET_STATS_CMD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 324) |
| 586 | #define SIR_HAL_DCC_CLEAR_STATS_CMD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 325) |
| 587 | #define SIR_HAL_DCC_UPDATE_NDL_CMD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 326) |
| 588 | |
| 589 | #define SIR_HAL_FW_MEM_DUMP_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 327) |
| 590 | #define SIR_HAL_START_STOP_LOGGING (SIR_HAL_ITC_MSG_TYPES_BEGIN + 328) |
Manishekar Chandrasekaran | d964034 | 2016-04-27 12:28:26 +0530 | [diff] [blame] | 591 | #define SIR_HAL_PDEV_SET_HW_MODE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 329) |
| 592 | #define SIR_HAL_PDEV_SET_HW_MODE_RESP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 330) |
Manishekar Chandrasekaran | 05fd267 | 2016-04-27 12:59:20 +0530 | [diff] [blame] | 593 | #define SIR_HAL_PDEV_HW_MODE_TRANS_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 331) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 594 | |
Poddar, Siddarth | b61cf64 | 2016-04-28 16:02:39 +0530 | [diff] [blame^] | 595 | #define SIR_HAL_BAD_PEER_TX_CTL_INI_CMD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 332) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 596 | #define SIR_HAL_SET_RSSI_MONITOR_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 333) |
| 597 | #define SIR_HAL_SET_IE_INFO (SIR_HAL_ITC_MSG_TYPES_BEGIN + 334) |
| 598 | |
| 599 | #define SIR_HAL_LRO_CONFIG_CMD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 335) |
| 600 | |
Ryan Hsu | 3c8f79f | 2015-12-02 16:45:09 -0800 | [diff] [blame] | 601 | #define SIR_HAL_SET_EGAP_CONF_PARAMS (SIR_HAL_ITC_MSG_TYPES_BEGIN + 336) |
Sandeep Puligilla | e087566 | 2016-02-12 16:09:21 -0800 | [diff] [blame] | 602 | #define SIR_HAL_HT40_OBSS_SCAN_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 337) |
Gupta, Kapil | 4cb1d7d | 2016-04-16 18:16:25 -0700 | [diff] [blame] | 603 | |
Manikandan Mohan | 976e756 | 2016-03-15 16:33:31 -0700 | [diff] [blame] | 604 | #define SIR_HAL_TSF_GPIO_PIN_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 338) |
| 605 | |
Gupta, Kapil | 4cb1d7d | 2016-04-16 18:16:25 -0700 | [diff] [blame] | 606 | #define SIR_HAL_ADD_BCN_FILTER_CMDID (SIR_HAL_ITC_MSG_TYPES_BEGIN + 339) |
| 607 | #define SIR_HAL_REMOVE_BCN_FILTER_CMDID (SIR_HAL_ITC_MSG_TYPES_BEGIN + 340) |
| 608 | |
Arun Khandavalli | 2476ef5 | 2016-04-26 20:19:43 +0530 | [diff] [blame] | 609 | #define SIR_HAL_BPF_GET_CAPABILITIES_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 341) |
| 610 | #define SIR_HAL_BPF_SET_INSTRUCTIONS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 342) |
| 611 | |
Manikandan Mohan | 80dea79 | 2016-04-28 16:36:48 -0700 | [diff] [blame] | 612 | #define SIR_HAL_SET_WISA_PARAMS (SIR_HAL_ITC_MSG_TYPES_BEGIN + 343) |
Gupta, Kapil | 96c7f2f | 2016-04-25 19:13:41 +0530 | [diff] [blame] | 613 | #define SIR_HAL_SET_ADAPT_DWELLTIME_PARAMS (SIR_HAL_ITC_MSG_TYPES_BEGIN + 344) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 614 | #define SIR_HAL_MSG_TYPES_END (SIR_HAL_MSG_TYPES_BEGIN + 0x1FF) |
| 615 | |
| 616 | /* CFG message types */ |
| 617 | #define SIR_CFG_MSG_TYPES_BEGIN (SIR_CFG_MODULE_ID << 8) |
| 618 | #define SIR_CFG_ITC_MSG_TYPES_BEGIN (SIR_CFG_MSG_TYPES_BEGIN+0xB0) |
| 619 | #define SIR_CFG_PARAM_UPDATE_IND (SIR_CFG_ITC_MSG_TYPES_BEGIN) |
| 620 | #define SIR_CFG_DOWNLOAD_COMPLETE_IND (SIR_CFG_ITC_MSG_TYPES_BEGIN + 1) |
| 621 | #define SIR_CFG_MSG_TYPES_END (SIR_CFG_MSG_TYPES_BEGIN+0xFF) |
| 622 | |
| 623 | /* LIM message types */ |
| 624 | #define SIR_LIM_MSG_TYPES_BEGIN (SIR_LIM_MODULE_ID << 8) |
| 625 | #define SIR_LIM_ITC_MSG_TYPES_BEGIN (SIR_LIM_MSG_TYPES_BEGIN+0xB0) |
| 626 | |
| 627 | /* Messages to/from HAL */ |
| 628 | /* Removed as part of moving HAL down to FW */ |
| 629 | |
| 630 | /* Message from ISR upon TFP retry interrupt */ |
| 631 | #define SIR_LIM_RETRY_INTERRUPT_MSG (SIR_LIM_ITC_MSG_TYPES_BEGIN + 3) |
| 632 | /* Message from BB Transport */ |
| 633 | #define SIR_BB_XPORT_MGMT_MSG (SIR_LIM_ITC_MSG_TYPES_BEGIN + 4) |
| 634 | /* UNUSED SIR_LIM_ITC_MSG_TYPES_BEGIN + 6 */ |
| 635 | /* Message from ISR upon SP's Invalid session key interrupt */ |
| 636 | #define SIR_LIM_INV_KEY_INTERRUPT_MSG (SIR_LIM_ITC_MSG_TYPES_BEGIN + 7) |
| 637 | /* Message from ISR upon SP's Invalid key ID interrupt */ |
| 638 | #define SIR_LIM_KEY_ID_INTERRUPT_MSG (SIR_LIM_ITC_MSG_TYPES_BEGIN + 8) |
| 639 | /* Message from ISR upon SP's Replay threshold reached interrupt */ |
| 640 | #define SIR_LIM_REPLAY_THRES_INTERRUPT_MSG (SIR_LIM_ITC_MSG_TYPES_BEGIN + 9) |
| 641 | /* Message from HDD after the TD dummy packet is cleaned up */ |
| 642 | #define SIR_LIM_TD_DUMMY_CALLBACK_MSG (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0xA) |
| 643 | /* Message from SCH when the STA is ready to be deleted */ |
| 644 | #define SIR_LIM_SCH_CLEAN_MSG (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0xB) |
| 645 | /* Message from ISR upon Radar Detection */ |
| 646 | #define SIR_LIM_RADAR_DETECT_IND (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0xC) |
Manishekar Chandrasekaran | cb05217 | 2016-04-22 12:19:04 +0530 | [diff] [blame] | 647 | /* Message id 0xD available */ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 648 | |
| 649 | /* Message from Hal to send out a DEL-TS indication */ |
| 650 | #define SIR_LIM_DEL_TS_IND (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0xE) |
| 651 | /* Indication from HAL to delete Station context */ |
| 652 | #define SIR_LIM_DELETE_STA_CONTEXT_IND (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0x11) |
| 653 | /* Indication from HAL to delete BA */ |
| 654 | #define SIR_LIM_UPDATE_BEACON (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0x13) |
| 655 | |
| 656 | /* LIM Timeout messages */ |
| 657 | #define SIR_LIM_TIMEOUT_MSG_START ((SIR_LIM_MODULE_ID << 8) + 0xD0) |
| 658 | #define SIR_LIM_JOIN_FAIL_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 2) |
| 659 | #define SIR_LIM_AUTH_FAIL_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 3) |
| 660 | #define SIR_LIM_AUTH_RSP_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 4) |
| 661 | #define SIR_LIM_ASSOC_FAIL_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 5) |
| 662 | #define SIR_LIM_REASSOC_FAIL_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 6) |
| 663 | #define SIR_LIM_HEART_BEAT_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 7) |
| 664 | /* currently unused SIR_LIM_TIMEOUT_MSG_START + 0x8 */ |
| 665 | /* Link Monitoring Messages */ |
| 666 | #define SIR_LIM_PROBE_HB_FAILURE_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0xB) |
| 667 | #define SIR_LIM_ADDTS_RSP_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0xC) |
| 668 | #define SIR_LIM_LINK_TEST_DURATION_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x13) |
| 669 | #define SIR_LIM_HASH_MISS_THRES_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x16) |
| 670 | #define SIR_LIM_CNF_WAIT_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x17) |
| 671 | /* currently unused (SIR_LIM_TIMEOUT_MSG_START + 0x18) */ |
| 672 | #define SIR_LIM_UPDATE_OLBC_CACHEL_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x19) |
| 673 | #define SIR_LIM_CHANNEL_SWITCH_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x1A) |
| 674 | #define SIR_LIM_QUIET_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x1B) |
| 675 | #define SIR_LIM_QUIET_BSS_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x1C) |
| 676 | |
| 677 | #define SIR_LIM_WPS_OVERLAP_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x1D) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 678 | #define SIR_LIM_FT_PREAUTH_RSP_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x1E) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 679 | #define SIR_LIM_REMAIN_CHN_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x1F) |
| 680 | #define SIR_LIM_INSERT_SINGLESHOT_NOA_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x20) |
| 681 | |
| 682 | #define SIR_LIM_BEACON_GEN_IND (SIR_LIM_TIMEOUT_MSG_START + 0x23) |
| 683 | #define SIR_LIM_PERIODIC_PROBE_REQ_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x24) |
Srinivas Girigowda | 730ae98 | 2015-12-09 15:58:16 -0800 | [diff] [blame] | 684 | |
| 685 | /* currently unused (SIR_LIM_TIMEOUT_MSG_START + 0x25) */ |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 686 | |
| 687 | #define SIR_LIM_DISASSOC_ACK_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x26) |
| 688 | #define SIR_LIM_DEAUTH_ACK_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x27) |
| 689 | #define SIR_LIM_PERIODIC_JOIN_PROBE_REQ_TIMEOUT \ |
| 690 | (SIR_LIM_TIMEOUT_MSG_START + 0x28) |
| 691 | |
| 692 | #define SIR_LIM_CONVERT_ACTIVE_CHANNEL_TO_PASSIVE \ |
| 693 | (SIR_LIM_TIMEOUT_MSG_START + 0x2C) |
Abhishek Singh | 7d3bc3e | 2016-02-03 17:45:01 +0530 | [diff] [blame] | 694 | #define SIR_LIM_AUTH_RETRY_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x2D) |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 695 | |
| 696 | #define SIR_LIM_MSG_TYPES_END (SIR_LIM_MSG_TYPES_BEGIN+0xFF) |
| 697 | |
| 698 | /* SCH message types */ |
| 699 | #define SIR_SCH_MSG_TYPES_BEGIN (SIR_SCH_MODULE_ID << 8) |
| 700 | #define SIR_SCH_CHANNEL_SWITCH_REQUEST (SIR_SCH_MSG_TYPES_BEGIN) |
| 701 | #define SIR_SCH_START_SCAN_REQ (SIR_SCH_MSG_TYPES_BEGIN + 1) |
| 702 | #define SIR_SCH_START_SCAN_RSP (SIR_SCH_MSG_TYPES_BEGIN + 2) |
| 703 | #define SIR_SCH_END_SCAN_NTF (SIR_SCH_MSG_TYPES_BEGIN + 3) |
| 704 | #define SIR_SCH_MSG_TYPES_END (SIR_SCH_MSG_TYPES_BEGIN+0xFF) |
| 705 | |
| 706 | /* PMM message types */ |
| 707 | #define SIR_PMM_MSG_TYPES_BEGIN (SIR_PMM_MODULE_ID << 8) |
| 708 | #define SIR_PMM_CHANGE_PM_MODE (SIR_PMM_MSG_TYPES_BEGIN) |
| 709 | #define SIR_PMM_MSG_TYPES_END (SIR_PMM_MSG_TYPES_BEGIN+0xFF) |
| 710 | |
| 711 | /* MNT message types */ |
| 712 | #define SIR_MNT_MSG_TYPES_BEGIN (SIR_MNT_MODULE_ID << 8) |
| 713 | #define SIR_MNT_RELEASE_BD (SIR_MNT_MSG_TYPES_BEGIN + 0) |
| 714 | #define SIR_MNT_MSG_TYPES_END (SIR_MNT_MSG_TYPES_BEGIN + 0xFF) |
| 715 | |
| 716 | /* PTT message types */ |
| 717 | #define SIR_PTT_MSG_TYPES_BEGIN 0x3000 |
| 718 | #define SIR_PTT_MSG_TYPES_END 0x3300 |
| 719 | |
| 720 | /* ****************************************** * |
| 721 | * * |
| 722 | * EVENT TYPE Defintions * |
| 723 | * * |
| 724 | * ****************************************** */ |
| 725 | |
| 726 | /* MMH Events that are used in other modules to post events to MMH */ |
| 727 | #define SIR_HSTEMUL_TXMB_DONE_EVT 0x00000100 |
| 728 | #define SIR_HSTEMUL_RXMB_READY_EVT 0x00000200 |
| 729 | #define SIR_HSTEMUL_MSGQ_NE_EVT 0x00000400 |
| 730 | |
| 731 | #define SIR_TST_XMIT_MSG_QS_EMPTY_EVT 0x00000080 |
| 732 | |
| 733 | /* added for OBSS */ |
| 734 | |
| 735 | /* Param Change Bitmap sent to HAL */ |
| 736 | #define PARAM_BCN_INTERVAL_CHANGED (1 << 0) |
| 737 | #define PARAM_SHORT_PREAMBLE_CHANGED (1 << 1) |
| 738 | #define PARAM_SHORT_SLOT_TIME_CHANGED (1 << 2) |
| 739 | #define PARAM_llACOEXIST_CHANGED (1 << 3) |
| 740 | #define PARAM_llBCOEXIST_CHANGED (1 << 4) |
| 741 | #define PARAM_llGCOEXIST_CHANGED (1 << 5) |
| 742 | #define PARAM_HT20MHZCOEXIST_CHANGED (1<<6) |
| 743 | #define PARAM_NON_GF_DEVICES_PRESENT_CHANGED (1<<7) |
| 744 | #define PARAM_RIFS_MODE_CHANGED (1<<8) |
| 745 | #define PARAM_LSIG_TXOP_FULL_SUPPORT_CHANGED (1<<9) |
| 746 | #define PARAM_OBSS_MODE_CHANGED (1<<10) |
| 747 | #define PARAM_BEACON_UPDATE_MASK (PARAM_BCN_INTERVAL_CHANGED | \ |
| 748 | PARAM_SHORT_PREAMBLE_CHANGED | \ |
| 749 | PARAM_SHORT_SLOT_TIME_CHANGED | \ |
| 750 | PARAM_llACOEXIST_CHANGED | \ |
| 751 | PARAM_llBCOEXIST_CHANGED | \ |
| 752 | PARAM_llGCOEXIST_CHANGED | \ |
| 753 | PARAM_HT20MHZCOEXIST_CHANGED | \ |
| 754 | PARAM_NON_GF_DEVICES_PRESENT_CHANGED | \ |
| 755 | PARAM_RIFS_MODE_CHANGED | \ |
| 756 | PARAM_LSIG_TXOP_FULL_SUPPORT_CHANGED | \ |
| 757 | PARAM_OBSS_MODE_CHANGED) |
| 758 | |
| 759 | #endif |