blob: 8a94bd204aea8d1ac4c0373b7c2d96ed29df19a6 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05302 * Copyright (c) 2012-2015 The Linux Foundation. All rights reserved.
Kiet Lam842dad02014-02-18 18:44:02 -08003 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
Jeff Johnson295189b2012-06-20 16:38:30 -070021
22/*
Kiet Lama7f454d2014-07-24 12:04:06 -070023 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
Kiet Lam842dad02014-02-18 18:44:02 -080026 */
27
28
Kiet Lama7f454d2014-07-24 12:04:06 -070029
30
Kiet Lam842dad02014-02-18 18:44:02 -080031/*
Jeff Johnson295189b2012-06-20 16:38:30 -070032 * This file sirApi.h contains definitions exported by
33 * Sirius software.
34 * Author: Chandra Modumudi
35 * Date: 04/16/2002
36 * History:-
37 * Date Modified by Modification Information
38 * --------------------------------------------------------------------
39 */
40
41#ifndef __SIR_API_H
42#define __SIR_API_H
43
44#include "sirTypes.h"
45#include "sirMacProtDef.h"
46#include "aniSystemDefs.h"
Jeff Johnsone7245742012-09-05 17:12:55 -070047#include "sirParams.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070048
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -080049#if defined(FEATURE_WLAN_ESE) && !defined(FEATURE_WLAN_ESE_UPLOAD)
50#include "eseGlobal.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070051#endif
52
53/// Maximum number of STAs allowed in the BSS
54#define SIR_MAX_NUM_STA 256
55
56/// Maximum number of Neighbors reported by STA for LB feature
57#define SIR_MAX_NUM_NEIGHBOR_BSS 3
58
59/// Maximum number of Neighbors reported by STA for LB feature
60#define SIR_MAX_NUM_ALTERNATE_RADIOS 5
61
62/// Maximum size of SCAN_RSP message
63#define SIR_MAX_SCAN_RSP_MSG_LENGTH 2600
64
65/// Start of Sirius software/Host driver message types
66#define SIR_HAL_HOST_MSG_START 0x1000
67
68/// Power save level definitions
69#define SIR_MAX_POWER_SAVE 3
70#define SIR_INTERMEDIATE_POWER_SAVE 4
71#define SIR_NO_POWER_SAVE 5
72
73/// Max supported channel list
74#define SIR_MAX_SUPPORTED_CHANNEL_LIST 96
75
76/// Maximum DTIM Factor
77#define SIR_MAX_DTIM_FACTOR 32
78
79#define SIR_MDIE_SIZE 3
80
Gopichand Nakkalad492d202013-05-10 02:50:47 +053081/* Max number of channels are 165, but to access 165th element of array,
82 *array of 166 is required.
83 */
84#define SIR_MAX_24G_5G_CHANNEL_RANGE 166
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -080085#define SIR_BCN_REPORT_MAX_BSS_DESC 4
Gopichand Nakkalad492d202013-05-10 02:50:47 +053086
Jeff Johnson295189b2012-06-20 16:38:30 -070087
Rajeev79dbe4c2013-10-05 11:03:42 +053088#ifdef FEATURE_WLAN_BATCH_SCAN
89#define SIR_MAX_SSID_SIZE (32)
90#endif
91
Jeff Johnson295189b2012-06-20 16:38:30 -070092
93#define SIR_NUM_11B_RATES 4 //1,2,5.5,11
94#define SIR_NUM_11A_RATES 8 //6,9,12,18,24,36,48,54
95#define SIR_NUM_POLARIS_RATES 3 //72,96,108
96#define SIR_NUM_TITAN_RATES 26
97#define SIR_NUM_TAURUS_RATES 4 //136.5, 151.7,283.5,315
98#define SIR_NUM_PROP_RATES (SIR_NUM_TITAN_RATES + SIR_NUM_TAURUS_RATES)
99
100#define SIR_11N_PROP_RATE_136_5 (1<<28)
101#define SIR_11N_PROP_RATE_151_7 (1<<29)
102#define SIR_11N_PROP_RATE_283_5 (1<<30)
103#define SIR_11N_PROP_RATE_315 (1<<31)
104#define SIR_11N_PROP_RATE_BITMAP 0x80000000 //only 315MBPS rate is supported today
105//Taurus is going to support 26 Titan Rates(no ESF/concat Rates will be supported)
106//First 26 bits are reserved for Titan and last 4 bits for Taurus, 2(27 and 28) bits are reserved.
107//#define SIR_TITAN_PROP_RATE_BITMAP 0x03FFFFFF
108//Disable all Titan rates
109#define SIR_TITAN_PROP_RATE_BITMAP 0
110#define SIR_CONVERT_2_U32_BITMAP(nRates) ((nRates + 31)/32)
111
112/* #tANI_U32's needed for a bitmap representation for all prop rates */
113#define SIR_NUM_U32_MAP_RATES SIR_CONVERT_2_U32_BITMAP(SIR_NUM_PROP_RATES)
114
115
116#define SIR_PM_SLEEP_MODE 0
117#define SIR_PM_ACTIVE_MODE 1
118
119// Used by various modules to load ALL CFG's
120#define ANI_IGNORE_CFG_ID 0xFFFF
121
122//hidden SSID options
123#define SIR_SCAN_NO_HIDDEN_SSID 0
124#define SIR_SCAN_HIDDEN_SSID_PE_DECISION 1
125#define SIR_SCAN_HIDDEN_SSID 2
126
127#define SIR_MAC_ADDR_LEN 6
128#define SIR_IPV4_ADDR_LEN 4
129
130typedef tANI_U8 tSirIpv4Addr[SIR_IPV4_ADDR_LEN];
131
132#define SIR_VERSION_STRING_LEN 64
133typedef tANI_U8 tSirVersionString[SIR_VERSION_STRING_LEN];
134
Yue Mab9c86f42013-08-14 15:59:08 -0700135/* Periodic Tx pattern offload feature */
136#define PERIODIC_TX_PTRN_MAX_SIZE 1536
137#define MAXNUM_PERIODIC_TX_PTRNS 6
138
Dino Mycle2c198072014-06-10 10:15:52 +0530139
140#ifdef WLAN_FEATURE_EXTSCAN
141
142#define WLAN_EXTSCAN_MAX_CHANNELS 16
143#define WLAN_EXTSCAN_MAX_BUCKETS 16
144#define WLAN_EXTSCAN_MAX_HOTLIST_APS 128
Dino Mycle2c198072014-06-10 10:15:52 +0530145#define WLAN_EXTSCAN_MAX_RSSI_SAMPLE_SIZE 8
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +0530146#define WLAN_EXTSCAN_MAX_HOTLIST_SSIDS 8
Dino Mycle2c198072014-06-10 10:15:52 +0530147#endif /* WLAN_FEATURE_EXTSCAN */
148
Srinivas Dasarib8fdd422014-11-27 10:44:20 +0530149#define WLAN_DISA_MAX_PAYLOAD_SIZE 1600
150
Jeff Johnson295189b2012-06-20 16:38:30 -0700151enum eSirHostMsgTypes
152{
153 SIR_HAL_APP_SETUP_NTF = SIR_HAL_HOST_MSG_START,
154 SIR_HAL_INITIAL_CAL_FAILED_NTF,
155 SIR_HAL_NIC_OPER_NTF,
156 SIR_HAL_INIT_START_REQ,
157 SIR_HAL_SHUTDOWN_REQ,
158 SIR_HAL_SHUTDOWN_CNF,
159 SIR_HAL_RESET_REQ,
160 SIR_HAL_RADIO_ON_OFF_IND,
161 SIR_HAL_RESET_CNF,
162 SIR_WRITE_TO_TD,
163 SIR_HAL_HDD_ADDBA_REQ, // MAC -> HDD
164 SIR_HAL_HDD_ADDBA_RSP, // HDD -> HAL
165 SIR_HAL_DELETEBA_IND, // MAC -> HDD
166 SIR_HAL_BA_FAIL_IND, // HDD -> MAC
167 SIR_TL_HAL_FLUSH_AC_REQ,
168 SIR_HAL_TL_FLUSH_AC_RSP
169};
170
171
172
173/**
174 * Module ID definitions.
175 */
176enum {
177 SIR_BOOT_MODULE_ID = 1,
178 SIR_HAL_MODULE_ID = 0x10,
Siddharth Bhal64246172015-02-27 01:04:37 +0530179 SIR_HAL_EXT_MODULE_ID = 0x11,
Leela Venkata Kiran Kumar Reddy Chirala45f184c2014-02-14 15:08:21 -0800180 SIR_CFG_MODULE_ID = 0x12,
Jeff Johnson295189b2012-06-20 16:38:30 -0700181 SIR_LIM_MODULE_ID,
182 SIR_ARQ_MODULE_ID,
183 SIR_SCH_MODULE_ID,
184 SIR_PMM_MODULE_ID,
185 SIR_MNT_MODULE_ID,
186 SIR_DBG_MODULE_ID,
187 SIR_DPH_MODULE_ID,
188 SIR_SYS_MODULE_ID,
189 SIR_SMS_MODULE_ID,
190
191 SIR_PHY_MODULE_ID = 0x20,
192
193
194 // Add any modules above this line
195 SIR_DVT_MODULE_ID
196};
197
198#define SIR_WDA_MODULE_ID SIR_HAL_MODULE_ID
199
200/**
201 * First and last module definition for logging utility
202 *
203 * NOTE: The following definitions need to be updated if
204 * the above list is changed.
205 */
206#define SIR_FIRST_MODULE_ID SIR_HAL_MODULE_ID
207#define SIR_LAST_MODULE_ID SIR_DVT_MODULE_ID
208
209
210// Type declarations used by Firmware and Host software
211
212// Scan type enum used in scan request
213typedef enum eSirScanType
214{
215 eSIR_PASSIVE_SCAN,
216 eSIR_ACTIVE_SCAN,
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800217 eSIR_BEACON_TABLE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700218} tSirScanType;
219
Jeff Johnson295189b2012-06-20 16:38:30 -0700220typedef enum eSirResultCodes
221{
222 eSIR_SME_SUCCESS,
223
224 eSIR_EOF_SOF_EXCEPTION,
225 eSIR_BMU_EXCEPTION,
226 eSIR_LOW_PDU_EXCEPTION,
227 eSIR_USER_TRIG_RESET,
228 eSIR_LOGP_EXCEPTION,
229 eSIR_CP_EXCEPTION,
230 eSIR_STOP_BSS,
231 eSIR_AHB_HANG_EXCEPTION,
232 eSIR_DPU_EXCEPTION,
233 eSIR_RPE_EXCEPTION,
234 eSIR_TPE_EXCEPTION,
235 eSIR_DXE_EXCEPTION,
236 eSIR_RXP_EXCEPTION,
237 eSIR_MCPU_EXCEPTION,
238 eSIR_MCU_EXCEPTION,
239 eSIR_MTU_EXCEPTION,
240 eSIR_MIF_EXCEPTION,
241 eSIR_FW_EXCEPTION,
242 eSIR_PS_MUTEX_READ_EXCEPTION,
243 eSIR_PHY_HANG_EXCEPTION,
244 eSIR_MAILBOX_SANITY_CHK_FAILED,
245 eSIR_RADIO_HW_SWITCH_STATUS_IS_OFF, // Only where this switch is present
246 eSIR_CFB_FLAG_STUCK_EXCEPTION,
247
248 eSIR_SME_BASIC_RATES_NOT_SUPPORTED_STATUS=30,
249
250 eSIR_SME_INVALID_PARAMETERS=500,
251 eSIR_SME_UNEXPECTED_REQ_RESULT_CODE,
252 eSIR_SME_RESOURCES_UNAVAILABLE,
253 eSIR_SME_SCAN_FAILED, // Unable to find a BssDescription
254 // matching requested scan criteria
255 eSIR_SME_BSS_ALREADY_STARTED_OR_JOINED,
256 eSIR_SME_LOST_LINK_WITH_PEER_RESULT_CODE,
257 eSIR_SME_REFUSED,
c_hpothua9dc89c2014-03-22 19:22:31 +0530258 eSIR_SME_JOIN_DEAUTH_FROM_AP_DURING_ADD_STA,
Jeff Johnson295189b2012-06-20 16:38:30 -0700259 eSIR_SME_JOIN_TIMEOUT_RESULT_CODE,
260 eSIR_SME_AUTH_TIMEOUT_RESULT_CODE,
261 eSIR_SME_ASSOC_TIMEOUT_RESULT_CODE,
262 eSIR_SME_REASSOC_TIMEOUT_RESULT_CODE,
263 eSIR_SME_MAX_NUM_OF_PRE_AUTH_REACHED,
264 eSIR_SME_AUTH_REFUSED,
265 eSIR_SME_INVALID_WEP_DEFAULT_KEY,
266 eSIR_SME_NO_KEY_MAPPING_KEY_FOR_PEER,
267 eSIR_SME_ASSOC_REFUSED,
268 eSIR_SME_REASSOC_REFUSED,
269 eSIR_SME_DEAUTH_WHILE_JOIN, //Received Deauth while joining or pre-auhtentication.
270 eSIR_SME_DISASSOC_WHILE_JOIN, //Received Disassociation while joining.
271 eSIR_SME_DEAUTH_WHILE_REASSOC, //Received Deauth while ReAssociate.
272 eSIR_SME_DISASSOC_WHILE_REASSOC, //Received Disassociation while ReAssociate
273 eSIR_SME_STA_NOT_AUTHENTICATED,
274 eSIR_SME_STA_NOT_ASSOCIATED,
275 eSIR_SME_STA_DISASSOCIATED,
276 eSIR_SME_ALREADY_JOINED_A_BSS,
277 eSIR_ULA_COMPLETED,
278 eSIR_ULA_FAILURE,
279 eSIR_SME_LINK_ESTABLISHED,
280 eSIR_SME_UNABLE_TO_PERFORM_MEASUREMENTS,
281 eSIR_SME_UNABLE_TO_PERFORM_DFS,
282 eSIR_SME_DFS_FAILED,
283 eSIR_SME_TRANSFER_STA, // To be used when STA need to be LB'ed
284 eSIR_SME_INVALID_LINK_TEST_PARAMETERS,// Given in LINK_TEST_START_RSP
285 eSIR_SME_LINK_TEST_MAX_EXCEEDED, // Given in LINK_TEST_START_RSP
286 eSIR_SME_UNSUPPORTED_RATE, // Given in LINK_TEST_RSP if peer does
287 // support requested rate in
288 // LINK_TEST_REQ
289 eSIR_SME_LINK_TEST_TIMEOUT, // Given in LINK_TEST_IND if peer does
290 // not respond before next test packet
291 // is sent
292 eSIR_SME_LINK_TEST_COMPLETE, // Given in LINK_TEST_IND at the end
293 // of link test
294 eSIR_SME_LINK_TEST_INVALID_STATE, // Given in LINK_TEST_START_RSP
295 eSIR_SME_LINK_TEST_TERMINATE, // Given in LINK_TEST_START_RSP
296 eSIR_SME_LINK_TEST_INVALID_ADDRESS, // Given in LINK_TEST_STOP_RSP
297 eSIR_SME_POLARIS_RESET, // Given in SME_STOP_BSS_REQ
298 eSIR_SME_SETCONTEXT_FAILED, // Given in SME_SETCONTEXT_REQ when
299 // unable to plumb down keys
300 eSIR_SME_BSS_RESTART, // Given in SME_STOP_BSS_REQ
301
302 eSIR_SME_MORE_SCAN_RESULTS_FOLLOW, // Given in SME_SCAN_RSP message
303 // that more SME_SCAN_RSP
304 // messages are following.
305 // SME_SCAN_RSP message with
306 // eSIR_SME_SUCCESS status
307 // code is the last one.
308 eSIR_SME_INVALID_ASSOC_RSP_RXED, // Sent in SME_JOIN/REASSOC_RSP
309 // messages upon receiving
310 // invalid Re/Assoc Rsp frame.
311 eSIR_SME_MIC_COUNTER_MEASURES, // STOP BSS triggered by MIC failures: MAC software to disassoc all stations
312 // with MIC_FAILURE reason code and perform the stop bss operation
313 eSIR_SME_ADDTS_RSP_TIMEOUT, // didn't get response from peer within
314 // timeout interval
315 eSIR_SME_ADDTS_RSP_FAILED, // didn't get success response from HAL
316 eSIR_SME_RECEIVED,
317 // TBA - TSPEC related Result Codes
318
319 eSIR_SME_CHANNEL_SWITCH_FAIL, // failed to send out Channel Switch Action Frame
320 eSIR_SME_INVALID_STA_ROLE,
321 eSIR_SME_INVALID_STATE,
322#ifdef GEN4_SCAN
323 eSIR_SME_CHANNEL_SWITCH_DISABLED, // either 11h is disabled or channelSwitch is currently active
324 eSIR_SME_HAL_SCAN_INIT_FAILED, // SIR_HAL_SIR_HAL_INIT_SCAN_RSP returned failed status
325 eSIR_SME_HAL_SCAN_START_FAILED, // SIR_HAL_START_SCAN_RSP returned failed status
326 eSIR_SME_HAL_SCAN_END_FAILED, // SIR_HAL_END_SCAN_RSP returned failed status
327 eSIR_SME_HAL_SCAN_FINISH_FAILED, // SIR_HAL_FINISH_SCAN_RSP returned failed status
328 eSIR_SME_HAL_SEND_MESSAGE_FAIL, // Failed to send a message to HAL
329#else // GEN4_SCAN
330 eSIR_SME_CHANNEL_SWITCH_DISABLED, // either 11h is disabled or channelSwitch is currently active
331 eSIR_SME_HAL_SEND_MESSAGE_FAIL, // Failed to send a message to HAL
332#endif // GEN4_SCAN
Jeff Johnsone7245742012-09-05 17:12:55 -0700333#ifdef FEATURE_OEM_DATA_SUPPORT
334 eSIR_SME_HAL_OEM_DATA_REQ_START_FAILED,
335#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700336 eSIR_SME_STOP_BSS_FAILURE, // Failed to stop the bss
337 eSIR_SME_STA_ASSOCIATED,
338 eSIR_SME_INVALID_PMM_STATE,
339 eSIR_SME_CANNOT_ENTER_IMPS,
340 eSIR_SME_IMPS_REQ_FAILED,
341 eSIR_SME_BMPS_REQ_FAILED,
Jeff Johnson04dd8a82012-06-29 20:41:40 -0700342 eSIR_SME_BMPS_REQ_REJECT,
Jeff Johnson295189b2012-06-20 16:38:30 -0700343 eSIR_SME_UAPSD_REQ_FAILED,
Kanchanapally, Vidyullatha2ed7bde2014-12-29 12:18:36 +0530344 eSIR_SME_UAPSD_REQ_INVALID,
Jeff Johnson295189b2012-06-20 16:38:30 -0700345 eSIR_SME_WOWL_ENTER_REQ_FAILED,
346 eSIR_SME_WOWL_EXIT_REQ_FAILED,
347#if defined WLAN_FEATURE_VOWIFI_11R
348 eSIR_SME_FT_REASSOC_TIMEOUT_FAILURE,
349 eSIR_SME_FT_REASSOC_FAILURE,
350#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700351 eSIR_SME_SEND_ACTION_FAIL,
Jeff Johnson295189b2012-06-20 16:38:30 -0700352#ifdef WLAN_FEATURE_PACKET_FILTERING
353 eSIR_SME_PC_FILTER_MATCH_COUNT_REQ_FAILED,
354#endif // WLAN_FEATURE_PACKET_FILTERING
355
356#ifdef WLAN_FEATURE_GTK_OFFLOAD
357 eSIR_SME_GTK_OFFLOAD_GETINFO_REQ_FAILED,
358#endif // WLAN_FEATURE_GTK_OFFLOAD
Leela Venkata Kiran Kumar Reddy Chirala56df73f2014-01-30 14:18:00 -0800359 eSIR_SME_DEAUTH_STATUS,
Jeff Johnson295189b2012-06-20 16:38:30 -0700360 eSIR_DONOT_USE_RESULT_CODE = SIR_MAX_ENUM_SIZE
361} tSirResultCodes;
362
Jeff Johnson295189b2012-06-20 16:38:30 -0700363/* each station added has a rate mode which specifies the sta attributes */
364typedef enum eStaRateMode {
365 eSTA_TAURUS = 0,
366 eSTA_TITAN,
367 eSTA_POLARIS,
368 eSTA_11b,
369 eSTA_11bg,
370 eSTA_11a,
371 eSTA_11n,
Jeff Johnsone7245742012-09-05 17:12:55 -0700372#ifdef WLAN_FEATURE_11AC
373 eSTA_11ac,
374#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700375 eSTA_INVALID_RATE_MODE
376} tStaRateMode, *tpStaRateMode;
377
378//although in tSirSupportedRates each IE is 16bit but PE only passes IEs in 8 bits with MSB=1 for basic rates.
379//change the mask for bit0-7 only so HAL gets correct basic rates for setting response rates.
380#define IERATE_BASICRATE_MASK 0x80
381#define IERATE_RATE_MASK 0x7f
382#define IERATE_IS_BASICRATE(x) ((x) & IERATE_BASICRATE_MASK)
383#define ANIENHANCED_TAURUS_RATEMAP_BITOFFSET_START 28
384
Sushant Kaushike0d2cce2014-04-10 14:36:07 +0530385const char * lim_BssTypetoString(const v_U8_t bssType);
386const char * lim_ScanTypetoString(const v_U8_t scanType);
387const char * lim_BackgroundScanModetoString(const v_U8_t mode);
Jeff Johnson295189b2012-06-20 16:38:30 -0700388typedef struct sSirSupportedRates {
389 /*
390 * For Self STA Entry: this represents Self Mode.
391 * For Peer Stations, this represents the mode of the peer.
392 * On Station:
393 * --this mode is updated when PE adds the Self Entry.
394 * -- OR when PE sends 'ADD_BSS' message and station context in BSS is used to indicate the mode of the AP.
395 * ON AP:
396 * -- this mode is updated when PE sends 'ADD_BSS' and Sta entry for that BSS is used
397 * to indicate the self mode of the AP.
398 * -- OR when a station is associated, PE sends 'ADD_STA' message with this mode updated.
399 */
400
401 tStaRateMode opRateMode;
402 // 11b, 11a and aniLegacyRates are IE rates which gives rate in unit of 500Kbps
403 tANI_U16 llbRates[SIR_NUM_11B_RATES];
404 tANI_U16 llaRates[SIR_NUM_11A_RATES];
405 tANI_U16 aniLegacyRates[SIR_NUM_POLARIS_RATES];
406
407 //Taurus only supports 26 Titan Rates(no ESF/concat Rates will be supported)
408 //First 26 bits are reserved for those Titan rates and
409 //the last 4 bits(bit28-31) for Taurus, 2(bit26-27) bits are reserved.
410 tANI_U32 aniEnhancedRateBitmap; //Titan and Taurus Rates
411
412 /*
413 * 0-76 bits used, remaining reserved
414 * bits 0-15 and 32 should be set.
415 */
416 tANI_U8 supportedMCSSet[SIR_MAC_MAX_SUPPORTED_MCS_SET];
417
418 /*
419 * RX Highest Supported Data Rate defines the highest data
420 * rate that the STA is able to receive, in unites of 1Mbps.
421 * This value is derived from "Supported MCS Set field" inside
422 * the HT capability element.
423 */
424 tANI_U16 rxHighestDataRate;
425
Jeff Johnsone7245742012-09-05 17:12:55 -0700426#ifdef WLAN_FEATURE_11AC
427 /*Indicates the Maximum MCS that can be received for each number
428 of spacial streams */
429 tANI_U16 vhtRxMCSMap;
430 /*Indicate the highest VHT data rate that the STA is able to receive*/
431 tANI_U16 vhtRxHighestDataRate;
Madan Mohan Koyyalamudi1bed5982012-10-22 14:38:06 -0700432 /*Indicates the Maximum MCS that can be transmitted for each number
Jeff Johnsone7245742012-09-05 17:12:55 -0700433 of spacial streams */
434 tANI_U16 vhtTxMCSMap;
435 /*Indicate the highest VHT data rate that the STA is able to transmit*/
436 tANI_U16 vhtTxHighestDataRate;
437#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700438} tSirSupportedRates, *tpSirSupportedRates;
439
440
441typedef enum eSirRFBand
442{
443 SIR_BAND_UNKNOWN,
444 SIR_BAND_2_4_GHZ,
445 SIR_BAND_5_GHZ,
446} tSirRFBand;
447
448
449/*
450* Specifies which beacons are to be indicated upto the host driver when
451* Station is in power save mode.
452*/
453typedef enum eBeaconForwarding
454{
455 ePM_BEACON_FWD_NTH,
456 ePM_BEACON_FWD_TIM,
457 ePM_BEACON_FWD_DTIM,
458 ePM_BEACON_FWD_NONE
459} tBeaconForwarding;
460
461
Jeff Johnson295189b2012-06-20 16:38:30 -0700462typedef struct sSirRemainOnChnReq
463{
464 tANI_U16 messageType;
465 tANI_U16 length;
466 tANI_U8 sessionId;
467 tSirMacAddr selfMacAddr;
468 tANI_U8 chnNum;
469 tANI_U8 phyMode;
470 tANI_U32 duration;
Gopichand Nakkala924e4552013-05-08 19:18:14 +0530471 tANI_U8 isProbeRequestAllowed;
Jeff Johnson295189b2012-06-20 16:38:30 -0700472 tANI_U8 probeRspIe[1];
473}tSirRemainOnChnReq, *tpSirRemainOnChnReq;
474
Rashmi Ramannad3a03bf2013-12-31 18:33:24 +0530475/* Structure for vendor specific IE of debug marker frame
476 to debug remain on channel issues */
477typedef struct publicVendorSpecific
478{
479 tANI_U8 category;
480 tANI_U8 elementid;
481 tANI_U8 length;
482} publicVendorSpecific;
483
Jeff Johnson295189b2012-06-20 16:38:30 -0700484typedef struct sSirRegisterMgmtFrame
485{
486 tANI_U16 messageType;
487 tANI_U16 length;
488 tANI_U8 sessionId;
489 tANI_BOOLEAN registerFrame;
490 tANI_U16 frameType;
491 tANI_U16 matchLen;
492 tANI_U8 matchData[1];
493}tSirRegisterMgmtFrame, *tpSirRegisterMgmtFrame;
Jeff Johnson295189b2012-06-20 16:38:30 -0700494
495//
Jeff Johnson295189b2012-06-20 16:38:30 -0700496// Identifies the neighbor BSS' that was(were) detected
497// by an STA and reported to the AP
498//
499typedef struct sAniTitanCBNeighborInfo
500{
501 // A BSS was found on the Primary
502 tANI_U8 cbBssFoundPri;
503
504 // A BSS was found on the adjacent Upper Secondary
505 tANI_U8 cbBssFoundSecUp;
506
507 // A BSS was found on the adjacent Lower Secondary
508 tANI_U8 cbBssFoundSecDown;
509
510} tAniTitanCBNeighborInfo, *tpAniTitanCBNeighborInfo;
511
Jeff Johnson295189b2012-06-20 16:38:30 -0700512/// Generic type for sending a response message
513/// with result code to host software
514typedef struct sSirSmeRsp
515{
516 tANI_U16 messageType; // eWNI_SME_*_RSP
517 tANI_U16 length;
518 tANI_U8 sessionId; // To support BT-AMP
519 tANI_U16 transactionId; // To support BT-AMP
520 tSirResultCodes statusCode;
521} tSirSmeRsp, *tpSirSmeRsp;
522
523/// Definition for kick starting Firmware on STA
524typedef struct sSirSmeStartReq
525{
526 tANI_U16 messageType; // eWNI_SME_START_REQ
527 tANI_U16 length;
528 tANI_U8 sessionId; //Added for BT-AMP Support
529 tANI_U16 transcationId; //Added for BT-AMP Support
530 tSirMacAddr bssId; //Added For BT-AMP Support
531 tANI_U32 roamingAtPolaris;
Jeff Johnson295189b2012-06-20 16:38:30 -0700532 tANI_U32 sendNewBssInd;
Jeff Johnson295189b2012-06-20 16:38:30 -0700533} tSirSmeStartReq, *tpSirSmeStartReq;
534
535/// Definition for indicating all modules ready on STA
536typedef struct sSirSmeReadyReq
537{
538 tANI_U16 messageType; // eWNI_SME_SYS_READY_IND
539 tANI_U16 length;
540 tANI_U16 transactionId;
541} tSirSmeReadyReq, *tpSirSmeReadyReq;
542
543/// Definition for response message to previously issued start request
544typedef struct sSirSmeStartRsp
545{
546 tANI_U16 messageType; // eWNI_SME_START_RSP
547 tANI_U16 length;
548 tSirResultCodes statusCode;
549 tANI_U16 transactionId;
550} tSirSmeStartRsp, *tpSirSmeStartRsp;
551
Jeff Johnson295189b2012-06-20 16:38:30 -0700552
553/// Definition for Load structure
554typedef struct sSirLoad
555{
556 tANI_U16 numStas;
557 tANI_U16 channelUtilization;
558} tSirLoad, *tpSirLoad;
559
560/// BSS type enum used in while scanning/joining etc
561typedef enum eSirBssType
562{
563 eSIR_INFRASTRUCTURE_MODE,
Jeff Johnson295189b2012-06-20 16:38:30 -0700564 eSIR_INFRA_AP_MODE, //Added for softAP support
Jeff Johnson295189b2012-06-20 16:38:30 -0700565 eSIR_IBSS_MODE,
566 eSIR_BTAMP_STA_MODE, //Added for BT-AMP support
567 eSIR_BTAMP_AP_MODE, //Added for BT-AMP support
568 eSIR_AUTO_MODE,
569 eSIR_DONOT_USE_BSS_TYPE = SIR_MAX_ENUM_SIZE
570} tSirBssType;
571
572/// Definition for WDS Information
573typedef struct sSirWdsInfo
574{
575 tANI_U16 wdsLength;
576 tANI_U8 wdsBytes[ANI_WDS_INFO_MAX_LENGTH];
577} tSirWdsInfo, *tpSirWdsInfo;
578
579/// Power Capability info used in 11H
580typedef struct sSirMacPowerCapInfo
581{
582 tANI_U8 minTxPower;
583 tANI_U8 maxTxPower;
584} tSirMacPowerCapInfo, *tpSirMacPowerCapInfo;
585
586/// Supported Channel info used in 11H
587typedef struct sSirSupChnl
588{
589 tANI_U8 numChnl;
590 tANI_U8 channelList[SIR_MAX_SUPPORTED_CHANNEL_LIST];
591} tSirSupChnl, *tpSirSupChnl;
592
593typedef enum eSirNwType
594{
595 eSIR_11A_NW_TYPE,
596 eSIR_11B_NW_TYPE,
597 eSIR_11G_NW_TYPE,
598 eSIR_11N_NW_TYPE,
Jeff Johnsone7245742012-09-05 17:12:55 -0700599#ifdef WLAN_FEATURE_11AC
600 eSIR_11AC_NW_TYPE,
601#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700602 eSIR_DONOT_USE_NW_TYPE = SIR_MAX_ENUM_SIZE
603} tSirNwType;
604
605/// Definition for new iBss peer info
606typedef struct sSirNewIbssPeerInfo
607{
608 tSirMacAddr peerAddr;
609 tANI_U16 aid;
610} tSirNewIbssPeerInfo, *tpSirNewIbssPeerInfo;
611
612/// Definition for Alternate BSS info
613typedef struct sSirAlternateRadioInfo
614{
615 tSirMacAddr bssId;
616 tANI_U8 channelId;
617} tSirAlternateRadioInfo, *tpSirAlternateRadioInfo;
618
619/// Definition for Alternate BSS list
620typedef struct sSirAlternateRadioList
621{
622 tANI_U8 numBss;
623 tSirAlternateRadioInfo alternateRadio[1];
624} tSirAlternateRadioList, *tpSirAlternateRadioList;
625
626/// Definition for kick starting BSS
627/// ---> MAC
628/**
629 * Usage of ssId, numSSID & ssIdList:
630 * ---------------------------------
631 * 1. ssId.length of zero indicates that Broadcast/Suppress SSID
632 * feature is enabled.
633 * 2. If ssId.length is zero, MAC SW will advertise NULL SSID
634 * and interpret the SSID list from numSSID & ssIdList.
635 * 3. If ssId.length is non-zero, MAC SW will advertise the SSID
636 * specified in the ssId field and it is expected that
637 * application will set numSSID to one (only one SSID present
638 * in the list) and SSID in the list is same as ssId field.
639 * 4. Application will always set numSSID >= 1.
640 */
641//*****NOTE: Please make sure all codes are updated if inserting field into this structure..**********
642typedef struct sSirSmeStartBssReq
643{
644 tANI_U16 messageType; // eWNI_SME_START_BSS_REQ
645 tANI_U16 length;
646 tANI_U8 sessionId; //Added for BT-AMP Support
647 tANI_U16 transactionId; //Added for BT-AMP Support
648 tSirMacAddr bssId; //Added for BT-AMP Support
649 tSirMacAddr selfMacAddr; //Added for BT-AMP Support
650 tANI_U16 beaconInterval; //Added for BT-AMP Support
651 tANI_U8 dot11mode;
652 tSirBssType bssType;
653 tSirMacSSid ssId;
654 tANI_U8 channelId;
Jeff Johnsone7245742012-09-05 17:12:55 -0700655 ePhyChanBondState cbMode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700656
Jeff Johnson295189b2012-06-20 16:38:30 -0700657 tANI_U8 privacy;
658 tANI_U8 apUapsdEnable;
659 tANI_U8 ssidHidden;
660 tANI_BOOLEAN fwdWPSPBCProbeReq;
661 tANI_BOOLEAN protEnabled;
662 tANI_BOOLEAN obssProtEnabled;
663 tANI_U16 ht_capab;
664 tAniAuthType authType;
665 tANI_U32 dtimPeriod;
666 tANI_U8 wps_state;
krunal sonie9002db2013-11-25 14:24:17 -0800667 tANI_U8 isCoalesingInIBSSAllowed; //Coalesing on/off knob
Jeff Johnson295189b2012-06-20 16:38:30 -0700668 tVOS_CON_MODE bssPersona;
669
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -0800670 tANI_U8 txLdpcIniFeatureEnabled;
671
Jeff Johnson295189b2012-06-20 16:38:30 -0700672 tSirRSNie rsnIE; // RSN IE to be sent in
673 // Beacon and Probe
674 // Response frames
675 tSirNwType nwType; // Indicates 11a/b/g
676 tSirMacRateSet operationalRateSet;// Has 11a or 11b rates
677 tSirMacRateSet extendedRateSet; // Has 11g rates
678
Chet Lanctot8cecea22014-02-11 19:09:36 -0800679#ifdef WLAN_FEATURE_11W
680 tANI_BOOLEAN pmfCapable;
681 tANI_BOOLEAN pmfRequired;
682#endif
683
Hardik Kantilal Pateldd107952014-11-20 15:24:52 +0530684#ifdef WLAN_FEATURE_AP_HT40_24G
685 tANI_BOOLEAN apHT40_24GEnabled;
686#endif
Jeff Johnson295189b2012-06-20 16:38:30 -0700687} tSirSmeStartBssReq, *tpSirSmeStartBssReq;
688
689#define GET_IE_LEN_IN_BSS(lenInBss) ( lenInBss + sizeof(lenInBss) - \
krunal soni2a6a9062014-02-11 14:14:23 -0800690 ((uintptr_t)OFFSET_OF( tSirBssDescription, ieFields)))
Jeff Johnson295189b2012-06-20 16:38:30 -0700691
692#define WSCIE_PROBE_RSP_LEN (317 + 2)
693
694typedef struct sSirBssDescription
695{
696 //offset of the ieFields from bssId.
697 tANI_U16 length;
698 tSirMacAddr bssId;
699 v_TIME_t scanSysTimeMsec;
700 tANI_U32 timeStamp[2];
701 tANI_U16 beaconInterval;
702 tANI_U16 capabilityInfo;
703 tSirNwType nwType; // Indicates 11a/b/g
704 tANI_U8 aniIndicator;
705 tANI_S8 rssi;
706 tANI_S8 sinr;
707 //channelId what peer sent in beacon/probersp.
708 tANI_U8 channelId;
709 //channelId on which we are parked at.
710 //used only in scan case.
711 tANI_U8 channelIdSelf;
712 tANI_U8 sSirBssDescriptionRsvd[3];
Jeff Johnson295189b2012-06-20 16:38:30 -0700713 tANI_TIMESTAMP nReceivedTime; //base on a tick count. It is a time stamp, not a relative time.
714#if defined WLAN_FEATURE_VOWIFI
715 tANI_U32 parentTSF;
716 tANI_U32 startTSF[2];
717#endif
718#ifdef WLAN_FEATURE_VOWIFI_11R
719 tANI_U8 mdiePresent;
720 tANI_U8 mdie[SIR_MDIE_SIZE]; // MDIE for 11r, picked from the beacons
721#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800722#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -0700723 tANI_U16 QBSSLoad_present;
724 tANI_U16 QBSSLoad_avail;
725#endif
726 // Please keep the structure 4 bytes aligned above the ieFields
727
728 tANI_U8 fProbeRsp; //whether it is from a probe rsp
Madan Mohan Koyyalamudi2a6ba242012-10-31 17:06:19 -0700729 tANI_U8 reservedPadding1;
730 tANI_U8 reservedPadding2;
731 tANI_U8 reservedPadding3;
Jeff Johnson295189b2012-06-20 16:38:30 -0700732 tANI_U32 WscIeLen;
733 tANI_U8 WscIeProbeRsp[WSCIE_PROBE_RSP_LEN];
Madan Mohan Koyyalamudi2a6ba242012-10-31 17:06:19 -0700734 tANI_U8 reservedPadding4;
Prathyusha Kuntupalli7b8f6aa2012-12-10 13:17:35 -0800735
Jeff Johnson295189b2012-06-20 16:38:30 -0700736 tANI_U32 ieFields[1];
737} tSirBssDescription, *tpSirBssDescription;
738
739/// Definition for response message to previously
740/// issued start BSS request
741/// MAC --->
742typedef struct sSirSmeStartBssRsp
743{
744 tANI_U16 messageType; // eWNI_SME_START_BSS_RSP
745 tANI_U16 length;
746 tANI_U8 sessionId;
747 tANI_U16 transactionId;//transaction ID for cmd
748 tSirResultCodes statusCode;
749 tSirBssType bssType;//Add new type for WDS mode
750 tANI_U16 beaconInterval;//Beacon Interval for both type
751 tANI_U32 staId;//Staion ID for Self
752 tSirBssDescription bssDescription;//Peer BSS description
753} tSirSmeStartBssRsp, *tpSirSmeStartBssRsp;
754
Jeff Johnson295189b2012-06-20 16:38:30 -0700755
756typedef struct sSirChannelList
757{
758 tANI_U8 numChannels;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800759 tANI_U8 channelNumber[SIR_ESE_MAX_MEAS_IE_REQS];
Jeff Johnson295189b2012-06-20 16:38:30 -0700760} tSirChannelList, *tpSirChannelList;
761
Gopichand Nakkalad492d202013-05-10 02:50:47 +0530762typedef struct sSirDFSChannelList
763{
764 tANI_U32 timeStamp[SIR_MAX_24G_5G_CHANNEL_RANGE];
765
766} tSirDFSChannelList, *tpSirDFSChannelList;
767
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800768#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -0700769typedef struct sTspecInfo {
770 tANI_U8 valid;
771 tSirMacTspecIE tspec;
772} tTspecInfo;
773
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800774#define SIR_ESE_MAX_TSPEC_IES 4
775typedef struct sESETspecTspecInfo {
Jeff Johnson295189b2012-06-20 16:38:30 -0700776 tANI_U8 numTspecs;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800777 tTspecInfo tspec[SIR_ESE_MAX_TSPEC_IES];
778} tESETspecInfo;
Jeff Johnson295189b2012-06-20 16:38:30 -0700779#endif
780
Jeff Johnson295189b2012-06-20 16:38:30 -0700781
782/// Definition for Radar Info
783typedef struct sSirRadarInfo
784{
785 tANI_U8 channelNumber;
786 tANI_U16 radarPulseWidth; // in usecond
787 tANI_U16 numRadarPulse;
788} tSirRadarInfo, *tpSirRadarInfo;
789
790#define SIR_RADAR_INFO_SIZE (sizeof(tANI_U8) + 2 *sizeof(tANI_U16))
791
792/// Two Background Scan mode
793typedef enum eSirBackgroundScanMode
794{
795 eSIR_AGGRESSIVE_BACKGROUND_SCAN = 0,
Madan Mohan Koyyalamudi9b876782012-10-11 16:22:51 -0700796 eSIR_NORMAL_BACKGROUND_SCAN = 1,
797 eSIR_ROAMING_SCAN = 2,
Jeff Johnson295189b2012-06-20 16:38:30 -0700798} tSirBackgroundScanMode;
Jeff Johnson295189b2012-06-20 16:38:30 -0700799typedef enum eSirLinkTrafficCheck
800{
801 eSIR_DONT_CHECK_LINK_TRAFFIC_BEFORE_SCAN = 0,
Madan Mohan Koyyalamudi9b876782012-10-11 16:22:51 -0700802 eSIR_CHECK_LINK_TRAFFIC_BEFORE_SCAN = 1,
803 eSIR_CHECK_ROAMING_SCAN = 2,
Jeff Johnson295189b2012-06-20 16:38:30 -0700804} tSirLinkTrafficCheck;
805
806#define SIR_BG_SCAN_RETURN_CACHED_RESULTS 0x0
807#define SIR_BG_SCAN_PURGE_RESUTLS 0x80
808#define SIR_BG_SCAN_RETURN_FRESH_RESULTS 0x01
809#define SIR_SCAN_MAX_NUM_SSID 0x09
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700810#define SIR_BG_SCAN_RETURN_LFR_CACHED_RESULTS 0x02
811#define SIR_BG_SCAN_PURGE_LFR_RESULTS 0x40
Jeff Johnson295189b2012-06-20 16:38:30 -0700812
813/// Definition for scan request
814typedef struct sSirSmeScanReq
815{
816 tANI_U16 messageType; // eWNI_SME_SCAN_REQ
817 tANI_U16 length;
818 tANI_U8 sessionId; // Session ID
819 tANI_U16 transactionId; // Transaction ID for cmd
820 tSirMacAddr bssId;
821 tSirMacSSid ssId[SIR_SCAN_MAX_NUM_SSID];
822 tSirMacAddr selfMacAddr; //Added For BT-AMP Support
823 tSirBssType bssType;
824 tANI_U8 dot11mode;
825 tSirScanType scanType;
826 /**
827 * minChannelTime. Not used if scanType is passive.
828 * 0x0 - Dont Use min channel timer. Only max channel timeout will used.
829 * 11k measurements set this to zero to user only single duration for scan.
830 * <valid timeout> - Timeout value used for min channel timeout.
831 */
832 tANI_U32 minChannelTime;
833 /**
834 * maxChannelTime.
835 * 0x0 - Invalid. In case of active scan.
836 * In case of passive scan, MAX( maxChannelTime, WNI_CFG_PASSIVE_MAXIMUM_CHANNEL_TIME) is used.
837 *
838 */
839 tANI_U32 maxChannelTime;
840 /**
841 * returnAfterFirstMatch can take following values:
842 * 0x00 - Return SCAN_RSP message after complete channel scan
843 * 0x01 - Return SCAN_RSP message after collecting BSS description
844 * that matches scan criteria.
845 * 0xC0 - Return after collecting first 11d IE from 2.4 GHz &
846 * 5 GHz band channels
847 * 0x80 - Return after collecting first 11d IE from 5 GHz band
848 * channels
849 * 0x40 - Return after collecting first 11d IE from 2.4 GHz
850 * band channels
851 *
852 * Values of 0xC0, 0x80 & 0x40 are to be used by
853 * Roaming/application when 11d is enabled.
854 */
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800855 tANI_U32 minChannelTimeBtc; //in units of milliseconds
856 tANI_U32 maxChannelTimeBtc; //in units of milliseconds
Jeff Johnson295189b2012-06-20 16:38:30 -0700857 tANI_U8 returnAfterFirstMatch;
858
859 /**
860 * returnUniqueResults can take following values:
861 * 0 - Collect & report all received BSS descriptions from same BSS.
862 * 1 - Collect & report unique BSS description from same BSS.
863 */
864 tANI_U8 returnUniqueResults;
865
866 /**
867 * returnFreshResults can take following values:
868 * 0x00 - Return background scan results.
869 * 0x80 - Return & purge background scan results
870 * 0x01 - Trigger fresh scan instead of returning background scan
871 * results.
872 * 0x81 - Trigger fresh scan instead of returning background scan
873 * results and purge background scan results.
874 */
875 tANI_U8 returnFreshResults;
876
877 /* backgroundScanMode can take following values:
878 * 0x0 - agressive scan
879 * 0x1 - normal scan where HAL will check for link traffic
880 * prior to proceeding with the scan
881 */
882 tSirBackgroundScanMode backgroundScanMode;
883
884 tANI_U8 hiddenSsid;
885
886 /* Number of SSIDs to scan */
887 tANI_U8 numSsid;
888
889 //channelList has to be the last member of this structure. Check tSirChannelList for the reason.
890 /* This MUST be the last field of the structure */
891
892
Jeff Johnson295189b2012-06-20 16:38:30 -0700893 tANI_BOOLEAN p2pSearch;
Jeff Johnson295189b2012-06-20 16:38:30 -0700894 tANI_U16 uIEFieldLen;
895 tANI_U16 uIEFieldOffset;
896
897 //channelList MUST be the last field of this structure
898 tSirChannelList channelList;
899 /*-----------------------------
900 tSirSmeScanReq....
901 -----------------------------
902 uIEFiledLen
903 -----------------------------
904 uIEFiledOffset ----+
905 ----------------------------- |
906 channelList.numChannels |
907 ----------------------------- |
908 ... variable size up to |
909 channelNumber[numChannels-1] |
910 This can be zero, if |
911 numChannel is zero. |
912 ----------------------------- <--+
913 ... variable size uIEFiled
914 up to uIEFieldLen (can be 0)
915 -----------------------------*/
916} tSirSmeScanReq, *tpSirSmeScanReq;
917
Madan Mohan Koyyalamudiff3a7152013-06-13 14:47:55 +0530918typedef struct sSirSmeScanAbortReq
919{
920 tANI_U16 type;
921 tANI_U16 msgLen;
922 tANI_U8 sessionId;
923} tSirSmeScanAbortReq, *tpSirSmeScanAbortReq;
924
Madan Mohan Koyyalamudide1b5bc2013-07-12 00:56:04 +0530925typedef struct sSirSmeScanChanReq
926{
927 tANI_U16 type;
928 tANI_U16 msgLen;
929 tANI_U8 sessionId;
930 tANI_U16 transcationId;
931} tSirSmeGetScanChanReq, *tpSirSmeGetScanChanReq;
932
Jeff Johnsone7245742012-09-05 17:12:55 -0700933#ifdef FEATURE_OEM_DATA_SUPPORT
934
935#ifndef OEM_DATA_REQ_SIZE
Madan Mohan Koyyalamudi7a4d9312012-12-04 17:21:36 -0800936#define OEM_DATA_REQ_SIZE 134
Jeff Johnsone7245742012-09-05 17:12:55 -0700937#endif
938#ifndef OEM_DATA_RSP_SIZE
Madan Mohan Koyyalamudi7a4d9312012-12-04 17:21:36 -0800939#define OEM_DATA_RSP_SIZE 1968
Jeff Johnsone7245742012-09-05 17:12:55 -0700940#endif
941
942typedef struct sSirOemDataReq
943{
944 tANI_U16 messageType; //eWNI_SME_OEM_DATA_REQ
Siddharth Bhal88aa5322014-06-19 14:27:15 +0530945 tANI_U16 messageLen;
Jeff Johnsone7245742012-09-05 17:12:55 -0700946 tSirMacAddr selfMacAddr;
947 tANI_U8 oemDataReq[OEM_DATA_REQ_SIZE];
948} tSirOemDataReq, *tpSirOemDataReq;
949
950typedef struct sSirOemDataRsp
951{
952 tANI_U16 messageType;
953 tANI_U16 length;
954 tANI_U8 oemDataRsp[OEM_DATA_RSP_SIZE];
955} tSirOemDataRsp, *tpSirOemDataRsp;
956
957#endif //FEATURE_OEM_DATA_SUPPORT
Jeff Johnson295189b2012-06-20 16:38:30 -0700958
959/// Definition for response message to previously issued scan request
960typedef struct sSirSmeScanRsp
961{
962 tANI_U16 messageType; // eWNI_SME_SCAN_RSP
963 tANI_U16 length;
964 tANI_U8 sessionId;
965 tSirResultCodes statusCode;
966 tANI_U16 transcationId;
967 tSirBssDescription bssDescription[1];
968} tSirSmeScanRsp, *tpSirSmeScanRsp;
969
970/// Sme Req message to set the Background Scan mode
971typedef struct sSirSmeBackgroundScanModeReq
972{
973 tANI_U16 messageType; // eWNI_SME_BACKGROUND_SCAN_MODE_REQ
974 tANI_U16 length;
975 tSirBackgroundScanMode mode;
976} tSirSmeBackgroundScanModeReq, *tpSirSmeBackgroundScanModeReq;
977
978/// Background Scan Statisics
979typedef struct sSirBackgroundScanInfo {
980 tANI_U32 numOfScanSuccess;
981 tANI_U32 numOfScanFailure;
982 tANI_U32 reserved;
983} tSirBackgroundScanInfo, *tpSirBackgroundScanInfo;
984
985#define SIR_BACKGROUND_SCAN_INFO_SIZE (3 * sizeof(tANI_U32))
986
987/// Definition for Authentication request
988typedef struct sSirSmeAuthReq
989{
990 tANI_U16 messageType; // eWNI_SME_AUTH_REQ
991 tANI_U16 length;
992 tANI_U8 sessionId; // Session ID
993 tANI_U16 transactionId; // Transaction ID for cmd
994 tSirMacAddr bssId; // Self BSSID
995 tSirMacAddr peerMacAddr;
996 tAniAuthType authType;
997 tANI_U8 channelNumber;
998} tSirSmeAuthReq, *tpSirSmeAuthReq;
999
1000/// Definition for reponse message to previously issued Auth request
1001typedef struct sSirSmeAuthRsp
1002{
1003 tANI_U16 messageType; // eWNI_SME_AUTH_RSP
1004 tANI_U16 length;
1005 tANI_U8 sessionId; // Session ID
1006 tANI_U16 transactionId; // Transaction ID for cmd
1007 tSirMacAddr peerMacAddr;
1008 tAniAuthType authType;
1009 tSirResultCodes statusCode;
1010 tANI_U16 protStatusCode; //It holds reasonCode when Pre-Auth fails due to deauth frame.
1011 //Otherwise it holds status code.
1012} tSirSmeAuthRsp, *tpSirSmeAuthRsp;
1013
Jeff Johnson295189b2012-06-20 16:38:30 -07001014
Jeff Johnson295189b2012-06-20 16:38:30 -07001015
Jeff Johnson295189b2012-06-20 16:38:30 -07001016/// Definition for Join/Reassoc info - Reshmi: need to check if this is a def which moved from elsehwere.
1017typedef struct sJoinReassocInfo
1018{
1019 tAniTitanCBNeighborInfo cbNeighbors;
1020 tAniBool spectrumMgtIndicator;
1021 tSirMacPowerCapInfo powerCap;
1022 tSirSupChnl supportedChannels;
1023} tJoinReassocInfo, *tpJoinReassocInfo;
Jeff Johnson295189b2012-06-20 16:38:30 -07001024
1025/// Definition for join request
1026/// ---> MAC
1027/// WARNING! If you add a field in JOIN REQ.
1028/// Make sure to add it in REASSOC REQ
1029/// The Serdes function is the same and its
1030/// shared with REASSOC. So if we add a field
1031// here and dont add it in REASSOC REQ. It will BREAK!!! REASSOC.
1032typedef struct sSirSmeJoinReq
1033{
1034 tANI_U16 messageType; // eWNI_SME_JOIN_REQ
1035 tANI_U16 length;
Jeff Johnsone7245742012-09-05 17:12:55 -07001036 tANI_U8 sessionId;
Jeff Johnson295189b2012-06-20 16:38:30 -07001037 tANI_U16 transactionId;
1038 tSirMacSSid ssId;
1039 tSirMacAddr selfMacAddr; // self Mac address
1040 tSirBssType bsstype; // add new type for BT -AMP STA and AP Modules
1041 tANI_U8 dot11mode; // to support BT-AMP
Jeff Johnsone7245742012-09-05 17:12:55 -07001042 tVOS_CON_MODE staPersona; //Persona
Sushant Kaushik74df8db2015-03-11 18:09:05 +05301043 tANI_BOOLEAN bOSENAssociation; //HS2.0
Jeff Johnsone7245742012-09-05 17:12:55 -07001044 ePhyChanBondState cbMode; // Pass CB mode value in Join.
Jeff Johnson295189b2012-06-20 16:38:30 -07001045
1046 /*This contains the UAPSD Flag for all 4 AC
1047 * B0: AC_VO UAPSD FLAG
1048 * B1: AC_VI UAPSD FLAG
1049 * B2: AC_BK UAPSD FLAG
1050 * B3: AC_BE UASPD FLAG
1051 */
1052 tANI_U8 uapsdPerAcBitmask;
1053
Jeff Johnson295189b2012-06-20 16:38:30 -07001054 tSirMacRateSet operationalRateSet;// Has 11a or 11b rates
1055 tSirMacRateSet extendedRateSet; // Has 11g rates
Masti, Narayanraddi67ea5912015-01-08 12:34:05 +05301056 tANI_U16 rateBitMap;
Jeff Johnson295189b2012-06-20 16:38:30 -07001057 tSirRSNie rsnIE; // RSN IE to be sent in
1058 // (Re) Association Request
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001059#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07001060 tSirCCKMie cckmIE; // CCMK IE to be included as handler for join and reassoc is
1061 // the same. The join will never carry cckm, but will be set to
1062 // 0.
1063#endif
1064
1065 tSirAddie addIEScan; // Additional IE to be sent in
1066 // (unicast) Probe Request at the time of join
1067
1068 tSirAddie addIEAssoc; // Additional IE to be sent in
1069 // (Re) Association Request
1070
1071 tAniEdType UCEncryptionType;
1072
1073 tAniEdType MCEncryptionType;
Chet Lanctot186b5732013-03-18 10:26:30 -07001074
1075#ifdef WLAN_FEATURE_11W
1076 tAniEdType MgmtEncryptionType;
1077#endif
1078
Jeff Johnson295189b2012-06-20 16:38:30 -07001079#ifdef WLAN_FEATURE_VOWIFI_11R
1080 tAniBool is11Rconnection;
1081#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001082#ifdef FEATURE_WLAN_ESE
1083 tAniBool isESEFeatureIniEnabled;
1084 tAniBool isESEconnection;
1085 tESETspecInfo eseTspecInfo;
Jeff Johnson295189b2012-06-20 16:38:30 -07001086#endif
1087
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001088#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR)
Jeff Johnson295189b2012-06-20 16:38:30 -07001089 tAniBool isFastTransitionEnabled;
1090#endif
Jeff Johnson43971f52012-07-17 12:26:56 -07001091#ifdef FEATURE_WLAN_LFR
1092 tAniBool isFastRoamIniFeatureEnabled;
1093#endif
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08001094
1095 tANI_U8 txLdpcIniFeatureEnabled;
Shailender Karmuchi08f87c22013-01-17 12:51:24 -08001096#ifdef WLAN_FEATURE_11AC
1097 tANI_U8 txBFIniFeatureEnabled;
Shailender Karmuchicc3fe442013-02-16 18:18:33 -08001098 tANI_U8 txBFCsnValue;
Abhishek Singh6d5d29c2014-07-03 14:25:22 +05301099 tANI_U8 txMuBformee;
Shailender Karmuchi08f87c22013-01-17 12:51:24 -08001100#endif
krunal soni5afa96c2013-09-06 22:19:02 -07001101 tANI_U8 isAmsduSupportInAMPDU;
Sandeep Puligillaaea98a22013-12-04 13:36:32 +05301102 tAniBool isWMEenabled;
1103 tAniBool isQosEnabled;
Jeff Johnson295189b2012-06-20 16:38:30 -07001104 tAniTitanCBNeighborInfo cbNeighbors;
1105 tAniBool spectrumMgtIndicator;
1106 tSirMacPowerCapInfo powerCap;
1107 tSirSupChnl supportedChannels;
Jeff Johnson295189b2012-06-20 16:38:30 -07001108 tSirBssDescription bssDescription;
Jeff Johnson295189b2012-06-20 16:38:30 -07001109
1110} tSirSmeJoinReq, *tpSirSmeJoinReq;
1111
1112/// Definition for reponse message to previously issued join request
1113/// MAC --->
1114typedef struct sSirSmeJoinRsp
1115{
1116 tANI_U16 messageType; // eWNI_SME_JOIN_RSP
1117 tANI_U16 length;
1118 tANI_U8 sessionId; // Session ID
1119 tANI_U16 transactionId; // Transaction ID for cmd
1120 tSirResultCodes statusCode;
Jeff Johnson295189b2012-06-20 16:38:30 -07001121 tAniAuthType authType;
Jeff Johnson295189b2012-06-20 16:38:30 -07001122 tANI_U16 protStatusCode; //It holds reasonCode when join fails due to deauth/disassoc frame.
1123 //Otherwise it holds status code.
1124 tANI_U16 aid;
1125 tANI_U32 beaconLength;
1126 tANI_U32 assocReqLength;
1127 tANI_U32 assocRspLength;
1128#ifdef WLAN_FEATURE_VOWIFI_11R
1129 tANI_U32 parsedRicRspLen;
1130#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001131#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07001132 tANI_U32 tspecIeLen;
1133#endif
1134 tANI_U32 staId;//Station ID for peer
1135
1136 /*The DPU signatures will be sent eventually to TL to help it determine the
1137 association to which a packet belongs to*/
1138 /*Unicast DPU signature*/
1139 tANI_U8 ucastSig;
1140
1141 /*Broadcast DPU signature*/
1142 tANI_U8 bcastSig;
1143
c_hpothu44ff4e02014-05-08 00:13:57 +05301144 /*to report MAX link-speed populate rate-flags from ASSOC RSP frame*/
1145 tANI_U32 maxRateFlags;
1146
Jeff Johnson295189b2012-06-20 16:38:30 -07001147 tANI_U8 frames[ 1 ];
1148} tSirSmeJoinRsp, *tpSirSmeJoinRsp;
1149
1150/// Definition for Authentication indication from peer
1151typedef struct sSirSmeAuthInd
1152{
1153 tANI_U16 messageType; // eWNI_SME_AUTH_IND
1154 tANI_U16 length;
1155 tANI_U8 sessionId;
1156 tSirMacAddr bssId; // Self BSSID
1157 tSirMacAddr peerMacAddr;
1158 tAniAuthType authType;
1159} tSirSmeAuthInd, *tpSirSmeAuthInd;
1160
1161/// probereq from peer, when wsc is enabled
1162typedef struct sSirSmeProbereq
1163{
1164 tANI_U16 messageType; // eWNI_SME_PROBE_REQ
1165 tANI_U16 length;
1166 tANI_U8 sessionId;
1167 tSirMacAddr peerMacAddr;
1168 tANI_U16 devicePasswdId;
1169} tSirSmeProbeReq, *tpSirSmeProbeReq;
1170
1171/// Definition for Association indication from peer
1172/// MAC --->
1173typedef struct sSirSmeAssocInd
1174{
1175 tANI_U16 messageType; // eWNI_SME_ASSOC_IND
1176 tANI_U16 length;
1177 tANI_U8 sessionId;
1178 tSirMacAddr peerMacAddr;
1179 tANI_U16 aid;
1180 tSirMacAddr bssId; // Self BSSID
1181 tANI_U16 staId; // Station ID for peer
1182 tANI_U8 uniSig; // DPU signature for unicast packets
1183 tANI_U8 bcastSig; // DPU signature for broadcast packets
1184 tAniAuthType authType;
1185 tAniSSID ssId; // SSID used by STA to associate
1186 tSirRSNie rsnIE;// RSN IE received from peer
1187 tSirAddie addIE;// Additional IE received from peer, which possibly include WSC IE and/or P2P IE
1188
Jeff Johnson295189b2012-06-20 16:38:30 -07001189 // powerCap & supportedChannels are present only when
1190 // spectrumMgtIndicator flag is set
1191 tAniBool spectrumMgtIndicator;
1192 tSirMacPowerCapInfo powerCap;
1193 tSirSupChnl supportedChannels;
Jeff Johnson295189b2012-06-20 16:38:30 -07001194 tAniBool wmmEnabledSta; /* if present - STA is WMM enabled */
Hardik Kantilal Patel1ba630f2014-11-21 04:32:05 +05301195#ifdef WLAN_FEATURE_AP_HT40_24G
1196 tAniBool HT40MHzIntoEnabledSta; /* if present - STA Enable 40 MHz Intolerant */
1197#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001198 tAniBool reassocReq;
1199 // Required for indicating the frames to upper layer
1200 tANI_U32 beaconLength;
1201 tANI_U8* beaconPtr;
1202 tANI_U32 assocReqLength;
1203 tANI_U8* assocReqPtr;
Deepthi Gowriae6a1662015-10-12 12:59:37 +05301204 uint32_t rate_flags;
Jeff Johnson295189b2012-06-20 16:38:30 -07001205} tSirSmeAssocInd, *tpSirSmeAssocInd;
1206
1207
1208/// Definition for Association confirm
1209/// ---> MAC
1210typedef struct sSirSmeAssocCnf
1211{
1212 tANI_U16 messageType; // eWNI_SME_ASSOC_CNF
1213 tANI_U16 length;
1214 tSirResultCodes statusCode;
1215 tSirMacAddr bssId; // Self BSSID
1216 tSirMacAddr peerMacAddr;
1217 tANI_U16 aid;
1218 tSirMacAddr alternateBssId;
1219 tANI_U8 alternateChannelId;
1220} tSirSmeAssocCnf, *tpSirSmeAssocCnf;
1221
Jeff Johnson295189b2012-06-20 16:38:30 -07001222/// Definition for Reassociation indication from peer
1223typedef struct sSirSmeReassocInd
1224{
1225 tANI_U16 messageType; // eWNI_SME_REASSOC_IND
1226 tANI_U16 length;
1227 tANI_U8 sessionId; // Session ID
1228 tSirMacAddr peerMacAddr;
1229 tSirMacAddr oldMacAddr;
1230 tANI_U16 aid;
1231 tSirMacAddr bssId; // Self BSSID
1232 tANI_U16 staId; // Station ID for peer
1233 tAniAuthType authType;
1234 tAniSSID ssId; // SSID used by STA to reassociate
1235 tSirRSNie rsnIE; // RSN IE received from peer
1236
1237 tSirAddie addIE; // Additional IE received from peer
1238
Jeff Johnson295189b2012-06-20 16:38:30 -07001239 // powerCap & supportedChannels are present only when
1240 // spectrumMgtIndicator flag is set
1241 tAniBool spectrumMgtIndicator;
1242 tSirMacPowerCapInfo powerCap;
1243 tSirSupChnl supportedChannels;
Jeff Johnson295189b2012-06-20 16:38:30 -07001244 // Required for indicating the frames to upper layer
1245 // TODO: use the appropriate names to distinguish between the other similar names used above for station mode of operation
1246 tANI_U32 beaconLength;
1247 tANI_U8* beaconPtr;
1248 tANI_U32 assocReqLength;
1249 tANI_U8* assocReqPtr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001250} tSirSmeReassocInd, *tpSirSmeReassocInd;
1251
1252/// Definition for Reassociation confirm
1253/// ---> MAC
1254typedef struct sSirSmeReassocCnf
1255{
1256 tANI_U16 messageType; // eWNI_SME_REASSOC_CNF
1257 tANI_U16 length;
1258 tSirResultCodes statusCode;
1259 tSirMacAddr bssId; // Self BSSID
1260 tSirMacAddr peerMacAddr;
1261 tANI_U16 aid;
1262 tSirMacAddr alternateBssId;
1263 tANI_U8 alternateChannelId;
1264} tSirSmeReassocCnf, *tpSirSmeReassocCnf;
1265
Jeff Johnson295189b2012-06-20 16:38:30 -07001266
1267/// Enum definition for Wireless medium status change codes
1268typedef enum eSirSmeStatusChangeCode
1269{
1270 eSIR_SME_DEAUTH_FROM_PEER,
1271 eSIR_SME_DISASSOC_FROM_PEER,
1272 eSIR_SME_LOST_LINK_WITH_PEER,
1273 eSIR_SME_CHANNEL_SWITCH,
1274 eSIR_SME_JOINED_NEW_BSS,
1275 eSIR_SME_LEAVING_BSS,
1276 eSIR_SME_IBSS_ACTIVE,
1277 eSIR_SME_IBSS_INACTIVE,
1278 eSIR_SME_IBSS_PEER_DEPARTED,
1279 eSIR_SME_RADAR_DETECTED,
1280 eSIR_SME_IBSS_NEW_PEER,
1281 eSIR_SME_AP_CAPS_CHANGED,
1282 eSIR_SME_BACKGROUND_SCAN_FAIL,
1283 eSIR_SME_CB_LEGACY_BSS_FOUND_BY_AP,
1284 eSIR_SME_CB_LEGACY_BSS_FOUND_BY_STA
1285} tSirSmeStatusChangeCode;
1286
1287typedef struct sSirSmeNewBssInfo
1288{
1289 tSirMacAddr bssId;
1290 tANI_U8 channelNumber;
1291 tANI_U8 reserved;
1292 tSirMacSSid ssId;
1293} tSirSmeNewBssInfo, *tpSirSmeNewBssInfo;
1294
1295typedef struct sSirSmeApNewCaps
1296{
1297 tANI_U16 capabilityInfo;
1298 tSirMacAddr bssId;
1299 tANI_U8 channelId;
1300 tANI_U8 reserved[3];
1301 tSirMacSSid ssId;
1302} tSirSmeApNewCaps, *tpSirSmeApNewCaps;
1303
1304/**
1305 * Table below indicates what information is passed for each of
1306 * the Wireless Media status change notifications:
1307 *
1308 * Status Change code Status change info
1309 * ----------------------------------------------------------------------
1310 * eSIR_SME_DEAUTH_FROM_PEER Reason code received in DEAUTH frame
1311 * eSIR_SME_DISASSOC_FROM_PEER Reason code received in DISASSOC frame
1312 * eSIR_SME_LOST_LINK_WITH_PEER None
1313 * eSIR_SME_CHANNEL_SWITCH New channel number
1314 * eSIR_SME_JOINED_NEW_BSS BSSID, SSID and channel number
1315 * eSIR_SME_LEAVING_BSS None
1316 * eSIR_SME_IBSS_ACTIVE Indicates that another STA joined
1317 * IBSS apart from this STA that
1318 * started IBSS
1319 * eSIR_SME_IBSS_INACTIVE Indicates that only this STA is left
1320 * in IBSS
1321 * eSIR_SME_RADAR_DETECTED Indicates that radar is detected
1322 * eSIR_SME_IBSS_NEW_PEER Indicates that a new peer is detected
1323 * eSIR_SME_AP_CAPS_CHANGED Indicates that capabilities of the AP
1324 * that STA is currently associated with
1325 * have changed.
1326 * eSIR_SME_BACKGROUND_SCAN_FAIL Indicates background scan failure
1327 */
1328
1329/// Definition for Wireless medium status change notification
1330typedef struct sSirSmeWmStatusChangeNtf
1331{
1332 tANI_U16 messageType; // eWNI_SME_WM_STATUS_CHANGE_NTF
1333 tANI_U16 length;
1334 tANI_U8 sessionId; // Session ID
1335 tSirSmeStatusChangeCode statusChangeCode;
1336 tSirMacAddr bssId; // Self BSSID
1337 union
1338 {
1339 tANI_U16 deAuthReasonCode; // eSIR_SME_DEAUTH_FROM_PEER
1340 tANI_U16 disassocReasonCode; // eSIR_SME_DISASSOC_FROM_PEER
1341 // none for eSIR_SME_LOST_LINK_WITH_PEER
1342 tANI_U8 newChannelId; // eSIR_SME_CHANNEL_SWITCH
1343 tSirSmeNewBssInfo newBssInfo; // eSIR_SME_JOINED_NEW_BSS
1344 // none for eSIR_SME_LEAVING_BSS
1345 // none for eSIR_SME_IBSS_ACTIVE
1346 // none for eSIR_SME_IBSS_INACTIVE
Jeff Johnson295189b2012-06-20 16:38:30 -07001347 tSirNewIbssPeerInfo newIbssPeerInfo; // eSIR_SME_IBSS_NEW_PEER
1348 tSirSmeApNewCaps apNewCaps; // eSIR_SME_AP_CAPS_CHANGED
1349 tSirBackgroundScanInfo bkgndScanInfo; // eSIR_SME_BACKGROUND_SCAN_FAIL
1350 tAniTitanCBNeighborInfo cbNeighbors; // eSIR_SME_CB_LEGACY_BSS_FOUND_BY_STA
Jeff Johnson295189b2012-06-20 16:38:30 -07001351 } statusChangeInfo;
1352} tSirSmeWmStatusChangeNtf, *tpSirSmeWmStatusChangeNtf;
1353
1354/// Definition for Disassociation request
1355typedef
Jeff Johnson295189b2012-06-20 16:38:30 -07001356__ani_attr_pre_packed
Jeff Johnson295189b2012-06-20 16:38:30 -07001357struct sSirSmeDisassocReq
1358{
1359 tANI_U16 messageType; // eWNI_SME_DISASSOC_REQ
1360 tANI_U16 length;
1361 tANI_U8 sessionId; // Session ID
1362 tANI_U16 transactionId; // Transaction ID for cmd
1363 tSirMacAddr bssId; // Peer BSSID
1364 tSirMacAddr peerMacAddr;
1365 tANI_U16 reasonCode;
1366 tANI_U8 doNotSendOverTheAir; //This flag tells LIM whether to send the disassoc OTA or not
1367 //This will be set in while handing off from one AP to other
Jeff Johnson295189b2012-06-20 16:38:30 -07001368}
Jeff Johnson295189b2012-06-20 16:38:30 -07001369__ani_attr_packed
Jeff Johnson295189b2012-06-20 16:38:30 -07001370tSirSmeDisassocReq, *tpSirSmeDisassocReq;
1371
1372/// Definition for Tkip countermeasures request
Jeff Johnson295189b2012-06-20 16:38:30 -07001373typedef __ani_attr_pre_packed struct sSirSmeTkipCntrMeasReq
1374{
1375 tANI_U16 messageType; // eWNI_SME_DISASSOC_REQ
1376 tANI_U16 length;
1377 tANI_U8 sessionId; // Session ID
1378 tANI_U16 transactionId; // Transaction ID for cmd
1379 tSirMacAddr bssId; // Peer BSSID
1380 tANI_BOOLEAN bEnable; // Start/stop countermeasures
1381} __ani_attr_packed tSirSmeTkipCntrMeasReq, *tpSirSmeTkipCntrMeasReq;
Jeff Johnson295189b2012-06-20 16:38:30 -07001382
1383typedef struct sAni64BitCounters
1384{
1385 tANI_U32 Hi;
1386 tANI_U32 Lo;
1387}tAni64BitCounters, *tpAni64BitCounters;
1388
1389typedef struct sAniSecurityStat
1390{
1391 tAni64BitCounters txBlks;
1392 tAni64BitCounters rxBlks;
1393 tAni64BitCounters formatErrorCnt;
1394 tAni64BitCounters decryptErr;
1395 tAni64BitCounters protExclCnt;
1396 tAni64BitCounters unDecryptableCnt;
1397 tAni64BitCounters decryptOkCnt;
1398
1399}tAniSecurityStat, *tpAniSecurityStat;
1400
1401typedef struct sAniTxRxCounters
1402{
1403 tANI_U32 txFrames; // Incremented for every packet tx
1404 tANI_U32 rxFrames;
1405 tANI_U32 nRcvBytes;
1406 tANI_U32 nXmitBytes;
1407}tAniTxRxCounters, *tpAniTxRxCounters;
1408
1409typedef struct sAniTxRxStats
1410{
1411 tAni64BitCounters txFrames;
1412 tAni64BitCounters rxFrames;
1413 tAni64BitCounters nRcvBytes;
1414 tAni64BitCounters nXmitBytes;
1415
1416}tAniTxRxStats,*tpAniTxRxStats;
1417
1418typedef struct sAniSecStats
1419{
1420 tAniSecurityStat aes;
1421 tAni64BitCounters aesReplays;
1422 tAniSecurityStat tkip;
1423 tAni64BitCounters tkipReplays;
1424 tAni64BitCounters tkipMicError;
1425
1426 tAniSecurityStat wep;
1427#if defined(FEATURE_WLAN_WAPI) && !defined(LIBRA_WAPI_SUPPORT)
1428 tAniSecurityStat wpi;
1429 tAni64BitCounters wpiReplays;
1430 tAni64BitCounters wpiMicError;
1431#endif
1432}tAniSecStats, *tpAniSecStats;
1433
1434#define SIR_MAX_RX_CHAINS 3
1435
1436typedef struct sAniStaStatStruct
1437{
1438 /* following statistic elements till expandPktRxCntLo are not filled with valid data.
1439 * These are kept as it is, since WSM is using this structure.
1440 * These elements can be removed whenever WSM is updated.
1441 * Phystats is used to hold phystats from BD.
1442 */
1443 tANI_U32 sentAesBlksUcastHi;
1444 tANI_U32 sentAesBlksUcastLo;
1445 tANI_U32 recvAesBlksUcastHi;
1446 tANI_U32 recvAesBlksUcastLo;
1447 tANI_U32 aesFormatErrorUcastCnts;
1448 tANI_U32 aesReplaysUcast;
1449 tANI_U32 aesDecryptErrUcast;
1450 tANI_U32 singleRetryPkts;
1451 tANI_U32 failedTxPkts;
1452 tANI_U32 ackTimeouts;
1453 tANI_U32 multiRetryPkts;
1454 tANI_U32 fragTxCntsHi;
1455 tANI_U32 fragTxCntsLo;
1456 tANI_U32 transmittedPktsHi;
1457 tANI_U32 transmittedPktsLo;
1458 tANI_U32 phyStatHi; //These are used to fill in the phystats.
1459 tANI_U32 phyStatLo; //This is only for private use.
1460
1461 tANI_U32 uplinkRssi;
1462 tANI_U32 uplinkSinr;
1463 tANI_U32 uplinkRate;
1464 tANI_U32 downlinkRssi;
1465 tANI_U32 downlinkSinr;
1466 tANI_U32 downlinkRate;
1467 tANI_U32 nRcvBytes;
1468 tANI_U32 nXmitBytes;
1469
1470 // titan 3c stats
1471 tANI_U32 chunksTxCntHi; // Number of Chunks Transmitted
1472 tANI_U32 chunksTxCntLo;
1473 tANI_U32 compPktRxCntHi; // Number of Packets Received that were actually compressed
1474 tANI_U32 compPktRxCntLo;
1475 tANI_U32 expanPktRxCntHi; // Number of Packets Received that got expanded
1476 tANI_U32 expanPktRxCntLo;
1477
1478
1479 /* Following elements are valid and filled in correctly. They have valid values.
1480 */
1481
1482 //Unicast frames and bytes.
1483 tAniTxRxStats ucStats;
1484
1485 //Broadcast frames and bytes.
1486 tAniTxRxStats bcStats;
1487
1488 //Multicast frames and bytes.
1489 tAniTxRxStats mcStats;
1490
1491 tANI_U32 currentTxRate;
1492 tANI_U32 currentRxRate; //Rate in 100Kbps
1493
1494 tANI_U32 maxTxRate;
1495 tANI_U32 maxRxRate;
1496
1497 tANI_S8 rssi[SIR_MAX_RX_CHAINS];
1498
1499
1500 tAniSecStats securityStats;
1501
1502 tANI_U8 currentRxRateIdx; //This the softmac rate Index.
1503 tANI_U8 currentTxRateIdx;
1504
1505} tAniStaStatStruct, *tpAniStaStatStruct;
1506
1507//Statistics that are not maintained per stations.
1508typedef struct sAniGlobalStatStruct
1509{
1510 tAni64BitCounters txError;
1511 tAni64BitCounters rxError;
1512 tAni64BitCounters rxDropNoBuffer;
1513 tAni64BitCounters rxDropDup;
1514 tAni64BitCounters rxCRCError;
1515
1516 tAni64BitCounters singleRetryPkts;
1517 tAni64BitCounters failedTxPkts;
1518 tAni64BitCounters ackTimeouts;
1519 tAni64BitCounters multiRetryPkts;
1520 tAni64BitCounters fragTxCnts;
1521 tAni64BitCounters fragRxCnts;
1522
1523 tAni64BitCounters txRTSSuccess;
1524 tAni64BitCounters txCTSSuccess;
1525 tAni64BitCounters rxRTSSuccess;
1526 tAni64BitCounters rxCTSSuccess;
1527
1528 tAniSecStats securityStats;
1529
1530 tAniTxRxStats mcStats;
1531 tAniTxRxStats bcStats;
1532
1533}tAniGlobalStatStruct,*tpAniGlobalStatStruct;
1534
1535typedef enum sPacketType
1536{
1537 ePACKET_TYPE_UNKNOWN,
1538 ePACKET_TYPE_11A,
1539 ePACKET_TYPE_11G,
1540 ePACKET_TYPE_11B,
1541 ePACKET_TYPE_11N
1542
1543}tPacketType, *tpPacketType;
1544
1545typedef struct sAniStatSummaryStruct
1546{
1547 tAniTxRxStats uc; //Unicast counters.
1548 tAniTxRxStats bc; //Broadcast counters.
1549 tAniTxRxStats mc; //Multicast counters.
1550 tAni64BitCounters txError;
1551 tAni64BitCounters rxError;
1552 tANI_S8 rssi[SIR_MAX_RX_CHAINS]; //For each chain.
1553 tANI_U32 rxRate; // Rx rate of the last received packet.
1554 tANI_U32 txRate;
1555 tANI_U16 rxMCSId; //MCS index is valid only when packet type is ePACKET_TYPE_11N
1556 tANI_U16 txMCSId;
1557 tPacketType rxPacketType;
1558 tPacketType txPacketType;
1559 tSirMacAddr macAddr; //Mac Address of the station from which above RSSI and rate is from.
1560}tAniStatSummaryStruct,*tpAniStatSummaryStruct;
1561
Jeff Johnson295189b2012-06-20 16:38:30 -07001562//structure for stats that may be reset, like the ones in sta descriptor
1563//The stats are saved into here before reset. It should be tANI_U32 aligned.
1564typedef struct _sPermStaStats
1565{
1566 //tANI_U32 sentAesBlksUcastHi;
1567 //tANI_U32 sentAesBlksUcastLo;
1568 //tANI_U32 recvAesBlksUcastHi;
1569 //tANI_U32 recvAesBlksUcastLo;
1570 tANI_U32 aesFormatErrorUcastCnts;
1571 tANI_U32 aesReplaysUcast;
1572 tANI_U32 aesDecryptErrUcast;
1573 tANI_U32 singleRetryPkts;
1574 tANI_U32 failedTxPkts;
1575 tANI_U32 ackTimeouts;
1576 tANI_U32 multiRetryPkts;
1577 tANI_U32 fragTxCntsHi;
1578 tANI_U32 fragTxCntsLo;
1579 tANI_U32 transmittedPktsHi;
1580 tANI_U32 transmittedPktsLo;
1581
1582 // titan 3c stats
1583 tANI_U32 chunksTxCntHi; // Number of Chunks Transmitted
1584 tANI_U32 chunksTxCntLo;
1585 tANI_U32 compPktRxCntHi; // Number of Packets Received that were actually compressed
1586 tANI_U32 compPktRxCntLo;
1587 tANI_U32 expanPktRxCntHi; // Number of Packets Received that got expanded
1588 tANI_U32 expanPktRxCntLo;
1589}tPermanentStaStats;
1590
Jeff Johnson295189b2012-06-20 16:38:30 -07001591
1592
1593
1594/// Definition for Disassociation response
1595typedef struct sSirSmeDisassocRsp
1596{
1597 tANI_U16 messageType; // eWNI_SME_DISASSOC_RSP
1598 tANI_U16 length;
1599 tANI_U8 sessionId; // Session ID
1600 tANI_U16 transactionId; // Transaction ID for cmd
1601 tSirResultCodes statusCode;
1602 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001603 tAniStaStatStruct perStaStats; // STA stats
Jeff Johnson295189b2012-06-20 16:38:30 -07001604 tANI_U16 staId;
Jeff Johnson295189b2012-06-20 16:38:30 -07001605}
Jeff Johnson295189b2012-06-20 16:38:30 -07001606__ani_attr_packed
Jeff Johnson295189b2012-06-20 16:38:30 -07001607 tSirSmeDisassocRsp, *tpSirSmeDisassocRsp;
1608
1609/// Definition for Disassociation indication from peer
1610typedef struct sSirSmeDisassocInd
1611{
1612 tANI_U16 messageType; // eWNI_SME_DISASSOC_IND
1613 tANI_U16 length;
1614 tANI_U8 sessionId; // Session Identifier
1615 tANI_U16 transactionId; // Transaction Identifier with PE
1616 tSirResultCodes statusCode;
1617 tSirMacAddr bssId;
1618 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001619 tAniStaStatStruct perStaStats; // STA stats
Jeff Johnson295189b2012-06-20 16:38:30 -07001620 tANI_U16 staId;
Mohit Khanna99d5fd02012-09-11 14:51:20 -07001621 tANI_U32 reasonCode;
Jeff Johnson295189b2012-06-20 16:38:30 -07001622} tSirSmeDisassocInd, *tpSirSmeDisassocInd;
1623
1624/// Definition for Disassociation confirm
1625/// MAC --->
1626typedef struct sSirSmeDisassocCnf
1627{
1628 tANI_U16 messageType; // eWNI_SME_DISASSOC_CNF
1629 tANI_U16 length;
1630 tSirResultCodes statusCode;
1631 tSirMacAddr bssId;
1632 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001633} tSirSmeDisassocCnf, *tpSirSmeDisassocCnf;
1634
1635/// Definition for Deauthetication request
1636typedef struct sSirSmeDeauthReq
1637{
1638 tANI_U16 messageType; // eWNI_SME_DEAUTH_REQ
1639 tANI_U16 length;
1640 tANI_U8 sessionId; // Session ID
1641 tANI_U16 transactionId; // Transaction ID for cmd
1642 tSirMacAddr bssId; // AP BSSID
1643 tSirMacAddr peerMacAddr;
1644 tANI_U16 reasonCode;
Jeff Johnson295189b2012-06-20 16:38:30 -07001645} tSirSmeDeauthReq, *tpSirSmeDeauthReq;
1646
1647/// Definition for Deauthetication response
1648typedef struct sSirSmeDeauthRsp
1649{
1650 tANI_U16 messageType; // eWNI_SME_DEAUTH_RSP
1651 tANI_U16 length;
1652 tANI_U8 sessionId; // Session ID
1653 tANI_U16 transactionId; // Transaction ID for cmd
1654 tSirResultCodes statusCode;
1655 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001656} tSirSmeDeauthRsp, *tpSirSmeDeauthRsp;
1657
1658/// Definition for Deauthetication indication from peer
1659typedef struct sSirSmeDeauthInd
1660{
1661 tANI_U16 messageType; // eWNI_SME_DEAUTH_IND
1662 tANI_U16 length;
1663 tANI_U8 sessionId; //Added for BT-AMP
1664 tANI_U16 transactionId; //Added for BT-AMP
1665 tSirResultCodes statusCode;
1666 tSirMacAddr bssId;// AP BSSID
1667 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001668
Jeff Johnson295189b2012-06-20 16:38:30 -07001669 tANI_U16 staId;
Mohit Khanna99d5fd02012-09-11 14:51:20 -07001670 tANI_U32 reasonCode;
Jeff Johnson295189b2012-06-20 16:38:30 -07001671} tSirSmeDeauthInd, *tpSirSmeDeauthInd;
1672
1673/// Definition for Deauthentication confirm
1674/// MAC --->
1675typedef struct sSirSmeDeauthCnf
1676{
1677 tANI_U16 messageType; // eWNI_SME_DEAUTH_CNF
1678 tANI_U16 length;
1679 tSirResultCodes statusCode;
1680 tSirMacAddr bssId; // AP BSSID
1681 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001682} tSirSmeDeauthCnf, *tpSirSmeDeauthCnf;
1683
1684/// Definition for stop BSS request message
1685typedef struct sSirSmeStopBssReq
1686{
1687 tANI_U16 messageType; // eWNI_SME_STOP_BSS_REQ
1688 tANI_U16 length;
1689 tANI_U8 sessionId; //Session ID
1690 tANI_U16 transactionId; //tranSaction ID for cmd
1691 tSirResultCodes reasonCode;
1692 tSirMacAddr bssId; //Self BSSID
1693} tSirSmeStopBssReq, *tpSirSmeStopBssReq;
1694
1695/// Definition for stop BSS response message
1696typedef struct sSirSmeStopBssRsp
1697{
1698 tANI_U16 messageType; // eWNI_SME_STOP_BSS_RSP
1699 tANI_U16 length;
1700 tSirResultCodes statusCode;
1701 tANI_U8 sessionId; // Session ID
1702 tANI_U16 transactionId; // Transaction ID for cmd
1703} tSirSmeStopBssRsp, *tpSirSmeStopBssRsp;
1704
Jeff Johnson295189b2012-06-20 16:38:30 -07001705
1706
1707/// Definition for Channel Switch indication for station
1708/// MAC --->
1709typedef struct sSirSmeSwitchChannelInd
1710{
1711 tANI_U16 messageType; // eWNI_SME_SWITCH_CHL_REQ
1712 tANI_U16 length;
1713 tANI_U8 sessionId;
1714 tANI_U16 newChannelId;
1715 tSirMacAddr bssId; // BSSID
1716} tSirSmeSwitchChannelInd, *tpSirSmeSwitchChannelInd;
1717
1718/// Definition for ULA complete indication message
1719typedef struct sirUlaCompleteInd
1720{
1721 tANI_U16 messageType; // eWNI_ULA_COMPLETE_IND
1722 tANI_U16 length;
1723 tSirResultCodes statusCode;
1724 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001725} tSirUlaCompleteInd, *tpSirUlaCompleteInd;
1726
1727/// Definition for ULA complete confirmation message
1728typedef struct sirUlaCompleteCnf
1729{
1730 tANI_U16 messageType; // eWNI_ULA_COMPLETE_CNF
1731 tANI_U16 length;
1732 tSirResultCodes statusCode;
1733 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001734} tSirUlaCompleteCnf, *tpSirUlaCompleteCnf;
1735
1736/// Definition for Neighbor BSS indication
1737/// MAC --->
1738/// MAC reports this each time a new I/BSS is detected
1739typedef struct sSirSmeNeighborBssInd
1740{
1741 tANI_U16 messageType; // eWNI_SME_NEIGHBOR_BSS_IND
1742 tANI_U16 length;
1743 tANI_U8 sessionId;
Jeff Johnson295189b2012-06-20 16:38:30 -07001744 tSirBssDescription bssDescription[1];
Jeff Johnson295189b2012-06-20 16:38:30 -07001745} tSirSmeNeighborBssInd, *tpSirSmeNeighborBssInd;
1746
1747/// Definition for MIC failure indication
1748/// MAC --->
1749/// MAC reports this each time a MIC failure occures on Rx TKIP packet
1750typedef struct sSirSmeMicFailureInd
1751{
1752 tANI_U16 messageType; // eWNI_SME_MIC_FAILURE_IND
1753 tANI_U16 length;
1754 tANI_U8 sessionId;
1755 tSirMacAddr bssId; // BSSID
1756 tSirMicFailureInfo info;
1757} tSirSmeMicFailureInd, *tpSirSmeMicFailureInd;
1758
Sachin Ahuja3d47fcd2015-08-28 16:02:06 +05301759typedef struct sSirSmeLostLinkParamsInd
1760{
1761 tANI_U16 messageType;
1762 tANI_U16 length;
1763 tANI_U8 sessionId;
1764 tSirLostLinkParamsInfo info;
1765} tSirSmeLostLinkParamsInd, *tpSirSmeLostLinkParamsInd;
1766
1767
Leela Venkata Kiran Kumar Reddy Chirala3ca17902013-02-27 19:50:05 -08001768typedef struct sSirSmeMissedBeaconInd
1769{
1770 tANI_U16 messageType; // eWNI_SME_MISSED_BEACON_IND
1771 tANI_U16 length;
1772 tANI_U8 bssIdx;
1773} tSirSmeMissedBeaconInd, *tpSirSmeMissedBeaconInd;
Jeff Johnson295189b2012-06-20 16:38:30 -07001774
1775/// Definition for Set Context request
1776/// ---> MAC
1777typedef struct sSirSmeSetContextReq
1778{
1779 tANI_U16 messageType; // eWNI_SME_SET_CONTEXT_REQ
1780 tANI_U16 length;
1781 tANI_U8 sessionId; //Session ID
1782 tANI_U16 transactionId; //Transaction ID for cmd
1783 tSirMacAddr peerMacAddr;
1784 tSirMacAddr bssId; // BSSID
Jeff Johnson295189b2012-06-20 16:38:30 -07001785 // TBD Following QOS fields to be uncommented
1786 //tAniBool qosInfoPresent;
1787 //tSirQos qos;
1788 tSirKeyMaterial keyMaterial;
1789} tSirSmeSetContextReq, *tpSirSmeSetContextReq;
1790
1791/// Definition for Set Context response
1792/// MAC --->
1793typedef struct sSirSmeSetContextRsp
1794{
1795 tANI_U16 messageType; // eWNI_SME_SET_CONTEXT_RSP
1796 tANI_U16 length;
1797 tANI_U8 sessionId; // Session ID
1798 tANI_U16 transactionId; // Transaction ID for cmd
1799 tSirResultCodes statusCode;
1800 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001801} tSirSmeSetContextRsp, *tpSirSmeSetContextRsp;
1802
1803/// Definition for Remove Key Context request
1804/// ---> MAC
1805typedef struct sSirSmeRemoveKeyReq
1806{
1807 tANI_U16 messageType; // eWNI_SME_REMOVE_KEY_REQ
1808 tANI_U16 length;
1809 tANI_U8 sessionId; // Session ID
1810 tANI_U16 transactionId; // Transaction ID for cmd
1811 tSirMacAddr bssId; // BSSID
1812 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001813 tANI_U8 edType;
1814 tANI_U8 wepType;
1815 tANI_U8 keyId;
1816 tANI_BOOLEAN unicast;
1817} tSirSmeRemoveKeyReq, *tpSirSmeRemoveKeyReq;
1818
1819/// Definition for Remove Key Context response
1820/// MAC --->
1821typedef struct sSirSmeRemoveKeyRsp
1822{
1823 tANI_U16 messageType; // eWNI_SME_REMOVE_KEY_RSP
1824 tANI_U16 length;
1825 tANI_U8 sessionId; // Session ID
1826 tANI_U16 transactionId; // Transaction ID for cmd
1827 tSirResultCodes statusCode;
1828 tSirMacAddr peerMacAddr;
Jeff Johnson295189b2012-06-20 16:38:30 -07001829} tSirSmeRemoveKeyRsp, *tpSirSmeRemoveKeyRsp;
1830
1831/// Definition for Set Power request
1832/// ---> MAC
1833typedef struct sSirSmeSetPowerReq
1834{
1835 tANI_U16 messageType; // eWNI_SME_SET_POWER_REQ
1836 tANI_U16 length;
1837 tANI_U16 transactionId; // Transaction ID for cmd
1838 tANI_S8 powerLevel;
1839} tSirSmeSetPowerReq, *tpSirSmeSetPowerReq;
1840
1841/// Definition for Set Power response
1842/// MAC --->
1843typedef struct sSirSmeSetPowerRsp
1844{
1845 tANI_U16 messageType; // eWNI_SME_SET_POWER_RSP
1846 tANI_U16 length;
1847 tSirResultCodes statusCode;
1848 tANI_U16 transactionId; // Transaction ID for cmd
1849} tSirSmeSetPowerRsp, *tpSirSmeSetPowerRsp;
1850
Jeff Johnson295189b2012-06-20 16:38:30 -07001851
1852/// Definition for Link Test Start response
1853/// MAC --->
1854typedef struct sSirSmeLinkTestStartRsp
1855{
1856 tANI_U16 messageType; // eWNI_SME_LINK_TEST_START_RSP
1857 tANI_U16 length;
1858 tSirMacAddr peerMacAddr;
1859 tSirResultCodes statusCode;
Jeff Johnson295189b2012-06-20 16:38:30 -07001860} tSirSmeLinkTestStartRsp, *tpSirSmeLinkTestStartRsp;
1861
1862/// Definition for Link Test Stop response
1863/// WSM ---> MAC
1864typedef struct sSirSmeLinkTestStopRsp
1865{
1866 tANI_U16 messageType; // eWNI_SME_LINK_TEST_STOP_RSP
1867 tANI_U16 length;
1868 tSirMacAddr peerMacAddr;
1869 tSirResultCodes statusCode;
Jeff Johnson295189b2012-06-20 16:38:30 -07001870} tSirSmeLinkTestStopRsp, *tpSirSmeLinkTestStopRsp;
1871
1872/// Definition for kick starting DFS measurements
1873typedef struct sSirSmeDFSreq
1874{
1875 tANI_U16 messageType; // eWNI_SME_DFS_REQ
1876 tANI_U16 length;
1877 tANI_U16 transactionId; // Transaction ID for cmd
1878} tSirSmeDFSrequest, *tpSirSmeDFSrequest;
1879
1880/// Definition for response message to previously
1881/// issued DFS request
1882typedef struct sSirSmeDFSrsp
1883{
1884 tANI_U16 messageType; // eWNI_SME_DFS_RSP
1885 tANI_U16 length;
1886 tSirResultCodes statusCode;
1887 tANI_U16 transactionId; // Transaction ID for cmd
1888 tANI_U32 dfsReport[1];
1889} tSirSmeDFSrsp, *tpSirSmeDFSrsp;
1890
1891/// Statistic definitions
1892//=============================================================
1893// Per STA statistic structure; This same struct will be used for Aggregate
1894// STA stats as well.
1895
1896// Clear radio stats and clear per sta stats
1897typedef enum
1898{
1899 eANI_CLEAR_ALL_STATS, // Clears all stats
1900 eANI_CLEAR_RX_STATS, // Clears RX statistics of the radio interface
1901 eANI_CLEAR_TX_STATS, // Clears TX statistics of the radio interface
1902 eANI_CLEAR_RADIO_STATS, // Clears all the radio stats
1903 eANI_CLEAR_PER_STA_STATS, // Clears Per STA stats
1904 eANI_CLEAR_AGGR_PER_STA_STATS, // Clears aggregate stats
1905
1906 // Used to distinguish between per sta to security stats.
1907 // Used only by AP, FW just returns the same parameter as it received.
1908 eANI_LINK_STATS, // Get Per STA stats
1909 eANI_SECURITY_STATS, // Get Per STA security stats
1910
1911 eANI_CLEAR_STAT_TYPES_END
1912} tAniStatSubTypes;
1913
1914typedef struct sAniTxCtrs
1915{
1916 // add the rate counters here
1917 tANI_U32 tx1Mbps;
1918 tANI_U32 tx2Mbps;
1919 tANI_U32 tx5_5Mbps;
1920 tANI_U32 tx6Mbps;
1921 tANI_U32 tx9Mbps;
1922 tANI_U32 tx11Mbps;
1923 tANI_U32 tx12Mbps;
1924 tANI_U32 tx18Mbps;
1925 tANI_U32 tx24Mbps;
1926 tANI_U32 tx36Mbps;
1927 tANI_U32 tx48Mbps;
1928 tANI_U32 tx54Mbps;
1929 tANI_U32 tx72Mbps;
1930 tANI_U32 tx96Mbps;
1931 tANI_U32 tx108Mbps;
1932
1933 // tx path radio counts
1934 tANI_U32 txFragHi;
1935 tANI_U32 txFragLo;
1936 tANI_U32 txFrameHi;
1937 tANI_U32 txFrameLo;
1938 tANI_U32 txMulticastFrameHi;
1939 tANI_U32 txMulticastFrameLo;
1940 tANI_U32 txFailedHi;
1941 tANI_U32 txFailedLo;
1942 tANI_U32 multipleRetryHi;
1943 tANI_U32 multipleRetryLo;
1944 tANI_U32 singleRetryHi;
1945 tANI_U32 singleRetryLo;
1946 tANI_U32 ackFailureHi;
1947 tANI_U32 ackFailureLo;
1948 tANI_U32 xmitBeacons;
1949
1950 // titan 3c stats
1951 tANI_U32 txCbEscPktCntHi; // Total Number of Channel Bonded/Escort Packet Transmitted
1952 tANI_U32 txCbEscPktCntLo;
1953 tANI_U32 txChunksCntHi; // Total Number of Chunks Transmitted
1954 tANI_U32 txChunksCntLo;
1955 tANI_U32 txCompPktCntHi; // Total Number of Compresssed Packet Transmitted
1956 tANI_U32 txCompPktCntLo;
1957 tANI_U32 tx50PerCompPktCntHi; // Total Number of Packets with 50% or more compression
1958 tANI_U32 tx50PerCompPktCntLo;
1959 tANI_U32 txExpanPktCntHi; // Total Number of Packets Transmitted that got expanded
1960 tANI_U32 txExpanPktCntLo;
1961} tAniTxCtrs, *tpAniTxCtrs;
1962
1963typedef struct sAniRxCtrs
1964{
1965 // receive frame rate counters
1966 tANI_U32 rx1Mbps;
1967 tANI_U32 rx2Mbps;
1968 tANI_U32 rx5_5Mbps;
1969 tANI_U32 rx6Mbps;
1970 tANI_U32 rx9Mbps;
1971 tANI_U32 rx11Mbps;
1972 tANI_U32 rx12Mbps;
1973 tANI_U32 rx18Mbps;
1974 tANI_U32 rx24Mbps;
1975 tANI_U32 rx36Mbps;
1976 tANI_U32 rx48Mbps;
1977 tANI_U32 rx54Mbps;
1978 tANI_U32 rx72Mbps;
1979 tANI_U32 rx96Mbps;
1980 tANI_U32 rx108Mbps;
1981
1982 // receive size counters; 'Lte' = Less than or equal to
1983 tANI_U32 rxLte64;
1984 tANI_U32 rxLte128Gt64;
1985 tANI_U32 rxLte256Gt128;
1986 tANI_U32 rxLte512Gt256;
1987 tANI_U32 rxLte1kGt512;
1988 tANI_U32 rxLte1518Gt1k;
1989 tANI_U32 rxLte2kGt1518;
1990 tANI_U32 rxLte4kGt2k;
1991
1992 // rx radio stats
1993 tANI_U32 rxFrag;
1994 tANI_U32 rxFrame;
1995 tANI_U32 fcsError;
1996 tANI_U32 rxMulticast;
1997 tANI_U32 duplicate;
1998 tANI_U32 rtsSuccess;
1999 tANI_U32 rtsFailed;
2000 tANI_U32 wepUndecryptables;
2001 tANI_U32 drops;
2002 tANI_U32 aesFormatErrorUcastCnts;
2003 tANI_U32 aesReplaysUcast;
2004 tANI_U32 aesDecryptErrUcast;
2005
2006 // titan 3c stats
2007 tANI_U32 rxDecompPktCntHi; // Total Number of Packets that got decompressed
2008 tANI_U32 rxDecompPktCntLo;
2009 tANI_U32 rxCompPktCntHi; // Total Number of Packets received that were actually compressed
2010 tANI_U32 rxCompPktCntLo;
2011 tANI_U32 rxExpanPktCntHi; // Total Number of Packets received that got expanded
2012 tANI_U32 rxExpanPktCntLo;
2013} tAniRxCtrs, *tpAniRxCtrs;
2014
2015// Radio stats
2016typedef struct sAniRadioStats
2017{
2018 tAniTxCtrs tx;
2019 tAniRxCtrs rx;
2020} tAniRadioStats, *tpAniRadioStats;
2021
2022// Get Radio Stats request structure
2023// This structure shall be used for both Radio stats and Aggregate stats
2024// A valid request must contain entire structure with/without valid fields.
2025// Based on the request type, the valid fields will be checked.
2026typedef struct sAniGetStatsReq
2027{
2028 // Common for all types are requests
2029 tANI_U16 msgType; // message type is same as the request type
2030 tANI_U16 msgLen; // length of the entire request
2031 tANI_U8 sessionId; //Session ID
2032 tANI_U16 transactionId;
2033 tSirMacAddr bssId; //BSSID
2034 // only used for clear stats and per sta stats clear
2035 tAniStatSubTypes stat; // Clears the stats of the described types.
2036 tANI_U32 staId; // Per STA stats request must contain valid
2037 // values
2038 tANI_U8 macAddr[6];
2039} tAniGetStatsReq, *tpAniGetStatsReq;
2040
2041// Get Radio Stats response struct
2042typedef struct sAniGetRadioStatsRsp
2043{
2044 tANI_U16 type; // message type is same as the request type
2045 tANI_U16 msgLen; // length of the entire request
2046 tANI_U32 rc;
2047 tANI_U16 transactionId;
2048 tAniRadioStats radio;
2049} tAniGetRadioStatsRsp, *tpAniGetRadioStatsRsp;
2050
2051// Per Sta stats response struct
2052typedef struct sAniGetPerStaStatsRsp
2053{
2054 tANI_U16 type; // message type is same as the request type
2055 tANI_U16 msgLen; // length of the entire request
2056 tANI_U32 rc;
2057 tANI_U16 transactionId;
2058 tAniStatSubTypes stat; // Sub type needed by AP. Returns the same value
2059 tAniStaStatStruct sta;
2060 tANI_U32 staId;
2061 tANI_U8 macAddr[6];
2062} tAniGetPerStaStatsRsp, *tpAniGetPerStaStatsRsp;
2063
2064// Get Aggregate stats
2065typedef struct sAniGetAggrStaStatsRsp
2066{
2067 tANI_U16 type; // message type is same as the request type
2068 tANI_U16 msgLen; // length of the entire request
2069 tANI_U32 rc;
2070 tANI_U16 transactionId;
2071 tAniStaStatStruct sta;
2072} tAniGetAggrStaStatsRsp, *tpAniGetAggrStaStatsRsp;
2073
2074// Clear stats request and response structure. 'rc' field is unused in
2075// request and this field is used in response field.
2076typedef struct sAniClearStatsRsp
2077{
2078 tANI_U16 type; // message type is same as the request type
2079 tANI_U16 msgLen; // length of the entire request
2080 tANI_U32 rc; // return code - will be filled by FW on
2081 // response.
2082 // Same transaction ID will be returned by the FW
2083 tANI_U16 transactionId;
2084 tAniStatSubTypes stat; // Clears the stats of the described types.
2085 tANI_U32 staId; // Applicable only to PER STA stats clearing
2086 tANI_U8 macAddr[6]; // Applicable only to PER STA stats clearing
2087} tAniClearStatsRsp, *tpAniClearStatsRsp;
2088
2089typedef struct sAniGetGlobalStatsRsp
2090{
2091 tANI_U16 type; // message type is same as the request type
2092 tANI_U16 msgLen; // length of the entire request
2093 tANI_U32 rc;
2094 tANI_U16 transactionId;
2095 tAniGlobalStatStruct global;
2096} tAniGetGlobalStatsRsp, *tpAniGetGlobalStatsRsp;
2097
2098typedef struct sAniGetStatSummaryRsp
2099{
2100 tANI_U16 type; // message type is same as the request type
2101 tANI_U16 msgLen; // length of the entire request --Why?
2102 tANI_U32 rc;
2103 tANI_U16 transactionId;
2104 tAniStatSummaryStruct stat;
2105} tAniGetStatSummaryRsp, *tpAniGetStatSummaryRsp;
2106
2107//***************************************************************
2108
2109
2110/*******************PE Statistics*************************/
2111typedef enum
2112{
2113 PE_SUMMARY_STATS_INFO = 0x00000001,
2114 PE_GLOBAL_CLASS_A_STATS_INFO = 0x00000002,
2115 PE_GLOBAL_CLASS_B_STATS_INFO = 0x00000004,
2116 PE_GLOBAL_CLASS_C_STATS_INFO = 0x00000008,
2117 PE_GLOBAL_CLASS_D_STATS_INFO = 0x00000010,
Sushant Kaushik33200572015-08-05 16:46:20 +05302118 PE_PER_STA_STATS_INFO = 0x00000020,
2119 PE_PER_TX_PKT_STATS_INFO = 0x00000040,
Jeff Johnson295189b2012-06-20 16:38:30 -07002120}ePEStatsMask;
2121
2122/*
2123 * tpAniGetPEStatsReq is tied to
2124 * for SME ==> PE eWNI_SME_GET_STATISTICS_REQ msgId and
2125 * for PE ==> HAL SIR_HAL_GET_STATISTICS_REQ msgId
2126 */
2127typedef struct sAniGetPEStatsReq
2128{
2129 // Common for all types are requests
2130 tANI_U16 msgType; // message type is same as the request type
2131 tANI_U16 msgLen; // length of the entire request
2132 tANI_U32 staId; // Per STA stats request must contain valid
2133 tANI_U32 statsMask; // categories of stats requested. look at ePEStatsMask
2134} tAniGetPEStatsReq, *tpAniGetPEStatsReq;
2135
2136/*
2137 * tpAniGetPEStatsRsp is tied to
2138 * for PE ==> SME eWNI_SME_GET_STATISTICS_RSP msgId and
2139 * for HAL ==> PE SIR_HAL_GET_STATISTICS_RSP msgId
2140 */
2141typedef struct sAniGetPEStatsRsp
2142{
2143 // Common for all types are responses
2144 tANI_U16 msgType; // message type is same as the request type
2145 tANI_U16 msgLen; // length of the entire request, includes the pStatsBuf length too
2146 tANI_U8 sessionId;
2147 tANI_U32 rc; //success/failure
2148 tANI_U32 staId; // Per STA stats request must contain valid
2149 tANI_U32 statsMask; // categories of stats requested. look at ePEStatsMask
2150/**********************************************************************************************
2151 //void *pStatsBuf;
2152 The Stats buffer starts here and can be an aggregate of more than one statistics
2153 structure depending on statsMask.The void pointer "pStatsBuf" is commented out
2154 intentionally and the src code that uses this structure should take that into account.
2155**********************************************************************************************/
2156} tAniGetPEStatsRsp, *tpAniGetPEStatsRsp;
2157
2158typedef struct sAniGetRssiReq
2159{
2160 // Common for all types are requests
2161 tANI_U16 msgType; // message type is same as the request type
2162 tANI_U16 msgLen; // length of the entire request
2163 tANI_U8 sessionId;
2164 tANI_U8 staId;
2165 void *rssiCallback;
2166 void *pDevContext; //device context
2167 void *pVosContext; //voss context
2168
2169} tAniGetRssiReq, *tpAniGetRssiReq;
2170
Madan Mohan Koyyalamudid9383fd2013-08-13 09:27:30 +05302171typedef struct sAniGetSnrReq
2172{
2173 // Common for all types are requests
2174 tANI_U16 msgType; // message type is same as the request type
2175 tANI_U16 msgLen; // length of the entire request
2176 tANI_U8 sessionId;
2177 tANI_U8 staId;
2178 void *snrCallback;
2179 void *pDevContext; //device context
2180} tAniGetSnrReq, *tpAniGetSnrReq;
2181
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002182#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR)
Srinivas Girigowdad34cedb2013-01-25 13:33:11 -08002183typedef struct sAniGetRoamRssiRsp
2184{
2185 // Common for all types are responses
2186 tANI_U16 msgType; // message type is same as the request type
2187 tANI_U16 msgLen; // length of the entire request, includes the pStatsBuf length too
2188 tANI_U8 sessionId;
2189 tANI_U32 rc; //success/failure
2190 tANI_U32 staId; // Per STA stats request must contain valid
2191 tANI_S8 rssi;
2192 void *rssiReq; //rssi request backup
2193
2194} tAniGetRoamRssiRsp, *tpAniGetRoamRssiRsp;
2195
2196#endif
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002197
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002198#if defined(FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_ESE_UPLOAD)
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002199
2200typedef struct sSirTsmIE
2201{
2202 tANI_U8 tsid;
2203 tANI_U8 state;
2204 tANI_U16 msmt_interval;
2205} tSirTsmIE, *tpSirTsmIE;
2206
2207typedef struct sSirSmeTsmIEInd
2208{
2209 tSirTsmIE tsmIe;
2210 tANI_U8 sessionId;
2211} tSirSmeTsmIEInd, *tpSirSmeTsmIEInd;
2212
2213
2214typedef struct sAniTrafStrmMetrics
2215{
2216 tANI_U16 UplinkPktQueueDly;
2217 tANI_U16 UplinkPktQueueDlyHist[4];
2218 tANI_U32 UplinkPktTxDly;
2219 tANI_U16 UplinkPktLoss;
2220 tANI_U16 UplinkPktCount;
2221 tANI_U8 RoamingCount;
2222 tANI_U16 RoamingDly;
2223} tAniTrafStrmMetrics, *tpAniTrafStrmMetrics;
2224
2225typedef struct sAniGetTsmStatsReq
2226{
2227 // Common for all types are requests
2228 tANI_U16 msgType; // message type is same as the request type
2229 tANI_U16 msgLen; // length of the entire request
2230 tANI_U8 staId;
2231 tANI_U8 tid; // traffic id
2232 tSirMacAddr bssId;
2233 void *tsmStatsCallback;
2234 void *pDevContext; //device context
2235 void *pVosContext; //voss context
2236} tAniGetTsmStatsReq, *tpAniGetTsmStatsReq;
2237
2238typedef struct sAniGetTsmStatsRsp
2239{
2240 // Common for all types are responses
2241 tANI_U16 msgType; // message type is same as the request type
2242 tANI_U16 msgLen; // length of the entire request, includes the pStatsBuf length too
2243 tANI_U8 sessionId;
2244 tANI_U32 rc; //success/failure
2245 tANI_U32 staId; // Per STA stats request must contain valid
2246 tAniTrafStrmMetrics tsmMetrics;
2247 void *tsmStatsReq; //tsm stats request backup
2248} tAniGetTsmStatsRsp, *tpAniGetTsmStatsRsp;
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -08002249
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002250typedef struct sSirEseBcnReportBssInfo
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -08002251{
2252 tBcnReportFields bcnReportFields;
2253 tANI_U8 ieLen;
2254 tANI_U8 *pBuf;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002255} tSirEseBcnReportBssInfo, *tpSirEseBcnReportBssInfo;
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -08002256
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002257typedef struct sSirEseBcnReportRsp
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -08002258{
2259 tANI_U16 measurementToken;
2260 tANI_U8 flag; /* Flag to report measurement done and more data */
2261 tANI_U8 numBss;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002262 tSirEseBcnReportBssInfo bcnRepBssInfo[SIR_BCN_REPORT_MAX_BSS_DESC];
2263} tSirEseBcnReportRsp, *tpSirEseBcnReportRsp;
Srinivas Girigowda91ccbe82013-11-10 16:37:38 -08002264
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002265#endif /* FEATURE_WLAN_ESE || FEATURE_WLAN_ESE_UPLOAD */
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002266
Jeff Johnson295189b2012-06-20 16:38:30 -07002267/* Change country code request MSG structure */
2268typedef struct sAniChangeCountryCodeReq
2269{
2270 // Common for all types are requests
2271 tANI_U16 msgType; // message type is same as the request type
2272 tANI_U16 msgLen; // length of the entire request
2273 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN]; //3 char country code
Gopichand Nakkalaacd94112013-05-29 21:37:47 +05302274 tAniBool countryFromUserSpace;
Abhishek Singha306a442013-11-07 18:39:01 +05302275 tAniBool sendRegHint; //TRUE if we want to send hint to NL80211
Jeff Johnson295189b2012-06-20 16:38:30 -07002276 void *changeCCCallback;
2277 void *pDevContext; //device context
2278 void *pVosContext; //voss context
Amar Singhal0d15bd52013-10-12 23:13:13 -07002279
Jeff Johnson295189b2012-06-20 16:38:30 -07002280} tAniChangeCountryCodeReq, *tpAniChangeCountryCodeReq;
2281
Amar Singhal0d15bd52013-10-12 23:13:13 -07002282/* generic country code change request MSG structure */
2283typedef struct sAniGenericChangeCountryCodeReq
2284{
2285 // Common for all types are requests
2286 tANI_U16 msgType; // message type is same as the request type
2287 tANI_U16 msgLen; // length of the entire request
2288 tANI_U8 countryCode[WNI_CFG_COUNTRY_CODE_LEN]; //3 char country code
2289 tANI_U16 domain_index;
Amar Singhal0d15bd52013-10-12 23:13:13 -07002290} tAniGenericChangeCountryCodeReq, *tpAniGenericChangeCountryCodeReq;
2291
Sundaresan Ramachandran76e48e82013-07-15 13:07:17 +05302292typedef struct sAniDHCPStopInd
2293{
2294 tANI_U16 msgType; // message type is same as the request type
2295 tANI_U16 msgLen; // length of the entire request
2296 tANI_U8 device_mode; // Mode of the device(ex:STA, AP)
2297 tSirMacAddr macAddr;
2298
2299} tAniDHCPInd, *tpAniDHCPInd;
2300
Jeff Johnson295189b2012-06-20 16:38:30 -07002301typedef struct sAniSummaryStatsInfo
2302{
2303 tANI_U32 retry_cnt[4]; //Total number of packets(per AC) that were successfully transmitted with retries
2304 tANI_U32 multiple_retry_cnt[4];//The number of MSDU packets and MMPDU frames per AC that the 802.11
2305 // station successfully transmitted after more than one retransmission attempt
2306
2307 tANI_U32 tx_frm_cnt[4]; //Total number of packets(per AC) that were successfully transmitted
2308 //(with and without retries, including multi-cast, broadcast)
2309 //tANI_U32 tx_fail_cnt;
2310 //tANI_U32 num_rx_frm_crc_err; //Total number of received frames with CRC Error
2311 //tANI_U32 num_rx_frm_crc_ok; //Total number of successfully received frames with out CRC Error
2312 tANI_U32 rx_frm_cnt; //Total number of packets that were successfully received
2313 //(after appropriate filter rules including multi-cast, broadcast)
2314 tANI_U32 frm_dup_cnt; //Total number of duplicate frames received successfully
2315 tANI_U32 fail_cnt[4]; //Total number packets(per AC) failed to transmit
2316 tANI_U32 rts_fail_cnt; //Total number of RTS/CTS sequence failures for transmission of a packet
2317 tANI_U32 ack_fail_cnt; //Total number packets failed transmit because of no ACK from the remote entity
2318 tANI_U32 rts_succ_cnt; //Total number of RTS/CTS sequence success for transmission of a packet
2319 tANI_U32 rx_discard_cnt; //The sum of the receive error count and dropped-receive-buffer error count.
2320 //HAL will provide this as a sum of (FCS error) + (Fail get BD/PDU in HW)
2321 tANI_U32 rx_error_cnt; //The receive error count. HAL will provide the RxP FCS error global counter.
2322 tANI_U32 tx_byte_cnt; //The sum of the transmit-directed byte count, transmit-multicast byte count
2323 //and transmit-broadcast byte count. HAL will sum TPE UC/MC/BCAST global counters
2324 //to provide this.
2325#if 0
2326 //providing the following stats, in case of wrap around for tx_byte_cnt
2327 tANI_U32 tx_unicast_lower_byte_cnt;
2328 tANI_U32 tx_unicast_upper_byte_cnt;
2329 tANI_U32 tx_multicast_lower_byte_cnt;
2330 tANI_U32 tx_multicast_upper_byte_cnt;
2331 tANI_U32 tx_broadcast_lower_byte_cnt;
2332 tANI_U32 tx_broadcast_upper_byte_cnt;
2333#endif
2334
2335}tAniSummaryStatsInfo, *tpAniSummaryStatsInfo;
2336
2337typedef enum eTxRateInfo
2338{
2339 eHAL_TX_RATE_LEGACY = 0x1, /* Legacy rates */
2340 eHAL_TX_RATE_HT20 = 0x2, /* HT20 rates */
2341 eHAL_TX_RATE_HT40 = 0x4, /* HT40 rates */
2342 eHAL_TX_RATE_SGI = 0x8, /* Rate with Short guard interval */
Leo Chang6f8870f2013-03-26 18:11:36 -07002343 eHAL_TX_RATE_LGI = 0x10, /* Rate with Long guard interval */
2344 eHAL_TX_RATE_VHT20 = 0x20, /* VHT 20 rates */
2345 eHAL_TX_RATE_VHT40 = 0x40, /* VHT 40 rates */
2346 eHAL_TX_RATE_VHT80 = 0x80 /* VHT 80 rates */
Jeff Johnson295189b2012-06-20 16:38:30 -07002347} tTxrateinfoflags;
2348
2349typedef struct sAniGlobalClassAStatsInfo
2350{
2351 tANI_U32 rx_frag_cnt; //The number of MPDU frames received by the 802.11 station for MSDU packets
2352 //or MMPDU frames
2353 tANI_U32 promiscuous_rx_frag_cnt; //The number of MPDU frames received by the 802.11 station for MSDU packets
2354 //or MMPDU frames when a promiscuous packet filter was enabled
2355 //tANI_U32 rx_fcs_err; //The number of MPDU frames that the 802.11 station received with FCS errors
2356 tANI_U32 rx_input_sensitivity; //The receiver input sensitivity referenced to a FER of 8% at an MPDU length
2357 //of 1024 bytes at the antenna connector. Each element of the array shall correspond
2358 //to a supported rate and the order shall be the same as the supporteRates parameter.
2359 tANI_U32 max_pwr; //The maximum transmit power in dBm upto one decimal.
2360 //for eg: if it is 10.5dBm, the value would be 105
2361 //tANI_U32 default_pwr; //The nominal transmit level used after normal power on sequence
2362 tANI_U32 sync_fail_cnt; //Number of times the receiver failed to synchronize with the incoming signal
2363 //after detecting the sync in the preamble of the transmitted PLCP protocol data unit.
2364 tANI_U32 tx_rate; //Legacy transmit rate, in units of
2365 //500 kbit/sec, for the most
2366 //recently transmitted frame
2367 tANI_U32 mcs_index; //mcs index for HT20 and HT40 rates
2368 tANI_U32 tx_rate_flags; //to differentiate between HT20 and
2369 //HT40 rates; short and long guard interval
2370
2371}tAniGlobalClassAStatsInfo, *tpAniGlobalClassAStatsInfo;
2372
2373
2374typedef struct sAniGlobalSecurityStats
2375{
2376 tANI_U32 rx_wep_unencrypted_frm_cnt; //The number of unencrypted received MPDU frames that the MAC layer discarded when
2377 //the IEEE 802.11 dot11ExcludeUnencrypted management information base (MIB) object
2378 //is enabled
2379 tANI_U32 rx_mic_fail_cnt; //The number of received MSDU packets that that the 802.11 station discarded
2380 //because of MIC failures
2381 tANI_U32 tkip_icv_err; //The number of encrypted MPDU frames that the 802.11 station failed to decrypt
2382 //because of a TKIP ICV error
2383 tANI_U32 aes_ccmp_format_err; //The number of received MPDU frames that the 802.11 discarded because of an
2384 //invalid AES-CCMP format
2385 tANI_U32 aes_ccmp_replay_cnt; //The number of received MPDU frames that the 802.11 station discarded because of
2386 //the AES-CCMP replay protection procedure
2387 tANI_U32 aes_ccmp_decrpt_err; //The number of received MPDU frames that the 802.11 station discarded because of
2388 //errors detected by the AES-CCMP decryption algorithm
2389 tANI_U32 wep_undecryptable_cnt; //The number of encrypted MPDU frames received for which a WEP decryption key was
2390 //not available on the 802.11 station
2391 tANI_U32 wep_icv_err; //The number of encrypted MPDU frames that the 802.11 station failed to decrypt
2392 //because of a WEP ICV error
2393 tANI_U32 rx_decrypt_succ_cnt; //The number of received encrypted packets that the 802.11 station successfully
2394 //decrypted
2395 tANI_U32 rx_decrypt_fail_cnt; //The number of encrypted packets that the 802.11 station failed to decrypt
2396
2397}tAniGlobalSecurityStats, *tpAniGlobalSecurityStats;
2398
2399typedef struct sAniGlobalClassBStatsInfo
2400{
2401 tAniGlobalSecurityStats ucStats;
2402 tAniGlobalSecurityStats mcbcStats;
2403}tAniGlobalClassBStatsInfo, *tpAniGlobalClassBStatsInfo;
2404
2405typedef struct sAniGlobalClassCStatsInfo
2406{
2407 tANI_U32 rx_amsdu_cnt; //This counter shall be incremented for a received A-MSDU frame with the stations
2408 //MAC address in the address 1 field or an A-MSDU frame with a group address in the
2409 //address 1 field
2410 tANI_U32 rx_ampdu_cnt; //This counter shall be incremented when the MAC receives an AMPDU from the PHY
2411 tANI_U32 tx_20_frm_cnt; //This counter shall be incremented when a Frame is transmitted only on the
2412 //primary channel
2413 tANI_U32 rx_20_frm_cnt; //This counter shall be incremented when a Frame is received only on the primary channel
2414 tANI_U32 rx_mpdu_in_ampdu_cnt; //This counter shall be incremented by the number of MPDUs received in the A-MPDU
2415 //when an A-MPDU is received
2416 tANI_U32 ampdu_delimiter_crc_err;//This counter shall be incremented when an MPDU delimiter has a CRC error when this
2417 //is the first CRC error in the received AMPDU or when the previous delimiter has been
2418 //decoded correctly
2419
2420}tAniGlobalClassCStatsInfo, *tpAniGlobalClassCStatsInfo;
2421
2422typedef struct sAniPerStaStatsInfo
2423{
2424 tANI_U32 tx_frag_cnt[4]; //The number of MPDU frames that the 802.11 station transmitted and acknowledged
2425 //through a received 802.11 ACK frame
2426 tANI_U32 tx_ampdu_cnt; //This counter shall be incremented when an A-MPDU is transmitted
2427 tANI_U32 tx_mpdu_in_ampdu_cnt; //This counter shall increment by the number of MPDUs in the AMPDU when an A-MPDU
2428 //is transmitted
2429
2430}tAniPerStaStatsInfo, *tpAniPerStaStatsInfo;
2431
Sushant Kaushik33200572015-08-05 16:46:20 +05302432typedef struct sAniPerTxPktStatsInfo
2433{
2434 tANI_U32 lastTxRate; // 802.11 data rate at which the last data frame is transmitted.
Sushant Kaushik3d5c1e62015-10-07 12:05:33 +05302435 tANI_U32 txAvgRetry; // Average number of retries per 10 packets.
Sushant Kaushik33200572015-08-05 16:46:20 +05302436}tAniPerTxPktStatsInfo, *tpAniPerTxPktStatsInfo;
2437
2438
Jeff Johnson295189b2012-06-20 16:38:30 -07002439/**********************PE Statistics end*************************/
2440
2441
2442
2443typedef struct sSirRSSIThresholds
2444{
2445#ifdef ANI_BIG_BYTE_ENDIAN
2446 tANI_S8 ucRssiThreshold1 : 8;
2447 tANI_S8 ucRssiThreshold2 : 8;
2448 tANI_S8 ucRssiThreshold3 : 8;
2449 tANI_U8 bRssiThres1PosNotify : 1;
2450 tANI_U8 bRssiThres1NegNotify : 1;
2451 tANI_U8 bRssiThres2PosNotify : 1;
2452 tANI_U8 bRssiThres2NegNotify : 1;
2453 tANI_U8 bRssiThres3PosNotify : 1;
2454 tANI_U8 bRssiThres3NegNotify : 1;
2455 tANI_U8 bReserved10 : 2;
2456#else
2457 tANI_U8 bReserved10 : 2;
2458 tANI_U8 bRssiThres3NegNotify : 1;
2459 tANI_U8 bRssiThres3PosNotify : 1;
2460 tANI_U8 bRssiThres2NegNotify : 1;
2461 tANI_U8 bRssiThres2PosNotify : 1;
2462 tANI_U8 bRssiThres1NegNotify : 1;
2463 tANI_U8 bRssiThres1PosNotify : 1;
2464 tANI_S8 ucRssiThreshold3 : 8;
2465 tANI_S8 ucRssiThreshold2 : 8;
2466 tANI_S8 ucRssiThreshold1 : 8;
2467#endif
2468
2469}tSirRSSIThresholds, *tpSirRSSIThresholds;
2470
2471typedef struct sSirRSSINotification
2472{
2473#ifdef ANI_BIG_BYTE_ENDIAN
2474 tANI_U32 bRssiThres1PosCross : 1;
2475 tANI_U32 bRssiThres1NegCross : 1;
2476 tANI_U32 bRssiThres2PosCross : 1;
2477 tANI_U32 bRssiThres2NegCross : 1;
2478 tANI_U32 bRssiThres3PosCross : 1;
2479 tANI_U32 bRssiThres3NegCross : 1;
Srinivasdaaec712012-12-12 15:59:44 -08002480 v_S7_t avgRssi : 8;
2481 tANI_U32 bReserved : 18;
Jeff Johnson295189b2012-06-20 16:38:30 -07002482#else
Srinivasdaaec712012-12-12 15:59:44 -08002483 tANI_U32 bReserved : 18;
2484 v_S7_t avgRssi : 8;
Jeff Johnson295189b2012-06-20 16:38:30 -07002485 tANI_U32 bRssiThres3NegCross : 1;
2486 tANI_U32 bRssiThres3PosCross : 1;
2487 tANI_U32 bRssiThres2NegCross : 1;
2488 tANI_U32 bRssiThres2PosCross : 1;
2489 tANI_U32 bRssiThres1NegCross : 1;
2490 tANI_U32 bRssiThres1PosCross : 1;
2491#endif
2492
2493}tSirRSSINotification, *tpSirRSSINotification;
2494
Viral Modid86bde22012-12-10 13:09:21 -08002495
2496typedef struct sSirP2PNoaStart
2497{
2498 tANI_U32 status;
2499 tANI_U32 bssIdx;
2500} tSirP2PNoaStart, *tpSirP2PNoaStart;
2501
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05302502typedef struct sSirTdlsInd
2503{
2504 tANI_U16 status;
2505 tANI_U16 assocId;
2506 tANI_U16 staIdx;
2507 tANI_U16 reasonCode;
2508} tSirTdlsInd, *tpSirTdlsInd;
2509
Jeff Johnson295189b2012-06-20 16:38:30 -07002510typedef struct sSirP2PNoaAttr
2511{
2512#ifdef ANI_BIG_BYTE_ENDIAN
2513 tANI_U32 index :8;
2514 tANI_U32 oppPsFlag :1;
2515 tANI_U32 ctWin :7;
2516 tANI_U32 rsvd1: 16;
2517#else
2518 tANI_U32 rsvd1: 16;
2519 tANI_U32 ctWin :7;
2520 tANI_U32 oppPsFlag :1;
2521 tANI_U32 index :8;
2522#endif
2523
2524#ifdef ANI_BIG_BYTE_ENDIAN
2525 tANI_U32 uNoa1IntervalCnt:8;
2526 tANI_U32 rsvd2:24;
2527#else
2528 tANI_U32 rsvd2:24;
2529 tANI_U32 uNoa1IntervalCnt:8;
2530#endif
2531 tANI_U32 uNoa1Duration;
2532 tANI_U32 uNoa1Interval;
2533 tANI_U32 uNoa1StartTime;
2534
2535#ifdef ANI_BIG_BYTE_ENDIAN
2536 tANI_U32 uNoa2IntervalCnt:8;
2537 tANI_U32 rsvd3:24;
2538#else
2539 tANI_U32 rsvd3:24;
2540 tANI_U32 uNoa2IntervalCnt:8;
2541#endif
2542 tANI_U32 uNoa2Duration;
2543 tANI_U32 uNoa2Interval;
2544 tANI_U32 uNoa2StartTime;
2545} tSirP2PNoaAttr, *tpSirP2PNoaAttr;
Jeff Johnson295189b2012-06-20 16:38:30 -07002546
2547typedef __ani_attr_pre_packed struct sSirTclasInfo
2548{
2549 tSirMacTclasIE tclas;
2550 tANI_U8 version; // applies only for classifier type ip
2551 __ani_attr_pre_packed union {
2552 tSirMacTclasParamEthernet eth;
2553 tSirMacTclasParamIPv4 ipv4;
2554 tSirMacTclasParamIPv6 ipv6;
2555 tSirMacTclasParam8021dq t8021dq;
2556 }__ani_attr_packed tclasParams;
2557} __ani_attr_packed tSirTclasInfo;
2558
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002559
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002560#if defined(FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_ESE_UPLOAD)
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002561#define TSRS_11AG_RATE_6MBPS 0xC
2562#define TSRS_11B_RATE_5_5MBPS 0xB
2563
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002564typedef struct sSirMacESETSRSIE
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002565{
2566 tANI_U8 tsid;
2567 tANI_U8 rates[8];
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002568} tSirMacESETSRSIE;
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002569
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002570typedef struct sSirMacESETSMIE
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002571{
2572 tANI_U8 tsid;
2573 tANI_U8 state;
2574 tANI_U16 msmt_interval;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002575} tSirMacESETSMIE;
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002576
2577typedef struct sTSMStats
2578{
2579 tANI_U8 tid;
2580 tSirMacAddr bssId;
2581 tTrafStrmMetrics tsmMetrics;
2582} tTSMStats, *tpTSMStats;
2583
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002584typedef struct sEseTSMContext
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002585{
2586 tANI_U8 tid;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002587 tSirMacESETSMIE tsmInfo;
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002588 tTrafStrmMetrics tsmMetrics;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002589} tEseTSMContext, *tpEseTSMContext;
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002590
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002591typedef struct sEsePEContext
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002592{
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002593#if defined(FEATURE_WLAN_ESE) && !defined(FEATURE_WLAN_ESE_UPLOAD)
2594 tEseMeasReq curMeasReq;
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002595#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002596 tEseTSMContext tsm;
2597} tEsePEContext, *tpEsePEContext;
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002598
2599
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002600#endif /* FEATURE_WLAN_ESE && FEATURE_WLAN_ESE_UPLOAD */
Srinivas Girigowda5cecb202013-10-08 09:13:25 -07002601
2602
Jeff Johnson295189b2012-06-20 16:38:30 -07002603typedef struct sSirAddtsReqInfo
2604{
2605 tANI_U8 dialogToken;
2606 tSirMacTspecIE tspec;
2607
2608 tANI_U8 numTclas; // number of Tclas elements
2609 tSirTclasInfo tclasInfo[SIR_MAC_TCLASIE_MAXNUM];
2610 tANI_U8 tclasProc;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002611#if defined(FEATURE_WLAN_ESE)
2612 tSirMacESETSRSIE tsrsIE;
Jeff Johnson295189b2012-06-20 16:38:30 -07002613 tANI_U8 tsrsPresent:1;
2614#endif
2615 tANI_U8 wmeTspecPresent:1;
2616 tANI_U8 wsmTspecPresent:1;
2617 tANI_U8 lleTspecPresent:1;
2618 tANI_U8 tclasProcPresent:1;
2619} tSirAddtsReqInfo, *tpSirAddtsReqInfo;
2620
2621typedef struct sSirAddtsRspInfo
2622{
2623 tANI_U8 dialogToken;
2624 tSirMacStatusCodes status;
2625 tSirMacTsDelayIE delay;
2626
2627 tSirMacTspecIE tspec;
2628 tANI_U8 numTclas; // number of Tclas elements
2629 tSirTclasInfo tclasInfo[SIR_MAC_TCLASIE_MAXNUM];
2630 tANI_U8 tclasProc;
2631 tSirMacScheduleIE schedule;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002632#if defined(FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_ESE_UPLOAD)
2633 tSirMacESETSMIE tsmIE;
Jeff Johnson295189b2012-06-20 16:38:30 -07002634 tANI_U8 tsmPresent:1;
2635#endif
2636 tANI_U8 wmeTspecPresent:1;
2637 tANI_U8 wsmTspecPresent:1;
2638 tANI_U8 lleTspecPresent:1;
2639 tANI_U8 tclasProcPresent:1;
2640 tANI_U8 schedulePresent:1;
2641} tSirAddtsRspInfo, *tpSirAddtsRspInfo;
2642
2643typedef struct sSirDeltsReqInfo
2644{
2645 tSirMacTSInfo tsinfo;
2646 tSirMacTspecIE tspec;
2647 tANI_U8 wmeTspecPresent:1;
2648 tANI_U8 wsmTspecPresent:1;
2649 tANI_U8 lleTspecPresent:1;
2650} tSirDeltsReqInfo, *tpSirDeltsReqInfo;
2651
2652/// Add a tspec as defined
2653typedef struct sSirAddtsReq
2654{
2655 tANI_U16 messageType; // eWNI_SME_ADDTS_REQ
2656 tANI_U16 length;
2657 tANI_U8 sessionId; //Session ID
2658 tANI_U16 transactionId;
2659 tSirMacAddr bssId; //BSSID
2660 tANI_U32 timeout; // in ms
2661 tANI_U8 rspReqd;
2662 tSirAddtsReqInfo req;
2663} tSirAddtsReq, *tpSirAddtsReq;
2664
2665typedef struct sSirAddtsRsp
2666{
2667 tANI_U16 messageType; // eWNI_SME_ADDTS_RSP
2668 tANI_U16 length;
2669 tANI_U8 sessionId; // sme sessionId Added for BT-AMP support
2670 tANI_U16 transactionId; //sme transaction Id Added for BT-AMP Support
2671 tANI_U32 rc; // return code
2672 tSirAddtsRspInfo rsp;
2673} tSirAddtsRsp, *tpSirAddtsRsp;
2674
2675typedef struct sSirDeltsReq
2676{
2677 tANI_U16 messageType; // eWNI_SME_DELTS_REQ
2678 tANI_U16 length;
2679 tANI_U8 sessionId;//Session ID
2680 tANI_U16 transactionId;
2681 tSirMacAddr bssId; //BSSID
2682 tANI_U16 aid; // use 0 if macAddr is being specified
2683 tANI_U8 macAddr[6]; // only on AP to specify the STA
2684 tANI_U8 rspReqd;
2685 tSirDeltsReqInfo req;
2686} tSirDeltsReq, *tpSirDeltsReq;
2687
2688typedef struct sSirDeltsRsp
2689{
2690 tANI_U16 messageType; // eWNI_SME_DELTS_RSP
2691 tANI_U16 length;
2692 tANI_U8 sessionId; // sme sessionId Added for BT-AMP support
2693 tANI_U16 transactionId; //sme transaction Id Added for BT-AMP Support
2694 tANI_U32 rc;
2695 tANI_U16 aid; // use 0 if macAddr is being specified
2696 tANI_U8 macAddr[6]; // only on AP to specify the STA
2697 tSirDeltsReqInfo rsp;
2698} tSirDeltsRsp, *tpSirDeltsRsp;
2699
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002700#if defined WLAN_FEATURE_VOWIFI_11R || defined FEATURE_WLAN_ESE || defined(FEATURE_WLAN_LFR)
Jeff Johnson295189b2012-06-20 16:38:30 -07002701
2702#define SIR_QOS_NUM_TSPEC_MAX 2
2703#define SIR_QOS_NUM_AC_MAX 4
2704
2705typedef struct sSirAggrQosReqInfo
2706{
2707 tANI_U16 tspecIdx;
2708 tSirAddtsReqInfo aggrAddTsInfo[SIR_QOS_NUM_AC_MAX];
2709}tSirAggrQosReqInfo, *tpSirAggrQosReqInfo;
2710
2711typedef struct sSirAggrQosReq
2712{
2713 tANI_U16 messageType; // eWNI_SME_ADDTS_REQ
2714 tANI_U16 length;
2715 tANI_U8 sessionId; //Session ID
2716 tANI_U16 transactionId;
2717 tSirMacAddr bssId; //BSSID
2718 tANI_U32 timeout; // in ms
2719 tANI_U8 rspReqd;
2720 tSirAggrQosReqInfo aggrInfo;
2721}tSirAggrQosReq, *tpSirAggrQosReq;
2722
2723typedef struct sSirAggrQosRspInfo
2724{
2725 tANI_U16 tspecIdx;
2726 tSirAddtsRspInfo aggrRsp[SIR_QOS_NUM_AC_MAX];
2727} tSirAggrQosRspInfo, *tpSirAggrQosRspInfo;
2728
2729typedef struct sSirAggrQosRsp
2730{
2731 tANI_U16 messageType;
2732 tANI_U16 length;
2733 tANI_U8 sessionId;
2734 tSirAggrQosRspInfo aggrInfo;
2735} tSirAggrQosRsp, *tpSirAggrQosRsp;
2736
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002737#endif/*WLAN_FEATURE_VOWIFI_11R || FEATURE_WLAN_ESE*/
Jeff Johnson295189b2012-06-20 16:38:30 -07002738
2739typedef struct sSirSetTxPowerReq
2740{
schang86c22c42013-03-13 18:41:24 -07002741 tANI_U16 messageType;
2742 tANI_U16 length;
2743 tSirMacAddr bssId;
2744 tANI_U8 mwPower;
2745 tANI_U8 bssIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07002746} tSirSetTxPowerReq, *tpSirSetTxPowerReq;
2747
2748typedef struct sSirSetTxPowerRsp
2749{
2750 tANI_U16 messageType;
2751 tANI_U16 length;
2752 tANI_U32 status;
2753} tSirSetTxPowerRsp, *tpSirSetTxPowerRsp;
2754
2755typedef struct sSirGetTxPowerReq
2756{
2757 tANI_U16 messageType;
2758 tANI_U16 length;
2759 tANI_U16 staid;
2760} tSirGetTxPowerReq, *tpSirGetTxPowerReq;
2761
2762typedef struct sSirGetTxPowerRsp
2763{
2764 tANI_U16 messageType;
2765 tANI_U16 length; // length of the entire request
2766 tANI_U32 power; // units of milliwatts
2767 tANI_U32 status;
2768} tSirGetTxPowerRsp, *tpSirGetTxPowerRsp;
2769
2770
2771typedef tANI_U32 tSirMacNoise[3];
2772
2773typedef struct sSirGetNoiseRsp
2774{
2775 tANI_U16 messageType;
2776 tANI_U16 length;
2777 tSirMacNoise noise;
2778} tSirGetNoiseRsp, *tpSirGetNoiseRsp;
2779
Leela Venkata Kiran Kumar Reddy Chirala8e69fbc2013-10-30 18:51:13 -07002780typedef struct sSirQosMapSet
2781{
2782 tANI_U8 present;
2783 tANI_U8 num_dscp_exceptions;
2784 tANI_U8 dscp_exceptions[21][2];
Leela Venkata Kiran Kumar Reddy Chiralafddf3552014-06-11 17:16:30 -07002785 tANI_U8 dscp_range[8][2];
Leela Venkata Kiran Kumar Reddy Chirala8e69fbc2013-10-30 18:51:13 -07002786} tSirQosMapSet, *tpSirQosMapSet;
Jeff Johnson295189b2012-06-20 16:38:30 -07002787
2788//
2789// PMC --> PE --> HAL
2790// Power save configuration parameters
2791//
2792typedef struct sSirPowerSaveCfg
2793{
2794 tANI_U16 listenInterval;
2795
2796 /* Number of consecutive missed beacons before
2797 * hardware generates an interrupt to wake up
2798 * the host. In units of listen interval.
2799 */
2800 tANI_U32 HeartBeatCount;
2801
2802 /* specifies which beacons are to be forwarded
2803 * to host when beacon filtering is enabled.
2804 * In units of listen interval.
2805 */
2806 tANI_U32 nthBeaconFilter;
2807
2808 /* Maximum number of PS-Poll send before
2809 * firmware sends data null with PM set to 0.
2810 */
2811 tANI_U32 maxPsPoll;
2812
2813 /* If the average RSSI value falls below the
2814 * minRssiThreshold, then FW will send an
2815 * interrupt to wake up the host.
2816 */
2817 tANI_U32 minRssiThreshold;
2818
2819 /* Number of beacons for which firmware will
2820 * collect the RSSI values and compute the average.
2821 */
2822 tANI_U8 numBeaconPerRssiAverage;
2823
2824 /* FW collects the RSSI stats for this period
2825 * in BMPS mode.
2826 */
2827 tANI_U8 rssiFilterPeriod;
2828
2829 // Enabling/disabling broadcast frame filter feature
2830 tANI_U8 broadcastFrameFilter;
2831
2832 // Enabling/disabling the ignore DTIM feature
2833 tANI_U8 ignoreDtim;
2834
2835 /* The following configuration parameters are kept
2836 * in order to be backward compatible for Gen5.
2837 * These will NOT be used for Gen6 Libra chip
2838 */
2839 tBeaconForwarding beaconFwd;
2840 tANI_U16 nthBeaconFwd;
2841 tANI_U8 fEnablePwrSaveImmediately;
2842 tANI_U8 fPSPoll;
2843
2844 // Enabling/disabling Beacon Early Termination feature
2845 tANI_U8 fEnableBeaconEarlyTermination;
2846 tANI_U8 bcnEarlyTermWakeInterval;
2847
2848}tSirPowerSaveCfg, *tpSirPowerSaveCfg;
2849
2850/* Reason code for requesting Full Power. This reason code is used by
2851 any module requesting full power from PMC and also by PE when it
2852 sends the eWNI_PMC_EXIT_BMPS_IND to PMC*/
2853typedef enum eRequestFullPowerReason
2854{
2855 eSME_MISSED_BEACON_IND_RCVD, /* PE received a MAX_MISSED_BEACON_IND */
2856 eSME_BMPS_STATUS_IND_RCVD, /* PE received a SIR_HAL_BMPS_STATUS_IND */
2857 eSME_BMPS_MODE_DISABLED, /* BMPS mode was disabled by HDD in SME */
2858 eSME_LINK_DISCONNECTED_BY_HDD, /* Link has been disconnected requested by HDD */
2859 eSME_LINK_DISCONNECTED_BY_OTHER,/* Disconnect due to linklost or requested by peer */
2860 eSME_FULL_PWR_NEEDED_BY_HDD, /* HDD request full power for some reason */
2861 eSME_FULL_PWR_NEEDED_BY_BAP, /* BAP request full power for BT_AMP */
2862 eSME_FULL_PWR_NEEDED_BY_CSR, /* CSR requests full power */
2863 eSME_FULL_PWR_NEEDED_BY_QOS, /* QOS requests full power */
2864 eSME_FULL_PWR_NEEDED_BY_CHANNEL_SWITCH, /* channel switch request full power*/
Mohit Khanna698ba2a2012-12-04 15:08:18 -08002865#ifdef FEATURE_WLAN_TDLS
2866 eSME_FULL_PWR_NEEDED_BY_TDLS_PEER_SETUP, /* TDLS peer setup*/
2867#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07002868 eSME_REASON_OTHER /* No specific reason. General reason code */
2869} tRequestFullPowerReason, tExitBmpsReason;
2870
2871
2872
2873//This is sent alongwith eWNI_PMC_EXIT_BMPS_REQ message
2874typedef struct sExitBmpsInfo
2875{
2876 tExitBmpsReason exitBmpsReason; /*Reason for exiting BMPS */
2877}tExitBmpsInfo, *tpExitBmpsInfo;
2878
2879
2880// MAC SW --> SME
2881// Message indicating to SME to exit BMPS sleep mode
2882typedef struct sSirSmeExitBmpsInd
2883{
2884 tANI_U16 mesgType; /* eWNI_PMC_EXIT_BMPS_IND */
2885 tANI_U16 mesgLen;
2886 tSirResultCodes statusCode;
2887 tExitBmpsReason exitBmpsReason; /*Reason for exiting BMPS */
2888
2889} tSirSmeExitBmpsInd, *tpSirSmeExitBmpsInd;
2890
2891
2892//
2893// HDD -> LIM
2894// tSirMsgQ.type = eWNI_SME_DEL_BA_PEER_IND
2895// tSirMsgQ.reserved = 0
2896// tSirMsgQ.body = instance of tDelBAParams
2897//
2898typedef struct sSmeDelBAPeerInd
2899{
2900 // Message Type
2901 tANI_U16 mesgType;
2902
2903 tSirMacAddr bssId;//BSSID
2904
2905 // Message Length
2906 tANI_U16 mesgLen;
2907
2908 // Station Index
2909 tANI_U16 staIdx;
2910
2911 // TID for which the BA session is being deleted
2912 tANI_U8 baTID;
2913
2914 // DELBA direction
2915 // eBA_INITIATOR - Originator
2916 // eBA_RECEIPIENT - Recipient
2917 tANI_U8 baDirection;
2918} tSmeDelBAPeerInd, *tpSmeDelBAPeerInd;
2919
2920typedef struct sSmeIbssPeerInd
2921{
2922 tANI_U16 mesgType;
2923 tANI_U16 mesgLen;
2924 tANI_U8 sessionId;
2925
2926 tSirMacAddr peerAddr;
2927 tANI_U16 staId;
2928
2929 /*The DPU signatures will be sent eventually to TL to help it determine the
2930 association to which a packet belongs to*/
2931 /*Unicast DPU signature*/
2932 tANI_U8 ucastSig;
2933
2934 /*Broadcast DPU signature*/
2935 tANI_U8 bcastSig;
2936
2937 //Beacon will be appended for new Peer indication.
2938}tSmeIbssPeerInd, *tpSmeIbssPeerInd;
2939
Ravi Joshid2ca7c42013-07-23 08:37:49 -07002940typedef struct sSirIbssPeerInactivityInd
2941{
2942 tANI_U8 bssIdx;
2943 tANI_U8 staIdx;
2944 tSirMacAddr peerAddr;
2945}tSirIbssPeerInactivityInd, *tpSirIbssPeerInactivityInd;
2946
2947
Jeff Johnson295189b2012-06-20 16:38:30 -07002948typedef struct sLimScanChn
2949{
2950 tANI_U16 numTimeScan; //how many time this channel is scan
2951 tANI_U8 channelId;
2952}tLimScanChn;
2953
2954typedef struct sSmeGetScanChnRsp
2955{
2956 // Message Type
2957 tANI_U16 mesgType;
2958 // Message Length
2959 tANI_U16 mesgLen;
2960 tANI_U8 sessionId;
2961 tANI_U8 numChn;
2962 tLimScanChn scanChn[1];
2963} tSmeGetScanChnRsp, *tpSmeGetScanChnRsp;
2964
2965typedef struct sLimScanChnInfo
2966{
2967 tANI_U8 numChnInfo; //number of channels in scanChn
2968 tLimScanChn scanChn[SIR_MAX_SUPPORTED_CHANNEL_LIST];
2969}tLimScanChnInfo;
2970
Jeff Johnson295189b2012-06-20 16:38:30 -07002971typedef struct sSirSmeGetAssocSTAsReq
2972{
2973 tANI_U16 messageType; // eWNI_SME_GET_ASSOC_STAS_REQ
2974 tANI_U16 length;
2975 tSirMacAddr bssId; // BSSID
2976 tANI_U16 modId;
2977 void *pUsrContext;
2978 void *pSapEventCallback;
2979 void *pAssocStasArray;// Pointer to allocated memory passed in WLANSAP_GetAssocStations API
2980} tSirSmeGetAssocSTAsReq, *tpSirSmeGetAssocSTAsReq;
Jeff Johnson295189b2012-06-20 16:38:30 -07002981
2982typedef struct sSmeMaxAssocInd
2983{
2984 tANI_U16 mesgType; // eWNI_SME_MAX_ASSOC_EXCEEDED
2985 tANI_U16 mesgLen;
2986 tANI_U8 sessionId;
2987 tSirMacAddr peerMac; // the new peer that got rejected due to softap max assoc limit reached
2988} tSmeMaxAssocInd, *tpSmeMaxAssocInd;
2989
2990/*--------------------------------------------------------------------*/
2991/* BootLoader message definition */
2992/*--------------------------------------------------------------------*/
2993
2994/*--------------------------------------------------------------------*/
2995/* FW image size */
2996/*--------------------------------------------------------------------*/
2997#define SIR_FW_IMAGE_SIZE 146332
2998
2999
3000#define SIR_BOOT_MODULE_ID 1
3001
3002#define SIR_BOOT_SETUP_IND ((SIR_BOOT_MODULE_ID << 8) | 0x11)
3003#define SIR_BOOT_POST_RESULT_IND ((SIR_BOOT_MODULE_ID << 8) | 0x12)
3004#define SIR_BOOT_DNLD_RESULT_IND ((SIR_BOOT_MODULE_ID << 8) | 0x13)
3005#define SIR_BOOT_DNLD_DEV_REQ ((SIR_BOOT_MODULE_ID << 8) | 0x41)
3006#define SIR_BOOT_DNLD_DEV_RSP ((SIR_BOOT_MODULE_ID << 8) | 0x81)
3007#define SIR_BOOT_DNLD_REQ ((SIR_BOOT_MODULE_ID << 8) | 0x42)
3008#define SIR_BOOT_DNLD_RSP ((SIR_BOOT_MODULE_ID << 8) | 0x82)
3009
3010/*--------------------------------------------------------------------*/
3011/* Bootloader message syntax */
3012/*--------------------------------------------------------------------*/
3013
3014// Message header
3015#define SIR_BOOT_MB_HEADER 0
3016#define SIR_BOOT_MB_HEADER2 1
3017
3018#define SIR_BOOT_MSG_HDR_MASK 0xffff0000
3019#define SIR_BOOT_MSG_LEN_MASK 0x0000ffff
3020
3021// BOOT_SETUP_IND parameter indices
3022#define SIR_BOOT_SETUP_IND_MBADDR 2
3023#define SIR_BOOT_SETUP_IND_MBSIZE 3
3024#define SIR_BOOT_SETUP_IND_MEMOPT 4
3025#define SIR_BOOT_SETUP_IND_LEN \
3026 ((SIR_BOOT_SETUP_IND_MEMOPT+1)<<2)
3027
3028// BOOT_POST_RESULT_IND parameter indices
3029#define SIR_BOOT_POST_RESULT_IND_RES 2
3030#define SIR_BOOT_POST_RESULT_IND_LEN \
3031 ((SIR_BOOT_POST_RESULT_IND_RES+1)<<2)
3032
3033#define SIR_BOOT_POST_RESULT_IND_SUCCESS 1
3034#define SIR_BOOT_POST_RESULT_IND_MB_FAILED 2
3035#define SIR_BOOT_POST_RESULT_IND_SDRAM_FAILED 3
3036#define SIR_BOOT_POST_RESULT_IND_ESRAM_FAILED 4
3037
3038
3039// BOOT_DNLD_RESULT_IND parameter indices
3040#define SIR_BOOT_DNLD_RESULT_IND_RES 2
3041#define SIR_BOOT_DNLD_RESULT_IND_LEN \
3042 ((SIR_BOOT_DNLD_RESULT_IND_RES+1)<<2)
3043
3044#define SIR_BOOT_DNLD_RESULT_IND_SUCCESS 1
3045#define SIR_BOOT_DNLD_RESULT_IND_HDR_ERR 2
3046#define SIR_BOOT_DNLD_RESULT_IND_ERR 3
3047
3048// BOOT_DNLD_DEV_REQ
3049#define SIR_BOOT_DNLD_DEV_REQ_SDRAMSIZE 2
3050#define SIR_BOOT_DNLD_DEV_REQ_FLASHSIZE 3
3051#define SIR_BOOT_DNLD_DEV_REQ_LEN \
3052 ((SIR_BOOT_DNLD_DEV_REQ_FLASHSIZE+1)<<2)
3053
3054// BOOT_DNLD_DEV_RSP
3055#define SIR_BOOT_DNLD_DEV_RSP_DEVTYPE 2
3056#define SIR_BOOT_DNLD_DEV_RSP_LEN \
3057 ((SIR_BOOT_DNLD_DEV_RSP_DEVTYPE+1)<<2)
3058
3059#define SIR_BOOT_DNLD_DEV_RSP_SRAM 1
3060#define SIR_BOOT_DNLD_DEV_RSP_FLASH 2
3061
3062// BOOT_DNLD_REQ
3063#define SIR_BOOT_DNLD_REQ_OFFSET 2
3064#define SIR_BOOT_DNLD_REQ_WRADDR 3
3065#define SIR_BOOT_DNLD_REQ_SIZE 4
3066#define SIR_BOOT_DNLD_REQ_LEN ((SIR_BOOT_DNLD_REQ_SIZE+1)<<2)
3067
3068// BOOT_DNLD_RSP
3069#define SIR_BOOT_DNLD_RSP_SIZE 2
3070#define SIR_BOOT_DNLD_RSP_LEN ((SIR_BOOT_DNLD_RSP_SIZE+1)<<2)
3071
Jeff Johnson295189b2012-06-20 16:38:30 -07003072
3073// board capabilities fields are defined here.
3074typedef __ani_attr_pre_packed struct sSirBoardCapabilities
3075{
3076#ifndef ANI_LITTLE_BIT_ENDIAN
3077 tANI_U32 concat:1; // 0 - Concat is not supported, 1 - Concat is supported
3078 tANI_U32 compression:1; // 0 - Compression is not supported, 1 - Compression is supported
3079 tANI_U32 chnlBonding:1; // 0 - Channel Bonding is not supported, 1 - Channel Bonding is supported
3080 tANI_U32 reverseFCS:1; // 0 - Reverse FCS is not supported, 1 - Reverse FCS is supported
3081 tANI_U32 rsvd1:2;
3082 // (productId derives sub-category in the following three families)
3083 tANI_U32 cbFamily:1; // 0 - Not CB family, 1 - Cardbus
3084 tANI_U32 apFamily:1; // 0 - Not AP family, 1 - AP
3085 tANI_U32 mpciFamily:1; // 0 - Not MPCI family, 1 - MPCI
3086 tANI_U32 bgOnly:1; // 0 - default a/b/g; 1 - b/g only
3087 tANI_U32 bbChipVer:4; // Baseband chip version
3088 tANI_U32 loType:2; // 0 = no LO, 1 = SILABS, 2 = ORION
3089 tANI_U32 radioOn:2; // Not supported is 3 or 2, 0 = Off and 1 = On
3090 tANI_U32 nReceivers:2; // 0 based.
3091 tANI_U32 nTransmitters:1; // 0 = 1 transmitter, 1 = 2 transmitters
3092 tANI_U32 sdram:1; // 0 = no SDRAM, 1 = SDRAM
3093 tANI_U32 rsvd:1;
3094 tANI_U32 extVsIntAnt:1; // 0 = ext antenna, 1 = internal antenna
3095#else
3096
3097 tANI_U32 extVsIntAnt:1; // 0 = ext antenna, 1 = internal antenna
3098 tANI_U32 rsvd:1;
3099 tANI_U32 sdram:1; // 0 = no SDRAM, 1 = SDRAM
3100 tANI_U32 nTransmitters:1; // 0 = 1 transmitter, 1 = 2 transmitters
3101 tANI_U32 nReceivers:2; // 0 based.
3102 tANI_U32 radioOn:2; // Not supported is 3 or 2, 0 = Off and 1 = On
3103 tANI_U32 loType:2; // 0 = no LO, 1 = SILABS, 2 = ORION
3104 tANI_U32 bbChipVer:4; // Baseband chip version
3105 tANI_U32 bgOnly:1; // 0 - default a/b/g; 1 - b/g only
3106 // (productId derives sub-category in the following three families)
3107 tANI_U32 mpciFamily:1; // 0 - Not MPCI family, 1 - MPCI
3108 tANI_U32 apFamily:1; // 0 - Not AP family, 1 - AP
3109 tANI_U32 cbFamily:1; // 0 - Not CB family, 1 - Cardbus
3110 tANI_U32 rsvd1:2;
3111 tANI_U32 reverseFCS:1; // 0 - Reverse FCS is not supported, 1 - Reverse FCS is supported
3112 tANI_U32 chnlBonding:1; // 0 - Channel Bonding is not supported, 1 - Channel Bonding is supported
3113 tANI_U32 compression:1; // 0 - Compression is not supported, 1 - Compression is supported
3114 tANI_U32 concat:1; // 0 - Concat is not supported, 1 - Concat is supported
3115#endif
3116} __ani_attr_packed tSirBoardCapabilities, *tpSirBoardCapabilities;
3117
3118# define ANI_BCAP_EXT_VS_INT_ANT_MASK 0x1
3119# define ANI_BCAP_EXT_VS_INT_ANT_OFFSET 0
3120
3121# define ANI_BCAP_GAL_ON_BOARD_MASK 0x2
3122# define ANI_BCAP_GAL_ON_BOARD_OFFSET 1
3123
3124# define ANI_BCAP_SDRAM_MASK 0x4
3125# define ANI_BCAP_SDRAM_OFFSET 2
3126
3127# define ANI_BCAP_NUM_TRANSMITTERS_MASK 0x8
3128# define ANI_BCAP_NUM_TRANSMITTERS_OFFSET 3
3129
3130# define ANI_BCAP_NUM_RECEIVERS_MASK 0x30
3131# define ANI_BCAP_NUM_RECEIVERS_OFFSET 4
3132
3133# define ANI_BCAP_RADIO_ON_MASK 0xC0
3134# define ANI_BCAP_RADIO_ON_OFFSET 6
3135
3136# define ANI_BCAP_LO_TYPE_MASK 0x300
3137# define ANI_BCAP_LO_TYPE_OFFSET 8
3138
3139# define ANI_BCAP_BB_CHIP_VER_MASK 0xC00
3140# define ANI_BCAP_BB_CHIP_VER_OFFSET 10
3141
3142# define ANI_BCAP_CYG_DATE_CODE_MASK 0xFF000
3143# define ANI_BCAP_CYG_DATE_CODE_OFFSET 12
3144
3145# define ANI_BCAP_RADIO_OFF 0
3146# define ANI_BCAP_RADIO_ON 1
3147# define ANI_BCAP_RADIO_ON_NOT_SUPPORTED 3
3148
3149
3150/// WOW related structures
3151// SME -> PE <-> HAL
3152#define SIR_WOWL_BCAST_PATTERN_MAX_SIZE 128
3153#define SIR_WOWL_BCAST_MAX_NUM_PATTERNS 16
3154
3155// SME -> PE -> HAL - This is to add WOWL BCAST wake-up pattern.
3156// SME/HDD maintains the list of the BCAST wake-up patterns.
3157// This is a pass through message for PE
3158typedef struct sSirWowlAddBcastPtrn
3159{
3160 tANI_U8 ucPatternId; // Pattern ID
3161 // Pattern byte offset from beginning of the 802.11 packet to start of the
3162 // wake-up pattern
3163 tANI_U8 ucPatternByteOffset;
3164 tANI_U8 ucPatternSize; // Non-Zero Pattern size
3165 tANI_U8 ucPattern[SIR_WOWL_BCAST_PATTERN_MAX_SIZE]; // Pattern
3166 tANI_U8 ucPatternMaskSize; // Non-zero pattern mask size
3167 tANI_U8 ucPatternMask[SIR_WOWL_BCAST_PATTERN_MAX_SIZE]; // Pattern mask
3168 // Extra pattern data beyond 128 bytes
3169 tANI_U8 ucPatternExt[SIR_WOWL_BCAST_PATTERN_MAX_SIZE]; // Extra Pattern
3170 tANI_U8 ucPatternMaskExt[SIR_WOWL_BCAST_PATTERN_MAX_SIZE]; // Extra Pattern mask
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003171 tSirMacAddr bssId; // BSSID
Jeff Johnson295189b2012-06-20 16:38:30 -07003172} tSirWowlAddBcastPtrn, *tpSirWowlAddBcastPtrn;
3173
3174
3175// SME -> PE -> HAL - This is to delete WOWL BCAST wake-up pattern.
3176// SME/HDD maintains the list of the BCAST wake-up patterns.
3177// This is a pass through message for PE
3178typedef struct sSirWowlDelBcastPtrn
3179{
3180 /* Pattern ID of the wakeup pattern to be deleted */
3181 tANI_U8 ucPatternId;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003182 tSirMacAddr bssId; // BSSID
Jeff Johnson295189b2012-06-20 16:38:30 -07003183}tSirWowlDelBcastPtrn, *tpSirWowlDelBcastPtrn;
3184
3185
3186// SME->PE: Enter WOWLAN parameters
3187typedef struct sSirSmeWowlEnterParams
3188{
3189 /* Enables/disables magic packet filtering */
3190 tANI_U8 ucMagicPktEnable;
3191
3192 /* Magic pattern */
3193 tSirMacAddr magicPtrn;
3194
3195 /* Enables/disables packet pattern filtering */
3196 tANI_U8 ucPatternFilteringEnable;
3197
3198#ifdef WLAN_WAKEUP_EVENTS
3199 /* This configuration directs the WoW packet filtering to look for EAP-ID
3200 * requests embedded in EAPOL frames and use this as a wake source.
3201 */
3202 tANI_U8 ucWoWEAPIDRequestEnable;
3203
3204 /* This configuration directs the WoW packet filtering to look for EAPOL-4WAY
3205 * requests and use this as a wake source.
3206 */
3207 tANI_U8 ucWoWEAPOL4WayEnable;
3208
3209 /* This configuration allows a host wakeup on an network scan offload match.
3210 */
3211 tANI_U8 ucWowNetScanOffloadMatch;
3212
3213 /* This configuration allows a host wakeup on any GTK rekeying error.
3214 */
3215 tANI_U8 ucWowGTKRekeyError;
3216
3217 /* This configuration allows a host wakeup on BSS connection loss.
3218 */
3219 tANI_U8 ucWoWBSSConnLoss;
3220#endif // WLAN_WAKEUP_EVENTS
3221
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003222 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07003223} tSirSmeWowlEnterParams, *tpSirSmeWowlEnterParams;
3224
3225
3226// PE<->HAL: Enter WOWLAN parameters
3227typedef struct sSirHalWowlEnterParams
3228{
3229 /* Enables/disables magic packet filtering */
3230 tANI_U8 ucMagicPktEnable;
3231
3232 /* Magic pattern */
3233 tSirMacAddr magicPtrn;
3234
3235 /* Enables/disables packet pattern filtering in firmware.
3236 Enabling this flag enables broadcast pattern matching
3237 in Firmware. If unicast pattern matching is also desired,
3238 ucUcastPatternFilteringEnable flag must be set tot true
3239 as well
3240 */
3241 tANI_U8 ucPatternFilteringEnable;
3242
3243 /* Enables/disables unicast packet pattern filtering.
3244 This flag specifies whether we want to do pattern match
3245 on unicast packets as well and not just broadcast packets.
3246 This flag has no effect if the ucPatternFilteringEnable
3247 (main controlling flag) is set to false
3248 */
3249 tANI_U8 ucUcastPatternFilteringEnable;
3250
3251 /* This configuration is valid only when magicPktEnable=1.
3252 * It requests hardware to wake up when it receives the
3253 * Channel Switch Action Frame.
3254 */
3255 tANI_U8 ucWowChnlSwitchRcv;
3256
3257 /* This configuration is valid only when magicPktEnable=1.
3258 * It requests hardware to wake up when it receives the
3259 * Deauthentication Frame.
3260 */
3261 tANI_U8 ucWowDeauthRcv;
3262
3263 /* This configuration is valid only when magicPktEnable=1.
3264 * It requests hardware to wake up when it receives the
3265 * Disassociation Frame.
3266 */
3267 tANI_U8 ucWowDisassocRcv;
3268
3269 /* This configuration is valid only when magicPktEnable=1.
3270 * It requests hardware to wake up when it has missed
3271 * consecutive beacons. This is a hardware register
3272 * configuration (NOT a firmware configuration).
3273 */
3274 tANI_U8 ucWowMaxMissedBeacons;
3275
3276 /* This configuration is valid only when magicPktEnable=1.
3277 * This is a timeout value in units of microsec. It requests
3278 * hardware to unconditionally wake up after it has stayed
3279 * in WoWLAN mode for some time. Set 0 to disable this feature.
3280 */
3281 tANI_U8 ucWowMaxSleepUsec;
3282
3283#ifdef WLAN_WAKEUP_EVENTS
3284 /* This configuration directs the WoW packet filtering to look for EAP-ID
3285 * requests embedded in EAPOL frames and use this as a wake source.
3286 */
3287 tANI_U8 ucWoWEAPIDRequestEnable;
3288
3289 /* This configuration directs the WoW packet filtering to look for EAPOL-4WAY
3290 * requests and use this as a wake source.
3291 */
3292 tANI_U8 ucWoWEAPOL4WayEnable;
3293
3294 /* This configuration allows a host wakeup on an network scan offload match.
3295 */
3296 tANI_U8 ucWowNetScanOffloadMatch;
3297
3298 /* This configuration allows a host wakeup on any GTK rekeying error.
3299 */
3300 tANI_U8 ucWowGTKRekeyError;
3301
3302 /* This configuration allows a host wakeup on BSS connection loss.
3303 */
3304 tANI_U8 ucWoWBSSConnLoss;
3305#endif // WLAN_WAKEUP_EVENTS
3306
3307 /* Status code to be filled by HAL when it sends
3308 * SIR_HAL_WOWL_ENTER_RSP to PE.
3309 */
3310 eHalStatus status;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003311
3312 /*BSSID to find the current session
3313 */
3314 tANI_U8 bssIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07003315} tSirHalWowlEnterParams, *tpSirHalWowlEnterParams;
3316
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003317// PE<->HAL: Exit WOWLAN parameters
3318typedef struct sSirHalWowlExitParams
3319{
3320 /* Status code to be filled by HAL when it sends
3321 * SIR_HAL_WOWL_EXIT_RSP to PE.
3322 */
3323 eHalStatus status;
3324
3325 /*BSSIDX to find the current session
3326 */
3327 tANI_U8 bssIdx;
3328} tSirHalWowlExitParams, *tpSirHalWowlExitParams;
3329
Jeff Johnson295189b2012-06-20 16:38:30 -07003330
3331#define SIR_MAX_NAME_SIZE 64
3332#define SIR_MAX_TEXT_SIZE 32
3333
3334typedef struct sSirName {
3335 v_U8_t num_name;
3336 v_U8_t name[SIR_MAX_NAME_SIZE];
3337} tSirName;
3338
3339typedef struct sSirText {
3340 v_U8_t num_text;
3341 v_U8_t text[SIR_MAX_TEXT_SIZE];
3342} tSirText;
3343
3344
3345#define SIR_WPS_PROBRSP_VER_PRESENT 0x00000001
3346#define SIR_WPS_PROBRSP_STATE_PRESENT 0x00000002
3347#define SIR_WPS_PROBRSP_APSETUPLOCK_PRESENT 0x00000004
3348#define SIR_WPS_PROBRSP_SELECTEDREGISTRA_PRESENT 0x00000008
3349#define SIR_WPS_PROBRSP_DEVICEPASSWORDID_PRESENT 0x00000010
3350#define SIR_WPS_PROBRSP_SELECTEDREGISTRACFGMETHOD_PRESENT 0x00000020
3351#define SIR_WPS_PROBRSP_RESPONSETYPE_PRESENT 0x00000040
3352#define SIR_WPS_PROBRSP_UUIDE_PRESENT 0x00000080
3353#define SIR_WPS_PROBRSP_MANUFACTURE_PRESENT 0x00000100
3354#define SIR_WPS_PROBRSP_MODELNAME_PRESENT 0x00000200
3355#define SIR_WPS_PROBRSP_MODELNUMBER_PRESENT 0x00000400
3356#define SIR_WPS_PROBRSP_SERIALNUMBER_PRESENT 0x00000800
3357#define SIR_WPS_PROBRSP_PRIMARYDEVICETYPE_PRESENT 0x00001000
3358#define SIR_WPS_PROBRSP_DEVICENAME_PRESENT 0x00002000
3359#define SIR_WPS_PROBRSP_CONFIGMETHODS_PRESENT 0x00004000
3360#define SIR_WPS_PROBRSP_RF_BANDS_PRESENT 0x00008000
3361
3362
3363typedef struct sSirWPSProbeRspIE {
3364 v_U32_t FieldPresent;
3365 v_U32_t Version; // Version. 0x10 = version 1.0, 0x11 = etc.
3366 v_U32_t wpsState; // 1 = unconfigured, 2 = configured.
3367 v_BOOL_t APSetupLocked; // Must be included if value is TRUE
3368 v_BOOL_t SelectedRegistra; //BOOL: indicates if the user has recently activated a Registrar to add an Enrollee.
3369 v_U16_t DevicePasswordID; // Device Password ID
3370 v_U16_t SelectedRegistraCfgMethod; // Selected Registrar config method
3371 v_U8_t ResponseType; // Response type
3372 v_U8_t UUID_E[16]; // Unique identifier of the AP.
3373 tSirName Manufacture;
3374 tSirText ModelName;
3375 tSirText ModelNumber;
3376 tSirText SerialNumber;
3377 v_U32_t PrimaryDeviceCategory ; // Device Category ID: 1Computer, 2Input Device, ...
3378 v_U8_t PrimaryDeviceOUI[4] ; // Vendor specific OUI for Device Sub Category
3379 v_U32_t DeviceSubCategory ; // Device Sub Category ID: 1-PC, 2-Server if Device Category ID is computer
3380 tSirText DeviceName;
3381 v_U16_t ConfigMethod; // Configuaration method
3382 v_U8_t RFBand; // RF bands available on the AP
3383} tSirWPSProbeRspIE;
3384
3385#define SIR_WPS_BEACON_VER_PRESENT 0x00000001
3386#define SIR_WPS_BEACON_STATE_PRESENT 0x00000002
3387#define SIR_WPS_BEACON_APSETUPLOCK_PRESENT 0x00000004
3388#define SIR_WPS_BEACON_SELECTEDREGISTRA_PRESENT 0x00000008
3389#define SIR_WPS_BEACON_DEVICEPASSWORDID_PRESENT 0x00000010
3390#define SIR_WPS_BEACON_SELECTEDREGISTRACFGMETHOD_PRESENT 0x00000020
3391#define SIR_WPS_BEACON_UUIDE_PRESENT 0x00000080
3392#define SIR_WPS_BEACON_RF_BANDS_PRESENT 0x00000100
3393
3394typedef struct sSirWPSBeaconIE {
3395 v_U32_t FieldPresent;
3396 v_U32_t Version; // Version. 0x10 = version 1.0, 0x11 = etc.
3397 v_U32_t wpsState; // 1 = unconfigured, 2 = configured.
3398 v_BOOL_t APSetupLocked; // Must be included if value is TRUE
3399 v_BOOL_t SelectedRegistra; //BOOL: indicates if the user has recently activated a Registrar to add an Enrollee.
3400 v_U16_t DevicePasswordID; // Device Password ID
3401 v_U16_t SelectedRegistraCfgMethod; // Selected Registrar config method
3402 v_U8_t UUID_E[16]; // Unique identifier of the AP.
3403 v_U8_t RFBand; // RF bands available on the AP
3404} tSirWPSBeaconIE;
3405
3406#define SIR_WPS_ASSOCRSP_VER_PRESENT 0x00000001
3407#define SIR_WPS_ASSOCRSP_RESPONSETYPE_PRESENT 0x00000002
3408
3409typedef struct sSirWPSAssocRspIE {
3410 v_U32_t FieldPresent;
3411 v_U32_t Version;
3412 v_U8_t ResposeType;
3413} tSirWPSAssocRspIE;
3414
3415typedef struct sSirAPWPSIEs {
3416 tSirWPSProbeRspIE SirWPSProbeRspIE; /*WPS Set Probe Respose IE*/
3417 tSirWPSBeaconIE SirWPSBeaconIE; /*WPS Set Beacon IE*/
3418 tSirWPSAssocRspIE SirWPSAssocRspIE; /*WPS Set Assoc Response IE*/
3419} tSirAPWPSIEs, *tpSiriAPWPSIEs;
3420
3421typedef struct sSirUpdateAPWPSIEsReq
3422{
3423 tANI_U16 messageType; // eWNI_SME_UPDATE_APWPSIE_REQ
3424 tANI_U16 length;
3425 tANI_U16 transactionId; //Transaction ID for cmd
3426 tSirMacAddr bssId; // BSSID
3427 tANI_U8 sessionId; //Session ID
3428 tSirAPWPSIEs APWPSIEs;
3429} tSirUpdateAPWPSIEsReq, *tpSirUpdateAPWPSIEsReq;
3430
3431typedef struct sSirUpdateParams
3432{
3433 tANI_U16 messageType;
3434 tANI_U16 length;
3435 tANI_U8 sessionId; // Session ID
3436 tANI_U8 ssidHidden; // Hide SSID
3437} tSirUpdateParams, *tpSirUpdateParams;
3438
Madan Mohan Koyyalamudi167b95e2012-11-27 15:53:38 -08003439//Beacon Interval
3440typedef struct sSirChangeBIParams
3441{
3442 tANI_U16 messageType;
3443 tANI_U16 length;
3444 tANI_U16 beaconInterval; // Beacon Interval
3445 tSirMacAddr bssId;
3446 tANI_U8 sessionId; // Session ID
3447} tSirChangeBIParams, *tpSirChangeBIParams;
3448
Hardik Kantilal Patel62a3a762014-11-21 12:55:57 +05303449#ifdef WLAN_FEATURE_AP_HT40_24G
3450typedef struct sSirSetHT2040Mode
3451{
3452 tANI_U16 messageType;
3453 tANI_U16 length;
3454 tANI_U8 cbMode;
3455 tSirMacAddr bssId;
3456 tANI_U8 sessionId; // Session ID
3457} tSirSetHT2040Mode, *tpSirSetHT2040Mode;
Hardik Kantilal Patel81f76342014-11-14 12:45:26 -08003458
3459typedef struct sSirHT2040CoexInfoInd
3460{
3461 tANI_U16 messageType; // eWNI_SME_2040_COEX_IND
3462 tANI_U16 length;
3463 tANI_U8 sessionId;
3464 tANI_U8 HT40MHzIntolerant;
3465 tANI_U8 HT20MHzBssWidthReq;
3466 tANI_U8 channel_num;
3467 tANI_U8 HT2040BssIntoChanReport [1]; //variable
3468}tSirHT2040CoexInfoInd, *tpSirHT2040CoexInfoInd;
Hardik Kantilal Patel62a3a762014-11-21 12:55:57 +05303469#endif
3470
Sandeep Puligilla11d49a62014-01-30 12:05:16 +05303471typedef struct sSirOBSSHT40Param
3472{
3473 tANI_U16 OBSSScanPassiveDwellTime;
3474 tANI_U16 OBSSScanActiveDwellTime;
3475 tANI_U16 BSSChannelWidthTriggerScanInterval;
3476 tANI_U16 OBSSScanPassiveTotalPerChannel;
3477 tANI_U16 OBSSScanActiveTotalPerChannel;
3478 tANI_U16 BSSWidthChannelTransitionDelayFactor;
3479 tANI_U16 OBSSScanActivityThreshold;
3480}tSirOBSSHT40Param, *tpOBSSHT40Param;
3481
Jeff Johnson295189b2012-06-20 16:38:30 -07003482#define SIR_WPS_UUID_LEN 16
3483#define SIR_WPS_PBC_WALK_TIME 120 // 120 Second
3484
3485typedef struct sSirWPSPBCSession {
3486 struct sSirWPSPBCSession *next;
3487 tSirMacAddr addr;
3488 tANI_U8 uuid_e[SIR_WPS_UUID_LEN];
3489 tANI_TIMESTAMP timestamp;
3490} tSirWPSPBCSession;
3491
3492typedef struct sSirSmeGetWPSPBCSessionsReq
3493{
3494 tANI_U16 messageType; // eWNI_SME_GET_WPSPBC_SESSION_REQ
3495 tANI_U16 length;
3496 void *pUsrContext;
3497 void *pSapEventCallback;
3498 tSirMacAddr bssId; // BSSID
3499 tSirMacAddr pRemoveMac; // MAC Address of STA in WPS Session to be removed
3500} tSirSmeGetWPSPBCSessionsReq, *tpSirSmeGetWPSPBCSessionsReq;
3501
3502typedef struct sSirWPSPBCProbeReq
3503{
3504 tSirMacAddr peerMacAddr;
3505 tANI_U16 probeReqIELen;
3506 tANI_U8 probeReqIE[512];
3507} tSirWPSPBCProbeReq, *tpSirWPSPBCProbeReq;
3508
3509// probereq from peer, when wsc is enabled
3510typedef struct sSirSmeProbeReqInd
3511{
3512 tANI_U16 messageType; // eWNI_SME_WPS_PBC_PROBE_REQ_IND
3513 tANI_U16 length;
3514 tANI_U8 sessionId;
3515 tSirMacAddr bssId;
3516 tSirWPSPBCProbeReq WPSPBCProbeReq;
3517} tSirSmeProbeReqInd, *tpSirSmeProbeReqInd;
3518
3519typedef struct sSirUpdateAPWPARSNIEsReq
3520{
3521 tANI_U16 messageType; // eWNI_SME_SET_APWPARSNIEs_REQ
3522 tANI_U16 length;
3523 tANI_U16 transactionId; //Transaction ID for cmd
3524 tSirMacAddr bssId; // BSSID
3525 tANI_U8 sessionId; //Session ID
3526 tSirRSNie APWPARSNIEs;
3527} tSirUpdateAPWPARSNIEsReq, *tpSirUpdateAPWPARSNIEsReq;
3528
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08003529#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Varun Reddy Yeturu52231ea2014-02-06 12:00:56 -08003530#define SIR_ROAM_MAX_CHANNELS 80
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08003531#define SIR_ROAM_SCAN_MAX_PB_REQ_SIZE 450
3532#define CHANNEL_LIST_STATIC 1 /* Occupied channel list remains static */
3533#define CHANNEL_LIST_DYNAMIC_INIT 2 /* Occupied channel list can be learnt after init */
3534#define CHANNEL_LIST_DYNAMIC_FLUSH 3 /* Occupied channel list can be learnt after flush */
3535#define CHANNEL_LIST_DYNAMIC_UPDATE 4 /* Occupied channel list can be learnt after update */
3536#define SIR_ROAM_SCAN_24G_DEFAULT_CH 1
3537#define SIR_ROAM_SCAN_5G_DEFAULT_CH 36
Varun Reddy Yeturu6c5e25c2014-01-09 21:55:37 -08003538
3539/*Adaptive Thresholds to be used for FW based scanning*/
3540#define LFR_SENSITIVITY_THR_1MBPS -89
3541#define LFR_LOOKUP_THR_1MBPS -78
3542#define LFR_SENSITIVITY_THR_2MBPS -87
3543#define LFR_LOOKUP_THR_2MBPS -78
3544#define LFR_SENSITIVITY_THR_5_5MBPS -86
3545#define LFR_LOOKUP_THR_5_5MBPS -77
3546#define LFR_SENSITIVITY_THR_11MBPS -85
3547#define LFR_LOOKUP_THR_11MBPS -76
3548#define LFR_SENSITIVITY_THR_6MBPS_2G -83
3549#define LFR_LOOKUP_THR_6MBPS_2G -78
3550#define LFR_SENSITIVITY_THR_6MBPS_5G -83
3551#define LFR_LOOKUP_THR_6MBPS_5G -78
3552#define LFR_SENSITIVITY_THR_12MBPS_2G -83
3553#define LFR_LOOKUP_THR_12MBPS_2G -78
3554#define LFR_SENSITIVITY_THR_12MBPS_5G -81
3555#define LFR_LOOKUP_THR_12MBPS_5G -76
3556#define LFR_SENSITIVITY_THR_24MBPS_2G -81
3557#define LFR_LOOKUP_THR_24MBPS_2G -76
3558#define LFR_SENSITIVITY_THR_24MBPS_5G -79
3559#define LFR_LOOKUP_THR_24MBPS_5G -74
3560#define LFR_SENSITIVITY_THR_DEFAULT 0
3561#define LFR_LOOKUP_THR_DEFAULT -78
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08003562#endif //WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Jeff Johnson295189b2012-06-20 16:38:30 -07003563
3564// SME -> HAL - This is the host offload request.
3565#define SIR_IPV4_ARP_REPLY_OFFLOAD 0
3566#define SIR_IPV6_NEIGHBOR_DISCOVERY_OFFLOAD 1
3567#define SIR_IPV6_NS_OFFLOAD 2
3568#define SIR_OFFLOAD_DISABLE 0
3569#define SIR_OFFLOAD_ENABLE 1
3570#define SIR_OFFLOAD_BCAST_FILTER_ENABLE 0x2
Madan Mohan Koyyalamudibadffe72013-09-11 13:09:14 +05303571#define SIR_OFFLOAD_MCAST_FILTER_ENABLE 0x4
Jeff Johnson295189b2012-06-20 16:38:30 -07003572#define SIR_OFFLOAD_ARP_AND_BCAST_FILTER_ENABLE (SIR_OFFLOAD_ENABLE|SIR_OFFLOAD_BCAST_FILTER_ENABLE)
Madan Mohan Koyyalamudibadffe72013-09-11 13:09:14 +05303573#define SIR_OFFLOAD_NS_AND_MCAST_FILTER_ENABLE (SIR_OFFLOAD_ENABLE|SIR_OFFLOAD_MCAST_FILTER_ENABLE)
Jeff Johnson295189b2012-06-20 16:38:30 -07003574
3575#ifdef WLAN_NS_OFFLOAD
3576typedef struct sSirNsOffloadReq
3577{
3578 tANI_U8 srcIPv6Addr[16];
3579 tANI_U8 selfIPv6Addr[16];
3580 //Only support 2 possible Network Advertisement IPv6 address
3581 tANI_U8 targetIPv6Addr[SIR_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA][16];
3582 tANI_U8 selfMacAddr[6];
3583 tANI_U8 srcIPv6AddrValid;
3584 tANI_U8 targetIPv6AddrValid[SIR_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA];
Gopichand Nakkala746a9452013-06-11 12:45:54 +05303585 tANI_U8 slotIdx;
Jeff Johnson295189b2012-06-20 16:38:30 -07003586} tSirNsOffloadReq, *tpSirNsOffloadReq;
3587#endif //WLAN_NS_OFFLOAD
3588
3589typedef struct sSirHostOffloadReq
3590{
3591 tANI_U8 offloadType;
3592 tANI_U8 enableOrDisable;
3593 union
3594 {
3595 tANI_U8 hostIpv4Addr [4];
3596 tANI_U8 hostIpv6Addr [16];
3597 } params;
3598#ifdef WLAN_NS_OFFLOAD
3599 tSirNsOffloadReq nsOffloadInfo;
3600#endif //WLAN_NS_OFFLOAD
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003601 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07003602} tSirHostOffloadReq, *tpSirHostOffloadReq;
3603
3604/* Packet Types. */
3605#define SIR_KEEP_ALIVE_NULL_PKT 1
3606#define SIR_KEEP_ALIVE_UNSOLICIT_ARP_RSP 2
3607
3608/* Enable or disable offload. */
3609#define SIR_KEEP_ALIVE_DISABLE 0
3610#define SIR_KEEP_ALIVE_ENABLE 1
3611
3612/* Keep Alive request. */
3613typedef struct sSirKeepAliveReq
3614{
3615 v_U8_t packetType;
3616 v_U32_t timePeriod;
3617 tSirIpv4Addr hostIpv4Addr;
3618 tSirIpv4Addr destIpv4Addr;
3619 tSirMacAddr destMacAddr;
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07003620 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07003621} tSirKeepAliveReq, *tpSirKeepAliveReq;
3622
3623typedef struct sSirSmeAddStaSelfReq
3624{
3625 tANI_U16 mesgType;
3626 tANI_U16 mesgLen;
3627 tSirMacAddr selfMacAddr;
Kiran Kumar Lokere0ad5cd32013-06-25 11:26:22 -07003628 tVOS_CON_MODE currDeviceMode;
Jeff Johnson295189b2012-06-20 16:38:30 -07003629}tSirSmeAddStaSelfReq, *tpSirSmeAddStaSelfReq;
3630
3631typedef struct sSirSmeDelStaSelfReq
3632{
3633 tANI_U16 mesgType;
3634 tANI_U16 mesgLen;
3635 tSirMacAddr selfMacAddr;
3636}tSirSmeDelStaSelfReq, *tpSirSmeDelStaSelfReq;
3637
3638typedef struct sSirSmeAddStaSelfRsp
3639{
3640 tANI_U16 mesgType;
3641 tANI_U16 mesgLen;
3642 tANI_U16 status;
3643 tSirMacAddr selfMacAddr;
3644}tSirSmeAddStaSelfRsp, *tpSirSmeAddStaSelfRsp;
3645
3646typedef struct sSirSmeDelStaSelfRsp
3647{
3648 tANI_U16 mesgType;
3649 tANI_U16 mesgLen;
3650 tANI_U16 status;
3651 tSirMacAddr selfMacAddr;
3652}tSirSmeDelStaSelfRsp, *tpSirSmeDelStaSelfRsp;
3653
Padma, Santhosh Kumar778d8382015-03-04 17:41:22 +05303654typedef enum DFSChanScanType
3655{
3656 DFS_CHNL_SCAN_DISABLED,
3657 DFS_CHNL_SCAN_ENABLED_NORMAL,
3658 DFS_CHNL_SCAN_ENABLED_ACTIVE
3659}eDFSChanScanType;
3660
Jeff Johnson295189b2012-06-20 16:38:30 -07003661/* Coex Indication defines -
3662 should match WLAN_COEX_IND_DATA_SIZE
3663 should match WLAN_COEX_IND_TYPE_DISABLE_HB_MONITOR
3664 should match WLAN_COEX_IND_TYPE_ENABLE_HB_MONITOR */
3665#define SIR_COEX_IND_DATA_SIZE (4)
3666#define SIR_COEX_IND_TYPE_DISABLE_HB_MONITOR (0)
3667#define SIR_COEX_IND_TYPE_ENABLE_HB_MONITOR (1)
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003668#define SIR_COEX_IND_TYPE_SCAN_COMPROMISED (2)
3669#define SIR_COEX_IND_TYPE_SCAN_NOT_COMPROMISED (3)
Kiran Kumar Lokere458d7322013-05-29 14:29:43 -07003670#define SIR_COEX_IND_TYPE_DISABLE_AGGREGATION_IN_2p4 (4)
3671#define SIR_COEX_IND_TYPE_ENABLE_AGGREGATION_IN_2p4 (5)
Kanchanapally, Vidyullatha23cea3c2014-11-04 13:05:20 +05303672#define SIR_COEX_IND_TYPE_ENABLE_UAPSD (6)
3673#define SIR_COEX_IND_TYPE_DISABLE_UAPSD (7)
c_hpothub3458992014-09-19 19:58:57 +05303674#define SIR_COEX_IND_TYPE_CXM_FEATURES_NOTIFICATION (8)
Pradeep Reddy POTTETIf0569d72014-12-13 16:54:03 +05303675#define SIR_COEX_IND_TYPE_TDLS_ENABLE (6)
3676#define SIR_COEX_IND_TYPE_TDLS_DISABLE (7)
Jeff Johnson295189b2012-06-20 16:38:30 -07003677
3678typedef struct sSirSmeCoexInd
3679{
3680 tANI_U16 mesgType;
3681 tANI_U16 mesgLen;
3682 tANI_U32 coexIndType;
3683 tANI_U32 coexIndData[SIR_COEX_IND_DATA_SIZE];
3684}tSirSmeCoexInd, *tpSirSmeCoexInd;
3685
Jeff Johnson295189b2012-06-20 16:38:30 -07003686typedef struct sSirSmeMgmtFrameInd
3687{
3688 tANI_U16 mesgType;
3689 tANI_U16 mesgLen;
Chilam NG571c65a2013-01-19 12:27:36 +05303690 tANI_U32 rxChan;
Jeff Johnson295189b2012-06-20 16:38:30 -07003691 tANI_U8 sessionId;
3692 tANI_U8 frameType;
Chilam NG571c65a2013-01-19 12:27:36 +05303693 tANI_S8 rxRssi;
Jeff Johnson295189b2012-06-20 16:38:30 -07003694 tANI_U8 frameBuf[1]; //variable
3695}tSirSmeMgmtFrameInd, *tpSirSmeMgmtFrameInd;
Jeff Johnson295189b2012-06-20 16:38:30 -07003696
Chet Lanctot186b5732013-03-18 10:26:30 -07003697#ifdef WLAN_FEATURE_11W
3698typedef struct sSirSmeUnprotMgmtFrameInd
3699{
3700 tANI_U8 sessionId;
3701 tANI_U8 frameType;
3702 tANI_U8 frameLen;
3703 tANI_U8 frameBuf[1]; //variable
3704}tSirSmeUnprotMgmtFrameInd, *tpSirSmeUnprotMgmtFrameInd;
3705#endif
3706
Jeff Johnson295189b2012-06-20 16:38:30 -07003707#define SIR_IS_FULL_POWER_REASON_DISCONNECTED(eReason) \
3708 ( ( eSME_LINK_DISCONNECTED_BY_HDD == (eReason) ) || \
3709 ( eSME_LINK_DISCONNECTED_BY_OTHER == (eReason) ) || \
3710 (eSME_FULL_PWR_NEEDED_BY_CHANNEL_SWITCH == (eReason)))
3711#define SIR_IS_FULL_POWER_NEEDED_BY_HDD(eReason) \
3712 ( ( eSME_LINK_DISCONNECTED_BY_HDD == (eReason) ) || ( eSME_FULL_PWR_NEEDED_BY_HDD == (eReason) ) )
3713
3714/* P2P Power Save Related */
Jeff Johnson295189b2012-06-20 16:38:30 -07003715typedef struct sSirNoAParam
3716{
3717 tANI_U8 ctWindow:7;
3718 tANI_U8 OppPS:1;
3719 tANI_U8 count;
3720 tANI_U32 duration;
3721 tANI_U32 interval;
3722 tANI_U32 singleNoADuration;
3723 tANI_U8 psSelection;
3724}tSirNoAParam, *tpSirNoAParam;
Jeff Johnson295189b2012-06-20 16:38:30 -07003725
Jeff Johnson295189b2012-06-20 16:38:30 -07003726typedef struct sSirWlanSuspendParam
3727{
3728 tANI_U8 configuredMcstBcstFilterSetting;
3729}tSirWlanSuspendParam,*tpSirWlanSuspendParam;
3730
3731typedef struct sSirWlanResumeParam
3732{
3733 tANI_U8 configuredMcstBcstFilterSetting;
3734}tSirWlanResumeParam,*tpSirWlanResumeParam;
3735
3736typedef struct sSirWlanSetRxpFilters
3737{
3738 tANI_U8 configuredMcstBcstFilterSetting;
3739 tANI_U8 setMcstBcstFilter;
3740}tSirWlanSetRxpFilters,*tpSirWlanSetRxpFilters;
Jeff Johnson295189b2012-06-20 16:38:30 -07003741
c_manjeecfd1efb2015-09-25 19:32:34 +05303742typedef struct
3743{
3744 //FW mail box address
3745 uint64 logMailBoxAddr;
3746 tANI_U32 status;
3747 //Logging mail box version
3748 tANI_U8 logMailBoxVer;
3749 //Qshrink is enabled
3750 tANI_U8 logCompressEnabled;
3751 /* used to tell fwr mem dump size */
3752 tANI_U32 fw_mem_dump_max_size;
3753 //Reserved for future purpose
3754 tANI_U32 reserved1;
3755 tANI_U32 reserved2;
3756}tAniLoggingInitRsp, *tpAniLoggingInitRsp;
3757
3758typedef void(*FWLoggingInitReqCb)(void *fwlogInitCbContext, tAniLoggingInitRsp *pRsp);
Siddharth Bhal64246172015-02-27 01:04:37 +05303759typedef void ( *tGetFrameLogCallback) (void *pContext);
Gupta, Kapil7c34b322015-09-30 13:12:35 +05303760typedef void(*RssiMonitorReqCb)(void *rssiMonitorCbContext, VOS_STATUS status);
Siddharth Bhal64246172015-02-27 01:04:37 +05303761
3762typedef struct sAniGetFrameLogReq
3763{
3764 tANI_U16 msgType;
3765 tANI_U16 msgLen;
Siddharth Bhal64246172015-02-27 01:04:37 +05303766 tANI_U8 getFrameLogCmdFlag;
Siddharth Bhal64246172015-02-27 01:04:37 +05303767} tAniGetFrameLogReq, *tpAniGetFrameLogReq;
3768
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05303769
Siddharth Bhald1be97f2015-05-27 22:39:59 +05303770typedef struct sSirFWLoggingInitParam
Siddharth Bhalb7c421c2015-02-27 00:26:09 +05303771{
3772 tANI_U8 enableFlag;
3773 tANI_U8 frameType;
3774 tANI_U8 frameSize;
3775 tANI_U8 bufferMode;
Siddharth Bhald1be97f2015-05-27 22:39:59 +05303776 tANI_U8 continuousFrameLogging;
3777 tANI_U8 minLogBufferSize;
3778 tANI_U8 maxLogBufferSize;
3779 FWLoggingInitReqCb fwlogInitCallback;
3780 void *fwlogInitCbContext;
3781}tSirFWLoggingInitParam,*tpSirFWLoggingInitParam;
Jeff Johnson295189b2012-06-20 16:38:30 -07003782
Gupta, Kapil7c34b322015-09-30 13:12:35 +05303783
3784/*
3785 * struct rssi_monitor_req - rssi monitoring
3786 * @request_id: request id
3787 * @session_id: session id
3788 * @min_rssi: minimum rssi
3789 * @max_rssi: maximum rssi
3790 * @control: flag to indicate start or stop
3791 */
3792typedef struct sSirRssiMonitorReq
3793{
3794 tANI_U32 requestId;
3795 tANI_U32 sessionId;
3796 tANI_S8 minRssi;
3797 tANI_S8 maxRssi;
3798 tANI_U8 currentBssId[6];
3799 RssiMonitorReqCb rssiMonitorCallback;
3800 void *rssiMonitorCbContext;
3801}tSirRssiMonitorReq, *tpSirRssiMonitorReq;
3802
3803
3804/**
3805 * struct rssi_breach_event - rssi breached event structure
3806 * @request_id: request id
3807 * @curr_rssi: current rssi
3808 * @curr_bssid: current bssid
3809 */
3810struct rssi_breach_event {
3811 tANI_U32 request_id;
3812 v_MACADDR_t curr_bssid;
3813 tANI_S8 curr_rssi;
3814};
3815
Sachin Ahuja715aafc2015-07-21 23:35:10 +05303816typedef struct sSirFatalEventLogsReqParam
3817{
3818 tANI_U32 reason_code;
3819}tSirFatalEventLogsReqParam, *tpSirFatalEventLogsReqParam;
3820
Jeff Johnson295189b2012-06-20 16:38:30 -07003821#ifdef FEATURE_WLAN_SCAN_PNO
3822//
3823// PNO Messages
3824//
3825
3826// Set PNO
3827#define SIR_PNO_MAX_NETW_CHANNELS 26
Pratik Bhalgatd4404592012-11-22 17:49:14 +05303828#define SIR_PNO_MAX_NETW_CHANNELS_EX 60
Jeff Johnson295189b2012-06-20 16:38:30 -07003829#define SIR_PNO_MAX_SUPP_NETWORKS 16
3830#define SIR_PNO_MAX_SCAN_TIMERS 10
3831
3832/*size based of dot11 declaration without extra IEs as we will not carry those for PNO*/
3833#define SIR_PNO_MAX_PB_REQ_SIZE 450
3834
3835#define SIR_PNO_24G_DEFAULT_CH 1
3836#define SIR_PNO_5G_DEFAULT_CH 36
3837
3838typedef enum
3839{
3840 SIR_PNO_MODE_IMMEDIATE,
3841 SIR_PNO_MODE_ON_SUSPEND,
3842 SIR_PNO_MODE_ON_RESUME,
3843 SIR_PNO_MODE_MAX
3844} eSirPNOMode;
3845
3846typedef struct
3847{
3848 tSirMacSSid ssId;
3849 tANI_U32 authentication;
3850 tANI_U32 encryption;
3851 tANI_U32 bcastNetwType;
3852 tANI_U8 ucChannelCount;
Gopichand Nakkala8e93fde2013-05-10 17:40:12 +05303853 tANI_U8 aChannels[SIR_PNO_MAX_NETW_CHANNELS_EX];
Jeff Johnson295189b2012-06-20 16:38:30 -07003854 tANI_U8 rssiThreshold;
3855} tSirNetworkType;
3856
3857typedef struct
3858{
3859 tANI_U32 uTimerValue;
3860 tANI_U32 uTimerRepeat;
3861}tSirScanTimer;
3862
3863typedef struct
3864{
3865 tANI_U8 ucScanTimersCount;
3866 tSirScanTimer aTimerValues[SIR_PNO_MAX_SCAN_TIMERS];
3867} tSirScanTimersType;
3868
Vinay Krishna Erannaf0e523b2014-03-01 21:00:16 +05303869/*Pref Net Req status */
3870typedef void(*PNOReqStatusCb)(void *callbackContext, VOS_STATUS status);
3871
3872
Jeff Johnson295189b2012-06-20 16:38:30 -07003873typedef struct sSirPNOScanReq
3874{
3875 tANI_U8 enable;
Vinay Krishna Erannaf0e523b2014-03-01 21:00:16 +05303876 PNOReqStatusCb statusCallback;
3877 void *callbackContext;
Jeff Johnson295189b2012-06-20 16:38:30 -07003878 eSirPNOMode modePNO;
3879 tANI_U8 ucNetworksCount;
Hanumantha Reddy Pothulad769f3e2015-02-19 17:00:02 +05303880 tSirNetworkType *aNetworks;
Jeff Johnson295189b2012-06-20 16:38:30 -07003881 tSirScanTimersType scanTimers;
3882
3883 /*added by SME*/
3884 tANI_U16 us24GProbeTemplateLen;
Hanumantha Reddy Pothulad769f3e2015-02-19 17:00:02 +05303885 tANI_U8 *p24GProbeTemplate;
Jeff Johnson295189b2012-06-20 16:38:30 -07003886 tANI_U16 us5GProbeTemplateLen;
Hanumantha Reddy Pothulad769f3e2015-02-19 17:00:02 +05303887 tANI_U8 *p5GProbeTemplate;
Jeff Johnson295189b2012-06-20 16:38:30 -07003888} tSirPNOScanReq, *tpSirPNOScanReq;
3889
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08003890typedef struct sSirSetRSSIFilterReq
3891{
3892 tANI_U8 rssiThreshold;
3893} tSirSetRSSIFilterReq, *tpSirSetRSSIFilterReq;
3894
3895
3896// Update Scan Params
3897typedef struct {
3898 tANI_U8 b11dEnabled;
3899 tANI_U8 b11dResolved;
3900 tANI_U8 ucChannelCount;
3901 tANI_U8 aChannels[SIR_PNO_MAX_NETW_CHANNELS_EX];
3902 tANI_U16 usPassiveMinChTime;
3903 tANI_U16 usPassiveMaxChTime;
3904 tANI_U16 usActiveMinChTime;
3905 tANI_U16 usActiveMaxChTime;
3906 tANI_U8 ucCBState;
3907} tSirUpdateScanParams, * tpSirUpdateScanParams;
3908
3909// Preferred Network Found Indication
3910typedef struct
3911{
3912 tANI_U16 mesgType;
3913 tANI_U16 mesgLen;
3914 /* Network that was found with the highest RSSI*/
3915 tSirMacSSid ssId;
3916 /* Indicates the RSSI */
3917 tANI_U8 rssi;
3918 /* Length of the beacon or probe response
3919 * corresponding to the candidate found by PNO */
3920 tANI_U32 frameLength;
3921 /* Index to memory location where the contents of
3922 * beacon or probe response frame will be copied */
3923 tANI_U8 data[1];
3924} tSirPrefNetworkFoundInd, *tpSirPrefNetworkFoundInd;
3925#endif //FEATURE_WLAN_SCAN_PNO
3926
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07003927#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
3928typedef struct
3929{
3930 tSirMacSSid ssId;
3931 tANI_U8 currAPbssid[WNI_CFG_BSSID_LEN];
3932 tANI_U32 authentication;
3933 tANI_U8 encryption;
3934 tANI_U8 mcencryption;
3935 tANI_U8 ChannelCount;
3936 tANI_U8 ChannelCache[SIR_ROAM_MAX_CHANNELS];
3937
3938} tSirRoamNetworkType;
3939
3940typedef struct SirMobilityDomainInfo
3941{
3942 tANI_U8 mdiePresent;
3943 tANI_U16 mobilityDomain;
3944} tSirMobilityDomainInfo;
3945
3946typedef struct sSirRoamOffloadScanReq
3947{
3948 eAniBoolean RoamScanOffloadEnabled;
Sameer Thalappil4ae66ec2013-11-05 14:17:35 -08003949 eAniBoolean MAWCEnabled;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07003950 tANI_S8 LookupThreshold;
Varun Reddy Yeturu6c5e25c2014-01-09 21:55:37 -08003951 tANI_S8 RxSensitivityThreshold;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07003952 tANI_U8 RoamRssiDiff;
3953 tANI_U8 ChannelCacheType;
3954 tANI_U8 Command;
3955 tANI_U8 StartScanReason;
3956 tANI_U16 NeighborScanTimerPeriod;
3957 tANI_U16 NeighborRoamScanRefreshPeriod;
3958 tANI_U16 NeighborScanChannelMinTime;
3959 tANI_U16 NeighborScanChannelMaxTime;
3960 tANI_U16 EmptyRefreshScanPeriod;
3961 tANI_U8 ValidChannelCount;
3962 tANI_U8 ValidChannelList[SIR_ROAM_MAX_CHANNELS];
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08003963 eAniBoolean IsESEEnabled;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07003964 tANI_U16 us24GProbeTemplateLen;
3965 tANI_U8 p24GProbeTemplate[SIR_ROAM_SCAN_MAX_PB_REQ_SIZE];
3966 tANI_U16 us5GProbeTemplateLen;
3967 tANI_U8 p5GProbeTemplate[SIR_ROAM_SCAN_MAX_PB_REQ_SIZE];
Varun Reddy Yeturu920df212013-05-22 08:07:23 -07003968 tANI_U8 nProbes;
3969 tANI_U16 HomeAwayTime;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07003970 tSirRoamNetworkType ConnectedNetwork;
3971 tSirMobilityDomainInfo MDID;
3972} tSirRoamOffloadScanReq, *tpSirRoamOffloadScanReq;
Manjunathappa Prakash4f1d5a52013-11-11 16:22:19 -08003973#endif //WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Jeff Johnson295189b2012-06-20 16:38:30 -07003974
3975#define SIR_NOCHANGE_POWER_VALUE 0xFFFFFFFF
3976
3977//Power Parameters Type
3978typedef enum
3979{
3980 eSIR_IGNORE_DTIM = 1,
3981 eSIR_LISTEN_INTERVAL = 2,
3982 eSIR_MCAST_BCAST_FILTER = 3,
3983 eSIR_ENABLE_BET = 4,
3984 eSIR_BET_INTERVAL = 5
3985}tPowerParamType;
3986
3987//Power Parameters Value s
3988typedef struct
3989{
3990 /* Ignore DTIM */
3991 tANI_U32 uIgnoreDTIM;
3992
3993 /* DTIM Period */
3994 tANI_U32 uDTIMPeriod;
3995
3996 /* Listen Interval */
3997 tANI_U32 uListenInterval;
3998
3999 /* Broadcast Multicas Filter */
4000 tANI_U32 uBcastMcastFilter;
4001
4002 /* Beacon Early Termination */
4003 tANI_U32 uEnableBET;
4004
4005 /* Beacon Early Termination Interval */
4006 tANI_U32 uBETInterval;
4007
Yue Mac24062f2013-05-13 17:01:29 -07004008 /* MAX LI for modulated DTIM */
4009 tANI_U32 uMaxLIModulatedDTIM;
4010
Jeff Johnson295189b2012-06-20 16:38:30 -07004011}tSirSetPowerParamsReq, *tpSirSetPowerParamsReq;
4012
4013typedef struct sSirTxPerTrackingParam
4014{
4015 tANI_U8 ucTxPerTrackingEnable; /* 0: disable, 1:enable */
4016 tANI_U8 ucTxPerTrackingPeriod; /* Check period, unit is sec. Once tx_stat_chk enable, firmware will check PER in this period periodically */
4017 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 */
4018 tANI_U32 uTxPerTrackingWatermark; /* A watermark of check number, once the tx packet exceed this number, we do the check, default is 5 */
4019}tSirTxPerTrackingParam, *tpSirTxPerTrackingParam;
4020
4021#ifdef WLAN_FEATURE_PACKET_FILTERING
4022/*---------------------------------------------------------------------------
4023 Packet Filtering Parameters
4024---------------------------------------------------------------------------*/
4025#define SIR_IPV4_ADDR_LEN 4
4026#define SIR_MAC_ADDR_LEN 6
4027#define SIR_MAX_FILTER_TEST_DATA_LEN 8
4028#define SIR_MAX_NUM_MULTICAST_ADDRESS 240
4029#define SIR_MAX_NUM_FILTERS 20
4030#define SIR_MAX_NUM_TESTS_PER_FILTER 10
4031
4032//
4033// Receive Filter Parameters
4034//
4035typedef enum
4036{
4037 SIR_RCV_FILTER_TYPE_INVALID,
4038 SIR_RCV_FILTER_TYPE_FILTER_PKT,
4039 SIR_RCV_FILTER_TYPE_BUFFER_PKT,
4040 SIR_RCV_FILTER_TYPE_MAX_ENUM_SIZE
4041}eSirReceivePacketFilterType;
4042
4043typedef enum
4044{
4045 SIR_FILTER_HDR_TYPE_INVALID,
4046 SIR_FILTER_HDR_TYPE_MAC,
4047 SIR_FILTER_HDR_TYPE_ARP,
4048 SIR_FILTER_HDR_TYPE_IPV4,
4049 SIR_FILTER_HDR_TYPE_IPV6,
4050 SIR_FILTER_HDR_TYPE_UDP,
4051 SIR_FILTER_HDR_TYPE_MAX
4052}eSirRcvPktFltProtocolType;
4053
4054typedef enum
4055{
4056 SIR_FILTER_CMP_TYPE_INVALID,
4057 SIR_FILTER_CMP_TYPE_EQUAL,
4058 SIR_FILTER_CMP_TYPE_MASK_EQUAL,
4059 SIR_FILTER_CMP_TYPE_NOT_EQUAL,
4060 SIR_FILTER_CMP_TYPE_MASK_NOT_EQUAL,
4061 SIR_FILTER_CMP_TYPE_MAX
4062}eSirRcvPktFltCmpFlagType;
4063
4064typedef struct sSirRcvPktFilterFieldParams
4065{
4066 eSirRcvPktFltProtocolType protocolLayer;
4067 eSirRcvPktFltCmpFlagType cmpFlag;
4068 /* Length of the data to compare */
4069 tANI_U16 dataLength;
4070 /* from start of the respective frame header */
4071 tANI_U8 dataOffset;
4072 /* Reserved field */
4073 tANI_U8 reserved;
4074 /* Data to compare */
4075 tANI_U8 compareData[SIR_MAX_FILTER_TEST_DATA_LEN];
4076 /* Mask to be applied on the received packet data before compare */
4077 tANI_U8 dataMask[SIR_MAX_FILTER_TEST_DATA_LEN];
4078}tSirRcvPktFilterFieldParams, *tpSirRcvPktFilterFieldParams;
4079
4080typedef struct sSirRcvPktFilterCfg
4081{
4082 tANI_U8 filterId;
4083 eSirReceivePacketFilterType filterType;
4084 tANI_U32 numFieldParams;
4085 tANI_U32 coalesceTime;
Jeff Johnsone7245742012-09-05 17:12:55 -07004086 tSirMacAddr selfMacAddr;
4087 tSirMacAddr bssId; //Bssid of the connected AP
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004088 tSirRcvPktFilterFieldParams paramsData[SIR_MAX_NUM_TESTS_PER_FILTER];
Jeff Johnson295189b2012-06-20 16:38:30 -07004089}tSirRcvPktFilterCfgType, *tpSirRcvPktFilterCfgType;
4090
4091//
4092// Filter Packet Match Count Parameters
4093//
4094typedef struct sSirRcvFltPktMatchCnt
4095{
4096 tANI_U8 filterId;
4097 tANI_U32 matchCnt;
4098} tSirRcvFltPktMatchCnt, tpSirRcvFltPktMatchCnt;
4099
4100typedef struct sSirRcvFltPktMatchRsp
4101{
4102 tANI_U16 mesgType;
4103 tANI_U16 mesgLen;
4104
4105 /* Success or Failure */
4106 tANI_U32 status;
4107 tSirRcvFltPktMatchCnt filterMatchCnt[SIR_MAX_NUM_FILTERS];
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004108 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004109} tSirRcvFltPktMatchRsp, *tpSirRcvFltPktMatchRsp;
4110
4111//
4112// Receive Filter Clear Parameters
4113//
4114typedef struct sSirRcvFltPktClearParam
4115{
4116 tANI_U32 status; /* only valid for response message */
4117 tANI_U8 filterId;
Jeff Johnsone7245742012-09-05 17:12:55 -07004118 tSirMacAddr selfMacAddr;
4119 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004120}tSirRcvFltPktClearParam, *tpSirRcvFltPktClearParam;
4121
4122//
4123// Multicast Address List Parameters
4124//
4125typedef struct sSirRcvFltMcAddrList
4126{
4127 tANI_U32 ulMulticastAddrCnt;
4128 tSirMacAddr multicastAddr[SIR_MAX_NUM_MULTICAST_ADDRESS];
Jeff Johnsone7245742012-09-05 17:12:55 -07004129 tSirMacAddr selfMacAddr;
4130 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004131} tSirRcvFltMcAddrList, *tpSirRcvFltMcAddrList;
4132#endif // WLAN_FEATURE_PACKET_FILTERING
4133
4134//
4135// Generic version information
4136//
4137typedef struct
4138{
4139 tANI_U8 revision;
4140 tANI_U8 version;
4141 tANI_U8 minor;
4142 tANI_U8 major;
4143} tSirVersionType;
4144
4145typedef struct sAniBtAmpLogLinkReq
4146{
4147 // Common for all types are requests
4148 tANI_U16 msgType; // message type is same as the request type
4149 tANI_U16 msgLen; // length of the entire request
4150 tANI_U8 sessionId; //sme Session Id
4151 void *btampHandle; //AMP context
4152
4153} tAniBtAmpLogLinkReq, *tpAniBtAmpLogLinkReq;
4154
4155#ifdef WLAN_FEATURE_GTK_OFFLOAD
4156/*---------------------------------------------------------------------------
4157* WDA_GTK_OFFLOAD_REQ
4158*--------------------------------------------------------------------------*/
4159typedef struct
4160{
4161 tANI_U32 ulFlags; /* optional flags */
4162 tANI_U8 aKCK[16]; /* Key confirmation key */
4163 tANI_U8 aKEK[16]; /* key encryption key */
4164 tANI_U64 ullKeyReplayCounter; /* replay counter */
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004165 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004166} tSirGtkOffloadParams, *tpSirGtkOffloadParams;
4167
4168/*---------------------------------------------------------------------------
4169* WDA_GTK_OFFLOAD_GETINFO_REQ
4170*--------------------------------------------------------------------------*/
4171typedef struct
4172{
4173 tANI_U16 mesgType;
4174 tANI_U16 mesgLen;
4175
4176 tANI_U32 ulStatus; /* success or failure */
4177 tANI_U64 ullKeyReplayCounter; /* current replay counter value */
4178 tANI_U32 ulTotalRekeyCount; /* total rekey attempts */
4179 tANI_U32 ulGTKRekeyCount; /* successful GTK rekeys */
4180 tANI_U32 ulIGTKRekeyCount; /* successful iGTK rekeys */
Madan Mohan Koyyalamudi96dd30d2012-10-05 17:24:51 -07004181 tSirMacAddr bssId;
Jeff Johnson295189b2012-06-20 16:38:30 -07004182} tSirGtkOffloadGetInfoRspParams, *tpSirGtkOffloadGetInfoRspParams;
4183#endif // WLAN_FEATURE_GTK_OFFLOAD
4184
4185#ifdef WLAN_WAKEUP_EVENTS
4186/*---------------------------------------------------------------------------
4187 tSirWakeReasonInd
4188---------------------------------------------------------------------------*/
4189typedef struct
4190{
4191 tANI_U16 mesgType;
4192 tANI_U16 mesgLen;
4193 tANI_U32 ulReason; /* see tWakeReasonType */
4194 tANI_U32 ulReasonArg; /* argument specific to the reason type */
4195 tANI_U32 ulStoredDataLen; /* length of optional data stored in this message, in case
4196 HAL truncates the data (i.e. data packets) this length
4197 will be less than the actual length */
4198 tANI_U32 ulActualDataLen; /* actual length of data */
4199 tANI_U8 aDataStart[1]; /* variable length start of data (length == storedDataLen)
4200 see specific wake type */
4201} tSirWakeReasonInd, *tpSirWakeReasonInd;
4202#endif // WLAN_WAKEUP_EVENTS
4203
4204/*---------------------------------------------------------------------------
4205 sAniSetTmLevelReq
4206---------------------------------------------------------------------------*/
4207typedef struct sAniSetTmLevelReq
4208{
4209 tANI_U16 tmMode;
4210 tANI_U16 newTmLevel;
4211} tAniSetTmLevelReq, *tpAniSetTmLevelReq;
4212
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004213#ifdef FEATURE_WLAN_TDLS
4214/* TDLS Request struct SME-->PE */
4215typedef struct sSirTdlsSendMgmtReq
4216{
4217 tANI_U16 messageType; // eWNI_SME_TDLS_DISCOVERY_START_REQ
4218 tANI_U16 length;
4219 tANI_U8 sessionId; // Session ID
4220 tANI_U16 transactionId; // Transaction ID for cmd
4221 tANI_U8 reqType;
4222 tANI_U8 dialog;
4223 tANI_U16 statusCode;
Hoonki Leea34dd892013-02-05 22:56:02 -08004224 tANI_U8 responder;
Pradeep Reddy POTTETIca171f82014-03-21 14:17:35 +05304225 tANI_U32 peerCapability;
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004226 tSirMacAddr bssid; // For multi-session, for PE to locate peSession ID
4227 tSirMacAddr peerMac;
4228 tANI_U8 addIe[1]; //Variable lenght. Dont add any field after this.
4229} tSirTdlsSendMgmtReq, *tpSirSmeTdlsSendMgmtReq ;
Gopichand Nakkala681989c2013-03-06 22:27:48 -08004230
4231typedef enum TdlsAddOper
4232{
4233 TDLS_OPER_NONE,
4234 TDLS_OPER_ADD,
4235 TDLS_OPER_UPDATE
4236} eTdlsAddOper;
4237
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004238/* TDLS Request struct SME-->PE */
4239typedef struct sSirTdlsAddStaReq
4240{
4241 tANI_U16 messageType; // eWNI_SME_TDLS_DISCOVERY_START_REQ
4242 tANI_U16 length;
4243 tANI_U8 sessionId; // Session ID
4244 tANI_U16 transactionId; // Transaction ID for cmd
4245 tSirMacAddr bssid; // For multi-session, for PE to locate peSession ID
Gopichand Nakkala681989c2013-03-06 22:27:48 -08004246 eTdlsAddOper tdlsAddOper;
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004247 tSirMacAddr peerMac;
Gopichand Nakkala681989c2013-03-06 22:27:48 -08004248 tANI_U16 capability;
4249 tANI_U8 extn_capability[SIR_MAC_MAX_EXTN_CAP];
4250 tANI_U8 supported_rates_length;
4251 tANI_U8 supported_rates[SIR_MAC_MAX_SUPP_RATES];
Hoonki Lee66b75f32013-04-16 18:30:07 -07004252 tANI_U8 htcap_present;
Gopichand Nakkala681989c2013-03-06 22:27:48 -08004253 tSirHTCap htCap;
Hoonki Lee66b75f32013-04-16 18:30:07 -07004254 tANI_U8 vhtcap_present;
Gopichand Nakkala681989c2013-03-06 22:27:48 -08004255 tSirVHTCap vhtCap;
4256 tANI_U8 uapsd_queues;
4257 tANI_U8 max_sp;
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004258} tSirTdlsAddStaReq, *tpSirSmeTdlsAddStaReq ;
Gopichand Nakkala681989c2013-03-06 22:27:48 -08004259
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004260/* TDLS Response struct PE-->SME */
4261typedef struct sSirTdlsAddStaRsp
4262{
4263 tANI_U16 messageType;
4264 tANI_U16 length;
4265 tSirResultCodes statusCode;
4266 tSirMacAddr peerMac;
4267 tANI_U8 sessionId; // Session ID
4268 tANI_U16 staId ;
4269 tANI_U16 staType ;
4270 tANI_U8 ucastSig;
4271 tANI_U8 bcastSig;
Gopichand Nakkala681989c2013-03-06 22:27:48 -08004272 eTdlsAddOper tdlsAddOper;
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004273} tSirTdlsAddStaRsp ;
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304274
4275/* TDLS Request struct SME-->PE */
4276typedef struct
4277{
4278 tANI_U16 messageType; // eWNI_SME_TDLS_LINK_ESTABLISH_REQ
4279 tANI_U16 length;
4280 tANI_U8 sessionId; // Session ID
4281 tANI_U16 transactionId; // Transaction ID for cmd
4282 tANI_U8 uapsdQueues; // Peer's uapsd Queues Information
4283 tANI_U8 maxSp; // Peer's Supported Maximum Service Period
4284 tANI_U8 isBufSta; // Does Peer Support as Buffer Station.
Naresh Jayarambc62ba42014-02-12 21:39:14 +05304285 tANI_U8 isOffChannelSupported; // Does Peer Support as TDLS Off Channel.
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304286 tANI_U8 isResponder; // Is Peer a responder.
4287 tSirMacAddr bssid; // For multi-session, for PE to locate peSession ID
4288 tSirMacAddr peerMac;
Naresh Jayarambc62ba42014-02-12 21:39:14 +05304289 tANI_U8 supportedChannelsLen;
4290 tANI_U8 supportedChannels[SIR_MAC_MAX_SUPP_CHANNELS];
4291 tANI_U8 supportedOperClassesLen;
4292 tANI_U8 supportedOperClasses[SIR_MAC_MAX_SUPP_OPER_CLASSES];
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304293}tSirTdlsLinkEstablishReq, *tpSirTdlsLinkEstablishReq;
4294
4295/* TDLS Request struct SME-->PE */
4296typedef struct
4297{
4298 tANI_U16 messageType; // eWNI_SME_TDLS_LINK_ESTABLISH_RSP
4299 tANI_U16 length;
4300 tANI_U8 sessionId; // Session ID
4301 tANI_U16 transactionId; // Transaction ID for cmd
4302 tSirResultCodes statusCode;
4303 tSirMacAddr peerMac;
4304}tSirTdlsLinkEstablishReqRsp, *tpSirTdlsLinkEstablishReqRsp;
4305
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004306/* TDLS Request struct SME-->PE */
4307typedef struct sSirTdlsDelStaReq
4308{
4309 tANI_U16 messageType; // eWNI_SME_TDLS_DISCOVERY_START_REQ
4310 tANI_U16 length;
4311 tANI_U8 sessionId; // Session ID
4312 tANI_U16 transactionId; // Transaction ID for cmd
4313 tSirMacAddr bssid; // For multi-session, for PE to locate peSession ID
4314 tSirMacAddr peerMac;
4315} tSirTdlsDelStaReq, *tpSirSmeTdlsDelStaReq ;
4316/* TDLS Response struct PE-->SME */
4317typedef struct sSirTdlsDelStaRsp
4318{
4319 tANI_U16 messageType;
4320 tANI_U16 length;
4321 tANI_U8 sessionId; // Session ID
4322 tSirResultCodes statusCode;
4323 tSirMacAddr peerMac;
4324 tANI_U16 staId;
4325} tSirTdlsDelStaRsp, *tpSirTdlsDelStaRsp;
Hoonki Leee6bfe942013-02-05 15:01:19 -08004326/* TDLS Delete Indication struct PE-->SME */
4327typedef struct sSirTdlsDelStaInd
4328{
4329 tANI_U16 messageType;
4330 tANI_U16 length;
4331 tANI_U8 sessionId; // Session ID
4332 tSirMacAddr peerMac;
4333 tANI_U16 staId;
4334 tANI_U16 reasonCode;
4335} tSirTdlsDelStaInd, *tpSirTdlsDelStaInd;
Gopichand Nakkala2a0a1572013-02-10 21:39:16 -08004336typedef struct sSirTdlsDelAllPeerInd
4337{
4338 tANI_U16 messageType;
4339 tANI_U16 length;
4340 tANI_U8 sessionId; // Session ID
4341} tSirTdlsDelAllPeerInd, *tpSirTdlsDelAllPeerInd;
Gopichand Nakkalab977a972013-02-18 19:15:09 -08004342typedef struct sSirMgmtTxCompletionInd
4343{
4344 tANI_U16 messageType;
4345 tANI_U16 length;
4346 tANI_U8 sessionId; // Session ID
4347 tANI_U32 txCompleteStatus;
4348} tSirMgmtTxCompletionInd, *tpSirMgmtTxCompletionInd;
Atul Mittalc0f739f2014-07-31 13:47:47 +05304349
4350//tdlsoffchan
4351/* TDLS Channel Switch struct SME-->PE */
4352typedef struct
4353{
4354 tANI_U16 messageType; //eWNI_SME_TDLS_CHANNEL_SWITCH_REQ
4355 tANI_U16 length;
4356 tANI_U8 sessionId; // Session ID
4357 tANI_U16 transactionId; // Transaction ID for cmd
4358 tANI_U8 tdlsOffCh; // Target Off Channel
4359 tANI_U8 tdlsOffChBwOffset;// Target Off Channel Bandwidth offset
4360 tANI_U8 tdlsSwMode; // TDLS Off Channel Mode
4361 tSirMacAddr bssid; // For multi-session, for PE to locate peSession ID
4362 tSirMacAddr peerMac;
4363}tSirTdlsChanSwitch, *tpSirTdlsChanSwitch;
4364
Atul Mittal60bd4292014-08-14 12:19:27 +05304365/* TDLS Resp struct */
4366typedef struct
4367{
4368 tANI_U16 messageType; // eWNI_SME_TDLS_CHANNEL_SWITCH_RSP
4369 tANI_U16 length;
4370 tANI_U8 sessionId; // Session ID
4371 tANI_U16 transactionId; // Transaction ID for cmd
4372 tSirResultCodes statusCode;
4373 tSirMacAddr peerMac;
4374}tSirTdlsChanSwitchReqRsp, *tpSirTdlsChanSwitchReqRsp;
Mohit Khanna698ba2a2012-12-04 15:08:18 -08004375#endif /* FEATURE_WLAN_TDLS */
4376
Yathish9f22e662012-12-10 14:21:35 -08004377typedef struct sSirActiveModeSetBcnFilterReq
4378{
4379 tANI_U16 messageType;
4380 tANI_U16 length;
4381 tANI_U8 seesionId;
4382} tSirSetActiveModeSetBncFilterReq, *tpSirSetActiveModeSetBncFilterReq;
4383
Sandeep Puligilla11d49a62014-01-30 12:05:16 +05304384typedef enum
4385{
4386 HT40_OBSS_SCAN_PARAM_START,
4387 HT40_OBSS_SCAN_PARAM_UPDATE
4388}tHT40OBssScanCmdType;
4389
4390typedef struct sSirSmeHT40StopOBSSScanInd
4391{
4392 tANI_U16 messageType;
4393 tANI_U16 length;
4394 tANI_U8 seesionId;
4395} tSirSmeHT40OBSSStopScanInd, *tpSirSmeHT40OBSSStopScanInd;
4396
4397typedef struct sSirSmeHT40OBSSScanInd
4398{
4399 tANI_U16 messageType;
4400 tANI_U16 length;
Sandeep Puligilla9f384742014-04-11 02:27:04 +05304401 tSirMacAddr peerMacAddr;
Sandeep Puligilla11d49a62014-01-30 12:05:16 +05304402} tSirSmeHT40OBSSScanInd, *tpSirSmeHT40OBSSScanInd;
4403
4404typedef struct sSirHT40OBSSScanInd
4405{
4406 tHT40OBssScanCmdType cmdType;
4407 tSirScanType scanType;
4408 tANI_U16 OBSSScanPassiveDwellTime; // In TUs
4409 tANI_U16 OBSSScanActiveDwellTime; // In TUs
4410 tANI_U16 BSSChannelWidthTriggerScanInterval; // In seconds
4411 tANI_U16 OBSSScanPassiveTotalPerChannel; // In TU
4412 tANI_U16 OBSSScanActiveTotalPerChannel; // In TUs
4413 tANI_U16 BSSWidthChannelTransitionDelayFactor;
4414 tANI_U16 OBSSScanActivityThreshold;
4415 tANI_U8 selfStaIdx;
4416 tANI_U8 bssIdx;
4417 tANI_U8 fortyMHZIntolerent;
4418 tANI_U8 channelCount;
4419 tANI_U8 channels[SIR_ROAM_MAX_CHANNELS];
4420 tANI_U8 currentOperatingClass;
4421 tANI_U16 ieFieldLen;
4422 tANI_U8 ieField[SIR_ROAM_SCAN_MAX_PB_REQ_SIZE];
4423} tSirHT40OBSSScanInd, *tpSirHT40OBSSScanInd;
4424
4425
Gopichand Nakkalacca24d12013-03-07 17:05:07 +05304426//Reset AP Caps Changed
4427typedef struct sSirResetAPCapsChange
4428{
4429 tANI_U16 messageType;
4430 tANI_U16 length;
4431 tSirMacAddr bssId;
4432} tSirResetAPCapsChange, *tpSirResetAPCapsChange;
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07004433/// Definition for Candidate found indication from FW
4434typedef struct sSirSmeCandidateFoundInd
4435{
4436 tANI_U16 messageType; // eWNI_SME_CANDIDATE_FOUND_IND
4437 tANI_U16 length;
4438 tANI_U8 sessionId; // Session Identifier
4439} tSirSmeCandidateFoundInd, *tpSirSmeCandidateFoundInd;
Yathish9f22e662012-12-10 14:21:35 -08004440
Chet Lanctot186b5732013-03-18 10:26:30 -07004441#ifdef WLAN_FEATURE_11W
4442typedef struct sSirWlanExcludeUnencryptParam
4443{
4444 tANI_BOOLEAN excludeUnencrypt;
4445 tSirMacAddr bssId;
4446}tSirWlanExcludeUnencryptParam,*tpSirWlanExcludeUnencryptParam;
4447#endif
4448
Varun Reddy Yeturucc661d22013-05-20 11:47:10 -07004449typedef struct sAniHandoffReq
4450{
4451 // Common for all types are requests
4452 tANI_U16 msgType; // message type is same as the request type
4453 tANI_U16 msgLen; // length of the entire request
4454 tANI_U8 sessionId;
4455 tANI_U8 bssid[WNI_CFG_BSSID_LEN];
4456 tANI_U8 channel;
4457} tAniHandoffReq, *tpAniHandoffReq;
4458
Ganesh Kondabattinif0fa07c2013-06-11 17:47:49 +05304459typedef struct sSirScanOffloadReq {
4460 tANI_U8 sessionId;
4461 tSirMacAddr bssId;
4462 tANI_U8 numSsid;
4463 tSirMacSSid ssId[SIR_SCAN_MAX_NUM_SSID];
4464 tANI_U8 hiddenSsid;
4465 tSirMacAddr selfMacAddr;
4466 tSirBssType bssType;
4467 tANI_U8 dot11mode;
4468 tSirScanType scanType;
4469 tANI_U32 minChannelTime;
4470 tANI_U32 maxChannelTime;
4471 tANI_BOOLEAN p2pSearch;
4472 tANI_U16 uIEFieldLen;
4473 tANI_U16 uIEFieldOffset;
4474 tSirChannelList channelList;
4475 /*-----------------------------
4476 sSirScanOffloadReq....
4477 -----------------------------
4478 uIEFieldLen
4479 -----------------------------
4480 uIEFieldOffset ----+
4481 ----------------------------- |
4482 channelList.numChannels |
4483 ----------------------------- |
4484 ... variable size up to |
4485 channelNumber[numChannels-1] |
4486 This can be zero, if |
4487 numChannel is zero. |
4488 ----------------------------- <--+
4489 ... variable size uIEField
4490 up to uIEFieldLen (can be 0)
4491 -----------------------------*/
4492} tSirScanOffloadReq, *tpSirScanOffloadReq;
Gopichand Nakkala2c231c82013-06-11 17:49:16 +05304493
4494typedef enum sSirScanEventType {
4495 SCAN_EVENT_STARTED=0x1, /* Scan command accepted by FW */
4496 SCAN_EVENT_COMPLETED=0x2, /* Scan has been completed by FW */
4497 SCAN_EVENT_BSS_CHANNEL=0x4, /* FW is going to move to HOME channel */
4498 SCAN_EVENT_FOREIGN_CHANNEL = 0x8,/* FW is going to move to FORIEGN channel */
4499 SCAN_EVENT_DEQUEUED=0x10, /* scan request got dequeued */
4500 SCAN_EVENT_PREEMPTED=0x20, /* preempted by other high priority scan */
4501 SCAN_EVENT_START_FAILED=0x40, /* scan start failed */
4502 SCAN_EVENT_RESTARTED=0x80, /*scan restarted*/
4503 SCAN_EVENT_MAX=0x8000
4504} tSirScanEventType;
4505
4506typedef struct sSirScanOffloadEvent{
4507 tSirScanEventType event;
4508 tSirResultCodes reasonCode;
4509 tANI_U32 chanFreq;
4510 tANI_U32 requestor;
4511 tANI_U32 scanId;
4512} tSirScanOffloadEvent, *tpSirScanOffloadEvent;
4513
Gopichand Nakkalaf72a3872013-06-11 17:51:13 +05304514typedef struct sSirUpdateChanParam
4515{
4516 tANI_U8 chanId;
4517 tANI_U8 pwr;
Leela Venkata Kiran Kumar Reddy Chiralac6663f72014-02-03 21:04:58 -08004518 tANI_BOOLEAN dfsSet;
Gopichand Nakkalaf72a3872013-06-11 17:51:13 +05304519} tSirUpdateChanParam, *tpSirUpdateChanParam;
4520
4521typedef struct sSirUpdateChan
4522{
Sachin Ahujacb64fc82015-01-12 17:01:05 +05304523 tANI_U8 regId;
Gopichand Nakkalaf72a3872013-06-11 17:51:13 +05304524 tANI_U8 numChan;
4525 tSirUpdateChanParam chanParam[1];
4526} tSirUpdateChanList, *tpSirUpdateChanList;
4527
Leo Chang9056f462013-08-01 19:21:11 -07004528#ifdef FEATURE_WLAN_LPHB
4529#define SIR_LPHB_FILTER_LEN 64
4530
4531typedef enum
4532{
4533 LPHB_SET_EN_PARAMS_INDID,
4534 LPHB_SET_TCP_PARAMS_INDID,
4535 LPHB_SET_TCP_PKT_FILTER_INDID,
4536 LPHB_SET_UDP_PARAMS_INDID,
4537 LPHB_SET_UDP_PKT_FILTER_INDID,
4538 LPHB_SET_NETWORK_INFO_INDID,
4539} LPHBIndType;
4540
4541typedef struct sSirLPHBEnableStruct
4542{
4543 v_U8_t enable;
4544 v_U8_t item;
4545 v_U8_t session;
4546} tSirLPHBEnableStruct;
4547
4548typedef struct sSirLPHBTcpParamStruct
4549{
4550 v_U32_t srv_ip;
4551 v_U32_t dev_ip;
4552 v_U16_t src_port;
4553 v_U16_t dst_port;
4554 v_U16_t timeout;
4555 v_U8_t session;
4556 tSirMacAddr gateway_mac;
Leo Changd9df8aa2013-09-26 13:32:26 -07004557 uint16 timePeriodSec; // in seconds
4558 uint32 tcpSn;
Leo Chang9056f462013-08-01 19:21:11 -07004559} tSirLPHBTcpParamStruct;
4560
4561typedef struct sSirLPHBTcpFilterStruct
4562{
4563 v_U16_t length;
4564 v_U8_t offset;
4565 v_U8_t session;
4566 v_U8_t filter[SIR_LPHB_FILTER_LEN];
4567} tSirLPHBTcpFilterStruct;
4568
4569typedef struct sSirLPHBUdpParamStruct
4570{
4571 v_U32_t srv_ip;
4572 v_U32_t dev_ip;
4573 v_U16_t src_port;
4574 v_U16_t dst_port;
4575 v_U16_t interval;
4576 v_U16_t timeout;
4577 v_U8_t session;
4578 tSirMacAddr gateway_mac;
4579} tSirLPHBUdpParamStruct;
4580
4581typedef struct sSirLPHBUdpFilterStruct
4582{
4583 v_U16_t length;
4584 v_U8_t offset;
4585 v_U8_t session;
4586 v_U8_t filter[SIR_LPHB_FILTER_LEN];
4587} tSirLPHBUdpFilterStruct;
4588
4589typedef struct sSirLPHBReq
4590{
4591 v_U16_t cmd;
4592 v_U16_t dummy;
4593 union
4594 {
4595 tSirLPHBEnableStruct lphbEnableReq;
4596 tSirLPHBTcpParamStruct lphbTcpParamReq;
4597 tSirLPHBTcpFilterStruct lphbTcpFilterReq;
4598 tSirLPHBUdpParamStruct lphbUdpParamReq;
4599 tSirLPHBUdpFilterStruct lphbUdpFilterReq;
4600 } params;
4601} tSirLPHBReq;
4602
Leo Changd9df8aa2013-09-26 13:32:26 -07004603typedef struct sSirLPHBInd
Leo Chang9056f462013-08-01 19:21:11 -07004604{
4605 v_U8_t sessionIdx;
4606 v_U8_t protocolType; /*TCP or UDP*/
4607 v_U8_t eventReason;
Leo Changd9df8aa2013-09-26 13:32:26 -07004608} tSirLPHBInd;
Leo Chang9056f462013-08-01 19:21:11 -07004609#endif /* FEATURE_WLAN_LPHB */
4610
Yue Mab9c86f42013-08-14 15:59:08 -07004611typedef struct sSirAddPeriodicTxPtrn
4612{
4613 /* MAC Address for the adapter */
4614 tSirMacAddr macAddress;
4615
4616 tANI_U8 ucPtrnId; // Pattern ID
4617 tANI_U16 ucPtrnSize; // Pattern size
4618 tANI_U32 usPtrnIntervalMs; // In msec
4619 tANI_U8 ucPattern[PERIODIC_TX_PTRN_MAX_SIZE]; // Pattern buffer
4620} tSirAddPeriodicTxPtrn, *tpSirAddPeriodicTxPtrn;
4621
4622typedef struct sSirDelPeriodicTxPtrn
4623{
4624 /* MAC Address for the adapter */
4625 tSirMacAddr macAddress;
4626
4627 /* Bitmap of pattern IDs that need to be deleted */
4628 tANI_U32 ucPatternIdBitmap;
4629} tSirDelPeriodicTxPtrn, *tpSirDelPeriodicTxPtrn;
4630
Chittajit Mitraf5413a42013-10-18 14:20:08 -07004631typedef struct sSirRateUpdateInd
4632{
4633 /* 0 implies RA, positive value implies fixed rate, -1 implies ignore this
4634 * param.
4635 */
4636 tANI_S32 ucastDataRate;
4637
4638 /* TX flag to differentiate between HT20, HT40 etc */
4639 tTxrateinfoflags ucastDataRateTxFlag;
4640
4641 /* BSSID - Optional. 00-00-00-00-00-00 implies apply to all BCAST STAs */
4642 tSirMacAddr bssid;
4643
4644 /*
4645 * 0 implies MCAST RA, positive value implies fixed rate,
4646 * -1 implies ignore this param
4647 */
4648 tANI_S32 reliableMcastDataRate;//unit Mbpsx10
4649
4650 /* TX flag to differentiate between HT20, HT40 etc */
4651 tTxrateinfoflags reliableMcastDataRateTxFlag;
4652
4653 /*
4654 * MCAST(or BCAST) fixed data rate in 2.4 GHz, unit Mbpsx10,
4655 * 0 implies ignore
4656 */
4657 tANI_U32 mcastDataRate24GHz;
4658
4659 /* TX flag to differentiate between HT20, HT40 etc */
4660 tTxrateinfoflags mcastDataRate24GHzTxFlag;
4661
4662 /*
4663 * MCAST(or BCAST) fixed data rate in 5 GHz,
4664 * unit Mbpsx10, 0 implies ignore
4665 */
4666 tANI_U32 mcastDataRate5GHz;
4667
4668 /* TX flag to differentiate between HT20, HT40 etc */
4669 tTxrateinfoflags mcastDataRate5GHzTxFlag;
4670
4671} tSirRateUpdateInd, *tpSirRateUpdateInd;
4672
Rajeev79dbe4c2013-10-05 11:03:42 +05304673#ifdef FEATURE_WLAN_BATCH_SCAN
4674// Set batch scan resposne from FW
4675typedef struct
4676{
4677 /*maximum number of scans which FW can cache*/
4678 tANI_U32 nScansToBatch;
4679} tSirSetBatchScanRsp, *tpSirSetBatchScanRsp;
4680
4681// Set batch scan request to FW
4682typedef struct
4683{
4684 tANI_U32 scanFrequency; /* how frequent to do scan - default 30Sec*/
4685 tANI_U32 numberOfScansToBatch; /* number of scans to batch */
4686 tANI_U32 bestNetwork; /* best networks in terms of rssi */
4687 tANI_U8 rfBand; /* band to scan :
4688 0 ->both Band, 1->2.4Ghz Only
4689 and 2-> 5GHz Only */
4690 tANI_U32 rtt; /* set if required to do RTT it is not
4691 supported in current version */
4692} tSirSetBatchScanReq, *tpSirSetBatchScanReq;
4693
4694
4695// Stop batch scan request to FW
4696typedef struct
4697{
4698 tANI_U32 param;
4699} tSirStopBatchScanInd, *tpSirStopBatchScanInd;
4700
4701// Trigger batch scan result indication to FW
4702typedef struct
4703{
4704 tANI_U32 param;
4705} tSirTriggerBatchScanResultInd, *tpSirTriggerBatchScanResultInd;
4706
4707// Batch scan result indication from FW
4708typedef PACKED_PRE struct PACKED_POST
4709{
4710 tANI_U8 bssid[6]; /* BSSID */
Rajeev Kumar1f7759a2014-01-23 15:21:47 -08004711 tANI_U8 ssid[33]; /* SSID */
Rajeev79dbe4c2013-10-05 11:03:42 +05304712 tANI_U8 ch; /* Channel */
c_hpothube955202014-05-22 18:07:00 +05304713 tANI_S8 rssi; /* RSSI or Level */
Rajeev79dbe4c2013-10-05 11:03:42 +05304714 /*Timestamp when Network was found. Used to calculate age based on timestamp
4715 in GET_RSP msg header */
4716 tANI_U32 timestamp;
4717} tSirBatchScanNetworkInfo, *tpSirBatchScanNetworkInfo;
4718
4719typedef PACKED_PRE struct PACKED_POST
4720{
4721 tANI_U32 scanId; /* Scan List ID. */
4722 /*No of AP in a Scan Result. Should be same as bestNetwork in SET_REQ msg*/
4723 tANI_U32 numNetworksInScanList;
4724 /*Variable data ptr: Number of AP in Scan List*/
4725 /*Following numNetworkInScanList is data of type tSirBatchScanNetworkInfo
4726 *of sizeof(tSirBatchScanNetworkInfo) * numNetworkInScanList */
4727 tANI_U8 scanList[1];
4728} tSirBatchScanList, *tpSirBatchScanList;
4729
4730typedef PACKED_PRE struct PACKED_POST
4731{
4732 tANI_U32 timestamp;
4733 tANI_U32 numScanLists;
4734 boolean isLastResult;
4735 /* Variable Data ptr: Number of Scan Lists*/
4736 /* following isLastResult is data of type tSirBatchScanList
4737 * of sizeof(tSirBatchScanList) * numScanLists*/
4738 tANI_U8 scanResults[1];
4739} tSirBatchScanResultIndParam, *tpSirBatchScanResultIndParam;
4740
4741#endif // FEATURE_WLAN_BATCH_SCAN
4742
Leo Chang0b0e45a2013-12-15 15:18:55 -08004743#ifdef FEATURE_WLAN_CH_AVOID
Abhishek Singhe34eb552015-06-18 10:12:15 +05304744#define SIR_CH_AVOID_MAX_RANGE 15
Leo Chang0b0e45a2013-12-15 15:18:55 -08004745
4746typedef struct sSirChAvoidFreqType
4747{
4748 tANI_U32 startFreq;
4749 tANI_U32 endFreq;
4750} tSirChAvoidFreqType;
4751
4752typedef struct sSirChAvoidIndType
4753{
4754 tANI_U32 avoidRangeCount;
4755 tSirChAvoidFreqType avoidFreqRange[SIR_CH_AVOID_MAX_RANGE];
4756} tSirChAvoidIndType;
4757#endif /* FEATURE_WLAN_CH_AVOID */
Rajeev79dbe4c2013-10-05 11:03:42 +05304758
c_hpothu92367912014-05-01 15:18:17 +05304759typedef void (*pGetBcnMissRateCB)( tANI_S32 bcnMissRate,
4760 VOS_STATUS status, void *data);
Abhishek Singh08aa7762014-12-16 13:59:03 +05304761typedef void (*tSirFWStatsCallback)(VOS_STATUS status,
4762 tSirFwStatsResult *fwStatsRsp, void *pContext);
c_hpothu92367912014-05-01 15:18:17 +05304763typedef PACKED_PRE struct PACKED_POST
4764{
4765 tANI_U32 msgLen;
4766 tANI_U8 bssid[WNI_CFG_BSSID_LEN];
4767 void *callback;
4768 void *data;
4769}tSirBcnMissRateReq;
4770
4771typedef PACKED_PRE struct PACKED_POST
4772{
4773 pGetBcnMissRateCB callback;
4774 void *data;
4775}tSirBcnMissRateInfo;
4776
Sunil Duttc69bccb2014-05-26 21:30:20 +05304777#ifdef WLAN_FEATURE_LINK_LAYER_STATS
4778
4779typedef struct
4780{
4781 u32 reqId;
Dino Mycled3d50022014-07-07 12:58:25 +05304782 tSirMacAddr macAddr;
Sunil Duttc69bccb2014-05-26 21:30:20 +05304783 u32 mpduSizeThreshold;
4784 u32 aggressiveStatisticsGathering;
4785}tSirLLStatsSetReq, *tpSirLLStatsSetReq;
4786
4787typedef struct
4788{
4789 u32 reqId;
Dino Mycled3d50022014-07-07 12:58:25 +05304790 tSirMacAddr macAddr;
Sunil Duttc69bccb2014-05-26 21:30:20 +05304791 u32 paramIdMask;
4792}tSirLLStatsGetReq, *tpSirLLStatsGetReq;
4793
4794typedef struct
4795{
4796 u32 reqId;
Dino Mycled3d50022014-07-07 12:58:25 +05304797 tSirMacAddr macAddr;
Sunil Duttc69bccb2014-05-26 21:30:20 +05304798 u32 statsClearReqMask;
4799 u8 stopReq;
4800}tSirLLStatsClearReq, *tpSirLLStatsClearReq;
4801
Abhishek Singh3ae443b2014-10-08 11:49:27 +05304802typedef PACKED_PRE struct PACKED_POST
4803{
4804 u32 stats;
4805 tSirFWStatsCallback callback;
4806 void *data;
4807}tSirFWStatsGetReq;
4808
4809typedef PACKED_PRE struct PACKED_POST
4810{
4811 tSirFWStatsCallback callback;
4812 void *data;
4813}tSirFWStatsInfo;
4814
Sunil Duttc69bccb2014-05-26 21:30:20 +05304815/*---------------------------------------------------------------------------
4816 WLAN_HAL_LL_NOTIFY_STATS
4817---------------------------------------------------------------------------*/
4818
4819
4820/******************************LINK LAYER Statistics**********************/
4821
4822typedef int tSirWifiRadio;
4823typedef int tSirWifiChannel;
4824typedef int tSirwifiTxRate;
4825
4826/* channel operating width */
4827typedef PACKED_PRE enum PACKED_POST
4828{
4829 WIFI_CHAN_WIDTH_20 = 0,
4830 WIFI_CHAN_WIDTH_40 = 1,
4831 WIFI_CHAN_WIDTH_80 = 2,
4832 WIFI_CHAN_WIDTH_160 = 3,
4833 WIFI_CHAN_WIDTH_80P80 = 4,
4834 WIFI_CHAN_WIDTH_5 = 5,
4835 WIFI_CHAN_WIDTH_10 = 6,
4836} tSirWifiChannelWidth;
4837
4838typedef PACKED_PRE enum PACKED_POST
4839{
4840 WIFI_DISCONNECTED = 0,
4841 WIFI_AUTHENTICATING = 1,
4842 WIFI_ASSOCIATING = 2,
4843 WIFI_ASSOCIATED = 3,
4844 WIFI_EAPOL_STARTED = 4, // if done by firmware/driver
4845 WIFI_EAPOL_COMPLETED = 5, // if done by firmware/driver
4846} tSirWifiConnectionState;
4847
4848typedef PACKED_PRE enum PACKED_POST
4849{
4850 WIFI_ROAMING_IDLE = 0,
4851 WIFI_ROAMING_ACTIVE = 1,
4852} tSirWifiRoamState;
4853
4854typedef PACKED_PRE enum PACKED_POST
4855{
Dino Myclec8f3f332014-07-21 16:48:27 +05304856 WIFI_INTERFACE_UNKNOWN = -1,
Sunil Duttc69bccb2014-05-26 21:30:20 +05304857 WIFI_INTERFACE_STA = 0,
4858 WIFI_INTERFACE_SOFTAP = 1,
4859 WIFI_INTERFACE_IBSS = 2,
4860 WIFI_INTERFACE_P2P_CLIENT = 3,
4861 WIFI_INTERFACE_P2P_GO = 4,
4862 WIFI_INTERFACE_NAN = 5,
4863 WIFI_INTERFACE_MESH = 6,
4864 } tSirWifiInterfaceMode;
4865
4866// set for QOS association
4867#define WIFI_CAPABILITY_QOS 0x00000001
4868// set for protected association (802.11 beacon frame control protected bit set)
4869#define WIFI_CAPABILITY_PROTECTED 0x00000002
4870// set if 802.11 Extended Capabilities element interworking bit is set
4871#define WIFI_CAPABILITY_INTERWORKING 0x00000004
4872// set for HS20 association
4873#define WIFI_CAPABILITY_HS20 0x00000008
4874// set is 802.11 Extended Capabilities element UTF-8 SSID bit is set
4875#define WIFI_CAPABILITY_SSID_UTF8 0x00000010
4876// set is 802.11 Country Element is present
4877#define WIFI_CAPABILITY_COUNTRY 0x00000020
4878
4879typedef PACKED_PRE struct PACKED_POST
4880{
4881 /*tSirWifiInterfaceMode*/
4882 // interface mode
Dino Myclec8f3f332014-07-21 16:48:27 +05304883 tANI_S8 mode;
Sunil Duttc69bccb2014-05-26 21:30:20 +05304884 // interface mac address (self)
4885 tSirMacAddr macAddr;
4886 /*tSirWifiConnectionState*/
4887 // connection state (valid for STA, CLI only)
4888 tANI_U8 state;
4889 /*tSirWifiRoamState*/
4890 // roaming state
4891 tANI_U8 roaming;
4892 // WIFI_CAPABILITY_XXX (self)
4893 tANI_U32 capabilities;
4894 // null terminated SSID
4895 tANI_U8 ssid[33];
4896 // bssid
4897 tSirMacAddr bssid;
4898 // country string advertised by AP
4899 tANI_U8 apCountryStr[WNI_CFG_COUNTRY_CODE_LEN];
4900 // country string for this association
4901 tANI_U8 countryStr[WNI_CFG_COUNTRY_CODE_LEN];
4902} tSirWifiInterfaceInfo, *tpSirWifiInterfaceInfo;
4903
4904/* channel information */
4905typedef PACKED_PRE struct PACKED_POST
4906{
4907 // channel width (20, 40, 80, 80+80, 160)
4908 tSirWifiChannelWidth width;
4909 // primary 20 MHz channel
4910 tSirWifiChannel centerFreq;
4911 // center frequency (MHz) first segment
4912 tSirWifiChannel centerFreq0;
4913 // center frequency (MHz) second segment
4914 tSirWifiChannel centerFreq1;
4915} tSirWifiChannelInfo, *tpSirWifiChannelInfo;
4916
4917/* wifi rate info */
4918typedef PACKED_PRE struct PACKED_POST
4919{
4920 // 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved
4921 tANI_U32 preamble :3;
4922 // 0:1x1, 1:2x2, 3:3x3, 4:4x4
4923 tANI_U32 nss :2;
4924 // 0:20MHz, 1:40Mhz, 2:80Mhz, 3:160Mhz
4925 tANI_U32 bw :3;
4926 // OFDM/CCK rate code would be as per ieee std in the units of 0.5mbps
4927 // HT/VHT it would be mcs index
4928 tANI_U32 rateMcsIdx :8;
4929 // reserved
4930 tANI_U32 reserved :16;
4931 // units of 100 Kbps
4932 tANI_U32 bitrate;
4933} tSirWifiRate, *tpSirWifiRate;
4934
4935/* channel statistics */
4936typedef PACKED_PRE struct PACKED_POST
4937{
4938 // channel
4939 tSirWifiChannelInfo channel;
4940 // msecs the radio is awake (32 bits number accruing over time)
4941 tANI_U32 onTime;
4942 // msecs the CCA register is busy (32 bits number accruing over time)
4943 tANI_U32 ccaBusyTime;
4944} tSirWifiChannelStats, *tpSirWifiChannelStats;
4945
4946/* radio statistics */
4947typedef PACKED_PRE struct PACKED_POST
4948{
4949 // wifi radio (if multiple radio supported)
4950 tSirWifiRadio radio;
4951 // msecs the radio is awake (32 bits number accruing over time)
4952 tANI_U32 onTime;
4953 /* msecs the radio is transmitting
4954 * (32 bits number accruing over time)
4955 */
4956 tANI_U32 txTime;
4957 /* msecs the radio is in active receive
4958 *(32 bits number accruing over time)
4959 */
4960 tANI_U32 rxTime;
4961 /* msecs the radio is awake due to all scan
4962 * (32 bits number accruing over time)
4963 */
4964 tANI_U32 onTimeScan;
4965 /* msecs the radio is awake due to NAN
4966 * (32 bits number accruing over time)
4967 */
4968 tANI_U32 onTimeNbd;
Dino Mycle2c198072014-06-10 10:15:52 +05304969 /* msecs the radio is awake due to EXTScan
Sunil Duttc69bccb2014-05-26 21:30:20 +05304970 * (32 bits number accruing over time)
4971 */
Dino Mycle2c198072014-06-10 10:15:52 +05304972 tANI_U32 onTimeEXTScan;
Sunil Duttc69bccb2014-05-26 21:30:20 +05304973 /* msecs the radio is awake due to roam?scan
4974 * (32 bits number accruing over time)
4975 */
4976 tANI_U32 onTimeRoamScan;
4977 /* msecs the radio is awake due to PNO scan
4978 * (32 bits number accruing over time)
4979 */
4980 tANI_U32 onTimePnoScan;
4981 /* msecs the radio is awake due to HS2.0 scans and GAS exchange
4982 * (32 bits number accruing over time)
4983 */
4984 tANI_U32 onTimeHs20;
4985 // number of channels
4986 tANI_U32 numChannels;
4987 // channel statistics tSirWifiChannelStats
4988 tSirWifiChannelStats channels[1];
4989} tSirWifiRadioStat, *tpSirWifiRadioStat;
4990
4991/* per rate statistics */
4992typedef PACKED_PRE struct PACKED_POST
4993{
4994 // rate information
4995 tSirWifiRate rate;
4996 // number of successfully transmitted data pkts (ACK rcvd)
4997 tANI_U32 txMpdu;
4998 // number of received data pkts
4999 tANI_U32 rxMpdu;
5000 // number of data packet losses (no ACK)
5001 tANI_U32 mpduLost;
5002 // total number of data pkt retries *
5003 tANI_U32 retries;
5004 // number of short data pkt retries
5005 tANI_U32 retriesShort;
5006 // number of long data pkt retries
5007 tANI_U32 retriesLong;
5008} tSirWifiRateStat, *tpSirWifiRateStat;
5009
5010/* access categories */
5011typedef PACKED_PRE enum PACKED_POST
5012{
5013 WIFI_AC_VO = 0,
5014 WIFI_AC_VI = 1,
5015 WIFI_AC_BE = 2,
5016 WIFI_AC_BK = 3,
5017 WIFI_AC_MAX = 4,
5018} tSirWifiTrafficAc;
5019
5020/* wifi peer type */
5021typedef PACKED_PRE enum PACKED_POST
5022{
5023 WIFI_PEER_STA,
5024 WIFI_PEER_AP,
5025 WIFI_PEER_P2P_GO,
5026 WIFI_PEER_P2P_CLIENT,
5027 WIFI_PEER_NAN,
5028 WIFI_PEER_TDLS,
5029 WIFI_PEER_INVALID,
5030} tSirWifiPeerType;
5031
5032/* per peer statistics */
5033typedef PACKED_PRE struct PACKED_POST
5034{
5035 // peer type (AP, TDLS, GO etc.)
5036 tSirWifiPeerType type;
5037 // mac address
5038 tSirMacAddr peerMacAddress;
5039 // peer WIFI_CAPABILITY_XXX
5040 tANI_U32 capabilities;
5041 // number of rates
5042 tANI_U32 numRate;
5043 // per rate statistics, number of entries = num_rate
5044 tSirWifiRateStat rateStats[1];
5045} tSirWifiPeerInfo, *tpSirWifiPeerInfo;
5046
5047/* per access category statistics */
5048typedef PACKED_PRE struct PACKED_POST
5049{
5050 /*tSirWifiTrafficAc*/
5051 // access category (VI, VO, BE, BK)
5052 tANI_U8 ac;
5053 // number of successfully transmitted unicast data pkts (ACK rcvd)
5054 tANI_U32 txMpdu;
5055 // number of received unicast mpdus
5056 tANI_U32 rxMpdu;
5057 // number of succesfully transmitted multicast data packets
5058 // STA case: implies ACK received from AP for the unicast
5059 // packet in which mcast pkt was sent
5060 tANI_U32 txMcast;
5061 // number of received multicast data packets
5062 tANI_U32 rxMcast;
5063 // number of received unicast a-mpdus
5064 tANI_U32 rxAmpdu;
5065 // number of transmitted unicast a-mpdus
5066 tANI_U32 txAmpdu;
5067 // number of data pkt losses (no ACK)
5068 tANI_U32 mpduLost;
5069 // total number of data pkt retries
5070 tANI_U32 retries;
5071 // number of short data pkt retries
5072 tANI_U32 retriesShort;
5073 // number of long data pkt retries
5074 tANI_U32 retriesLong;
5075 // data pkt min contention time (usecs)
5076 tANI_U32 contentionTimeMin;
5077 // data pkt max contention time (usecs)
5078 tANI_U32 contentionTimeMax;
5079 // data pkt avg contention time (usecs)
5080 tANI_U32 contentionTimeAvg;
5081 // num of data pkts used for contention statistics
5082 tANI_U32 contentionNumSamples;
5083} tSirWifiWmmAcStat, *tpSirWifiWmmAcStat;
5084
5085/* Interface statistics - corresponding to 2nd most
5086 * LSB in wifi statistics bitmap for getting statistics
5087 */
5088typedef PACKED_PRE struct PACKED_POST
5089{
5090 // current state of the interface
5091 tSirWifiInterfaceInfo info;
5092 // access point beacon received count from connected AP
5093 tANI_U32 beaconRx;
5094 // access point mgmt frames received count from
5095 // connected AP (including Beacon)
5096 tANI_U32 mgmtRx;
5097 // action frames received count
5098 tANI_U32 mgmtActionRx;
5099 // action frames transmit count
5100 tANI_U32 mgmtActionTx;
5101 // access Point Beacon and Management frames RSSI (averaged)
Dino Mycle3b9536d2014-07-09 22:05:24 +05305102 tANI_S32 rssiMgmt;
Sunil Duttc69bccb2014-05-26 21:30:20 +05305103 // access Point Data Frames RSSI (averaged) from connected AP
Dino Mycle3b9536d2014-07-09 22:05:24 +05305104 tANI_S32 rssiData;
Sunil Duttc69bccb2014-05-26 21:30:20 +05305105 // access Point ACK RSSI (averaged) from connected AP
Dino Mycle3b9536d2014-07-09 22:05:24 +05305106 tANI_S32 rssiAck;
Sunil Duttc69bccb2014-05-26 21:30:20 +05305107 // per ac data packet statistics
5108 tSirWifiWmmAcStat AccessclassStats[WIFI_AC_MAX];
5109} tSirWifiIfaceStat, *tpSirWifiIfaceStat;
5110
5111/* Peer statistics - corresponding to 3rd most LSB in
5112 * wifi statistics bitmap for getting statistics
5113 */
5114typedef PACKED_PRE struct PACKED_POST
5115{
5116 // number of peers
5117 tANI_U32 numPeers;
5118 // per peer statistics
5119 tSirWifiPeerInfo peerInfo[1];
5120} tSirWifiPeerStat, *tpSirWifiPeerStat;
5121
5122/* wifi statistics bitmap for getting statistics */
5123#define WMI_LINK_STATS_RADIO 0x00000001
5124#define WMI_LINK_STATS_IFACE 0x00000002
5125#define WMI_LINK_STATS_ALL_PEER 0x00000004
5126#define WMI_LINK_STATS_PER_PEER 0x00000008
5127
5128/* wifi statistics bitmap for clearing statistics */
5129// all radio statistics
5130#define WIFI_STATS_RADIO 0x00000001
5131// cca_busy_time (within radio statistics)
5132#define WIFI_STATS_RADIO_CCA 0x00000002
5133// all channel statistics (within radio statistics)
5134#define WIFI_STATS_RADIO_CHANNELS 0x00000004
5135// all scan statistics (within radio statistics)
5136#define WIFI_STATS_RADIO_SCAN 0x00000008
5137// all interface statistics
5138#define WIFI_STATS_IFACE 0x00000010
5139// all tx rate statistics (within interface statistics)
5140#define WIFI_STATS_IFACE_TXRATE 0x00000020
5141// all ac statistics (within interface statistics)
5142#define WIFI_STATS_IFACE_AC 0x00000040
5143// all contention (min, max, avg) statistics (within ac statistics)
5144#define WIFI_STATS_IFACE_CONTENTION 0x00000080
5145
5146typedef PACKED_PRE struct PACKED_POST
5147{
5148 tANI_U32 paramId;
5149 tANI_U8 ifaceId;
5150 tANI_U32 respId;
5151 tANI_U32 moreResultToFollow;
5152 tANI_U8 result[1];
5153} tSirLLStatsResults, *tpSirLLStatsResults;
5154
5155#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
5156
Sachin Ahuja3d47fcd2015-08-28 16:02:06 +05305157
5158
Dino Mycle2c198072014-06-10 10:15:52 +05305159#ifdef WLAN_FEATURE_EXTSCAN
5160
5161typedef enum
5162{
5163 WIFI_BAND_UNSPECIFIED,
5164 WIFI_BAND_BG = 1, // 2.4 GHz
5165 WIFI_BAND_A = 2, // 5 GHz without DFS
5166 WIFI_BAND_ABG = 3, // 2.4 GHz + 5 GHz; no DFS
5167 WIFI_BAND_A_DFS_ONLY = 4, // 5 GHz DFS only
5168 // 5 is reserved
5169 WIFI_BAND_A_WITH_DFS = 6, // 5 GHz with DFS
5170 WIFI_BAND_ABG_WITH_DFS = 7, // 2.4 GHz + 5 GHz with DFS
5171
5172 /* Keep it last */
5173 WIFI_BAND_MAX
5174} tWifiBand;
5175
5176/* wifi scan related events */
5177typedef enum
5178{
5179 WIFI_SCAN_BUFFER_FULL,
5180 WIFI_SCAN_COMPLETE,
5181} tWifiScanEventType;
5182
5183typedef struct
5184{
5185 tSirMacAddr bssid; // AP BSSID
5186 tANI_S32 low; // low threshold
5187 tANI_S32 high; // high threshold
Dino Mycle2c198072014-06-10 10:15:52 +05305188} tSirAPThresholdParam, *tpSirAPThresholdParam;
5189
5190typedef struct
5191{
5192 tANI_U32 requestId;
5193 tANI_U8 sessionId;
5194} tSirGetEXTScanCapabilitiesReqParams, *tpSirGetEXTScanCapabilitiesReqParams;
5195
5196typedef struct
5197{
5198 tANI_U32 requestId;
5199 tANI_U32 status;
5200
5201 tANI_U32 scanCacheSize;
5202 tANI_U32 scanBuckets;
5203 tANI_U32 maxApPerScan;
5204 tANI_U32 maxRssiSampleSize;
5205 tANI_U32 maxScanReportingThreshold;
5206
5207 tANI_U32 maxHotlistAPs;
Padma, Santhosh Kumara1aa4a32015-06-19 19:00:46 +05305208 tANI_U32 maxHotlistSSIDs;
Dino Mycle2c198072014-06-10 10:15:52 +05305209
5210 tANI_U32 maxBsidHistoryEntries;
Padma, Santhosh Kumara1aa4a32015-06-19 19:00:46 +05305211
Dino Mycle2c198072014-06-10 10:15:52 +05305212} tSirEXTScanCapabilitiesEvent, *tpSirEXTScanCapabilitiesEvent;
5213
5214/* WLAN_HAL_EXT_SCAN_RESULT_IND */
5215typedef struct
5216{
5217 tANI_U32 requestId;
5218 tANI_U8 sessionId;
5219
5220 /*
5221 * 1 return cached results and flush it
5222 * 0 return cached results and do not flush
5223 */
5224 tANI_BOOLEAN flush;
5225} tSirEXTScanGetCachedResultsReqParams, *tpSirEXTScanGetCachedResultsReqParams;
5226
5227typedef PACKED_PRE struct PACKED_POST
5228{
5229 tANI_U32 requestId;
5230 tANI_U32 status;
5231} tSirEXTScanGetCachedResultsRspParams, *tpSirEXTScanGetCachedResultsRspParams;
5232
5233typedef PACKED_PRE struct PACKED_POST
5234{
5235 tANI_U64 ts; // time of discovery
5236 tANI_U8 ssid[SIR_MAC_MAX_SSID_LENGTH + 1]; // null terminated SSID
5237 tSirMacAddr bssid; // BSSID
5238 tANI_U32 channel; // channel frequency in MHz
5239 tANI_S32 rssi; // RSSI in dBm
5240 tANI_U32 rtt; // RTT in nanoseconds
5241 tANI_U32 rtt_sd; // standard deviation in rtt
5242 tANI_U16 beaconPeriod; // period advertised in the beacon
5243 tANI_U16 capability; // capabilities advertised in the beacon
5244} tSirWifiScanResult, *tpSirWifiScanResult;
5245
Padma, Santhosh Kumare1b8a942015-08-25 12:44:24 +05305246/**
5247 * struct tExtscanCachedScanResult - extscan cached scan result
5248 * @scan_id: a unique identifier for the scan unit
5249 * @flags: a bitmask with additional information about scan
5250 * @num_results: number of bssids retrieved by the scan
5251 * @ap: wifi scan bssid results info
5252 */
5253
5254typedef PACKED_PRE struct PACKED_POST
5255{
5256 tANI_U16 scan_id;
5257 tANI_U8 flags;
5258 tANI_U8 num_results;
5259
5260 tSirWifiScanResult ap[32];
5261} tExtscanCachedScanResult, *tpExtscanCachedScanResult;
5262
Dino Mycle2c198072014-06-10 10:15:52 +05305263/* WLAN_HAL_BSSID_HOTLIST_RESULT_IND */
5264
5265typedef PACKED_PRE struct PACKED_POST
5266{
5267 tANI_U32 requestId;
Padma, Santhosh Kumar37f4fd12015-08-19 14:37:37 +05305268 tANI_BOOLEAN bss_found;
5269 tANI_U32 numHotlistBss; // numbers of APs
5270
5271 /*
5272 * 0 for last fragment
5273 * 1 still more fragment(s) coming
5274 */
5275 tANI_BOOLEAN moreData;
5276 tSirWifiScanResult bssHotlist[1];
5277} tSirEXTScanHotlistMatch, *tpSirEXTScanHotlistMatch;
5278
5279
5280typedef PACKED_PRE struct PACKED_POST
5281{
5282 tANI_U32 requestId;
Padma, Santhosh Kumare1b8a942015-08-25 12:44:24 +05305283 /*
5284 * It gives number of scan ids
5285 */
5286 tANI_U32 scanResultSize;
Dino Mycle2c198072014-06-10 10:15:52 +05305287
5288 /*
5289 * 0 for last fragment
5290 * 1 still more fragment(s) coming
5291 */
5292 tANI_BOOLEAN moreData;
Padma, Santhosh Kumare1b8a942015-08-25 12:44:24 +05305293 tANI_U8 result[1];
Dino Mycle2c198072014-06-10 10:15:52 +05305294} tSirWifiScanResultEvent, *tpSirWifiScanResultEvent;
5295
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +05305296/* WLAN_HAL_SSID_HOTLIST_RESULT_IND */
5297
5298typedef PACKED_PRE struct PACKED_POST
5299{
5300 tANI_U32 requestId;
5301 tANI_BOOLEAN ssid_found;
5302 tANI_U32 numHotlistSsid; // numbers of SSIDs
5303
5304 /*
5305 * 0 for last fragment
5306 * 1 still more fragment(s) coming
5307 */
5308 tANI_BOOLEAN moreData;
5309 tSirWifiScanResult ssidHotlist[1];
5310} tSirEXTScanSsidHotlistMatch, *tpSirEXTScanSsidHotlistMatch;
5311
Dino Mycle2c198072014-06-10 10:15:52 +05305312typedef PACKED_PRE struct PACKED_POST
5313{
5314 tANI_U8 elemId; // Element Identifier
5315 tANI_U8 ieLength; // length of IE data
5316 tANI_U8 *IEs; // IEs
5317} tSirInformationElement, *tpSirInformationElement;
5318
5319/* Reported when each probe response is received, if reportEvents
5320* enabled in tSirWifiScanCmdReqParams */
5321typedef struct
5322{
5323 tANI_U32 requestId;
5324
5325 /*
5326 * 0 for last fragment
5327 * 1 still more fragment(s) coming
5328 */
5329 tANI_BOOLEAN moreData;
5330 tSirWifiScanResult ap; // only 1 AP info for now
5331 tANI_U32 ieLength;
5332 tSirInformationElement *ie;
5333} tSirWifiFullScanResultEvent, *tpSirWifiFullScanResultEvent;
5334
5335
5336typedef struct
5337{
5338 tANI_U32 channel; // frequency
5339 tANI_U32 dwellTimeMs; // dwell time hint
5340 tANI_U8 passive; // 0 => active,
5341 // 1 => passive scan; ignored for DFS
5342 tANI_U8 chnlClass;
5343} tSirWifiScanChannelSpec, *tpSirWifiScanChannelSpec;
5344
5345typedef struct
5346{
5347 tANI_U8 bucket; // bucket index, 0 based
5348 tWifiBand band; // when UNSPECIFIED, use channel list
5349
5350 /*
5351 * desired period, in millisecond; if this is too
5352 * low, the firmware should choose to generate results as fast as
5353 * it can instead of failing the command byte
5354 */
5355 tANI_U32 period;
5356
5357 /*
5358 * 0 => normal reporting (reporting rssi history
5359 * only, when rssi history buffer is % full)
5360 * 1 => same as 0 + report a scan completion event after scanning
5361 * this bucket
5362 * 2 => same as 1 + forward scan results (beacons/probe responses + IEs)
5363 * in real time to HAL
5364 */
5365 tANI_U8 reportEvents;
5366
Padma, Santhosh Kumar7b9190d2015-08-17 17:45:29 +05305367 tANI_U32 max_period;
5368 tANI_U32 exponent;
5369 tANI_U32 step_count;
5370
Dino Mycle2c198072014-06-10 10:15:52 +05305371 tANI_U8 numChannels;
5372
5373 /*
5374 * channels to scan; these may include DFS channels
5375 */
5376 tSirWifiScanChannelSpec channels[WLAN_EXTSCAN_MAX_CHANNELS];
5377} tSirWifiScanBucketSpec, *tpSirWifiScanBucketSpec;
5378
5379typedef struct
5380{
5381 tANI_U32 requestId;
5382 tANI_U8 sessionId;
5383 tANI_U32 basePeriod; // base timer period
5384 tANI_U32 maxAPperScan;
5385
5386 /* in %, when buffer is this much full, wake up host */
Padma, Santhosh Kumar7b9190d2015-08-17 17:45:29 +05305387 tANI_U32 reportThresholdPercent;
5388 tANI_U32 reportThresholdNumScans;
Dino Mycle2c198072014-06-10 10:15:52 +05305389
Padma, Santhosh Kumar7b9190d2015-08-17 17:45:29 +05305390 tANI_U32 homeAwayTime; //in units of milliseconds
5391
5392 tANI_U8 numBuckets;
Dino Mycle2c198072014-06-10 10:15:52 +05305393 tSirWifiScanBucketSpec buckets[WLAN_EXTSCAN_MAX_BUCKETS];
5394} tSirEXTScanStartReqParams, *tpSirEXTScanStartReqParams;
5395
5396typedef PACKED_PRE struct PACKED_POST
5397{
5398 tANI_U32 requestId;
5399 tANI_U32 status;
5400} tSirEXTScanStartRspParams, *tpSirEXTScanStartRspParams;
5401
5402typedef struct
5403{
5404 tANI_U32 requestId;
5405 tANI_U8 sessionId;
5406} tSirEXTScanStopReqParams, *tpSirEXTScanStopReqParams;
5407
5408typedef PACKED_PRE struct PACKED_POST
5409{
5410 tANI_U32 requestId;
5411 tANI_U32 status;
5412} tSirEXTScanStopRspParams, *tpSirEXTScanStopRspParams;
5413
5414typedef struct
5415{
5416 tANI_U32 requestId;
5417 tANI_U8 sessionId; // session Id mapped to vdev_id
Padma, Santhosh Kumar37f4fd12015-08-19 14:37:37 +05305418 tANI_U32 lostBssidSampleSize;
5419 tANI_U32 numBssid; // number of hotlist APs
Dino Mycle2c198072014-06-10 10:15:52 +05305420 tSirAPThresholdParam ap[WLAN_EXTSCAN_MAX_HOTLIST_APS]; // hotlist APs
5421} tSirEXTScanSetBssidHotListReqParams, *tpSirEXTScanSetBssidHotListReqParams;
5422
5423typedef PACKED_PRE struct PACKED_POST
5424{
5425 tANI_U32 requestId;
5426 tANI_U32 status;
5427} tSirEXTScanSetBssidHotListRspParams, *tpSirEXTScanSetBssidHotListRspParams;
5428
5429typedef struct
5430{
5431 tANI_U32 requestId;
5432 tANI_U8 sessionId;
5433} tSirEXTScanResetBssidHotlistReqParams, *tpSirEXTScanResetBssidHotlistReqParams;
5434
5435typedef PACKED_PRE struct PACKED_POST
5436{
5437 tANI_U32 requestId;
5438 tANI_U32 status;
5439} tSirEXTScanResetBssidHotlistRspParams, *tpSirEXTScanResetBssidHotlistRspParams;
5440
Padma, Santhosh Kumar9acee012015-08-21 19:58:01 +05305441typedef struct
5442{
5443 tANI_U32 requestId;
5444 tANI_U8 sessionId;
5445} tSirEXTScanResetSsidHotlistReqParams, *tpSirEXTScanResetSsidHotlistReqParams;
5446
5447typedef PACKED_PRE struct PACKED_POST
5448{
5449 tANI_U32 requestId;
5450 tANI_U32 status;
5451} tSirEXTScanResetSsidHotlistRspParams, *tpSirEXTScanResetSsidHotlistRspParams;
5452
5453
5454/**
5455 * struct sir_ssid_hotlist_param - param for SSID Hotlist
5456 * @ssid: SSID which is being hotlisted
5457 * @band: Band in which the given SSID should be scanned
5458 * @rssi_low: Low bound on RSSI
5459 * @rssi_high: High bound on RSSI
5460 */
5461typedef struct
5462{
5463 tSirMacSSid ssid;
5464 tANI_U8 band;
5465 tANI_S32 rssi_low;
5466 tANI_S32 rssi_high;
5467}tSirSsidThresholdParam, *tpSirSsidThresholdParam;
5468
5469typedef struct
5470{
5471 tANI_U32 request_id;
5472 tANI_U8 session_id;
5473 tANI_U32 lost_ssid_sample_size;
5474 tANI_U32 ssid_count;
5475 tSirSsidThresholdParam ssid[WLAN_EXTSCAN_MAX_HOTLIST_SSIDS];
5476}tSirEXTScanSetSsidHotListReqParams, *tpSirEXTScanSetSsidHotListReqParams;
5477
5478typedef PACKED_PRE struct PACKED_POST
5479{
5480 tANI_U32 requestId;
5481 tANI_U32 status;
5482} tSirEXTScanSetSsidHotListRspParams, *tpSirEXTScanSetSsidHotListRspParams;
5483
Dino Mycle2c198072014-06-10 10:15:52 +05305484/*---------------------------------------------------------------------------
5485 * * WLAN_HAL_EXTSCAN_RESULT_AVAILABLE_IND
5486 * *-------------------------------------------------------------------------*/
5487typedef PACKED_PRE struct PACKED_POST
5488{
5489 tANI_U32 requestId;
5490 tANI_U32 numResultsAvailable;
5491} tSirEXTScanResultsAvailableIndParams,
5492 *tpSirEXTScanResultsAvailableIndParams;
5493
5494typedef PACKED_PRE struct PACKED_POST
5495{
5496 tANI_U8 scanEventType;
5497 tANI_U32 status;
5498} tSirEXTScanOnScanEventIndParams,
5499 *tpSirEXTScanOnScanEventIndParams;
5500
5501/*---------------------------------------------------------------------------
5502 * * WLAN_HAL_EXTSCAN_PROGRESS_IND
5503 * *-------------------------------------------------------------------------*/
5504
5505typedef PACKED_PRE enum PACKED_POST
5506{
5507 WLAN_HAL_EXTSCAN_BUFFER_FULL,
5508 WLAN_HAL_EXTSCAN_COMPLETE,
5509}tSirEXTScanProgressEventType;
5510
5511typedef PACKED_PRE struct PACKED_POST
5512{
5513 tANI_U32 requestId;
5514 tANI_U32 status;
5515 tSirEXTScanProgressEventType extScanEventType;
5516}tSirEXTScanProgressIndParams,
5517 *tpSirEXTScanProgressIndParams;
5518
Padma, Santhosh Kumarc1f7f052015-08-26 12:29:01 +05305519typedef PACKED_PRE struct PACKED_POST
5520{
5521 tANI_BOOLEAN pause; // 1 -> pause, 0 -> unpause
5522 tANI_U32 reserved; //reserved for future use
5523}tSirHighPriorityDataInfoInd, *tpSirHighPriorityDataInfoInd;
Dino Mycle2c198072014-06-10 10:15:52 +05305524
5525#endif /* WLAN_FEATURE_EXTSCAN */
5526
Siddharth Bhal6af5d4e2014-09-29 21:11:16 +05305527typedef struct
5528{
5529 tANI_U16 messageType;
5530 tANI_U16 length;
5531 tSirMacAddr macAddr;
5532} tSirSpoofMacAddrReq, *tpSirSpoofMacAddrReq;
5533
Srinivas Dasarib8fdd422014-11-27 10:44:20 +05305534typedef struct
5535{
5536 //BIT order is most likely little endian.
5537 //This structure is for netowkr-order byte array (or big-endian byte order)
5538#ifndef WLAN_PAL_BIG_ENDIAN_BIT
5539 tANI_U8 protVer :2;
5540 tANI_U8 type :2;
5541 tANI_U8 subType :4;
5542
5543 tANI_U8 toDS :1;
5544 tANI_U8 fromDS :1;
5545 tANI_U8 moreFrag :1;
5546 tANI_U8 retry :1;
5547 tANI_U8 powerMgmt :1;
5548 tANI_U8 moreData :1;
5549 tANI_U8 wep :1;
5550 tANI_U8 order :1;
5551
5552#else
5553
5554 tANI_U8 subType :4;
5555 tANI_U8 type :2;
5556 tANI_U8 protVer :2;
5557
5558 tANI_U8 order :1;
5559 tANI_U8 wep :1;
5560 tANI_U8 moreData :1;
5561 tANI_U8 powerMgmt :1;
5562 tANI_U8 retry :1;
5563 tANI_U8 moreFrag :1;
5564 tANI_U8 fromDS :1;
5565 tANI_U8 toDS :1;
5566
5567#endif
5568
5569} tSirFC;
5570
5571typedef struct
5572{
5573 /* Frame control field */
5574 tSirFC frameCtrl;
5575 /* Duration ID */
5576 tANI_U16 usDurationId;
5577 /* Address 1 field */
5578 tSirMacAddr vA1;
5579 /* Address 2 field */
5580 tSirMacAddr vA2;
5581 /* Address 3 field */
5582 tSirMacAddr vA3;
5583 /* Sequence control field */
5584 tANI_U16 sSeqCtrl;
5585 /* Optional A4 address */
5586 tSirMacAddr optvA4;
5587 /* Optional QOS control field */
5588 tANI_U16 usQosCtrl;
5589}tSir80211Header;
5590// Definition for Encryption Keys
5591//typedef struct sSirKeys
5592typedef struct
5593{
5594 tANI_U8 keyId;
5595 tANI_U8 unicast; // 0 for multicast
5596 tAniKeyDirection keyDirection;
5597 tANI_U8 keyRsc[WLAN_MAX_KEY_RSC_LEN]; // Usage is unknown
5598 tANI_U8 paeRole; // =1 for authenticator,
5599 // =0 for supplicant
5600 tANI_U16 keyLength;
5601 tANI_U8 key[SIR_MAC_MAX_KEY_LENGTH];
5602} tMacKeys, *tpMacKeys;
5603
5604typedef enum
5605{
5606 eMAC_WEP_STATIC,
5607 eMAC_WEP_DYNAMIC,
5608} tMacWepType;
5609
5610/*
5611 * This is used by PE to configure the key information on a given station.
5612 * When the secType is WEP40 or WEP104, the defWEPIdx is used to locate
5613 * a preconfigured key from a BSS the station assoicated with; otherwise
5614 * a new key descriptor is created based on the key field.
5615 */
5616//typedef struct
5617typedef struct
5618{
5619 tANI_U16 staIdx;
5620 tAniEdType encType; // Encryption/Decryption type
5621 tMacWepType wepType; // valid only for WEP
5622 tANI_U8 defWEPIdx; // Default WEP key, valid only for static WEP, must between 0 and 3
5623 tMacKeys key[SIR_MAC_MAX_NUM_OF_DEFAULT_KEYS]; // valid only for non-static WEP encyrptions
5624 tANI_U8 singleTidRc; // 1=Single TID based Replay Count, 0=Per TID based RC
5625 tANI_U8 sessionId; // PE session id for PE<->HAL interface
5626} tSirSetStaKeyParams, *tpSirSetStaKeyParams;
5627
5628//typedef struct
5629typedef struct
5630{
5631 tSirSetStaKeyParams keyParams;
5632 tANI_U8 pn[6];
5633}tSirencConfigParams;
5634
5635typedef struct
5636{
5637 tANI_U16 length;
5638 tANI_U8 data[WLAN_DISA_MAX_PAYLOAD_SIZE];
5639}tSirpayload;
5640
5641typedef struct
5642{
5643 tSir80211Header macHeader;
5644 tSirencConfigParams encParams;
5645 tSirpayload data;
5646}tSirpkt80211;
5647
5648typedef struct
5649{
5650 tANI_U32 status;
5651 tSirpayload encryptedPayload;
5652} tSetEncryptedDataRspParams, *tpSetEncryptedDataRspParams;
5653
5654typedef struct
5655{
5656 tANI_U16 mesgType;
5657 tANI_U16 mesgLen;
5658 tSetEncryptedDataRspParams encryptedDataRsp;
5659} tSirEncryptedDataRspParams, *tpSirEncryptedDataRspParams;
c_hpothua3d45d52015-01-05 14:11:17 +05305660
5661typedef enum eSirAbortScanStatus
5662{
5663 eSIR_ABORT_ACTIVE_SCAN_LIST_EMPTY,
5664 eSIR_ABORT_ACTIVE_SCAN_LIST_NOT_EMPTY,
5665 eSIR_ABORT_SCAN_FAILURE
5666}tSirAbortScanStatus;
5667
Masti, Narayanraddi4b359dd2015-02-03 15:49:29 +05305668/* Max number of rates allowed in Supported Rates IE */
5669#define MAX_NUM_SUPPORTED_RATES (8)
5670
Girish Gowlia95daca2015-02-04 20:31:31 +05305671typedef struct sSirSmeUpdateMaxRateParams
5672{
5673 tANI_U32 maxRateFlag;
5674 tANI_U8 smeSessionId;
5675}tSirSmeUpdateMaxRateParams, *tpSirSmeUpdateMaxRateParams;
5676
Srinivas Dasari32a79262015-02-19 13:04:49 +05305677typedef struct
5678{
5679 tANI_U32 event_data_len;
5680 tANI_U8 event_data[1];
5681} tSirNanEvent, *tpSirNanEvent;
Ganesh Kondabattinib18b3292015-03-16 16:59:26 +05305682
5683typedef struct
5684{
5685 tANI_U32 txCompleteStatus;
5686 tANI_U32 txBdToken;
5687}tSirTxBdStatus, *tpSirTxBdStatus;
Pradeep Reddy POTTETI31505892015-04-16 16:47:54 +05305688
5689/* enable or disable 20_40 BSS Coexistence IE in TDLS frames*/
5690typedef struct
5691{
5692 // Common for all types are requests
5693 tANI_U16 msgType; // message type is same as the request type
5694 tANI_U16 msgLen; // length of the entire request
5695 tANI_U8 SetTdls2040BSSCoex; //enabled or disabled
5696} tAniSetTdls2040BSSCoex, *tpAniSetTdls2040BSSCoex;
Masti, Narayanraddi1fb32a92015-06-29 13:14:06 +05305697
Sushant Kaushik8e644982015-09-23 12:18:54 +05305698/**
5699 * struct sir_wifi_start_log - Structure to store the params sent to start/
5700 * stop logging
5701 * @ringId: Attribute which indicates the type of logging like per packet
5702 * statistics, connectivity etc.
5703 * @verboseLevel: Verbose level which can be 0,1,2,3
5704 * @flag: Flag field for future use
5705 */
5706typedef struct sir_wifi_start_log {
5707 tANI_U32 ringId;
5708 tANI_U32 verboseLevel;
5709 tANI_U32 flag;
5710}tAniWifiStartLog, *tpAniWifiStartLog;
5711
Masti, Narayanraddi1fb32a92015-06-29 13:14:06 +05305712typedef struct
5713{
5714 tANI_U16 mesgType;
5715 tANI_U16 mesgLen;
5716 tSirMacAddr bssid;
5717}tSirDelAllTdlsPeers, *ptSirDelAllTdlsPeers;
Hanumantha Reddy Pothula91cdd7f2015-09-03 21:25:16 +05305718
5719typedef void (*tSirMonModeCb)(tANI_U32 *magic, struct completion *cmpVar);
5720typedef struct
5721{
5722 tANI_U32 *magic;
5723 struct completion *cmpVar;
5724 void *data;
5725 tSirMonModeCb callback;
5726}tSirMonModeReq, *ptSirMonModeReq;
c_manjeecfd1efb2015-09-25 19:32:34 +05305727
5728/**
5729 * struct tAniFwrDumpRsp - firmware dump response details.
5730 *
5731 * This structure is used to store the firmware dump
5732 * response from the firmware.
5733 */
5734typedef struct
5735{
5736 tANI_U32 dump_status;
5737}tAniFwrDumpRsp, *tpAniFwrDumpRsp;
5738
5739typedef void (*FWMemDumpReqCb)(void *fwMemDumpReqContext, tAniFwrDumpRsp *dump_rsp);
5740
5741/**
5742 * struct tAniFwrDumpReq - firmware memory dump request details.
5743.*.@FWMemDumpReqCb - Associated Callback
5744 *.@fwMemDumpReqContext - Callback context
5745 * @reserved - reserved field 1.
5746 *
5747 * This structure carries information about the firmware
5748 * memory dump request.
5749 */
5750typedef struct
5751{
5752 FWMemDumpReqCb fwMemDumpReqCallback;
5753 void * fwMemDumpReqContext;
5754 tANI_U32 reserved1;
5755}tAniFwrDumpReq, *tpAniFwrDumpReq;
5756
Jeff Johnson295189b2012-06-20 16:38:30 -07005757#endif /* __SIR_API_H */