blob: 052e04df8a9c1ee14e026de18fabf61dce336cef [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Abhishek Singh00b71972016-01-07 10:51:04 +05302 * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved.
Kiet Lam842dad02014-02-18 18:44:02 -08003 *
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/*
Kiet Lama7f454d2014-07-24 12:04:06 -070023 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
Gopichand Nakkala92f07d82013-01-08 21:16:34 -080026 */
Kiet Lam842dad02014-02-18 18:44:02 -080027
28
Kiet Lama7f454d2014-07-24 12:04:06 -070029
30
Gopichand Nakkala92f07d82013-01-08 21:16:34 -080031/*
Kiet Lamaa8e15a2014-02-11 23:30:06 -080032 * This file sirParams.h contains the common parameter definitions, which
33 * are not dependent on threadX API. These can be used by all Firmware
34 * modules.
Jeff Johnson295189b2012-06-20 16:38:30 -070035 *
Kiet Lamaa8e15a2014-02-11 23:30:06 -080036 * Author: Sandesh Goel
37 * Date: 04/13/2002
38 * History:-
39 * Date Modified by Modification Information
40 * --------------------------------------------------------------------
Jeff Johnson295189b2012-06-20 16:38:30 -070041 */
42
Jeff Johnson295189b2012-06-20 16:38:30 -070043#ifndef __SIRPARAMS_H
44#define __SIRPARAMS_H
45
46# include "sirTypes.h"
47
Jeff Johnson295189b2012-06-20 16:38:30 -070048// Firmware wide constants
49
50#define SIR_MAX_PACKET_SIZE 2048
51#define SIR_MAX_NUM_CHANNELS 64
52#define SIR_MAX_NUM_STA_IN_IBSS 16
53#define SIR_MAX_NUM_STA_IN_BSS 256
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -080054#define SIR_ESE_MAX_MEAS_IE_REQS 8
Jeff Johnson295189b2012-06-20 16:38:30 -070055
Jeff Johnson295189b2012-06-20 16:38:30 -070056typedef enum
57{
Jeff Johnsone7245742012-09-05 17:12:55 -070058 PHY_SINGLE_CHANNEL_CENTERED = 0, // 20MHz IF bandwidth centered on IF carrier
59 PHY_DOUBLE_CHANNEL_LOW_PRIMARY = 1, // 40MHz IF bandwidth with lower 20MHz supporting the primary channel
60 PHY_DOUBLE_CHANNEL_HIGH_PRIMARY = 3, // 40MHz IF bandwidth with higher 20MHz supporting the primary channel
Jeff Johnson62c27982013-02-27 17:53:55 -080061#ifdef WLAN_FEATURE_11AC
Jeff Johnsone7245742012-09-05 17:12:55 -070062 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
69#endif
70 PHY_CHANNEL_BONDING_STATE_MAX = 11
Jeff Johnson295189b2012-06-20 16:38:30 -070071}ePhyChanBondState;
Jeff Johnson295189b2012-06-20 16:38:30 -070072
Jeff Johnsone7245742012-09-05 17:12:55 -070073#define SIR_MIN(a,b) (((a) < (b)) ? (a) : (b))
74#define SIR_MAX(a,b) (((a) > (b)) ? (a) : (b))
75
76typedef enum {
Madan Mohan Koyyalamudi1bed5982012-10-22 14:38:06 -070077 MCC = 0,
78 P2P = 1,
Jeff Johnsone7245742012-09-05 17:12:55 -070079 DOT11AC = 2,
Mohit Khanna4a70d262012-09-11 16:30:12 -070080 SLM_SESSIONIZATION = 3,
81 DOT11AC_OPMODE = 4,
Gopichand Nakkala976e3252013-01-03 15:45:56 -080082 SAP32STA = 5,
Mohit Khanna698ba2a2012-12-04 15:08:18 -080083 TDLS = 6,
Viral Modid86bde22012-12-10 13:09:21 -080084 P2P_GO_NOA_DECOUPLE_INIT_SCAN = 7,
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070085 WLANACTIVE_OFFLOAD = 8,
Dasari Srinivas7875a302014-09-26 17:50:57 +053086 RTT = 20,
Yue Ma55855df2013-08-26 10:59:03 -070087 WOW = 22,
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -070088#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
89 WLAN_ROAM_SCAN_OFFLOAD = 23,
90#endif
Yue Ma55855df2013-08-26 10:59:03 -070091 IBSS_HEARTBEAT_OFFLOAD = 26,
92 WLAN_PERIODIC_TX_PTRN = 28,
Madan Mohan Koyyalamudice419872013-09-13 19:36:52 +053093#ifdef FEATURE_WLAN_TDLS
94 ADVANCE_TDLS = 29,
95#endif
Yue Ma55855df2013-08-26 10:59:03 -070096
Rajeev79dbe4c2013-10-05 11:03:42 +053097#ifdef FEATURE_WLAN_BATCH_SCAN
98 BATCH_SCAN = 30,
99#endif
Kanchanapally, Vidyullathaf9426e52013-12-24 17:28:54 +0530100 FW_IN_TX_PATH = 31,
Sandeep Puligilla60342762014-01-30 21:05:37 +0530101 EXTENDED_NSOFFLOAD_SLOT = 32,
102 CH_SWITCH_V1 = 33,
103 HT40_OBSS_SCAN = 34,
104 UPDATE_CHANNEL_LIST = 35,
Arif Hussain6af38622014-03-12 12:39:57 -0700105 WLAN_MCADDR_FLT = 36,
106 WLAN_CH144 = 37,
Dasari Srinivas7875a302014-09-26 17:50:57 +0530107 NAN = 38,
Pradeep Reddy POTTETIedaeb5f2014-05-22 23:34:41 +0530108#ifdef FEATURE_WLAN_TDLS
109 TDLS_SCAN_COEXISTENCE = 39,
110#endif
Dino Mycledf0a5d92014-07-04 09:41:55 +0530111#ifdef WLAN_FEATURE_LINK_LAYER_STATS
112 LINK_LAYER_STATS_MEAS = 40,
113#endif
Abhishek Singh6d5d29c2014-07-03 14:25:22 +0530114
115 MU_MIMO = 41,
Dino Myclee8843b32014-07-04 14:21:45 +0530116#ifdef WLAN_FEATURE_EXTSCAN
117 EXTENDED_SCAN = 42,
118#endif
Arif Hussain6af38622014-03-12 12:39:57 -0700119
Mihir Shetec34258c2014-07-30 17:50:27 +0530120 DYNAMIC_WMM_PS = 43,
Siddharth Bhal6af5d4e2014-09-29 21:11:16 +0530121 MAC_SPOOFED_SCAN = 44,
Mihir Shetebf8897b2014-11-26 14:54:39 +0530122 BMU_ERROR_GENERIC_RECOVERY = 45,
Srinivas Dasari4dae48f2014-11-26 21:14:16 +0530123 DISA = 46,
Abhishek Singh3ae443b2014-10-08 11:49:27 +0530124 FW_STATS = 47,
Sachin Ahuja825082e2014-11-25 17:34:36 +0530125 WPS_PRBRSP_TMPL = 48,
Abhishek Singh5fef4042014-11-25 18:33:00 +0530126 BCN_IE_FLT_DELTA = 49,
Pradeep Reddy POTTETI57969282015-02-26 16:28:48 +0530127#ifdef FEATURE_WLAN_TDLS
128 TDLS_OFF_CHANNEL = 51,
129#endif
Padma, Santhosh Kumarcfbcf942015-12-08 16:07:47 +0530130 RTT3 = 52,
Siddharth Bhalb7c421c2015-02-27 00:26:09 +0530131 MGMT_FRAME_LOGGING = 53,
Ganesh Kondabattinib18b3292015-03-16 16:59:26 +0530132 ENHANCED_TXBD_COMPLETION = 54,
Siddharth Bhald1be97f2015-05-27 22:39:59 +0530133 LOGGING_ENHANCEMENT = 55,
Padma, Santhosh Kumar2ac54992015-10-12 18:20:58 +0530134
135#ifdef WLAN_FEATURE_EXTSCAN
136 EXT_SCAN_ENHANCED = 56,
137#endif
138
c_manjeecfd1efb2015-09-25 19:32:34 +0530139 MEMORY_DUMP_SUPPORTED = 57,
Sushant Kaushik33200572015-08-05 16:46:20 +0530140 PER_PKT_STATS_SUPPORTED = 58,
Mukul Sharmaf1bd9322015-10-20 16:03:42 +0530141 EXT_LL_STAT = 60,
Arun Khandavalli7eeb1592015-10-19 21:36:57 +0530142 WIFI_CONFIG = 61,
Mahesh A Saptasagarcfc65ae2015-12-22 15:06:10 +0530143 ANTENNA_DIVERSITY_SELECTION = 62,
Tushnim Bhattacharyya5dd94562013-03-20 20:15:03 -0700144 //MAX_FEATURE_SUPPORTED = 128
Jeff Johnsone7245742012-09-05 17:12:55 -0700145} placeHolderInCapBitmap;
146
Jeff Johnson295189b2012-06-20 16:38:30 -0700147typedef enum eSriLinkState {
148 eSIR_LINK_IDLE_STATE = 0,
149 eSIR_LINK_PREASSOC_STATE = 1,
150 eSIR_LINK_POSTASSOC_STATE = 2,
151 eSIR_LINK_AP_STATE = 3,
152 eSIR_LINK_IBSS_STATE = 4,
153 // BT-AMP Case
154 eSIR_LINK_BTAMP_PREASSOC_STATE = 5,
155 eSIR_LINK_BTAMP_POSTASSOC_STATE = 6,
156 eSIR_LINK_BTAMP_AP_STATE = 7,
157 eSIR_LINK_BTAMP_STA_STATE = 8,
158
159 // Reserved for HAL internal use
160 eSIR_LINK_LEARN_STATE = 9,
161 eSIR_LINK_SCAN_STATE = 10,
162 eSIR_LINK_FINISH_SCAN_STATE = 11,
163 eSIR_LINK_INIT_CAL_STATE = 12,
164 eSIR_LINK_FINISH_CAL_STATE = 13,
Gopichand Nakkala924e4552013-05-08 19:18:14 +0530165 eSIR_LINK_LISTEN_STATE = 14,
166 eSIR_LINK_SEND_ACTION_STATE = 15,
Jeff Johnson295189b2012-06-20 16:38:30 -0700167} tSirLinkState;
168
169
170/// Message queue structure used across Sirius project.
171/// NOTE: this structure should be multiples of a word size (4bytes)
172/// as this is used in tx_queue where it expects to be multiples of 4 bytes.
173typedef struct sSirMsgQ
174{
175 tANI_U16 type;
176 /*
177 * This field can be used as sequence number/dialog token for matching
178 * requests and responses.
179 */
180 tANI_U16 reserved;
181 /**
182 * Based on the type either a bodyptr pointer into
183 * memory or bodyval as a 32 bit data is used.
184 * bodyptr: is always a freeable pointer, one should always
185 * make sure that bodyptr is always freeable.
186 *
187 * Messages should use either bodyptr or bodyval; not both !!!.
188 */
189 void *bodyptr;
190 tANI_U32 bodyval;
Srinivas Girigowdaae5a6cf2014-03-06 14:14:12 -0800191
192 /*
193 * Some messages provide a callback function. The function signature
194 * must be agreed upon between the two entities exchanging the message
195 */
196 void *callback;
197
Jeff Johnson295189b2012-06-20 16:38:30 -0700198} tSirMsgQ, *tpSirMsgQ;
199
200/// Mailbox Message Structure Define
201typedef struct sSirMbMsg
202{
203 tANI_U16 type;
204
205 /**
206 * This length includes 4 bytes of header, that is,
207 * 2 bytes type + 2 bytes msgLen + n*4 bytes of data.
208 * This field is byte length.
209 */
210 tANI_U16 msgLen;
211
212 /**
213 * This is the first data word in the mailbox message.
214 * It is followed by n words of data.
215 * NOTE: data[1] is not a place holder to store data
216 * instead to dereference the message body.
217 */
218 tANI_U32 data[1];
219} tSirMbMsg, *tpSirMbMsg;
220
Jeff Johnson62c27982013-02-27 17:53:55 -0800221/// Mailbox Message Structure for P2P
Jeff Johnson295189b2012-06-20 16:38:30 -0700222typedef struct sSirMbMsgP2p
223{
224 tANI_U16 type;
225
226 /**
227 * This length includes 4 bytes of header, that is,
228 * 2 bytes type + 2 bytes msgLen + n*4 bytes of data.
229 * This field is byte length.
230 */
231 tANI_U16 msgLen;
232
Jeff Johnsone7245742012-09-05 17:12:55 -0700233 tANI_U8 sessionId;
234 tANI_U8 noack;
235 tANI_U16 wait;
236
Jeff Johnson295189b2012-06-20 16:38:30 -0700237 /**
238 * This is the first data word in the mailbox message.
239 * It is followed by n words of data.
240 * NOTE: data[1] is not a place holder to store data
241 * instead to dereference the message body.
242 */
243 tANI_U32 data[1];
244} tSirMbMsgP2p, *tpSirMbMsgP2p;
Jeff Johnson295189b2012-06-20 16:38:30 -0700245
246/// Message queue definitions
247// msgtype(2bytes) reserved(2bytes) bodyptr(4bytes) bodyval(4bytes)
248// NOTE tSirMsgQ should be always multiples of WORD(4Bytes)
249// All Queue Message Size are multiples of word Size (4 bytes)
250#define SYS_MSG_SIZE (sizeof(tSirMsgQ)/4)
251
252/// gHalMsgQ
253
254#define SYS_HAL_MSG_SIZE SYS_MSG_SIZE
255
256/// gMMHhiPriorityMsgQ
257
258#define SYS_MMH_HI_PRI_MSG_SIZE SYS_MSG_SIZE
259
260/// gMMHprotocolMsgQ
261
262#define SYS_MMH_PROT_MSG_SIZE SYS_MSG_SIZE
263
264/// gMMHdebugMsgQ
265
266#define SYS_MMH_DEBUG_MSG_SIZE SYS_MSG_SIZE
267
268/// gMAINTmsgQ
269
270#define SYS_MNT_MSG_SIZE SYS_MSG_SIZE
271
272/// LIM Message Queue
273
274#define SYS_LIM_MSG_SIZE SYS_MSG_SIZE
275
276/// ARQ Message Queue
277
278#define SYS_ARQ_MSG_SIZE SYS_MSG_SIZE
279
280/// Scheduler Message Queue
281
282#define SYS_SCH_MSG_SIZE SYS_MSG_SIZE
283
284/// PMM Message Queue
285
286#define SYS_PMM_MSG_SIZE SYS_MSG_SIZE
287
288/// TX Message Queue
289
290#define SYS_TX_MSG_SIZE (sizeof(void *)/4) // Message pointer size
291
292/// RX Message Queue
293
294#define SYS_RX_MSG_SIZE (sizeof(void *)/4) // Message pointer size
295
296/// PTT Message Queue
297#define SYS_NIM_PTT_MSG_SIZE SYS_MSG_SIZE // Message pointer size
298
299
300
301/* *************************************** *
302 * *
303 * Block pool configuration *
304 * *
305 * *************************************** */
306
307// The following values specify the number of blocks to be created
308// for each block pool size.
309
310#define SIR_BUF_BLK_32_NUM 64
311#define SIR_BUF_BLK_64_NUM 128
312#define SIR_BUF_BLK_96_NUM 16
313#define SIR_BUF_BLK_128_NUM 128
314#define SIR_BUF_BLK_160_NUM 8
315#define SIR_BUF_BLK_192_NUM 0
316#define SIR_BUF_BLK_224_NUM 0
317#define SIR_BUF_BLK_256_NUM 128
318#define SIR_BUF_BLK_512_NUM 0
319#define SIR_BUF_BLK_768_NUM 0
320#define SIR_BUF_BLK_1024_NUM 2
321#define SIR_BUF_BLK_1280_NUM 0
322#define SIR_BUF_BLK_1536_NUM 2
323#define SIR_BUF_BLK_1792_NUM 0
324#define SIR_BUF_BLK_2048_NUM 2
325#define SIR_BUF_BLK_2304_NUM 0
326
327/* ******************************************* *
328 * *
329 * SIRIUS MESSAGE TYPES *
330 * *
331 * ******************************************* */
332
333
334/*
335 * The following message types have bounds defined for each module for
336 * inter thread/module communications.
337 * Each module will get 256 message types in total.
338 * Note that message type definitions for mailbox messages for
339 * communication with Host are in wniApi.h file.
340 *
341 * Any addition/deletion to this message list should also be
342 * reflected in the halUtil_getMsgString() routine.
343 */
344
345// HAL message types
346#define SIR_HAL_MSG_TYPES_BEGIN (SIR_HAL_MODULE_ID << 8)
Siddharth Bhal64246172015-02-27 01:04:37 +0530347#define SIR_HAL_EXT_MSG_TYPES_BEGIN (SIR_HAL_EXT_MODULE_ID << 8)
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800348#define SIR_HAL_ITC_MSG_TYPES_BEGIN (SIR_HAL_MSG_TYPES_BEGIN+0x20)
Jeff Johnson295189b2012-06-20 16:38:30 -0700349#define SIR_HAL_RADAR_DETECTED_IND SIR_HAL_ITC_MSG_TYPES_BEGIN
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800350#define SIR_HAL_WDT_KAM_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 1)
351#define SIR_HAL_TIMER_TEMP_MEAS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 2)
352#define SIR_HAL_TIMER_PERIODIC_STATS_COLLECT_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 3)
353#define SIR_HAL_CAL_REQ_NTF (SIR_HAL_ITC_MSG_TYPES_BEGIN + 4)
354#define SIR_HAL_MNT_OPEN_TPC_TEMP_MEAS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 5)
355#define SIR_HAL_CCA_MONITOR_INTERVAL_TO (SIR_HAL_ITC_MSG_TYPES_BEGIN + 6)
356#define SIR_HAL_CCA_MONITOR_DURATION_TO (SIR_HAL_ITC_MSG_TYPES_BEGIN + 7)
357#define SIR_HAL_CCA_MONITOR_START (SIR_HAL_ITC_MSG_TYPES_BEGIN + 8)
358#define SIR_HAL_CCA_MONITOR_STOP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 9)
359#define SIR_HAL_CCA_CHANGE_MODE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 10)
360#define SIR_HAL_TIMER_WRAP_AROUND_STATS_COLLECT_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 11)
Jeff Johnson295189b2012-06-20 16:38:30 -0700361
362/*
363 * New Taurus related messages
364 */
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800365#define SIR_HAL_ADD_STA_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 13)
366#define SIR_HAL_ADD_STA_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 14)
367#define SIR_HAL_DELETE_STA_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 15)
368#define SIR_HAL_DELETE_STA_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 16)
369#define SIR_HAL_ADD_BSS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 17)
370#define SIR_HAL_ADD_BSS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 18)
371#define SIR_HAL_DELETE_BSS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 19)
372#define SIR_HAL_DELETE_BSS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 20)
373#define SIR_HAL_INIT_SCAN_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 21)
374#define SIR_HAL_INIT_SCAN_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 22)
375#define SIR_HAL_START_SCAN_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 23)
376#define SIR_HAL_START_SCAN_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 24)
377#define SIR_HAL_END_SCAN_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 25)
378#define SIR_HAL_END_SCAN_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 26)
379#define SIR_HAL_FINISH_SCAN_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 27)
380#define SIR_HAL_FINISH_SCAN_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 28)
381#define SIR_HAL_SEND_BEACON_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 29)
382#define SIR_HAL_SEND_BEACON_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 30)
Jeff Johnson295189b2012-06-20 16:38:30 -0700383
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800384#define SIR_HAL_INIT_CFG_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 31)
385#define SIR_HAL_INIT_CFG_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 32)
Jeff Johnson295189b2012-06-20 16:38:30 -0700386
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800387#define SIR_HAL_INIT_WM_CFG_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 33)
388#define SIR_HAL_INIT_WM_CFG_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 34)
Jeff Johnson295189b2012-06-20 16:38:30 -0700389
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800390#define SIR_HAL_SET_BSSKEY_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 35)
391#define SIR_HAL_SET_BSSKEY_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 36)
392#define SIR_HAL_SET_STAKEY_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 37)
393#define SIR_HAL_SET_STAKEY_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 38)
394#define SIR_HAL_DPU_STATS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 39)
395#define SIR_HAL_DPU_STATS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 40)
396#define SIR_HAL_GET_DPUINFO_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 41)
397#define SIR_HAL_GET_DPUINFO_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 42)
Jeff Johnson295189b2012-06-20 16:38:30 -0700398
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800399#define SIR_HAL_UPDATE_EDCA_PROFILE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 43)
Jeff Johnson295189b2012-06-20 16:38:30 -0700400
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800401#define SIR_HAL_UPDATE_STARATEINFO_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 45)
402#define SIR_HAL_UPDATE_STARATEINFO_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 46)
Jeff Johnson295189b2012-06-20 16:38:30 -0700403
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800404#define SIR_HAL_UPDATE_BEACON_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 47)
405#define SIR_HAL_UPDATE_CF_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 48)
406#define SIR_HAL_CHNL_SWITCH_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 49)
407#define SIR_HAL_ADD_TS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 50)
408#define SIR_HAL_DEL_TS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 51)
409#define SIR_HAL_SOFTMAC_TXSTAT_REPORT (SIR_HAL_ITC_MSG_TYPES_BEGIN + 52)
Jeff Johnson295189b2012-06-20 16:38:30 -0700410
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800411#define SIR_HAL_MBOX_SENDMSG_COMPLETE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 61)
412#define SIR_HAL_EXIT_BMPS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 53)
413#define SIR_HAL_EXIT_BMPS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 54)
414#define SIR_HAL_EXIT_BMPS_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 55)
415#define SIR_HAL_ENTER_BMPS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 56)
416#define SIR_HAL_ENTER_BMPS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 57)
417#define SIR_HAL_BMPS_STATUS_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 58)
418#define SIR_HAL_MISSED_BEACON_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 59)
Jeff Johnson295189b2012-06-20 16:38:30 -0700419
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800420#define SIR_HAL_SWITCH_CHANNEL_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 60)
421#define SIR_HAL_PWR_SAVE_CFG (SIR_HAL_ITC_MSG_TYPES_BEGIN + 62)
Jeff Johnson295189b2012-06-20 16:38:30 -0700422
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800423#define SIR_HAL_REGISTER_PE_CALLBACK (SIR_HAL_ITC_MSG_TYPES_BEGIN + 63)
424#define SIR_HAL_SOFTMAC_MEM_READREQUEST (SIR_HAL_ITC_MSG_TYPES_BEGIN + 64)
425#define SIR_HAL_SOFTMAC_MEM_WRITEREQUEST (SIR_HAL_ITC_MSG_TYPES_BEGIN + 65)
Jeff Johnson295189b2012-06-20 16:38:30 -0700426
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800427#define SIR_HAL_SOFTMAC_MEM_READRESPONSE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 66)
428#define SIR_HAL_SOFTMAC_BULKREGWRITE_CONFIRM (SIR_HAL_ITC_MSG_TYPES_BEGIN + 67)
429#define SIR_HAL_SOFTMAC_BULKREGREAD_RESPONSE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 68)
430#define SIR_HAL_SOFTMAC_HOSTMESG_MSGPROCESSRESULT (SIR_HAL_ITC_MSG_TYPES_BEGIN + 69)
Jeff Johnson295189b2012-06-20 16:38:30 -0700431
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800432#define SIR_HAL_ADDBA_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 70)
433#define SIR_HAL_ADDBA_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 71)
434#define SIR_HAL_DELBA_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 72)
435#define SIR_HAL_DEL_BA_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 73)
Jeff Johnson295189b2012-06-20 16:38:30 -0700436
437//message from sme to initiate delete block ack session.
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800438#define SIR_HAL_DELBA_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 74)
439#define SIR_HAL_IBSS_STA_ADD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 75)
440#define SIR_HAL_TIMER_ADJUST_ADAPTIVE_THRESHOLD_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 76)
441#define SIR_HAL_SET_LINK_STATE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 77)
442#define SIR_HAL_ENTER_IMPS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 78)
443#define SIR_HAL_ENTER_IMPS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 79)
444#define SIR_HAL_EXIT_IMPS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 80)
445#define SIR_HAL_EXIT_IMPS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 81)
446#define SIR_HAL_SOFTMAC_HOSTMESG_PS_STATUS_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 82)
447#define SIR_HAL_POSTPONE_ENTER_IMPS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 83)
448#define SIR_HAL_STA_STAT_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 84)
449#define SIR_HAL_GLOBAL_STAT_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 85)
450#define SIR_HAL_AGGR_STAT_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 86)
451#define SIR_HAL_STA_STAT_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 87)
452#define SIR_HAL_GLOBAL_STAT_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 88)
453#define SIR_HAL_AGGR_STAT_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 89)
454#define SIR_HAL_STAT_SUMM_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 90)
455#define SIR_HAL_STAT_SUMM_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 92)
456#define SIR_HAL_REMOVE_BSSKEY_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 93)
457#define SIR_HAL_REMOVE_BSSKEY_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 94)
458#define SIR_HAL_REMOVE_STAKEY_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 95)
459#define SIR_HAL_REMOVE_STAKEY_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 96)
460#define SIR_HAL_SET_STA_BCASTKEY_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 97)
461#define SIR_HAL_SET_STA_BCASTKEY_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 98)
462#define SIR_HAL_REMOVE_STA_BCASTKEY_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 99)
463#define SIR_HAL_REMOVE_STA_BCASTKEY_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 100)
464#define SIR_HAL_ADD_TS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 101)
465#define SIR_HAL_DPU_MIC_ERROR (SIR_HAL_ITC_MSG_TYPES_BEGIN + 102)
466#define SIR_HAL_TIMER_BA_ACTIVITY_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 103)
467#define SIR_HAL_TIMER_CHIP_MONITOR_TIMEOUT (SIR_HAL_ITC_MSG_TYPES_BEGIN + 104)
468#define SIR_HAL_TIMER_TRAFFIC_ACTIVITY_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 105)
469#define SIR_HAL_TIMER_ADC_RSSI_STATS (SIR_HAL_ITC_MSG_TYPES_BEGIN + 106)
470#define SIR_HAL_MIC_FAILURE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 107)
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800471#define SIR_HAL_UPDATE_UAPSD_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 108)
Jeff Johnson3c3e1782013-02-27 10:48:42 -0800472#define SIR_HAL_SET_MIMOPS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 109)
473#define SIR_HAL_SET_MIMOPS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 110)
474#define SIR_HAL_SYS_READY_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 111)
475#define SIR_HAL_SET_TX_POWER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 112)
476#define SIR_HAL_SET_TX_POWER_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 113)
477#define SIR_HAL_GET_TX_POWER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 114)
478#define SIR_HAL_GET_TX_POWER_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 115)
479#define SIR_HAL_GET_NOISE_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 116)
480#define SIR_HAL_GET_NOISE_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 117)
Jeff Johnson295189b2012-06-20 16:38:30 -0700481
482/* Messages to support transmit_halt and transmit_resume */
Jeff Johnson3c3e1782013-02-27 10:48:42 -0800483#define SIR_HAL_TRANSMISSION_CONTROL_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 118)
Jeff Johnson295189b2012-06-20 16:38:30 -0700484/* Indication from LIM to HAL to Initialize radar interrupt */
Jeff Johnson3c3e1782013-02-27 10:48:42 -0800485#define SIR_HAL_INIT_RADAR_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 119)
Jeff Johnson295189b2012-06-20 16:38:30 -0700486
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800487#define SIR_HAL_BEACON_PRE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 120)
488#define SIR_HAL_ENTER_UAPSD_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 121)
489#define SIR_HAL_ENTER_UAPSD_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 122)
490#define SIR_HAL_EXIT_UAPSD_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 123)
491#define SIR_HAL_EXIT_UAPSD_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 124)
492#define SIR_HAL_LOW_RSSI_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 125)
493#define SIR_HAL_BEACON_FILTER_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 126)
Jeff Johnson295189b2012-06-20 16:38:30 -0700494/// PE <-> HAL WOWL messages
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800495#define SIR_HAL_WOWL_ADD_BCAST_PTRN (SIR_HAL_ITC_MSG_TYPES_BEGIN + 127)
496#define SIR_HAL_WOWL_DEL_BCAST_PTRN (SIR_HAL_ITC_MSG_TYPES_BEGIN + 128)
497#define SIR_HAL_WOWL_ENTER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 129)
498#define SIR_HAL_WOWL_ENTER_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 130)
499#define SIR_HAL_WOWL_EXIT_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 131)
500#define SIR_HAL_WOWL_EXIT_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 132)
501#define SIR_HAL_TX_COMPLETE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 133)
502#define SIR_HAL_TIMER_RA_COLLECT_AND_ADAPT (SIR_HAL_ITC_MSG_TYPES_BEGIN + 134)
Jeff Johnson295189b2012-06-20 16:38:30 -0700503/// PE <-> HAL statistics messages
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800504#define SIR_HAL_GET_STATISTICS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 135)
505#define SIR_HAL_GET_STATISTICS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 136)
506#define SIR_HAL_SET_KEY_DONE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 137)
Jeff Johnson295189b2012-06-20 16:38:30 -0700507
508/// PE <-> HAL BTC messages
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800509#define SIR_HAL_BTC_SET_CFG (SIR_HAL_ITC_MSG_TYPES_BEGIN + 138)
510#define SIR_HAL_SIGNAL_BT_EVENT (SIR_HAL_ITC_MSG_TYPES_BEGIN + 139)
511#define SIR_HAL_HANDLE_FW_MBOX_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 140)
512#define SIR_HAL_UPDATE_PROBE_RSP_TEMPLATE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 141)
Jeff Johnson295189b2012-06-20 16:38:30 -0700513
Jeff Johnson295189b2012-06-20 16:38:30 -0700514/* PE <-> HAL addr2 mismatch message */
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800515#define SIR_LIM_ADDR2_MISS_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 142)
Jeff Johnsone7245742012-09-05 17:12:55 -0700516#ifdef FEATURE_OEM_DATA_SUPPORT
517/* PE <-> HAL OEM_DATA RELATED MESSAGES */
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800518#define SIR_HAL_START_OEM_DATA_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 143)
519#define SIR_HAL_START_OEM_DATA_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 144)
520#define SIR_HAL_FINISH_OEM_DATA_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 145)
Jeff Johnsone7245742012-09-05 17:12:55 -0700521#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700522
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800523#define SIR_HAL_SET_MAX_TX_POWER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 146)
524#define SIR_HAL_SET_MAX_TX_POWER_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 147)
Jeff Johnson295189b2012-06-20 16:38:30 -0700525
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800526#define SIR_HAL_SEND_MSG_COMPLETE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 148)
Jeff Johnson295189b2012-06-20 16:38:30 -0700527
528/// PE <-> HAL Host Offload message
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800529#define SIR_HAL_SET_HOST_OFFLOAD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 149)
Jeff Johnson295189b2012-06-20 16:38:30 -0700530
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800531#define SIR_HAL_ADD_STA_SELF_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 150)
532#define SIR_HAL_ADD_STA_SELF_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 151)
533#define SIR_HAL_DEL_STA_SELF_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 152)
534#define SIR_HAL_DEL_STA_SELF_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 153)
535#define SIR_HAL_SIGNAL_BTAMP_EVENT (SIR_HAL_ITC_MSG_TYPES_BEGIN + 154)
Jeff Johnson295189b2012-06-20 16:38:30 -0700536
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800537#define SIR_HAL_CFG_RXP_FILTER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 155)
538#define SIR_HAL_CFG_RXP_FILTER_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 156)
Jeff Johnson295189b2012-06-20 16:38:30 -0700539
540#ifdef WLAN_FEATURE_VOWIFI_11R
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800541#define SIR_HAL_AGGR_ADD_TS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 157)
542#define SIR_HAL_AGGR_ADD_TS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 158)
543#define SIR_HAL_AGGR_QOS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 159)
544#define SIR_HAL_AGGR_QOS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 160)
Jeff Johnson295189b2012-06-20 16:38:30 -0700545#endif /* WLAN_FEATURE_VOWIFI_11R */
546
Jeff Johnson295189b2012-06-20 16:38:30 -0700547/* P2P <-> HAL P2P msg */
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800548#define SIR_HAL_SET_P2P_GO_NOA_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 161)
549#define SIR_HAL_P2P_NOA_ATTR_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 162)
Viral Modid86bde22012-12-10 13:09:21 -0800550#define SIR_HAL_P2P_NOA_START_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 163)
Jeff Johnson295189b2012-06-20 16:38:30 -0700551
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800552#define SIR_HAL_SET_LINK_STATE_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 165)
Jeff Johnson295189b2012-06-20 16:38:30 -0700553
554
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800555#define SIR_HAL_WLAN_SUSPEND_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 166)
556#define SIR_HAL_WLAN_RESUME_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 167)
Jeff Johnson295189b2012-06-20 16:38:30 -0700557
558/// PE <-> HAL Keep Alive message
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800559#define SIR_HAL_SET_KEEP_ALIVE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 168)
Jeff Johnson295189b2012-06-20 16:38:30 -0700560
561#ifdef WLAN_NS_OFFLOAD
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800562#define SIR_HAL_SET_NS_OFFLOAD (SIR_HAL_ITC_MSG_TYPES_BEGIN + 169)
Jeff Johnson295189b2012-06-20 16:38:30 -0700563#endif //WLAN_NS_OFFLOAD
564
565#ifdef FEATURE_WLAN_SCAN_PNO
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800566#define SIR_HAL_SET_PNO_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 170)
567#define SIR_HAL_SET_PNO_CHANGED_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 171)
568#define SIR_HAL_UPDATE_SCAN_PARAMS (SIR_HAL_ITC_MSG_TYPES_BEGIN + 172)
569#define SIR_HAL_SET_RSSI_FILTER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 173)
Jeff Johnson295189b2012-06-20 16:38:30 -0700570#endif // FEATURE_WLAN_SCAN_PNO
571
572
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800573#define SIR_HAL_SET_TX_PER_TRACKING_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 174)
Jeff Johnson295189b2012-06-20 16:38:30 -0700574
575#ifdef WLAN_FEATURE_PACKET_FILTERING
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800576#define SIR_HAL_8023_MULTICAST_LIST_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 175)
577#define SIR_HAL_RECEIVE_FILTER_SET_FILTER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 176)
578#define SIR_HAL_PACKET_COALESCING_FILTER_MATCH_COUNT_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 177)
579#define SIR_HAL_PACKET_COALESCING_FILTER_MATCH_COUNT_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 178)
580#define SIR_HAL_RECEIVE_FILTER_CLEAR_FILTER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 179)
Jeff Johnson295189b2012-06-20 16:38:30 -0700581#endif // WLAN_FEATURE_PACKET_FILTERING
582
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800583#define SIR_HAL_SET_POWER_PARAMS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 180)
Jeff Johnson295189b2012-06-20 16:38:30 -0700584
585#ifdef WLAN_FEATURE_GTK_OFFLOAD
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800586#define SIR_HAL_GTK_OFFLOAD_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 181)
587#define SIR_HAL_GTK_OFFLOAD_GETINFO_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 182)
588#define SIR_HAL_GTK_OFFLOAD_GETINFO_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 183)
Jeff Johnson295189b2012-06-20 16:38:30 -0700589#endif //WLAN_FEATURE_GTK_OFFLOAD
590
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800591#ifdef FEATURE_WLAN_ESE
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800592#define SIR_HAL_TSM_STATS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 184)
593#define SIR_HAL_TSM_STATS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 185)
Jeff Johnson295189b2012-06-20 16:38:30 -0700594#endif
595
596
597#ifdef WLAN_WAKEUP_EVENTS
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800598#define SIR_HAL_WAKE_REASON_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 186)
Jeff Johnson295189b2012-06-20 16:38:30 -0700599#endif //WLAN_WAKEUP_EVENTS
600
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800601#define SIR_HAL_SET_TM_LEVEL_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 187)
Jeff Johnson295189b2012-06-20 16:38:30 -0700602
Mohit Khanna4a70d262012-09-11 16:30:12 -0700603#ifdef WLAN_FEATURE_11AC
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800604#define SIR_HAL_UPDATE_OP_MODE (SIR_HAL_ITC_MSG_TYPES_BEGIN + 188)
Mohit Khanna4a70d262012-09-11 16:30:12 -0700605#endif
606
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800607#ifdef FEATURE_WLAN_TDLS
608/// PE <-> HAL TDLS messages
609#define SIR_HAL_TDLS_LINK_ESTABLISH (SIR_HAL_ITC_MSG_TYPES_BEGIN + 189)
610#define SIR_HAL_TDLS_LINK_TEARDOWN (SIR_HAL_ITC_MSG_TYPES_BEGIN + 190)
611#endif
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700612#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Varun Reddy Yeturu920df212013-05-22 08:07:23 -0700613#define SIR_HAL_ROAM_SCAN_OFFLOAD_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 191)
Varun Reddy Yeturucc661d22013-05-20 11:47:10 -0700614#define SIR_HAL_ROAM_SCAN_OFFLOAD_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 192)
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700615#endif
Srinivas Girigowdad34cedb2013-01-25 13:33:11 -0800616#define SIR_HAL_GET_ROAM_RSSI_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 193)
617#define SIR_HAL_GET_ROAM_RSSI_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 194)
618
Madan Mohan Koyyalamudi01cba042013-01-10 21:56:05 -0800619#define SIR_HAL_TRAFFIC_STATS_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 195)
620
Chet Lanctot186b5732013-03-18 10:26:30 -0700621#ifdef WLAN_FEATURE_11W
622#define SIR_HAL_EXCLUDE_UNENCRYPTED_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 196)
623#endif
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +0530624#ifdef FEATURE_WLAN_TDLS
625/// PE <-> HAL TDLS messages
626#define SIR_HAL_TDLS_LINK_ESTABLISH_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 197)
627#define SIR_HAL_TDLS_LINK_ESTABLISH_REQ_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 198)
628#define SIR_HAL_TDLS_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 199)
629#endif
Chet Lanctot186b5732013-03-18 10:26:30 -0700630
Ganesh Kondabattinif0fa07c2013-06-11 17:47:49 +0530631#define SIR_HAL_UPDATE_CHAN_LIST_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 200)
632#define SIR_HAL_STOP_SCAN_OFFLOAD_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 201)
633#define SIR_HAL_STOP_SCAN_OFFLOAD_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 202)
634#define SIR_HAL_RX_SCAN_EVENT (SIR_HAL_ITC_MSG_TYPES_BEGIN + 203)
Sundaresan Ramachandran76e48e82013-07-15 13:07:17 +0530635#define SIR_HAL_DHCP_START_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 204)
636#define SIR_HAL_DHCP_STOP_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 205)
Ravi Joshid2ca7c42013-07-23 08:37:49 -0700637#define SIR_HAL_IBSS_PEER_INACTIVITY_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 206)
Ganesh Kondabattinif0fa07c2013-06-11 17:47:49 +0530638
Abhishek Singh00b71972016-01-07 10:51:04 +0530639#define SIR_HAL_LPHB_CONF_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 207)
640#define SIR_HAL_LPHB_WAIT_EXPIRE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 208)
Leo Chang9056f462013-08-01 19:21:11 -0700641
Abhishek Singh00b71972016-01-07 10:51:04 +0530642#define SIR_HAL_ADD_PERIODIC_TX_PTRN_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 209)
643#define SIR_HAL_DEL_PERIODIC_TX_PTRN_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 210)
Yue Mab9c86f42013-08-14 15:59:08 -0700644
Abhishek Singh00b71972016-01-07 10:51:04 +0530645#ifdef WLAN_FEATURE_RMC
646#define SIR_HAL_RMC_BECOME_RULER (SIR_HAL_ITC_MSG_TYPES_BEGIN + 211)
647#define SIR_HAL_RMC_RULER_SELECT_RESP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 212)
648#define SIR_HAL_RMC_RULER_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 213)
649#define SIR_HAL_RMC_UPDATE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 214)
650
651/* For IBSS peer info related messages */
652#define SIR_HAL_IBSS_PEER_INFO_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 215)
653#define SIR_HAL_IBSS_PEER_INFO_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 216)
654#endif /* WLAN_FEATURE_RMC */
Rajeev79dbe4c2013-10-05 11:03:42 +0530655
Chittajit Mitraf5413a42013-10-18 14:20:08 -0700656#define SIR_HAL_RATE_UPDATE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 217)
Rajeev79dbe4c2013-10-05 11:03:42 +0530657
Abhishek Singh00b71972016-01-07 10:51:04 +0530658#ifdef FEATURE_WLAN_BATCH_SCAN
659#define SIR_HAL_SET_BATCH_SCAN_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 218)
660#define SIR_HAL_SET_BATCH_SCAN_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 219)
661#define SIR_HAL_STOP_BATCH_SCAN_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 220)
662#define SIR_HAL_TRIGGER_BATCH_SCAN_RESULT_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 221)
663#endif
Arif Hussaina5ebce02013-08-09 15:09:58 -0700664
Abhishek Singh00b71972016-01-07 10:51:04 +0530665#define SIR_HAL_START_SCAN_OFFLOAD_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 223)
666#define SIR_HAL_START_SCAN_OFFLOAD_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 224)
667#define SIR_HAL_UPDATE_CHAN_LIST_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 225)
668
669#ifdef WLAN_FEATURE_RMC
670#define SIR_HAL_TX_FAIL_MONITOR_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 226)
671#endif /* WLAN_FEATURE_RMC */
Sandeep Puligilla11d49a62014-01-30 12:05:16 +0530672
673/* OBSS Scan start Indication to FW*/
674#define SIR_HAL_HT40_OBSS_SCAN_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN +227)
675/* OBSS Scan stop Indication to FW*/
676#define SIR_HAL_HT40_OBSS_STOP_SCAN_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN +228)
677
Abhishek Singh00b71972016-01-07 10:51:04 +0530678#define SIR_HAL_SET_MAX_TX_POWER_PER_BAND_REQ \
679 (SIR_HAL_ITC_MSG_TYPES_BEGIN + 229)
680#define SIR_HAL_SET_MAX_TX_POWER_PER_BAND_RSP \
681 (SIR_HAL_ITC_MSG_TYPES_BEGIN + 230)
682
683#define SIR_HAL_BCN_MISS_RATE_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 231)
c_hpothu92367912014-05-01 15:18:17 +0530684
Sunil Duttbd736ed2014-05-26 21:19:41 +0530685#ifdef WLAN_FEATURE_LINK_LAYER_STATS
686#define SIR_HAL_LL_STATS_CLEAR_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 232)
687#define SIR_HAL_LL_STATS_SET_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 233)
688#define SIR_HAL_LL_STATS_GET_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 234)
689#define SIR_HAL_LL_STATS_RESULTS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 235)
690#endif
691
Dino Mycle2c198072014-06-10 10:15:52 +0530692#ifdef WLAN_FEATURE_EXTSCAN
693#define SIR_HAL_EXTSCAN_GET_CAPABILITIES_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 236)
694#define SIR_HAL_EXTSCAN_GET_CAPABILITIES_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 237)
695#define SIR_HAL_EXTSCAN_START_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 238)
696#define SIR_HAL_EXTSCAN_START_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 239)
697#define SIR_HAL_EXTSCAN_STOP_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 240)
698#define SIR_HAL_EXTSCAN_STOP_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 241)
699#define SIR_HAL_EXTSCAN_SET_BSS_HOTLIST_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 242)
700#define SIR_HAL_EXTSCAN_SET_BSS_HOTLIST_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 243)
701#define SIR_HAL_EXTSCAN_RESET_BSS_HOTLIST_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 244)
702#define SIR_HAL_EXTSCAN_RESET_BSS_HOTLIST_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 245)
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +0530703#define SIR_HAL_EXTSCAN_SET_SSID_HOTLIST_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 246)
704#define SIR_HAL_EXTSCAN_SET_SSID_HOTLIST_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 247)
705#define SIR_HAL_EXTSCAN_RESET_SSID_HOTLIST_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 248)
706#define SIR_HAL_EXTSCAN_RESET_SSID_HOTLIST_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 249)
707
Dino Mycle2c198072014-06-10 10:15:52 +0530708#define SIR_HAL_EXTSCAN_GET_CACHED_RESULTS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 250)
709#define SIR_HAL_EXTSCAN_GET_CACHED_RESULTS_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 251)
710
711#define SIR_HAL_EXTSCAN_PROGRESS_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 252)
712#define SIR_HAL_EXTSCAN_SCAN_AVAILABLE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 253)
713#define SIR_HAL_EXTSCAN_SCAN_RESULT_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 254)
714#define SIR_HAL_EXTSCAN_HOTLIST_MATCH_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 255)
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +0530715#define SIR_HAL_EXTSCAN_SSID_HOTLIST_MATCH_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 256)
716
Dino Mycle2c198072014-06-10 10:15:52 +0530717#define SIR_HAL_EXTSCAN_FULL_SCAN_RESULT_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 257)
718
719#endif /* WLAN_FEATURE_EXTSCAN */
720
Atul Mittalc0f739f2014-07-31 13:47:47 +0530721#ifdef FEATURE_WLAN_TDLS
722/// PE <-> HAL TDLS messages
723// tdlsoffchan
724#define SIR_HAL_TDLS_CHAN_SWITCH_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 258)
725#define SIR_HAL_TDLS_CHAN_SWITCH_REQ_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 259)
726#endif
Siddharth Bhal6af5d4e2014-09-29 21:11:16 +0530727#define SIR_HAL_SPOOF_MAC_ADDR_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 260)
Siddharth Bhal4f3187c2014-10-09 21:38:08 +0530728#define SIR_HAL_SPOOF_MAC_ADDR_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 261)
Atul Mittalc0f739f2014-07-31 13:47:47 +0530729
Abhishek Singh3ae443b2014-10-08 11:49:27 +0530730#define SIR_HAL_FW_STATS_GET_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 262)
Srinivas Dasari4dae48f2014-11-26 21:14:16 +0530731
732#define SIR_HAL_ENCRYPT_MSG_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 263)
733#define SIR_HAL_ENCRYPT_MSG_RSP (SIR_HAL_ITC_MSG_TYPES_BEGIN + 264)
734
Siddharth Bhalb7c421c2015-02-27 00:26:09 +0530735#define SIR_HAL_MGMT_LOGGING_INIT_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 265)
Siddharth Bhal64246172015-02-27 01:04:37 +0530736#define SIR_HAL_GET_FRAME_LOG_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 266)
Siddharth Bhalb7c421c2015-02-27 00:26:09 +0530737
Srinivas Dasari030bad32015-02-18 23:23:54 +0530738#define SIR_HAL_NAN_REQUEST (SIR_HAL_ITC_MSG_TYPES_BEGIN + 267)
739
Abhishek Singh41988ba2015-05-25 19:42:29 +0530740#define SIR_HAL_SET_RTS_CTS_HTVHT (SIR_HAL_ITC_MSG_TYPES_BEGIN + 268)
Katya Nigamf0511f62015-05-05 16:40:57 +0530741#define SIR_HAL_MON_START_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 269)
742#define SIR_HAL_MON_STOP_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 270)
Sachin Ahuja715aafc2015-07-21 23:35:10 +0530743#define SIR_HAL_FATAL_EVENT_LOGS_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 271)
Abhishek Singh00b71972016-01-07 10:51:04 +0530744#define SIR_HAL_SEND_LOG_DONE_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 272)
745#define SIR_HAL_LOST_LINK_PARAMS_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 273)
746#define SIR_HAL_SEND_FREQ_RANGE_CONTROL_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 274)
747#define SIR_HAL_FW_MEM_DUMP_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 275)
748#define SIR_HAL_RSSI_MON_START_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 276)
749#define SIR_HAL_RSSI_MON_STOP_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 277)
750#define SIR_HAL_HIGH_PRIORITY_DATA_INFO_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 278)
751#define SIR_HAL_WIFI_CONFIG_PARAMS (SIR_HAL_ITC_MSG_TYPES_BEGIN + 279)
752#define SIR_HAL_START_OEM_DATA_REQ_IND_NEW (SIR_HAL_ITC_MSG_TYPES_BEGIN + 280)
753#define SIR_HAL_START_OEM_DATA_RSP_IND_NEW (SIR_HAL_ITC_MSG_TYPES_BEGIN + 281)
754#define SIR_HAL_ANTENNA_DIVERSITY_SELECTION_REQ (SIR_HAL_ITC_MSG_TYPES_BEGIN + 282)
755#define SIR_HAL_MODIFY_ROAM_PARAMS_IND (SIR_HAL_ITC_MSG_TYPES_BEGIN + 283)
Leela Venkata Kiran Kumar Reddy Chirala45f184c2014-02-14 15:08:21 -0800756#define SIR_HAL_MSG_TYPES_END (SIR_HAL_MSG_TYPES_BEGIN + 0x1FF)
c_manjeecfd1efb2015-09-25 19:32:34 +0530757
Jeff Johnson295189b2012-06-20 16:38:30 -0700758// CFG message types
759#define SIR_CFG_MSG_TYPES_BEGIN (SIR_CFG_MODULE_ID << 8)
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800760#define SIR_CFG_ITC_MSG_TYPES_BEGIN (SIR_CFG_MSG_TYPES_BEGIN+0xB0)
761#define SIR_CFG_PARAM_UPDATE_IND (SIR_CFG_ITC_MSG_TYPES_BEGIN)
762#define SIR_CFG_DOWNLOAD_COMPLETE_IND (SIR_CFG_ITC_MSG_TYPES_BEGIN + 1)
763#define SIR_CFG_MSG_TYPES_END (SIR_CFG_MSG_TYPES_BEGIN+0xFF)
Jeff Johnson295189b2012-06-20 16:38:30 -0700764
765// LIM message types
766#define SIR_LIM_MSG_TYPES_BEGIN (SIR_LIM_MODULE_ID << 8)
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800767#define SIR_LIM_ITC_MSG_TYPES_BEGIN (SIR_LIM_MSG_TYPES_BEGIN+0xB0)
Jeff Johnsone7245742012-09-05 17:12:55 -0700768
Jeff Johnson295189b2012-06-20 16:38:30 -0700769// Messages to/from HAL
Jeff Johnsone7245742012-09-05 17:12:55 -0700770// Removed as part of moving HAL down to FW
771
Jeff Johnson295189b2012-06-20 16:38:30 -0700772// Message from ISR upon TFP retry interrupt
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800773#define SIR_LIM_RETRY_INTERRUPT_MSG (SIR_LIM_ITC_MSG_TYPES_BEGIN + 3)
Jeff Johnson295189b2012-06-20 16:38:30 -0700774// Message from BB Transport
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800775#define SIR_BB_XPORT_MGMT_MSG (SIR_LIM_ITC_MSG_TYPES_BEGIN + 4)
Jeff Johnson295189b2012-06-20 16:38:30 -0700776// UNUSED SIR_LIM_ITC_MSG_TYPES_BEGIN + 6
777// Message from ISR upon SP's Invalid session key interrupt
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800778#define SIR_LIM_INV_KEY_INTERRUPT_MSG (SIR_LIM_ITC_MSG_TYPES_BEGIN + 7)
Jeff Johnson295189b2012-06-20 16:38:30 -0700779// Message from ISR upon SP's Invalid key ID interrupt
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800780#define SIR_LIM_KEY_ID_INTERRUPT_MSG (SIR_LIM_ITC_MSG_TYPES_BEGIN + 8)
Jeff Johnson295189b2012-06-20 16:38:30 -0700781// Message from ISR upon SP's Replay threshold reached interrupt
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800782#define SIR_LIM_REPLAY_THRES_INTERRUPT_MSG (SIR_LIM_ITC_MSG_TYPES_BEGIN + 9)
Jeff Johnson295189b2012-06-20 16:38:30 -0700783// Message from HDD after the TD dummy packet is cleaned up
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800784#define SIR_LIM_TD_DUMMY_CALLBACK_MSG (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0xA)
Jeff Johnson295189b2012-06-20 16:38:30 -0700785// Message from SCH when the STA is ready to be deleted
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800786#define SIR_LIM_SCH_CLEAN_MSG (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0xB)
Jeff Johnson295189b2012-06-20 16:38:30 -0700787// Message from ISR upon Radar Detection
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800788#define SIR_LIM_RADAR_DETECT_IND (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0xC)
Jeff Johnson295189b2012-06-20 16:38:30 -0700789
790/////////////////////////////////////
791// message id Available
792////////////////////////////////////
793
794
795// Message from Hal to send out a DEL-TS indication
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800796#define SIR_LIM_DEL_TS_IND (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0xE)
Jeff Johnson295189b2012-06-20 16:38:30 -0700797//Message from HAL to send BA global timer timeout
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800798#define SIR_LIM_ADD_BA_IND (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0xF)
Jeff Johnson295189b2012-06-20 16:38:30 -0700799//Indication from HAL to delete all the BA sessions when the BA activity check timer is disabled
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800800#define SIR_LIM_DEL_BA_ALL_IND (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0x10)
Jeff Johnson295189b2012-06-20 16:38:30 -0700801//Indication from HAL to delete Station context
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800802#define SIR_LIM_DELETE_STA_CONTEXT_IND (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0x11)
Jeff Johnson295189b2012-06-20 16:38:30 -0700803//Indication from HAL to delete BA
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800804#define SIR_LIM_DEL_BA_IND (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0x12)
805#define SIR_LIM_UPDATE_BEACON (SIR_LIM_ITC_MSG_TYPES_BEGIN + 0x13)
Jeff Johnson295189b2012-06-20 16:38:30 -0700806
807
808// LIM Timeout messages
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800809#define SIR_LIM_TIMEOUT_MSG_START ((SIR_LIM_MODULE_ID << 8) + 0xD0)
Jeff Johnson295189b2012-06-20 16:38:30 -0700810#define SIR_LIM_MIN_CHANNEL_TIMEOUT SIR_LIM_TIMEOUT_MSG_START
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800811#define SIR_LIM_MAX_CHANNEL_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 1)
812#define SIR_LIM_JOIN_FAIL_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 2)
813#define SIR_LIM_AUTH_FAIL_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 3)
814#define SIR_LIM_AUTH_RSP_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 4)
815#define SIR_LIM_ASSOC_FAIL_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 5)
816#define SIR_LIM_REASSOC_FAIL_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 6)
817#define SIR_LIM_HEART_BEAT_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 7)
Jeff Johnson295189b2012-06-20 16:38:30 -0700818// currently unused SIR_LIM_TIMEOUT_MSG_START + 0x8
Jeff Johnson295189b2012-06-20 16:38:30 -0700819// Link Monitoring Messages
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800820#define SIR_LIM_CHANNEL_SCAN_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0xA)
821#define SIR_LIM_PROBE_HB_FAILURE_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0xB)
822#define SIR_LIM_ADDTS_RSP_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0xC)
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800823#define SIR_LIM_LINK_TEST_DURATION_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x13)
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800824#define SIR_LIM_CNF_WAIT_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x17)
825#define SIR_LIM_KEEPALIVE_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x18)
826#define SIR_LIM_UPDATE_OLBC_CACHEL_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x19)
827#define SIR_LIM_CHANNEL_SWITCH_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x1A)
828#define SIR_LIM_QUIET_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x1B)
829#define SIR_LIM_QUIET_BSS_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x1C)
Jeff Johnson295189b2012-06-20 16:38:30 -0700830
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800831#define SIR_LIM_WPS_OVERLAP_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x1D)
Jeff Johnson295189b2012-06-20 16:38:30 -0700832#ifdef WLAN_FEATURE_VOWIFI_11R
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800833#define SIR_LIM_FT_PREAUTH_RSP_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x1E)
Jeff Johnson295189b2012-06-20 16:38:30 -0700834#endif
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800835#define SIR_LIM_REMAIN_CHN_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x1F)
Viral Modid86bde22012-12-10 13:09:21 -0800836#define SIR_LIM_INSERT_SINGLESHOT_NOA_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x20)
Jeff Johnson295189b2012-06-20 16:38:30 -0700837
838#ifdef WMM_APSD
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800839#define SIR_LIM_WMM_APSD_SP_START_MSG_TYPE (SIR_LIM_TIMEOUT_MSG_START + 0x21)
840#define SIR_LIM_WMM_APSD_SP_END_MSG_TYPE (SIR_LIM_TIMEOUT_MSG_START + 0x22)
Jeff Johnson295189b2012-06-20 16:38:30 -0700841#endif
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800842#define SIR_LIM_BEACON_GEN_IND (SIR_LIM_TIMEOUT_MSG_START + 0x23)
843#define SIR_LIM_PERIODIC_PROBE_REQ_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x24)
Srinivas Girigowda5cecb202013-10-08 09:13:25 -0700844
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800845#define SIR_LIM_ESE_TSM_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x25)
Jeff Johnson295189b2012-06-20 16:38:30 -0700846
Madan Mohan Koyyalamudi521ff192012-11-15 17:13:08 -0800847#define SIR_LIM_DISASSOC_ACK_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x26)
848#define SIR_LIM_DEAUTH_ACK_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x27)
Madan Mohan Koyyalamudi9aff9ff2012-11-29 11:27:25 -0800849#define SIR_LIM_PERIODIC_JOIN_PROBE_REQ_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x28)
Mohit Khanna698ba2a2012-12-04 15:08:18 -0800850
Gopichand Nakkalad492d202013-05-10 02:50:47 +0530851#define SIR_LIM_CONVERT_ACTIVE_CHANNEL_TO_PASSIVE (SIR_LIM_TIMEOUT_MSG_START + 0x2C)
Sushant Kaushik9e923872015-04-02 17:09:31 +0530852#define SIR_LIM_AUTH_RETRY_TIMEOUT (SIR_LIM_TIMEOUT_MSG_START + 0x2D)
853
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800854#define SIR_LIM_MSG_TYPES_END (SIR_LIM_MSG_TYPES_BEGIN+0xFF)
Jeff Johnson295189b2012-06-20 16:38:30 -0700855
856// SCH message types
857#define SIR_SCH_MSG_TYPES_BEGIN (SIR_SCH_MODULE_ID << 8)
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800858#define SIR_SCH_CHANNEL_SWITCH_REQUEST (SIR_SCH_MSG_TYPES_BEGIN)
859#define SIR_SCH_START_SCAN_REQ (SIR_SCH_MSG_TYPES_BEGIN + 1)
860#define SIR_SCH_START_SCAN_RSP (SIR_SCH_MSG_TYPES_BEGIN + 2)
861#define SIR_SCH_END_SCAN_NTF (SIR_SCH_MSG_TYPES_BEGIN + 3)
862#define SIR_SCH_MSG_TYPES_END (SIR_SCH_MSG_TYPES_BEGIN+0xFF)
Jeff Johnson295189b2012-06-20 16:38:30 -0700863
864// PMM message types
865#define SIR_PMM_MSG_TYPES_BEGIN (SIR_PMM_MODULE_ID << 8)
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800866#define SIR_PMM_CHANGE_PM_MODE (SIR_PMM_MSG_TYPES_BEGIN)
Jeff Johnson295189b2012-06-20 16:38:30 -0700867#define SIR_PMM_CHANGE_IMPS_MODE (SIR_PMM_MSG_TYPES_BEGIN + 1) //for Idle mode power save
868#define SIR_PMM_MSG_TYPES_END (SIR_PMM_MSG_TYPES_BEGIN+0xFF)
869
870// MNT message types
871#define SIR_MNT_MSG_TYPES_BEGIN (SIR_MNT_MODULE_ID << 8)
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800872#define SIR_MNT_RELEASE_BD (SIR_MNT_MSG_TYPES_BEGIN + 0)
873#define SIR_MNT_MSG_TYPES_END (SIR_MNT_MSG_TYPES_BEGIN + 0xFF)
Jeff Johnson295189b2012-06-20 16:38:30 -0700874
875// DVT message types
876#define SIR_DVT_MSG_TYPES_BEGIN (SIR_DVT_MODULE_ID << 8)
Madan Mohan Koyyalamudia53c4dc2012-11-13 10:35:42 -0800877#define SIR_DVT_ITC_MSG_TYPES_BEGIN (SIR_DVT_MSG_TYPES_BEGIN+0x0F)
878#define SIR_DVT_MSG_TYPES_END (SIR_DVT_ITC_MSG_TYPES_BEGIN+0xFFF)
Jeff Johnson295189b2012-06-20 16:38:30 -0700879
880
881//PTT message types
882#define SIR_PTT_MSG_TYPES_BEGIN 0x3000
883#define SIR_PTT_MSG_TYPES_END 0x3300
884
885
886/* ****************************************** *
887 * *
888 * EVENT TYPE Defintions *
889 * *
890 * ****************************************** */
891
892// MMH Events that are used in other modules to post events to MMH
893# define SIR_HAL_MMH_TXMB_READY_EVT 0x00000002
894# define SIR_HAL_MMH_RXMB_DONE_EVT 0x00000004
895# define SIR_HAL_MMH_MSGQ_NE_EVT 0x00000008
896
897# define SIR_HSTEMUL_TXMB_DONE_EVT 0x00000100
898# define SIR_HSTEMUL_RXMB_READY_EVT 0x00000200
899# define SIR_HSTEMUL_MSGQ_NE_EVT 0x00000400
900
901# define SIR_TST_XMIT_MSG_QS_EMPTY_EVT 0x00000080
902
903//added for OBSS
904
905//Param Change Bitmap sent to HAL
906#define PARAM_BCN_INTERVAL_CHANGED (1 << 0)
907#define PARAM_SHORT_PREAMBLE_CHANGED (1 << 1)
908#define PARAM_SHORT_SLOT_TIME_CHANGED (1 << 2)
909#define PARAM_llACOEXIST_CHANGED (1 << 3)
910#define PARAM_llBCOEXIST_CHANGED (1 << 4)
911#define PARAM_llGCOEXIST_CHANGED (1 << 5)
912#define PARAM_HT20MHZCOEXIST_CHANGED (1<<6)
913#define PARAM_NON_GF_DEVICES_PRESENT_CHANGED (1<<7)
914#define PARAM_RIFS_MODE_CHANGED (1<<8)
915#define PARAM_LSIG_TXOP_FULL_SUPPORT_CHANGED (1<<9)
916#define PARAM_OBSS_MODE_CHANGED (1<<10)
917#define PARAM_BEACON_UPDATE_MASK (PARAM_BCN_INTERVAL_CHANGED|PARAM_SHORT_PREAMBLE_CHANGED|PARAM_SHORT_SLOT_TIME_CHANGED|PARAM_llACOEXIST_CHANGED |PARAM_llBCOEXIST_CHANGED|\
918 PARAM_llGCOEXIST_CHANGED|PARAM_HT20MHZCOEXIST_CHANGED|PARAM_NON_GF_DEVICES_PRESENT_CHANGED|PARAM_RIFS_MODE_CHANGED|PARAM_LSIG_TXOP_FULL_SUPPORT_CHANGED| PARAM_OBSS_MODE_CHANGED)
919
920
921
922#endif