blob: fc5c67a8ea85239a6de43a55336f2076bf751a25 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Kiet Lam842dad02014-02-18 18:44:02 -08002 * Copyright (c) 2012-2014 The Linux Foundation. All rights reserved.
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 */
Jeff Johnson295189b2012-06-20 16:38:30 -070021
22/*
Kiet Lam842dad02014-02-18 18:44:02 -080023 * Copyright (c) 2012-2014 Qualcomm Atheros, Inc.
24 * All Rights Reserved.
25 * Qualcomm Atheros Confidential and Proprietary.
26 *
27 */
28
29
30/*
Jeff Johnson295189b2012-06-20 16:38:30 -070031 * This file sirApi.h contains definitions exported by
32 * Sirius software.
33 * Author: Chandra Modumudi
34 * Date: 04/16/2002
35 * History:-
36 * Date Modified by Modification Information
37 * --------------------------------------------------------------------
38 */
39
40#ifndef __SIR_API_H
41#define __SIR_API_H
42
43#include "sirTypes.h"
44#include "sirMacProtDef.h"
45#include "aniSystemDefs.h"
Jeff Johnsone7245742012-09-05 17:12:55 -070046#include "sirParams.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070047
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -080048#if defined(FEATURE_WLAN_ESE) && !defined(FEATURE_WLAN_ESE_UPLOAD)
49#include "eseGlobal.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070050#endif
51
52/// Maximum number of STAs allowed in the BSS
53#define SIR_MAX_NUM_STA 256
54
55/// Maximum number of Neighbors reported by STA for LB feature
56#define SIR_MAX_NUM_NEIGHBOR_BSS 3
57
58/// Maximum number of Neighbors reported by STA for LB feature
59#define SIR_MAX_NUM_ALTERNATE_RADIOS 5
60
61/// Maximum size of SCAN_RSP message
62#define SIR_MAX_SCAN_RSP_MSG_LENGTH 2600
63
64/// Start of Sirius software/Host driver message types
65#define SIR_HAL_HOST_MSG_START 0x1000
66
67/// Power save level definitions
68#define SIR_MAX_POWER_SAVE 3
69#define SIR_INTERMEDIATE_POWER_SAVE 4
70#define SIR_NO_POWER_SAVE 5
71
72/// Max supported channel list
73#define SIR_MAX_SUPPORTED_CHANNEL_LIST 96
74
75/// Maximum DTIM Factor
76#define SIR_MAX_DTIM_FACTOR 32
77
78#define SIR_MDIE_SIZE 3
79
Gopichand Nakkalad492d202013-05-10 02:50:47 +053080/* Max number of channels are 165, but to access 165th element of array,
81 *array of 166 is required.
82 */
83#define SIR_MAX_24G_5G_CHANNEL_RANGE 166
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -080084#define SIR_BCN_REPORT_MAX_BSS_DESC 4
Gopichand Nakkalad492d202013-05-10 02:50:47 +053085
Jeff Johnson295189b2012-06-20 16:38:30 -070086
Rajeev79dbe4c2013-10-05 11:03:42 +053087#ifdef FEATURE_WLAN_BATCH_SCAN
88#define SIR_MAX_SSID_SIZE (32)
89#endif
90
Jeff Johnson295189b2012-06-20 16:38:30 -070091
92#define SIR_NUM_11B_RATES 4 //1,2,5.5,11
93#define SIR_NUM_11A_RATES 8 //6,9,12,18,24,36,48,54
94#define SIR_NUM_POLARIS_RATES 3 //72,96,108
95#define SIR_NUM_TITAN_RATES 26
96#define SIR_NUM_TAURUS_RATES 4 //136.5, 151.7,283.5,315
97#define SIR_NUM_PROP_RATES (SIR_NUM_TITAN_RATES + SIR_NUM_TAURUS_RATES)
98
99#define SIR_11N_PROP_RATE_136_5 (1<<28)
100#define SIR_11N_PROP_RATE_151_7 (1<<29)
101#define SIR_11N_PROP_RATE_283_5 (1<<30)
102#define SIR_11N_PROP_RATE_315 (1<<31)
103#define SIR_11N_PROP_RATE_BITMAP 0x80000000 //only 315MBPS rate is supported today
104//Taurus is going to support 26 Titan Rates(no ESF/concat Rates will be supported)
105//First 26 bits are reserved for Titan and last 4 bits for Taurus, 2(27 and 28) bits are reserved.
106//#define SIR_TITAN_PROP_RATE_BITMAP 0x03FFFFFF
107//Disable all Titan rates
108#define SIR_TITAN_PROP_RATE_BITMAP 0
109#define SIR_CONVERT_2_U32_BITMAP(nRates) ((nRates + 31)/32)
110
111/* #tANI_U32's needed for a bitmap representation for all prop rates */
112#define SIR_NUM_U32_MAP_RATES SIR_CONVERT_2_U32_BITMAP(SIR_NUM_PROP_RATES)
113
114
115#define SIR_PM_SLEEP_MODE 0
116#define SIR_PM_ACTIVE_MODE 1
117
118// Used by various modules to load ALL CFG's
119#define ANI_IGNORE_CFG_ID 0xFFFF
120
121//hidden SSID options
122#define SIR_SCAN_NO_HIDDEN_SSID 0
123#define SIR_SCAN_HIDDEN_SSID_PE_DECISION 1
124#define SIR_SCAN_HIDDEN_SSID 2
125
126#define SIR_MAC_ADDR_LEN 6
127#define SIR_IPV4_ADDR_LEN 4
128
129typedef tANI_U8 tSirIpv4Addr[SIR_IPV4_ADDR_LEN];
130
131#define SIR_VERSION_STRING_LEN 64
132typedef tANI_U8 tSirVersionString[SIR_VERSION_STRING_LEN];
133
Yue Mab9c86f42013-08-14 15:59:08 -0700134/* Periodic Tx pattern offload feature */
135#define PERIODIC_TX_PTRN_MAX_SIZE 1536
136#define MAXNUM_PERIODIC_TX_PTRNS 6
137
Jeff Johnson295189b2012-06-20 16:38:30 -0700138enum eSirHostMsgTypes
139{
140 SIR_HAL_APP_SETUP_NTF = SIR_HAL_HOST_MSG_START,
141 SIR_HAL_INITIAL_CAL_FAILED_NTF,
142 SIR_HAL_NIC_OPER_NTF,
143 SIR_HAL_INIT_START_REQ,
144 SIR_HAL_SHUTDOWN_REQ,
145 SIR_HAL_SHUTDOWN_CNF,
146 SIR_HAL_RESET_REQ,
147 SIR_HAL_RADIO_ON_OFF_IND,
148 SIR_HAL_RESET_CNF,
149 SIR_WRITE_TO_TD,
150 SIR_HAL_HDD_ADDBA_REQ, // MAC -> HDD
151 SIR_HAL_HDD_ADDBA_RSP, // HDD -> HAL
152 SIR_HAL_DELETEBA_IND, // MAC -> HDD
153 SIR_HAL_BA_FAIL_IND, // HDD -> MAC
154 SIR_TL_HAL_FLUSH_AC_REQ,
155 SIR_HAL_TL_FLUSH_AC_RSP
156};
157
158
159
160/**
161 * Module ID definitions.
162 */
163enum {
164 SIR_BOOT_MODULE_ID = 1,
165 SIR_HAL_MODULE_ID = 0x10,
Leela Venkata Kiran Kumar Reddy Chirala45f184c2014-02-14 15:08:21 -0800166 SIR_CFG_MODULE_ID = 0x12,
Jeff Johnson295189b2012-06-20 16:38:30 -0700167 SIR_LIM_MODULE_ID,
168 SIR_ARQ_MODULE_ID,
169 SIR_SCH_MODULE_ID,
170 SIR_PMM_MODULE_ID,
171 SIR_MNT_MODULE_ID,
172 SIR_DBG_MODULE_ID,
173 SIR_DPH_MODULE_ID,
174 SIR_SYS_MODULE_ID,
175 SIR_SMS_MODULE_ID,
176
177 SIR_PHY_MODULE_ID = 0x20,
178
179
180 // Add any modules above this line
181 SIR_DVT_MODULE_ID
182};
183
184#define SIR_WDA_MODULE_ID SIR_HAL_MODULE_ID
185
186/**
187 * First and last module definition for logging utility
188 *
189 * NOTE: The following definitions need to be updated if
190 * the above list is changed.
191 */
192#define SIR_FIRST_MODULE_ID SIR_HAL_MODULE_ID
193#define SIR_LAST_MODULE_ID SIR_DVT_MODULE_ID
194
195
196// Type declarations used by Firmware and Host software
197
198// Scan type enum used in scan request
199typedef enum eSirScanType
200{
201 eSIR_PASSIVE_SCAN,
202 eSIR_ACTIVE_SCAN,
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800203 eSIR_BEACON_TABLE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700204} tSirScanType;
205
Jeff Johnson295189b2012-06-20 16:38:30 -0700206typedef enum eSirResultCodes
207{
208 eSIR_SME_SUCCESS,
209
210 eSIR_EOF_SOF_EXCEPTION,
211 eSIR_BMU_EXCEPTION,
212 eSIR_LOW_PDU_EXCEPTION,
213 eSIR_USER_TRIG_RESET,
214 eSIR_LOGP_EXCEPTION,
215 eSIR_CP_EXCEPTION,
216 eSIR_STOP_BSS,
217 eSIR_AHB_HANG_EXCEPTION,
218 eSIR_DPU_EXCEPTION,
219 eSIR_RPE_EXCEPTION,
220 eSIR_TPE_EXCEPTION,
221 eSIR_DXE_EXCEPTION,
222 eSIR_RXP_EXCEPTION,
223 eSIR_MCPU_EXCEPTION,
224 eSIR_MCU_EXCEPTION,
225 eSIR_MTU_EXCEPTION,
226 eSIR_MIF_EXCEPTION,
227 eSIR_FW_EXCEPTION,
228 eSIR_PS_MUTEX_READ_EXCEPTION,
229 eSIR_PHY_HANG_EXCEPTION,
230 eSIR_MAILBOX_SANITY_CHK_FAILED,
231 eSIR_RADIO_HW_SWITCH_STATUS_IS_OFF, // Only where this switch is present
232 eSIR_CFB_FLAG_STUCK_EXCEPTION,
233
234 eSIR_SME_BASIC_RATES_NOT_SUPPORTED_STATUS=30,
235
236 eSIR_SME_INVALID_PARAMETERS=500,
237 eSIR_SME_UNEXPECTED_REQ_RESULT_CODE,
238 eSIR_SME_RESOURCES_UNAVAILABLE,
239 eSIR_SME_SCAN_FAILED, // Unable to find a BssDescription
240 // matching requested scan criteria
241 eSIR_SME_BSS_ALREADY_STARTED_OR_JOINED,
242 eSIR_SME_LOST_LINK_WITH_PEER_RESULT_CODE,
243 eSIR_SME_REFUSED,
c_hpothua9dc89c2014-03-22 19:22:31 +0530244 eSIR_SME_JOIN_DEAUTH_FROM_AP_DURING_ADD_STA,
Jeff Johnson295189b2012-06-20 16:38:30 -0700245 eSIR_SME_JOIN_TIMEOUT_RESULT_CODE,
246 eSIR_SME_AUTH_TIMEOUT_RESULT_CODE,
247 eSIR_SME_ASSOC_TIMEOUT_RESULT_CODE,
248 eSIR_SME_REASSOC_TIMEOUT_RESULT_CODE,
249 eSIR_SME_MAX_NUM_OF_PRE_AUTH_REACHED,
250 eSIR_SME_AUTH_REFUSED,
251 eSIR_SME_INVALID_WEP_DEFAULT_KEY,
252 eSIR_SME_NO_KEY_MAPPING_KEY_FOR_PEER,
253 eSIR_SME_ASSOC_REFUSED,
254 eSIR_SME_REASSOC_REFUSED,
255 eSIR_SME_DEAUTH_WHILE_JOIN, //Received Deauth while joining or pre-auhtentication.
256 eSIR_SME_DISASSOC_WHILE_JOIN, //Received Disassociation while joining.
257 eSIR_SME_DEAUTH_WHILE_REASSOC, //Received Deauth while ReAssociate.
258 eSIR_SME_DISASSOC_WHILE_REASSOC, //Received Disassociation while ReAssociate
259 eSIR_SME_STA_NOT_AUTHENTICATED,
260 eSIR_SME_STA_NOT_ASSOCIATED,
261 eSIR_SME_STA_DISASSOCIATED,
262 eSIR_SME_ALREADY_JOINED_A_BSS,
263 eSIR_ULA_COMPLETED,
264 eSIR_ULA_FAILURE,
265 eSIR_SME_LINK_ESTABLISHED,
266 eSIR_SME_UNABLE_TO_PERFORM_MEASUREMENTS,
267 eSIR_SME_UNABLE_TO_PERFORM_DFS,
268 eSIR_SME_DFS_FAILED,
269 eSIR_SME_TRANSFER_STA, // To be used when STA need to be LB'ed
270 eSIR_SME_INVALID_LINK_TEST_PARAMETERS,// Given in LINK_TEST_START_RSP
271 eSIR_SME_LINK_TEST_MAX_EXCEEDED, // Given in LINK_TEST_START_RSP
272 eSIR_SME_UNSUPPORTED_RATE, // Given in LINK_TEST_RSP if peer does
273 // support requested rate in
274 // LINK_TEST_REQ
275 eSIR_SME_LINK_TEST_TIMEOUT, // Given in LINK_TEST_IND if peer does
276 // not respond before next test packet
277 // is sent
278 eSIR_SME_LINK_TEST_COMPLETE, // Given in LINK_TEST_IND at the end
279 // of link test
280 eSIR_SME_LINK_TEST_INVALID_STATE, // Given in LINK_TEST_START_RSP
281 eSIR_SME_LINK_TEST_TERMINATE, // Given in LINK_TEST_START_RSP
282 eSIR_SME_LINK_TEST_INVALID_ADDRESS, // Given in LINK_TEST_STOP_RSP
283 eSIR_SME_POLARIS_RESET, // Given in SME_STOP_BSS_REQ
284 eSIR_SME_SETCONTEXT_FAILED, // Given in SME_SETCONTEXT_REQ when
285 // unable to plumb down keys
286 eSIR_SME_BSS_RESTART, // Given in SME_STOP_BSS_REQ
287
288 eSIR_SME_MORE_SCAN_RESULTS_FOLLOW, // Given in SME_SCAN_RSP message
289 // that more SME_SCAN_RSP
290 // messages are following.
291 // SME_SCAN_RSP message with
292 // eSIR_SME_SUCCESS status
293 // code is the last one.
294 eSIR_SME_INVALID_ASSOC_RSP_RXED, // Sent in SME_JOIN/REASSOC_RSP
295 // messages upon receiving
296 // invalid Re/Assoc Rsp frame.
297 eSIR_SME_MIC_COUNTER_MEASURES, // STOP BSS triggered by MIC failures: MAC software to disassoc all stations
298 // with MIC_FAILURE reason code and perform the stop bss operation
299 eSIR_SME_ADDTS_RSP_TIMEOUT, // didn't get response from peer within
300 // timeout interval
301 eSIR_SME_ADDTS_RSP_FAILED, // didn't get success response from HAL
302 eSIR_SME_RECEIVED,
303 // TBA - TSPEC related Result Codes
304
305 eSIR_SME_CHANNEL_SWITCH_FAIL, // failed to send out Channel Switch Action Frame
306 eSIR_SME_INVALID_STA_ROLE,
307 eSIR_SME_INVALID_STATE,
308#ifdef GEN4_SCAN
309 eSIR_SME_CHANNEL_SWITCH_DISABLED, // either 11h is disabled or channelSwitch is currently active
310 eSIR_SME_HAL_SCAN_INIT_FAILED, // SIR_HAL_SIR_HAL_INIT_SCAN_RSP returned failed status
311 eSIR_SME_HAL_SCAN_START_FAILED, // SIR_HAL_START_SCAN_RSP returned failed status
312 eSIR_SME_HAL_SCAN_END_FAILED, // SIR_HAL_END_SCAN_RSP returned failed status
313 eSIR_SME_HAL_SCAN_FINISH_FAILED, // SIR_HAL_FINISH_SCAN_RSP returned failed status
314 eSIR_SME_HAL_SEND_MESSAGE_FAIL, // Failed to send a message to HAL
315#else // GEN4_SCAN
316 eSIR_SME_CHANNEL_SWITCH_DISABLED, // either 11h is disabled or channelSwitch is currently active
317 eSIR_SME_HAL_SEND_MESSAGE_FAIL, // Failed to send a message to HAL
318#endif // GEN4_SCAN
Jeff Johnsone7245742012-09-05 17:12:55 -0700319#ifdef FEATURE_OEM_DATA_SUPPORT
320 eSIR_SME_HAL_OEM_DATA_REQ_START_FAILED,
321#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700322 eSIR_SME_STOP_BSS_FAILURE, // Failed to stop the bss
323 eSIR_SME_STA_ASSOCIATED,
324 eSIR_SME_INVALID_PMM_STATE,
325 eSIR_SME_CANNOT_ENTER_IMPS,
326 eSIR_SME_IMPS_REQ_FAILED,
327 eSIR_SME_BMPS_REQ_FAILED,
Jeff Johnson04dd8a82012-06-29 20:41:40 -0700328 eSIR_SME_BMPS_REQ_REJECT,
Jeff Johnson295189b2012-06-20 16:38:30 -0700329 eSIR_SME_UAPSD_REQ_FAILED,
330 eSIR_SME_WOWL_ENTER_REQ_FAILED,
331 eSIR_SME_WOWL_EXIT_REQ_FAILED,
332#if defined WLAN_FEATURE_VOWIFI_11R
333 eSIR_SME_FT_REASSOC_TIMEOUT_FAILURE,
334 eSIR_SME_FT_REASSOC_FAILURE,
335#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700336 eSIR_SME_SEND_ACTION_FAIL,
Jeff Johnson295189b2012-06-20 16:38:30 -0700337#ifdef WLAN_FEATURE_PACKET_FILTERING
338 eSIR_SME_PC_FILTER_MATCH_COUNT_REQ_FAILED,
339#endif // WLAN_FEATURE_PACKET_FILTERING
340
341#ifdef WLAN_FEATURE_GTK_OFFLOAD
342 eSIR_SME_GTK_OFFLOAD_GETINFO_REQ_FAILED,
343#endif // WLAN_FEATURE_GTK_OFFLOAD
Leela Venkata Kiran Kumar Reddy Chirala56df73f2014-01-30 14:18:00 -0800344 eSIR_SME_DEAUTH_STATUS,
Jeff Johnson295189b2012-06-20 16:38:30 -0700345 eSIR_DONOT_USE_RESULT_CODE = SIR_MAX_ENUM_SIZE
346} tSirResultCodes;
347
Jeff Johnson295189b2012-06-20 16:38:30 -0700348/* each station added has a rate mode which specifies the sta attributes */
349typedef enum eStaRateMode {
350 eSTA_TAURUS = 0,
351 eSTA_TITAN,
352 eSTA_POLARIS,
353 eSTA_11b,
354 eSTA_11bg,
355 eSTA_11a,
356 eSTA_11n,
Jeff Johnsone7245742012-09-05 17:12:55 -0700357#ifdef WLAN_FEATURE_11AC
358 eSTA_11ac,
359#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700360 eSTA_INVALID_RATE_MODE
361} tStaRateMode, *tpStaRateMode;
362
363//although in tSirSupportedRates each IE is 16bit but PE only passes IEs in 8 bits with MSB=1 for basic rates.
364//change the mask for bit0-7 only so HAL gets correct basic rates for setting response rates.
365#define IERATE_BASICRATE_MASK 0x80
366#define IERATE_RATE_MASK 0x7f
367#define IERATE_IS_BASICRATE(x) ((x) & IERATE_BASICRATE_MASK)
368#define ANIENHANCED_TAURUS_RATEMAP_BITOFFSET_START 28
369
Sushant Kaushike0d2cce2014-04-10 14:36:07 +0530370const char * lim_BssTypetoString(const v_U8_t bssType);
371const char * lim_ScanTypetoString(const v_U8_t scanType);
372const char * lim_BackgroundScanModetoString(const v_U8_t mode);
Jeff Johnson295189b2012-06-20 16:38:30 -0700373typedef struct sSirSupportedRates {
374 /*
375 * For Self STA Entry: this represents Self Mode.
376 * For Peer Stations, this represents the mode of the peer.
377 * On Station:
378 * --this mode is updated when PE adds the Self Entry.
379 * -- OR when PE sends 'ADD_BSS' message and station context in BSS is used to indicate the mode of the AP.
380 * ON AP:
381 * -- this mode is updated when PE sends 'ADD_BSS' and Sta entry for that BSS is used
382 * to indicate the self mode of the AP.
383 * -- OR when a station is associated, PE sends 'ADD_STA' message with this mode updated.
384 */
385
386 tStaRateMode opRateMode;
387 // 11b, 11a and aniLegacyRates are IE rates which gives rate in unit of 500Kbps
388 tANI_U16 llbRates[SIR_NUM_11B_RATES];
389 tANI_U16 llaRates[SIR_NUM_11A_RATES];
390 tANI_U16 aniLegacyRates[SIR_NUM_POLARIS_RATES];
391
392 //Taurus only supports 26 Titan Rates(no ESF/concat Rates will be supported)
393 //First 26 bits are reserved for those Titan rates and
394 //the last 4 bits(bit28-31) for Taurus, 2(bit26-27) bits are reserved.
395 tANI_U32 aniEnhancedRateBitmap; //Titan and Taurus Rates
396
397 /*
398 * 0-76 bits used, remaining reserved
399 * bits 0-15 and 32 should be set.
400 */
401 tANI_U8 supportedMCSSet[SIR_MAC_MAX_SUPPORTED_MCS_SET];
402
403 /*
404 * RX Highest Supported Data Rate defines the highest data
405 * rate that the STA is able to receive, in unites of 1Mbps.
406 * This value is derived from "Supported MCS Set field" inside
407 * the HT capability element.
408 */
409 tANI_U16 rxHighestDataRate;
410
Jeff Johnsone7245742012-09-05 17:12:55 -0700411#ifdef WLAN_FEATURE_11AC
412 /*Indicates the Maximum MCS that can be received for each number
413 of spacial streams */
414 tANI_U16 vhtRxMCSMap;
415 /*Indicate the highest VHT data rate that the STA is able to receive*/
416 tANI_U16 vhtRxHighestDataRate;
Madan Mohan Koyyalamudi1bed5982012-10-22 14:38:06 -0700417 /*Indicates the Maximum MCS that can be transmitted for each number
Jeff Johnsone7245742012-09-05 17:12:55 -0700418 of spacial streams */
419 tANI_U16 vhtTxMCSMap;
420 /*Indicate the highest VHT data rate that the STA is able to transmit*/
421 tANI_U16 vhtTxHighestDataRate;
422#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700423} tSirSupportedRates, *tpSirSupportedRates;
424
425
426typedef enum eSirRFBand
427{
428 SIR_BAND_UNKNOWN,
429 SIR_BAND_2_4_GHZ,
430 SIR_BAND_5_GHZ,
431} tSirRFBand;
432
433
434/*
435* Specifies which beacons are to be indicated upto the host driver when
436* Station is in power save mode.
437*/
438typedef enum eBeaconForwarding
439{
440 ePM_BEACON_FWD_NTH,
441 ePM_BEACON_FWD_TIM,
442 ePM_BEACON_FWD_DTIM,
443 ePM_BEACON_FWD_NONE
444} tBeaconForwarding;
445
446
Jeff Johnson295189b2012-06-20 16:38:30 -0700447typedef struct sSirRemainOnChnReq
448{
449 tANI_U16 messageType;
450 tANI_U16 length;
451 tANI_U8 sessionId;
452 tSirMacAddr selfMacAddr;
453 tANI_U8 chnNum;
454 tANI_U8 phyMode;
455 tANI_U32 duration;
Gopichand Nakkala924e4552013-05-08 19:18:14 +0530456 tANI_U8 isProbeRequestAllowed;
Jeff Johnson295189b2012-06-20 16:38:30 -0700457 tANI_U8 probeRspIe[1];
458}tSirRemainOnChnReq, *tpSirRemainOnChnReq;
459
Rashmi Ramannad3a03bf2013-12-31 18:33:24 +0530460/* Structure for vendor specific IE of debug marker frame
461 to debug remain on channel issues */
462typedef struct publicVendorSpecific
463{
464 tANI_U8 category;
465 tANI_U8 elementid;
466 tANI_U8 length;
467} publicVendorSpecific;
468
Jeff Johnson295189b2012-06-20 16:38:30 -0700469typedef struct sSirRegisterMgmtFrame
470{
471 tANI_U16 messageType;
472 tANI_U16 length;
473 tANI_U8 sessionId;
474 tANI_BOOLEAN registerFrame;
475 tANI_U16 frameType;
476 tANI_U16 matchLen;
477 tANI_U8 matchData[1];
478}tSirRegisterMgmtFrame, *tpSirRegisterMgmtFrame;
Jeff Johnson295189b2012-06-20 16:38:30 -0700479
480//
Jeff Johnson295189b2012-06-20 16:38:30 -0700481// Identifies the neighbor BSS' that was(were) detected
482// by an STA and reported to the AP
483//
484typedef struct sAniTitanCBNeighborInfo
485{
486 // A BSS was found on the Primary
487 tANI_U8 cbBssFoundPri;
488
489 // A BSS was found on the adjacent Upper Secondary
490 tANI_U8 cbBssFoundSecUp;
491
492 // A BSS was found on the adjacent Lower Secondary
493 tANI_U8 cbBssFoundSecDown;
494
495} tAniTitanCBNeighborInfo, *tpAniTitanCBNeighborInfo;
496
Jeff Johnson295189b2012-06-20 16:38:30 -0700497/// Generic type for sending a response message
498/// with result code to host software
499typedef struct sSirSmeRsp
500{
501 tANI_U16 messageType; // eWNI_SME_*_RSP
502 tANI_U16 length;
503 tANI_U8 sessionId; // To support BT-AMP
504 tANI_U16 transactionId; // To support BT-AMP
505 tSirResultCodes statusCode;
506} tSirSmeRsp, *tpSirSmeRsp;
507
508/// Definition for kick starting Firmware on STA
509typedef struct sSirSmeStartReq
510{
511 tANI_U16 messageType; // eWNI_SME_START_REQ
512 tANI_U16 length;
513 tANI_U8 sessionId; //Added for BT-AMP Support
514 tANI_U16 transcationId; //Added for BT-AMP Support
515 tSirMacAddr bssId; //Added For BT-AMP Support
516 tANI_U32 roamingAtPolaris;
Jeff Johnson295189b2012-06-20 16:38:30 -0700517 tANI_U32 sendNewBssInd;
Jeff Johnson295189b2012-06-20 16:38:30 -0700518} tSirSmeStartReq, *tpSirSmeStartReq;
519
520/// Definition for indicating all modules ready on STA
521typedef struct sSirSmeReadyReq
522{
523 tANI_U16 messageType; // eWNI_SME_SYS_READY_IND
524 tANI_U16 length;
525 tANI_U16 transactionId;
526} tSirSmeReadyReq, *tpSirSmeReadyReq;
527
528/// Definition for response message to previously issued start request
529typedef struct sSirSmeStartRsp
530{
531 tANI_U16 messageType; // eWNI_SME_START_RSP
532 tANI_U16 length;
533 tSirResultCodes statusCode;
534 tANI_U16 transactionId;
535} tSirSmeStartRsp, *tpSirSmeStartRsp;
536
Jeff Johnson295189b2012-06-20 16:38:30 -0700537
538/// Definition for Load structure
539typedef struct sSirLoad
540{
541 tANI_U16 numStas;
542 tANI_U16 channelUtilization;
543} tSirLoad, *tpSirLoad;
544
545/// BSS type enum used in while scanning/joining etc
546typedef enum eSirBssType
547{
548 eSIR_INFRASTRUCTURE_MODE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700549 eSIR_INFRA_AP_MODE, //Added for softAP support
Jeff Johnson295189b2012-06-20 16:38:30 -0700550 eSIR_IBSS_MODE,
551 eSIR_BTAMP_STA_MODE, //Added for BT-AMP support
552 eSIR_BTAMP_AP_MODE, //Added for BT-AMP support
553 eSIR_AUTO_MODE,
554 eSIR_DONOT_USE_BSS_TYPE = SIR_MAX_ENUM_SIZE
555} tSirBssType;
556
557/// Definition for WDS Information
558typedef struct sSirWdsInfo
559{
560 tANI_U16 wdsLength;
561 tANI_U8 wdsBytes[ANI_WDS_INFO_MAX_LENGTH];
562} tSirWdsInfo, *tpSirWdsInfo;
563
564/// Power Capability info used in 11H
565typedef struct sSirMacPowerCapInfo
566{
567 tANI_U8 minTxPower;
568 tANI_U8 maxTxPower;
569} tSirMacPowerCapInfo, *tpSirMacPowerCapInfo;
570
571/// Supported Channel info used in 11H
572typedef struct sSirSupChnl
573{
574 tANI_U8 numChnl;
575 tANI_U8 channelList[SIR_MAX_SUPPORTED_CHANNEL_LIST];
576} tSirSupChnl, *tpSirSupChnl;
577
578typedef enum eSirNwType
579{
580 eSIR_11A_NW_TYPE,
581 eSIR_11B_NW_TYPE,
582 eSIR_11G_NW_TYPE,
583 eSIR_11N_NW_TYPE,
Jeff Johnsone7245742012-09-05 17:12:55 -0700584#ifdef WLAN_FEATURE_11AC
585 eSIR_11AC_NW_TYPE,
586#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700587 eSIR_DONOT_USE_NW_TYPE = SIR_MAX_ENUM_SIZE
588} tSirNwType;
589
590/// Definition for new iBss peer info
591typedef struct sSirNewIbssPeerInfo
592{
593 tSirMacAddr peerAddr;
594 tANI_U16 aid;
595} tSirNewIbssPeerInfo, *tpSirNewIbssPeerInfo;
596
597/// Definition for Alternate BSS info
598typedef struct sSirAlternateRadioInfo
599{
600 tSirMacAddr bssId;
601 tANI_U8 channelId;
602} tSirAlternateRadioInfo, *tpSirAlternateRadioInfo;
603
604/// Definition for Alternate BSS list
605typedef struct sSirAlternateRadioList
606{
607 tANI_U8 numBss;
608 tSirAlternateRadioInfo alternateRadio[1];
609} tSirAlternateRadioList, *tpSirAlternateRadioList;
610
611/// Definition for kick starting BSS
612/// ---> MAC
613/**
614 * Usage of ssId, numSSID & ssIdList:
615 * ---------------------------------
616 * 1. ssId.length of zero indicates that Broadcast/Suppress SSID
617 * feature is enabled.
618 * 2. If ssId.length is zero, MAC SW will advertise NULL SSID
619 * and interpret the SSID list from numSSID & ssIdList.
620 * 3. If ssId.length is non-zero, MAC SW will advertise the SSID
621 * specified in the ssId field and it is expected that
622 * application will set numSSID to one (only one SSID present
623 * in the list) and SSID in the list is same as ssId field.
624 * 4. Application will always set numSSID >= 1.
625 */
626//*****NOTE: Please make sure all codes are updated if inserting field into this structure..**********
627typedef struct sSirSmeStartBssReq
628{
629 tANI_U16 messageType; // eWNI_SME_START_BSS_REQ
630 tANI_U16 length;
631 tANI_U8 sessionId; //Added for BT-AMP Support
632 tANI_U16 transactionId; //Added for BT-AMP Support
633 tSirMacAddr bssId; //Added for BT-AMP Support
634 tSirMacAddr selfMacAddr; //Added for BT-AMP Support
635 tANI_U16 beaconInterval; //Added for BT-AMP Support
636 tANI_U8 dot11mode;
637 tSirBssType bssType;
638 tSirMacSSid ssId;
639 tANI_U8 channelId;
Jeff Johnsone7245742012-09-05 17:12:55 -0700640 ePhyChanBondState cbMode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700641
Jeff Johnson295189b2012-06-20 16:38:30 -0700642 tANI_U8 privacy;
643 tANI_U8 apUapsdEnable;
644 tANI_U8 ssidHidden;
645 tANI_BOOLEAN fwdWPSPBCProbeReq;
646 tANI_BOOLEAN protEnabled;
647 tANI_BOOLEAN obssProtEnabled;
648 tANI_U16 ht_capab;
649 tAniAuthType authType;
650 tANI_U32 dtimPeriod;
651 tANI_U8 wps_state;
krunal sonie9002db2013-11-25 14:24:17 -0800652 tANI_U8 isCoalesingInIBSSAllowed; //Coalesing on/off knob
Jeff Johnson295189b2012-06-20 16:38:30 -0700653 tVOS_CON_MODE bssPersona;
654
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -0800655 tANI_U8 txLdpcIniFeatureEnabled;
656
Jeff Johnson295189b2012-06-20 16:38:30 -0700657 tSirRSNie rsnIE; // RSN IE to be sent in
658 // Beacon and Probe
659 // Response frames
660 tSirNwType nwType; // Indicates 11a/b/g
661 tSirMacRateSet operationalRateSet;// Has 11a or 11b rates
662 tSirMacRateSet extendedRateSet; // Has 11g rates
663
Chet Lanctot8cecea22014-02-11 19:09:36 -0800664#ifdef WLAN_FEATURE_11W
665 tANI_BOOLEAN pmfCapable;
666 tANI_BOOLEAN pmfRequired;
667#endif
668
Jeff Johnson295189b2012-06-20 16:38:30 -0700669} tSirSmeStartBssReq, *tpSirSmeStartBssReq;
670
671#define GET_IE_LEN_IN_BSS(lenInBss) ( lenInBss + sizeof(lenInBss) - \
krunal soni2a6a9062014-02-11 14:14:23 -0800672 ((uintptr_t)OFFSET_OF( tSirBssDescription, ieFields)))
Jeff Johnson295189b2012-06-20 16:38:30 -0700673
674#define WSCIE_PROBE_RSP_LEN (317 + 2)
675
676typedef struct sSirBssDescription
677{
678 //offset of the ieFields from bssId.
679 tANI_U16 length;
680 tSirMacAddr bssId;
681 v_TIME_t scanSysTimeMsec;
682 tANI_U32 timeStamp[2];
683 tANI_U16 beaconInterval;
684 tANI_U16 capabilityInfo;
685 tSirNwType nwType; // Indicates 11a/b/g
686 tANI_U8 aniIndicator;
687 tANI_S8 rssi;
688 tANI_S8 sinr;
689 //channelId what peer sent in beacon/probersp.
690 tANI_U8 channelId;
691 //channelId on which we are parked at.
692 //used only in scan case.
693 tANI_U8 channelIdSelf;
694 tANI_U8 sSirBssDescriptionRsvd[3];
Jeff Johnson295189b2012-06-20 16:38:30 -0700695 tANI_TIMESTAMP nReceivedTime; //base on a tick count. It is a time stamp, not a relative time.
696#if defined WLAN_FEATURE_VOWIFI
697 tANI_U32 parentTSF;
698 tANI_U32 startTSF[2];
699#endif
700#ifdef WLAN_FEATURE_VOWIFI_11R
701 tANI_U8 mdiePresent;
702 tANI_U8 mdie[SIR_MDIE_SIZE]; // MDIE for 11r, picked from the beacons
703#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800704#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -0700705 tANI_U16 QBSSLoad_present;
706 tANI_U16 QBSSLoad_avail;
707#endif
708 // Please keep the structure 4 bytes aligned above the ieFields
709
710 tANI_U8 fProbeRsp; //whether it is from a probe rsp
Madan Mohan Koyyalamudi2a6ba242012-10-31 17:06:19 -0700711 tANI_U8 reservedPadding1;
712 tANI_U8 reservedPadding2;
713 tANI_U8 reservedPadding3;
Jeff Johnson295189b2012-06-20 16:38:30 -0700714 tANI_U32 WscIeLen;
715 tANI_U8 WscIeProbeRsp[WSCIE_PROBE_RSP_LEN];
Madan Mohan Koyyalamudi2a6ba242012-10-31 17:06:19 -0700716 tANI_U8 reservedPadding4;
Prathyusha Kuntupalli7b8f6aa2012-12-10 13:17:35 -0800717
Jeff Johnson295189b2012-06-20 16:38:30 -0700718 tANI_U32 ieFields[1];
719} tSirBssDescription, *tpSirBssDescription;
720
721/// Definition for response message to previously
722/// issued start BSS request
723/// MAC --->
724typedef struct sSirSmeStartBssRsp
725{
726 tANI_U16 messageType; // eWNI_SME_START_BSS_RSP
727 tANI_U16 length;
728 tANI_U8 sessionId;
729 tANI_U16 transactionId;//transaction ID for cmd
730 tSirResultCodes statusCode;
731 tSirBssType bssType;//Add new type for WDS mode
732 tANI_U16 beaconInterval;//Beacon Interval for both type
733 tANI_U32 staId;//Staion ID for Self
734 tSirBssDescription bssDescription;//Peer BSS description
735} tSirSmeStartBssRsp, *tpSirSmeStartBssRsp;
736
Jeff Johnson295189b2012-06-20 16:38:30 -0700737
738typedef struct sSirChannelList
739{
740 tANI_U8 numChannels;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800741 tANI_U8 channelNumber[SIR_ESE_MAX_MEAS_IE_REQS];
Jeff Johnson295189b2012-06-20 16:38:30 -0700742} tSirChannelList, *tpSirChannelList;
743
Gopichand Nakkalad492d202013-05-10 02:50:47 +0530744typedef struct sSirDFSChannelList
745{
746 tANI_U32 timeStamp[SIR_MAX_24G_5G_CHANNEL_RANGE];
747
748} tSirDFSChannelList, *tpSirDFSChannelList;
749
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800750#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -0700751typedef struct sTspecInfo {
752 tANI_U8 valid;
753 tSirMacTspecIE tspec;
754} tTspecInfo;
755
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800756#define SIR_ESE_MAX_TSPEC_IES 4
757typedef struct sESETspecTspecInfo {
Jeff Johnson295189b2012-06-20 16:38:30 -0700758 tANI_U8 numTspecs;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800759 tTspecInfo tspec[SIR_ESE_MAX_TSPEC_IES];
760} tESETspecInfo;
Jeff Johnson295189b2012-06-20 16:38:30 -0700761#endif
762
Jeff Johnson295189b2012-06-20 16:38:30 -0700763
764/// Definition for Radar Info
765typedef struct sSirRadarInfo
766{
767 tANI_U8 channelNumber;
768 tANI_U16 radarPulseWidth; // in usecond
769 tANI_U16 numRadarPulse;
770} tSirRadarInfo, *tpSirRadarInfo;
771
772#define SIR_RADAR_INFO_SIZE (sizeof(tANI_U8) + 2 *sizeof(tANI_U16))
773
774/// Two Background Scan mode
775typedef enum eSirBackgroundScanMode
776{
777 eSIR_AGGRESSIVE_BACKGROUND_SCAN = 0,
Madan Mohan Koyyalamudi9b876782012-10-11 16:22:51 -0700778 eSIR_NORMAL_BACKGROUND_SCAN = 1,
779 eSIR_ROAMING_SCAN = 2,
Jeff Johnson295189b2012-06-20 16:38:30 -0700780} tSirBackgroundScanMode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700781typedef enum eSirLinkTrafficCheck
782{
783 eSIR_DONT_CHECK_LINK_TRAFFIC_BEFORE_SCAN = 0,
Madan Mohan Koyyalamudi9b876782012-10-11 16:22:51 -0700784 eSIR_CHECK_LINK_TRAFFIC_BEFORE_SCAN = 1,
785 eSIR_CHECK_ROAMING_SCAN = 2,
Jeff Johnson295189b2012-06-20 16:38:30 -0700786} tSirLinkTrafficCheck;
787
788#define SIR_BG_SCAN_RETURN_CACHED_RESULTS 0x0
789#define SIR_BG_SCAN_PURGE_RESUTLS 0x80
790#define SIR_BG_SCAN_RETURN_FRESH_RESULTS 0x01
791#define SIR_SCAN_MAX_NUM_SSID 0x09
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700792#define SIR_BG_SCAN_RETURN_LFR_CACHED_RESULTS 0x02
793#define SIR_BG_SCAN_PURGE_LFR_RESULTS 0x40
Jeff Johnson295189b2012-06-20 16:38:30 -0700794
795/// Definition for scan request
796typedef struct sSirSmeScanReq
797{
798 tANI_U16 messageType; // eWNI_SME_SCAN_REQ
799 tANI_U16 length;
800 tANI_U8 sessionId; // Session ID
801 tANI_U16 transactionId; // Transaction ID for cmd
802 tSirMacAddr bssId;
803 tSirMacSSid ssId[SIR_SCAN_MAX_NUM_SSID];
804 tSirMacAddr selfMacAddr; //Added For BT-AMP Support
805 tSirBssType bssType;
806 tANI_U8 dot11mode;
807 tSirScanType scanType;
808 /**
809 * minChannelTime. Not used if scanType is passive.
810 * 0x0 - Dont Use min channel timer. Only max channel timeout will used.
811 * 11k measurements set this to zero to user only single duration for scan.
812 * <valid timeout> - Timeout value used for min channel timeout.
813 */
814 tANI_U32 minChannelTime;
815 /**
816 * maxChannelTime.
817 * 0x0 - Invalid. In case of active scan.
818 * In case of passive scan, MAX( maxChannelTime, WNI_CFG_PASSIVE_MAXIMUM_CHANNEL_TIME) is used.
819 *
820 */
821 tANI_U32 maxChannelTime;
822 /**
823 * returnAfterFirstMatch can take following values:
824 * 0x00 - Return SCAN_RSP message after complete channel scan
825 * 0x01 - Return SCAN_RSP message after collecting BSS description
826 * that matches scan criteria.
827 * 0xC0 - Return after collecting first 11d IE from 2.4 GHz &
828 * 5 GHz band channels
829 * 0x80 - Return after collecting first 11d IE from 5 GHz band
830 * channels
831 * 0x40 - Return after collecting first 11d IE from 2.4 GHz
832 * band channels
833 *
834 * Values of 0xC0, 0x80 & 0x40 are to be used by
835 * Roaming/application when 11d is enabled.
836 */
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800837 tANI_U32 minChannelTimeBtc; //in units of milliseconds
838 tANI_U32 maxChannelTimeBtc; //in units of milliseconds
Jeff Johnson295189b2012-06-20 16:38:30 -0700839 tANI_U8 returnAfterFirstMatch;
840
841 /**
842 * returnUniqueResults can take following values:
843 * 0 - Collect & report all received BSS descriptions from same BSS.
844 * 1 - Collect & report unique BSS description from same BSS.
845 */
846 tANI_U8 returnUniqueResults;
847
848 /**
849 * returnFreshResults can take following values:
850 * 0x00 - Return background scan results.
851 * 0x80 - Return & purge background scan results
852 * 0x01 - Trigger fresh scan instead of returning background scan
853 * results.
854 * 0x81 - Trigger fresh scan instead of returning background scan
855 * results and purge background scan results.
856 */
857 tANI_U8 returnFreshResults;
858
859 /* backgroundScanMode can take following values:
860 * 0x0 - agressive scan
861 * 0x1 - normal scan where HAL will check for link traffic
862 * prior to proceeding with the scan
863 */
864 tSirBackgroundScanMode backgroundScanMode;
865
866 tANI_U8 hiddenSsid;
867
868 /* Number of SSIDs to scan */
869 tANI_U8 numSsid;
870
871 //channelList has to be the last member of this structure. Check tSirChannelList for the reason.
872 /* This MUST be the last field of the structure */
873
874
Jeff Johnson295189b2012-06-20 16:38:30 -0700875 tANI_BOOLEAN p2pSearch;
Jeff Johnson295189b2012-06-20 16:38:30 -0700876 tANI_U16 uIEFieldLen;
877 tANI_U16 uIEFieldOffset;
878
879 //channelList MUST be the last field of this structure
880 tSirChannelList channelList;
881 /*-----------------------------
882 tSirSmeScanReq....
883 -----------------------------
884 uIEFiledLen
885 -----------------------------
886 uIEFiledOffset ----+
887 ----------------------------- |
888 channelList.numChannels |
889 ----------------------------- |
890 ... variable size up to |
891 channelNumber[numChannels-1] |
892 This can be zero, if |
893 numChannel is zero. |
894 ----------------------------- <--+
895 ... variable size uIEFiled
896 up to uIEFieldLen (can be 0)
897 -----------------------------*/
898} tSirSmeScanReq, *tpSirSmeScanReq;
899
Madan Mohan Koyyalamudiff3a7152013-06-13 14:47:55 +0530900typedef struct sSirSmeScanAbortReq
901{
902 tANI_U16 type;
903 tANI_U16 msgLen;
904 tANI_U8 sessionId;
905} tSirSmeScanAbortReq, *tpSirSmeScanAbortReq;
906
Madan Mohan Koyyalamudide1b5bc2013-07-12 00:56:04 +0530907typedef struct sSirSmeScanChanReq
908{
909 tANI_U16 type;
910 tANI_U16 msgLen;
911 tANI_U8 sessionId;
912 tANI_U16 transcationId;
913} tSirSmeGetScanChanReq, *tpSirSmeGetScanChanReq;
914
Jeff Johnsone7245742012-09-05 17:12:55 -0700915#ifdef FEATURE_OEM_DATA_SUPPORT
916
917#ifndef OEM_DATA_REQ_SIZE
Madan Mohan Koyyalamudi7a4d9312012-12-04 17:21:36 -0800918#define OEM_DATA_REQ_SIZE 134
Jeff Johnsone7245742012-09-05 17:12:55 -0700919#endif
920#ifndef OEM_DATA_RSP_SIZE
Madan Mohan Koyyalamudi7a4d9312012-12-04 17:21:36 -0800921#define OEM_DATA_RSP_SIZE 1968
Jeff Johnsone7245742012-09-05 17:12:55 -0700922#endif
923
924typedef struct sSirOemDataReq
925{
926 tANI_U16 messageType; //eWNI_SME_OEM_DATA_REQ
927 tSirMacAddr selfMacAddr;
928 tANI_U8 oemDataReq[OEM_DATA_REQ_SIZE];
929} tSirOemDataReq, *tpSirOemDataReq;
930
931typedef struct sSirOemDataRsp
932{
933 tANI_U16 messageType;
934 tANI_U16 length;
935 tANI_U8 oemDataRsp[OEM_DATA_RSP_SIZE];
936} tSirOemDataRsp, *tpSirOemDataRsp;
937
938#endif //FEATURE_OEM_DATA_SUPPORT
Jeff Johnson295189b2012-06-20 16:38:30 -0700939
940/// Definition for response message to previously issued scan request
941typedef struct sSirSmeScanRsp
942{
943 tANI_U16 messageType; // eWNI_SME_SCAN_RSP
944 tANI_U16 length;
945 tANI_U8 sessionId;
946 tSirResultCodes statusCode;
947 tANI_U16 transcationId;
948 tSirBssDescription bssDescription[1];
949} tSirSmeScanRsp, *tpSirSmeScanRsp;
950
951/// Sme Req message to set the Background Scan mode
952typedef struct sSirSmeBackgroundScanModeReq
953{
954 tANI_U16 messageType; // eWNI_SME_BACKGROUND_SCAN_MODE_REQ
955 tANI_U16 length;
956 tSirBackgroundScanMode mode;
957} tSirSmeBackgroundScanModeReq, *tpSirSmeBackgroundScanModeReq;
958
959/// Background Scan Statisics
960typedef struct sSirBackgroundScanInfo {
961 tANI_U32 numOfScanSuccess;
962 tANI_U32 numOfScanFailure;
963 tANI_U32 reserved;
964} tSirBackgroundScanInfo, *tpSirBackgroundScanInfo;
965
966#define SIR_BACKGROUND_SCAN_INFO_SIZE (3 * sizeof(tANI_U32))
967
968/// Definition for Authentication request
969typedef struct sSirSmeAuthReq
970{
971 tANI_U16 messageType; // eWNI_SME_AUTH_REQ
972 tANI_U16 length;
973 tANI_U8 sessionId; // Session ID
974 tANI_U16 transactionId; // Transaction ID for cmd
975 tSirMacAddr bssId; // Self BSSID
976 tSirMacAddr peerMacAddr;
977 tAniAuthType authType;
978 tANI_U8 channelNumber;
979} tSirSmeAuthReq, *tpSirSmeAuthReq;
980
981/// Definition for reponse message to previously issued Auth request
982typedef struct sSirSmeAuthRsp
983{
984 tANI_U16 messageType; // eWNI_SME_AUTH_RSP
985 tANI_U16 length;
986 tANI_U8 sessionId; // Session ID
987 tANI_U16 transactionId; // Transaction ID for cmd
988 tSirMacAddr peerMacAddr;
989 tAniAuthType authType;
990 tSirResultCodes statusCode;
991 tANI_U16 protStatusCode; //It holds reasonCode when Pre-Auth fails due to deauth frame.
992 //Otherwise it holds status code.
993} tSirSmeAuthRsp, *tpSirSmeAuthRsp;
994
Jeff Johnson295189b2012-06-20 16:38:30 -0700995
Jeff Johnson295189b2012-06-20 16:38:30 -0700996
Jeff Johnson295189b2012-06-20 16:38:30 -0700997/// Definition for Join/Reassoc info - Reshmi: need to check if this is a def which moved from elsehwere.
998typedef struct sJoinReassocInfo
999{
1000 tAniTitanCBNeighborInfo cbNeighbors;
1001 tAniBool spectrumMgtIndicator;
1002 tSirMacPowerCapInfo powerCap;
1003 tSirSupChnl supportedChannels;
1004} tJoinReassocInfo, *tpJoinReassocInfo;
Jeff Johnson295189b2012-06-20 16:38:30 -07001005
1006/// Definition for join request
1007/// ---> MAC
1008/// WARNING! If you add a field in JOIN REQ.
1009/// Make sure to add it in REASSOC REQ
1010/// The Serdes function is the same and its
1011/// shared with REASSOC. So if we add a field
1012// here and dont add it in REASSOC REQ. It will BREAK!!! REASSOC.
1013typedef struct sSirSmeJoinReq
1014{
1015 tANI_U16 messageType; // eWNI_SME_JOIN_REQ
1016 tANI_U16 length;
Jeff Johnsone7245742012-09-05 17:12:55 -07001017 tANI_U8 sessionId;
Jeff Johnson295189b2012-06-20 16:38:30 -07001018 tANI_U16 transactionId;
1019 tSirMacSSid ssId;
1020 tSirMacAddr selfMacAddr; // self Mac address
1021 tSirBssType bsstype; // add new type for BT -AMP STA and AP Modules
1022 tANI_U8 dot11mode; // to support BT-AMP
Jeff Johnsone7245742012-09-05 17:12:55 -07001023 tVOS_CON_MODE staPersona; //Persona
1024 ePhyChanBondState cbMode; // Pass CB mode value in Join.
Jeff Johnson295189b2012-06-20 16:38:30 -07001025
1026 /*This contains the UAPSD Flag for all 4 AC
1027 * B0: AC_VO UAPSD FLAG
1028 * B1: AC_VI UAPSD FLAG
1029 * B2: AC_BK UAPSD FLAG
1030 * B3: AC_BE UASPD FLAG
1031 */
1032 tANI_U8 uapsdPerAcBitmask;
1033
Jeff Johnson295189b2012-06-20 16:38:30 -07001034 tSirMacRateSet operationalRateSet;// Has 11a or 11b rates
1035 tSirMacRateSet extendedRateSet; // Has 11g rates
1036 tSirRSNie rsnIE; // RSN IE to be sent in
1037 // (Re) Association Request
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001038#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07001039 tSirCCKMie cckmIE; // CCMK IE to be included as handler for join and reassoc is
1040 // the same. The join will never carry cckm, but will be set to
1041 // 0.
1042#endif
1043
1044 tSirAddie addIEScan; // Additional IE to be sent in
1045 // (unicast) Probe Request at the time of join
1046
1047 tSirAddie addIEAssoc; // Additional IE to be sent in
1048 // (Re) Association Request
1049
1050 tAniEdType UCEncryptionType;
1051
1052 tAniEdType MCEncryptionType;
Chet Lanctot186b5732013-03-18 10:26:30 -07001053
1054#ifdef WLAN_FEATURE_11W
1055 tAniEdType MgmtEncryptionType;
1056#endif
1057
Jeff Johnson295189b2012-06-20 16:38:30 -07001058#ifdef WLAN_FEATURE_VOWIFI_11R
1059 tAniBool is11Rconnection;
1060#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001061#ifdef FEATURE_WLAN_ESE
1062 tAniBool isESEFeatureIniEnabled;
1063 tAniBool isESEconnection;
1064 tESETspecInfo eseTspecInfo;
Jeff Johnson295189b2012-06-20 16:38:30 -07001065#endif
1066
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001067#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR)
Jeff Johnson295189b2012-06-20 16:38:30 -07001068 tAniBool isFastTransitionEnabled;
1069#endif
Jeff Johnson43971f52012-07-17 12:26:56 -07001070#ifdef FEATURE_WLAN_LFR
1071 tAniBool isFastRoamIniFeatureEnabled;
1072#endif
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08001073
1074 tANI_U8 txLdpcIniFeatureEnabled;
Shailender Karmuchi08f87c22013-01-17 12:51:24 -08001075#ifdef WLAN_FEATURE_11AC
1076 tANI_U8 txBFIniFeatureEnabled;
Shailender Karmuchicc3fe442013-02-16 18:18:33 -08001077 tANI_U8 txBFCsnValue;
Shailender Karmuchi08f87c22013-01-17 12:51:24 -08001078#endif
krunal soni5afa96c2013-09-06 22:19:02 -07001079 tANI_U8 isAmsduSupportInAMPDU;
Sandeep Puligillaaea98a22013-12-04 13:36:32 +05301080 tAniBool isWMEenabled;
1081 tAniBool isQosEnabled;
Jeff Johnson295189b2012-06-20 16:38:30 -07001082 tAniTitanCBNeighborInfo cbNeighbors;
1083 tAniBool spectrumMgtIndicator;
1084 tSirMacPowerCapInfo powerCap;
1085 tSirSupChnl supportedChannels;
Jeff Johnson295189b2012-06-20 16:38:30 -07001086 tSirBssDescription bssDescription;
Jeff Johnson295189b2012-06-20 16:38:30 -07001087
1088} tSirSmeJoinReq, *tpSirSmeJoinReq;
1089
1090/// Definition for reponse message to previously issued join request
1091/// MAC --->
1092typedef struct sSirSmeJoinRsp
1093{
1094 tANI_U16 messageType; // eWNI_SME_JOIN_RSP
1095 tANI_U16 length;
1096 tANI_U8 sessionId; // Session ID
1097 tANI_U16 transactionId; // Transaction ID for cmd
1098 tSirResultCodes statusCode;
Jeff Johnson295189b2012-06-20 16:38:30 -07001099 tAniAuthType authType;
Jeff Johnson295189b2012-06-20 16:38:30 -07001100 tANI_U16 protStatusCode; //It holds reasonCode when join fails due to deauth/disassoc frame.
1101 //Otherwise it holds status code.
1102 tANI_U16 aid;
1103 tANI_U32 beaconLength;
1104 tANI_U32 assocReqLength;
1105 tANI_U32 assocRspLength;
1106#ifdef WLAN_FEATURE_VOWIFI_11R
1107 tANI_U32 parsedRicRspLen;
1108#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001109#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07001110 tANI_U32 tspecIeLen;
1111#endif
1112 tANI_U32 staId;//Station ID for peer
1113
1114 /*The DPU signatures will be sent eventually to TL to help it determine the
1115 association to which a packet belongs to*/
1116 /*Unicast DPU signature*/
1117 tANI_U8 ucastSig;
1118
1119 /*Broadcast DPU signature*/
1120 tANI_U8 bcastSig;
1121
1122 tANI_U8 frames[ 1 ];
1123} tSirSmeJoinRsp, *tpSirSmeJoinRsp;
1124
1125/// Definition for Authentication indication from peer
1126typedef struct sSirSmeAuthInd
1127{
1128 tANI_U16 messageType; // eWNI_SME_AUTH_IND
1129 tANI_U16 length;
1130 tANI_U8 sessionId;
1131 tSirMacAddr bssId; // Self BSSID
1132 tSirMacAddr peerMacAddr;
1133 tAniAuthType authType;
1134} tSirSmeAuthInd, *tpSirSmeAuthInd;
1135
1136/// probereq from peer, when wsc is enabled
1137typedef struct sSirSmeProbereq
1138{
1139 tANI_U16 messageType; // eWNI_SME_PROBE_REQ
1140 tANI_U16 length;
1141 tANI_U8 sessionId;
1142 tSirMacAddr peerMacAddr;
1143 tANI_U16 devicePasswdId;
1144} tSirSmeProbeReq, *tpSirSmeProbeReq;
1145
1146/// Definition for Association indication from peer
1147/// MAC --->
1148typedef struct sSirSmeAssocInd
1149{
1150 tANI_U16 messageType; // eWNI_SME_ASSOC_IND
1151 tANI_U16 length;
1152 tANI_U8 sessionId;
1153 tSirMacAddr peerMacAddr;
1154 tANI_U16 aid;
1155 tSirMacAddr bssId; // Self BSSID
1156 tANI_U16 staId; // Station ID for peer
1157 tANI_U8 uniSig; // DPU signature for unicast packets
1158 tANI_U8 bcastSig; // DPU signature for broadcast packets
1159 tAniAuthType authType;
1160 tAniSSID ssId; // SSID used by STA to associate
1161 tSirRSNie rsnIE;// RSN IE received from peer
1162 tSirAddie addIE;// Additional IE received from peer, which possibly include WSC IE and/or P2P IE
1163
Jeff Johnson295189b2012-06-20 16:38:30 -07001164 // powerCap & supportedChannels are present only when
1165 // spectrumMgtIndicator flag is set
1166 tAniBool spectrumMgtIndicator;
1167 tSirMacPowerCapInfo powerCap;
1168 tSirSupChnl supportedChannels;
Jeff Johnson295189b2012-06-20 16:38:30 -07001169 tAniBool wmmEnabledSta; /* if present - STA is WMM enabled */
1170 tAniBool reassocReq;
1171 // Required for indicating the frames to upper layer
1172 tANI_U32 beaconLength;
1173 tANI_U8* beaconPtr;
1174 tANI_U32 assocReqLength;
1175 tANI_U8* assocReqPtr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001176} tSirSmeAssocInd, *tpSirSmeAssocInd;
1177
1178
1179/// Definition for Association confirm
1180/// ---> MAC
1181typedef struct sSirSmeAssocCnf
1182{
1183 tANI_U16 messageType; // eWNI_SME_ASSOC_CNF
1184 tANI_U16 length;
1185 tSirResultCodes statusCode;
1186 tSirMacAddr bssId; // Self BSSID
1187 tSirMacAddr peerMacAddr;
1188 tANI_U16 aid;
1189 tSirMacAddr alternateBssId;
1190 tANI_U8 alternateChannelId;
1191} tSirSmeAssocCnf, *tpSirSmeAssocCnf;
1192
Jeff Johnson295189b2012-06-20 16:38:30 -07001193/// Definition for Reassociation indication from peer
1194typedef struct sSirSmeReassocInd
1195{
1196 tANI_U16 messageType; // eWNI_SME_REASSOC_IND
1197 tANI_U16 length;
1198 tANI_U8 sessionId; // Session ID
1199 tSirMacAddr peerMacAddr;
1200 tSirMacAddr oldMacAddr;
1201 tANI_U16 aid;
1202 tSirMacAddr bssId; // Self BSSID
1203 tANI_U16 staId; // Station ID for peer
1204 tAniAuthType authType;
1205 tAniSSID ssId; // SSID used by STA to reassociate
1206 tSirRSNie rsnIE; // RSN IE received from peer
1207
1208 tSirAddie addIE; // Additional IE received from peer
1209
Jeff Johnson295189b2012-06-20 16:38:30 -07001210 // powerCap & supportedChannels are present only when
1211 // spectrumMgtIndicator flag is set
1212 tAniBool spectrumMgtIndicator;
1213 tSirMacPowerCapInfo powerCap;
1214 tSirSupChnl supportedChannels;
Jeff Johnson295189b2012-06-20 16:38:30 -07001215 // Required for indicating the frames to upper layer
1216 // TODO: use the appropriate names to distinguish between the other similar names used above for station mode of operation
1217 tANI_U32 beaconLength;
1218 tANI_U8* beaconPtr;
1219 tANI_U32 assocReqLength;
1220 tANI_U8* assocReqPtr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001221} tSirSmeReassocInd, *tpSirSmeReassocInd;
1222
1223/// Definition for Reassociation confirm
1224/// ---> MAC
1225typedef struct sSirSmeReassocCnf
1226{
1227 tANI_U16 messageType; // eWNI_SME_REASSOC_CNF
1228 tANI_U16 length;
1229 tSirResultCodes statusCode;
1230 tSirMacAddr bssId; // Self BSSID
1231 tSirMacAddr peerMacAddr;
1232 tANI_U16 aid;
1233 tSirMacAddr alternateBssId;
1234 tANI_U8 alternateChannelId;
1235} tSirSmeReassocCnf, *tpSirSmeReassocCnf;
1236
Jeff Johnson295189b2012-06-20 16:38:30 -07001237
1238/// Enum definition for Wireless medium status change codes
1239typedef enum eSirSmeStatusChangeCode
1240{
1241 eSIR_SME_DEAUTH_FROM_PEER,
1242 eSIR_SME_DISASSOC_FROM_PEER,
1243 eSIR_SME_LOST_LINK_WITH_PEER,
1244 eSIR_SME_CHANNEL_SWITCH,
1245 eSIR_SME_JOINED_NEW_BSS,
1246 eSIR_SME_LEAVING_BSS,
1247 eSIR_SME_IBSS_ACTIVE,
1248 eSIR_SME_IBSS_INACTIVE,
1249 eSIR_SME_IBSS_PEER_DEPARTED,
1250 eSIR_SME_RADAR_DETECTED,
1251 eSIR_SME_IBSS_NEW_PEER,
1252 eSIR_SME_AP_CAPS_CHANGED,
1253 eSIR_SME_BACKGROUND_SCAN_FAIL,
1254 eSIR_SME_CB_LEGACY_BSS_FOUND_BY_AP,
1255 eSIR_SME_CB_LEGACY_BSS_FOUND_BY_STA
1256} tSirSmeStatusChangeCode;
1257
1258typedef struct sSirSmeNewBssInfo
1259{
1260 tSirMacAddr bssId;
1261 tANI_U8 channelNumber;
1262 tANI_U8 reserved;
1263 tSirMacSSid ssId;
1264} tSirSmeNewBssInfo, *tpSirSmeNewBssInfo;
1265
1266typedef struct sSirSmeApNewCaps
1267{
1268 tANI_U16 capabilityInfo;
1269 tSirMacAddr bssId;
1270 tANI_U8 channelId;
1271 tANI_U8 reserved[3];
1272 tSirMacSSid ssId;
1273} tSirSmeApNewCaps, *tpSirSmeApNewCaps;
1274
1275/**
1276 * Table below indicates what information is passed for each of
1277 * the Wireless Media status change notifications:
1278 *
1279 * Status Change code Status change info
1280 * ----------------------------------------------------------------------
1281 * eSIR_SME_DEAUTH_FROM_PEER Reason code received in DEAUTH frame
1282 * eSIR_SME_DISASSOC_FROM_PEER Reason code received in DISASSOC frame
1283 * eSIR_SME_LOST_LINK_WITH_PEER None
1284 * eSIR_SME_CHANNEL_SWITCH New channel number
1285 * eSIR_SME_JOINED_NEW_BSS BSSID, SSID and channel number
1286 * eSIR_SME_LEAVING_BSS None
1287 * eSIR_SME_IBSS_ACTIVE Indicates that another STA joined
1288 * IBSS apart from this STA that
1289 * started IBSS
1290 * eSIR_SME_IBSS_INACTIVE Indicates that only this STA is left
1291 * in IBSS
1292 * eSIR_SME_RADAR_DETECTED Indicates that radar is detected
1293 * eSIR_SME_IBSS_NEW_PEER Indicates that a new peer is detected
1294 * eSIR_SME_AP_CAPS_CHANGED Indicates that capabilities of the AP
1295 * that STA is currently associated with
1296 * have changed.
1297 * eSIR_SME_BACKGROUND_SCAN_FAIL Indicates background scan failure
1298 */
1299
1300/// Definition for Wireless medium status change notification
1301typedef struct sSirSmeWmStatusChangeNtf
1302{
1303 tANI_U16 messageType; // eWNI_SME_WM_STATUS_CHANGE_NTF
1304 tANI_U16 length;
1305 tANI_U8 sessionId; // Session ID
1306 tSirSmeStatusChangeCode statusChangeCode;
1307 tSirMacAddr bssId; // Self BSSID
1308 union
1309 {
1310 tANI_U16 deAuthReasonCode; // eSIR_SME_DEAUTH_FROM_PEER
1311 tANI_U16 disassocReasonCode; // eSIR_SME_DISASSOC_FROM_PEER
1312 // none for eSIR_SME_LOST_LINK_WITH_PEER
1313 tANI_U8 newChannelId; // eSIR_SME_CHANNEL_SWITCH
1314 tSirSmeNewBssInfo newBssInfo; // eSIR_SME_JOINED_NEW_BSS
1315 // none for eSIR_SME_LEAVING_BSS
1316 // none for eSIR_SME_IBSS_ACTIVE
1317 // none for eSIR_SME_IBSS_INACTIVE
Jeff Johnson295189b2012-06-20 16:38:30 -07001318 tSirNewIbssPeerInfo newIbssPeerInfo; // eSIR_SME_IBSS_NEW_PEER
1319 tSirSmeApNewCaps apNewCaps; // eSIR_SME_AP_CAPS_CHANGED
1320 tSirBackgroundScanInfo bkgndScanInfo; // eSIR_SME_BACKGROUND_SCAN_FAIL
1321 tAniTitanCBNeighborInfo cbNeighbors; // eSIR_SME_CB_LEGACY_BSS_FOUND_BY_STA
Jeff Johnson295189b2012-06-20 16:38:30 -07001322 } statusChangeInfo;
1323} tSirSmeWmStatusChangeNtf, *tpSirSmeWmStatusChangeNtf;
1324
1325/// Definition for Disassociation request
1326typedef
Jeff Johnson295189b2012-06-20 16:38:30 -07001327__ani_attr_pre_packed
Jeff Johnson295189b2012-06-20 16:38:30 -07001328struct sSirSmeDisassocReq
1329{
1330 tANI_U16 messageType; // eWNI_SME_DISASSOC_REQ
1331 tANI_U16 length;
1332 tANI_U8 sessionId; // Session ID
1333 tANI_U16 transactionId; // Transaction ID for cmd
1334 tSirMacAddr bssId; // Peer BSSID
1335 tSirMacAddr peerMacAddr;
1336 tANI_U16 reasonCode;
1337 tANI_U8 doNotSendOverTheAir; //This flag tells LIM whether to send the disassoc OTA or not
1338 //This will be set in while handing off from one AP to other
Jeff Johnson295189b2012-06-20 16:38:30 -07001339}
Jeff Johnson295189b2012-06-20 16:38:30 -07001340__ani_attr_packed
Jeff Johnson295189b2012-06-20 16:38:30 -07001341tSirSmeDisassocReq, *tpSirSmeDisassocReq;
1342
1343/// Definition for Tkip countermeasures request
Jeff Johnson295189b2012-06-20 16:38:30 -07001344typedef __ani_attr_pre_packed struct sSirSmeTkipCntrMeasReq
1345{
1346 tANI_U16 messageType; // eWNI_SME_DISASSOC_REQ
1347 tANI_U16 length;
1348 tANI_U8 sessionId; // Session ID
1349 tANI_U16 transactionId; // Transaction ID for cmd
1350 tSirMacAddr bssId; // Peer BSSID
1351 tANI_BOOLEAN bEnable; // Start/stop countermeasures
1352} __ani_attr_packed tSirSmeTkipCntrMeasReq, *tpSirSmeTkipCntrMeasReq;
Jeff Johnson295189b2012-06-20 16:38:30 -07001353
1354typedef struct sAni64BitCounters
1355{
1356 tANI_U32 Hi;
1357 tANI_U32 Lo;
1358}tAni64BitCounters, *tpAni64BitCounters;
1359
1360typedef struct sAniSecurityStat
1361{
1362 tAni64BitCounters txBlks;
1363 tAni64BitCounters rxBlks;
1364 tAni64BitCounters formatErrorCnt;
1365 tAni64BitCounters decryptErr;
1366 tAni64BitCounters protExclCnt;
1367 tAni64BitCounters unDecryptableCnt;
1368 tAni64BitCounters decryptOkCnt;
1369
1370}tAniSecurityStat, *tpAniSecurityStat;
1371
1372typedef struct sAniTxRxCounters
1373{
1374 tANI_U32 txFrames; // Incremented for every packet tx
1375 tANI_U32 rxFrames;
1376 tANI_U32 nRcvBytes;
1377 tANI_U32 nXmitBytes;
1378}tAniTxRxCounters, *tpAniTxRxCounters;
1379
1380typedef struct sAniTxRxStats
1381{
1382 tAni64BitCounters txFrames;
1383 tAni64BitCounters rxFrames;
1384 tAni64BitCounters nRcvBytes;
1385 tAni64BitCounters nXmitBytes;
1386
1387}tAniTxRxStats,*tpAniTxRxStats;
1388
1389typedef struct sAniSecStats
1390{
1391 tAniSecurityStat aes;
1392 tAni64BitCounters aesReplays;
1393 tAniSecurityStat tkip;
1394 tAni64BitCounters tkipReplays;
1395 tAni64BitCounters tkipMicError;
1396
1397 tAniSecurityStat wep;
1398#if defined(FEATURE_WLAN_WAPI) && !defined(LIBRA_WAPI_SUPPORT)
1399 tAniSecurityStat wpi;
1400 tAni64BitCounters wpiReplays;
1401 tAni64BitCounters wpiMicError;
1402#endif
1403}tAniSecStats, *tpAniSecStats;
1404
1405#define SIR_MAX_RX_CHAINS 3
1406
1407typedef struct sAniStaStatStruct
1408{
1409 /* following statistic elements till expandPktRxCntLo are not filled with valid data.
1410 * These are kept as it is, since WSM is using this structure.
1411 * These elements can be removed whenever WSM is updated.
1412 * Phystats is used to hold phystats from BD.
1413 */
1414 tANI_U32 sentAesBlksUcastHi;
1415 tANI_U32 sentAesBlksUcastLo;
1416 tANI_U32 recvAesBlksUcastHi;
1417 tANI_U32 recvAesBlksUcastLo;
1418 tANI_U32 aesFormatErrorUcastCnts;
1419 tANI_U32 aesReplaysUcast;
1420 tANI_U32 aesDecryptErrUcast;
1421 tANI_U32 singleRetryPkts;
1422 tANI_U32 failedTxPkts;
1423 tANI_U32 ackTimeouts;
1424 tANI_U32 multiRetryPkts;
1425 tANI_U32 fragTxCntsHi;
1426 tANI_U32 fragTxCntsLo;
1427 tANI_U32 transmittedPktsHi;
1428 tANI_U32 transmittedPktsLo;
1429 tANI_U32 phyStatHi; //These are used to fill in the phystats.
1430 tANI_U32 phyStatLo; //This is only for private use.
1431
1432 tANI_U32 uplinkRssi;
1433 tANI_U32 uplinkSinr;
1434 tANI_U32 uplinkRate;
1435 tANI_U32 downlinkRssi;
1436 tANI_U32 downlinkSinr;
1437 tANI_U32 downlinkRate;
1438 tANI_U32 nRcvBytes;
1439 tANI_U32 nXmitBytes;
1440
1441 // titan 3c stats
1442 tANI_U32 chunksTxCntHi; // Number of Chunks Transmitted
1443 tANI_U32 chunksTxCntLo;
1444 tANI_U32 compPktRxCntHi; // Number of Packets Received that were actually compressed
1445 tANI_U32 compPktRxCntLo;
1446 tANI_U32 expanPktRxCntHi; // Number of Packets Received that got expanded
1447 tANI_U32 expanPktRxCntLo;
1448
1449
1450 /* Following elements are valid and filled in correctly. They have valid values.
1451 */
1452
1453 //Unicast frames and bytes.
1454 tAniTxRxStats ucStats;
1455
1456 //Broadcast frames and bytes.
1457 tAniTxRxStats bcStats;
1458
1459 //Multicast frames and bytes.
1460 tAniTxRxStats mcStats;
1461
1462 tANI_U32 currentTxRate;
1463 tANI_U32 currentRxRate; //Rate in 100Kbps
1464
1465 tANI_U32 maxTxRate;
1466 tANI_U32 maxRxRate;
1467
1468 tANI_S8 rssi[SIR_MAX_RX_CHAINS];
1469
1470
1471 tAniSecStats securityStats;
1472
1473 tANI_U8 currentRxRateIdx; //This the softmac rate Index.
1474 tANI_U8 currentTxRateIdx;
1475
1476} tAniStaStatStruct, *tpAniStaStatStruct;
1477
1478//Statistics that are not maintained per stations.
1479typedef struct sAniGlobalStatStruct
1480{
1481 tAni64BitCounters txError;
1482 tAni64BitCounters rxError;
1483 tAni64BitCounters rxDropNoBuffer;
1484 tAni64BitCounters rxDropDup;
1485 tAni64BitCounters rxCRCError;
1486
1487 tAni64BitCounters singleRetryPkts;
1488 tAni64BitCounters failedTxPkts;
1489 tAni64BitCounters ackTimeouts;
1490 tAni64BitCounters multiRetryPkts;
1491 tAni64BitCounters fragTxCnts;
1492 tAni64BitCounters fragRxCnts;
1493
1494 tAni64BitCounters txRTSSuccess;
1495 tAni64BitCounters txCTSSuccess;
1496 tAni64BitCounters rxRTSSuccess;
1497 tAni64BitCounters rxCTSSuccess;
1498
1499 tAniSecStats securityStats;
1500
1501 tAniTxRxStats mcStats;
1502 tAniTxRxStats bcStats;
1503
1504}tAniGlobalStatStruct,*tpAniGlobalStatStruct;
1505
1506typedef enum sPacketType
1507{
1508 ePACKET_TYPE_UNKNOWN,
1509 ePACKET_TYPE_11A,
1510 ePACKET_TYPE_11G,
1511 ePACKET_TYPE_11B,
1512 ePACKET_TYPE_11N
1513
1514}tPacketType, *tpPacketType;
1515
1516typedef struct sAniStatSummaryStruct
1517{
1518 tAniTxRxStats uc; //Unicast counters.
1519 tAniTxRxStats bc; //Broadcast counters.
1520 tAniTxRxStats mc; //Multicast counters.
1521 tAni64BitCounters txError;
1522 tAni64BitCounters rxError;
1523 tANI_S8 rssi[SIR_MAX_RX_CHAINS]; //For each chain.
1524 tANI_U32 rxRate; // Rx rate of the last received packet.
1525 tANI_U32 txRate;
1526 tANI_U16 rxMCSId; //MCS index is valid only when packet type is ePACKET_TYPE_11N
1527 tANI_U16 txMCSId;
1528 tPacketType rxPacketType;
1529 tPacketType txPacketType;
1530 tSirMacAddr macAddr; //Mac Address of the station from which above RSSI and rate is from.
1531}tAniStatSummaryStruct,*tpAniStatSummaryStruct;
1532
Jeff Johnson295189b2012-06-20 16:38:30 -07001533//structure for stats that may be reset, like the ones in sta descriptor
1534//The stats are saved into here before reset. It should be tANI_U32 aligned.
1535typedef struct _sPermStaStats
1536{
1537 //tANI_U32 sentAesBlksUcastHi;
1538 //tANI_U32 sentAesBlksUcastLo;
1539 //tANI_U32 recvAesBlksUcastHi;
1540 //tANI_U32 recvAesBlksUcastLo;
1541 tANI_U32 aesFormatErrorUcastCnts;
1542 tANI_U32 aesReplaysUcast;
1543 tANI_U32 aesDecryptErrUcast;
1544 tANI_U32 singleRetryPkts;
1545 tANI_U32 failedTxPkts;
1546 tANI_U32 ackTimeouts;
1547 tANI_U32 multiRetryPkts;
1548 tANI_U32 fragTxCntsHi;
1549 tANI_U32 fragTxCntsLo;
1550 tANI_U32 transmittedPktsHi;
1551 tANI_U32 transmittedPktsLo;
1552
1553 // titan 3c stats
1554 tANI_U32 chunksTxCntHi; // Number of Chunks Transmitted
1555 tANI_U32 chunksTxCntLo;
1556 tANI_U32 compPktRxCntHi; // Number of Packets Received that were actually compressed
1557 tANI_U32 compPktRxCntLo;
1558 tANI_U32 expanPktRxCntHi; // Number of Packets Received that got expanded
1559 tANI_U32 expanPktRxCntLo;
1560}tPermanentStaStats;
1561
Jeff Johnson295189b2012-06-20 16:38:30 -07001562
1563
1564
1565/// Definition for Disassociation response
1566typedef struct sSirSmeDisassocRsp
1567{
1568 tANI_U16 messageType; // eWNI_SME_DISASSOC_RSP
1569 tANI_U16 length;
1570 tANI_U8 sessionId; // Session ID
1571 tANI_U16 transactionId; // Transaction ID for cmd
1572 tSirResultCodes statusCode;
1573 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001574 tAniStaStatStruct perStaStats; // STA stats
Jeff Johnson295189b2012-06-20 16:38:30 -07001575 tANI_U16 staId;
Jeff Johnson295189b2012-06-20 16:38:30 -07001576}
Jeff Johnson295189b2012-06-20 16:38:30 -07001577__ani_attr_packed
Jeff Johnson295189b2012-06-20 16:38:30 -07001578 tSirSmeDisassocRsp, *tpSirSmeDisassocRsp;
1579
1580/// Definition for Disassociation indication from peer
1581typedef struct sSirSmeDisassocInd
1582{
1583 tANI_U16 messageType; // eWNI_SME_DISASSOC_IND
1584 tANI_U16 length;
1585 tANI_U8 sessionId; // Session Identifier
1586 tANI_U16 transactionId; // Transaction Identifier with PE
1587 tSirResultCodes statusCode;
1588 tSirMacAddr bssId;
1589 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001590 tAniStaStatStruct perStaStats; // STA stats
Jeff Johnson295189b2012-06-20 16:38:30 -07001591 tANI_U16 staId;
Mohit Khanna99d5fd02012-09-11 14:51:20 -07001592 tANI_U32 reasonCode;
Jeff Johnson295189b2012-06-20 16:38:30 -07001593} tSirSmeDisassocInd, *tpSirSmeDisassocInd;
1594
1595/// Definition for Disassociation confirm
1596/// MAC --->
1597typedef struct sSirSmeDisassocCnf
1598{
1599 tANI_U16 messageType; // eWNI_SME_DISASSOC_CNF
1600 tANI_U16 length;
1601 tSirResultCodes statusCode;
1602 tSirMacAddr bssId;
1603 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001604} tSirSmeDisassocCnf, *tpSirSmeDisassocCnf;
1605
1606/// Definition for Deauthetication request
1607typedef struct sSirSmeDeauthReq
1608{
1609 tANI_U16 messageType; // eWNI_SME_DEAUTH_REQ
1610 tANI_U16 length;
1611 tANI_U8 sessionId; // Session ID
1612 tANI_U16 transactionId; // Transaction ID for cmd
1613 tSirMacAddr bssId; // AP BSSID
1614 tSirMacAddr peerMacAddr;
1615 tANI_U16 reasonCode;
Jeff Johnson295189b2012-06-20 16:38:30 -07001616} tSirSmeDeauthReq, *tpSirSmeDeauthReq;
1617
1618/// Definition for Deauthetication response
1619typedef struct sSirSmeDeauthRsp
1620{
1621 tANI_U16 messageType; // eWNI_SME_DEAUTH_RSP
1622 tANI_U16 length;
1623 tANI_U8 sessionId; // Session ID
1624 tANI_U16 transactionId; // Transaction ID for cmd
1625 tSirResultCodes statusCode;
1626 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001627} tSirSmeDeauthRsp, *tpSirSmeDeauthRsp;
1628
1629/// Definition for Deauthetication indication from peer
1630typedef struct sSirSmeDeauthInd
1631{
1632 tANI_U16 messageType; // eWNI_SME_DEAUTH_IND
1633 tANI_U16 length;
1634 tANI_U8 sessionId; //Added for BT-AMP
1635 tANI_U16 transactionId; //Added for BT-AMP
1636 tSirResultCodes statusCode;
1637 tSirMacAddr bssId;// AP BSSID
1638 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001639
Jeff Johnson295189b2012-06-20 16:38:30 -07001640 tANI_U16 staId;
Mohit Khanna99d5fd02012-09-11 14:51:20 -07001641 tANI_U32 reasonCode;
Jeff Johnson295189b2012-06-20 16:38:30 -07001642} tSirSmeDeauthInd, *tpSirSmeDeauthInd;
1643
1644/// Definition for Deauthentication confirm
1645/// MAC --->
1646typedef struct sSirSmeDeauthCnf
1647{
1648 tANI_U16 messageType; // eWNI_SME_DEAUTH_CNF
1649 tANI_U16 length;
1650 tSirResultCodes statusCode;
1651 tSirMacAddr bssId; // AP BSSID
1652 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001653} tSirSmeDeauthCnf, *tpSirSmeDeauthCnf;
1654
1655/// Definition for stop BSS request message
1656typedef struct sSirSmeStopBssReq
1657{
1658 tANI_U16 messageType; // eWNI_SME_STOP_BSS_REQ
1659 tANI_U16 length;
1660 tANI_U8 sessionId; //Session ID
1661 tANI_U16 transactionId; //tranSaction ID for cmd
1662 tSirResultCodes reasonCode;
1663 tSirMacAddr bssId; //Self BSSID
1664} tSirSmeStopBssReq, *tpSirSmeStopBssReq;
1665
1666/// Definition for stop BSS response message
1667typedef struct sSirSmeStopBssRsp
1668{
1669 tANI_U16 messageType; // eWNI_SME_STOP_BSS_RSP
1670 tANI_U16 length;
1671 tSirResultCodes statusCode;
1672 tANI_U8 sessionId; // Session ID
1673 tANI_U16 transactionId; // Transaction ID for cmd
1674} tSirSmeStopBssRsp, *tpSirSmeStopBssRsp;
1675
Jeff Johnson295189b2012-06-20 16:38:30 -07001676
1677
1678/// Definition for Channel Switch indication for station
1679/// MAC --->
1680typedef struct sSirSmeSwitchChannelInd
1681{
1682 tANI_U16 messageType; // eWNI_SME_SWITCH_CHL_REQ
1683 tANI_U16 length;
1684 tANI_U8 sessionId;
1685 tANI_U16 newChannelId;
1686 tSirMacAddr bssId; // BSSID
1687} tSirSmeSwitchChannelInd, *tpSirSmeSwitchChannelInd;
1688
1689/// Definition for ULA complete indication message
1690typedef struct sirUlaCompleteInd
1691{
1692 tANI_U16 messageType; // eWNI_ULA_COMPLETE_IND
1693 tANI_U16 length;
1694 tSirResultCodes statusCode;
1695 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001696} tSirUlaCompleteInd, *tpSirUlaCompleteInd;
1697
1698/// Definition for ULA complete confirmation message
1699typedef struct sirUlaCompleteCnf
1700{
1701 tANI_U16 messageType; // eWNI_ULA_COMPLETE_CNF
1702 tANI_U16 length;
1703 tSirResultCodes statusCode;
1704 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001705} tSirUlaCompleteCnf, *tpSirUlaCompleteCnf;
1706
1707/// Definition for Neighbor BSS indication
1708/// MAC --->
1709/// MAC reports this each time a new I/BSS is detected
1710typedef struct sSirSmeNeighborBssInd
1711{
1712 tANI_U16 messageType; // eWNI_SME_NEIGHBOR_BSS_IND
1713 tANI_U16 length;
1714 tANI_U8 sessionId;
Jeff Johnson295189b2012-06-20 16:38:30 -07001715 tSirBssDescription bssDescription[1];
Jeff Johnson295189b2012-06-20 16:38:30 -07001716} tSirSmeNeighborBssInd, *tpSirSmeNeighborBssInd;
1717
1718/// Definition for MIC failure indication
1719/// MAC --->
1720/// MAC reports this each time a MIC failure occures on Rx TKIP packet
1721typedef struct sSirSmeMicFailureInd
1722{
1723 tANI_U16 messageType; // eWNI_SME_MIC_FAILURE_IND
1724 tANI_U16 length;
1725 tANI_U8 sessionId;
1726 tSirMacAddr bssId; // BSSID
1727 tSirMicFailureInfo info;
1728} tSirSmeMicFailureInd, *tpSirSmeMicFailureInd;
1729
Leela Venkata Kiran Kumar Reddy Chirala3ca17902013-02-27 19:50:05 -08001730typedef struct sSirSmeMissedBeaconInd
1731{
1732 tANI_U16 messageType; // eWNI_SME_MISSED_BEACON_IND
1733 tANI_U16 length;
1734 tANI_U8 bssIdx;
1735} tSirSmeMissedBeaconInd, *tpSirSmeMissedBeaconInd;
Jeff Johnson295189b2012-06-20 16:38:30 -07001736
1737/// Definition for Set Context request
1738/// ---> MAC
1739typedef struct sSirSmeSetContextReq
1740{
1741 tANI_U16 messageType; // eWNI_SME_SET_CONTEXT_REQ
1742 tANI_U16 length;
1743 tANI_U8 sessionId; //Session ID
1744 tANI_U16 transactionId; //Transaction ID for cmd
1745 tSirMacAddr peerMacAddr;
1746 tSirMacAddr bssId; // BSSID
Jeff Johnson295189b2012-06-20 16:38:30 -07001747 // TBD Following QOS fields to be uncommented
1748 //tAniBool qosInfoPresent;
1749 //tSirQos qos;
1750 tSirKeyMaterial keyMaterial;
1751} tSirSmeSetContextReq, *tpSirSmeSetContextReq;
1752
1753/// Definition for Set Context response
1754/// MAC --->
1755typedef struct sSirSmeSetContextRsp
1756{
1757 tANI_U16 messageType; // eWNI_SME_SET_CONTEXT_RSP
1758 tANI_U16 length;
1759 tANI_U8 sessionId; // Session ID
1760 tANI_U16 transactionId; // Transaction ID for cmd
1761 tSirResultCodes statusCode;
1762 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001763} tSirSmeSetContextRsp, *tpSirSmeSetContextRsp;
1764
1765/// Definition for Remove Key Context request
1766/// ---> MAC
1767typedef struct sSirSmeRemoveKeyReq
1768{
1769 tANI_U16 messageType; // eWNI_SME_REMOVE_KEY_REQ
1770 tANI_U16 length;
1771 tANI_U8 sessionId; // Session ID
1772 tANI_U16 transactionId; // Transaction ID for cmd
1773 tSirMacAddr bssId; // BSSID
1774 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001775 tANI_U8 edType;
1776 tANI_U8 wepType;
1777 tANI_U8 keyId;
1778 tANI_BOOLEAN unicast;
1779} tSirSmeRemoveKeyReq, *tpSirSmeRemoveKeyReq;
1780
1781/// Definition for Remove Key Context response
1782/// MAC --->
1783typedef struct sSirSmeRemoveKeyRsp
1784{
1785 tANI_U16 messageType; // eWNI_SME_REMOVE_KEY_RSP
1786 tANI_U16 length;
1787 tANI_U8 sessionId; // Session ID
1788 tANI_U16 transactionId; // Transaction ID for cmd
1789 tSirResultCodes statusCode;
1790 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001791} tSirSmeRemoveKeyRsp, *tpSirSmeRemoveKeyRsp;
1792
1793/// Definition for Set Power request
1794/// ---> MAC
1795typedef struct sSirSmeSetPowerReq
1796{
1797 tANI_U16 messageType; // eWNI_SME_SET_POWER_REQ
1798 tANI_U16 length;
1799 tANI_U16 transactionId; // Transaction ID for cmd
1800 tANI_S8 powerLevel;
1801} tSirSmeSetPowerReq, *tpSirSmeSetPowerReq;
1802
1803/// Definition for Set Power response
1804/// MAC --->
1805typedef struct sSirSmeSetPowerRsp
1806{
1807 tANI_U16 messageType; // eWNI_SME_SET_POWER_RSP
1808 tANI_U16 length;
1809 tSirResultCodes statusCode;
1810 tANI_U16 transactionId; // Transaction ID for cmd
1811} tSirSmeSetPowerRsp, *tpSirSmeSetPowerRsp;
1812
Jeff Johnson295189b2012-06-20 16:38:30 -07001813
1814/// Definition for Link Test Start response
1815/// MAC --->
1816typedef struct sSirSmeLinkTestStartRsp
1817{
1818 tANI_U16 messageType; // eWNI_SME_LINK_TEST_START_RSP
1819 tANI_U16 length;
1820 tSirMacAddr peerMacAddr;
1821 tSirResultCodes statusCode;
Jeff Johnson295189b2012-06-20 16:38:30 -07001822} tSirSmeLinkTestStartRsp, *tpSirSmeLinkTestStartRsp;
1823
1824/// Definition for Link Test Stop response
1825/// WSM ---> MAC
1826typedef struct sSirSmeLinkTestStopRsp
1827{
1828 tANI_U16 messageType; // eWNI_SME_LINK_TEST_STOP_RSP
1829 tANI_U16 length;
1830 tSirMacAddr peerMacAddr;
1831 tSirResultCodes statusCode;
Jeff Johnson295189b2012-06-20 16:38:30 -07001832} tSirSmeLinkTestStopRsp, *tpSirSmeLinkTestStopRsp;
1833
1834/// Definition for kick starting DFS measurements
1835typedef struct sSirSmeDFSreq
1836{
1837 tANI_U16 messageType; // eWNI_SME_DFS_REQ
1838 tANI_U16 length;
1839 tANI_U16 transactionId; // Transaction ID for cmd
1840} tSirSmeDFSrequest, *tpSirSmeDFSrequest;
1841
1842/// Definition for response message to previously
1843/// issued DFS request
1844typedef struct sSirSmeDFSrsp
1845{
1846 tANI_U16 messageType; // eWNI_SME_DFS_RSP
1847 tANI_U16 length;
1848 tSirResultCodes statusCode;
1849 tANI_U16 transactionId; // Transaction ID for cmd
1850 tANI_U32 dfsReport[1];
1851} tSirSmeDFSrsp, *tpSirSmeDFSrsp;
1852
1853/// Statistic definitions
1854//=============================================================
1855// Per STA statistic structure; This same struct will be used for Aggregate
1856// STA stats as well.
1857
1858// Clear radio stats and clear per sta stats
1859typedef enum
1860{
1861 eANI_CLEAR_ALL_STATS, // Clears all stats
1862 eANI_CLEAR_RX_STATS, // Clears RX statistics of the radio interface
1863 eANI_CLEAR_TX_STATS, // Clears TX statistics of the radio interface
1864 eANI_CLEAR_RADIO_STATS, // Clears all the radio stats
1865 eANI_CLEAR_PER_STA_STATS, // Clears Per STA stats
1866 eANI_CLEAR_AGGR_PER_STA_STATS, // Clears aggregate stats
1867
1868 // Used to distinguish between per sta to security stats.
1869 // Used only by AP, FW just returns the same parameter as it received.
1870 eANI_LINK_STATS, // Get Per STA stats
1871 eANI_SECURITY_STATS, // Get Per STA security stats
1872
1873 eANI_CLEAR_STAT_TYPES_END
1874} tAniStatSubTypes;
1875
1876typedef struct sAniTxCtrs
1877{
1878 // add the rate counters here
1879 tANI_U32 tx1Mbps;
1880 tANI_U32 tx2Mbps;
1881 tANI_U32 tx5_5Mbps;
1882 tANI_U32 tx6Mbps;
1883 tANI_U32 tx9Mbps;
1884 tANI_U32 tx11Mbps;
1885 tANI_U32 tx12Mbps;
1886 tANI_U32 tx18Mbps;
1887 tANI_U32 tx24Mbps;
1888 tANI_U32 tx36Mbps;
1889 tANI_U32 tx48Mbps;
1890 tANI_U32 tx54Mbps;
1891 tANI_U32 tx72Mbps;
1892 tANI_U32 tx96Mbps;
1893 tANI_U32 tx108Mbps;
1894
1895 // tx path radio counts
1896 tANI_U32 txFragHi;
1897 tANI_U32 txFragLo;
1898 tANI_U32 txFrameHi;
1899 tANI_U32 txFrameLo;
1900 tANI_U32 txMulticastFrameHi;
1901 tANI_U32 txMulticastFrameLo;
1902 tANI_U32 txFailedHi;
1903 tANI_U32 txFailedLo;
1904 tANI_U32 multipleRetryHi;
1905 tANI_U32 multipleRetryLo;
1906 tANI_U32 singleRetryHi;
1907 tANI_U32 singleRetryLo;
1908 tANI_U32 ackFailureHi;
1909 tANI_U32 ackFailureLo;
1910 tANI_U32 xmitBeacons;
1911
1912 // titan 3c stats
1913 tANI_U32 txCbEscPktCntHi; // Total Number of Channel Bonded/Escort Packet Transmitted
1914 tANI_U32 txCbEscPktCntLo;
1915 tANI_U32 txChunksCntHi; // Total Number of Chunks Transmitted
1916 tANI_U32 txChunksCntLo;
1917 tANI_U32 txCompPktCntHi; // Total Number of Compresssed Packet Transmitted
1918 tANI_U32 txCompPktCntLo;
1919 tANI_U32 tx50PerCompPktCntHi; // Total Number of Packets with 50% or more compression
1920 tANI_U32 tx50PerCompPktCntLo;
1921 tANI_U32 txExpanPktCntHi; // Total Number of Packets Transmitted that got expanded
1922 tANI_U32 txExpanPktCntLo;
1923} tAniTxCtrs, *tpAniTxCtrs;
1924
1925typedef struct sAniRxCtrs
1926{
1927 // receive frame rate counters
1928 tANI_U32 rx1Mbps;
1929 tANI_U32 rx2Mbps;
1930 tANI_U32 rx5_5Mbps;
1931 tANI_U32 rx6Mbps;
1932 tANI_U32 rx9Mbps;
1933 tANI_U32 rx11Mbps;
1934 tANI_U32 rx12Mbps;
1935 tANI_U32 rx18Mbps;
1936 tANI_U32 rx24Mbps;
1937 tANI_U32 rx36Mbps;
1938 tANI_U32 rx48Mbps;
1939 tANI_U32 rx54Mbps;
1940 tANI_U32 rx72Mbps;
1941 tANI_U32 rx96Mbps;
1942 tANI_U32 rx108Mbps;
1943
1944 // receive size counters; 'Lte' = Less than or equal to
1945 tANI_U32 rxLte64;
1946 tANI_U32 rxLte128Gt64;
1947 tANI_U32 rxLte256Gt128;
1948 tANI_U32 rxLte512Gt256;
1949 tANI_U32 rxLte1kGt512;
1950 tANI_U32 rxLte1518Gt1k;
1951 tANI_U32 rxLte2kGt1518;
1952 tANI_U32 rxLte4kGt2k;
1953
1954 // rx radio stats
1955 tANI_U32 rxFrag;
1956 tANI_U32 rxFrame;
1957 tANI_U32 fcsError;
1958 tANI_U32 rxMulticast;
1959 tANI_U32 duplicate;
1960 tANI_U32 rtsSuccess;
1961 tANI_U32 rtsFailed;
1962 tANI_U32 wepUndecryptables;
1963 tANI_U32 drops;
1964 tANI_U32 aesFormatErrorUcastCnts;
1965 tANI_U32 aesReplaysUcast;
1966 tANI_U32 aesDecryptErrUcast;
1967
1968 // titan 3c stats
1969 tANI_U32 rxDecompPktCntHi; // Total Number of Packets that got decompressed
1970 tANI_U32 rxDecompPktCntLo;
1971 tANI_U32 rxCompPktCntHi; // Total Number of Packets received that were actually compressed
1972 tANI_U32 rxCompPktCntLo;
1973 tANI_U32 rxExpanPktCntHi; // Total Number of Packets received that got expanded
1974 tANI_U32 rxExpanPktCntLo;
1975} tAniRxCtrs, *tpAniRxCtrs;
1976
1977// Radio stats
1978typedef struct sAniRadioStats
1979{
1980 tAniTxCtrs tx;
1981 tAniRxCtrs rx;
1982} tAniRadioStats, *tpAniRadioStats;
1983
1984// Get Radio Stats request structure
1985// This structure shall be used for both Radio stats and Aggregate stats
1986// A valid request must contain entire structure with/without valid fields.
1987// Based on the request type, the valid fields will be checked.
1988typedef struct sAniGetStatsReq
1989{
1990 // Common for all types are requests
1991 tANI_U16 msgType; // message type is same as the request type
1992 tANI_U16 msgLen; // length of the entire request
1993 tANI_U8 sessionId; //Session ID
1994 tANI_U16 transactionId;
1995 tSirMacAddr bssId; //BSSID
1996 // only used for clear stats and per sta stats clear
1997 tAniStatSubTypes stat; // Clears the stats of the described types.
1998 tANI_U32 staId; // Per STA stats request must contain valid
1999 // values
2000 tANI_U8 macAddr[6];
2001} tAniGetStatsReq, *tpAniGetStatsReq;
2002
2003// Get Radio Stats response struct
2004typedef struct sAniGetRadioStatsRsp
2005{
2006 tANI_U16 type; // message type is same as the request type
2007 tANI_U16 msgLen; // length of the entire request
2008 tANI_U32 rc;
2009 tANI_U16 transactionId;
2010 tAniRadioStats radio;
2011} tAniGetRadioStatsRsp, *tpAniGetRadioStatsRsp;
2012
2013// Per Sta stats response struct
2014typedef struct sAniGetPerStaStatsRsp
2015{
2016 tANI_U16 type; // message type is same as the request type
2017 tANI_U16 msgLen; // length of the entire request
2018 tANI_U32 rc;
2019 tANI_U16 transactionId;
2020 tAniStatSubTypes stat; // Sub type needed by AP. Returns the same value
2021 tAniStaStatStruct sta;
2022 tANI_U32 staId;
2023 tANI_U8 macAddr[6];
2024} tAniGetPerStaStatsRsp, *tpAniGetPerStaStatsRsp;
2025
2026// Get Aggregate stats
2027typedef struct sAniGetAggrStaStatsRsp
2028{
2029 tANI_U16 type; // message type is same as the request type
2030 tANI_U16 msgLen; // length of the entire request
2031 tANI_U32 rc;
2032 tANI_U16 transactionId;
2033 tAniStaStatStruct sta;
2034} tAniGetAggrStaStatsRsp, *tpAniGetAggrStaStatsRsp;
2035
2036// Clear stats request and response structure. 'rc' field is unused in
2037// request and this field is used in response field.
2038typedef struct sAniClearStatsRsp
2039{
2040 tANI_U16 type; // message type is same as the request type
2041 tANI_U16 msgLen; // length of the entire request
2042 tANI_U32 rc; // return code - will be filled by FW on
2043 // response.
2044 // Same transaction ID will be returned by the FW
2045 tANI_U16 transactionId;
2046 tAniStatSubTypes stat; // Clears the stats of the described types.
2047 tANI_U32 staId; // Applicable only to PER STA stats clearing
2048 tANI_U8 macAddr[6]; // Applicable only to PER STA stats clearing
2049} tAniClearStatsRsp, *tpAniClearStatsRsp;
2050
2051typedef struct sAniGetGlobalStatsRsp
2052{
2053 tANI_U16 type; // message type is same as the request type
2054 tANI_U16 msgLen; // length of the entire request
2055 tANI_U32 rc;
2056 tANI_U16 transactionId;
2057 tAniGlobalStatStruct global;
2058} tAniGetGlobalStatsRsp, *tpAniGetGlobalStatsRsp;
2059
2060typedef struct sAniGetStatSummaryRsp
2061{
2062 tANI_U16 type; // message type is same as the request type
2063 tANI_U16 msgLen; // length of the entire request --Why?
2064 tANI_U32 rc;
2065 tANI_U16 transactionId;
2066 tAniStatSummaryStruct stat;
2067} tAniGetStatSummaryRsp, *tpAniGetStatSummaryRsp;
2068
2069//***************************************************************
2070
2071
2072/*******************PE Statistics*************************/
2073typedef enum
2074{
2075 PE_SUMMARY_STATS_INFO = 0x00000001,
2076 PE_GLOBAL_CLASS_A_STATS_INFO = 0x00000002,
2077 PE_GLOBAL_CLASS_B_STATS_INFO = 0x00000004,
2078 PE_GLOBAL_CLASS_C_STATS_INFO = 0x00000008,
2079 PE_GLOBAL_CLASS_D_STATS_INFO = 0x00000010,
2080 PE_PER_STA_STATS_INFO = 0x00000020
2081}ePEStatsMask;
2082
2083/*
2084 * tpAniGetPEStatsReq is tied to
2085 * for SME ==> PE eWNI_SME_GET_STATISTICS_REQ msgId and
2086 * for PE ==> HAL SIR_HAL_GET_STATISTICS_REQ msgId
2087 */
2088typedef struct sAniGetPEStatsReq
2089{
2090 // Common for all types are requests
2091 tANI_U16 msgType; // message type is same as the request type
2092 tANI_U16 msgLen; // length of the entire request
2093 tANI_U32 staId; // Per STA stats request must contain valid
2094 tANI_U32 statsMask; // categories of stats requested. look at ePEStatsMask
2095} tAniGetPEStatsReq, *tpAniGetPEStatsReq;
2096
2097/*
2098 * tpAniGetPEStatsRsp is tied to
2099 * for PE ==> SME eWNI_SME_GET_STATISTICS_RSP msgId and
2100 * for HAL ==> PE SIR_HAL_GET_STATISTICS_RSP msgId
2101 */
2102typedef struct sAniGetPEStatsRsp
2103{
2104 // Common for all types are responses
2105 tANI_U16 msgType; // message type is same as the request type
2106 tANI_U16 msgLen; // length of the entire request, includes the pStatsBuf length too
2107 tANI_U8 sessionId;
2108 tANI_U32 rc; //success/failure
2109 tANI_U32 staId; // Per STA stats request must contain valid
2110 tANI_U32 statsMask; // categories of stats requested. look at ePEStatsMask
2111/**********************************************************************************************
2112 //void *pStatsBuf;
2113 The Stats buffer starts here and can be an aggregate of more than one statistics
2114 structure depending on statsMask.The void pointer "pStatsBuf" is commented out
2115 intentionally and the src code that uses this structure should take that into account.
2116**********************************************************************************************/
2117} tAniGetPEStatsRsp, *tpAniGetPEStatsRsp;
2118
2119typedef struct sAniGetRssiReq
2120{
2121 // Common for all types are requests
2122 tANI_U16 msgType; // message type is same as the request type
2123 tANI_U16 msgLen; // length of the entire request
2124 tANI_U8 sessionId;
2125 tANI_U8 staId;
2126 void *rssiCallback;
2127 void *pDevContext; //device context
2128 void *pVosContext; //voss context
2129
2130} tAniGetRssiReq, *tpAniGetRssiReq;
2131
Madan Mohan Koyyalamudid9383fd2013-08-13 09:27:30 +05302132typedef struct sAniGetSnrReq
2133{
2134 // Common for all types are requests
2135 tANI_U16 msgType; // message type is same as the request type
2136 tANI_U16 msgLen; // length of the entire request
2137 tANI_U8 sessionId;
2138 tANI_U8 staId;
2139 void *snrCallback;
2140 void *pDevContext; //device context
2141} tAniGetSnrReq, *tpAniGetSnrReq;
2142
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002143#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR)
Srinivas Girigowdad34cedb2013-01-25 13:33:11 -08002144typedef struct sAniGetRoamRssiRsp
2145{
2146 // Common for all types are responses
2147 tANI_U16 msgType; // message type is same as the request type
2148 tANI_U16 msgLen; // length of the entire request, includes the pStatsBuf length too
2149 tANI_U8 sessionId;
2150 tANI_U32 rc; //success/failure
2151 tANI_U32 staId; // Per STA stats request must contain valid
2152 tANI_S8 rssi;
2153 void *rssiReq; //rssi request backup
2154
2155} tAniGetRoamRssiRsp, *tpAniGetRoamRssiRsp;
2156
2157#endif
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002158
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002159#if defined(FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_ESE_UPLOAD)
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002160
2161typedef struct sSirTsmIE
2162{
2163 tANI_U8 tsid;
2164 tANI_U8 state;
2165 tANI_U16 msmt_interval;
2166} tSirTsmIE, *tpSirTsmIE;
2167
2168typedef struct sSirSmeTsmIEInd
2169{
2170 tSirTsmIE tsmIe;
2171 tANI_U8 sessionId;
2172} tSirSmeTsmIEInd, *tpSirSmeTsmIEInd;
2173
2174
2175typedef struct sAniTrafStrmMetrics
2176{
2177 tANI_U16 UplinkPktQueueDly;
2178 tANI_U16 UplinkPktQueueDlyHist[4];
2179 tANI_U32 UplinkPktTxDly;
2180 tANI_U16 UplinkPktLoss;
2181 tANI_U16 UplinkPktCount;
2182 tANI_U8 RoamingCount;
2183 tANI_U16 RoamingDly;
2184} tAniTrafStrmMetrics, *tpAniTrafStrmMetrics;
2185
2186typedef struct sAniGetTsmStatsReq
2187{
2188 // Common for all types are requests
2189 tANI_U16 msgType; // message type is same as the request type
2190 tANI_U16 msgLen; // length of the entire request
2191 tANI_U8 staId;
2192 tANI_U8 tid; // traffic id
2193 tSirMacAddr bssId;
2194 void *tsmStatsCallback;
2195 void *pDevContext; //device context
2196 void *pVosContext; //voss context
2197} tAniGetTsmStatsReq, *tpAniGetTsmStatsReq;
2198
2199typedef struct sAniGetTsmStatsRsp
2200{
2201 // Common for all types are responses
2202 tANI_U16 msgType; // message type is same as the request type
2203 tANI_U16 msgLen; // length of the entire request, includes the pStatsBuf length too
2204 tANI_U8 sessionId;
2205 tANI_U32 rc; //success/failure
2206 tANI_U32 staId; // Per STA stats request must contain valid
2207 tAniTrafStrmMetrics tsmMetrics;
2208 void *tsmStatsReq; //tsm stats request backup
2209} tAniGetTsmStatsRsp, *tpAniGetTsmStatsRsp;
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -08002210
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002211typedef struct sSirEseBcnReportBssInfo
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -08002212{
2213 tBcnReportFields bcnReportFields;
2214 tANI_U8 ieLen;
2215 tANI_U8 *pBuf;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002216} tSirEseBcnReportBssInfo, *tpSirEseBcnReportBssInfo;
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -08002217
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002218typedef struct sSirEseBcnReportRsp
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -08002219{
2220 tANI_U16 measurementToken;
2221 tANI_U8 flag; /* Flag to report measurement done and more data */
2222 tANI_U8 numBss;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002223 tSirEseBcnReportBssInfo bcnRepBssInfo[SIR_BCN_REPORT_MAX_BSS_DESC];
2224} tSirEseBcnReportRsp, *tpSirEseBcnReportRsp;
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -08002225
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002226#endif /* FEATURE_WLAN_ESE || FEATURE_WLAN_ESE_UPLOAD */
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002227
Jeff Johnson295189b2012-06-20 16:38:30 -07002228/* Change country code request MSG structure */
2229typedef struct sAniChangeCountryCodeReq
2230{
2231 // Common for all types are requests
2232 tANI_U16 msgType; // message type is same as the request type
2233 tANI_U16 msgLen; // length of the entire request
2234 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN]; //3 char country code
Gopichand Nakkalaacd94112013-05-29 21:37:47 +05302235 tAniBool countryFromUserSpace;
Abhishek Singha306a442013-11-07 18:39:01 +05302236 tAniBool sendRegHint; //TRUE if we want to send hint to NL80211
Jeff Johnson295189b2012-06-20 16:38:30 -07002237 void *changeCCCallback;
2238 void *pDevContext; //device context
2239 void *pVosContext; //voss context
Amar Singhal0d15bd52013-10-12 23:13:13 -07002240
Jeff Johnson295189b2012-06-20 16:38:30 -07002241} tAniChangeCountryCodeReq, *tpAniChangeCountryCodeReq;
2242
Amar Singhal0d15bd52013-10-12 23:13:13 -07002243/* generic country code change request MSG structure */
2244typedef struct sAniGenericChangeCountryCodeReq
2245{
2246 // Common for all types are requests
2247 tANI_U16 msgType; // message type is same as the request type
2248 tANI_U16 msgLen; // length of the entire request
2249 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN]; //3 char country code
2250 tANI_U16 domain_index;
Amar Singhal0d15bd52013-10-12 23:13:13 -07002251} tAniGenericChangeCountryCodeReq, *tpAniGenericChangeCountryCodeReq;
2252
Sundaresan Ramachandran76e48e82013-07-15 13:07:17 +05302253typedef struct sAniDHCPStopInd
2254{
2255 tANI_U16 msgType; // message type is same as the request type
2256 tANI_U16 msgLen; // length of the entire request
2257 tANI_U8 device_mode; // Mode of the device(ex:STA, AP)
2258 tSirMacAddr macAddr;
2259
2260} tAniDHCPInd, *tpAniDHCPInd;
2261
Jeff Johnson295189b2012-06-20 16:38:30 -07002262typedef struct sAniSummaryStatsInfo
2263{
2264 tANI_U32 retry_cnt[4]; //Total number of packets(per AC) that were successfully transmitted with retries
2265 tANI_U32 multiple_retry_cnt[4];//The number of MSDU packets and MMPDU frames per AC that the 802.11
2266 // station successfully transmitted after more than one retransmission attempt
2267
2268 tANI_U32 tx_frm_cnt[4]; //Total number of packets(per AC) that were successfully transmitted
2269 //(with and without retries, including multi-cast, broadcast)
2270 //tANI_U32 tx_fail_cnt;
2271 //tANI_U32 num_rx_frm_crc_err; //Total number of received frames with CRC Error
2272 //tANI_U32 num_rx_frm_crc_ok; //Total number of successfully received frames with out CRC Error
2273 tANI_U32 rx_frm_cnt; //Total number of packets that were successfully received
2274 //(after appropriate filter rules including multi-cast, broadcast)
2275 tANI_U32 frm_dup_cnt; //Total number of duplicate frames received successfully
2276 tANI_U32 fail_cnt[4]; //Total number packets(per AC) failed to transmit
2277 tANI_U32 rts_fail_cnt; //Total number of RTS/CTS sequence failures for transmission of a packet
2278 tANI_U32 ack_fail_cnt; //Total number packets failed transmit because of no ACK from the remote entity
2279 tANI_U32 rts_succ_cnt; //Total number of RTS/CTS sequence success for transmission of a packet
2280 tANI_U32 rx_discard_cnt; //The sum of the receive error count and dropped-receive-buffer error count.
2281 //HAL will provide this as a sum of (FCS error) + (Fail get BD/PDU in HW)
2282 tANI_U32 rx_error_cnt; //The receive error count. HAL will provide the RxP FCS error global counter.
2283 tANI_U32 tx_byte_cnt; //The sum of the transmit-directed byte count, transmit-multicast byte count
2284 //and transmit-broadcast byte count. HAL will sum TPE UC/MC/BCAST global counters
2285 //to provide this.
2286#if 0
2287 //providing the following stats, in case of wrap around for tx_byte_cnt
2288 tANI_U32 tx_unicast_lower_byte_cnt;
2289 tANI_U32 tx_unicast_upper_byte_cnt;
2290 tANI_U32 tx_multicast_lower_byte_cnt;
2291 tANI_U32 tx_multicast_upper_byte_cnt;
2292 tANI_U32 tx_broadcast_lower_byte_cnt;
2293 tANI_U32 tx_broadcast_upper_byte_cnt;
2294#endif
2295
2296}tAniSummaryStatsInfo, *tpAniSummaryStatsInfo;
2297
2298typedef enum eTxRateInfo
2299{
2300 eHAL_TX_RATE_LEGACY = 0x1, /* Legacy rates */
2301 eHAL_TX_RATE_HT20 = 0x2, /* HT20 rates */
2302 eHAL_TX_RATE_HT40 = 0x4, /* HT40 rates */
2303 eHAL_TX_RATE_SGI = 0x8, /* Rate with Short guard interval */
Leo Chang6f8870f2013-03-26 18:11:36 -07002304 eHAL_TX_RATE_LGI = 0x10, /* Rate with Long guard interval */
2305 eHAL_TX_RATE_VHT20 = 0x20, /* VHT 20 rates */
2306 eHAL_TX_RATE_VHT40 = 0x40, /* VHT 40 rates */
2307 eHAL_TX_RATE_VHT80 = 0x80 /* VHT 80 rates */
Jeff Johnson295189b2012-06-20 16:38:30 -07002308} tTxrateinfoflags;
2309
2310typedef struct sAniGlobalClassAStatsInfo
2311{
2312 tANI_U32 rx_frag_cnt; //The number of MPDU frames received by the 802.11 station for MSDU packets
2313 //or MMPDU frames
2314 tANI_U32 promiscuous_rx_frag_cnt; //The number of MPDU frames received by the 802.11 station for MSDU packets
2315 //or MMPDU frames when a promiscuous packet filter was enabled
2316 //tANI_U32 rx_fcs_err; //The number of MPDU frames that the 802.11 station received with FCS errors
2317 tANI_U32 rx_input_sensitivity; //The receiver input sensitivity referenced to a FER of 8% at an MPDU length
2318 //of 1024 bytes at the antenna connector. Each element of the array shall correspond
2319 //to a supported rate and the order shall be the same as the supporteRates parameter.
2320 tANI_U32 max_pwr; //The maximum transmit power in dBm upto one decimal.
2321 //for eg: if it is 10.5dBm, the value would be 105
2322 //tANI_U32 default_pwr; //The nominal transmit level used after normal power on sequence
2323 tANI_U32 sync_fail_cnt; //Number of times the receiver failed to synchronize with the incoming signal
2324 //after detecting the sync in the preamble of the transmitted PLCP protocol data unit.
2325 tANI_U32 tx_rate; //Legacy transmit rate, in units of
2326 //500 kbit/sec, for the most
2327 //recently transmitted frame
2328 tANI_U32 mcs_index; //mcs index for HT20 and HT40 rates
2329 tANI_U32 tx_rate_flags; //to differentiate between HT20 and
2330 //HT40 rates; short and long guard interval
2331
2332}tAniGlobalClassAStatsInfo, *tpAniGlobalClassAStatsInfo;
2333
2334
2335typedef struct sAniGlobalSecurityStats
2336{
2337 tANI_U32 rx_wep_unencrypted_frm_cnt; //The number of unencrypted received MPDU frames that the MAC layer discarded when
2338 //the IEEE 802.11 dot11ExcludeUnencrypted management information base (MIB) object
2339 //is enabled
2340 tANI_U32 rx_mic_fail_cnt; //The number of received MSDU packets that that the 802.11 station discarded
2341 //because of MIC failures
2342 tANI_U32 tkip_icv_err; //The number of encrypted MPDU frames that the 802.11 station failed to decrypt
2343 //because of a TKIP ICV error
2344 tANI_U32 aes_ccmp_format_err; //The number of received MPDU frames that the 802.11 discarded because of an
2345 //invalid AES-CCMP format
2346 tANI_U32 aes_ccmp_replay_cnt; //The number of received MPDU frames that the 802.11 station discarded because of
2347 //the AES-CCMP replay protection procedure
2348 tANI_U32 aes_ccmp_decrpt_err; //The number of received MPDU frames that the 802.11 station discarded because of
2349 //errors detected by the AES-CCMP decryption algorithm
2350 tANI_U32 wep_undecryptable_cnt; //The number of encrypted MPDU frames received for which a WEP decryption key was
2351 //not available on the 802.11 station
2352 tANI_U32 wep_icv_err; //The number of encrypted MPDU frames that the 802.11 station failed to decrypt
2353 //because of a WEP ICV error
2354 tANI_U32 rx_decrypt_succ_cnt; //The number of received encrypted packets that the 802.11 station successfully
2355 //decrypted
2356 tANI_U32 rx_decrypt_fail_cnt; //The number of encrypted packets that the 802.11 station failed to decrypt
2357
2358}tAniGlobalSecurityStats, *tpAniGlobalSecurityStats;
2359
2360typedef struct sAniGlobalClassBStatsInfo
2361{
2362 tAniGlobalSecurityStats ucStats;
2363 tAniGlobalSecurityStats mcbcStats;
2364}tAniGlobalClassBStatsInfo, *tpAniGlobalClassBStatsInfo;
2365
2366typedef struct sAniGlobalClassCStatsInfo
2367{
2368 tANI_U32 rx_amsdu_cnt; //This counter shall be incremented for a received A-MSDU frame with the stations
2369 //MAC address in the address 1 field or an A-MSDU frame with a group address in the
2370 //address 1 field
2371 tANI_U32 rx_ampdu_cnt; //This counter shall be incremented when the MAC receives an AMPDU from the PHY
2372 tANI_U32 tx_20_frm_cnt; //This counter shall be incremented when a Frame is transmitted only on the
2373 //primary channel
2374 tANI_U32 rx_20_frm_cnt; //This counter shall be incremented when a Frame is received only on the primary channel
2375 tANI_U32 rx_mpdu_in_ampdu_cnt; //This counter shall be incremented by the number of MPDUs received in the A-MPDU
2376 //when an A-MPDU is received
2377 tANI_U32 ampdu_delimiter_crc_err;//This counter shall be incremented when an MPDU delimiter has a CRC error when this
2378 //is the first CRC error in the received AMPDU or when the previous delimiter has been
2379 //decoded correctly
2380
2381}tAniGlobalClassCStatsInfo, *tpAniGlobalClassCStatsInfo;
2382
2383typedef struct sAniPerStaStatsInfo
2384{
2385 tANI_U32 tx_frag_cnt[4]; //The number of MPDU frames that the 802.11 station transmitted and acknowledged
2386 //through a received 802.11 ACK frame
2387 tANI_U32 tx_ampdu_cnt; //This counter shall be incremented when an A-MPDU is transmitted
2388 tANI_U32 tx_mpdu_in_ampdu_cnt; //This counter shall increment by the number of MPDUs in the AMPDU when an A-MPDU
2389 //is transmitted
2390
2391}tAniPerStaStatsInfo, *tpAniPerStaStatsInfo;
2392
2393/**********************PE Statistics end*************************/
2394
2395
2396
2397typedef struct sSirRSSIThresholds
2398{
2399#ifdef ANI_BIG_BYTE_ENDIAN
2400 tANI_S8 ucRssiThreshold1 : 8;
2401 tANI_S8 ucRssiThreshold2 : 8;
2402 tANI_S8 ucRssiThreshold3 : 8;
2403 tANI_U8 bRssiThres1PosNotify : 1;
2404 tANI_U8 bRssiThres1NegNotify : 1;
2405 tANI_U8 bRssiThres2PosNotify : 1;
2406 tANI_U8 bRssiThres2NegNotify : 1;
2407 tANI_U8 bRssiThres3PosNotify : 1;
2408 tANI_U8 bRssiThres3NegNotify : 1;
2409 tANI_U8 bReserved10 : 2;
2410#else
2411 tANI_U8 bReserved10 : 2;
2412 tANI_U8 bRssiThres3NegNotify : 1;
2413 tANI_U8 bRssiThres3PosNotify : 1;
2414 tANI_U8 bRssiThres2NegNotify : 1;
2415 tANI_U8 bRssiThres2PosNotify : 1;
2416 tANI_U8 bRssiThres1NegNotify : 1;
2417 tANI_U8 bRssiThres1PosNotify : 1;
2418 tANI_S8 ucRssiThreshold3 : 8;
2419 tANI_S8 ucRssiThreshold2 : 8;
2420 tANI_S8 ucRssiThreshold1 : 8;
2421#endif
2422
2423}tSirRSSIThresholds, *tpSirRSSIThresholds;
2424
2425typedef struct sSirRSSINotification
2426{
2427#ifdef ANI_BIG_BYTE_ENDIAN
2428 tANI_U32 bRssiThres1PosCross : 1;
2429 tANI_U32 bRssiThres1NegCross : 1;
2430 tANI_U32 bRssiThres2PosCross : 1;
2431 tANI_U32 bRssiThres2NegCross : 1;
2432 tANI_U32 bRssiThres3PosCross : 1;
2433 tANI_U32 bRssiThres3NegCross : 1;
Srinivasdaaec712012-12-12 15:59:44 -08002434 v_S7_t avgRssi : 8;
2435 tANI_U32 bReserved : 18;
Jeff Johnson295189b2012-06-20 16:38:30 -07002436#else
Srinivasdaaec712012-12-12 15:59:44 -08002437 tANI_U32 bReserved : 18;
2438 v_S7_t avgRssi : 8;
Jeff Johnson295189b2012-06-20 16:38:30 -07002439 tANI_U32 bRssiThres3NegCross : 1;
2440 tANI_U32 bRssiThres3PosCross : 1;
2441 tANI_U32 bRssiThres2NegCross : 1;
2442 tANI_U32 bRssiThres2PosCross : 1;
2443 tANI_U32 bRssiThres1NegCross : 1;
2444 tANI_U32 bRssiThres1PosCross : 1;
2445#endif
2446
2447}tSirRSSINotification, *tpSirRSSINotification;
2448
Viral Modid86bde22012-12-10 13:09:21 -08002449
2450typedef struct sSirP2PNoaStart
2451{
2452 tANI_U32 status;
2453 tANI_U32 bssIdx;
2454} tSirP2PNoaStart, *tpSirP2PNoaStart;
2455
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05302456typedef struct sSirTdlsInd
2457{
2458 tANI_U16 status;
2459 tANI_U16 assocId;
2460 tANI_U16 staIdx;
2461 tANI_U16 reasonCode;
2462} tSirTdlsInd, *tpSirTdlsInd;
2463
Jeff Johnson295189b2012-06-20 16:38:30 -07002464typedef struct sSirP2PNoaAttr
2465{
2466#ifdef ANI_BIG_BYTE_ENDIAN
2467 tANI_U32 index :8;
2468 tANI_U32 oppPsFlag :1;
2469 tANI_U32 ctWin :7;
2470 tANI_U32 rsvd1: 16;
2471#else
2472 tANI_U32 rsvd1: 16;
2473 tANI_U32 ctWin :7;
2474 tANI_U32 oppPsFlag :1;
2475 tANI_U32 index :8;
2476#endif
2477
2478#ifdef ANI_BIG_BYTE_ENDIAN
2479 tANI_U32 uNoa1IntervalCnt:8;
2480 tANI_U32 rsvd2:24;
2481#else
2482 tANI_U32 rsvd2:24;
2483 tANI_U32 uNoa1IntervalCnt:8;
2484#endif
2485 tANI_U32 uNoa1Duration;
2486 tANI_U32 uNoa1Interval;
2487 tANI_U32 uNoa1StartTime;
2488
2489#ifdef ANI_BIG_BYTE_ENDIAN
2490 tANI_U32 uNoa2IntervalCnt:8;
2491 tANI_U32 rsvd3:24;
2492#else
2493 tANI_U32 rsvd3:24;
2494 tANI_U32 uNoa2IntervalCnt:8;
2495#endif
2496 tANI_U32 uNoa2Duration;
2497 tANI_U32 uNoa2Interval;
2498 tANI_U32 uNoa2StartTime;
2499} tSirP2PNoaAttr, *tpSirP2PNoaAttr;
Jeff Johnson295189b2012-06-20 16:38:30 -07002500
2501typedef __ani_attr_pre_packed struct sSirTclasInfo
2502{
2503 tSirMacTclasIE tclas;
2504 tANI_U8 version; // applies only for classifier type ip
2505 __ani_attr_pre_packed union {
2506 tSirMacTclasParamEthernet eth;
2507 tSirMacTclasParamIPv4 ipv4;
2508 tSirMacTclasParamIPv6 ipv6;
2509 tSirMacTclasParam8021dq t8021dq;
2510 }__ani_attr_packed tclasParams;
2511} __ani_attr_packed tSirTclasInfo;
2512
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002513
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002514#if defined(FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_ESE_UPLOAD)
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002515#define TSRS_11AG_RATE_6MBPS 0xC
2516#define TSRS_11B_RATE_5_5MBPS 0xB
2517
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002518typedef struct sSirMacESETSRSIE
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002519{
2520 tANI_U8 tsid;
2521 tANI_U8 rates[8];
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002522} tSirMacESETSRSIE;
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002523
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002524typedef struct sSirMacESETSMIE
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002525{
2526 tANI_U8 tsid;
2527 tANI_U8 state;
2528 tANI_U16 msmt_interval;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002529} tSirMacESETSMIE;
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002530
2531typedef struct sTSMStats
2532{
2533 tANI_U8 tid;
2534 tSirMacAddr bssId;
2535 tTrafStrmMetrics tsmMetrics;
2536} tTSMStats, *tpTSMStats;
2537
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002538typedef struct sEseTSMContext
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002539{
2540 tANI_U8 tid;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002541 tSirMacESETSMIE tsmInfo;
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002542 tTrafStrmMetrics tsmMetrics;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002543} tEseTSMContext, *tpEseTSMContext;
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002544
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002545typedef struct sEsePEContext
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002546{
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002547#if defined(FEATURE_WLAN_ESE) && !defined(FEATURE_WLAN_ESE_UPLOAD)
2548 tEseMeasReq curMeasReq;
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002549#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002550 tEseTSMContext tsm;
2551} tEsePEContext, *tpEsePEContext;
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002552
2553
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002554#endif /* FEATURE_WLAN_ESE && FEATURE_WLAN_ESE_UPLOAD */
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002555
2556
Jeff Johnson295189b2012-06-20 16:38:30 -07002557typedef struct sSirAddtsReqInfo
2558{
2559 tANI_U8 dialogToken;
2560 tSirMacTspecIE tspec;
2561
2562 tANI_U8 numTclas; // number of Tclas elements
2563 tSirTclasInfo tclasInfo[SIR_MAC_TCLASIE_MAXNUM];
2564 tANI_U8 tclasProc;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002565#if defined(FEATURE_WLAN_ESE)
2566 tSirMacESETSRSIE tsrsIE;
Jeff Johnson295189b2012-06-20 16:38:30 -07002567 tANI_U8 tsrsPresent:1;
2568#endif
2569 tANI_U8 wmeTspecPresent:1;
2570 tANI_U8 wsmTspecPresent:1;
2571 tANI_U8 lleTspecPresent:1;
2572 tANI_U8 tclasProcPresent:1;
2573} tSirAddtsReqInfo, *tpSirAddtsReqInfo;
2574
2575typedef struct sSirAddtsRspInfo
2576{
2577 tANI_U8 dialogToken;
2578 tSirMacStatusCodes status;
2579 tSirMacTsDelayIE delay;
2580
2581 tSirMacTspecIE tspec;
2582 tANI_U8 numTclas; // number of Tclas elements
2583 tSirTclasInfo tclasInfo[SIR_MAC_TCLASIE_MAXNUM];
2584 tANI_U8 tclasProc;
2585 tSirMacScheduleIE schedule;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002586#if defined(FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_ESE_UPLOAD)
2587 tSirMacESETSMIE tsmIE;
Jeff Johnson295189b2012-06-20 16:38:30 -07002588 tANI_U8 tsmPresent:1;
2589#endif
2590 tANI_U8 wmeTspecPresent:1;
2591 tANI_U8 wsmTspecPresent:1;
2592 tANI_U8 lleTspecPresent:1;
2593 tANI_U8 tclasProcPresent:1;
2594 tANI_U8 schedulePresent:1;
2595} tSirAddtsRspInfo, *tpSirAddtsRspInfo;
2596
2597typedef struct sSirDeltsReqInfo
2598{
2599 tSirMacTSInfo tsinfo;
2600 tSirMacTspecIE tspec;
2601 tANI_U8 wmeTspecPresent:1;
2602 tANI_U8 wsmTspecPresent:1;
2603 tANI_U8 lleTspecPresent:1;
2604} tSirDeltsReqInfo, *tpSirDeltsReqInfo;
2605
2606/// Add a tspec as defined
2607typedef struct sSirAddtsReq
2608{
2609 tANI_U16 messageType; // eWNI_SME_ADDTS_REQ
2610 tANI_U16 length;
2611 tANI_U8 sessionId; //Session ID
2612 tANI_U16 transactionId;
2613 tSirMacAddr bssId; //BSSID
2614 tANI_U32 timeout; // in ms
2615 tANI_U8 rspReqd;
2616 tSirAddtsReqInfo req;
2617} tSirAddtsReq, *tpSirAddtsReq;
2618
2619typedef struct sSirAddtsRsp
2620{
2621 tANI_U16 messageType; // eWNI_SME_ADDTS_RSP
2622 tANI_U16 length;
2623 tANI_U8 sessionId; // sme sessionId Added for BT-AMP support
2624 tANI_U16 transactionId; //sme transaction Id Added for BT-AMP Support
2625 tANI_U32 rc; // return code
2626 tSirAddtsRspInfo rsp;
2627} tSirAddtsRsp, *tpSirAddtsRsp;
2628
2629typedef struct sSirDeltsReq
2630{
2631 tANI_U16 messageType; // eWNI_SME_DELTS_REQ
2632 tANI_U16 length;
2633 tANI_U8 sessionId;//Session ID
2634 tANI_U16 transactionId;
2635 tSirMacAddr bssId; //BSSID
2636 tANI_U16 aid; // use 0 if macAddr is being specified
2637 tANI_U8 macAddr[6]; // only on AP to specify the STA
2638 tANI_U8 rspReqd;
2639 tSirDeltsReqInfo req;
2640} tSirDeltsReq, *tpSirDeltsReq;
2641
2642typedef struct sSirDeltsRsp
2643{
2644 tANI_U16 messageType; // eWNI_SME_DELTS_RSP
2645 tANI_U16 length;
2646 tANI_U8 sessionId; // sme sessionId Added for BT-AMP support
2647 tANI_U16 transactionId; //sme transaction Id Added for BT-AMP Support
2648 tANI_U32 rc;
2649 tANI_U16 aid; // use 0 if macAddr is being specified
2650 tANI_U8 macAddr[6]; // only on AP to specify the STA
2651 tSirDeltsReqInfo rsp;
2652} tSirDeltsRsp, *tpSirDeltsRsp;
2653
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002654#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR)
Jeff Johnson295189b2012-06-20 16:38:30 -07002655
2656#define SIR_QOS_NUM_TSPEC_MAX 2
2657#define SIR_QOS_NUM_AC_MAX 4
2658
2659typedef struct sSirAggrQosReqInfo
2660{
2661 tANI_U16 tspecIdx;
2662 tSirAddtsReqInfo aggrAddTsInfo[SIR_QOS_NUM_AC_MAX];
2663}tSirAggrQosReqInfo, *tpSirAggrQosReqInfo;
2664
2665typedef struct sSirAggrQosReq
2666{
2667 tANI_U16 messageType; // eWNI_SME_ADDTS_REQ
2668 tANI_U16 length;
2669 tANI_U8 sessionId; //Session ID
2670 tANI_U16 transactionId;
2671 tSirMacAddr bssId; //BSSID
2672 tANI_U32 timeout; // in ms
2673 tANI_U8 rspReqd;
2674 tSirAggrQosReqInfo aggrInfo;
2675}tSirAggrQosReq, *tpSirAggrQosReq;
2676
2677typedef struct sSirAggrQosRspInfo
2678{
2679 tANI_U16 tspecIdx;
2680 tSirAddtsRspInfo aggrRsp[SIR_QOS_NUM_AC_MAX];
2681} tSirAggrQosRspInfo, *tpSirAggrQosRspInfo;
2682
2683typedef struct sSirAggrQosRsp
2684{
2685 tANI_U16 messageType;
2686 tANI_U16 length;
2687 tANI_U8 sessionId;
2688 tSirAggrQosRspInfo aggrInfo;
2689} tSirAggrQosRsp, *tpSirAggrQosRsp;
2690
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002691#endif/*WLAN_FEATURE_VOWIFI_11R || FEATURE_WLAN_ESE*/
Jeff Johnson295189b2012-06-20 16:38:30 -07002692
2693typedef struct sSirSetTxPowerReq
2694{
schang86c22c42013-03-13 18:41:24 -07002695 tANI_U16 messageType;
2696 tANI_U16 length;
2697 tSirMacAddr bssId;
2698 tANI_U8 mwPower;
2699 tANI_U8 bssIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07002700} tSirSetTxPowerReq, *tpSirSetTxPowerReq;
2701
2702typedef struct sSirSetTxPowerRsp
2703{
2704 tANI_U16 messageType;
2705 tANI_U16 length;
2706 tANI_U32 status;
2707} tSirSetTxPowerRsp, *tpSirSetTxPowerRsp;
2708
2709typedef struct sSirGetTxPowerReq
2710{
2711 tANI_U16 messageType;
2712 tANI_U16 length;
2713 tANI_U16 staid;
2714} tSirGetTxPowerReq, *tpSirGetTxPowerReq;
2715
2716typedef struct sSirGetTxPowerRsp
2717{
2718 tANI_U16 messageType;
2719 tANI_U16 length; // length of the entire request
2720 tANI_U32 power; // units of milliwatts
2721 tANI_U32 status;
2722} tSirGetTxPowerRsp, *tpSirGetTxPowerRsp;
2723
2724
2725typedef tANI_U32 tSirMacNoise[3];
2726
2727typedef struct sSirGetNoiseRsp
2728{
2729 tANI_U16 messageType;
2730 tANI_U16 length;
2731 tSirMacNoise noise;
2732} tSirGetNoiseRsp, *tpSirGetNoiseRsp;
2733
Leela Venkata Kiran Kumar Reddy Chirala8e69fbc2013-10-30 18:51:13 -07002734typedef struct sSirQosMapSet
2735{
2736 tANI_U8 present;
2737 tANI_U8 num_dscp_exceptions;
2738 tANI_U8 dscp_exceptions[21][2];
2739 tANI_U8 dscp_range[7][2];
2740} tSirQosMapSet, *tpSirQosMapSet;
Jeff Johnson295189b2012-06-20 16:38:30 -07002741
2742//
2743// PMC --> PE --> HAL
2744// Power save configuration parameters
2745//
2746typedef struct sSirPowerSaveCfg
2747{
2748 tANI_U16 listenInterval;
2749
2750 /* Number of consecutive missed beacons before
2751 * hardware generates an interrupt to wake up
2752 * the host. In units of listen interval.
2753 */
2754 tANI_U32 HeartBeatCount;
2755
2756 /* specifies which beacons are to be forwarded
2757 * to host when beacon filtering is enabled.
2758 * In units of listen interval.
2759 */
2760 tANI_U32 nthBeaconFilter;
2761
2762 /* Maximum number of PS-Poll send before
2763 * firmware sends data null with PM set to 0.
2764 */
2765 tANI_U32 maxPsPoll;
2766
2767 /* If the average RSSI value falls below the
2768 * minRssiThreshold, then FW will send an
2769 * interrupt to wake up the host.
2770 */
2771 tANI_U32 minRssiThreshold;
2772
2773 /* Number of beacons for which firmware will
2774 * collect the RSSI values and compute the average.
2775 */
2776 tANI_U8 numBeaconPerRssiAverage;
2777
2778 /* FW collects the RSSI stats for this period
2779 * in BMPS mode.
2780 */
2781 tANI_U8 rssiFilterPeriod;
2782
2783 // Enabling/disabling broadcast frame filter feature
2784 tANI_U8 broadcastFrameFilter;
2785
2786 // Enabling/disabling the ignore DTIM feature
2787 tANI_U8 ignoreDtim;
2788
2789 /* The following configuration parameters are kept
2790 * in order to be backward compatible for Gen5.
2791 * These will NOT be used for Gen6 Libra chip
2792 */
2793 tBeaconForwarding beaconFwd;
2794 tANI_U16 nthBeaconFwd;
2795 tANI_U8 fEnablePwrSaveImmediately;
2796 tANI_U8 fPSPoll;
2797
2798 // Enabling/disabling Beacon Early Termination feature
2799 tANI_U8 fEnableBeaconEarlyTermination;
2800 tANI_U8 bcnEarlyTermWakeInterval;
2801
2802}tSirPowerSaveCfg, *tpSirPowerSaveCfg;
2803
2804/* Reason code for requesting Full Power. This reason code is used by
2805 any module requesting full power from PMC and also by PE when it
2806 sends the eWNI_PMC_EXIT_BMPS_IND to PMC*/
2807typedef enum eRequestFullPowerReason
2808{
2809 eSME_MISSED_BEACON_IND_RCVD, /* PE received a MAX_MISSED_BEACON_IND */
2810 eSME_BMPS_STATUS_IND_RCVD, /* PE received a SIR_HAL_BMPS_STATUS_IND */
2811 eSME_BMPS_MODE_DISABLED, /* BMPS mode was disabled by HDD in SME */
2812 eSME_LINK_DISCONNECTED_BY_HDD, /* Link has been disconnected requested by HDD */
2813 eSME_LINK_DISCONNECTED_BY_OTHER,/* Disconnect due to linklost or requested by peer */
2814 eSME_FULL_PWR_NEEDED_BY_HDD, /* HDD request full power for some reason */
2815 eSME_FULL_PWR_NEEDED_BY_BAP, /* BAP request full power for BT_AMP */
2816 eSME_FULL_PWR_NEEDED_BY_CSR, /* CSR requests full power */
2817 eSME_FULL_PWR_NEEDED_BY_QOS, /* QOS requests full power */
2818 eSME_FULL_PWR_NEEDED_BY_CHANNEL_SWITCH, /* channel switch request full power*/
Mohit Khanna698ba2a2012-12-04 15:08:18 -08002819#ifdef FEATURE_WLAN_TDLS
2820 eSME_FULL_PWR_NEEDED_BY_TDLS_PEER_SETUP, /* TDLS peer setup*/
2821#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07002822 eSME_REASON_OTHER /* No specific reason. General reason code */
2823} tRequestFullPowerReason, tExitBmpsReason;
2824
2825
2826
2827//This is sent alongwith eWNI_PMC_EXIT_BMPS_REQ message
2828typedef struct sExitBmpsInfo
2829{
2830 tExitBmpsReason exitBmpsReason; /*Reason for exiting BMPS */
2831}tExitBmpsInfo, *tpExitBmpsInfo;
2832
2833
2834// MAC SW --> SME
2835// Message indicating to SME to exit BMPS sleep mode
2836typedef struct sSirSmeExitBmpsInd
2837{
2838 tANI_U16 mesgType; /* eWNI_PMC_EXIT_BMPS_IND */
2839 tANI_U16 mesgLen;
2840 tSirResultCodes statusCode;
2841 tExitBmpsReason exitBmpsReason; /*Reason for exiting BMPS */
2842
2843} tSirSmeExitBmpsInd, *tpSirSmeExitBmpsInd;
2844
2845
2846//
2847// HDD -> LIM
2848// tSirMsgQ.type = eWNI_SME_DEL_BA_PEER_IND
2849// tSirMsgQ.reserved = 0
2850// tSirMsgQ.body = instance of tDelBAParams
2851//
2852typedef struct sSmeDelBAPeerInd
2853{
2854 // Message Type
2855 tANI_U16 mesgType;
2856
2857 tSirMacAddr bssId;//BSSID
2858
2859 // Message Length
2860 tANI_U16 mesgLen;
2861
2862 // Station Index
2863 tANI_U16 staIdx;
2864
2865 // TID for which the BA session is being deleted
2866 tANI_U8 baTID;
2867
2868 // DELBA direction
2869 // eBA_INITIATOR - Originator
2870 // eBA_RECEIPIENT - Recipient
2871 tANI_U8 baDirection;
2872} tSmeDelBAPeerInd, *tpSmeDelBAPeerInd;
2873
2874typedef struct sSmeIbssPeerInd
2875{
2876 tANI_U16 mesgType;
2877 tANI_U16 mesgLen;
2878 tANI_U8 sessionId;
2879
2880 tSirMacAddr peerAddr;
2881 tANI_U16 staId;
2882
2883 /*The DPU signatures will be sent eventually to TL to help it determine the
2884 association to which a packet belongs to*/
2885 /*Unicast DPU signature*/
2886 tANI_U8 ucastSig;
2887
2888 /*Broadcast DPU signature*/
2889 tANI_U8 bcastSig;
2890
2891 //Beacon will be appended for new Peer indication.
2892}tSmeIbssPeerInd, *tpSmeIbssPeerInd;
2893
Ravi Joshid2ca7c42013-07-23 08:37:49 -07002894typedef struct sSirIbssPeerInactivityInd
2895{
2896 tANI_U8 bssIdx;
2897 tANI_U8 staIdx;
2898 tSirMacAddr peerAddr;
2899}tSirIbssPeerInactivityInd, *tpSirIbssPeerInactivityInd;
2900
2901
Jeff Johnson295189b2012-06-20 16:38:30 -07002902typedef struct sLimScanChn
2903{
2904 tANI_U16 numTimeScan; //how many time this channel is scan
2905 tANI_U8 channelId;
2906}tLimScanChn;
2907
2908typedef struct sSmeGetScanChnRsp
2909{
2910 // Message Type
2911 tANI_U16 mesgType;
2912 // Message Length
2913 tANI_U16 mesgLen;
2914 tANI_U8 sessionId;
2915 tANI_U8 numChn;
2916 tLimScanChn scanChn[1];
2917} tSmeGetScanChnRsp, *tpSmeGetScanChnRsp;
2918
2919typedef struct sLimScanChnInfo
2920{
2921 tANI_U8 numChnInfo; //number of channels in scanChn
2922 tLimScanChn scanChn[SIR_MAX_SUPPORTED_CHANNEL_LIST];
2923}tLimScanChnInfo;
2924
Jeff Johnson295189b2012-06-20 16:38:30 -07002925typedef struct sSirSmeGetAssocSTAsReq
2926{
2927 tANI_U16 messageType; // eWNI_SME_GET_ASSOC_STAS_REQ
2928 tANI_U16 length;
2929 tSirMacAddr bssId; // BSSID
2930 tANI_U16 modId;
2931 void *pUsrContext;
2932 void *pSapEventCallback;
2933 void *pAssocStasArray;// Pointer to allocated memory passed in WLANSAP_GetAssocStations API
2934} tSirSmeGetAssocSTAsReq, *tpSirSmeGetAssocSTAsReq;
Jeff Johnson295189b2012-06-20 16:38:30 -07002935
2936typedef struct sSmeMaxAssocInd
2937{
2938 tANI_U16 mesgType; // eWNI_SME_MAX_ASSOC_EXCEEDED
2939 tANI_U16 mesgLen;
2940 tANI_U8 sessionId;
2941 tSirMacAddr peerMac; // the new peer that got rejected due to softap max assoc limit reached
2942} tSmeMaxAssocInd, *tpSmeMaxAssocInd;
2943
2944/*--------------------------------------------------------------------*/
2945/* BootLoader message definition */
2946/*--------------------------------------------------------------------*/
2947
2948/*--------------------------------------------------------------------*/
2949/* FW image size */
2950/*--------------------------------------------------------------------*/
2951#define SIR_FW_IMAGE_SIZE 146332
2952
2953
2954#define SIR_BOOT_MODULE_ID 1
2955
2956#define SIR_BOOT_SETUP_IND ((SIR_BOOT_MODULE_ID << 8) | 0x11)
2957#define SIR_BOOT_POST_RESULT_IND ((SIR_BOOT_MODULE_ID << 8) | 0x12)
2958#define SIR_BOOT_DNLD_RESULT_IND ((SIR_BOOT_MODULE_ID << 8) | 0x13)
2959#define SIR_BOOT_DNLD_DEV_REQ ((SIR_BOOT_MODULE_ID << 8) | 0x41)
2960#define SIR_BOOT_DNLD_DEV_RSP ((SIR_BOOT_MODULE_ID << 8) | 0x81)
2961#define SIR_BOOT_DNLD_REQ ((SIR_BOOT_MODULE_ID << 8) | 0x42)
2962#define SIR_BOOT_DNLD_RSP ((SIR_BOOT_MODULE_ID << 8) | 0x82)
2963
2964/*--------------------------------------------------------------------*/
2965/* Bootloader message syntax */
2966/*--------------------------------------------------------------------*/
2967
2968// Message header
2969#define SIR_BOOT_MB_HEADER 0
2970#define SIR_BOOT_MB_HEADER2 1
2971
2972#define SIR_BOOT_MSG_HDR_MASK 0xffff0000
2973#define SIR_BOOT_MSG_LEN_MASK 0x0000ffff
2974
2975// BOOT_SETUP_IND parameter indices
2976#define SIR_BOOT_SETUP_IND_MBADDR 2
2977#define SIR_BOOT_SETUP_IND_MBSIZE 3
2978#define SIR_BOOT_SETUP_IND_MEMOPT 4
2979#define SIR_BOOT_SETUP_IND_LEN \
2980 ((SIR_BOOT_SETUP_IND_MEMOPT+1)<<2)
2981
2982// BOOT_POST_RESULT_IND parameter indices
2983#define SIR_BOOT_POST_RESULT_IND_RES 2
2984#define SIR_BOOT_POST_RESULT_IND_LEN \
2985 ((SIR_BOOT_POST_RESULT_IND_RES+1)<<2)
2986
2987#define SIR_BOOT_POST_RESULT_IND_SUCCESS 1
2988#define SIR_BOOT_POST_RESULT_IND_MB_FAILED 2
2989#define SIR_BOOT_POST_RESULT_IND_SDRAM_FAILED 3
2990#define SIR_BOOT_POST_RESULT_IND_ESRAM_FAILED 4
2991
2992
2993// BOOT_DNLD_RESULT_IND parameter indices
2994#define SIR_BOOT_DNLD_RESULT_IND_RES 2
2995#define SIR_BOOT_DNLD_RESULT_IND_LEN \
2996 ((SIR_BOOT_DNLD_RESULT_IND_RES+1)<<2)
2997
2998#define SIR_BOOT_DNLD_RESULT_IND_SUCCESS 1
2999#define SIR_BOOT_DNLD_RESULT_IND_HDR_ERR 2
3000#define SIR_BOOT_DNLD_RESULT_IND_ERR 3
3001
3002// BOOT_DNLD_DEV_REQ
3003#define SIR_BOOT_DNLD_DEV_REQ_SDRAMSIZE 2
3004#define SIR_BOOT_DNLD_DEV_REQ_FLASHSIZE 3
3005#define SIR_BOOT_DNLD_DEV_REQ_LEN \
3006 ((SIR_BOOT_DNLD_DEV_REQ_FLASHSIZE+1)<<2)
3007
3008// BOOT_DNLD_DEV_RSP
3009#define SIR_BOOT_DNLD_DEV_RSP_DEVTYPE 2
3010#define SIR_BOOT_DNLD_DEV_RSP_LEN \
3011 ((SIR_BOOT_DNLD_DEV_RSP_DEVTYPE+1)<<2)
3012
3013#define SIR_BOOT_DNLD_DEV_RSP_SRAM 1
3014#define SIR_BOOT_DNLD_DEV_RSP_FLASH 2
3015
3016// BOOT_DNLD_REQ
3017#define SIR_BOOT_DNLD_REQ_OFFSET 2
3018#define SIR_BOOT_DNLD_REQ_WRADDR 3
3019#define SIR_BOOT_DNLD_REQ_SIZE 4
3020#define SIR_BOOT_DNLD_REQ_LEN ((SIR_BOOT_DNLD_REQ_SIZE+1)<<2)
3021
3022// BOOT_DNLD_RSP
3023#define SIR_BOOT_DNLD_RSP_SIZE 2
3024#define SIR_BOOT_DNLD_RSP_LEN ((SIR_BOOT_DNLD_RSP_SIZE+1)<<2)
3025
Jeff Johnson295189b2012-06-20 16:38:30 -07003026
3027// board capabilities fields are defined here.
3028typedef __ani_attr_pre_packed struct sSirBoardCapabilities
3029{
3030#ifndef ANI_LITTLE_BIT_ENDIAN
3031 tANI_U32 concat:1; // 0 - Concat is not supported, 1 - Concat is supported
3032 tANI_U32 compression:1; // 0 - Compression is not supported, 1 - Compression is supported
3033 tANI_U32 chnlBonding:1; // 0 - Channel Bonding is not supported, 1 - Channel Bonding is supported
3034 tANI_U32 reverseFCS:1; // 0 - Reverse FCS is not supported, 1 - Reverse FCS is supported
3035 tANI_U32 rsvd1:2;
3036 // (productId derives sub-category in the following three families)
3037 tANI_U32 cbFamily:1; // 0 - Not CB family, 1 - Cardbus
3038 tANI_U32 apFamily:1; // 0 - Not AP family, 1 - AP
3039 tANI_U32 mpciFamily:1; // 0 - Not MPCI family, 1 - MPCI
3040 tANI_U32 bgOnly:1; // 0 - default a/b/g; 1 - b/g only
3041 tANI_U32 bbChipVer:4; // Baseband chip version
3042 tANI_U32 loType:2; // 0 = no LO, 1 = SILABS, 2 = ORION
3043 tANI_U32 radioOn:2; // Not supported is 3 or 2, 0 = Off and 1 = On
3044 tANI_U32 nReceivers:2; // 0 based.
3045 tANI_U32 nTransmitters:1; // 0 = 1 transmitter, 1 = 2 transmitters
3046 tANI_U32 sdram:1; // 0 = no SDRAM, 1 = SDRAM
3047 tANI_U32 rsvd:1;
3048 tANI_U32 extVsIntAnt:1; // 0 = ext antenna, 1 = internal antenna
3049#else
3050
3051 tANI_U32 extVsIntAnt:1; // 0 = ext antenna, 1 = internal antenna
3052 tANI_U32 rsvd:1;
3053 tANI_U32 sdram:1; // 0 = no SDRAM, 1 = SDRAM
3054 tANI_U32 nTransmitters:1; // 0 = 1 transmitter, 1 = 2 transmitters
3055 tANI_U32 nReceivers:2; // 0 based.
3056 tANI_U32 radioOn:2; // Not supported is 3 or 2, 0 = Off and 1 = On
3057 tANI_U32 loType:2; // 0 = no LO, 1 = SILABS, 2 = ORION
3058 tANI_U32 bbChipVer:4; // Baseband chip version
3059 tANI_U32 bgOnly:1; // 0 - default a/b/g; 1 - b/g only
3060 // (productId derives sub-category in the following three families)
3061 tANI_U32 mpciFamily:1; // 0 - Not MPCI family, 1 - MPCI
3062 tANI_U32 apFamily:1; // 0 - Not AP family, 1 - AP
3063 tANI_U32 cbFamily:1; // 0 - Not CB family, 1 - Cardbus
3064 tANI_U32 rsvd1:2;
3065 tANI_U32 reverseFCS:1; // 0 - Reverse FCS is not supported, 1 - Reverse FCS is supported
3066 tANI_U32 chnlBonding:1; // 0 - Channel Bonding is not supported, 1 - Channel Bonding is supported
3067 tANI_U32 compression:1; // 0 - Compression is not supported, 1 - Compression is supported
3068 tANI_U32 concat:1; // 0 - Concat is not supported, 1 - Concat is supported
3069#endif
3070} __ani_attr_packed tSirBoardCapabilities, *tpSirBoardCapabilities;
3071
3072# define ANI_BCAP_EXT_VS_INT_ANT_MASK 0x1
3073# define ANI_BCAP_EXT_VS_INT_ANT_OFFSET 0
3074
3075# define ANI_BCAP_GAL_ON_BOARD_MASK 0x2
3076# define ANI_BCAP_GAL_ON_BOARD_OFFSET 1
3077
3078# define ANI_BCAP_SDRAM_MASK 0x4
3079# define ANI_BCAP_SDRAM_OFFSET 2
3080
3081# define ANI_BCAP_NUM_TRANSMITTERS_MASK 0x8
3082# define ANI_BCAP_NUM_TRANSMITTERS_OFFSET 3
3083
3084# define ANI_BCAP_NUM_RECEIVERS_MASK 0x30
3085# define ANI_BCAP_NUM_RECEIVERS_OFFSET 4
3086
3087# define ANI_BCAP_RADIO_ON_MASK 0xC0
3088# define ANI_BCAP_RADIO_ON_OFFSET 6
3089
3090# define ANI_BCAP_LO_TYPE_MASK 0x300
3091# define ANI_BCAP_LO_TYPE_OFFSET 8
3092
3093# define ANI_BCAP_BB_CHIP_VER_MASK 0xC00
3094# define ANI_BCAP_BB_CHIP_VER_OFFSET 10
3095
3096# define ANI_BCAP_CYG_DATE_CODE_MASK 0xFF000
3097# define ANI_BCAP_CYG_DATE_CODE_OFFSET 12
3098
3099# define ANI_BCAP_RADIO_OFF 0
3100# define ANI_BCAP_RADIO_ON 1
3101# define ANI_BCAP_RADIO_ON_NOT_SUPPORTED 3
3102
3103
3104/// WOW related structures
3105// SME -> PE <-> HAL
3106#define SIR_WOWL_BCAST_PATTERN_MAX_SIZE 128
3107#define SIR_WOWL_BCAST_MAX_NUM_PATTERNS 16
3108
3109// SME -> PE -> HAL - This is to add WOWL BCAST wake-up pattern.
3110// SME/HDD maintains the list of the BCAST wake-up patterns.
3111// This is a pass through message for PE
3112typedef struct sSirWowlAddBcastPtrn
3113{
3114 tANI_U8 ucPatternId; // Pattern ID
3115 // Pattern byte offset from beginning of the 802.11 packet to start of the
3116 // wake-up pattern
3117 tANI_U8 ucPatternByteOffset;
3118 tANI_U8 ucPatternSize; // Non-Zero Pattern size
3119 tANI_U8 ucPattern[SIR_WOWL_BCAST_PATTERN_MAX_SIZE]; // Pattern
3120 tANI_U8 ucPatternMaskSize; // Non-zero pattern mask size
3121 tANI_U8 ucPatternMask[SIR_WOWL_BCAST_PATTERN_MAX_SIZE]; // Pattern mask
3122 // Extra pattern data beyond 128 bytes
3123 tANI_U8 ucPatternExt[SIR_WOWL_BCAST_PATTERN_MAX_SIZE]; // Extra Pattern
3124 tANI_U8 ucPatternMaskExt[SIR_WOWL_BCAST_PATTERN_MAX_SIZE]; // Extra Pattern mask
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003125 tSirMacAddr bssId; // BSSID
Jeff Johnson295189b2012-06-20 16:38:30 -07003126} tSirWowlAddBcastPtrn, *tpSirWowlAddBcastPtrn;
3127
3128
3129// SME -> PE -> HAL - This is to delete WOWL BCAST wake-up pattern.
3130// SME/HDD maintains the list of the BCAST wake-up patterns.
3131// This is a pass through message for PE
3132typedef struct sSirWowlDelBcastPtrn
3133{
3134 /* Pattern ID of the wakeup pattern to be deleted */
3135 tANI_U8 ucPatternId;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003136 tSirMacAddr bssId; // BSSID
Jeff Johnson295189b2012-06-20 16:38:30 -07003137}tSirWowlDelBcastPtrn, *tpSirWowlDelBcastPtrn;
3138
3139
3140// SME->PE: Enter WOWLAN parameters
3141typedef struct sSirSmeWowlEnterParams
3142{
3143 /* Enables/disables magic packet filtering */
3144 tANI_U8 ucMagicPktEnable;
3145
3146 /* Magic pattern */
3147 tSirMacAddr magicPtrn;
3148
3149 /* Enables/disables packet pattern filtering */
3150 tANI_U8 ucPatternFilteringEnable;
3151
3152#ifdef WLAN_WAKEUP_EVENTS
3153 /* This configuration directs the WoW packet filtering to look for EAP-ID
3154 * requests embedded in EAPOL frames and use this as a wake source.
3155 */
3156 tANI_U8 ucWoWEAPIDRequestEnable;
3157
3158 /* This configuration directs the WoW packet filtering to look for EAPOL-4WAY
3159 * requests and use this as a wake source.
3160 */
3161 tANI_U8 ucWoWEAPOL4WayEnable;
3162
3163 /* This configuration allows a host wakeup on an network scan offload match.
3164 */
3165 tANI_U8 ucWowNetScanOffloadMatch;
3166
3167 /* This configuration allows a host wakeup on any GTK rekeying error.
3168 */
3169 tANI_U8 ucWowGTKRekeyError;
3170
3171 /* This configuration allows a host wakeup on BSS connection loss.
3172 */
3173 tANI_U8 ucWoWBSSConnLoss;
3174#endif // WLAN_WAKEUP_EVENTS
3175
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003176 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07003177} tSirSmeWowlEnterParams, *tpSirSmeWowlEnterParams;
3178
3179
3180// PE<->HAL: Enter WOWLAN parameters
3181typedef struct sSirHalWowlEnterParams
3182{
3183 /* Enables/disables magic packet filtering */
3184 tANI_U8 ucMagicPktEnable;
3185
3186 /* Magic pattern */
3187 tSirMacAddr magicPtrn;
3188
3189 /* Enables/disables packet pattern filtering in firmware.
3190 Enabling this flag enables broadcast pattern matching
3191 in Firmware. If unicast pattern matching is also desired,
3192 ucUcastPatternFilteringEnable flag must be set tot true
3193 as well
3194 */
3195 tANI_U8 ucPatternFilteringEnable;
3196
3197 /* Enables/disables unicast packet pattern filtering.
3198 This flag specifies whether we want to do pattern match
3199 on unicast packets as well and not just broadcast packets.
3200 This flag has no effect if the ucPatternFilteringEnable
3201 (main controlling flag) is set to false
3202 */
3203 tANI_U8 ucUcastPatternFilteringEnable;
3204
3205 /* This configuration is valid only when magicPktEnable=1.
3206 * It requests hardware to wake up when it receives the
3207 * Channel Switch Action Frame.
3208 */
3209 tANI_U8 ucWowChnlSwitchRcv;
3210
3211 /* This configuration is valid only when magicPktEnable=1.
3212 * It requests hardware to wake up when it receives the
3213 * Deauthentication Frame.
3214 */
3215 tANI_U8 ucWowDeauthRcv;
3216
3217 /* This configuration is valid only when magicPktEnable=1.
3218 * It requests hardware to wake up when it receives the
3219 * Disassociation Frame.
3220 */
3221 tANI_U8 ucWowDisassocRcv;
3222
3223 /* This configuration is valid only when magicPktEnable=1.
3224 * It requests hardware to wake up when it has missed
3225 * consecutive beacons. This is a hardware register
3226 * configuration (NOT a firmware configuration).
3227 */
3228 tANI_U8 ucWowMaxMissedBeacons;
3229
3230 /* This configuration is valid only when magicPktEnable=1.
3231 * This is a timeout value in units of microsec. It requests
3232 * hardware to unconditionally wake up after it has stayed
3233 * in WoWLAN mode for some time. Set 0 to disable this feature.
3234 */
3235 tANI_U8 ucWowMaxSleepUsec;
3236
3237#ifdef WLAN_WAKEUP_EVENTS
3238 /* This configuration directs the WoW packet filtering to look for EAP-ID
3239 * requests embedded in EAPOL frames and use this as a wake source.
3240 */
3241 tANI_U8 ucWoWEAPIDRequestEnable;
3242
3243 /* This configuration directs the WoW packet filtering to look for EAPOL-4WAY
3244 * requests and use this as a wake source.
3245 */
3246 tANI_U8 ucWoWEAPOL4WayEnable;
3247
3248 /* This configuration allows a host wakeup on an network scan offload match.
3249 */
3250 tANI_U8 ucWowNetScanOffloadMatch;
3251
3252 /* This configuration allows a host wakeup on any GTK rekeying error.
3253 */
3254 tANI_U8 ucWowGTKRekeyError;
3255
3256 /* This configuration allows a host wakeup on BSS connection loss.
3257 */
3258 tANI_U8 ucWoWBSSConnLoss;
3259#endif // WLAN_WAKEUP_EVENTS
3260
3261 /* Status code to be filled by HAL when it sends
3262 * SIR_HAL_WOWL_ENTER_RSP to PE.
3263 */
3264 eHalStatus status;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003265
3266 /*BSSID to find the current session
3267 */
3268 tANI_U8 bssIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07003269} tSirHalWowlEnterParams, *tpSirHalWowlEnterParams;
3270
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003271// PE<->HAL: Exit WOWLAN parameters
3272typedef struct sSirHalWowlExitParams
3273{
3274 /* Status code to be filled by HAL when it sends
3275 * SIR_HAL_WOWL_EXIT_RSP to PE.
3276 */
3277 eHalStatus status;
3278
3279 /*BSSIDX to find the current session
3280 */
3281 tANI_U8 bssIdx;
3282} tSirHalWowlExitParams, *tpSirHalWowlExitParams;
3283
Jeff Johnson295189b2012-06-20 16:38:30 -07003284
3285#define SIR_MAX_NAME_SIZE 64
3286#define SIR_MAX_TEXT_SIZE 32
3287
3288typedef struct sSirName {
3289 v_U8_t num_name;
3290 v_U8_t name[SIR_MAX_NAME_SIZE];
3291} tSirName;
3292
3293typedef struct sSirText {
3294 v_U8_t num_text;
3295 v_U8_t text[SIR_MAX_TEXT_SIZE];
3296} tSirText;
3297
3298
3299#define SIR_WPS_PROBRSP_VER_PRESENT 0x00000001
3300#define SIR_WPS_PROBRSP_STATE_PRESENT 0x00000002
3301#define SIR_WPS_PROBRSP_APSETUPLOCK_PRESENT 0x00000004
3302#define SIR_WPS_PROBRSP_SELECTEDREGISTRA_PRESENT 0x00000008
3303#define SIR_WPS_PROBRSP_DEVICEPASSWORDID_PRESENT 0x00000010
3304#define SIR_WPS_PROBRSP_SELECTEDREGISTRACFGMETHOD_PRESENT 0x00000020
3305#define SIR_WPS_PROBRSP_RESPONSETYPE_PRESENT 0x00000040
3306#define SIR_WPS_PROBRSP_UUIDE_PRESENT 0x00000080
3307#define SIR_WPS_PROBRSP_MANUFACTURE_PRESENT 0x00000100
3308#define SIR_WPS_PROBRSP_MODELNAME_PRESENT 0x00000200
3309#define SIR_WPS_PROBRSP_MODELNUMBER_PRESENT 0x00000400
3310#define SIR_WPS_PROBRSP_SERIALNUMBER_PRESENT 0x00000800
3311#define SIR_WPS_PROBRSP_PRIMARYDEVICETYPE_PRESENT 0x00001000
3312#define SIR_WPS_PROBRSP_DEVICENAME_PRESENT 0x00002000
3313#define SIR_WPS_PROBRSP_CONFIGMETHODS_PRESENT 0x00004000
3314#define SIR_WPS_PROBRSP_RF_BANDS_PRESENT 0x00008000
3315
3316
3317typedef struct sSirWPSProbeRspIE {
3318 v_U32_t FieldPresent;
3319 v_U32_t Version; // Version. 0x10 = version 1.0, 0x11 = etc.
3320 v_U32_t wpsState; // 1 = unconfigured, 2 = configured.
3321 v_BOOL_t APSetupLocked; // Must be included if value is TRUE
3322 v_BOOL_t SelectedRegistra; //BOOL: indicates if the user has recently activated a Registrar to add an Enrollee.
3323 v_U16_t DevicePasswordID; // Device Password ID
3324 v_U16_t SelectedRegistraCfgMethod; // Selected Registrar config method
3325 v_U8_t ResponseType; // Response type
3326 v_U8_t UUID_E[16]; // Unique identifier of the AP.
3327 tSirName Manufacture;
3328 tSirText ModelName;
3329 tSirText ModelNumber;
3330 tSirText SerialNumber;
3331 v_U32_t PrimaryDeviceCategory ; // Device Category ID: 1Computer, 2Input Device, ...
3332 v_U8_t PrimaryDeviceOUI[4] ; // Vendor specific OUI for Device Sub Category
3333 v_U32_t DeviceSubCategory ; // Device Sub Category ID: 1-PC, 2-Server if Device Category ID is computer
3334 tSirText DeviceName;
3335 v_U16_t ConfigMethod; // Configuaration method
3336 v_U8_t RFBand; // RF bands available on the AP
3337} tSirWPSProbeRspIE;
3338
3339#define SIR_WPS_BEACON_VER_PRESENT 0x00000001
3340#define SIR_WPS_BEACON_STATE_PRESENT 0x00000002
3341#define SIR_WPS_BEACON_APSETUPLOCK_PRESENT 0x00000004
3342#define SIR_WPS_BEACON_SELECTEDREGISTRA_PRESENT 0x00000008
3343#define SIR_WPS_BEACON_DEVICEPASSWORDID_PRESENT 0x00000010
3344#define SIR_WPS_BEACON_SELECTEDREGISTRACFGMETHOD_PRESENT 0x00000020
3345#define SIR_WPS_BEACON_UUIDE_PRESENT 0x00000080
3346#define SIR_WPS_BEACON_RF_BANDS_PRESENT 0x00000100
3347
3348typedef struct sSirWPSBeaconIE {
3349 v_U32_t FieldPresent;
3350 v_U32_t Version; // Version. 0x10 = version 1.0, 0x11 = etc.
3351 v_U32_t wpsState; // 1 = unconfigured, 2 = configured.
3352 v_BOOL_t APSetupLocked; // Must be included if value is TRUE
3353 v_BOOL_t SelectedRegistra; //BOOL: indicates if the user has recently activated a Registrar to add an Enrollee.
3354 v_U16_t DevicePasswordID; // Device Password ID
3355 v_U16_t SelectedRegistraCfgMethod; // Selected Registrar config method
3356 v_U8_t UUID_E[16]; // Unique identifier of the AP.
3357 v_U8_t RFBand; // RF bands available on the AP
3358} tSirWPSBeaconIE;
3359
3360#define SIR_WPS_ASSOCRSP_VER_PRESENT 0x00000001
3361#define SIR_WPS_ASSOCRSP_RESPONSETYPE_PRESENT 0x00000002
3362
3363typedef struct sSirWPSAssocRspIE {
3364 v_U32_t FieldPresent;
3365 v_U32_t Version;
3366 v_U8_t ResposeType;
3367} tSirWPSAssocRspIE;
3368
3369typedef struct sSirAPWPSIEs {
3370 tSirWPSProbeRspIE SirWPSProbeRspIE; /*WPS Set Probe Respose IE*/
3371 tSirWPSBeaconIE SirWPSBeaconIE; /*WPS Set Beacon IE*/
3372 tSirWPSAssocRspIE SirWPSAssocRspIE; /*WPS Set Assoc Response IE*/
3373} tSirAPWPSIEs, *tpSiriAPWPSIEs;
3374
3375typedef struct sSirUpdateAPWPSIEsReq
3376{
3377 tANI_U16 messageType; // eWNI_SME_UPDATE_APWPSIE_REQ
3378 tANI_U16 length;
3379 tANI_U16 transactionId; //Transaction ID for cmd
3380 tSirMacAddr bssId; // BSSID
3381 tANI_U8 sessionId; //Session ID
3382 tSirAPWPSIEs APWPSIEs;
3383} tSirUpdateAPWPSIEsReq, *tpSirUpdateAPWPSIEsReq;
3384
3385typedef struct sSirUpdateParams
3386{
3387 tANI_U16 messageType;
3388 tANI_U16 length;
3389 tANI_U8 sessionId; // Session ID
3390 tANI_U8 ssidHidden; // Hide SSID
3391} tSirUpdateParams, *tpSirUpdateParams;
3392
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -08003393//Beacon Interval
3394typedef struct sSirChangeBIParams
3395{
3396 tANI_U16 messageType;
3397 tANI_U16 length;
3398 tANI_U16 beaconInterval; // Beacon Interval
3399 tSirMacAddr bssId;
3400 tANI_U8 sessionId; // Session ID
3401} tSirChangeBIParams, *tpSirChangeBIParams;
3402
Sandeep Puligilla11d49a62014-01-30 12:05:16 +05303403typedef struct sSirOBSSHT40Param
3404{
3405 tANI_U16 OBSSScanPassiveDwellTime;
3406 tANI_U16 OBSSScanActiveDwellTime;
3407 tANI_U16 BSSChannelWidthTriggerScanInterval;
3408 tANI_U16 OBSSScanPassiveTotalPerChannel;
3409 tANI_U16 OBSSScanActiveTotalPerChannel;
3410 tANI_U16 BSSWidthChannelTransitionDelayFactor;
3411 tANI_U16 OBSSScanActivityThreshold;
3412}tSirOBSSHT40Param, *tpOBSSHT40Param;
3413
Jeff Johnson295189b2012-06-20 16:38:30 -07003414#define SIR_WPS_UUID_LEN 16
3415#define SIR_WPS_PBC_WALK_TIME 120 // 120 Second
3416
3417typedef struct sSirWPSPBCSession {
3418 struct sSirWPSPBCSession *next;
3419 tSirMacAddr addr;
3420 tANI_U8 uuid_e[SIR_WPS_UUID_LEN];
3421 tANI_TIMESTAMP timestamp;
3422} tSirWPSPBCSession;
3423
3424typedef struct sSirSmeGetWPSPBCSessionsReq
3425{
3426 tANI_U16 messageType; // eWNI_SME_GET_WPSPBC_SESSION_REQ
3427 tANI_U16 length;
3428 void *pUsrContext;
3429 void *pSapEventCallback;
3430 tSirMacAddr bssId; // BSSID
3431 tSirMacAddr pRemoveMac; // MAC Address of STA in WPS Session to be removed
3432} tSirSmeGetWPSPBCSessionsReq, *tpSirSmeGetWPSPBCSessionsReq;
3433
3434typedef struct sSirWPSPBCProbeReq
3435{
3436 tSirMacAddr peerMacAddr;
3437 tANI_U16 probeReqIELen;
3438 tANI_U8 probeReqIE[512];
3439} tSirWPSPBCProbeReq, *tpSirWPSPBCProbeReq;
3440
3441// probereq from peer, when wsc is enabled
3442typedef struct sSirSmeProbeReqInd
3443{
3444 tANI_U16 messageType; // eWNI_SME_WPS_PBC_PROBE_REQ_IND
3445 tANI_U16 length;
3446 tANI_U8 sessionId;
3447 tSirMacAddr bssId;
3448 tSirWPSPBCProbeReq WPSPBCProbeReq;
3449} tSirSmeProbeReqInd, *tpSirSmeProbeReqInd;
3450
3451typedef struct sSirUpdateAPWPARSNIEsReq
3452{
3453 tANI_U16 messageType; // eWNI_SME_SET_APWPARSNIEs_REQ
3454 tANI_U16 length;
3455 tANI_U16 transactionId; //Transaction ID for cmd
3456 tSirMacAddr bssId; // BSSID
3457 tANI_U8 sessionId; //Session ID
3458 tSirRSNie APWPARSNIEs;
3459} tSirUpdateAPWPARSNIEsReq, *tpSirUpdateAPWPARSNIEsReq;
3460
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08003461#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Varun Reddy Yeturu52231ea2014-02-06 12:00:56 -08003462#define SIR_ROAM_MAX_CHANNELS 80
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08003463#define SIR_ROAM_SCAN_MAX_PB_REQ_SIZE 450
3464#define CHANNEL_LIST_STATIC 1 /* Occupied channel list remains static */
3465#define CHANNEL_LIST_DYNAMIC_INIT 2 /* Occupied channel list can be learnt after init */
3466#define CHANNEL_LIST_DYNAMIC_FLUSH 3 /* Occupied channel list can be learnt after flush */
3467#define CHANNEL_LIST_DYNAMIC_UPDATE 4 /* Occupied channel list can be learnt after update */
3468#define SIR_ROAM_SCAN_24G_DEFAULT_CH 1
3469#define SIR_ROAM_SCAN_5G_DEFAULT_CH 36
Varun Reddy Yeturu6c5e25c2014-01-09 21:55:37 -08003470
3471/*Adaptive Thresholds to be used for FW based scanning*/
3472#define LFR_SENSITIVITY_THR_1MBPS -89
3473#define LFR_LOOKUP_THR_1MBPS -78
3474#define LFR_SENSITIVITY_THR_2MBPS -87
3475#define LFR_LOOKUP_THR_2MBPS -78
3476#define LFR_SENSITIVITY_THR_5_5MBPS -86
3477#define LFR_LOOKUP_THR_5_5MBPS -77
3478#define LFR_SENSITIVITY_THR_11MBPS -85
3479#define LFR_LOOKUP_THR_11MBPS -76
3480#define LFR_SENSITIVITY_THR_6MBPS_2G -83
3481#define LFR_LOOKUP_THR_6MBPS_2G -78
3482#define LFR_SENSITIVITY_THR_6MBPS_5G -83
3483#define LFR_LOOKUP_THR_6MBPS_5G -78
3484#define LFR_SENSITIVITY_THR_12MBPS_2G -83
3485#define LFR_LOOKUP_THR_12MBPS_2G -78
3486#define LFR_SENSITIVITY_THR_12MBPS_5G -81
3487#define LFR_LOOKUP_THR_12MBPS_5G -76
3488#define LFR_SENSITIVITY_THR_24MBPS_2G -81
3489#define LFR_LOOKUP_THR_24MBPS_2G -76
3490#define LFR_SENSITIVITY_THR_24MBPS_5G -79
3491#define LFR_LOOKUP_THR_24MBPS_5G -74
3492#define LFR_SENSITIVITY_THR_DEFAULT 0
3493#define LFR_LOOKUP_THR_DEFAULT -78
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08003494#endif //WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Jeff Johnson295189b2012-06-20 16:38:30 -07003495
3496// SME -> HAL - This is the host offload request.
3497#define SIR_IPV4_ARP_REPLY_OFFLOAD 0
3498#define SIR_IPV6_NEIGHBOR_DISCOVERY_OFFLOAD 1
3499#define SIR_IPV6_NS_OFFLOAD 2
3500#define SIR_OFFLOAD_DISABLE 0
3501#define SIR_OFFLOAD_ENABLE 1
3502#define SIR_OFFLOAD_BCAST_FILTER_ENABLE 0x2
Madan Mohan Koyyalamudibadffe72013-09-11 13:09:14 +05303503#define SIR_OFFLOAD_MCAST_FILTER_ENABLE 0x4
Jeff Johnson295189b2012-06-20 16:38:30 -07003504#define SIR_OFFLOAD_ARP_AND_BCAST_FILTER_ENABLE (SIR_OFFLOAD_ENABLE|SIR_OFFLOAD_BCAST_FILTER_ENABLE)
Madan Mohan Koyyalamudibadffe72013-09-11 13:09:14 +05303505#define SIR_OFFLOAD_NS_AND_MCAST_FILTER_ENABLE (SIR_OFFLOAD_ENABLE|SIR_OFFLOAD_MCAST_FILTER_ENABLE)
Jeff Johnson295189b2012-06-20 16:38:30 -07003506
3507#ifdef WLAN_NS_OFFLOAD
3508typedef struct sSirNsOffloadReq
3509{
3510 tANI_U8 srcIPv6Addr[16];
3511 tANI_U8 selfIPv6Addr[16];
3512 //Only support 2 possible Network Advertisement IPv6 address
3513 tANI_U8 targetIPv6Addr[SIR_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA][16];
3514 tANI_U8 selfMacAddr[6];
3515 tANI_U8 srcIPv6AddrValid;
3516 tANI_U8 targetIPv6AddrValid[SIR_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA];
Gopichand Nakkala746a9452013-06-11 12:45:54 +05303517 tANI_U8 slotIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07003518} tSirNsOffloadReq, *tpSirNsOffloadReq;
3519#endif //WLAN_NS_OFFLOAD
3520
3521typedef struct sSirHostOffloadReq
3522{
3523 tANI_U8 offloadType;
3524 tANI_U8 enableOrDisable;
3525 union
3526 {
3527 tANI_U8 hostIpv4Addr [4];
3528 tANI_U8 hostIpv6Addr [16];
3529 } params;
3530#ifdef WLAN_NS_OFFLOAD
3531 tSirNsOffloadReq nsOffloadInfo;
3532#endif //WLAN_NS_OFFLOAD
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003533 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07003534} tSirHostOffloadReq, *tpSirHostOffloadReq;
3535
3536/* Packet Types. */
3537#define SIR_KEEP_ALIVE_NULL_PKT 1
3538#define SIR_KEEP_ALIVE_UNSOLICIT_ARP_RSP 2
3539
3540/* Enable or disable offload. */
3541#define SIR_KEEP_ALIVE_DISABLE 0
3542#define SIR_KEEP_ALIVE_ENABLE 1
3543
3544/* Keep Alive request. */
3545typedef struct sSirKeepAliveReq
3546{
3547 v_U8_t packetType;
3548 v_U32_t timePeriod;
3549 tSirIpv4Addr hostIpv4Addr;
3550 tSirIpv4Addr destIpv4Addr;
3551 tSirMacAddr destMacAddr;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003552 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07003553} tSirKeepAliveReq, *tpSirKeepAliveReq;
3554
3555typedef struct sSirSmeAddStaSelfReq
3556{
3557 tANI_U16 mesgType;
3558 tANI_U16 mesgLen;
3559 tSirMacAddr selfMacAddr;
Kiran Kumar Lokere0ad5cd32013-06-25 11:26:22 -07003560 tVOS_CON_MODE currDeviceMode;
Jeff Johnson295189b2012-06-20 16:38:30 -07003561}tSirSmeAddStaSelfReq, *tpSirSmeAddStaSelfReq;
3562
3563typedef struct sSirSmeDelStaSelfReq
3564{
3565 tANI_U16 mesgType;
3566 tANI_U16 mesgLen;
3567 tSirMacAddr selfMacAddr;
3568}tSirSmeDelStaSelfReq, *tpSirSmeDelStaSelfReq;
3569
3570typedef struct sSirSmeAddStaSelfRsp
3571{
3572 tANI_U16 mesgType;
3573 tANI_U16 mesgLen;
3574 tANI_U16 status;
3575 tSirMacAddr selfMacAddr;
3576}tSirSmeAddStaSelfRsp, *tpSirSmeAddStaSelfRsp;
3577
3578typedef struct sSirSmeDelStaSelfRsp
3579{
3580 tANI_U16 mesgType;
3581 tANI_U16 mesgLen;
3582 tANI_U16 status;
3583 tSirMacAddr selfMacAddr;
3584}tSirSmeDelStaSelfRsp, *tpSirSmeDelStaSelfRsp;
3585
3586/* Coex Indication defines -
3587 should match WLAN_COEX_IND_DATA_SIZE
3588 should match WLAN_COEX_IND_TYPE_DISABLE_HB_MONITOR
3589 should match WLAN_COEX_IND_TYPE_ENABLE_HB_MONITOR */
3590#define SIR_COEX_IND_DATA_SIZE (4)
3591#define SIR_COEX_IND_TYPE_DISABLE_HB_MONITOR (0)
3592#define SIR_COEX_IND_TYPE_ENABLE_HB_MONITOR (1)
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003593#define SIR_COEX_IND_TYPE_SCAN_COMPROMISED (2)
3594#define SIR_COEX_IND_TYPE_SCAN_NOT_COMPROMISED (3)
Kiran Kumar Lokere458d7322013-05-29 14:29:43 -07003595#define SIR_COEX_IND_TYPE_DISABLE_AGGREGATION_IN_2p4 (4)
3596#define SIR_COEX_IND_TYPE_ENABLE_AGGREGATION_IN_2p4 (5)
Jeff Johnson295189b2012-06-20 16:38:30 -07003597
3598typedef struct sSirSmeCoexInd
3599{
3600 tANI_U16 mesgType;
3601 tANI_U16 mesgLen;
3602 tANI_U32 coexIndType;
3603 tANI_U32 coexIndData[SIR_COEX_IND_DATA_SIZE];
3604}tSirSmeCoexInd, *tpSirSmeCoexInd;
3605
Jeff Johnson295189b2012-06-20 16:38:30 -07003606typedef struct sSirSmeMgmtFrameInd
3607{
3608 tANI_U16 mesgType;
3609 tANI_U16 mesgLen;
Chilam NG571c65a2013-01-19 12:27:36 +05303610 tANI_U32 rxChan;
Jeff Johnson295189b2012-06-20 16:38:30 -07003611 tANI_U8 sessionId;
3612 tANI_U8 frameType;
Chilam NG571c65a2013-01-19 12:27:36 +05303613 tANI_S8 rxRssi;
Jeff Johnson295189b2012-06-20 16:38:30 -07003614 tANI_U8 frameBuf[1]; //variable
3615}tSirSmeMgmtFrameInd, *tpSirSmeMgmtFrameInd;
Jeff Johnson295189b2012-06-20 16:38:30 -07003616
Chet Lanctot186b5732013-03-18 10:26:30 -07003617#ifdef WLAN_FEATURE_11W
3618typedef struct sSirSmeUnprotMgmtFrameInd
3619{
3620 tANI_U8 sessionId;
3621 tANI_U8 frameType;
3622 tANI_U8 frameLen;
3623 tANI_U8 frameBuf[1]; //variable
3624}tSirSmeUnprotMgmtFrameInd, *tpSirSmeUnprotMgmtFrameInd;
3625#endif
3626
Jeff Johnson295189b2012-06-20 16:38:30 -07003627#define SIR_IS_FULL_POWER_REASON_DISCONNECTED(eReason) \
3628 ( ( eSME_LINK_DISCONNECTED_BY_HDD == (eReason) ) || \
3629 ( eSME_LINK_DISCONNECTED_BY_OTHER == (eReason) ) || \
3630 (eSME_FULL_PWR_NEEDED_BY_CHANNEL_SWITCH == (eReason)))
3631#define SIR_IS_FULL_POWER_NEEDED_BY_HDD(eReason) \
3632 ( ( eSME_LINK_DISCONNECTED_BY_HDD == (eReason) ) || ( eSME_FULL_PWR_NEEDED_BY_HDD == (eReason) ) )
3633
3634/* P2P Power Save Related */
Jeff Johnson295189b2012-06-20 16:38:30 -07003635typedef struct sSirNoAParam
3636{
3637 tANI_U8 ctWindow:7;
3638 tANI_U8 OppPS:1;
3639 tANI_U8 count;
3640 tANI_U32 duration;
3641 tANI_U32 interval;
3642 tANI_U32 singleNoADuration;
3643 tANI_U8 psSelection;
3644}tSirNoAParam, *tpSirNoAParam;
Jeff Johnson295189b2012-06-20 16:38:30 -07003645
Jeff Johnson295189b2012-06-20 16:38:30 -07003646typedef struct sSirWlanSuspendParam
3647{
3648 tANI_U8 configuredMcstBcstFilterSetting;
3649}tSirWlanSuspendParam,*tpSirWlanSuspendParam;
3650
3651typedef struct sSirWlanResumeParam
3652{
3653 tANI_U8 configuredMcstBcstFilterSetting;
3654}tSirWlanResumeParam,*tpSirWlanResumeParam;
3655
3656typedef struct sSirWlanSetRxpFilters
3657{
3658 tANI_U8 configuredMcstBcstFilterSetting;
3659 tANI_U8 setMcstBcstFilter;
3660}tSirWlanSetRxpFilters,*tpSirWlanSetRxpFilters;
Jeff Johnson295189b2012-06-20 16:38:30 -07003661
3662
3663#ifdef FEATURE_WLAN_SCAN_PNO
3664//
3665// PNO Messages
3666//
3667
3668// Set PNO
3669#define SIR_PNO_MAX_NETW_CHANNELS 26
Pratik Bhalgatd4404592012-11-22 17:49:14 +05303670#define SIR_PNO_MAX_NETW_CHANNELS_EX 60
Jeff Johnson295189b2012-06-20 16:38:30 -07003671#define SIR_PNO_MAX_SUPP_NETWORKS 16
3672#define SIR_PNO_MAX_SCAN_TIMERS 10
3673
3674/*size based of dot11 declaration without extra IEs as we will not carry those for PNO*/
3675#define SIR_PNO_MAX_PB_REQ_SIZE 450
3676
3677#define SIR_PNO_24G_DEFAULT_CH 1
3678#define SIR_PNO_5G_DEFAULT_CH 36
3679
3680typedef enum
3681{
3682 SIR_PNO_MODE_IMMEDIATE,
3683 SIR_PNO_MODE_ON_SUSPEND,
3684 SIR_PNO_MODE_ON_RESUME,
3685 SIR_PNO_MODE_MAX
3686} eSirPNOMode;
3687
3688typedef struct
3689{
3690 tSirMacSSid ssId;
3691 tANI_U32 authentication;
3692 tANI_U32 encryption;
3693 tANI_U32 bcastNetwType;
3694 tANI_U8 ucChannelCount;
Gopichand Nakkala8e93fde2013-05-10 17:40:12 +05303695 tANI_U8 aChannels[SIR_PNO_MAX_NETW_CHANNELS_EX];
Jeff Johnson295189b2012-06-20 16:38:30 -07003696 tANI_U8 rssiThreshold;
3697} tSirNetworkType;
3698
3699typedef struct
3700{
3701 tANI_U32 uTimerValue;
3702 tANI_U32 uTimerRepeat;
3703}tSirScanTimer;
3704
3705typedef struct
3706{
3707 tANI_U8 ucScanTimersCount;
3708 tSirScanTimer aTimerValues[SIR_PNO_MAX_SCAN_TIMERS];
3709} tSirScanTimersType;
3710
Vinay Krishna Erannaf0e523b2014-03-01 21:00:16 +05303711/*Pref Net Req status */
3712typedef void(*PNOReqStatusCb)(void *callbackContext, VOS_STATUS status);
3713
3714
Jeff Johnson295189b2012-06-20 16:38:30 -07003715typedef struct sSirPNOScanReq
3716{
3717 tANI_U8 enable;
Vinay Krishna Erannaf0e523b2014-03-01 21:00:16 +05303718 PNOReqStatusCb statusCallback;
3719 void *callbackContext;
Jeff Johnson295189b2012-06-20 16:38:30 -07003720 eSirPNOMode modePNO;
3721 tANI_U8 ucNetworksCount;
3722 tSirNetworkType aNetworks[SIR_PNO_MAX_SUPP_NETWORKS];
3723 tSirScanTimersType scanTimers;
3724
3725 /*added by SME*/
3726 tANI_U16 us24GProbeTemplateLen;
3727 tANI_U8 p24GProbeTemplate[SIR_PNO_MAX_PB_REQ_SIZE];
3728 tANI_U16 us5GProbeTemplateLen;
3729 tANI_U8 p5GProbeTemplate[SIR_PNO_MAX_PB_REQ_SIZE];
3730} tSirPNOScanReq, *tpSirPNOScanReq;
3731
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08003732typedef struct sSirSetRSSIFilterReq
3733{
3734 tANI_U8 rssiThreshold;
3735} tSirSetRSSIFilterReq, *tpSirSetRSSIFilterReq;
3736
3737
3738// Update Scan Params
3739typedef struct {
3740 tANI_U8 b11dEnabled;
3741 tANI_U8 b11dResolved;
3742 tANI_U8 ucChannelCount;
3743 tANI_U8 aChannels[SIR_PNO_MAX_NETW_CHANNELS_EX];
3744 tANI_U16 usPassiveMinChTime;
3745 tANI_U16 usPassiveMaxChTime;
3746 tANI_U16 usActiveMinChTime;
3747 tANI_U16 usActiveMaxChTime;
3748 tANI_U8 ucCBState;
3749} tSirUpdateScanParams, * tpSirUpdateScanParams;
3750
3751// Preferred Network Found Indication
3752typedef struct
3753{
3754 tANI_U16 mesgType;
3755 tANI_U16 mesgLen;
3756 /* Network that was found with the highest RSSI*/
3757 tSirMacSSid ssId;
3758 /* Indicates the RSSI */
3759 tANI_U8 rssi;
3760 /* Length of the beacon or probe response
3761 * corresponding to the candidate found by PNO */
3762 tANI_U32 frameLength;
3763 /* Index to memory location where the contents of
3764 * beacon or probe response frame will be copied */
3765 tANI_U8 data[1];
3766} tSirPrefNetworkFoundInd, *tpSirPrefNetworkFoundInd;
3767#endif //FEATURE_WLAN_SCAN_PNO
3768
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07003769#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
3770typedef struct
3771{
3772 tSirMacSSid ssId;
3773 tANI_U8 currAPbssid[WNI_CFG_BSSID_LEN];
3774 tANI_U32 authentication;
3775 tANI_U8 encryption;
3776 tANI_U8 mcencryption;
3777 tANI_U8 ChannelCount;
3778 tANI_U8 ChannelCache[SIR_ROAM_MAX_CHANNELS];
3779
3780} tSirRoamNetworkType;
3781
3782typedef struct SirMobilityDomainInfo
3783{
3784 tANI_U8 mdiePresent;
3785 tANI_U16 mobilityDomain;
3786} tSirMobilityDomainInfo;
3787
3788typedef struct sSirRoamOffloadScanReq
3789{
3790 eAniBoolean RoamScanOffloadEnabled;
Sameer Thalappil4ae66ec2013-11-05 14:17:35 -08003791 eAniBoolean MAWCEnabled;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07003792 tANI_S8 LookupThreshold;
Varun Reddy Yeturu6c5e25c2014-01-09 21:55:37 -08003793 tANI_S8 RxSensitivityThreshold;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07003794 tANI_U8 RoamRssiDiff;
3795 tANI_U8 ChannelCacheType;
3796 tANI_U8 Command;
3797 tANI_U8 StartScanReason;
3798 tANI_U16 NeighborScanTimerPeriod;
3799 tANI_U16 NeighborRoamScanRefreshPeriod;
3800 tANI_U16 NeighborScanChannelMinTime;
3801 tANI_U16 NeighborScanChannelMaxTime;
3802 tANI_U16 EmptyRefreshScanPeriod;
3803 tANI_U8 ValidChannelCount;
3804 tANI_U8 ValidChannelList[SIR_ROAM_MAX_CHANNELS];
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08003805 eAniBoolean IsESEEnabled;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07003806 tANI_U16 us24GProbeTemplateLen;
3807 tANI_U8 p24GProbeTemplate[SIR_ROAM_SCAN_MAX_PB_REQ_SIZE];
3808 tANI_U16 us5GProbeTemplateLen;
3809 tANI_U8 p5GProbeTemplate[SIR_ROAM_SCAN_MAX_PB_REQ_SIZE];
Varun Reddy Yeturu920df212013-05-22 08:07:23 -07003810 tANI_U8 nProbes;
3811 tANI_U16 HomeAwayTime;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07003812 tSirRoamNetworkType ConnectedNetwork;
3813 tSirMobilityDomainInfo MDID;
3814} tSirRoamOffloadScanReq, *tpSirRoamOffloadScanReq;
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08003815#endif //WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Jeff Johnson295189b2012-06-20 16:38:30 -07003816
3817#define SIR_NOCHANGE_POWER_VALUE 0xFFFFFFFF
3818
3819//Power Parameters Type
3820typedef enum
3821{
3822 eSIR_IGNORE_DTIM = 1,
3823 eSIR_LISTEN_INTERVAL = 2,
3824 eSIR_MCAST_BCAST_FILTER = 3,
3825 eSIR_ENABLE_BET = 4,
3826 eSIR_BET_INTERVAL = 5
3827}tPowerParamType;
3828
3829//Power Parameters Value s
3830typedef struct
3831{
3832 /* Ignore DTIM */
3833 tANI_U32 uIgnoreDTIM;
3834
3835 /* DTIM Period */
3836 tANI_U32 uDTIMPeriod;
3837
3838 /* Listen Interval */
3839 tANI_U32 uListenInterval;
3840
3841 /* Broadcast Multicas Filter */
3842 tANI_U32 uBcastMcastFilter;
3843
3844 /* Beacon Early Termination */
3845 tANI_U32 uEnableBET;
3846
3847 /* Beacon Early Termination Interval */
3848 tANI_U32 uBETInterval;
3849
Yue Mac24062f2013-05-13 17:01:29 -07003850 /* MAX LI for modulated DTIM */
3851 tANI_U32 uMaxLIModulatedDTIM;
3852
Jeff Johnson295189b2012-06-20 16:38:30 -07003853}tSirSetPowerParamsReq, *tpSirSetPowerParamsReq;
3854
3855typedef struct sSirTxPerTrackingParam
3856{
3857 tANI_U8 ucTxPerTrackingEnable; /* 0: disable, 1:enable */
3858 tANI_U8 ucTxPerTrackingPeriod; /* Check period, unit is sec. Once tx_stat_chk enable, firmware will check PER in this period periodically */
3859 tANI_U8 ucTxPerTrackingRatio; /* (Fail TX packet)/(Total TX packet) ratio, the unit is 10%. for example, 5 means 50% TX failed rate, default is 5. If current TX packet failed rate bigger than this ratio then firmware send WLC_E_TX_STAT_ERROR event to driver */
3860 tANI_U32 uTxPerTrackingWatermark; /* A watermark of check number, once the tx packet exceed this number, we do the check, default is 5 */
3861}tSirTxPerTrackingParam, *tpSirTxPerTrackingParam;
3862
3863#ifdef WLAN_FEATURE_PACKET_FILTERING
3864/*---------------------------------------------------------------------------
3865 Packet Filtering Parameters
3866---------------------------------------------------------------------------*/
3867#define SIR_IPV4_ADDR_LEN 4
3868#define SIR_MAC_ADDR_LEN 6
3869#define SIR_MAX_FILTER_TEST_DATA_LEN 8
3870#define SIR_MAX_NUM_MULTICAST_ADDRESS 240
3871#define SIR_MAX_NUM_FILTERS 20
3872#define SIR_MAX_NUM_TESTS_PER_FILTER 10
3873
3874//
3875// Receive Filter Parameters
3876//
3877typedef enum
3878{
3879 SIR_RCV_FILTER_TYPE_INVALID,
3880 SIR_RCV_FILTER_TYPE_FILTER_PKT,
3881 SIR_RCV_FILTER_TYPE_BUFFER_PKT,
3882 SIR_RCV_FILTER_TYPE_MAX_ENUM_SIZE
3883}eSirReceivePacketFilterType;
3884
3885typedef enum
3886{
3887 SIR_FILTER_HDR_TYPE_INVALID,
3888 SIR_FILTER_HDR_TYPE_MAC,
3889 SIR_FILTER_HDR_TYPE_ARP,
3890 SIR_FILTER_HDR_TYPE_IPV4,
3891 SIR_FILTER_HDR_TYPE_IPV6,
3892 SIR_FILTER_HDR_TYPE_UDP,
3893 SIR_FILTER_HDR_TYPE_MAX
3894}eSirRcvPktFltProtocolType;
3895
3896typedef enum
3897{
3898 SIR_FILTER_CMP_TYPE_INVALID,
3899 SIR_FILTER_CMP_TYPE_EQUAL,
3900 SIR_FILTER_CMP_TYPE_MASK_EQUAL,
3901 SIR_FILTER_CMP_TYPE_NOT_EQUAL,
3902 SIR_FILTER_CMP_TYPE_MASK_NOT_EQUAL,
3903 SIR_FILTER_CMP_TYPE_MAX
3904}eSirRcvPktFltCmpFlagType;
3905
3906typedef struct sSirRcvPktFilterFieldParams
3907{
3908 eSirRcvPktFltProtocolType protocolLayer;
3909 eSirRcvPktFltCmpFlagType cmpFlag;
3910 /* Length of the data to compare */
3911 tANI_U16 dataLength;
3912 /* from start of the respective frame header */
3913 tANI_U8 dataOffset;
3914 /* Reserved field */
3915 tANI_U8 reserved;
3916 /* Data to compare */
3917 tANI_U8 compareData[SIR_MAX_FILTER_TEST_DATA_LEN];
3918 /* Mask to be applied on the received packet data before compare */
3919 tANI_U8 dataMask[SIR_MAX_FILTER_TEST_DATA_LEN];
3920}tSirRcvPktFilterFieldParams, *tpSirRcvPktFilterFieldParams;
3921
3922typedef struct sSirRcvPktFilterCfg
3923{
3924 tANI_U8 filterId;
3925 eSirReceivePacketFilterType filterType;
3926 tANI_U32 numFieldParams;
3927 tANI_U32 coalesceTime;
Jeff Johnsone7245742012-09-05 17:12:55 -07003928 tSirMacAddr selfMacAddr;
3929 tSirMacAddr bssId; //Bssid of the connected AP
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003930 tSirRcvPktFilterFieldParams paramsData[SIR_MAX_NUM_TESTS_PER_FILTER];
Jeff Johnson295189b2012-06-20 16:38:30 -07003931}tSirRcvPktFilterCfgType, *tpSirRcvPktFilterCfgType;
3932
3933//
3934// Filter Packet Match Count Parameters
3935//
3936typedef struct sSirRcvFltPktMatchCnt
3937{
3938 tANI_U8 filterId;
3939 tANI_U32 matchCnt;
3940} tSirRcvFltPktMatchCnt, tpSirRcvFltPktMatchCnt;
3941
3942typedef struct sSirRcvFltPktMatchRsp
3943{
3944 tANI_U16 mesgType;
3945 tANI_U16 mesgLen;
3946
3947 /* Success or Failure */
3948 tANI_U32 status;
3949 tSirRcvFltPktMatchCnt filterMatchCnt[SIR_MAX_NUM_FILTERS];
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003950 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07003951} tSirRcvFltPktMatchRsp, *tpSirRcvFltPktMatchRsp;
3952
3953//
3954// Receive Filter Clear Parameters
3955//
3956typedef struct sSirRcvFltPktClearParam
3957{
3958 tANI_U32 status; /* only valid for response message */
3959 tANI_U8 filterId;
Jeff Johnsone7245742012-09-05 17:12:55 -07003960 tSirMacAddr selfMacAddr;
3961 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07003962}tSirRcvFltPktClearParam, *tpSirRcvFltPktClearParam;
3963
3964//
3965// Multicast Address List Parameters
3966//
3967typedef struct sSirRcvFltMcAddrList
3968{
3969 tANI_U32 ulMulticastAddrCnt;
3970 tSirMacAddr multicastAddr[SIR_MAX_NUM_MULTICAST_ADDRESS];
Jeff Johnsone7245742012-09-05 17:12:55 -07003971 tSirMacAddr selfMacAddr;
3972 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07003973} tSirRcvFltMcAddrList, *tpSirRcvFltMcAddrList;
3974#endif // WLAN_FEATURE_PACKET_FILTERING
3975
3976//
3977// Generic version information
3978//
3979typedef struct
3980{
3981 tANI_U8 revision;
3982 tANI_U8 version;
3983 tANI_U8 minor;
3984 tANI_U8 major;
3985} tSirVersionType;
3986
3987typedef struct sAniBtAmpLogLinkReq
3988{
3989 // Common for all types are requests
3990 tANI_U16 msgType; // message type is same as the request type
3991 tANI_U16 msgLen; // length of the entire request
3992 tANI_U8 sessionId; //sme Session Id
3993 void *btampHandle; //AMP context
3994
3995} tAniBtAmpLogLinkReq, *tpAniBtAmpLogLinkReq;
3996
3997#ifdef WLAN_FEATURE_GTK_OFFLOAD
3998/*---------------------------------------------------------------------------
3999* WDA_GTK_OFFLOAD_REQ
4000*--------------------------------------------------------------------------*/
4001typedef struct
4002{
4003 tANI_U32 ulFlags; /* optional flags */
4004 tANI_U8 aKCK[16]; /* Key confirmation key */
4005 tANI_U8 aKEK[16]; /* key encryption key */
4006 tANI_U64 ullKeyReplayCounter; /* replay counter */
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004007 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004008} tSirGtkOffloadParams, *tpSirGtkOffloadParams;
4009
4010/*---------------------------------------------------------------------------
4011* WDA_GTK_OFFLOAD_GETINFO_REQ
4012*--------------------------------------------------------------------------*/
4013typedef struct
4014{
4015 tANI_U16 mesgType;
4016 tANI_U16 mesgLen;
4017
4018 tANI_U32 ulStatus; /* success or failure */
4019 tANI_U64 ullKeyReplayCounter; /* current replay counter value */
4020 tANI_U32 ulTotalRekeyCount; /* total rekey attempts */
4021 tANI_U32 ulGTKRekeyCount; /* successful GTK rekeys */
4022 tANI_U32 ulIGTKRekeyCount; /* successful iGTK rekeys */
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004023 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004024} tSirGtkOffloadGetInfoRspParams, *tpSirGtkOffloadGetInfoRspParams;
4025#endif // WLAN_FEATURE_GTK_OFFLOAD
4026
4027#ifdef WLAN_WAKEUP_EVENTS
4028/*---------------------------------------------------------------------------
4029 tSirWakeReasonInd
4030---------------------------------------------------------------------------*/
4031typedef struct
4032{
4033 tANI_U16 mesgType;
4034 tANI_U16 mesgLen;
4035 tANI_U32 ulReason; /* see tWakeReasonType */
4036 tANI_U32 ulReasonArg; /* argument specific to the reason type */
4037 tANI_U32 ulStoredDataLen; /* length of optional data stored in this message, in case
4038 HAL truncates the data (i.e. data packets) this length
4039 will be less than the actual length */
4040 tANI_U32 ulActualDataLen; /* actual length of data */
4041 tANI_U8 aDataStart[1]; /* variable length start of data (length == storedDataLen)
4042 see specific wake type */
4043} tSirWakeReasonInd, *tpSirWakeReasonInd;
4044#endif // WLAN_WAKEUP_EVENTS
4045
4046/*---------------------------------------------------------------------------
4047 sAniSetTmLevelReq
4048---------------------------------------------------------------------------*/
4049typedef struct sAniSetTmLevelReq
4050{
4051 tANI_U16 tmMode;
4052 tANI_U16 newTmLevel;
4053} tAniSetTmLevelReq, *tpAniSetTmLevelReq;
4054
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004055#ifdef FEATURE_WLAN_TDLS
4056/* TDLS Request struct SME-->PE */
4057typedef struct sSirTdlsSendMgmtReq
4058{
4059 tANI_U16 messageType; // eWNI_SME_TDLS_DISCOVERY_START_REQ
4060 tANI_U16 length;
4061 tANI_U8 sessionId; // Session ID
4062 tANI_U16 transactionId; // Transaction ID for cmd
4063 tANI_U8 reqType;
4064 tANI_U8 dialog;
4065 tANI_U16 statusCode;
Hoonki Leea34dd892013-02-05 22:56:02 -08004066 tANI_U8 responder;
Pradeep Reddy POTTETIca171f82014-03-21 14:17:35 +05304067 tANI_U32 peerCapability;
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004068 tSirMacAddr bssid; // For multi-session, for PE to locate peSession ID
4069 tSirMacAddr peerMac;
4070 tANI_U8 addIe[1]; //Variable lenght. Dont add any field after this.
4071} tSirTdlsSendMgmtReq, *tpSirSmeTdlsSendMgmtReq ;
Gopichand Nakkala681989c2013-03-06 22:27:48 -08004072
4073typedef enum TdlsAddOper
4074{
4075 TDLS_OPER_NONE,
4076 TDLS_OPER_ADD,
4077 TDLS_OPER_UPDATE
4078} eTdlsAddOper;
4079
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004080/* TDLS Request struct SME-->PE */
4081typedef struct sSirTdlsAddStaReq
4082{
4083 tANI_U16 messageType; // eWNI_SME_TDLS_DISCOVERY_START_REQ
4084 tANI_U16 length;
4085 tANI_U8 sessionId; // Session ID
4086 tANI_U16 transactionId; // Transaction ID for cmd
4087 tSirMacAddr bssid; // For multi-session, for PE to locate peSession ID
Gopichand Nakkala681989c2013-03-06 22:27:48 -08004088 eTdlsAddOper tdlsAddOper;
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004089 tSirMacAddr peerMac;
Gopichand Nakkala681989c2013-03-06 22:27:48 -08004090 tANI_U16 capability;
4091 tANI_U8 extn_capability[SIR_MAC_MAX_EXTN_CAP];
4092 tANI_U8 supported_rates_length;
4093 tANI_U8 supported_rates[SIR_MAC_MAX_SUPP_RATES];
Hoonki Lee66b75f32013-04-16 18:30:07 -07004094 tANI_U8 htcap_present;
Gopichand Nakkala681989c2013-03-06 22:27:48 -08004095 tSirHTCap htCap;
Hoonki Lee66b75f32013-04-16 18:30:07 -07004096 tANI_U8 vhtcap_present;
Gopichand Nakkala681989c2013-03-06 22:27:48 -08004097 tSirVHTCap vhtCap;
4098 tANI_U8 uapsd_queues;
4099 tANI_U8 max_sp;
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004100} tSirTdlsAddStaReq, *tpSirSmeTdlsAddStaReq ;
Gopichand Nakkala681989c2013-03-06 22:27:48 -08004101
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004102/* TDLS Response struct PE-->SME */
4103typedef struct sSirTdlsAddStaRsp
4104{
4105 tANI_U16 messageType;
4106 tANI_U16 length;
4107 tSirResultCodes statusCode;
4108 tSirMacAddr peerMac;
4109 tANI_U8 sessionId; // Session ID
4110 tANI_U16 staId ;
4111 tANI_U16 staType ;
4112 tANI_U8 ucastSig;
4113 tANI_U8 bcastSig;
Gopichand Nakkala681989c2013-03-06 22:27:48 -08004114 eTdlsAddOper tdlsAddOper;
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004115} tSirTdlsAddStaRsp ;
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304116
4117/* TDLS Request struct SME-->PE */
4118typedef struct
4119{
4120 tANI_U16 messageType; // eWNI_SME_TDLS_LINK_ESTABLISH_REQ
4121 tANI_U16 length;
4122 tANI_U8 sessionId; // Session ID
4123 tANI_U16 transactionId; // Transaction ID for cmd
4124 tANI_U8 uapsdQueues; // Peer's uapsd Queues Information
4125 tANI_U8 maxSp; // Peer's Supported Maximum Service Period
4126 tANI_U8 isBufSta; // Does Peer Support as Buffer Station.
Naresh Jayarambc62ba42014-02-12 21:39:14 +05304127 tANI_U8 isOffChannelSupported; // Does Peer Support as TDLS Off Channel.
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304128 tANI_U8 isResponder; // Is Peer a responder.
4129 tSirMacAddr bssid; // For multi-session, for PE to locate peSession ID
4130 tSirMacAddr peerMac;
Naresh Jayarambc62ba42014-02-12 21:39:14 +05304131 tANI_U8 supportedChannelsLen;
4132 tANI_U8 supportedChannels[SIR_MAC_MAX_SUPP_CHANNELS];
4133 tANI_U8 supportedOperClassesLen;
4134 tANI_U8 supportedOperClasses[SIR_MAC_MAX_SUPP_OPER_CLASSES];
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304135}tSirTdlsLinkEstablishReq, *tpSirTdlsLinkEstablishReq;
4136
4137/* TDLS Request struct SME-->PE */
4138typedef struct
4139{
4140 tANI_U16 messageType; // eWNI_SME_TDLS_LINK_ESTABLISH_RSP
4141 tANI_U16 length;
4142 tANI_U8 sessionId; // Session ID
4143 tANI_U16 transactionId; // Transaction ID for cmd
4144 tSirResultCodes statusCode;
4145 tSirMacAddr peerMac;
4146}tSirTdlsLinkEstablishReqRsp, *tpSirTdlsLinkEstablishReqRsp;
4147
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004148/* TDLS Request struct SME-->PE */
4149typedef struct sSirTdlsDelStaReq
4150{
4151 tANI_U16 messageType; // eWNI_SME_TDLS_DISCOVERY_START_REQ
4152 tANI_U16 length;
4153 tANI_U8 sessionId; // Session ID
4154 tANI_U16 transactionId; // Transaction ID for cmd
4155 tSirMacAddr bssid; // For multi-session, for PE to locate peSession ID
4156 tSirMacAddr peerMac;
4157} tSirTdlsDelStaReq, *tpSirSmeTdlsDelStaReq ;
4158/* TDLS Response struct PE-->SME */
4159typedef struct sSirTdlsDelStaRsp
4160{
4161 tANI_U16 messageType;
4162 tANI_U16 length;
4163 tANI_U8 sessionId; // Session ID
4164 tSirResultCodes statusCode;
4165 tSirMacAddr peerMac;
4166 tANI_U16 staId;
4167} tSirTdlsDelStaRsp, *tpSirTdlsDelStaRsp;
Hoonki Leee6bfe942013-02-05 15:01:19 -08004168/* TDLS Delete Indication struct PE-->SME */
4169typedef struct sSirTdlsDelStaInd
4170{
4171 tANI_U16 messageType;
4172 tANI_U16 length;
4173 tANI_U8 sessionId; // Session ID
4174 tSirMacAddr peerMac;
4175 tANI_U16 staId;
4176 tANI_U16 reasonCode;
4177} tSirTdlsDelStaInd, *tpSirTdlsDelStaInd;
Gopichand Nakkala2a0a1572013-02-10 21:39:16 -08004178typedef struct sSirTdlsDelAllPeerInd
4179{
4180 tANI_U16 messageType;
4181 tANI_U16 length;
4182 tANI_U8 sessionId; // Session ID
4183} tSirTdlsDelAllPeerInd, *tpSirTdlsDelAllPeerInd;
Gopichand Nakkalab977a972013-02-18 19:15:09 -08004184typedef struct sSirMgmtTxCompletionInd
4185{
4186 tANI_U16 messageType;
4187 tANI_U16 length;
4188 tANI_U8 sessionId; // Session ID
4189 tANI_U32 txCompleteStatus;
4190} tSirMgmtTxCompletionInd, *tpSirMgmtTxCompletionInd;
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004191#endif /* FEATURE_WLAN_TDLS */
4192
4193#ifdef FEATURE_WLAN_TDLS_INTERNAL
4194typedef enum tdlsListType
4195{
4196 TDLS_DIS_LIST,
4197 TDLS_SETUP_LIST
4198}eTdlsListType ;
4199
4200typedef enum tdlsStates
4201{
4202 TDLS_LINK_IDLE_STATE,
4203 TDLS_LINK_DIS_INIT_STATE,
4204 TDLS_LINK_DIS_RSP_WAIT_STATE,
4205 TDLS_DIS_REQ_PROCESS_STATE,
4206 TDLS_DIS_RSP_SENT_WAIT_STATE,
4207 TDLS_DIS_RSP_SENT_DONE_STATE,
4208 TDLS_LINK_DIS_DONE_STATE,
4209 TDLS_LINK_SETUP_START_STATE,
4210 TDLS_LINK_SETUP_WAIT_STATE,
4211 TDLS_LINK_SETUP_RSP_WAIT_STATE,
4212 TDLS_LINK_SETUP_DONE_STATE,
4213 TDLS_LINK_TEARDOWN_START_STATE,
4214 TDLS_LINK_TEARDOWN_DONE_STATE,
4215 TDLS_LINK_SETUP_STATE
4216}eSirTdlsStates ;
4217
4218typedef struct sSirTdlsPeerInfo
4219{
4220 tSirMacAddr peerMac;
4221 tANI_U8 sessionId;
4222 tANI_U8 dialog ;
4223 tSirMacCapabilityInfo capabilityInfo ;
4224 tSirMacRateSet tdlsPeerSuppRates ;
4225 tSirMacRateSet tdlsPeerExtRates ;
4226 //tDot11fIEHTCaps tdlsPeerHtCaps ;
4227 tSirMacHTCapabilityInfo tdlsPeerHtCaps ;
4228 tSirMacHTParametersInfo tdlsPeerHtParams ;
4229 tSirMacExtendedHTCapabilityInfo tdlsPeerHtExtCaps ;
4230 tANI_U8 supportedMCSSet[SIZE_OF_SUPPORTED_MCS_SET];
4231
4232 //tDot11fIEExtCapability tdlsPeerExtenCaps ;
4233 tSirMacRsnInfo tdlsPeerRsn ;
4234 tANI_U16 tdlsPeerFtIe ;
4235 tANI_U16 tdlsPeerTimeoutIntvl ;
4236 tANI_U16 tdlsPeerSuppChan ;
4237 tANI_U16 tdlsPeerSuppReguClass ;
4238 tANI_S8 tdlsPeerRssi ;
4239 tANI_U16 tdlsPeerState ;
4240 /* flags to indicate optional IE's are in */
4241 tANI_U8 ExtRatesPresent ;
4242 tANI_U8 rsnIePresent ;
4243 tANI_U8 htCapPresent ;
4244 tANI_U8 delStaNeeded ;
4245
4246} tSirTdlsPeerInfo, *tpSirSmeTdlsPeerInfo ;
4247
4248/* TDLS Request struct SME-->PE */
4249typedef struct sSirTdlsDiscoveryReq
4250{
4251 tANI_U16 messageType; // eWNI_SME_TDLS_DISCOVERY_START_REQ
4252 tANI_U16 length;
4253 tANI_U8 sessionId; // Session ID
4254 tANI_U16 transactionId; // Transaction ID for cmd
4255 tANI_U8 reqType;
4256 tANI_U8 dialog;
4257 tSirMacAddr bssid; // For multi-session, for PE to locate peSession ID
4258 tSirMacAddr peerMac;
4259} tSirTdlsDisReq, *tpSirSmeTdlsDisReq ;
4260
4261typedef struct sSirTdlsLinkSetupReq
4262{
4263 tANI_U16 messageType; // eWNI_SME_TDLS_LINK_START_REQ
4264 tANI_U16 length;
4265 tANI_U8 sessionId; // Session ID
4266 tANI_U16 transactionId; // Transaction ID for cmd
4267 tANI_U8 dialog;
4268 tSirMacAddr bssid; // For multi-session, for PE to locate peSession ID
4269 tSirMacAddr peerMac;
4270} tSirTdlsSetupReq, *tpSirSmeTdlsSetupReq ;
4271
4272typedef struct sSirTdlsTeardownReq
4273{
4274 tANI_U16 messageType; // eWNI_SME_TDLS_TEARDOWN_REQ
4275 tANI_U16 length;
4276 tANI_U8 sessionId; // Session ID
4277 tANI_U16 transactionId; // Transaction ID for cmd
4278 tSirMacAddr bssid; // For multi-session, for PE to locate peSession ID
4279 tSirMacAddr peerMac;
4280} tSirTdlsTeardownReq, *tpSirSmeTdlsTeardownReq ;
4281
4282
4283/* TDLS response struct PE-->SME */
4284typedef struct sSirTdlsDiscoveryRsp
4285{
4286 tANI_U16 messageType;
4287 tANI_U16 length;
4288 tSirResultCodes statusCode;
4289 tANI_U16 numDisSta ;
4290 tSirTdlsPeerInfo tdlsDisPeerInfo[0];
4291} tSirTdlsDisRsp, *tpSirSmeTdlsDiscoveryRsp;
4292
4293typedef struct sSirTdlsLinkSetupRsp
4294{
4295 tANI_U16 messageType;
4296 tANI_U16 length;
4297 tSirResultCodes statusCode;
4298 tSirMacAddr peerMac;
4299} tSirTdlsLinksetupRsp ;
4300
4301typedef struct sSirTdlsLinkSetupInd
4302{
4303 tANI_U16 messageType;
4304 tANI_U16 length;
4305 tSirResultCodes statusCode;
4306 tSirMacAddr peerMac;
4307} tSirTdlsLinkSetupInd ;
4308
4309
4310typedef struct sSirTdlsTeardownRsp
4311{
4312 tANI_U16 messageType;
4313 tANI_U16 length;
4314 tSirResultCodes statusCode;
4315 tSirMacAddr peerMac;
4316} tSirTdlsTeardownRsp ;
4317
4318typedef struct sSirTdlsPeerInd
4319{
4320 tANI_U16 messageType;
4321 tANI_U16 length;
4322 tSirMacAddr peerMac;
4323 tANI_U8 sessionId; // Session ID
4324 tANI_U16 staId ;
4325 tANI_U16 staType ;
4326 tANI_U8 ucastSig;
4327 tANI_U8 bcastSig;
4328} tSirTdlsPeerInd ;
4329
4330typedef struct sSirTdlsLinkEstablishInd
4331{
4332 tANI_U16 messageType;
4333 tANI_U16 length;
4334 tANI_U8 bIsResponder; /* if this is 1, self is initiator and peer is reponder */
4335 tANI_U8 linkIdenOffset; /* offset of LinkIdentifierIE.bssid[0] from ptiTemplateBuf */
4336 tANI_U8 ptiBufStatusOffset; /* offset of BufferStatus from ptiTemplateBuf */
4337 tANI_U8 ptiTemplateLen;
4338 tANI_U8 ptiTemplateBuf[64];
4339 tANI_U8 extCapability[8];
4340/* This will be part of PTI template when sent by PE
4341 tANI_U8 linkIdentifier[20];
4342*/
4343} tSirTdlsLinkEstablishInd, *tpSirTdlsLinkEstablishInd;
4344
4345typedef struct sSirTdlsLinkTeardownInd
4346{
4347 tANI_U16 messageType;
4348 tANI_U16 length;
4349 tANI_U16 staId;
4350} tSirTdlsLinkTeardownInd, *tpSirTdlsLinkTeardownInd;
4351
4352#endif /* FEATURE_WLAN_TDLS_INTERNAL */
4353
Yathish9f22e662012-12-10 14:21:35 -08004354typedef struct sSirActiveModeSetBcnFilterReq
4355{
4356 tANI_U16 messageType;
4357 tANI_U16 length;
4358 tANI_U8 seesionId;
4359} tSirSetActiveModeSetBncFilterReq, *tpSirSetActiveModeSetBncFilterReq;
4360
Sandeep Puligilla11d49a62014-01-30 12:05:16 +05304361typedef enum
4362{
4363 HT40_OBSS_SCAN_PARAM_START,
4364 HT40_OBSS_SCAN_PARAM_UPDATE
4365}tHT40OBssScanCmdType;
4366
4367typedef struct sSirSmeHT40StopOBSSScanInd
4368{
4369 tANI_U16 messageType;
4370 tANI_U16 length;
4371 tANI_U8 seesionId;
4372} tSirSmeHT40OBSSStopScanInd, *tpSirSmeHT40OBSSStopScanInd;
4373
4374typedef struct sSirSmeHT40OBSSScanInd
4375{
4376 tANI_U16 messageType;
4377 tANI_U16 length;
Sandeep Puligilla9f384742014-04-11 02:27:04 +05304378 tSirMacAddr peerMacAddr;
Sandeep Puligilla11d49a62014-01-30 12:05:16 +05304379} tSirSmeHT40OBSSScanInd, *tpSirSmeHT40OBSSScanInd;
4380
4381typedef struct sSirHT40OBSSScanInd
4382{
4383 tHT40OBssScanCmdType cmdType;
4384 tSirScanType scanType;
4385 tANI_U16 OBSSScanPassiveDwellTime; // In TUs
4386 tANI_U16 OBSSScanActiveDwellTime; // In TUs
4387 tANI_U16 BSSChannelWidthTriggerScanInterval; // In seconds
4388 tANI_U16 OBSSScanPassiveTotalPerChannel; // In TU
4389 tANI_U16 OBSSScanActiveTotalPerChannel; // In TUs
4390 tANI_U16 BSSWidthChannelTransitionDelayFactor;
4391 tANI_U16 OBSSScanActivityThreshold;
4392 tANI_U8 selfStaIdx;
4393 tANI_U8 bssIdx;
4394 tANI_U8 fortyMHZIntolerent;
4395 tANI_U8 channelCount;
4396 tANI_U8 channels[SIR_ROAM_MAX_CHANNELS];
4397 tANI_U8 currentOperatingClass;
4398 tANI_U16 ieFieldLen;
4399 tANI_U8 ieField[SIR_ROAM_SCAN_MAX_PB_REQ_SIZE];
4400} tSirHT40OBSSScanInd, *tpSirHT40OBSSScanInd;
4401
4402
Gopichand Nakkalacca24d12013-03-07 17:05:07 +05304403//Reset AP Caps Changed
4404typedef struct sSirResetAPCapsChange
4405{
4406 tANI_U16 messageType;
4407 tANI_U16 length;
4408 tSirMacAddr bssId;
4409} tSirResetAPCapsChange, *tpSirResetAPCapsChange;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07004410/// Definition for Candidate found indication from FW
4411typedef struct sSirSmeCandidateFoundInd
4412{
4413 tANI_U16 messageType; // eWNI_SME_CANDIDATE_FOUND_IND
4414 tANI_U16 length;
4415 tANI_U8 sessionId; // Session Identifier
4416} tSirSmeCandidateFoundInd, *tpSirSmeCandidateFoundInd;
Yathish9f22e662012-12-10 14:21:35 -08004417
Chet Lanctot186b5732013-03-18 10:26:30 -07004418#ifdef WLAN_FEATURE_11W
4419typedef struct sSirWlanExcludeUnencryptParam
4420{
4421 tANI_BOOLEAN excludeUnencrypt;
4422 tSirMacAddr bssId;
4423}tSirWlanExcludeUnencryptParam,*tpSirWlanExcludeUnencryptParam;
4424#endif
4425
Varun Reddy Yeturucc661d22013-05-20 11:47:10 -07004426typedef struct sAniHandoffReq
4427{
4428 // Common for all types are requests
4429 tANI_U16 msgType; // message type is same as the request type
4430 tANI_U16 msgLen; // length of the entire request
4431 tANI_U8 sessionId;
4432 tANI_U8 bssid[WNI_CFG_BSSID_LEN];
4433 tANI_U8 channel;
4434} tAniHandoffReq, *tpAniHandoffReq;
4435
Ganesh Kondabattinif0fa07c2013-06-11 17:47:49 +05304436typedef struct sSirScanOffloadReq {
4437 tANI_U8 sessionId;
4438 tSirMacAddr bssId;
4439 tANI_U8 numSsid;
4440 tSirMacSSid ssId[SIR_SCAN_MAX_NUM_SSID];
4441 tANI_U8 hiddenSsid;
4442 tSirMacAddr selfMacAddr;
4443 tSirBssType bssType;
4444 tANI_U8 dot11mode;
4445 tSirScanType scanType;
4446 tANI_U32 minChannelTime;
4447 tANI_U32 maxChannelTime;
4448 tANI_BOOLEAN p2pSearch;
4449 tANI_U16 uIEFieldLen;
4450 tANI_U16 uIEFieldOffset;
4451 tSirChannelList channelList;
4452 /*-----------------------------
4453 sSirScanOffloadReq....
4454 -----------------------------
4455 uIEFieldLen
4456 -----------------------------
4457 uIEFieldOffset ----+
4458 ----------------------------- |
4459 channelList.numChannels |
4460 ----------------------------- |
4461 ... variable size up to |
4462 channelNumber[numChannels-1] |
4463 This can be zero, if |
4464 numChannel is zero. |
4465 ----------------------------- <--+
4466 ... variable size uIEField
4467 up to uIEFieldLen (can be 0)
4468 -----------------------------*/
4469} tSirScanOffloadReq, *tpSirScanOffloadReq;
Gopichand Nakkala2c231c82013-06-11 17:49:16 +05304470
4471typedef enum sSirScanEventType {
4472 SCAN_EVENT_STARTED=0x1, /* Scan command accepted by FW */
4473 SCAN_EVENT_COMPLETED=0x2, /* Scan has been completed by FW */
4474 SCAN_EVENT_BSS_CHANNEL=0x4, /* FW is going to move to HOME channel */
4475 SCAN_EVENT_FOREIGN_CHANNEL = 0x8,/* FW is going to move to FORIEGN channel */
4476 SCAN_EVENT_DEQUEUED=0x10, /* scan request got dequeued */
4477 SCAN_EVENT_PREEMPTED=0x20, /* preempted by other high priority scan */
4478 SCAN_EVENT_START_FAILED=0x40, /* scan start failed */
4479 SCAN_EVENT_RESTARTED=0x80, /*scan restarted*/
4480 SCAN_EVENT_MAX=0x8000
4481} tSirScanEventType;
4482
4483typedef struct sSirScanOffloadEvent{
4484 tSirScanEventType event;
4485 tSirResultCodes reasonCode;
4486 tANI_U32 chanFreq;
4487 tANI_U32 requestor;
4488 tANI_U32 scanId;
4489} tSirScanOffloadEvent, *tpSirScanOffloadEvent;
4490
Gopichand Nakkalaf72a3872013-06-11 17:51:13 +05304491typedef struct sSirUpdateChanParam
4492{
4493 tANI_U8 chanId;
4494 tANI_U8 pwr;
Leela Venkata Kiran Kumar Reddy Chiralac6663f72014-02-03 21:04:58 -08004495 tANI_BOOLEAN dfsSet;
Gopichand Nakkalaf72a3872013-06-11 17:51:13 +05304496} tSirUpdateChanParam, *tpSirUpdateChanParam;
4497
4498typedef struct sSirUpdateChan
4499{
4500 tANI_U8 numChan;
4501 tSirUpdateChanParam chanParam[1];
4502} tSirUpdateChanList, *tpSirUpdateChanList;
4503
Leo Chang9056f462013-08-01 19:21:11 -07004504#ifdef FEATURE_WLAN_LPHB
4505#define SIR_LPHB_FILTER_LEN 64
4506
4507typedef enum
4508{
4509 LPHB_SET_EN_PARAMS_INDID,
4510 LPHB_SET_TCP_PARAMS_INDID,
4511 LPHB_SET_TCP_PKT_FILTER_INDID,
4512 LPHB_SET_UDP_PARAMS_INDID,
4513 LPHB_SET_UDP_PKT_FILTER_INDID,
4514 LPHB_SET_NETWORK_INFO_INDID,
4515} LPHBIndType;
4516
4517typedef struct sSirLPHBEnableStruct
4518{
4519 v_U8_t enable;
4520 v_U8_t item;
4521 v_U8_t session;
4522} tSirLPHBEnableStruct;
4523
4524typedef struct sSirLPHBTcpParamStruct
4525{
4526 v_U32_t srv_ip;
4527 v_U32_t dev_ip;
4528 v_U16_t src_port;
4529 v_U16_t dst_port;
4530 v_U16_t timeout;
4531 v_U8_t session;
4532 tSirMacAddr gateway_mac;
Leo Changd9df8aa2013-09-26 13:32:26 -07004533 uint16 timePeriodSec; // in seconds
4534 uint32 tcpSn;
Leo Chang9056f462013-08-01 19:21:11 -07004535} tSirLPHBTcpParamStruct;
4536
4537typedef struct sSirLPHBTcpFilterStruct
4538{
4539 v_U16_t length;
4540 v_U8_t offset;
4541 v_U8_t session;
4542 v_U8_t filter[SIR_LPHB_FILTER_LEN];
4543} tSirLPHBTcpFilterStruct;
4544
4545typedef struct sSirLPHBUdpParamStruct
4546{
4547 v_U32_t srv_ip;
4548 v_U32_t dev_ip;
4549 v_U16_t src_port;
4550 v_U16_t dst_port;
4551 v_U16_t interval;
4552 v_U16_t timeout;
4553 v_U8_t session;
4554 tSirMacAddr gateway_mac;
4555} tSirLPHBUdpParamStruct;
4556
4557typedef struct sSirLPHBUdpFilterStruct
4558{
4559 v_U16_t length;
4560 v_U8_t offset;
4561 v_U8_t session;
4562 v_U8_t filter[SIR_LPHB_FILTER_LEN];
4563} tSirLPHBUdpFilterStruct;
4564
4565typedef struct sSirLPHBReq
4566{
4567 v_U16_t cmd;
4568 v_U16_t dummy;
4569 union
4570 {
4571 tSirLPHBEnableStruct lphbEnableReq;
4572 tSirLPHBTcpParamStruct lphbTcpParamReq;
4573 tSirLPHBTcpFilterStruct lphbTcpFilterReq;
4574 tSirLPHBUdpParamStruct lphbUdpParamReq;
4575 tSirLPHBUdpFilterStruct lphbUdpFilterReq;
4576 } params;
4577} tSirLPHBReq;
4578
Leo Changd9df8aa2013-09-26 13:32:26 -07004579typedef struct sSirLPHBInd
Leo Chang9056f462013-08-01 19:21:11 -07004580{
4581 v_U8_t sessionIdx;
4582 v_U8_t protocolType; /*TCP or UDP*/
4583 v_U8_t eventReason;
Leo Changd9df8aa2013-09-26 13:32:26 -07004584} tSirLPHBInd;
Leo Chang9056f462013-08-01 19:21:11 -07004585#endif /* FEATURE_WLAN_LPHB */
4586
Yue Mab9c86f42013-08-14 15:59:08 -07004587typedef struct sSirAddPeriodicTxPtrn
4588{
4589 /* MAC Address for the adapter */
4590 tSirMacAddr macAddress;
4591
4592 tANI_U8 ucPtrnId; // Pattern ID
4593 tANI_U16 ucPtrnSize; // Pattern size
4594 tANI_U32 usPtrnIntervalMs; // In msec
4595 tANI_U8 ucPattern[PERIODIC_TX_PTRN_MAX_SIZE]; // Pattern buffer
4596} tSirAddPeriodicTxPtrn, *tpSirAddPeriodicTxPtrn;
4597
4598typedef struct sSirDelPeriodicTxPtrn
4599{
4600 /* MAC Address for the adapter */
4601 tSirMacAddr macAddress;
4602
4603 /* Bitmap of pattern IDs that need to be deleted */
4604 tANI_U32 ucPatternIdBitmap;
4605} tSirDelPeriodicTxPtrn, *tpSirDelPeriodicTxPtrn;
4606
Chittajit Mitraf5413a42013-10-18 14:20:08 -07004607typedef struct sSirRateUpdateInd
4608{
4609 /* 0 implies RA, positive value implies fixed rate, -1 implies ignore this
4610 * param.
4611 */
4612 tANI_S32 ucastDataRate;
4613
4614 /* TX flag to differentiate between HT20, HT40 etc */
4615 tTxrateinfoflags ucastDataRateTxFlag;
4616
4617 /* BSSID - Optional. 00-00-00-00-00-00 implies apply to all BCAST STAs */
4618 tSirMacAddr bssid;
4619
4620 /*
4621 * 0 implies MCAST RA, positive value implies fixed rate,
4622 * -1 implies ignore this param
4623 */
4624 tANI_S32 reliableMcastDataRate;//unit Mbpsx10
4625
4626 /* TX flag to differentiate between HT20, HT40 etc */
4627 tTxrateinfoflags reliableMcastDataRateTxFlag;
4628
4629 /*
4630 * MCAST(or BCAST) fixed data rate in 2.4 GHz, unit Mbpsx10,
4631 * 0 implies ignore
4632 */
4633 tANI_U32 mcastDataRate24GHz;
4634
4635 /* TX flag to differentiate between HT20, HT40 etc */
4636 tTxrateinfoflags mcastDataRate24GHzTxFlag;
4637
4638 /*
4639 * MCAST(or BCAST) fixed data rate in 5 GHz,
4640 * unit Mbpsx10, 0 implies ignore
4641 */
4642 tANI_U32 mcastDataRate5GHz;
4643
4644 /* TX flag to differentiate between HT20, HT40 etc */
4645 tTxrateinfoflags mcastDataRate5GHzTxFlag;
4646
4647} tSirRateUpdateInd, *tpSirRateUpdateInd;
4648
Rajeev79dbe4c2013-10-05 11:03:42 +05304649#ifdef FEATURE_WLAN_BATCH_SCAN
4650// Set batch scan resposne from FW
4651typedef struct
4652{
4653 /*maximum number of scans which FW can cache*/
4654 tANI_U32 nScansToBatch;
4655} tSirSetBatchScanRsp, *tpSirSetBatchScanRsp;
4656
4657// Set batch scan request to FW
4658typedef struct
4659{
4660 tANI_U32 scanFrequency; /* how frequent to do scan - default 30Sec*/
4661 tANI_U32 numberOfScansToBatch; /* number of scans to batch */
4662 tANI_U32 bestNetwork; /* best networks in terms of rssi */
4663 tANI_U8 rfBand; /* band to scan :
4664 0 ->both Band, 1->2.4Ghz Only
4665 and 2-> 5GHz Only */
4666 tANI_U32 rtt; /* set if required to do RTT it is not
4667 supported in current version */
4668} tSirSetBatchScanReq, *tpSirSetBatchScanReq;
4669
4670
4671// Stop batch scan request to FW
4672typedef struct
4673{
4674 tANI_U32 param;
4675} tSirStopBatchScanInd, *tpSirStopBatchScanInd;
4676
4677// Trigger batch scan result indication to FW
4678typedef struct
4679{
4680 tANI_U32 param;
4681} tSirTriggerBatchScanResultInd, *tpSirTriggerBatchScanResultInd;
4682
4683// Batch scan result indication from FW
4684typedef PACKED_PRE struct PACKED_POST
4685{
4686 tANI_U8 bssid[6]; /* BSSID */
Rajeev Kumar1f7759a2014-01-23 15:21:47 -08004687 tANI_U8 ssid[33]; /* SSID */
Rajeev79dbe4c2013-10-05 11:03:42 +05304688 tANI_U8 ch; /* Channel */
4689 tANI_U8 rssi; /* RSSI or Level */
4690 /*Timestamp when Network was found. Used to calculate age based on timestamp
4691 in GET_RSP msg header */
4692 tANI_U32 timestamp;
4693} tSirBatchScanNetworkInfo, *tpSirBatchScanNetworkInfo;
4694
4695typedef PACKED_PRE struct PACKED_POST
4696{
4697 tANI_U32 scanId; /* Scan List ID. */
4698 /*No of AP in a Scan Result. Should be same as bestNetwork in SET_REQ msg*/
4699 tANI_U32 numNetworksInScanList;
4700 /*Variable data ptr: Number of AP in Scan List*/
4701 /*Following numNetworkInScanList is data of type tSirBatchScanNetworkInfo
4702 *of sizeof(tSirBatchScanNetworkInfo) * numNetworkInScanList */
4703 tANI_U8 scanList[1];
4704} tSirBatchScanList, *tpSirBatchScanList;
4705
4706typedef PACKED_PRE struct PACKED_POST
4707{
4708 tANI_U32 timestamp;
4709 tANI_U32 numScanLists;
4710 boolean isLastResult;
4711 /* Variable Data ptr: Number of Scan Lists*/
4712 /* following isLastResult is data of type tSirBatchScanList
4713 * of sizeof(tSirBatchScanList) * numScanLists*/
4714 tANI_U8 scanResults[1];
4715} tSirBatchScanResultIndParam, *tpSirBatchScanResultIndParam;
4716
4717#endif // FEATURE_WLAN_BATCH_SCAN
4718
Leo Chang0b0e45a2013-12-15 15:18:55 -08004719#ifdef FEATURE_WLAN_CH_AVOID
4720#define SIR_CH_AVOID_MAX_RANGE 4
4721
4722typedef struct sSirChAvoidFreqType
4723{
4724 tANI_U32 startFreq;
4725 tANI_U32 endFreq;
4726} tSirChAvoidFreqType;
4727
4728typedef struct sSirChAvoidIndType
4729{
4730 tANI_U32 avoidRangeCount;
4731 tSirChAvoidFreqType avoidFreqRange[SIR_CH_AVOID_MAX_RANGE];
4732} tSirChAvoidIndType;
4733#endif /* FEATURE_WLAN_CH_AVOID */
Rajeev79dbe4c2013-10-05 11:03:42 +05304734
Jeff Johnson295189b2012-06-20 16:38:30 -07004735#endif /* __SIR_API_H */