blob: af352a324f303a6e2615173859c0b7d106ac7849 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Kiet Lam842dad02014-02-18 18:44:02 -08002 * Copyright (c) 2012-2014 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
Jeff Johnson295189b2012-06-20 16:38:30 -070027
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080028/**=========================================================================
Jeff Johnson295189b2012-06-20 16:38:30 -070029
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080030 EDIT HISTORY FOR FILE
31
32
33 This section contains comments describing changes made to the module.
34 Notice that changes are listed in reverse chronological order.
35
36
37 $Header:$ $DateTime: $ $Author: $
38
39
40 when who what, where, why
Jeff Johnson295189b2012-06-20 16:38:30 -070041 -------- --- --------------------------------------------------------
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -080042 07/27/09 kanand Created module.
Jeff Johnson295189b2012-06-20 16:38:30 -070043
44 ==========================================================================*/
45
46/*--------------------------------------------------------------------------
47 Include Files
48 ------------------------------------------------------------------------*/
49
50
51#include <linux/firmware.h>
52#include <linux/string.h>
53#include <wlan_hdd_includes.h>
54#include <wlan_hdd_main.h>
55#include <wlan_hdd_assoc.h>
56#include <wlan_hdd_cfg.h>
57#include <linux/string.h>
58#include <vos_types.h>
59#include <csrApi.h>
60#include <pmcApi.h>
61#include <wlan_hdd_misc.h>
62
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -080063#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
Madan Mohan Koyyalamudid5026072012-11-30 14:56:21 -080064static void cbNotifySetRoamPrefer5GHz(hdd_context_t *pHddCtx, unsigned long NotifyId)
65{
66 sme_UpdateRoamPrefer5GHz((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->nRoamPrefer5GHz);
67}
Jeff Johnson295189b2012-06-20 16:38:30 -070068
Madan Mohan Koyyalamudi62b55b02012-12-03 16:45:39 -080069static void cbNotifySetImmediateRoamRssiDiff(hdd_context_t *pHddCtx, unsigned long NotifyId)
70{
Srinivas Girigowdade697412013-02-14 16:31:48 -080071 sme_UpdateImmediateRoamRssiDiff((tHalHandle)(pHddCtx->hHal),
Madan Mohan Koyyalamudi62b55b02012-12-03 16:45:39 -080072 pHddCtx->cfg_ini->nImmediateRoamRssiDiff);
73}
Gopichand Nakkala98a98af2012-12-31 14:38:47 -080074
Srinivas Girigowdade697412013-02-14 16:31:48 -080075static void cbNotifySetRoamRssiDiff(hdd_context_t *pHddCtx, unsigned long NotifyId)
76{
77 sme_UpdateRoamRssiDiff((tHalHandle)(pHddCtx->hHal),
78 pHddCtx->cfg_ini->RoamRssiDiff);
79}
80
Gopichand Nakkala98a98af2012-12-31 14:38:47 -080081static void cbNotifySetFastTransitionEnabled(hdd_context_t *pHddCtx, unsigned long NotifyId)
82{
83 sme_UpdateFastTransitionEnabled((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->isFastTransitionEnabled);
84}
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -070085
86static void cbNotifySetRoamIntraBand(hdd_context_t *pHddCtx, unsigned long NotifyId)
87{
88 sme_setRoamIntraBand((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->nRoamIntraBand);
89}
Srinivas Girigowda100eb322013-03-15 16:48:20 -070090
Srinivas Girigowdaad34ca92013-10-22 10:54:29 -070091static void cbNotifySetWESMode(hdd_context_t *pHddCtx, unsigned long NotifyId)
92{
93 // at the point this routine is called, the value in the cfg_ini table has already been updated
94 sme_UpdateWESMode((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->isWESModeEnabled);
95}
96
Varun Reddy Yeturu920df212013-05-22 08:07:23 -070097static void cbNotifySetRoamScanNProbes(hdd_context_t *pHddCtx, unsigned long NotifyId)
98{
99 sme_UpdateRoamScanNProbes((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->nProbes);
100}
101
102static void cbNotifySetRoamScanHomeAwayTime(hdd_context_t *pHddCtx, unsigned long NotifyId)
103{
Srinivas Girigowda6cf0b822013-06-27 14:00:20 -0700104 sme_UpdateRoamScanHomeAwayTime((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->nRoamScanHomeAwayTime, eANI_BOOLEAN_TRUE);
Varun Reddy Yeturu920df212013-05-22 08:07:23 -0700105}
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -0700106#endif
107
108#ifdef FEATURE_WLAN_OKC
109static void cbNotifySetOkcFeatureEnabled(hdd_context_t *pHddCtx, unsigned long NotifyId)
110{
111 // at the point this routine is called, the value in the cfg_ini table has already been updated
112}
Madan Mohan Koyyalamudi62b55b02012-12-03 16:45:39 -0800113#endif
114
Gopichand Nakkala98a98af2012-12-31 14:38:47 -0800115#ifdef FEATURE_WLAN_LFR
116static void NotifyIsFastRoamIniFeatureEnabled(hdd_context_t *pHddCtx, unsigned long NotifyId)
117{
118 // at the point this routine is called, the value in the cfg_ini table has already been updated
119 sme_UpdateIsFastRoamIniFeatureEnabled((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->isFastRoamIniFeatureEnabled );
120}
Sameer Thalappil4ae66ec2013-11-05 14:17:35 -0800121
122static void NotifyIsMAWCIniFeatureEnabled(hdd_context_t *pHddCtx, unsigned long NotifyId)
123{
124 /* at the point this routine is called, the value in the cfg_ini table has already been updated */
125 sme_UpdateIsMAWCIniFeatureEnabled((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->MAWCEnabled );
126}
Gopichand Nakkala98a98af2012-12-31 14:38:47 -0800127#endif
128
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800129#ifdef FEATURE_WLAN_ESE
130static void cbNotifySetEseFeatureEnabled(hdd_context_t *pHddCtx, unsigned long NotifyId)
Gopichand Nakkala98a98af2012-12-31 14:38:47 -0800131{
132 // at the point this routine is called, the value in the cfg_ini table has already been updated
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -0800133 sme_UpdateIsEseFeatureEnabled((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->isEseIniFeatureEnabled );
Gopichand Nakkala98a98af2012-12-31 14:38:47 -0800134}
135#endif
136
137static void cbNotifySetFwRssiMonitoring(hdd_context_t *pHddCtx, unsigned long NotifyId)
138{
139 // at the point this routine is called, the value in the cfg_ini table has already been updated
140 sme_UpdateConfigFwRssiMonitoring((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->fEnableFwRssiMonitoring );
141}
142
Srinivas Girigowdade697412013-02-14 16:31:48 -0800143#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
144static void cbNotifySetNeighborLookupRssiThreshold(hdd_context_t *pHddCtx, unsigned long NotifyId)
145{
146 // at the point this routine is called, the value in the cfg_ini table has already been updated
147 sme_setNeighborLookupRssiThreshold((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->nNeighborLookupRssiThreshold );
148}
149
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -0700150static void cbNotifySetNeighborScanPeriod(hdd_context_t *pHddCtx, unsigned long NotifyId)
151{
152 // at the point this routine is called, the value in the cfg_ini table has already been updated
153 sme_setNeighborScanPeriod((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->nNeighborScanPeriod );
154}
155
Srinivas Girigowdade697412013-02-14 16:31:48 -0800156static void cbNotifySetNeighborResultsRefreshPeriod(hdd_context_t *pHddCtx, unsigned long NotifyId)
157{
158 // at the point this routine is called, the value in the cfg_ini table has already been updated
159 sme_setNeighborScanRefreshPeriod((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->nNeighborResultsRefreshPeriod );
160}
161
162static void cbNotifySetEmptyScanRefreshPeriod(hdd_context_t *pHddCtx, unsigned long NotifyId)
163{
164 // at the point this routine is called, the value in the cfg_ini table has already been updated
165 sme_UpdateEmptyScanRefreshPeriod((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->nEmptyScanRefreshPeriod);
166}
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -0700167
168static void cbNotifySetNeighborScanMinChanTime(hdd_context_t *pHddCtx, unsigned long NotifyId)
169{
170 // at the point this routine is called, the value in the cfg_ini table has already been updated
171 sme_setNeighborScanMinChanTime((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->nNeighborScanMinChanTime);
172}
173
174static void cbNotifySetNeighborScanMaxChanTime(hdd_context_t *pHddCtx, unsigned long NotifyId)
175{
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -0700176 sme_setNeighborScanMaxChanTime((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->nNeighborScanMaxChanTime);
177}
Srinivas Girigowdade697412013-02-14 16:31:48 -0800178#endif
179
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -0700180static void cbNotifySetEnableSSR(hdd_context_t *pHddCtx, unsigned long NotifyId)
181{
182 sme_UpdateEnableSSR((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->enableSSR);
183}
184
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700185#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
186static void cbNotifyUpdateRoamScanOffloadEnabled(hdd_context_t *pHddCtx, unsigned long NotifyId)
187{
188 sme_UpdateRoamScanOffloadEnabled((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->isRoamOffloadScanEnabled);
Srinivas Girigowda830bbd02013-06-13 19:44:16 -0700189 if (0 == pHddCtx->cfg_ini->isRoamOffloadScanEnabled)
190 {
191 pHddCtx->cfg_ini->bFastRoamInConIniFeatureEnabled = 0;
192 sme_UpdateEnableFastRoamInConcurrency((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->bFastRoamInConIniFeatureEnabled );
193 }
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700194}
Srinivas Girigowda830bbd02013-06-13 19:44:16 -0700195
196static void cbNotifySetEnableFastRoamInConcurrency(hdd_context_t *pHddCtx, unsigned long NotifyId)
197{
198 sme_UpdateEnableFastRoamInConcurrency((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->bFastRoamInConIniFeatureEnabled );
199}
200
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -0700201#endif
202
Jeff Johnson295189b2012-06-20 16:38:30 -0700203REG_TABLE_ENTRY g_registry_table[] =
204{
205 REG_VARIABLE( CFG_RTS_THRESHOLD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800206 hdd_config_t, RTSThreshold,
207 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
208 CFG_RTS_THRESHOLD_DEFAULT,
209 CFG_RTS_THRESHOLD_MIN,
210 CFG_RTS_THRESHOLD_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -0700211
212 REG_VARIABLE( CFG_FRAG_THRESHOLD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800213 hdd_config_t, FragmentationThreshold,
214 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
215 CFG_FRAG_THRESHOLD_DEFAULT,
216 CFG_FRAG_THRESHOLD_MIN,
217 CFG_FRAG_THRESHOLD_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -0700218
219 REG_VARIABLE( CFG_CALIBRATION_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800220 hdd_config_t, Calibration,
221 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
222 CFG_CALIBRATION_DEFAULT,
223 CFG_CALIBRATION_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700224 CFG_CALIBRATION_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800225
Jeff Johnson295189b2012-06-20 16:38:30 -0700226 REG_VARIABLE( CFG_CALIBRATION_PERIOD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800227 hdd_config_t, CalibrationPeriod,
228 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
229 CFG_CALIBRATION_PERIOD_DEFAULT,
230 CFG_CALIBRATION_PERIOD_MIN,
231 CFG_CALIBRATION_PERIOD_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -0700232
233 REG_VARIABLE( CFG_OPERATING_CHANNEL_NAME, WLAN_PARAM_Integer,
234 hdd_config_t, OperatingChannel,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800235 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
236 CFG_OPERATING_CHANNEL_DEFAULT,
237 CFG_OPERATING_CHANNEL_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700238 CFG_OPERATING_CHANNEL_MAX ),
239
240 REG_VARIABLE( CFG_SHORT_SLOT_TIME_ENABLED_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800241 hdd_config_t, ShortSlotTimeEnabled,
242 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
243 CFG_SHORT_SLOT_TIME_ENABLED_DEFAULT,
244 CFG_SHORT_SLOT_TIME_ENABLED_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700245 CFG_SHORT_SLOT_TIME_ENABLED_MAX ),
246
247 REG_VARIABLE( CFG_11D_SUPPORT_ENABLED_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800248 hdd_config_t, Is11dSupportEnabled,
249 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
250 CFG_11D_SUPPORT_ENABLED_DEFAULT,
251 CFG_11D_SUPPORT_ENABLED_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700252 CFG_11D_SUPPORT_ENABLED_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800253
Madan Mohan Koyyalamudi8db1c942013-01-10 15:24:29 -0800254 REG_VARIABLE( CFG_11H_SUPPORT_ENABLED_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800255 hdd_config_t, Is11hSupportEnabled,
256 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
257 CFG_11H_SUPPORT_ENABLED_DEFAULT,
258 CFG_11H_SUPPORT_ENABLED_MIN,
Madan Mohan Koyyalamudi8db1c942013-01-10 15:24:29 -0800259 CFG_11H_SUPPORT_ENABLED_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -0700260
261 REG_VARIABLE( CFG_ENFORCE_11D_CHANNELS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800262 hdd_config_t, fEnforce11dChannels,
263 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
264 CFG_ENFORCE_11D_CHANNELS_DEFAULT,
265 CFG_ENFORCE_11D_CHANNELS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700266 CFG_ENFORCE_11D_CHANNELS_MAX ),
267
268 REG_VARIABLE( CFG_COUNTRY_CODE_PRIORITY_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800269 hdd_config_t, fSupplicantCountryCodeHasPriority,
270 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
271 CFG_COUNTRY_CODE_PRIORITY_DEFAULT,
272 CFG_COUNTRY_CODE_PRIORITY_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700273 CFG_COUNTRY_CODE_PRIORITY_MAX),
274
275 REG_VARIABLE( CFG_ENFORCE_COUNTRY_CODE_MATCH_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800276 hdd_config_t, fEnforceCountryCodeMatch,
277 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
278 CFG_ENFORCE_COUNTRY_CODE_MATCH_DEFAULT,
279 CFG_ENFORCE_COUNTRY_CODE_MATCH_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700280 CFG_ENFORCE_COUNTRY_CODE_MATCH_MAX ),
281
282 REG_VARIABLE( CFG_ENFORCE_DEFAULT_DOMAIN_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800283 hdd_config_t, fEnforceDefaultDomain,
284 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
285 CFG_ENFORCE_DEFAULT_DOMAIN_DEFAULT,
286 CFG_ENFORCE_DEFAULT_DOMAIN_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700287 CFG_ENFORCE_DEFAULT_DOMAIN_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800288
Jeff Johnson295189b2012-06-20 16:38:30 -0700289 REG_VARIABLE( CFG_GENERIC_ID1_NAME, WLAN_PARAM_Integer,
290 hdd_config_t, Cfg1Id,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800291 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
292 CFG_GENERIC_ID1_DEFAULT,
293 CFG_GENERIC_ID1_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700294 CFG_GENERIC_ID1_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800295
Jeff Johnson295189b2012-06-20 16:38:30 -0700296 REG_VARIABLE( CFG_GENERIC_ID2_NAME, WLAN_PARAM_Integer,
297 hdd_config_t, Cfg2Id,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800298 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
299 CFG_GENERIC_ID2_DEFAULT,
300 CFG_GENERIC_ID2_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700301 CFG_GENERIC_ID2_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800302
Jeff Johnson295189b2012-06-20 16:38:30 -0700303 REG_VARIABLE( CFG_GENERIC_ID3_NAME, WLAN_PARAM_Integer,
304 hdd_config_t, Cfg3Id,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800305 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
306 CFG_GENERIC_ID3_DEFAULT,
307 CFG_GENERIC_ID3_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700308 CFG_GENERIC_ID3_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800309
Jeff Johnson295189b2012-06-20 16:38:30 -0700310 REG_VARIABLE( CFG_GENERIC_ID4_NAME, WLAN_PARAM_Integer,
311 hdd_config_t, Cfg4Id,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800312 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
313 CFG_GENERIC_ID4_DEFAULT,
314 CFG_GENERIC_ID4_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700315 CFG_GENERIC_ID4_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800316
Jeff Johnson295189b2012-06-20 16:38:30 -0700317 REG_VARIABLE( CFG_GENERIC_ID5_NAME, WLAN_PARAM_Integer,
318 hdd_config_t, Cfg5Id,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800319 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
320 CFG_GENERIC_ID5_DEFAULT,
321 CFG_GENERIC_ID5_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700322 CFG_GENERIC_ID5_MAX ),
323
324 REG_VARIABLE( CFG_GENERIC_VALUE1_NAME, WLAN_PARAM_Integer,
325 hdd_config_t, Cfg1Value,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800326 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
327 CFG_GENERIC_VALUE1_DEFAULT,
328 CFG_GENERIC_VALUE1_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700329 CFG_GENERIC_VALUE1_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800330
Jeff Johnson295189b2012-06-20 16:38:30 -0700331 REG_VARIABLE( CFG_GENERIC_VALUE2_NAME, WLAN_PARAM_Integer,
332 hdd_config_t, Cfg2Value,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800333 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
334 CFG_GENERIC_VALUE2_DEFAULT,
335 CFG_GENERIC_VALUE2_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700336 CFG_GENERIC_VALUE2_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800337
Jeff Johnson295189b2012-06-20 16:38:30 -0700338 REG_VARIABLE( CFG_GENERIC_VALUE3_NAME, WLAN_PARAM_Integer,
339 hdd_config_t, Cfg3Value,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800340 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
341 CFG_GENERIC_VALUE3_DEFAULT,
342 CFG_GENERIC_VALUE3_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700343 CFG_GENERIC_VALUE3_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800344
Jeff Johnson295189b2012-06-20 16:38:30 -0700345 REG_VARIABLE( CFG_GENERIC_VALUE4_NAME, WLAN_PARAM_Integer,
346 hdd_config_t, Cfg4Value,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800347 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
348 CFG_GENERIC_VALUE4_DEFAULT,
349 CFG_GENERIC_VALUE4_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700350 CFG_GENERIC_VALUE4_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800351
Jeff Johnson295189b2012-06-20 16:38:30 -0700352 REG_VARIABLE( CFG_GENERIC_VALUE5_NAME, WLAN_PARAM_Integer,
353 hdd_config_t, Cfg5Value,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800354 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
355 CFG_GENERIC_VALUE5_DEFAULT,
356 CFG_GENERIC_VALUE5_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700357 CFG_GENERIC_VALUE5_MAX ),
358
359 REG_VARIABLE( CFG_HEARTBEAT_THRESH_24_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800360 hdd_config_t, HeartbeatThresh24,
361 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
362 CFG_HEARTBEAT_THRESH_24_DEFAULT,
363 CFG_HEARTBEAT_THRESH_24_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700364 CFG_HEARTBEAT_THRESH_24_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800365
Jeff Johnson295189b2012-06-20 16:38:30 -0700366 REG_VARIABLE_STRING( CFG_POWER_USAGE_NAME, WLAN_PARAM_String,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800367 hdd_config_t, PowerUsageControl,
Jeff Johnson295189b2012-06-20 16:38:30 -0700368 VAR_FLAGS_OPTIONAL,
369 (void *)CFG_POWER_USAGE_DEFAULT ),
370
371 REG_VARIABLE( CFG_ENABLE_SUSPEND_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800372 hdd_config_t, nEnableSuspend,
373 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
374 CFG_ENABLE_SUSPEND_DEFAULT,
375 CFG_ENABLE_SUSPEND_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700376 CFG_ENABLE_SUSPEND_MAX ),
377
378 REG_VARIABLE( CFG_ENABLE_ENABLE_DRIVER_STOP_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800379 hdd_config_t, nEnableDriverStop,
380 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
381 CFG_ENABLE_ENABLE_DRIVER_STOP_DEFAULT,
382 CFG_ENABLE_ENABLE_DRIVER_STOP_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700383 CFG_ENABLE_ENABLE_DRIVER_STOP_MAX ),
384
385 REG_VARIABLE( CFG_ENABLE_IMPS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800386 hdd_config_t, fIsImpsEnabled,
387 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
388 CFG_ENABLE_IMPS_DEFAULT,
389 CFG_ENABLE_IMPS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700390 CFG_ENABLE_IMPS_MAX ),
391
Pradeep Kumar Goudagunta22d8e4d2014-07-17 15:03:51 +0530392 REG_VARIABLE( CFG_SSR_PANIC_ON_FAILURE_NAME, WLAN_PARAM_Integer,
393 hdd_config_t, fIsSsrPanicOnFailure,
394 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
395 CFG_SSR_PANIC_ON_FAILURE_DEFAULT,
396 CFG_SSR_PANIC_ON_FAILURE_MIN,
397 CFG_SSR_PANIC_ON_FAILURE_MAX),
398
Jeff Johnson295189b2012-06-20 16:38:30 -0700399 REG_VARIABLE( CFG_ENABLE_LOGP_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800400 hdd_config_t, fIsLogpEnabled,
401 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
402 CFG_ENABLE_LOGP_DEFAULT,
403 CFG_ENABLE_LOGP_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700404 CFG_ENABLE_LOGP_MAX ),
405
406 REG_VARIABLE( CFG_IMPS_MINIMUM_SLEEP_TIME_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800407 hdd_config_t, nImpsMinSleepTime,
408 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
409 CFG_IMPS_MINIMUM_SLEEP_TIME_DEFAULT,
410 CFG_IMPS_MINIMUM_SLEEP_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700411 CFG_IMPS_MINIMUM_SLEEP_TIME_MAX ),
412
413 REG_VARIABLE( CFG_IMPS_MAXIMUM_SLEEP_TIME_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800414 hdd_config_t, nImpsMaxSleepTime,
415 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
416 CFG_IMPS_MAXIMUM_SLEEP_TIME_DEFAULT,
417 CFG_IMPS_MAXIMUM_SLEEP_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700418 CFG_IMPS_MAXIMUM_SLEEP_TIME_MAX ),
419
Agarwal Ashishbd3e10b2014-11-24 19:19:46 +0530420 REG_VARIABLE( CFG_DEFER_SCAN_TIME_INTERVAL, WLAN_PARAM_Integer,
421 hdd_config_t, nDeferScanTimeInterval,
422 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
423 CFG_DEFER_SCAN_TIME_INTERVAL_DEFAULT,
424 CFG_DEFER_SCAN_TIME_INTERVAL_MIN,
425 CFG_DEFER_SCAN_TIME_INTERVAL_MAX ),
426
Jeff Johnson295189b2012-06-20 16:38:30 -0700427 REG_VARIABLE( CFG_IMPS_MODERATE_SLEEP_TIME_NAME, WLAN_PARAM_Integer,
428 hdd_config_t, nImpsModSleepTime,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800429 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
430 CFG_IMPS_MODERATE_SLEEP_TIME_DEFAULT,
431 CFG_IMPS_MODERATE_SLEEP_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700432 CFG_IMPS_MODERATE_SLEEP_TIME_MAX ),
433
434 REG_VARIABLE( CFG_ENABLE_BMPS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800435 hdd_config_t, fIsBmpsEnabled,
436 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
437 CFG_ENABLE_BMPS_DEFAULT,
438 CFG_ENABLE_BMPS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700439 CFG_ENABLE_BMPS_MAX ),
440
441 REG_VARIABLE( CFG_BMPS_MINIMUM_LI_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800442 hdd_config_t, nBmpsMinListenInterval,
443 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
444 CFG_BMPS_MINIMUM_LI_DEFAULT,
445 CFG_BMPS_MINIMUM_LI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700446 CFG_BMPS_MINIMUM_LI_MAX ),
447
448 REG_VARIABLE( CFG_BMPS_MAXIMUM_LI_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800449 hdd_config_t, nBmpsMaxListenInterval,
450 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
451 CFG_BMPS_MAXIMUM_LI_DEFAULT,
452 CFG_BMPS_MAXIMUM_LI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700453 CFG_BMPS_MAXIMUM_LI_MAX ),
454
455 REG_VARIABLE( CFG_BMPS_MODERATE_LI_NAME, WLAN_PARAM_Integer,
456 hdd_config_t, nBmpsModListenInterval,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800457 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
458 CFG_BMPS_MODERATE_LI_DEFAULT,
459 CFG_BMPS_MODERATE_LI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700460 CFG_BMPS_MODERATE_LI_MAX ),
461
462 REG_VARIABLE( CFG_ENABLE_AUTO_BMPS_TIMER_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800463 hdd_config_t, fIsAutoBmpsTimerEnabled,
464 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
465 CFG_ENABLE_AUTO_BMPS_TIMER_DEFAULT,
466 CFG_ENABLE_AUTO_BMPS_TIMER_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700467 CFG_ENABLE_AUTO_BMPS_TIMER_MAX ),
468
469 REG_VARIABLE( CFG_AUTO_BMPS_TIMER_VALUE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800470 hdd_config_t, nAutoBmpsTimerValue,
471 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
472 CFG_AUTO_BMPS_TIMER_VALUE_DEFAULT,
473 CFG_AUTO_BMPS_TIMER_VALUE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700474 CFG_AUTO_BMPS_TIMER_VALUE_MAX ),
475
476 REG_VARIABLE( CFG_DOT11_MODE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800477 hdd_config_t, dot11Mode,
478 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
479 CFG_DOT11_MODE_DEFAULT,
480 CFG_DOT11_MODE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700481 CFG_DOT11_MODE_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800482
Jeff Johnson295189b2012-06-20 16:38:30 -0700483 REG_VARIABLE( CFG_CHANNEL_BONDING_MODE_24GHZ_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800484 hdd_config_t, nChannelBondingMode24GHz,
485 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
486 CFG_CHANNEL_BONDING_MODE_DEFAULT,
487 CFG_CHANNEL_BONDING_MODE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700488 CFG_CHANNEL_BONDING_MODE_MAX),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800489
Jeff Johnson295189b2012-06-20 16:38:30 -0700490 REG_VARIABLE( CFG_CHANNEL_BONDING_MODE_5GHZ_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800491 hdd_config_t, nChannelBondingMode5GHz,
492 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
493 CFG_CHANNEL_BONDING_MODE_DEFAULT,
494 CFG_CHANNEL_BONDING_MODE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700495 CFG_CHANNEL_BONDING_MODE_MAX),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800496
497 REG_VARIABLE( CFG_MAX_RX_AMPDU_FACTOR_NAME, WLAN_PARAM_Integer,
498 hdd_config_t, MaxRxAmpduFactor,
499 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK ,
500 CFG_MAX_RX_AMPDU_FACTOR_DEFAULT,
501 CFG_MAX_RX_AMPDU_FACTOR_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700502 CFG_MAX_RX_AMPDU_FACTOR_MAX),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800503
Jeff Johnson295189b2012-06-20 16:38:30 -0700504 REG_VARIABLE( CFG_FIXED_RATE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800505 hdd_config_t, TxRate,
506 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
507 CFG_FIXED_RATE_DEFAULT,
508 CFG_FIXED_RATE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700509 CFG_FIXED_RATE_MAX ),
510
511 REG_VARIABLE( CFG_SHORT_GI_20MHZ_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800512 hdd_config_t, ShortGI20MhzEnable,
513 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
514 CFG_SHORT_GI_20MHZ_DEFAULT,
515 CFG_SHORT_GI_20MHZ_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700516 CFG_SHORT_GI_20MHZ_MAX ),
517
518 REG_VARIABLE( CFG_BLOCK_ACK_AUTO_SETUP_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800519 hdd_config_t, BlockAckAutoSetup,
520 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
521 CFG_BLOCK_ACK_AUTO_SETUP_DEFAULT,
522 CFG_BLOCK_ACK_AUTO_SETUP_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700523 CFG_BLOCK_ACK_AUTO_SETUP_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800524
Jeff Johnson295189b2012-06-20 16:38:30 -0700525 REG_VARIABLE( CFG_SCAN_RESULT_AGE_COUNT_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800526 hdd_config_t, ScanResultAgeCount,
527 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
528 CFG_SCAN_RESULT_AGE_COUNT_DEFAULT,
529 CFG_SCAN_RESULT_AGE_COUNT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700530 CFG_SCAN_RESULT_AGE_COUNT_MAX ),
531
532 REG_VARIABLE( CFG_SCAN_RESULT_AGE_TIME_NCNPS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800533 hdd_config_t, nScanAgeTimeNCNPS,
534 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
535 CFG_SCAN_RESULT_AGE_TIME_NCNPS_DEFAULT,
536 CFG_SCAN_RESULT_AGE_TIME_NCNPS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700537 CFG_SCAN_RESULT_AGE_TIME_NCNPS_MAX ),
538
539 REG_VARIABLE( CFG_SCAN_RESULT_AGE_TIME_NCPS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800540 hdd_config_t, nScanAgeTimeNCPS,
541 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
542 CFG_SCAN_RESULT_AGE_TIME_NCPS_DEFAULT,
543 CFG_SCAN_RESULT_AGE_TIME_NCPS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700544 CFG_SCAN_RESULT_AGE_TIME_NCPS_MAX ),
545
546 REG_VARIABLE( CFG_SCAN_RESULT_AGE_TIME_CNPS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800547 hdd_config_t, nScanAgeTimeCNPS,
548 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
549 CFG_SCAN_RESULT_AGE_TIME_CNPS_DEFAULT,
550 CFG_SCAN_RESULT_AGE_TIME_CNPS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700551 CFG_SCAN_RESULT_AGE_TIME_CNPS_MAX ),
552
553 REG_VARIABLE( CFG_SCAN_RESULT_AGE_TIME_CPS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800554 hdd_config_t, nScanAgeTimeCPS,
555 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
556 CFG_SCAN_RESULT_AGE_TIME_CPS_DEFAULT,
557 CFG_SCAN_RESULT_AGE_TIME_CPS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700558 CFG_SCAN_RESULT_AGE_TIME_CPS_MAX ),
559
560 REG_VARIABLE( CFG_RSSI_CATEGORY_GAP_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800561 hdd_config_t, nRssiCatGap,
562 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
563 CFG_RSSI_CATEGORY_GAP_DEFAULT,
564 CFG_RSSI_CATEGORY_GAP_MIN,
565 CFG_RSSI_CATEGORY_GAP_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -0700566
Jeff Johnson295189b2012-06-20 16:38:30 -0700567 REG_VARIABLE( CFG_SHORT_PREAMBLE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800568 hdd_config_t, fIsShortPreamble,
569 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
570 CFG_SHORT_PREAMBLE_DEFAULT,
571 CFG_SHORT_PREAMBLE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700572 CFG_SHORT_PREAMBLE_MAX ),
573
574 REG_VARIABLE( CFG_IBSS_AUTO_BSSID_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800575 hdd_config_t, fIsAutoIbssBssid,
576 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
577 CFG_IBSS_AUTO_BSSID_DEFAULT,
578 CFG_IBSS_AUTO_BSSID_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700579 CFG_IBSS_AUTO_BSSID_MAX ),
580
581 REG_VARIABLE_STRING( CFG_IBSS_BSSID_NAME, WLAN_PARAM_MacAddr,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800582 hdd_config_t, IbssBssid,
Jeff Johnson295189b2012-06-20 16:38:30 -0700583 VAR_FLAGS_OPTIONAL,
584 (void *)CFG_IBSS_BSSID_DEFAULT ),
585
586 REG_VARIABLE_STRING( CFG_INTF0_MAC_ADDR_NAME, WLAN_PARAM_MacAddr,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800587 hdd_config_t, intfMacAddr[0],
Jeff Johnson295189b2012-06-20 16:38:30 -0700588 VAR_FLAGS_OPTIONAL,
589 (void *)CFG_INTF0_MAC_ADDR_DEFAULT ),
590
591 REG_VARIABLE_STRING( CFG_INTF1_MAC_ADDR_NAME, WLAN_PARAM_MacAddr,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800592 hdd_config_t, intfMacAddr[1],
Jeff Johnson295189b2012-06-20 16:38:30 -0700593 VAR_FLAGS_OPTIONAL,
594 (void *)CFG_INTF1_MAC_ADDR_DEFAULT ),
595
596 REG_VARIABLE_STRING( CFG_INTF2_MAC_ADDR_NAME, WLAN_PARAM_MacAddr,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800597 hdd_config_t, intfMacAddr[2],
Jeff Johnson295189b2012-06-20 16:38:30 -0700598 VAR_FLAGS_OPTIONAL,
599 (void *)CFG_INTF2_MAC_ADDR_DEFAULT ),
600
601 REG_VARIABLE_STRING( CFG_INTF3_MAC_ADDR_NAME, WLAN_PARAM_MacAddr,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800602 hdd_config_t, intfMacAddr[3],
Jeff Johnson295189b2012-06-20 16:38:30 -0700603 VAR_FLAGS_OPTIONAL,
604 (void *)CFG_INTF3_MAC_ADDR_DEFAULT ),
605
Jeff Johnson295189b2012-06-20 16:38:30 -0700606 REG_VARIABLE( CFG_AP_QOS_UAPSD_MODE_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800607 hdd_config_t, apUapsdEnabled,
608 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
609 CFG_AP_QOS_UAPSD_MODE_DEFAULT,
610 CFG_AP_QOS_UAPSD_MODE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700611 CFG_AP_QOS_UAPSD_MODE_MAX ),
612
613 REG_VARIABLE_STRING( CFG_AP_COUNTRY_CODE, WLAN_PARAM_String,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800614 hdd_config_t, apCntryCode,
Jeff Johnson295189b2012-06-20 16:38:30 -0700615 VAR_FLAGS_OPTIONAL,
616 (void *)CFG_AP_COUNTRY_CODE_DEFAULT ),
617
Madan Mohan Koyyalamudi3ff2a0b2012-10-15 14:33:46 -0700618 REG_VARIABLE( CFG_AP_ENABLE_RANDOM_BSSID_NAME, WLAN_PARAM_Integer,
619 hdd_config_t, apRandomBssidEnabled,
620 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
621 CFG_AP_ENABLE_RANDOM_BSSID_DEFAULT,
622 CFG_AP_ENABLE_RANDOM_BSSID_MIN,
623 CFG_AP_ENABLE_RANDOM_BSSID_MAX ),
624
Jeff Johnson295189b2012-06-20 16:38:30 -0700625 REG_VARIABLE( CFG_AP_ENABLE_PROTECTION_MODE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800626 hdd_config_t, apProtEnabled,
Jeff Johnson295189b2012-06-20 16:38:30 -0700627 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
628 CFG_AP_ENABLE_PROTECTION_MODE_DEFAULT,
629 CFG_AP_ENABLE_PROTECTION_MODE_MIN,
630 CFG_AP_ENABLE_PROTECTION_MODE_MAX ),
631
632 REG_VARIABLE( CFG_AP_PROTECTION_MODE_NAME, WLAN_PARAM_HexInteger,
633 hdd_config_t, apProtection,
634 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
635 CFG_AP_PROTECTION_MODE_DEFAULT,
636 CFG_AP_PROTECTION_MODE_MIN,
637 CFG_AP_PROTECTION_MODE_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800638
Jeff Johnson295189b2012-06-20 16:38:30 -0700639 REG_VARIABLE( CFG_AP_OBSS_PROTECTION_MODE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800640 hdd_config_t, apOBSSProtEnabled,
Jeff Johnson295189b2012-06-20 16:38:30 -0700641 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
642 CFG_AP_OBSS_PROTECTION_MODE_DEFAULT,
643 CFG_AP_OBSS_PROTECTION_MODE_MIN,
644 CFG_AP_OBSS_PROTECTION_MODE_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800645
Jeff Johnson295189b2012-06-20 16:38:30 -0700646 REG_VARIABLE( CFG_AP_STA_SECURITY_SEPERATION_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800647 hdd_config_t, apDisableIntraBssFwd,
Jeff Johnson295189b2012-06-20 16:38:30 -0700648 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
649 CFG_AP_STA_SECURITY_SEPERATION_DEFAULT,
650 CFG_AP_STA_SECURITY_SEPERATION_MIN,
651 CFG_AP_STA_SECURITY_SEPERATION_MAX ),
652
653 REG_VARIABLE( CFG_FRAMES_PROCESSING_TH_MODE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800654 hdd_config_t, MinFramesProcThres,
Jeff Johnson295189b2012-06-20 16:38:30 -0700655 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
656 CFG_FRAMES_PROCESSING_TH_DEFAULT,
657 CFG_FRAMES_PROCESSING_TH_MIN,
658 CFG_FRAMES_PROCESSING_TH_MAX ),
659
660 REG_VARIABLE(CFG_SAP_CHANNEL_SELECT_START_CHANNEL , WLAN_PARAM_Integer,
661 hdd_config_t, apStartChannelNum,
662 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
663 CFG_SAP_CHANNEL_SELECT_START_CHANNEL_DEFAULT,
664 CFG_SAP_CHANNEL_SELECT_START_CHANNEL_MIN,
665 CFG_SAP_CHANNEL_SELECT_START_CHANNEL_MAX ),
666
667 REG_VARIABLE(CFG_SAP_CHANNEL_SELECT_END_CHANNEL , WLAN_PARAM_Integer,
668 hdd_config_t, apEndChannelNum,
669 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
670 CFG_SAP_CHANNEL_SELECT_END_CHANNEL_DEFAULT,
671 CFG_SAP_CHANNEL_SELECT_END_CHANNEL_MIN,
672 CFG_SAP_CHANNEL_SELECT_END_CHANNEL_MAX ),
673
674 REG_VARIABLE(CFG_SAP_CHANNEL_SELECT_OPERATING_BAND , WLAN_PARAM_Integer,
675 hdd_config_t, apOperatingBand,
676 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
677 CFG_SAP_CHANNEL_SELECT_OPERATING_BAND_DEFAULT,
678 CFG_SAP_CHANNEL_SELECT_OPERATING_BAND_MIN,
679 CFG_SAP_CHANNEL_SELECT_OPERATING_BAND_MAX ),
680
681 REG_VARIABLE(CFG_SAP_AUTO_CHANNEL_SELECTION_NAME , WLAN_PARAM_Integer,
682 hdd_config_t, apAutoChannelSelection,
683 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
684 CFG_SAP_AUTO_CHANNEL_SELECTION_DEFAULT,
685 CFG_SAP_AUTO_CHANNEL_SELECTION_MIN,
686 CFG_SAP_AUTO_CHANNEL_SELECTION_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800687
Jeff Johnson295189b2012-06-20 16:38:30 -0700688 REG_VARIABLE(CFG_ENABLE_LTE_COEX , WLAN_PARAM_Integer,
689 hdd_config_t, enableLTECoex,
690 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
691 CFG_ENABLE_LTE_COEX_DEFAULT,
692 CFG_ENABLE_LTE_COEX_MIN,
693 CFG_ENABLE_LTE_COEX_MAX ),
694
695 REG_VARIABLE( CFG_AP_KEEP_ALIVE_PERIOD_NAME, WLAN_PARAM_Integer,
696 hdd_config_t, apKeepAlivePeriod,
697 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
698 CFG_AP_KEEP_ALIVE_PERIOD_DEFAULT,
699 CFG_AP_KEEP_ALIVE_PERIOD_MIN,
700 CFG_AP_KEEP_ALIVE_PERIOD_MAX),
701
702 REG_VARIABLE( CFG_GO_KEEP_ALIVE_PERIOD_NAME, WLAN_PARAM_Integer,
703 hdd_config_t, goKeepAlivePeriod,
704 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
705 CFG_GO_KEEP_ALIVE_PERIOD_DEFAULT,
706 CFG_GO_KEEP_ALIVE_PERIOD_MIN,
707 CFG_GO_KEEP_ALIVE_PERIOD_MAX),
708
Sejal Chauhanbcde8bc2013-03-04 18:06:36 +0530709 REG_VARIABLE( CFG_AP_LINK_MONITOR_PERIOD_NAME, WLAN_PARAM_Integer,
710 hdd_config_t, apLinkMonitorPeriod,
711 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
712 CFG_AP_LINK_MONITOR_PERIOD_DEFAULT,
713 CFG_AP_LINK_MONITOR_PERIOD_MIN,
714 CFG_AP_LINK_MONITOR_PERIOD_MAX),
715
Madan Mohan Koyyalamudi2558bc92013-08-24 16:54:31 +0530716 REG_VARIABLE( CFG_GO_LINK_MONITOR_PERIOD_NAME, WLAN_PARAM_Integer,
717 hdd_config_t, goLinkMonitorPeriod,
718 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
719 CFG_GO_LINK_MONITOR_PERIOD_DEFAULT,
720 CFG_GO_LINK_MONITOR_PERIOD_MIN,
721 CFG_GO_LINK_MONITOR_PERIOD_MAX),
722
Jeff Johnson295189b2012-06-20 16:38:30 -0700723 REG_VARIABLE(CFG_DISABLE_PACKET_FILTER , WLAN_PARAM_Integer,
724 hdd_config_t, disablePacketFilter,
725 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
726 CFG_DISABLE_PACKET_FILTER_DEFAULT,
727 CFG_DISABLE_PACKET_FILTER_MIN,
728 CFG_DISABLE_PACKET_FILTER_MAX ),
729
730 REG_VARIABLE( CFG_BEACON_INTERVAL_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800731 hdd_config_t, nBeaconInterval,
732 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
733 CFG_BEACON_INTERVAL_DEFAULT,
734 CFG_BEACON_INTERVAL_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700735 CFG_BEACON_INTERVAL_MAX ),
736
Jeff Johnson295189b2012-06-20 16:38:30 -0700737 REG_VARIABLE( CFG_ENABLE_IDLE_SCAN_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800738 hdd_config_t, nEnableIdleScan,
739 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
740 CFG_ENABLE_IDLE_SCAN_DEFAULT,
741 CFG_ENABLE_IDLE_SCAN_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700742 CFG_ENABLE_IDLE_SCAN_MAX ),
743
744 REG_VARIABLE( CFG_ROAMING_TIME_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800745 hdd_config_t, nRoamingTime,
746 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
747 CFG_ROAMING_TIME_DEFAULT,
748 CFG_ROAMING_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700749 CFG_ROAMING_TIME_MAX ),
750
751 REG_VARIABLE( CFG_VCC_RSSI_TRIGGER_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800752 hdd_config_t, nVccRssiTrigger,
753 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
754 CFG_VCC_RSSI_TRIGGER_DEFAULT,
755 CFG_VCC_RSSI_TRIGGER_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700756 CFG_VCC_RSSI_TRIGGER_MAX ),
757
758 REG_VARIABLE( CFG_VCC_UL_MAC_LOSS_THRESH_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800759 hdd_config_t, nVccUlMacLossThreshold,
760 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
761 CFG_VCC_UL_MAC_LOSS_THRESH_DEFAULT,
762 CFG_VCC_UL_MAC_LOSS_THRESH_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700763 CFG_VCC_UL_MAC_LOSS_THRESH_MAX ),
764
765 REG_VARIABLE( CFG_PASSIVE_MAX_CHANNEL_TIME_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800766 hdd_config_t, nPassiveMaxChnTime,
767 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
768 CFG_PASSIVE_MAX_CHANNEL_TIME_DEFAULT,
769 CFG_PASSIVE_MAX_CHANNEL_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700770 CFG_PASSIVE_MAX_CHANNEL_TIME_MAX ),
771
772 REG_VARIABLE( CFG_PASSIVE_MIN_CHANNEL_TIME_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800773 hdd_config_t, nPassiveMinChnTime,
774 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
775 CFG_PASSIVE_MIN_CHANNEL_TIME_DEFAULT,
776 CFG_PASSIVE_MIN_CHANNEL_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700777 CFG_PASSIVE_MIN_CHANNEL_TIME_MAX ),
778
779 REG_VARIABLE( CFG_ACTIVE_MAX_CHANNEL_TIME_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800780 hdd_config_t, nActiveMaxChnTime,
781 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
782 CFG_ACTIVE_MAX_CHANNEL_TIME_DEFAULT,
783 CFG_ACTIVE_MAX_CHANNEL_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700784 CFG_ACTIVE_MAX_CHANNEL_TIME_MAX ),
785
786 REG_VARIABLE( CFG_ACTIVE_MIN_CHANNEL_TIME_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800787 hdd_config_t, nActiveMinChnTime,
788 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
789 CFG_ACTIVE_MIN_CHANNEL_TIME_DEFAULT,
790 CFG_ACTIVE_MIN_CHANNEL_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700791 CFG_ACTIVE_MIN_CHANNEL_TIME_MAX ),
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700792
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800793 REG_VARIABLE( CFG_ACTIVE_MAX_CHANNEL_TIME_BTC_NAME, WLAN_PARAM_Integer,
794 hdd_config_t, nActiveMaxChnTimeBtc,
795 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
796 CFG_ACTIVE_MAX_CHANNEL_TIME_BTC_DEFAULT,
797 CFG_ACTIVE_MAX_CHANNEL_TIME_BTC_MIN,
798 CFG_ACTIVE_MAX_CHANNEL_TIME_BTC_MAX ),
799
800 REG_VARIABLE( CFG_ACTIVE_MIN_CHANNEL_TIME_BTC_NAME, WLAN_PARAM_Integer,
801 hdd_config_t, nActiveMinChnTimeBtc,
802 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
803 CFG_ACTIVE_MIN_CHANNEL_TIME_BTC_DEFAULT,
804 CFG_ACTIVE_MIN_CHANNEL_TIME_BTC_MIN,
805 CFG_ACTIVE_MIN_CHANNEL_TIME_BTC_MAX ),
806
Kiran Kumar Lokere1f39e952013-04-03 18:34:30 -0700807 REG_VARIABLE( CFG_RETRY_LIMIT_ZERO_NAME, WLAN_PARAM_Integer,
808 hdd_config_t, retryLimitZero,
809 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
810 CFG_RETRY_LIMIT_ZERO_DEFAULT,
811 CFG_RETRY_LIMIT_ZERO_MIN,
812 CFG_RETRY_LIMIT_ZERO_MAX ),
813
814 REG_VARIABLE( CFG_RETRY_LIMIT_ONE_NAME, WLAN_PARAM_Integer,
815 hdd_config_t, retryLimitOne,
816 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
817 CFG_RETRY_LIMIT_ONE_DEFAULT,
818 CFG_RETRY_LIMIT_ONE_MIN,
819 CFG_RETRY_LIMIT_ONE_MAX ),
820
821 REG_VARIABLE( CFG_RETRY_LIMIT_TWO_NAME, WLAN_PARAM_Integer,
822 hdd_config_t, retryLimitTwo,
823 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
824 CFG_RETRY_LIMIT_TWO_DEFAULT,
825 CFG_RETRY_LIMIT_TWO_MIN,
826 CFG_RETRY_LIMIT_TWO_MAX ),
827
Kiran Kumar Lokere458d7322013-05-29 14:29:43 -0700828 REG_VARIABLE( CFG_DISABLE_AGG_WITH_BTC_NAME, WLAN_PARAM_Integer,
829 hdd_config_t, disableAggWithBtc,
830 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
831 CFG_DISABLE_AGG_WITH_BTC_DEFAULT,
832 CFG_DISABLE_AGG_WITH_BTC_MIN,
833 CFG_DISABLE_AGG_WITH_BTC_MAX ),
834
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700835#ifdef WLAN_AP_STA_CONCURRENCY
836 REG_VARIABLE( CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800837 hdd_config_t, nPassiveMaxChnTimeConc,
838 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
839 CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_DEFAULT,
840 CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_MIN,
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700841 CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_MAX ),
842
843 REG_VARIABLE( CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800844 hdd_config_t, nPassiveMinChnTimeConc,
845 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
846 CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_DEFAULT,
847 CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_MIN,
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700848 CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_MAX ),
849
850 REG_VARIABLE( CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800851 hdd_config_t, nActiveMaxChnTimeConc,
852 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
853 CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_DEFAULT,
854 CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_MIN,
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700855 CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_MAX ),
856
857 REG_VARIABLE( CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800858 hdd_config_t, nActiveMinChnTimeConc,
859 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
860 CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_DEFAULT,
861 CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_MIN,
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700862 CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_MAX ),
863
864 REG_VARIABLE( CFG_REST_TIME_CONC_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800865 hdd_config_t, nRestTimeConc,
866 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
867 CFG_REST_TIME_CONC_DEFAULT,
868 CFG_REST_TIME_CONC_MIN,
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700869 CFG_REST_TIME_CONC_MAX ),
Vinay Malekal05fdc812012-12-17 13:04:30 -0800870
Sudhir Sattayappa Kohallieb97d502013-05-22 23:16:42 -0700871 REG_VARIABLE( CFG_NUM_STA_CHAN_COMBINED_CONC_NAME, WLAN_PARAM_Integer,
872 hdd_config_t, nNumStaChanCombinedConc,
Vinay Malekal05fdc812012-12-17 13:04:30 -0800873 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
Sudhir Sattayappa Kohallieb97d502013-05-22 23:16:42 -0700874 CFG_NUM_STA_CHAN_COMBINED_CONC_DEFAULT,
875 CFG_NUM_STA_CHAN_COMBINED_CONC_MIN,
876 CFG_NUM_STA_CHAN_COMBINED_CONC_MAX ),
877
878 REG_VARIABLE( CFG_NUM_P2P_CHAN_COMBINED_CONC_NAME, WLAN_PARAM_Integer,
879 hdd_config_t, nNumP2PChanCombinedConc,
880 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
881 CFG_NUM_P2P_CHAN_COMBINED_CONC_DEFAULT,
882 CFG_NUM_P2P_CHAN_COMBINED_CONC_MIN,
883 CFG_NUM_P2P_CHAN_COMBINED_CONC_MAX ),
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700884#endif
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800885
Jeff Johnson295189b2012-06-20 16:38:30 -0700886 REG_VARIABLE( CFG_MAX_PS_POLL_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800887 hdd_config_t, nMaxPsPoll,
888 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
889 CFG_MAX_PS_POLL_DEFAULT,
890 CFG_MAX_PS_POLL_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700891 CFG_MAX_PS_POLL_MAX ),
892
893 REG_VARIABLE( CFG_MAX_TX_POWER_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800894 hdd_config_t, nTxPowerCap,
895 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
896 CFG_MAX_TX_POWER_DEFAULT,
897 CFG_MAX_TX_POWER_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700898 CFG_MAX_TX_POWER_MAX ),
899
900 REG_VARIABLE( CFG_LOW_GAIN_OVERRIDE_NAME, WLAN_PARAM_Integer,
901 hdd_config_t, fIsLowGainOverride,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800902 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
903 CFG_LOW_GAIN_OVERRIDE_DEFAULT,
904 CFG_LOW_GAIN_OVERRIDE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700905 CFG_LOW_GAIN_OVERRIDE_MAX ),
906
907 REG_VARIABLE( CFG_RSSI_FILTER_PERIOD_NAME, WLAN_PARAM_Integer,
908 hdd_config_t, nRssiFilterPeriod,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800909 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
910 CFG_RSSI_FILTER_PERIOD_DEFAULT,
911 CFG_RSSI_FILTER_PERIOD_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700912 CFG_RSSI_FILTER_PERIOD_MAX ),
913
914 REG_VARIABLE( CFG_IGNORE_DTIM_NAME, WLAN_PARAM_Integer,
915 hdd_config_t, fIgnoreDtim,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800916 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
917 CFG_IGNORE_DTIM_DEFAULT,
918 CFG_IGNORE_DTIM_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700919 CFG_IGNORE_DTIM_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800920
Yue Mac24062f2013-05-13 17:01:29 -0700921 REG_VARIABLE( CFG_MAX_LI_MODULATED_DTIM_NAME, WLAN_PARAM_Integer,
922 hdd_config_t, fMaxLIModulatedDTIM,
923 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
924 CFG_MAX_LI_MODULATED_DTIM_DEFAULT,
925 CFG_MAX_LI_MODULATED_DTIM_MIN,
926 CFG_MAX_LI_MODULATED_DTIM_MAX ),
927
Jeff Johnson295189b2012-06-20 16:38:30 -0700928 REG_VARIABLE( CFG_RX_ANT_CONFIGURATION_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800929 hdd_config_t, nRxAnt,
930 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
931 CFG_RX_ANT_CONFIGURATION_NAME_DEFAULT,
932 CFG_RX_ANT_CONFIGURATION_NAME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700933 CFG_RX_ANT_CONFIGURATION_NAME_MAX ),
934
935 REG_VARIABLE( CFG_FW_HEART_BEAT_MONITORING_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800936 hdd_config_t, fEnableFwHeartBeatMonitoring,
937 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
938 CFG_FW_HEART_BEAT_MONITORING_DEFAULT,
939 CFG_FW_HEART_BEAT_MONITORING_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700940 CFG_FW_HEART_BEAT_MONITORING_MAX ),
941
942 REG_VARIABLE( CFG_FW_BEACON_FILTERING_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800943 hdd_config_t, fEnableFwBeaconFiltering,
944 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
945 CFG_FW_BEACON_FILTERING_DEFAULT,
946 CFG_FW_BEACON_FILTERING_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700947 CFG_FW_BEACON_FILTERING_MAX ),
948
Gopichand Nakkala98a98af2012-12-31 14:38:47 -0800949 REG_DYNAMIC_VARIABLE( CFG_FW_RSSI_MONITORING_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800950 hdd_config_t, fEnableFwRssiMonitoring,
951 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
952 CFG_FW_RSSI_MONITORING_DEFAULT,
953 CFG_FW_RSSI_MONITORING_MIN,
Gopichand Nakkala98a98af2012-12-31 14:38:47 -0800954 CFG_FW_RSSI_MONITORING_MAX,
955 cbNotifySetFwRssiMonitoring, 0 ),
Jeff Johnson295189b2012-06-20 16:38:30 -0700956
957 REG_VARIABLE( CFG_DATA_INACTIVITY_TIMEOUT_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800958 hdd_config_t, nDataInactivityTimeout,
959 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
960 CFG_DATA_INACTIVITY_TIMEOUT_DEFAULT,
961 CFG_DATA_INACTIVITY_TIMEOUT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700962 CFG_DATA_INACTIVITY_TIMEOUT_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800963
Jeff Johnson295189b2012-06-20 16:38:30 -0700964 REG_VARIABLE( CFG_NTH_BEACON_FILTER_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800965 hdd_config_t, nthBeaconFilter,
966 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
967 CFG_NTH_BEACON_FILTER_DEFAULT,
968 CFG_NTH_BEACON_FILTER_MIN,
969 CFG_NTH_BEACON_FILTER_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -0700970
971 REG_VARIABLE( CFG_QOS_WMM_MODE_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800972 hdd_config_t, WmmMode,
973 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
974 CFG_QOS_WMM_MODE_DEFAULT,
975 CFG_QOS_WMM_MODE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700976 CFG_QOS_WMM_MODE_MAX ),
977
978 REG_VARIABLE( CFG_QOS_WMM_80211E_ENABLED_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800979 hdd_config_t, b80211eIsEnabled,
980 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
981 CFG_QOS_WMM_80211E_ENABLED_DEFAULT,
982 CFG_QOS_WMM_80211E_ENABLED_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700983 CFG_QOS_WMM_80211E_ENABLED_MAX ),
984
985 REG_VARIABLE( CFG_QOS_WMM_UAPSD_MASK_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800986 hdd_config_t, UapsdMask,
987 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
988 CFG_QOS_WMM_UAPSD_MASK_DEFAULT,
989 CFG_QOS_WMM_UAPSD_MASK_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700990 CFG_QOS_WMM_UAPSD_MASK_MAX ),
991
Jeff Johnson295189b2012-06-20 16:38:30 -0700992 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800993 hdd_config_t, InfraUapsdVoSrvIntv,
994 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
995 CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_DEFAULT,
996 CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700997 CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_MAX ),
998
999 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001000 hdd_config_t, InfraUapsdVoSuspIntv,
1001 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1002 CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_DEFAULT,
1003 CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001004 CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_MAX ),
1005
1006 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001007 hdd_config_t, InfraUapsdViSrvIntv,
1008 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1009 CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_DEFAULT,
1010 CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001011 CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_MAX ),
1012
1013 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001014 hdd_config_t, InfraUapsdViSuspIntv,
1015 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1016 CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_DEFAULT,
1017 CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001018 CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_MAX ),
1019
1020 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001021 hdd_config_t, InfraUapsdBeSrvIntv,
1022 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1023 CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_DEFAULT,
1024 CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001025 CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_MAX ),
1026
1027 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001028 hdd_config_t, InfraUapsdBeSuspIntv,
1029 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1030 CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_DEFAULT,
1031 CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001032 CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_MAX ),
1033
1034 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001035 hdd_config_t, InfraUapsdBkSrvIntv,
1036 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1037 CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_DEFAULT,
1038 CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001039 CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_MAX ),
1040
1041 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001042 hdd_config_t, InfraUapsdBkSuspIntv,
1043 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1044 CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_DEFAULT,
1045 CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001046 CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_MAX ),
1047
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001048#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07001049 REG_VARIABLE( CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001050 hdd_config_t, InfraInactivityInterval,
1051 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1052 CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_DEFAULT,
1053 CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001054 CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_MAX),
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001055 REG_DYNAMIC_VARIABLE( CFG_ESE_FEATURE_ENABLED_NAME, WLAN_PARAM_Integer,
1056 hdd_config_t, isEseIniFeatureEnabled,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001057 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001058 CFG_ESE_FEATURE_ENABLED_DEFAULT,
1059 CFG_ESE_FEATURE_ENABLED_MIN,
1060 CFG_ESE_FEATURE_ENABLED_MAX,
1061 cbNotifySetEseFeatureEnabled, 0 ),
1062#endif // FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07001063
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001064#ifdef FEATURE_WLAN_LFR
1065 // flag to turn ON/OFF Legacy Fast Roaming
Gopichand Nakkala98a98af2012-12-31 14:38:47 -08001066 REG_DYNAMIC_VARIABLE( CFG_LFR_FEATURE_ENABLED_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001067 hdd_config_t, isFastRoamIniFeatureEnabled,
1068 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1069 CFG_LFR_FEATURE_ENABLED_DEFAULT,
1070 CFG_LFR_FEATURE_ENABLED_MIN,
Srinivas Girigowda100eb322013-03-15 16:48:20 -07001071 CFG_LFR_FEATURE_ENABLED_MAX,
1072 NotifyIsFastRoamIniFeatureEnabled, 0 ),
Sameer Thalappil4ae66ec2013-11-05 14:17:35 -08001073
1074 /* flag to turn ON/OFF Motion assistance for Legacy Fast Roaming */
1075 REG_DYNAMIC_VARIABLE( CFG_LFR_MAWC_FEATURE_ENABLED_NAME, WLAN_PARAM_Integer,
1076 hdd_config_t, MAWCEnabled,
1077 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1078 CFG_LFR_MAWC_FEATURE_ENABLED_DEFAULT,
1079 CFG_LFR_MAWC_FEATURE_ENABLED_MIN,
1080 CFG_LFR_MAWC_FEATURE_ENABLED_MAX,
1081 NotifyIsMAWCIniFeatureEnabled, 0 ),
1082
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001083#endif // FEATURE_WLAN_LFR
1084
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001085#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
1086 // flag to turn ON/OFF 11r and ESE FastTransition
Gopichand Nakkala98a98af2012-12-31 14:38:47 -08001087 REG_DYNAMIC_VARIABLE( CFG_FAST_TRANSITION_ENABLED_NAME, WLAN_PARAM_Integer,
Jeff Johnson295189b2012-06-20 16:38:30 -07001088 hdd_config_t, isFastTransitionEnabled,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001089 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1090 CFG_FAST_TRANSITION_ENABLED_NAME_DEFAULT,
1091 CFG_FAST_TRANSITION_ENABLED_NAME_MIN,
Gopichand Nakkala98a98af2012-12-31 14:38:47 -08001092 CFG_FAST_TRANSITION_ENABLED_NAME_MAX,
1093 cbNotifySetFastTransitionEnabled, 0 ),
Jeff Johnson43971f52012-07-17 12:26:56 -07001094
Srinivas Girigowdade697412013-02-14 16:31:48 -08001095 /* Variable to specify the delta/difference between the RSSI of current AP
Jeff Johnson43971f52012-07-17 12:26:56 -07001096 * and roamable AP while roaming */
Srinivas Girigowdade697412013-02-14 16:31:48 -08001097 REG_DYNAMIC_VARIABLE( CFG_ROAM_RSSI_DIFF_NAME, WLAN_PARAM_Integer,
1098 hdd_config_t, RoamRssiDiff,
1099 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1100 CFG_ROAM_RSSI_DIFF_DEFAULT,
1101 CFG_ROAM_RSSI_DIFF_MIN,
1102 CFG_ROAM_RSSI_DIFF_MAX,
1103 cbNotifySetRoamRssiDiff, 0),
Madan Mohan Koyyalamudi62b55b02012-12-03 16:45:39 -08001104
1105 REG_DYNAMIC_VARIABLE( CFG_IMMEDIATE_ROAM_RSSI_DIFF_NAME, WLAN_PARAM_Integer,
Srinivas Girigowdade697412013-02-14 16:31:48 -08001106 hdd_config_t, nImmediateRoamRssiDiff,
1107 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1108 CFG_IMMEDIATE_ROAM_RSSI_DIFF_DEFAULT,
1109 CFG_IMMEDIATE_ROAM_RSSI_DIFF_MIN,
Madan Mohan Koyyalamudi62b55b02012-12-03 16:45:39 -08001110 CFG_IMMEDIATE_ROAM_RSSI_DIFF_MAX,
1111 cbNotifySetImmediateRoamRssiDiff, 0),
Srinivas Girigowda100eb322013-03-15 16:48:20 -07001112
Srinivas Girigowdaad34ca92013-10-22 10:54:29 -07001113 REG_DYNAMIC_VARIABLE( CFG_ENABLE_WES_MODE_NAME, WLAN_PARAM_Integer,
1114 hdd_config_t, isWESModeEnabled,
1115 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1116 CFG_ENABLE_WES_MODE_NAME_DEFAULT,
1117 CFG_ENABLE_WES_MODE_NAME_MIN,
1118 CFG_ENABLE_WES_MODE_NAME_MAX,
1119 cbNotifySetWESMode, 0),
Jeff Johnson295189b2012-06-20 16:38:30 -07001120#endif
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001121#ifdef FEATURE_WLAN_OKC
1122 REG_DYNAMIC_VARIABLE( CFG_OKC_FEATURE_ENABLED_NAME, WLAN_PARAM_Integer,
1123 hdd_config_t, isOkcIniFeatureEnabled,
1124 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1125 CFG_OKC_FEATURE_ENABLED_DEFAULT,
1126 CFG_OKC_FEATURE_ENABLED_MIN,
1127 CFG_OKC_FEATURE_ENABLED_MAX,
1128 cbNotifySetOkcFeatureEnabled, 0 ),
1129#endif
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001130#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
1131 REG_DYNAMIC_VARIABLE( CFG_ROAM_SCAN_OFFLOAD_ENABLED, WLAN_PARAM_Integer,
1132 hdd_config_t, isRoamOffloadScanEnabled,
1133 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1134 CFG_ROAM_SCAN_OFFLOAD_ENABLED_DEFAULT,
1135 CFG_ROAM_SCAN_OFFLOAD_ENABLED_MIN,
1136 CFG_ROAM_SCAN_OFFLOAD_ENABLED_MAX,
1137 cbNotifyUpdateRoamScanOffloadEnabled, 0),
1138#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001139 REG_VARIABLE( CFG_QOS_WMM_PKT_CLASSIFY_BASIS_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001140 hdd_config_t, PktClassificationBasis,
1141 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1142 CFG_QOS_WMM_PKT_CLASSIFY_BASIS_DEFAULT,
1143 CFG_QOS_WMM_PKT_CLASSIFY_BASIS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001144 CFG_QOS_WMM_PKT_CLASSIFY_BASIS_MAX ),
1145
1146 REG_VARIABLE( CFG_QOS_WMM_INFRA_DIR_AC_VO_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001147 hdd_config_t, InfraDirAcVo,
1148 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1149 CFG_QOS_WMM_INFRA_DIR_AC_VO_DEFAULT,
1150 CFG_QOS_WMM_INFRA_DIR_AC_VO_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001151 CFG_QOS_WMM_INFRA_DIR_AC_VO_MAX ),
1152
1153 REG_VARIABLE( CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001154 hdd_config_t, InfraNomMsduSizeAcVo,
1155 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1156 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_DEFAULT,
1157 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001158 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_MAX ),
1159
1160 REG_VARIABLE( CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001161 hdd_config_t, InfraMeanDataRateAcVo,
1162 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1163 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_DEFAULT,
1164 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001165 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_MAX ),
1166
1167 REG_VARIABLE( CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001168 hdd_config_t, InfraMinPhyRateAcVo,
1169 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1170 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_DEFAULT,
1171 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001172 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_MAX ),
1173
1174 REG_VARIABLE( CFG_QOS_WMM_INFRA_SBA_AC_VO_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001175 hdd_config_t, InfraSbaAcVo,
1176 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1177 CFG_QOS_WMM_INFRA_SBA_AC_VO_DEFAULT,
1178 CFG_QOS_WMM_INFRA_SBA_AC_VO_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001179 CFG_QOS_WMM_INFRA_SBA_AC_VO_MAX ),
1180
1181 REG_VARIABLE( CFG_QOS_WMM_INFRA_DIR_AC_VI_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001182 hdd_config_t, InfraDirAcVi,
1183 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1184 CFG_QOS_WMM_INFRA_DIR_AC_VI_DEFAULT,
1185 CFG_QOS_WMM_INFRA_DIR_AC_VI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001186 CFG_QOS_WMM_INFRA_DIR_AC_VI_MAX ),
1187
1188 REG_VARIABLE( CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001189 hdd_config_t, InfraNomMsduSizeAcVi,
1190 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1191 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_DEFAULT,
1192 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001193 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_MAX ),
1194
1195 REG_VARIABLE( CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001196 hdd_config_t, InfraMeanDataRateAcVi,
1197 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1198 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_DEFAULT,
1199 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001200 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_MAX ),
1201
1202 REG_VARIABLE( CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001203 hdd_config_t, InfraMinPhyRateAcVi,
1204 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1205 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_DEFAULT,
1206 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001207 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_MAX ),
1208
1209 REG_VARIABLE( CFG_QOS_WMM_INFRA_SBA_AC_VI_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001210 hdd_config_t, InfraSbaAcVi,
1211 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1212 CFG_QOS_WMM_INFRA_SBA_AC_VI_DEFAULT,
1213 CFG_QOS_WMM_INFRA_SBA_AC_VI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001214 CFG_QOS_WMM_INFRA_SBA_AC_VI_MAX ),
1215
1216 REG_VARIABLE( CFG_QOS_WMM_INFRA_DIR_AC_BE_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001217 hdd_config_t, InfraDirAcBe,
1218 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1219 CFG_QOS_WMM_INFRA_DIR_AC_BE_DEFAULT,
1220 CFG_QOS_WMM_INFRA_DIR_AC_BE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001221 CFG_QOS_WMM_INFRA_DIR_AC_BE_MAX ),
1222
1223 REG_VARIABLE( CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001224 hdd_config_t, InfraNomMsduSizeAcBe,
1225 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1226 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_DEFAULT,
1227 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001228 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_MAX ),
1229
1230 REG_VARIABLE( CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001231 hdd_config_t, InfraMeanDataRateAcBe,
1232 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1233 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_DEFAULT,
1234 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001235 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_MAX ),
1236
1237 REG_VARIABLE( CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001238 hdd_config_t, InfraMinPhyRateAcBe,
1239 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1240 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_DEFAULT,
1241 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001242 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_MAX ),
1243
1244 REG_VARIABLE( CFG_QOS_WMM_INFRA_SBA_AC_BE_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001245 hdd_config_t, InfraSbaAcBe,
1246 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1247 CFG_QOS_WMM_INFRA_SBA_AC_BE_DEFAULT,
1248 CFG_QOS_WMM_INFRA_SBA_AC_BE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001249 CFG_QOS_WMM_INFRA_SBA_AC_BE_MAX ),
1250
1251 REG_VARIABLE( CFG_QOS_WMM_INFRA_DIR_AC_BK_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001252 hdd_config_t, InfraDirAcBk,
1253 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1254 CFG_QOS_WMM_INFRA_DIR_AC_BK_DEFAULT,
1255 CFG_QOS_WMM_INFRA_DIR_AC_BK_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001256 CFG_QOS_WMM_INFRA_DIR_AC_BK_MAX ),
1257
1258 REG_VARIABLE( CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001259 hdd_config_t, InfraNomMsduSizeAcBk,
1260 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1261 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_DEFAULT,
1262 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001263 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_MAX ),
1264
1265 REG_VARIABLE( CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001266 hdd_config_t, InfraMeanDataRateAcBk,
1267 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1268 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_DEFAULT,
1269 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001270 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_MAX ),
1271
1272 REG_VARIABLE( CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001273 hdd_config_t, InfraMinPhyRateAcBk,
1274 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1275 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_DEFAULT,
1276 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001277 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_MAX ),
1278
1279 REG_VARIABLE( CFG_QOS_WMM_INFRA_SBA_AC_BK_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001280 hdd_config_t, InfraSbaAcBk,
1281 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1282 CFG_QOS_WMM_INFRA_SBA_AC_BK_DEFAULT,
1283 CFG_QOS_WMM_INFRA_SBA_AC_BK_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001284 CFG_QOS_WMM_INFRA_SBA_AC_BK_MAX ),
1285
1286 REG_VARIABLE( CFG_TL_WFQ_BK_WEIGHT_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001287 hdd_config_t, WfqBkWeight,
1288 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1289 CFG_TL_WFQ_BK_WEIGHT_DEFAULT,
1290 CFG_TL_WFQ_BK_WEIGHT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001291 CFG_TL_WFQ_BK_WEIGHT_MAX ),
1292
1293 REG_VARIABLE( CFG_TL_WFQ_BE_WEIGHT_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001294 hdd_config_t, WfqBeWeight,
1295 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1296 CFG_TL_WFQ_BE_WEIGHT_DEFAULT,
1297 CFG_TL_WFQ_BE_WEIGHT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001298 CFG_TL_WFQ_BE_WEIGHT_MAX ),
1299
1300 REG_VARIABLE( CFG_TL_WFQ_VI_WEIGHT_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001301 hdd_config_t, WfqViWeight,
1302 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1303 CFG_TL_WFQ_VI_WEIGHT_DEFAULT,
1304 CFG_TL_WFQ_VI_WEIGHT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001305 CFG_TL_WFQ_VI_WEIGHT_MAX ),
1306
1307 REG_VARIABLE( CFG_TL_WFQ_VO_WEIGHT_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001308 hdd_config_t, WfqVoWeight,
1309 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1310 CFG_TL_WFQ_VO_WEIGHT_DEFAULT,
1311 CFG_TL_WFQ_VO_WEIGHT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001312 CFG_TL_WFQ_VO_WEIGHT_MAX ),
1313
1314 REG_VARIABLE( CFG_TL_DELAYED_TRGR_FRM_INT_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001315 hdd_config_t, DelayedTriggerFrmInt,
1316 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1317 CFG_TL_DELAYED_TRGR_FRM_INT_DEFAULT,
1318 CFG_TL_DELAYED_TRGR_FRM_INT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001319 CFG_TL_DELAYED_TRGR_FRM_INT_MAX ),
1320
Dhanashri Atred8c20a32014-01-03 17:20:55 -08001321 REG_VARIABLE( CFG_REORDER_TIME_BK_NAME , WLAN_PARAM_Integer,
1322 hdd_config_t, BkReorderAgingTime,
1323 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1324 CFG_REORDER_TIME_BK_DEFAULT,
1325 CFG_REORDER_TIME_BK_MIN,
1326 CFG_REORDER_TIME_BK_MAX ),
1327
1328 REG_VARIABLE( CFG_REORDER_TIME_BE_NAME , WLAN_PARAM_Integer,
1329 hdd_config_t, BeReorderAgingTime,
1330 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1331 CFG_REORDER_TIME_BE_DEFAULT,
1332 CFG_REORDER_TIME_BE_MIN,
1333 CFG_REORDER_TIME_BE_MAX ),
1334
1335 REG_VARIABLE( CFG_REORDER_TIME_VI_NAME , WLAN_PARAM_Integer,
1336 hdd_config_t, ViReorderAgingTime,
1337 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1338 CFG_REORDER_TIME_VI_DEFAULT,
1339 CFG_REORDER_TIME_VI_MIN,
1340 CFG_REORDER_TIME_VI_MAX ),
1341
1342 REG_VARIABLE( CFG_REORDER_TIME_VO_NAME , WLAN_PARAM_Integer,
1343 hdd_config_t, VoReorderAgingTime,
1344 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1345 CFG_REORDER_TIME_VO_DEFAULT,
1346 CFG_REORDER_TIME_VO_MIN,
1347 CFG_REORDER_TIME_VO_MAX ),
1348
Jeff Johnson295189b2012-06-20 16:38:30 -07001349 REG_VARIABLE_STRING( CFG_WOWL_PATTERN_NAME, WLAN_PARAM_String,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001350 hdd_config_t, wowlPattern,
Jeff Johnson295189b2012-06-20 16:38:30 -07001351 VAR_FLAGS_OPTIONAL,
1352 (void *)CFG_WOWL_PATTERN_DEFAULT ),
1353
1354 REG_VARIABLE( CFG_QOS_IMPLICIT_SETUP_ENABLED_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001355 hdd_config_t, bImplicitQosEnabled,
1356 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1357 CFG_QOS_IMPLICIT_SETUP_ENABLED_DEFAULT,
1358 CFG_QOS_IMPLICIT_SETUP_ENABLED_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001359 CFG_QOS_IMPLICIT_SETUP_ENABLED_MAX ),
1360
Jeff Johnson295189b2012-06-20 16:38:30 -07001361 REG_VARIABLE( CFG_BTC_EXECUTION_MODE_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001362 hdd_config_t, btcExecutionMode,
1363 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1364 CFG_BTC_EXECUTION_MODE_DEFAULT,
1365 CFG_BTC_EXECUTION_MODE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001366 CFG_BTC_EXECUTION_MODE_MAX ),
1367
1368 REG_VARIABLE( CFG_BTC_DHCP_PROTECTION_NAME , WLAN_PARAM_Integer,
1369 hdd_config_t, btcConsBtSlotsToBlockDuringDhcp,
1370 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1371 CFG_BTC_DHCP_PROTECTION_DEFAULT,
1372 CFG_BTC_DHCP_PROTECTION_MIN,
1373 CFG_BTC_DHCP_PROTECTION_MAX ),
1374
1375 REG_VARIABLE( CFG_BTC_A2DP_DHCP_PROTECTION_NAME , WLAN_PARAM_Integer,
1376 hdd_config_t, btcA2DPBtSubIntervalsDuringDhcp,
1377 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1378 CFG_BTC_A2DP_DHCP_PROTECTION_DEFAULT,
1379 CFG_BTC_A2DP_DHCP_PROTECTION_MIN,
1380 CFG_BTC_A2DP_DHCP_PROTECTION_MAX ),
1381
Jeff Johnson32d95a32012-09-10 13:15:23 -07001382 REG_VARIABLE( CFG_BTC_STATIC_LEN_INQ_BT_NAME , WLAN_PARAM_Integer,
1383 hdd_config_t, btcStaticLenInqBt,
1384 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1385 CFG_BTC_STATIC_LEN_INQ_BT_DEFAULT,
1386 CFG_BTC_STATIC_LEN_INQ_BT_MIN,
1387 CFG_BTC_STATIC_LEN_INQ_BT_MAX ),
1388
1389 REG_VARIABLE( CFG_BTC_STATIC_LEN_PAGE_BT_NAME , WLAN_PARAM_Integer,
1390 hdd_config_t, btcStaticLenPageBt,
1391 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1392 CFG_BTC_STATIC_LEN_PAGE_BT_DEFAULT,
1393 CFG_BTC_STATIC_LEN_PAGE_BT_MIN,
1394 CFG_BTC_STATIC_LEN_PAGE_BT_MAX ),
1395
1396 REG_VARIABLE( CFG_BTC_STATIC_LEN_CONN_BT_NAME , WLAN_PARAM_Integer,
1397 hdd_config_t, btcStaticLenConnBt,
1398 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1399 CFG_BTC_STATIC_LEN_CONN_BT_DEFAULT,
1400 CFG_BTC_STATIC_LEN_CONN_BT_MIN,
1401 CFG_BTC_STATIC_LEN_CONN_BT_MAX ),
1402
1403 REG_VARIABLE( CFG_BTC_STATIC_LEN_LE_BT_NAME , WLAN_PARAM_Integer,
1404 hdd_config_t, btcStaticLenLeBt,
1405 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1406 CFG_BTC_STATIC_LEN_LE_BT_DEFAULT,
1407 CFG_BTC_STATIC_LEN_LE_BT_MIN,
1408 CFG_BTC_STATIC_LEN_LE_BT_MAX ),
1409
1410 REG_VARIABLE( CFG_BTC_STATIC_LEN_INQ_WLAN_NAME , WLAN_PARAM_Integer,
1411 hdd_config_t, btcStaticLenInqWlan,
1412 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1413 CFG_BTC_STATIC_LEN_INQ_WLAN_DEFAULT,
1414 CFG_BTC_STATIC_LEN_INQ_WLAN_MIN,
1415 CFG_BTC_STATIC_LEN_INQ_WLAN_MAX ),
1416
1417 REG_VARIABLE( CFG_BTC_STATIC_LEN_PAGE_WLAN_NAME , WLAN_PARAM_Integer,
1418 hdd_config_t, btcStaticLenPageWlan,
1419 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1420 CFG_BTC_STATIC_LEN_PAGE_WLAN_DEFAULT,
1421 CFG_BTC_STATIC_LEN_PAGE_WLAN_MIN,
1422 CFG_BTC_STATIC_LEN_PAGE_WLAN_MAX ),
1423
1424 REG_VARIABLE( CFG_BTC_STATIC_LEN_CONN_WLAN_NAME , WLAN_PARAM_Integer,
1425 hdd_config_t, btcStaticLenConnWlan,
1426 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1427 CFG_BTC_STATIC_LEN_CONN_WLAN_DEFAULT,
1428 CFG_BTC_STATIC_LEN_CONN_WLAN_MIN,
1429 CFG_BTC_STATIC_LEN_CONN_WLAN_MAX ),
1430
1431 REG_VARIABLE( CFG_BTC_STATIC_LEN_LE_WLAN_NAME , WLAN_PARAM_Integer,
1432 hdd_config_t, btcStaticLenLeWlan,
1433 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1434 CFG_BTC_STATIC_LEN_LE_WLAN_DEFAULT,
1435 CFG_BTC_STATIC_LEN_LE_WLAN_MIN,
1436 CFG_BTC_STATIC_LEN_LE_WLAN_MAX ),
1437
1438 REG_VARIABLE( CFG_BTC_DYN_MAX_LEN_BT_NAME , WLAN_PARAM_Integer,
1439 hdd_config_t, btcDynMaxLenBt,
1440 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1441 CFG_BTC_DYN_MAX_LEN_BT_DEFAULT,
1442 CFG_BTC_DYN_MAX_LEN_BT_MIN,
1443 CFG_BTC_DYN_MAX_LEN_BT_MAX ),
1444
1445 REG_VARIABLE( CFG_BTC_DYN_MAX_LEN_WLAN_NAME , WLAN_PARAM_Integer,
1446 hdd_config_t, btcDynMaxLenWlan,
1447 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1448 CFG_BTC_DYN_MAX_LEN_WLAN_DEFAULT,
1449 CFG_BTC_DYN_MAX_LEN_WLAN_MIN,
1450 CFG_BTC_DYN_MAX_LEN_WLAN_MAX ),
1451
1452 REG_VARIABLE( CFG_BTC_MAX_SCO_BLOCK_PERC_NAME , WLAN_PARAM_Integer,
1453 hdd_config_t, btcMaxScoBlockPerc,
1454 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1455 CFG_BTC_MAX_SCO_BLOCK_PERC_DEFAULT,
1456 CFG_BTC_MAX_SCO_BLOCK_PERC_MIN,
1457 CFG_BTC_MAX_SCO_BLOCK_PERC_MAX ),
1458
1459 REG_VARIABLE( CFG_BTC_DHCP_PROT_ON_A2DP_NAME , WLAN_PARAM_Integer,
1460 hdd_config_t, btcDhcpProtOnA2dp,
1461 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1462 CFG_BTC_DHCP_PROT_ON_A2DP_DEFAULT,
1463 CFG_BTC_DHCP_PROT_ON_A2DP_MIN,
1464 CFG_BTC_DHCP_PROT_ON_A2DP_MAX ),
1465
1466 REG_VARIABLE( CFG_BTC_DHCP_PROT_ON_SCO_NAME , WLAN_PARAM_Integer,
1467 hdd_config_t, btcDhcpProtOnSco,
1468 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1469 CFG_BTC_DHCP_PROT_ON_SCO_DEFAULT,
1470 CFG_BTC_DHCP_PROT_ON_SCO_MIN,
1471 CFG_BTC_DHCP_PROT_ON_SCO_MAX ),
1472
Wilson Tsaof8b37942013-09-06 10:49:00 -07001473 REG_VARIABLE( CFG_MWS_COEX_V1_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1474 hdd_config_t, mwsCoexVictimWANFreq[0],
1475 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1476 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1477 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1478 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1479
1480 REG_VARIABLE( CFG_MWS_COEX_V1_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1481 hdd_config_t, mwsCoexVictimWLANFreq[0],
1482 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1483 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1484 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1485 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1486
1487 REG_VARIABLE( CFG_MWS_COEX_V1_CONFIG_NAME , WLAN_PARAM_Integer,
1488 hdd_config_t, mwsCoexVictimConfig[0],
1489 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1490 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1491 CFG_MWS_COEX_VX_CONFIG_MIN,
1492 CFG_MWS_COEX_VX_CONFIG_MAX ),
1493
1494 REG_VARIABLE( CFG_MWS_COEX_V1_CONFIG2_NAME , WLAN_PARAM_Integer,
1495 hdd_config_t, mwsCoexVictimConfig2[0],
1496 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1497 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1498 CFG_MWS_COEX_VX_CONFIG_MIN,
1499 CFG_MWS_COEX_VX_CONFIG_MAX ),
1500
1501 REG_VARIABLE( CFG_MWS_COEX_V2_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1502 hdd_config_t, mwsCoexVictimWANFreq[1],
1503 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1504 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1505 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1506 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1507
1508 REG_VARIABLE( CFG_MWS_COEX_V2_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1509 hdd_config_t, mwsCoexVictimWLANFreq[1],
1510 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1511 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1512 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1513 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1514
1515 REG_VARIABLE( CFG_MWS_COEX_V2_CONFIG_NAME , WLAN_PARAM_Integer,
1516 hdd_config_t, mwsCoexVictimConfig[1],
1517 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1518 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1519 CFG_MWS_COEX_VX_CONFIG_MIN,
1520 CFG_MWS_COEX_VX_CONFIG_MAX ),
1521
1522 REG_VARIABLE( CFG_MWS_COEX_V2_CONFIG2_NAME , WLAN_PARAM_Integer,
1523 hdd_config_t, mwsCoexVictimConfig2[1],
1524 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1525 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1526 CFG_MWS_COEX_VX_CONFIG_MIN,
1527 CFG_MWS_COEX_VX_CONFIG_MAX ),
1528
1529 REG_VARIABLE( CFG_MWS_COEX_V3_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1530 hdd_config_t, mwsCoexVictimWANFreq[2],
1531 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1532 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1533 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1534 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1535
1536 REG_VARIABLE( CFG_MWS_COEX_V3_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1537 hdd_config_t, mwsCoexVictimWLANFreq[2],
1538 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1539 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1540 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1541 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1542
1543 REG_VARIABLE( CFG_MWS_COEX_V3_CONFIG_NAME , WLAN_PARAM_Integer,
1544 hdd_config_t, mwsCoexVictimConfig[2],
1545 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1546 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1547 CFG_MWS_COEX_VX_CONFIG_MIN,
1548 CFG_MWS_COEX_VX_CONFIG_MAX ),
1549
1550 REG_VARIABLE( CFG_MWS_COEX_V3_CONFIG2_NAME , WLAN_PARAM_Integer,
1551 hdd_config_t, mwsCoexVictimConfig2[2],
1552 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1553 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1554 CFG_MWS_COEX_VX_CONFIG_MIN,
1555 CFG_MWS_COEX_VX_CONFIG_MAX ),
1556
1557 REG_VARIABLE( CFG_MWS_COEX_V4_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1558 hdd_config_t, mwsCoexVictimWANFreq[3],
1559 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1560 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1561 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1562 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1563
1564 REG_VARIABLE( CFG_MWS_COEX_V4_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1565 hdd_config_t, mwsCoexVictimWLANFreq[3],
1566 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1567 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1568 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1569 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1570
1571 REG_VARIABLE( CFG_MWS_COEX_V4_CONFIG_NAME , WLAN_PARAM_Integer,
1572 hdd_config_t, mwsCoexVictimConfig[3],
1573 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1574 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1575 CFG_MWS_COEX_VX_CONFIG_MIN,
1576 CFG_MWS_COEX_VX_CONFIG_MAX ),
1577
1578 REG_VARIABLE( CFG_MWS_COEX_V4_CONFIG2_NAME , WLAN_PARAM_Integer,
1579 hdd_config_t, mwsCoexVictimConfig2[3],
1580 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1581 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1582 CFG_MWS_COEX_VX_CONFIG_MIN,
1583 CFG_MWS_COEX_VX_CONFIG_MAX ),
1584
1585 REG_VARIABLE( CFG_MWS_COEX_V5_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1586 hdd_config_t, mwsCoexVictimWANFreq[4],
1587 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1588 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1589 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1590 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1591
1592 REG_VARIABLE( CFG_MWS_COEX_V5_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1593 hdd_config_t, mwsCoexVictimWLANFreq[4],
1594 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1595 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1596 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1597 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1598
1599 REG_VARIABLE( CFG_MWS_COEX_V5_CONFIG_NAME , WLAN_PARAM_Integer,
1600 hdd_config_t, mwsCoexVictimConfig[4],
1601 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1602 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1603 CFG_MWS_COEX_VX_CONFIG_MIN,
1604 CFG_MWS_COEX_VX_CONFIG_MAX ),
1605
1606 REG_VARIABLE( CFG_MWS_COEX_V5_CONFIG2_NAME , WLAN_PARAM_Integer,
1607 hdd_config_t, mwsCoexVictimConfig2[4],
1608 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1609 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1610 CFG_MWS_COEX_VX_CONFIG_MIN,
1611 CFG_MWS_COEX_VX_CONFIG_MAX ),
1612
1613 REG_VARIABLE( CFG_MWS_COEX_V6_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1614 hdd_config_t, mwsCoexVictimWANFreq[5],
1615 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1616 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1617 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1618 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1619
1620 REG_VARIABLE( CFG_MWS_COEX_V6_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1621 hdd_config_t, mwsCoexVictimWLANFreq[5],
1622 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1623 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1624 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1625 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1626
1627 REG_VARIABLE( CFG_MWS_COEX_V6_CONFIG_NAME , WLAN_PARAM_Integer,
1628 hdd_config_t, mwsCoexVictimConfig[5],
1629 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1630 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1631 CFG_MWS_COEX_VX_CONFIG_MIN,
1632 CFG_MWS_COEX_VX_CONFIG_MAX ),
1633
1634 REG_VARIABLE( CFG_MWS_COEX_V6_CONFIG2_NAME , WLAN_PARAM_Integer,
1635 hdd_config_t, mwsCoexVictimConfig2[5],
1636 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1637 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1638 CFG_MWS_COEX_VX_CONFIG_MIN,
1639 CFG_MWS_COEX_VX_CONFIG_MAX ),
1640
1641 REG_VARIABLE( CFG_MWS_COEX_V7_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1642 hdd_config_t, mwsCoexVictimWANFreq[6],
1643 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1644 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1645 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1646 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1647
1648 REG_VARIABLE( CFG_MWS_COEX_V7_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1649 hdd_config_t, mwsCoexVictimWLANFreq[6],
1650 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1651 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1652 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1653 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1654
1655 REG_VARIABLE( CFG_MWS_COEX_V7_CONFIG_NAME , WLAN_PARAM_Integer,
1656 hdd_config_t, mwsCoexVictimConfig[6],
1657 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1658 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1659 CFG_MWS_COEX_VX_CONFIG_MIN,
1660 CFG_MWS_COEX_VX_CONFIG_MAX ),
1661
1662 REG_VARIABLE( CFG_MWS_COEX_V7_CONFIG2_NAME , WLAN_PARAM_Integer,
1663 hdd_config_t, mwsCoexVictimConfig2[6],
1664 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1665 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1666 CFG_MWS_COEX_VX_CONFIG_MIN,
1667 CFG_MWS_COEX_VX_CONFIG_MAX ),
1668
1669 REG_VARIABLE( CFG_MWS_COEX_V8_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1670 hdd_config_t, mwsCoexVictimWANFreq[7],
1671 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1672 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1673 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1674 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1675
1676 REG_VARIABLE( CFG_MWS_COEX_V8_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1677 hdd_config_t, mwsCoexVictimWLANFreq[7],
1678 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1679 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1680 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1681 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1682
1683 REG_VARIABLE( CFG_MWS_COEX_V8_CONFIG_NAME , WLAN_PARAM_Integer,
1684 hdd_config_t, mwsCoexVictimConfig[7],
1685 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1686 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1687 CFG_MWS_COEX_VX_CONFIG_MIN,
1688 CFG_MWS_COEX_VX_CONFIG_MAX ),
1689
1690 REG_VARIABLE( CFG_MWS_COEX_V8_CONFIG2_NAME , WLAN_PARAM_Integer,
1691 hdd_config_t, mwsCoexVictimConfig2[7],
1692 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1693 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1694 CFG_MWS_COEX_VX_CONFIG_MIN,
1695 CFG_MWS_COEX_VX_CONFIG_MAX ),
1696
1697 REG_VARIABLE( CFG_MWS_COEX_V9_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1698 hdd_config_t, mwsCoexVictimWANFreq[8],
1699 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1700 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1701 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1702 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1703
1704 REG_VARIABLE( CFG_MWS_COEX_V9_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1705 hdd_config_t, mwsCoexVictimWLANFreq[8],
1706 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1707 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1708 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1709 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1710
1711 REG_VARIABLE( CFG_MWS_COEX_V9_CONFIG_NAME , WLAN_PARAM_Integer,
1712 hdd_config_t, mwsCoexVictimConfig[8],
1713 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1714 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1715 CFG_MWS_COEX_VX_CONFIG_MIN,
1716 CFG_MWS_COEX_VX_CONFIG_MAX ),
1717
1718 REG_VARIABLE( CFG_MWS_COEX_V9_CONFIG2_NAME , WLAN_PARAM_Integer,
1719 hdd_config_t, mwsCoexVictimConfig2[8],
1720 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1721 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1722 CFG_MWS_COEX_VX_CONFIG_MIN,
1723 CFG_MWS_COEX_VX_CONFIG_MAX ),
1724
1725 REG_VARIABLE( CFG_MWS_COEX_V10_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1726 hdd_config_t, mwsCoexVictimWANFreq[9],
1727 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1728 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1729 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1730 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1731
1732 REG_VARIABLE( CFG_MWS_COEX_V10_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1733 hdd_config_t, mwsCoexVictimWLANFreq[9],
1734 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1735 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1736 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1737 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1738
1739 REG_VARIABLE( CFG_MWS_COEX_V10_CONFIG_NAME , WLAN_PARAM_Integer,
1740 hdd_config_t, mwsCoexVictimConfig[9],
1741 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1742 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1743 CFG_MWS_COEX_VX_CONFIG_MIN,
1744 CFG_MWS_COEX_VX_CONFIG_MAX ),
1745
1746 REG_VARIABLE( CFG_MWS_COEX_V10_CONFIG2_NAME , WLAN_PARAM_Integer,
1747 hdd_config_t, mwsCoexVictimConfig2[9],
1748 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1749 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1750 CFG_MWS_COEX_VX_CONFIG_MIN,
1751 CFG_MWS_COEX_VX_CONFIG_MAX ),
1752
1753 REG_VARIABLE( CFG_MWS_COEX_MODEM_BACKOFF_NAME , WLAN_PARAM_Integer,
1754 hdd_config_t, mwsCoexModemBackoff,
1755 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1756 CFG_MWS_COEX_MODEM_BACKOFF_DEFAULT,
1757 CFG_MWS_COEX_MODEM_BACKOFF_MIN,
1758 CFG_MWS_COEX_MODEM_BACKOFF_MAX ),
1759
1760 REG_VARIABLE( CFG_MWS_COEX_CONFIG1_NAME , WLAN_PARAM_Integer,
1761 hdd_config_t, mwsCoexConfig[0],
1762 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1763 CFG_MWS_COEX_CONFIGX_DEFAULT,
1764 CFG_MWS_COEX_CONFIGX_MIN,
1765 CFG_MWS_COEX_CONFIGX_MAX ),
1766
1767 REG_VARIABLE( CFG_MWS_COEX_CONFIG2_NAME , WLAN_PARAM_Integer,
1768 hdd_config_t, mwsCoexConfig[1],
1769 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1770 CFG_MWS_COEX_CONFIGX_DEFAULT,
1771 CFG_MWS_COEX_CONFIGX_MIN,
1772 CFG_MWS_COEX_CONFIGX_MAX ),
1773
1774 REG_VARIABLE( CFG_MWS_COEX_CONFIG3_NAME , WLAN_PARAM_Integer,
1775 hdd_config_t, mwsCoexConfig[2],
1776 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1777 CFG_MWS_COEX_CONFIGX_DEFAULT,
1778 CFG_MWS_COEX_CONFIGX_MIN,
1779 CFG_MWS_COEX_CONFIGX_MAX ),
1780
1781 REG_VARIABLE( CFG_MWS_COEX_CONFIG4_NAME , WLAN_PARAM_Integer,
1782 hdd_config_t, mwsCoexConfig[3],
1783 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1784 CFG_MWS_COEX_CONFIGX_DEFAULT,
1785 CFG_MWS_COEX_CONFIGX_MIN,
1786 CFG_MWS_COEX_CONFIGX_MAX ),
1787
1788 REG_VARIABLE( CFG_MWS_COEX_CONFIG5_NAME , WLAN_PARAM_Integer,
1789 hdd_config_t, mwsCoexConfig[4],
1790 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1791 CFG_MWS_COEX_CONFIGX_DEFAULT,
1792 CFG_MWS_COEX_CONFIGX_MIN,
1793 CFG_MWS_COEX_CONFIGX_MAX ),
1794
1795 REG_VARIABLE( CFG_MWS_COEX_CONFIG6_NAME , WLAN_PARAM_Integer,
1796 hdd_config_t, mwsCoexConfig[5],
1797 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1798 CFG_MWS_COEX_CONFIGX_DEFAULT,
1799 CFG_MWS_COEX_CONFIGX_MIN,
1800 CFG_MWS_COEX_CONFIGX_MAX ),
1801
1802 REG_VARIABLE( CFG_SAR_POWER_BACKOFF_NAME , WLAN_PARAM_Integer,
1803 hdd_config_t, SARPowerBackoff,
1804 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1805 CFG_SAR_POWER_BACKOFF_DEFAULT,
1806 CFG_SAR_POWER_BACKOFF_MIN,
1807 CFG_SAR_POWER_BACKOFF_MAX ),
1808
Jeff Johnson295189b2012-06-20 16:38:30 -07001809 REG_VARIABLE( CFG_AP_LISTEN_MODE_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001810 hdd_config_t, nEnableListenMode,
1811 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1812 CFG_AP_LISTEN_MODE_DEFAULT,
1813 CFG_AP_LISTEN_MODE_MIN,
1814 CFG_AP_LISTEN_MODE_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07001815
1816 REG_VARIABLE( CFG_AP_AUTO_SHUT_OFF , WLAN_PARAM_Integer,
1817 hdd_config_t, nAPAutoShutOff,
1818 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1819 CFG_AP_AUTO_SHUT_OFF_DEFAULT,
1820 CFG_AP_AUTO_SHUT_OFF_MIN,
1821 CFG_AP_AUTO_SHUT_OFF_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07001822
1823#if defined WLAN_FEATURE_VOWIFI
1824 REG_VARIABLE( CFG_RRM_ENABLE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001825 hdd_config_t, fRrmEnable,
1826 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1827 CFG_RRM_ENABLE_DEFAULT,
1828 CFG_RRM_ENABLE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001829 CFG_RRM_ENABLE_MAX ),
1830
1831 REG_VARIABLE( CFG_RRM_OPERATING_CHAN_MAX_DURATION_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001832 hdd_config_t, nInChanMeasMaxDuration,
1833 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1834 CFG_RRM_OPERATING_CHAN_MAX_DURATION_DEFAULT,
1835 CFG_RRM_OPERATING_CHAN_MAX_DURATION_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001836 CFG_RRM_OPERATING_CHAN_MAX_DURATION_MAX ),
1837
1838 REG_VARIABLE( CFG_RRM_NON_OPERATING_CHAN_MAX_DURATION_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001839 hdd_config_t, nOutChanMeasMaxDuration,
1840 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1841 CFG_RRM_NON_OPERATING_CHAN_MAX_DURATION_DEFAULT,
1842 CFG_RRM_NON_OPERATING_CHAN_MAX_DURATION_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001843 CFG_RRM_NON_OPERATING_CHAN_MAX_DURATION_MAX ),
1844
1845 REG_VARIABLE( CFG_RRM_MEAS_RANDOMIZATION_INTVL_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001846 hdd_config_t, nRrmRandnIntvl,
1847 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1848 CFG_RRM_MEAS_RANDOMIZATION_INTVL_DEFAULT,
1849 CFG_RRM_MEAS_RANDOMIZATION_INTVL_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001850 CFG_RRM_MEAS_RANDOMIZATION_INTVL_MAX ),
1851#endif
1852
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001853#ifdef WLAN_FEATURE_VOWIFI_11R
Jeff Johnson295189b2012-06-20 16:38:30 -07001854 REG_VARIABLE( CFG_FT_RESOURCE_REQ_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001855 hdd_config_t, fFTResourceReqSupported,
1856 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1857 CFG_FT_RESOURCE_REQ_DEFAULT,
1858 CFG_FT_RESOURCE_REQ_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001859 CFG_FT_RESOURCE_REQ_MAX ),
1860#endif
1861
Girish Gowlibf0e1ab2015-01-19 16:05:16 +05301862 REG_VARIABLE( CFG_ENABLE_ROAM_DELAY_STATS, WLAN_PARAM_Integer,
1863 hdd_config_t, gEnableRoamDelayStats,
1864 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1865 CFG_ENABLE_ROAM_DELAY_STATS_DEFAULT,
1866 CFG_ENABLE_ROAM_DELAY_STATS_MIN,
1867 CFG_ENABLE_ROAM_DELAY_STATS_MAX ),
Girish Gowlibf0e1ab2015-01-19 16:05:16 +05301868
Jeff Johnson295189b2012-06-20 16:38:30 -07001869#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001870 REG_DYNAMIC_VARIABLE( CFG_NEIGHBOR_SCAN_TIMER_PERIOD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001871 hdd_config_t, nNeighborScanPeriod,
1872 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1873 CFG_NEIGHBOR_SCAN_TIMER_PERIOD_DEFAULT,
1874 CFG_NEIGHBOR_SCAN_TIMER_PERIOD_MIN,
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001875 CFG_NEIGHBOR_SCAN_TIMER_PERIOD_MAX,
1876 cbNotifySetNeighborScanPeriod, 0 ),
Jeff Johnson295189b2012-06-20 16:38:30 -07001877
1878 REG_VARIABLE( CFG_NEIGHBOR_REASSOC_RSSI_THRESHOLD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001879 hdd_config_t, nNeighborReassocRssiThreshold,
1880 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1881 CFG_NEIGHBOR_REASSOC_RSSI_THRESHOLD_DEFAULT,
1882 CFG_NEIGHBOR_REASSOC_RSSI_THRESHOLD_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001883 CFG_NEIGHBOR_REASSOC_RSSI_THRESHOLD_MAX ),
1884
Srinivas Girigowdade697412013-02-14 16:31:48 -08001885 REG_DYNAMIC_VARIABLE( CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001886 hdd_config_t, nNeighborLookupRssiThreshold,
1887 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1888 CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_DEFAULT,
1889 CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_MIN,
Srinivas Girigowdade697412013-02-14 16:31:48 -08001890 CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_MAX,
1891 cbNotifySetNeighborLookupRssiThreshold, 0 ),
Jeff Johnson295189b2012-06-20 16:38:30 -07001892
1893 REG_VARIABLE_STRING( CFG_NEIGHBOR_SCAN_CHAN_LIST_NAME, WLAN_PARAM_String,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001894 hdd_config_t, neighborScanChanList,
Jeff Johnson295189b2012-06-20 16:38:30 -07001895 VAR_FLAGS_OPTIONAL,
1896 (void *)CFG_NEIGHBOR_SCAN_CHAN_LIST_DEFAULT ),
1897
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001898 REG_DYNAMIC_VARIABLE( CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_NAME, WLAN_PARAM_Integer,
Jeff Johnson295189b2012-06-20 16:38:30 -07001899 hdd_config_t, nNeighborScanMinChanTime,
1900 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1901 CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_DEFAULT,
1902 CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_MIN,
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001903 CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_MAX,
1904 cbNotifySetNeighborScanMinChanTime, 0 ),
Jeff Johnson295189b2012-06-20 16:38:30 -07001905
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001906 REG_DYNAMIC_VARIABLE( CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001907 hdd_config_t, nNeighborScanMaxChanTime,
1908 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1909 CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_DEFAULT,
1910 CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_MIN,
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001911 CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_MAX,
1912 cbNotifySetNeighborScanMaxChanTime, 0 ),
Jeff Johnson295189b2012-06-20 16:38:30 -07001913
1914 REG_VARIABLE( CFG_11R_NEIGHBOR_REQ_MAX_TRIES_NAME, WLAN_PARAM_Integer,
1915 hdd_config_t, nMaxNeighborReqTries,
1916 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1917 CFG_11R_NEIGHBOR_REQ_MAX_TRIES_DEFAULT,
1918 CFG_11R_NEIGHBOR_REQ_MAX_TRIES_MIN,
1919 CFG_11R_NEIGHBOR_REQ_MAX_TRIES_MAX),
1920
Srinivas Girigowdade697412013-02-14 16:31:48 -08001921 REG_DYNAMIC_VARIABLE( CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001922 hdd_config_t, nNeighborResultsRefreshPeriod,
1923 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1924 CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_DEFAULT,
1925 CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_MIN,
Srinivas Girigowdade697412013-02-14 16:31:48 -08001926 CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_MAX,
1927 cbNotifySetNeighborResultsRefreshPeriod, 0 ),
1928
1929 REG_DYNAMIC_VARIABLE( CFG_EMPTY_SCAN_REFRESH_PERIOD_NAME, WLAN_PARAM_Integer,
1930 hdd_config_t, nEmptyScanRefreshPeriod,
1931 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1932 CFG_EMPTY_SCAN_REFRESH_PERIOD_DEFAULT,
1933 CFG_EMPTY_SCAN_REFRESH_PERIOD_MIN,
1934 CFG_EMPTY_SCAN_REFRESH_PERIOD_MAX,
1935 cbNotifySetEmptyScanRefreshPeriod, 0 ),
Mukul Sharma20aa6582014-08-07 21:36:12 +05301936
1937 REG_VARIABLE( CFG_NEIGHBOR_INITIAL_FORCED_ROAM_TO_5GH_ENABLE_NAME, WLAN_PARAM_Integer,
1938 hdd_config_t, nNeighborInitialForcedRoamTo5GhEnable,
1939 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1940 CFG_NEIGHBOR_INITIAL_FORCED_ROAM_TO_5GH_ENABLE_DEFAULT,
1941 CFG_NEIGHBOR_INITIAL_FORCED_ROAM_TO_5GH_ENABLE_MIN,
1942 CFG_NEIGHBOR_INITIAL_FORCED_ROAM_TO_5GH_ENABLE_MAX),
1943
Jeff Johnson295189b2012-06-20 16:38:30 -07001944#endif /* WLAN_FEATURE_NEIGHBOR_ROAMING */
1945
1946 REG_VARIABLE( CFG_QOS_WMM_BURST_SIZE_DEFN_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001947 hdd_config_t, burstSizeDefinition,
1948 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1949 CFG_QOS_WMM_BURST_SIZE_DEFN_DEFAULT,
1950 CFG_QOS_WMM_BURST_SIZE_DEFN_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001951 CFG_QOS_WMM_BURST_SIZE_DEFN_MAX ),
1952
1953 REG_VARIABLE( CFG_MCAST_BCAST_FILTER_SETTING_NAME, WLAN_PARAM_Integer,
1954 hdd_config_t, mcastBcastFilterSetting,
1955 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1956 CFG_MCAST_BCAST_FILTER_SETTING_DEFAULT,
1957 CFG_MCAST_BCAST_FILTER_SETTING_MIN,
1958 CFG_MCAST_BCAST_FILTER_SETTING_MAX ),
1959
1960 REG_VARIABLE( CFG_ENABLE_HOST_ARPOFFLOAD_NAME, WLAN_PARAM_Integer,
1961 hdd_config_t, fhostArpOffload,
1962 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1963 CFG_ENABLE_HOST_ARPOFFLOAD_DEFAULT,
1964 CFG_ENABLE_HOST_ARPOFFLOAD_MIN,
1965 CFG_ENABLE_HOST_ARPOFFLOAD_MAX ),
1966
Gopichand Nakkala746a9452013-06-11 12:45:54 +05301967 REG_VARIABLE( CFG_ENABLE_HOST_NSOFFLOAD_NAME, WLAN_PARAM_Integer,
1968 hdd_config_t, fhostNSOffload,
1969 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1970 CFG_ENABLE_HOST_NSOFFLOAD_DEFAULT,
1971 CFG_ENABLE_HOST_NSOFFLOAD_MIN,
1972 CFG_ENABLE_HOST_NSOFFLOAD_MAX ),
1973
Jeff Johnson295189b2012-06-20 16:38:30 -07001974 REG_VARIABLE( CFG_QOS_WMM_TS_INFO_ACK_POLICY_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001975 hdd_config_t, tsInfoAckPolicy,
1976 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1977 CFG_QOS_WMM_TS_INFO_ACK_POLICY_DEFAULT,
1978 CFG_QOS_WMM_TS_INFO_ACK_POLICY_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001979 CFG_QOS_WMM_TS_INFO_ACK_POLICY_MAX ),
1980
1981 REG_VARIABLE( CFG_SINGLE_TID_RC_NAME, WLAN_PARAM_Integer,
1982 hdd_config_t, bSingleTidRc,
1983 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1984 CFG_SINGLE_TID_RC_DEFAULT,
1985 CFG_SINGLE_TID_RC_MIN,
1986 CFG_SINGLE_TID_RC_MAX),
1987
1988 REG_VARIABLE( CFG_DYNAMIC_PSPOLL_VALUE_NAME, WLAN_PARAM_Integer,
1989 hdd_config_t, dynamicPsPollValue,
1990 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1991 CFG_DYNAMIC_PSPOLL_VALUE_DEFAULT,
1992 CFG_DYNAMIC_PSPOLL_VALUE_MIN,
1993 CFG_DYNAMIC_PSPOLL_VALUE_MAX ),
1994
1995 REG_VARIABLE( CFG_TELE_BCN_WAKEUP_EN_NAME, WLAN_PARAM_Integer,
1996 hdd_config_t, teleBcnWakeupEn,
1997 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1998 CFG_TELE_BCN_WAKEUP_EN_DEFAULT,
1999 CFG_TELE_BCN_WAKEUP_EN_MIN,
2000 CFG_TELE_BCN_WAKEUP_EN_MAX ),
2001
2002 REG_VARIABLE( CFG_INFRA_STA_KEEP_ALIVE_PERIOD_NAME, WLAN_PARAM_Integer,
2003 hdd_config_t, infraStaKeepAlivePeriod,
2004 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2005 CFG_INFRA_STA_KEEP_ALIVE_PERIOD_DEFAULT,
2006 CFG_INFRA_STA_KEEP_ALIVE_PERIOD_MIN,
2007 CFG_INFRA_STA_KEEP_ALIVE_PERIOD_MAX),
2008
2009 REG_VARIABLE( CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002010 hdd_config_t, AddTSWhenACMIsOff,
2011 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2012 CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_DEFAULT,
2013 CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002014 CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_MAX ),
2015
2016
2017 REG_VARIABLE( CFG_VALIDATE_SCAN_LIST_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002018 hdd_config_t, fValidateScanList,
2019 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2020 CFG_VALIDATE_SCAN_LIST_DEFAULT,
2021 CFG_VALIDATE_SCAN_LIST_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002022 CFG_VALIDATE_SCAN_LIST_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002023
Jeff Johnson295189b2012-06-20 16:38:30 -07002024 REG_VARIABLE( CFG_NULLDATA_AP_RESP_TIMEOUT_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002025 hdd_config_t, nNullDataApRespTimeout,
2026 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2027 CFG_NULLDATA_AP_RESP_TIMEOUT_DEFAULT,
2028 CFG_NULLDATA_AP_RESP_TIMEOUT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002029 CFG_NULLDATA_AP_RESP_TIMEOUT_MAX ),
2030
2031 REG_VARIABLE( CFG_AP_DATA_AVAIL_POLL_PERIOD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002032 hdd_config_t, apDataAvailPollPeriodInMs,
2033 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2034 CFG_AP_DATA_AVAIL_POLL_PERIOD_DEFAULT,
2035 CFG_AP_DATA_AVAIL_POLL_PERIOD_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002036 CFG_AP_DATA_AVAIL_POLL_PERIOD_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002037
Jeff Johnson295189b2012-06-20 16:38:30 -07002038 REG_VARIABLE( CFG_ENABLE_BTAMP_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002039 hdd_config_t, enableBtAmp,
2040 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2041 CFG_ENABLE_BTAMP_DEFAULT,
2042 CFG_ENABLE_BTAMP_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002043 CFG_ENABLE_BTAMP_MAX ),
2044
2045#ifdef WLAN_BTAMP_FEATURE
2046 REG_VARIABLE( CFG_BT_AMP_PREFERRED_CHANNEL_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002047 hdd_config_t, preferredChannel,
Jeff Johnson295189b2012-06-20 16:38:30 -07002048 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2049 CFG_BT_AMP_PREFERRED_CHANNEL_DEFAULT,
2050 CFG_BT_AMP_PREFERRED_CHANNEL_MIN,
2051 CFG_BT_AMP_PREFERRED_CHANNEL_MAX ),
2052#endif //WLAN_BTAMP_FEATURE
2053 REG_VARIABLE( CFG_BAND_CAPABILITY_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002054 hdd_config_t, nBandCapability,
2055 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2056 CFG_BAND_CAPABILITY_DEFAULT,
2057 CFG_BAND_CAPABILITY_MIN,
2058 CFG_BAND_CAPABILITY_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002059
2060 REG_VARIABLE( CFG_ENABLE_BEACON_EARLY_TERMINATION_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002061 hdd_config_t, fEnableBeaconEarlyTermination,
2062 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2063 CFG_ENABLE_BEACON_EARLY_TERMINATION_DEFAULT,
2064 CFG_ENABLE_BEACON_EARLY_TERMINATION_MIN,
2065 CFG_ENABLE_BEACON_EARLY_TERMINATION_MAX ),
Varun Reddy Yeturu587e6802013-01-24 12:21:41 -08002066/* CFG_VOS_TRACE_ENABLE Parameters */
2067 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_BAP_NAME, WLAN_PARAM_Integer,
2068 hdd_config_t, vosTraceEnableBAP,
2069 VAR_FLAGS_OPTIONAL,
2070 CFG_VOS_TRACE_ENABLE_DEFAULT,
2071 CFG_VOS_TRACE_ENABLE_MIN,
2072 CFG_VOS_TRACE_ENABLE_MAX ),
2073
2074 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_TL_NAME, WLAN_PARAM_Integer,
2075 hdd_config_t, vosTraceEnableTL,
2076 VAR_FLAGS_OPTIONAL,
2077 CFG_VOS_TRACE_ENABLE_DEFAULT,
2078 CFG_VOS_TRACE_ENABLE_MIN,
2079 CFG_VOS_TRACE_ENABLE_MAX ),
2080
2081 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_WDI_NAME, WLAN_PARAM_Integer,
2082 hdd_config_t, vosTraceEnableWDI,
2083 VAR_FLAGS_OPTIONAL,
2084 CFG_VOS_TRACE_ENABLE_DEFAULT,
2085 CFG_VOS_TRACE_ENABLE_MIN,
2086 CFG_VOS_TRACE_ENABLE_MAX ),
2087
2088 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_HDD_NAME, WLAN_PARAM_Integer,
2089 hdd_config_t, vosTraceEnableHDD,
2090 VAR_FLAGS_OPTIONAL,
2091 CFG_VOS_TRACE_ENABLE_DEFAULT,
2092 CFG_VOS_TRACE_ENABLE_MIN,
2093 CFG_VOS_TRACE_ENABLE_MAX ),
2094
2095 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_SME_NAME, WLAN_PARAM_Integer,
2096 hdd_config_t, vosTraceEnableSME,
2097 VAR_FLAGS_OPTIONAL,
2098 CFG_VOS_TRACE_ENABLE_DEFAULT,
2099 CFG_VOS_TRACE_ENABLE_MIN,
2100 CFG_VOS_TRACE_ENABLE_MAX ),
2101
2102 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_PE_NAME, WLAN_PARAM_Integer,
2103 hdd_config_t, vosTraceEnablePE,
2104 VAR_FLAGS_OPTIONAL,
2105 CFG_VOS_TRACE_ENABLE_DEFAULT,
2106 CFG_VOS_TRACE_ENABLE_MIN,
2107 CFG_VOS_TRACE_ENABLE_MAX ),
2108
Katya Nigam70d68332013-09-16 16:49:45 +05302109 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_PMC_NAME, WLAN_PARAM_Integer,
2110 hdd_config_t, vosTraceEnablePMC,
2111 VAR_FLAGS_OPTIONAL,
2112 CFG_VOS_TRACE_ENABLE_DEFAULT,
2113 CFG_VOS_TRACE_ENABLE_MIN,
2114 CFG_VOS_TRACE_ENABLE_MAX ),
2115
Varun Reddy Yeturu587e6802013-01-24 12:21:41 -08002116 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_WDA_NAME, WLAN_PARAM_Integer,
2117 hdd_config_t, vosTraceEnableWDA,
2118 VAR_FLAGS_OPTIONAL,
2119 CFG_VOS_TRACE_ENABLE_DEFAULT,
2120 CFG_VOS_TRACE_ENABLE_MIN,
2121 CFG_VOS_TRACE_ENABLE_MAX ),
2122
2123 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_SYS_NAME, WLAN_PARAM_Integer,
2124 hdd_config_t, vosTraceEnableSYS,
2125 VAR_FLAGS_OPTIONAL,
2126 CFG_VOS_TRACE_ENABLE_DEFAULT,
2127 CFG_VOS_TRACE_ENABLE_MIN,
2128 CFG_VOS_TRACE_ENABLE_MAX ),
2129
2130 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_VOSS_NAME, WLAN_PARAM_Integer,
2131 hdd_config_t, vosTraceEnableVOSS,
2132 VAR_FLAGS_OPTIONAL,
2133 CFG_VOS_TRACE_ENABLE_DEFAULT,
2134 CFG_VOS_TRACE_ENABLE_MIN,
2135 CFG_VOS_TRACE_ENABLE_MAX ),
2136
Varun Reddy Yeturu587e6802013-01-24 12:21:41 -08002137 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_SAP_NAME, WLAN_PARAM_Integer,
2138 hdd_config_t, vosTraceEnableSAP,
2139 VAR_FLAGS_OPTIONAL,
2140 CFG_VOS_TRACE_ENABLE_DEFAULT,
2141 CFG_VOS_TRACE_ENABLE_MIN,
2142 CFG_VOS_TRACE_ENABLE_MAX ),
2143
2144 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_HDD_SAP_NAME, WLAN_PARAM_Integer,
2145 hdd_config_t, vosTraceEnableHDDSAP,
2146 VAR_FLAGS_OPTIONAL,
2147 CFG_VOS_TRACE_ENABLE_DEFAULT,
2148 CFG_VOS_TRACE_ENABLE_MIN,
2149 CFG_VOS_TRACE_ENABLE_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002150
Jeff Johnson295189b2012-06-20 16:38:30 -07002151 /* note that since the default value is out of range we cannot
2152 enable range check, otherwise we get a system log message */
2153 REG_VARIABLE( CFG_WDI_TRACE_ENABLE_DAL_NAME, WLAN_PARAM_Integer,
2154 hdd_config_t, wdiTraceEnableDAL,
2155 VAR_FLAGS_OPTIONAL,
2156 CFG_WDI_TRACE_ENABLE_DEFAULT,
2157 CFG_WDI_TRACE_ENABLE_MIN,
2158 CFG_WDI_TRACE_ENABLE_MAX ),
2159
2160 REG_VARIABLE( CFG_WDI_TRACE_ENABLE_CTL_NAME, WLAN_PARAM_Integer,
2161 hdd_config_t, wdiTraceEnableCTL,
2162 VAR_FLAGS_OPTIONAL,
2163 CFG_WDI_TRACE_ENABLE_DEFAULT,
2164 CFG_WDI_TRACE_ENABLE_MIN,
2165 CFG_WDI_TRACE_ENABLE_MAX ),
2166
2167 REG_VARIABLE( CFG_WDI_TRACE_ENABLE_DAT_NAME, WLAN_PARAM_Integer,
2168 hdd_config_t, wdiTraceEnableDAT,
2169 VAR_FLAGS_OPTIONAL,
2170 CFG_WDI_TRACE_ENABLE_DEFAULT,
2171 CFG_WDI_TRACE_ENABLE_MIN,
2172 CFG_WDI_TRACE_ENABLE_MAX ),
2173
2174 REG_VARIABLE( CFG_WDI_TRACE_ENABLE_PAL_NAME, WLAN_PARAM_Integer,
2175 hdd_config_t, wdiTraceEnablePAL,
2176 VAR_FLAGS_OPTIONAL,
2177 CFG_WDI_TRACE_ENABLE_DEFAULT,
2178 CFG_WDI_TRACE_ENABLE_MIN,
2179 CFG_WDI_TRACE_ENABLE_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002180
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002181 REG_VARIABLE( CFG_TELE_BCN_TRANS_LI_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002182 hdd_config_t, nTeleBcnTransListenInterval,
2183 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2184 CFG_TELE_BCN_TRANS_LI_DEFAULT,
2185 CFG_TELE_BCN_TRANS_LI_MIN,
2186 CFG_TELE_BCN_TRANS_LI_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002187
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002188 REG_VARIABLE( CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002189 hdd_config_t, nTeleBcnTransLiNumIdleBeacons,
2190 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2191 CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_DEFAULT,
2192 CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_MIN,
2193 CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002194
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002195 REG_VARIABLE( CFG_TELE_BCN_MAX_LI_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002196 hdd_config_t, nTeleBcnMaxListenInterval,
2197 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2198 CFG_TELE_BCN_MAX_LI_DEFAULT,
2199 CFG_TELE_BCN_MAX_LI_MIN,
2200 CFG_TELE_BCN_MAX_LI_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002201
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002202 REG_VARIABLE( CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002203 hdd_config_t, nTeleBcnMaxLiNumIdleBeacons,
2204 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2205 CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_DEFAULT,
2206 CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_MIN,
2207 CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002208
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002209 REG_VARIABLE( CFG_BCN_EARLY_TERM_WAKE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002210 hdd_config_t, bcnEarlyTermWakeInterval,
2211 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2212 CFG_BCN_EARLY_TERM_WAKE_DEFAULT,
2213 CFG_BCN_EARLY_TERM_WAKE_MIN,
2214 CFG_BCN_EARLY_TERM_WAKE_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002215
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002216 REG_VARIABLE( CFG_AP_DATA_AVAIL_POLL_PERIOD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002217 hdd_config_t, apDataAvailPollPeriodInMs,
2218 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2219 CFG_AP_DATA_AVAIL_POLL_PERIOD_DEFAULT,
2220 CFG_AP_DATA_AVAIL_POLL_PERIOD_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002221 CFG_AP_DATA_AVAIL_POLL_PERIOD_MAX ),
2222
2223 REG_VARIABLE( CFG_ENABLE_CLOSE_LOOP_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002224 hdd_config_t, enableCloseLoop,
2225 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2226 CFG_ENABLE_CLOSE_LOOP_DEFAULT,
2227 CFG_ENABLE_CLOSE_LOOP_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002228 CFG_ENABLE_CLOSE_LOOP_MAX ),
2229
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002230 REG_VARIABLE( CFG_ENABLE_BYPASS_11D_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002231 hdd_config_t, enableBypass11d,
2232 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2233 CFG_ENABLE_BYPASS_11D_DEFAULT,
2234 CFG_ENABLE_BYPASS_11D_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002235 CFG_ENABLE_BYPASS_11D_MAX ),
2236
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002237 REG_VARIABLE( CFG_ENABLE_DFS_CHNL_SCAN_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002238 hdd_config_t, enableDFSChnlScan,
2239 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2240 CFG_ENABLE_DFS_CHNL_SCAN_DEFAULT,
2241 CFG_ENABLE_DFS_CHNL_SCAN_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002242 CFG_ENABLE_DFS_CHNL_SCAN_MAX ),
2243
Sachin Ahuja697ba3f2014-11-12 18:57:11 +05302244 REG_VARIABLE( CFG_ENABLE_DFS_PNO_CHNL_SCAN_NAME, WLAN_PARAM_Integer,
2245 hdd_config_t, enableDFSPnoChnlScan,
2246 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2247 CFG_ENABLE_DFS_PNO_CHNL_SCAN_DEFAULT,
2248 CFG_ENABLE_DFS_PNO_CHNL_SCAN_MIN,
2249 CFG_ENABLE_DFS_PNO_CHNL_SCAN_MAX ),
2250
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002251 REG_VARIABLE( CFG_ENABLE_DYNAMIC_DTIM_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002252 hdd_config_t, enableDynamicDTIM,
2253 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2254 CFG_ENABLE_DYNAMIC_DTIM_DEFAULT,
2255 CFG_ENABLE_DYNAMIC_DTIM_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002256 CFG_ENABLE_DYNAMIC_DTIM_MAX ),
2257
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002258 REG_VARIABLE( CFG_ENABLE_AUTOMATIC_TX_POWER_CONTROL_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002259 hdd_config_t, enableAutomaticTxPowerControl,
2260 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2261 CFG_ENABLE_AUTOMATIC_TX_POWER_CONTROL_DEFAULT,
2262 CFG_ENABLE_AUTOMATIC_TX_POWER_CONTROL_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002263 CFG_ENABLE_AUTOMATIC_TX_POWER_CONTROL_MAX ),
2264
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002265 REG_VARIABLE( CFG_SHORT_GI_40MHZ_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002266 hdd_config_t, ShortGI40MhzEnable,
2267 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2268 CFG_SHORT_GI_40MHZ_DEFAULT,
2269 CFG_SHORT_GI_40MHZ_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002270 CFG_SHORT_GI_40MHZ_MAX ),
2271
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002272 REG_DYNAMIC_VARIABLE( CFG_REPORT_MAX_LINK_SPEED, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002273 hdd_config_t, reportMaxLinkSpeed,
2274 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2275 CFG_REPORT_MAX_LINK_SPEED_DEFAULT,
2276 CFG_REPORT_MAX_LINK_SPEED_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002277 CFG_REPORT_MAX_LINK_SPEED_MAX,
2278 NULL, 0 ),
2279
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002280 REG_DYNAMIC_VARIABLE( CFG_LINK_SPEED_RSSI_HIGH, WLAN_PARAM_SignedInteger,
Jeff Johnson295189b2012-06-20 16:38:30 -07002281 hdd_config_t, linkSpeedRssiHigh,
2282 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2283 CFG_LINK_SPEED_RSSI_HIGH_DEFAULT,
2284 CFG_LINK_SPEED_RSSI_HIGH_MIN,
2285 CFG_LINK_SPEED_RSSI_HIGH_MAX,
2286 NULL, 0 ),
2287
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002288 REG_DYNAMIC_VARIABLE( CFG_LINK_SPEED_RSSI_MID, WLAN_PARAM_SignedInteger,
Madan Mohan Koyyalamudi8df78d52012-11-02 12:30:06 -07002289 hdd_config_t, linkSpeedRssiMid,
2290 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2291 CFG_LINK_SPEED_RSSI_MID_DEFAULT,
2292 CFG_LINK_SPEED_RSSI_MID_MIN,
2293 CFG_LINK_SPEED_RSSI_MID_MAX,
2294 NULL, 0 ),
2295
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002296 REG_DYNAMIC_VARIABLE( CFG_LINK_SPEED_RSSI_LOW, WLAN_PARAM_SignedInteger,
Jeff Johnson295189b2012-06-20 16:38:30 -07002297 hdd_config_t, linkSpeedRssiLow,
2298 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2299 CFG_LINK_SPEED_RSSI_LOW_DEFAULT,
2300 CFG_LINK_SPEED_RSSI_LOW_MIN,
2301 CFG_LINK_SPEED_RSSI_LOW_MAX,
2302 NULL, 0 ),
2303
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002304#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002305 REG_DYNAMIC_VARIABLE( CFG_ROAM_PREFER_5GHZ, WLAN_PARAM_Integer,
Madan Mohan Koyyalamudid5026072012-11-30 14:56:21 -08002306 hdd_config_t, nRoamPrefer5GHz,
2307 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2308 CFG_ROAM_PREFER_5GHZ_DEFAULT,
2309 CFG_ROAM_PREFER_5GHZ_MIN,
2310 CFG_ROAM_PREFER_5GHZ_MAX,
2311 cbNotifySetRoamPrefer5GHz, 0 ),
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07002312
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002313 REG_DYNAMIC_VARIABLE( CFG_ROAM_INTRA_BAND, WLAN_PARAM_Integer,
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07002314 hdd_config_t, nRoamIntraBand,
2315 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2316 CFG_ROAM_INTRA_BAND_DEFAULT,
2317 CFG_ROAM_INTRA_BAND_MIN,
2318 CFG_ROAM_INTRA_BAND_MAX,
2319 cbNotifySetRoamIntraBand, 0 ),
2320
Varun Reddy Yeturu920df212013-05-22 08:07:23 -07002321 REG_DYNAMIC_VARIABLE( CFG_ROAM_SCAN_N_PROBES, WLAN_PARAM_Integer,
2322 hdd_config_t, nProbes,
2323 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2324 CFG_ROAM_SCAN_N_PROBES_DEFAULT,
2325 CFG_ROAM_SCAN_N_PROBES_MIN,
2326 CFG_ROAM_SCAN_N_PROBES_MAX,
2327 cbNotifySetRoamScanNProbes, 0 ),
2328
2329 REG_DYNAMIC_VARIABLE( CFG_ROAM_SCAN_HOME_AWAY_TIME, WLAN_PARAM_Integer,
2330 hdd_config_t, nRoamScanHomeAwayTime,
2331 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2332 CFG_ROAM_SCAN_HOME_AWAY_TIME_DEFAULT,
2333 CFG_ROAM_SCAN_HOME_AWAY_TIME_MIN,
2334 CFG_ROAM_SCAN_HOME_AWAY_TIME_MAX,
2335 cbNotifySetRoamScanHomeAwayTime, 0 ),
2336
Madan Mohan Koyyalamudid5026072012-11-30 14:56:21 -08002337#endif
2338
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002339 REG_VARIABLE( CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_NAME, WLAN_PARAM_Integer,
Jeff Johnson295189b2012-06-20 16:38:30 -07002340 hdd_config_t, isP2pDeviceAddrAdministrated,
2341 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2342 CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_DEFAULT,
2343 CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MIN,
2344 CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002345
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002346 REG_VARIABLE( CFG_ENABLE_MCC_ENABLED_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002347 hdd_config_t, enableMCC,
2348 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2349 CFG_ENABLE_MCC_ENABLED_DEFAULT,
2350 CFG_ENABLE_MCC_ENABLED_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002351 CFG_ENABLE_MCC_ENABLED_MAX ),
2352
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002353 REG_VARIABLE( CFG_ALLOW_MCC_GO_DIFF_BI_NAME, WLAN_PARAM_Integer,
Mohit Khanna7ed53f02012-09-11 17:52:10 -07002354 hdd_config_t, allowMCCGODiffBI,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002355 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2356 CFG_ALLOW_MCC_GO_DIFF_BI_DEFAULT,
2357 CFG_ALLOW_MCC_GO_DIFF_BI_MIN,
2358 CFG_ALLOW_MCC_GO_DIFF_BI_MAX ),
Mohit Khanna7ed53f02012-09-11 17:52:10 -07002359
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002360 REG_VARIABLE( CFG_THERMAL_MIGRATION_ENABLE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002361 hdd_config_t, thermalMitigationEnable,
2362 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2363 CFG_THERMAL_MIGRATION_ENABLE_DEFAULT,
2364 CFG_THERMAL_MIGRATION_ENABLE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002365 CFG_THERMAL_MIGRATION_ENABLE_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002366
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002367 REG_VARIABLE( CFG_ENABLE_MODULATED_DTIM_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002368 hdd_config_t, enableModulatedDTIM,
2369 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2370 CFG_ENABLE_MODULATED_DTIM_DEFAULT,
2371 CFG_ENABLE_MODULATED_DTIM_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002372 CFG_ENABLE_MODULATED_DTIM_MAX ),
2373
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002374 REG_VARIABLE( CFG_MC_ADDR_LIST_ENABLE_NAME, WLAN_PARAM_Integer,
Jeff Johnsond13512a2012-07-17 11:42:19 -07002375 hdd_config_t, fEnableMCAddrList,
2376 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2377 CFG_MC_ADDR_LIST_ENABLE_DEFAULT,
2378 CFG_MC_ADDR_LIST_ENABLE_MIN,
2379 CFG_MC_ADDR_LIST_ENABLE_MAX ),
2380
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002381#ifdef WLAN_FEATURE_11AC
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002382 REG_VARIABLE( CFG_VHT_CHANNEL_WIDTH, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002383 hdd_config_t, vhtChannelWidth,
2384 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
2385 CFG_VHT_CHANNEL_WIDTH_DEFAULT,
2386 CFG_VHT_CHANNEL_WIDTH_MIN,
Jeff Johnsone7245742012-09-05 17:12:55 -07002387 CFG_VHT_CHANNEL_WIDTH_MAX),
2388
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002389 REG_VARIABLE( CFG_VHT_ENABLE_RX_MCS_8_9, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002390 hdd_config_t, vhtRxMCS,
2391 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
2392 CFG_VHT_ENABLE_RX_MCS_8_9_DEFAULT,
2393 CFG_VHT_ENABLE_RX_MCS_8_9_MIN,
Jeff Johnsone7245742012-09-05 17:12:55 -07002394 CFG_VHT_ENABLE_RX_MCS_8_9_MAX),
2395
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002396 REG_VARIABLE( CFG_VHT_ENABLE_TX_MCS_8_9, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002397 hdd_config_t, vhtTxMCS,
2398 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
2399 CFG_VHT_ENABLE_TX_MCS_8_9_DEFAULT,
2400 CFG_VHT_ENABLE_TX_MCS_8_9_MIN,
Jeff Johnsone7245742012-09-05 17:12:55 -07002401 CFG_VHT_ENABLE_TX_MCS_8_9_MAX),
Abhishek Singhaa63bf22014-10-30 17:09:45 +05302402
2403 REG_VARIABLE( CFG_VHT_AMPDU_LEN_EXP_NAME, WLAN_PARAM_Integer,
2404 hdd_config_t, gVhtMaxAmpduLenExp,
2405 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2406 CFG_VHT_AMPDU_LEN_EXP_DEFAULT,
2407 CFG_VHT_AMPDU_LEN_EXP_MIN,
2408 CFG_VHT_AMPDU_LEN_EXP_MAX ),
Jeff Johnsone7245742012-09-05 17:12:55 -07002409#endif
2410
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002411 REG_VARIABLE( CFG_ENABLE_FIRST_SCAN_2G_ONLY_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002412 hdd_config_t, enableFirstScan2GOnly,
2413 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2414 CFG_ENABLE_FIRST_SCAN_2G_ONLY_DEFAULT,
2415 CFG_ENABLE_FIRST_SCAN_2G_ONLY_MIN,
Jeff Johnsone7245742012-09-05 17:12:55 -07002416 CFG_ENABLE_FIRST_SCAN_2G_ONLY_MAX ),
2417
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002418 REG_VARIABLE( CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002419 hdd_config_t, skipDfsChnlInP2pSearch,
2420 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2421 CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_DEFAULT,
2422 CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_MIN,
Jeff Johnsone7245742012-09-05 17:12:55 -07002423 CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_MAX ),
2424
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002425 REG_VARIABLE( CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002426 hdd_config_t, ignoreDynamicDtimInP2pMode,
2427 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2428 CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_DEFAULT,
2429 CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_MIN,
Jeff Johnsone7245742012-09-05 17:12:55 -07002430 CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_MAX ),
2431
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002432 REG_VARIABLE( CFG_NUM_BUFF_ADVERT_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002433 hdd_config_t,numBuffAdvert ,
2434 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
2435 CFG_NUM_BUFF_ADVERT_DEFAULT,
2436 CFG_NUM_BUFF_ADVERT_MIN,
Madan Mohan Koyyalamudidd11eaf2012-11-02 16:04:21 -07002437 CFG_NUM_BUFF_ADVERT_MAX ),
Madan Mohan Koyyalamudi3f65e312012-11-06 15:31:12 -08002438
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002439 REG_VARIABLE( CFG_MCC_CONFIG_PARAM_NAME, WLAN_PARAM_Integer,
Madan Mohan Koyyalamudid5f04ca2012-11-06 15:51:26 -08002440 hdd_config_t, configMccParam,
2441 VAR_FLAGS_OPTIONAL,
2442 CFG_MCC_CONFIG_PARAM_DEFAULT,
2443 CFG_MCC_CONFIG_PARAM_MIN,
2444 CFG_MCC_CONFIG_PARAM_MAX ),
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002445 REG_VARIABLE( CFG_ENABLE_RX_STBC, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002446 hdd_config_t, enableRxSTBC,
2447 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2448 CFG_ENABLE_RX_STBC_DEFAULT,
2449 CFG_ENABLE_RX_STBC_MIN,
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05302450 CFG_ENABLE_RX_STBC_MAX ),
Mohit Khanna698ba2a2012-12-04 15:08:18 -08002451#ifdef FEATURE_WLAN_TDLS
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002452 REG_VARIABLE( CFG_TDLS_SUPPORT_ENABLE, WLAN_PARAM_Integer,
Mohit Khanna698ba2a2012-12-04 15:08:18 -08002453 hdd_config_t, fEnableTDLSSupport,
2454 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2455 CFG_TDLS_SUPPORT_ENABLE_DEFAULT,
2456 CFG_TDLS_SUPPORT_ENABLE_MIN,
2457 CFG_TDLS_SUPPORT_ENABLE_MAX ),
Hoonki Leebf870f32013-01-19 15:53:30 +05302458
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002459 REG_VARIABLE( CFG_TDLS_IMPLICIT_TRIGGER, WLAN_PARAM_Integer,
Hoonki Leebf870f32013-01-19 15:53:30 +05302460 hdd_config_t, fEnableTDLSImplicitTrigger,
2461 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2462 CFG_TDLS_IMPLICIT_TRIGGER_DEFAULT,
2463 CFG_TDLS_IMPLICIT_TRIGGER_MIN,
2464 CFG_TDLS_IMPLICIT_TRIGGER_MAX ),
2465
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002466 REG_VARIABLE( CFG_TDLS_TX_STATS_PERIOD, WLAN_PARAM_Integer,
Hoonki Leebf870f32013-01-19 15:53:30 +05302467 hdd_config_t, fTDLSTxStatsPeriod,
2468 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2469 CFG_TDLS_TX_STATS_PERIOD_DEFAULT,
2470 CFG_TDLS_TX_STATS_PERIOD_MIN,
2471 CFG_TDLS_TX_STATS_PERIOD_MAX ),
2472
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002473 REG_VARIABLE( CFG_TDLS_TX_PACKET_THRESHOLD, WLAN_PARAM_Integer,
Hoonki Leebf870f32013-01-19 15:53:30 +05302474 hdd_config_t, fTDLSTxPacketThreshold,
2475 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2476 CFG_TDLS_TX_PACKET_THRESHOLD_DEFAULT,
2477 CFG_TDLS_TX_PACKET_THRESHOLD_MIN,
2478 CFG_TDLS_TX_PACKET_THRESHOLD_MAX ),
2479
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002480 REG_VARIABLE( CFG_TDLS_DISCOVERY_PERIOD, WLAN_PARAM_Integer,
Hoonki Leebf870f32013-01-19 15:53:30 +05302481 hdd_config_t, fTDLSDiscoveryPeriod,
2482 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2483 CFG_TDLS_DISCOVERY_PERIOD_DEFAULT,
2484 CFG_TDLS_DISCOVERY_PERIOD_MIN,
2485 CFG_TDLS_DISCOVERY_PERIOD_MAX ),
2486
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002487 REG_VARIABLE( CFG_TDLS_MAX_DISCOVERY_ATTEMPT, WLAN_PARAM_Integer,
Hoonki Leebf870f32013-01-19 15:53:30 +05302488 hdd_config_t, fTDLSMaxDiscoveryAttempt,
2489 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2490 CFG_TDLS_MAX_DISCOVERY_ATTEMPT_DEFAULT,
2491 CFG_TDLS_MAX_DISCOVERY_ATTEMPT_MIN,
2492 CFG_TDLS_MAX_DISCOVERY_ATTEMPT_MAX ),
2493
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002494 REG_VARIABLE( CFG_TDLS_IDLE_TIMEOUT, WLAN_PARAM_Integer,
Chilam Ng01120412013-02-19 18:32:21 -08002495 hdd_config_t, fTDLSIdleTimeout,
Hoonki Leebf870f32013-01-19 15:53:30 +05302496 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
Chilam Ng01120412013-02-19 18:32:21 -08002497 CFG_TDLS_IDLE_TIMEOUT_DEFAULT,
2498 CFG_TDLS_IDLE_TIMEOUT_MIN,
2499 CFG_TDLS_IDLE_TIMEOUT_MAX ),
2500
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002501 REG_VARIABLE( CFG_TDLS_IDLE_PACKET_THRESHOLD, WLAN_PARAM_Integer,
Chilam Ng01120412013-02-19 18:32:21 -08002502 hdd_config_t, fTDLSIdlePacketThreshold,
2503 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2504 CFG_TDLS_IDLE_PACKET_THRESHOLD_DEFAULT,
2505 CFG_TDLS_IDLE_PACKET_THRESHOLD_MIN,
2506 CFG_TDLS_IDLE_PACKET_THRESHOLD_MAX ),
Hoonki Leebf870f32013-01-19 15:53:30 +05302507
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002508 REG_VARIABLE( CFG_TDLS_RSSI_HYSTERESIS, WLAN_PARAM_Integer,
Chilam Ng01120412013-02-19 18:32:21 -08002509 hdd_config_t, fTDLSRSSIHysteresis,
Hoonki Leebf870f32013-01-19 15:53:30 +05302510 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2511 CFG_TDLS_RSSI_HYSTERESIS_DEFAULT,
2512 CFG_TDLS_RSSI_HYSTERESIS_MIN,
2513 CFG_TDLS_RSSI_HYSTERESIS_MAX ),
Chilam Ng01120412013-02-19 18:32:21 -08002514
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002515 REG_VARIABLE( CFG_TDLS_RSSI_TRIGGER_THRESHOLD, WLAN_PARAM_SignedInteger,
Chilam Ng01120412013-02-19 18:32:21 -08002516 hdd_config_t, fTDLSRSSITriggerThreshold,
2517 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2518 CFG_TDLS_RSSI_TRIGGER_THRESHOLD_DEFAULT,
2519 CFG_TDLS_RSSI_TRIGGER_THRESHOLD_MIN,
2520 CFG_TDLS_RSSI_TRIGGER_THRESHOLD_MAX ),
2521
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002522 REG_VARIABLE( CFG_TDLS_RSSI_TEARDOWN_THRESHOLD, WLAN_PARAM_SignedInteger,
Chilam Ng01120412013-02-19 18:32:21 -08002523 hdd_config_t, fTDLSRSSITeardownThreshold,
2524 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2525 CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_DEFAULT,
2526 CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_MIN,
2527 CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_MAX ),
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05302528
2529REG_VARIABLE( CFG_TDLS_QOS_WMM_UAPSD_MASK_NAME , WLAN_PARAM_HexInteger,
2530 hdd_config_t, fTDLSUapsdMask,
2531 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2532 CFG_TDLS_QOS_WMM_UAPSD_MASK_DEFAULT,
2533 CFG_TDLS_QOS_WMM_UAPSD_MASK_MIN,
2534 CFG_TDLS_QOS_WMM_UAPSD_MASK_MAX ),
2535
2536REG_VARIABLE( CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE, WLAN_PARAM_Integer,
2537 hdd_config_t, fEnableTDLSBufferSta,
2538 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2539 CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_DEFAULT,
2540 CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_MIN,
2541 CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_MAX ),
2542
Naresh Jayaramf73f3762014-02-04 16:13:20 +05302543REG_VARIABLE( CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE, WLAN_PARAM_Integer,
2544 hdd_config_t, fEnableTDLSOffChannel,
2545 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2546 CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_DEFAULT,
2547 CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_MIN,
2548 CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_MAX ),
2549
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05302550REG_VARIABLE( CFG_TDLS_PUAPSD_INACTIVITY_TIME, WLAN_PARAM_Integer,
2551 hdd_config_t, fTDLSPuapsdInactivityTimer,
2552 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2553 CFG_TDLS_PUAPSD_INACTIVITY_TIME_DEFAULT,
2554 CFG_TDLS_PUAPSD_INACTIVITY_TIME_MIN,
2555 CFG_TDLS_PUAPSD_INACTIVITY_TIME_MAX ),
2556
2557REG_VARIABLE( CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD, WLAN_PARAM_Integer,
2558 hdd_config_t, fTDLSRxFrameThreshold,
2559 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2560 CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_DEFAULT,
2561 CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_MIN,
2562 CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_MAX ),
Sunil Dutt41de4e22013-11-14 18:09:02 +05302563
2564REG_VARIABLE( CFG_TDLS_EXTERNAL_CONTROL, WLAN_PARAM_Integer,
2565 hdd_config_t, fTDLSExternalControl,
2566 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2567 CFG_TDLS_EXTERNAL_CONTROL_DEFAULT,
2568 CFG_TDLS_EXTERNAL_CONTROL_MIN,
2569 CFG_TDLS_EXTERNAL_CONTROL_MAX ),
Pradeep Reddy POTTETIa9c80d52014-05-09 18:05:29 +05302570
2571REG_VARIABLE( CFG_TDLS_WMM_MODE_ENABLE, WLAN_PARAM_Integer,
2572 hdd_config_t, fEnableTDLSWmmMode,
2573 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2574 CFG_TDLS_WMM_MODE_ENABLE_DEFAULT,
2575 CFG_TDLS_WMM_MODE_ENABLE_MIN,
2576 CFG_TDLS_WMM_MODE_ENABLE_MAX ),
Pradeep Reddy POTTETIedaeb5f2014-05-22 23:34:41 +05302577
2578REG_VARIABLE( CFG_TDLS_SCAN_COEX_SUPPORT_ENABLE, WLAN_PARAM_Integer,
2579 hdd_config_t, fEnableTDLSScanCoexSupport,
2580 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2581 CFG_TDLS_SCAN_COEX_SUPPORT_ENABLE_DEFAULT,
2582 CFG_TDLS_SCAN_COEX_SUPPORT_ENABLE_MIN,
2583 CFG_TDLS_SCAN_COEX_SUPPORT_ENABLE_MAX ),
Agarwal Ashishef54a182014-12-16 15:07:31 +05302584
2585REG_VARIABLE( CFG_TDLS_SCAN_ENABLE, WLAN_PARAM_Integer,
2586 hdd_config_t, fEnableTDLSScan,
2587 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2588 CFG_TDLS_SCAN_ENABLE_DEFAULT,
2589 CFG_TDLS_SCAN_ENABLE_MIN,
2590 CFG_TDLS_SCAN_ENABLE_MAX ),
Mohit Khanna698ba2a2012-12-04 15:08:18 -08002591#endif
Madan Mohan Koyyalamudi0d40e662012-12-07 14:24:14 -08002592
Dino Mycledf0a5d92014-07-04 09:41:55 +05302593#ifdef WLAN_FEATURE_LINK_LAYER_STATS
2594REG_VARIABLE( CFG_LINK_LAYER_STATS_ENABLE, WLAN_PARAM_Integer,
2595 hdd_config_t, fEnableLLStats,
2596 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2597 CFG_LINK_LAYER_STATS_ENABLE_DEFAULT,
2598 CFG_LINK_LAYER_STATS_ENABLE_MIN,
2599 CFG_LINK_LAYER_STATS_ENABLE_MAX ),
2600#endif
Dino Myclee8843b32014-07-04 14:21:45 +05302601#ifdef WLAN_FEATURE_EXTSCAN
2602REG_VARIABLE( CFG_EXTSCAN_ENABLE, WLAN_PARAM_Integer,
2603 hdd_config_t, fEnableEXTScan,
2604 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2605 CFG_EXTSCAN_ENABLE_DEFAULT,
2606 CFG_EXTSCAN_ENABLE_MIN,
2607 CFG_EXTSCAN_ENABLE_MAX ),
2608#endif
Dino Mycledf0a5d92014-07-04 09:41:55 +05302609
Gopichand Nakkala976e3252013-01-03 15:45:56 -08002610#ifdef WLAN_SOFTAP_VSTA_FEATURE
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002611 REG_VARIABLE( CFG_VSTA_SUPPORT_ENABLE, WLAN_PARAM_Integer,
Gopichand Nakkala976e3252013-01-03 15:45:56 -08002612 hdd_config_t, fEnableVSTASupport,
2613 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2614 CFG_VSTA_SUPPORT_ENABLE_DEFAULT,
2615 CFG_VSTA_SUPPORT_ENABLE_MIN,
2616 CFG_VSTA_SUPPORT_ENABLE_MAX ),
2617#endif
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002618 REG_VARIABLE( CFG_ENABLE_LPWR_IMG_TRANSITION_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002619 hdd_config_t, enableLpwrImgTransition,
2620 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2621 CFG_ENABLE_LPWR_IMG_TRANSITION_DEFAULT,
2622 CFG_ENABLE_LPWR_IMG_TRANSITION_MIN,
Madan Mohan Koyyalamudi0d40e662012-12-07 14:24:14 -08002623 CFG_ENABLE_LPWR_IMG_TRANSITION_MAX ),
2624
Yathish9f22e662012-12-10 14:21:35 -08002625#ifdef WLAN_ACTIVEMODE_OFFLOAD_FEATURE
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002626 REG_VARIABLE( CFG_ACTIVEMODE_OFFLOAD_ENABLE, WLAN_PARAM_Integer,
Yathish9f22e662012-12-10 14:21:35 -08002627 hdd_config_t, fEnableActiveModeOffload,
2628 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2629 CFG_ACTIVEMODE_OFFLOAD_ENABLE_DEFAULT,
2630 CFG_ACTIVEMODE_OFFLOAD_ENABLE_MIN,
2631 CFG_ACTIVEMODE_OFFLOAD_ENABLE_MAX ),
2632#endif
Sandeep Puligilla2b6dc632012-12-17 14:44:16 -08002633
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002634 REG_VARIABLE( CFG_SCAN_AGING_PARAM_NAME, WLAN_PARAM_Integer,
Sandeep Puligilla2b6dc632012-12-17 14:44:16 -08002635 hdd_config_t, scanAgingTimeout,
2636 VAR_FLAGS_OPTIONAL,
2637 CFG_SCAN_AGING_PARAM_DEFAULT,
2638 CFG_SCAN_AGING_PARAM_MIN,
2639 CFG_SCAN_AGING_PARAM_MAX ),
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08002640
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002641 REG_VARIABLE( CFG_TX_LDPC_ENABLE_FEATURE, WLAN_PARAM_Integer,
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08002642 hdd_config_t, enableTxLdpc,
2643 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2644 CFG_TX_LDPC_ENABLE_FEATURE_DEFAULT,
2645 CFG_TX_LDPC_ENABLE_FEATURE_MIN,
2646 CFG_TX_LDPC_ENABLE_FEATURE_MAX ),
2647
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002648 REG_VARIABLE( CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_NAME, WLAN_PARAM_Integer,
Madan Mohan Koyyalamudi69b34182013-01-16 08:51:40 +05302649 hdd_config_t, enableMCCAdaptiveScheduler,
2650 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2651 CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_DEFAULT,
2652 CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_MIN,
2653 CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_MAX ),
2654
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002655 REG_VARIABLE( CFG_ANDRIOD_POWER_SAVE_NAME, WLAN_PARAM_Integer,
Madan Mohan Koyyalamudi69b34182013-01-16 08:51:40 +05302656 hdd_config_t, isAndroidPsEn,
2657 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2658 CFG_ANDRIOD_POWER_SAVE_DEFAULT,
2659 CFG_ANDRIOD_POWER_SAVE_MIN,
2660 CFG_ANDRIOD_POWER_SAVE_MAX),
2661
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002662 REG_VARIABLE( CFG_IBSS_ADHOC_CHANNEL_5GHZ_NAME, WLAN_PARAM_Integer,
Shailender Karmuchia734f332013-04-19 14:02:48 -07002663 hdd_config_t, AdHocChannel5G,
2664 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2665 CFG_IBSS_ADHOC_CHANNEL_5GHZ_DEFAULT,
2666 CFG_IBSS_ADHOC_CHANNEL_5GHZ_MIN,
2667 CFG_IBSS_ADHOC_CHANNEL_5GHZ_MAX),
2668
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002669 REG_VARIABLE( CFG_IBSS_ADHOC_CHANNEL_24GHZ_NAME, WLAN_PARAM_Integer,
Shailender Karmuchia734f332013-04-19 14:02:48 -07002670 hdd_config_t, AdHocChannel24G,
2671 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2672 CFG_IBSS_ADHOC_CHANNEL_24GHZ_DEFAULT,
2673 CFG_IBSS_ADHOC_CHANNEL_24GHZ_MIN,
2674 CFG_IBSS_ADHOC_CHANNEL_24GHZ_MAX),
2675
2676
Shailender Karmuchi08f87c22013-01-17 12:51:24 -08002677#ifdef WLAN_FEATURE_11AC
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002678 REG_VARIABLE( CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE, WLAN_PARAM_Integer,
Shailender Karmuchi08f87c22013-01-17 12:51:24 -08002679 hdd_config_t, enableTxBF,
2680 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2681 CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_DEFAULT,
2682 CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_MIN,
2683 CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_MAX ),
Shailender Karmuchicc3fe442013-02-16 18:18:33 -08002684
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002685 REG_VARIABLE( CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED, WLAN_PARAM_Integer,
Shailender Karmuchicc3fe442013-02-16 18:18:33 -08002686 hdd_config_t, txBFCsnValue,
2687 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2688 CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_DEFAULT,
2689 CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_MIN,
2690 CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_MAX ),
Abhishek Singh6d5d29c2014-07-03 14:25:22 +05302691 REG_VARIABLE( CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE, WLAN_PARAM_Integer,
2692 hdd_config_t, enableMuBformee,
2693 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2694 CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_DEFAULT,
2695 CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_MIN,
2696 CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_MAX ),
Shailender Karmuchicc3fe442013-02-16 18:18:33 -08002697
Shailender Karmuchi08f87c22013-01-17 12:51:24 -08002698#endif
Madan Mohan Koyylamudi64267f72013-02-05 14:07:08 +05302699
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002700 REG_VARIABLE( CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_NAME, WLAN_PARAM_Integer,
Madan Mohan Koyylamudi64267f72013-02-05 14:07:08 +05302701 hdd_config_t, sapAllowAllChannel,
2702 VAR_FLAGS_OPTIONAL,
2703 CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_DEFAULT,
2704 CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_MIN,
2705 CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_MAX ),
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002706
Leela V Kiran Kumar Reddy Chiralab1f7d342013-02-11 00:27:02 -08002707#ifdef WLAN_FEATURE_11AC
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002708 REG_VARIABLE( CFG_DISABLE_LDPC_WITH_TXBF_AP, WLAN_PARAM_Integer,
Leela V Kiran Kumar Reddy Chiralab1f7d342013-02-11 00:27:02 -08002709 hdd_config_t, disableLDPCWithTxbfAP,
2710 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2711 CFG_DISABLE_LDPC_WITH_TXBF_AP_DEFAULT,
2712 CFG_DISABLE_LDPC_WITH_TXBF_AP_MIN,
2713 CFG_DISABLE_LDPC_WITH_TXBF_AP_MAX ),
2714#endif
Tushnim Bhattacharyya9cdf6082013-04-21 16:33:30 -07002715
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002716 REG_VARIABLE_STRING( CFG_LIST_OF_NON_DFS_COUNTRY_CODE, WLAN_PARAM_String,
Tushnim Bhattacharyya9cdf6082013-04-21 16:33:30 -07002717 hdd_config_t, listOfNonDfsCountryCode,
2718 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2719 (void *)CFG_LIST_OF_NON_DFS_COUNTRY_CODE_DEFAULT),
2720
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -07002721 REG_DYNAMIC_VARIABLE( CFG_ENABLE_SSR, WLAN_PARAM_Integer,
2722 hdd_config_t, enableSSR,
2723 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2724 CFG_ENABLE_SSR_DEFAULT,
2725 CFG_ENABLE_SSR_MIN,
2726 CFG_ENABLE_SSR_MAX,
2727 cbNotifySetEnableSSR, 0 ),
Gopichand Nakkaladacbcb52013-04-18 16:41:54 +05302728
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002729 REG_VARIABLE_STRING( CFG_LIST_OF_NON_11AC_COUNTRY_CODE, WLAN_PARAM_String,
Gopichand Nakkaladacbcb52013-04-18 16:41:54 +05302730 hdd_config_t, listOfNon11acCountryCode,
2731 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2732 (void *)CFG_LIST_OF_NON_11AC_COUNTRY_CODE_DEFAULT),
2733
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002734 REG_VARIABLE(CFG_MAX_MEDIUM_TIME, WLAN_PARAM_Integer,
Gopichand Nakkala42bc89e2013-05-27 12:49:09 +05302735 hdd_config_t, cfgMaxMediumTime,
2736 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2737 CFG_MAX_MEDIUM_TIME_STADEFAULT,
2738 CFG_MAX_MEDIUM_TIME_STAMIN,
2739 CFG_MAX_MEDIUM_TIME_STAMAX ),
2740
Leo Chang64d68bc2013-06-04 15:40:52 -07002741 REG_VARIABLE( CFG_ENABLE_TRAFFIC_MONITOR, WLAN_PARAM_Integer,
2742 hdd_config_t, enableTrafficMonitor,
2743 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2744 CFG_ENABLE_TRAFFIC_MONITOR_DEFAULT,
2745 CFG_ENABLE_TRAFFIC_MONITOR_MIN,
2746 CFG_ENABLE_TRAFFIC_MONITOR_MAX),
2747
2748 REG_VARIABLE( CFG_TRAFFIC_IDLE_TIMEOUT, WLAN_PARAM_Integer,
2749 hdd_config_t, trafficIdleTimeout,
2750 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2751 CFG_TRAFFIC_IDLE_TIMEOUT_DEFAULT,
2752 CFG_TRAFFIC_IDLE_TIMEOUT_MIN,
2753 CFG_TRAFFIC_IDLE_TIMEOUT_MAX),
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002754
2755#ifdef WLAN_FEATURE_11AC
2756 REG_VARIABLE( CFG_ENABLE_VHT_FOR_24GHZ_NAME, WLAN_PARAM_Integer,
2757 hdd_config_t, enableVhtFor24GHzBand,
2758 VAR_FLAGS_OPTIONAL,
2759 CFG_ENABLE_VHT_FOR_24GHZ_DEFAULT,
2760 CFG_ENABLE_VHT_FOR_24GHZ_MIN,
2761 CFG_ENABLE_VHT_FOR_24GHZ_MAX),
2762#endif
Gopichand Nakkala154bda22013-06-11 17:41:22 +05302763
2764 REG_VARIABLE( CFG_SCAN_OFFLOAD_NAME, WLAN_PARAM_Integer,
2765 hdd_config_t, fScanOffload,
2766 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2767 CFG_SCAN_OFFLOAD_DEFAULT,
2768 CFG_SCAN_OFFLOAD_DISABLE,
2769 CFG_SCAN_OFFLOAD_ENABLE ),
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07002770
2771#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
2772 REG_DYNAMIC_VARIABLE( CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY, WLAN_PARAM_Integer,
2773 hdd_config_t, bFastRoamInConIniFeatureEnabled,
2774 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2775 CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_DEFAULT,
2776 CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_MIN,
2777 CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_MAX,
2778 cbNotifySetEnableFastRoamInConcurrency, 0 ),
2779#endif
2780
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07002781 REG_VARIABLE( CFG_ENABLE_ADAPT_RX_DRAIN_NAME, WLAN_PARAM_Integer,
2782 hdd_config_t, fEnableAdaptRxDrain,
2783 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK ,
2784 CFG_ENABLE_ADAPT_RX_DRAIN_DEFAULT,
2785 CFG_ENABLE_ADAPT_RX_DRAIN_MIN,
2786 CFG_ENABLE_ADAPT_RX_DRAIN_MAX),
2787
Sudhir Sattayappa Kohalli37620692013-08-05 14:02:26 -07002788 REG_VARIABLE( CFG_DYNAMIC_SPLIT_SCAN_NAME, WLAN_PARAM_Integer,
2789 hdd_config_t, dynSplitscan,
2790 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2791 CFG_DYNAMIC_SPLIT_SCAN_DEFAULT,
2792 CFG_DYNAMIC_SPLIT_SCAN_MIN,
2793 CFG_DYNAMIC_SPLIT_SCAN_MAX ),
2794
2795 REG_VARIABLE( CFG_SPLIT_SCAN_TRAFFIC_MONITOR_THRSHLD_NAME, WLAN_PARAM_Integer,
2796 hdd_config_t, txRxThresholdForSplitScan,
2797 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2798 CFG_SPLIT_SCAN_TRAFFIC_MONITOR_THRSHLD_DEFAULT,
2799 CFG_SPLIT_SCAN_TRAFFIC_MONITOR_THRSHLD_MIN,
2800 CFG_SPLIT_SCAN_TRAFFIC_MONITOR_THRSHLD_MAX ),
2801
2802 REG_VARIABLE( CFG_SPLIT_SCAN_TRAFFIC_MONITOR_TIMER_NAME, WLAN_PARAM_Integer,
2803 hdd_config_t, trafficMntrTmrForSplitScan,
2804 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2805 CFG_SPLIT_SCAN_TRAFFIC_MONITOR_TIMER_DEFAULT,
2806 CFG_SPLIT_SCAN_TRAFFIC_MONITOR_TIMER_MIN,
2807 CFG_SPLIT_SCAN_TRAFFIC_MONITOR_TIMER_MAX ),
2808
Yue Ma0fd23872013-08-01 15:56:47 -07002809 REG_VARIABLE( CFG_FLEX_CONNECT_POWER_FACTOR_NAME, WLAN_PARAM_Integer,
2810 hdd_config_t, flexConnectPowerFactor,
2811 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_MINMAX,
2812 CFG_FLEX_CONNECT_POWER_FACTOR_DEFAULT,
2813 CFG_FLEX_CONNECT_POWER_FACTOR_MIN,
2814 CFG_FLEX_CONNECT_POWER_FACTOR_MAX ),
2815
Ravi Joshid2ca7c42013-07-23 08:37:49 -07002816 REG_VARIABLE( CFG_ENABLE_HEART_BEAT_OFFLOAD, WLAN_PARAM_Integer,
2817 hdd_config_t, enableIbssHeartBeatOffload,
2818 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2819 CFG_ENABLE_HEART_BEAT_OFFLOAD_DEFAULT,
2820 CFG_ENABLE_HEART_BEAT_OFFLOAD_MIN,
2821 CFG_ENABLE_HEART_BEAT_OFFLOAD_MAX),
2822
Madan Mohan Koyyalamudica454572013-08-07 19:57:03 +05302823 REG_VARIABLE( CFG_ANTENNA_DIVERSITY_PARAM_NAME, WLAN_PARAM_Integer,
2824 hdd_config_t, antennaDiversity,
2825 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2826 CFG_ANTENNA_DIVERSITY_PARAM_DEFAULT,
2827 CFG_ANTENNA_DIVERSITY_PARAM_MIN,
2828 CFG_ANTENNA_DIVERSITY_PARAM_MAX),
Madan Mohan Koyyalamudid9383fd2013-08-13 09:27:30 +05302829
2830 REG_VARIABLE( CFG_ENABLE_SNR_MONITORING_NAME, WLAN_PARAM_Integer,
2831 hdd_config_t, fEnableSNRMonitoring,
2832 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK ,
2833 CFG_ENABLE_SNR_MONITORING_DEFAULT,
2834 CFG_ENABLE_SNR_MONITORING_MIN,
2835 CFG_ENABLE_SNR_MONITORING_MAX),
2836
Madan Mohan Koyyalamudi1d16f462013-08-27 16:25:34 +05302837#ifdef FEATURE_WLAN_SCAN_PNO
Hardik Kantilal Patel3dfd8792013-11-13 20:34:57 +05302838 REG_VARIABLE( CFG_PNO_SCAN_SUPPORT, WLAN_PARAM_Integer,
2839 hdd_config_t, configPNOScanSupport,
2840 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2841 CFG_PNO_SCAN_SUPPORT_DEFAULT,
2842 CFG_PNO_SCAN_SUPPORT_DISABLE,
2843 CFG_PNO_SCAN_SUPPORT_ENABLE),
2844
Madan Mohan Koyyalamudi1d16f462013-08-27 16:25:34 +05302845 REG_VARIABLE( CFG_PNO_SCAN_TIMER_REPEAT_VALUE, WLAN_PARAM_Integer,
2846 hdd_config_t, configPNOScanTimerRepeatValue,
2847 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2848 CFG_PNO_SCAN_TIMER_REPEAT_VALUE_DEFAULT,
2849 CFG_PNO_SCAN_TIMER_REPEAT_VALUE_MIN,
2850 CFG_PNO_SCAN_TIMER_REPEAT_VALUE_MAX),
2851#endif
krunal soni5afa96c2013-09-06 22:19:02 -07002852 REG_VARIABLE( CFG_AMSDU_SUPPORT_IN_AMPDU_NAME , WLAN_PARAM_Integer,
2853 hdd_config_t, isAmsduSupportInAMPDU,
2854 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2855 CFG_AMSDU_SUPPORT_IN_AMPDU_DEFAULT,
2856 CFG_AMSDU_SUPPORT_IN_AMPDU_MIN,
2857 CFG_AMSDU_SUPPORT_IN_AMPDU_MAX ),
Madan Mohan Koyyalamudi1d16f462013-08-27 16:25:34 +05302858
Srinivas Girigowda41c7c5f2013-10-21 19:01:38 -07002859 REG_VARIABLE( CFG_STRICT_5GHZ_PREF_BY_MARGIN , WLAN_PARAM_Integer,
2860 hdd_config_t, nSelect5GHzMargin,
2861 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2862 CFG_STRICT_5GHZ_PREF_BY_MARGIN_DEFAULT,
2863 CFG_STRICT_5GHZ_PREF_BY_MARGIN_MIN,
2864 CFG_STRICT_5GHZ_PREF_BY_MARGIN_MAX ),
2865
krunal sonie9002db2013-11-25 14:24:17 -08002866 REG_VARIABLE( CFG_COALESING_IN_IBSS_NAME , WLAN_PARAM_Integer,
2867 hdd_config_t, isCoalesingInIBSSAllowed,
2868 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2869 CFG_COALESING_IN_IBSS_DEFAULT,
2870 CFG_COALESING_IN_IBSS_MIN,
2871 CFG_COALESING_IN_IBSS_MAX ),
Kiet Lam4bbd3cb2013-11-07 20:03:49 +05302872
2873 REG_VARIABLE( CFG_DISABLE_ATH_NAME , WLAN_PARAM_Integer,
2874 hdd_config_t, cfgAthDisable,
2875 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2876 CFG_DISABLE_ATH_DEFAULT,
2877 CFG_DISABLE_ATH_MIN,
2878 CFG_DISABLE_ATH_MAX ),
c_hpothu6d7dc922013-12-02 12:36:41 +05302879 REG_VARIABLE(CFG_BTC_ACTIVE_WLAN_LEN_NAME, WLAN_PARAM_Integer,
2880 hdd_config_t, cfgBtcActiveWlanLen,
2881 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2882 CFG_BTC_ACTIVE_WLAN_LEN_DEFAULT,
2883 CFG_BTC_ACTIVE_WLAN_LEN_MIN,
2884 CFG_BTC_ACTIVE_WLAN_LEN_MAX ),
2885
2886 REG_VARIABLE(CFG_BTC_ACTIVE_BT_LEN_NAME, WLAN_PARAM_Integer,
2887 hdd_config_t, cfgBtcActiveBtLen,
2888 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2889 CFG_BTC_ACTIVE_BT_LEN_DEFAULT,
2890 CFG_BTC_ACTIVE_BT_LEN_MIN,
2891 CFG_BTC_ACTIVE_BT_LEN_MAX ),
2892
2893 REG_VARIABLE(CFG_BTC_SAP_ACTIVE_WLAN_LEN_NAME, WLAN_PARAM_Integer,
2894 hdd_config_t, cfgBtcSapActiveWlanLen,
2895 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2896 CFG_BTC_SAP_ACTIVE_WLAN_LEN_DEFAULT,
2897 CFG_BTC_SAP_ACTIVE_WLAN_LEN_MIN,
2898 CFG_BTC_SAP_ACTIVE_WLAN_LEN_MAX ),
2899
2900 REG_VARIABLE(CFG_BTC_SAP_ACTIVE_BT_LEN_NAME, WLAN_PARAM_Integer,
2901 hdd_config_t, cfgBtcSapActiveBtLen,
2902 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2903 CFG_BTC_SAP_ACTIVE_BT_LEN_DEFAULT,
2904 CFG_BTC_SAP_ACTIVE_BT_LEN_MIN,
2905 CFG_BTC_SAP_ACTIVE_BT_LEN_MAX ),
Arif Hussaind5218912013-12-05 01:10:55 -08002906
2907#ifdef MEMORY_DEBUG
2908 REG_VARIABLE(CFG_ENABLE_MEMORY_DEBUG_NAME, WLAN_PARAM_Integer,
2909 hdd_config_t, IsMemoryDebugSupportEnabled,
2910 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2911 CFG_ENABLE_MEMORY_DEBUG_DEFAULT,
2912 CFG_ENABLE_MEMORY_DEBUG_MIN,
2913 CFG_ENABLE_MEMORY_DEBUG_MAX ),
2914#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07002915
Tushnim Bhattacharyya9889e792013-12-19 18:18:36 -08002916 REG_VARIABLE_STRING( CFG_OVERRIDE_COUNTRY_CODE, WLAN_PARAM_String,
2917 hdd_config_t, overrideCountryCode,
2918 VAR_FLAGS_OPTIONAL,
Kiet Lamaa8e15a2014-02-11 23:30:06 -08002919 (void *)CFG_OVERRIDE_COUNTRY_CODE_DEFAULT),
AnjaneeDevi Kapparapu50239e32014-01-07 18:09:33 +05302920
2921 REG_VARIABLE( CFG_ASD_PROBE_INTERVAL_NAME, WLAN_PARAM_Integer,
2922 hdd_config_t, gAsdProbeInterval,
2923 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2924 CFG_ASD_PROBE_INTERVAL_DEFAULT,
2925 CFG_ASD_PROBE_INTERVAL_MIN,
2926 CFG_ASD_PROBE_INTERVAL_MAX),
2927
c_hpothu1c4405a2014-12-10 18:16:16 +05302928 REG_VARIABLE( CFG_ASD_TRIGGER_THRESHOLD_NAME, WLAN_PARAM_SignedInteger,
AnjaneeDevi Kapparapu50239e32014-01-07 18:09:33 +05302929 hdd_config_t, gAsdTriggerThreshold,
2930 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2931 CFG_ASD_TRIGGER_THRESHOLD_DEFAULT,
2932 CFG_ASD_TRIGGER_THRESHOLD_MIN,
2933 CFG_ASD_TRIGGER_THRESHOLD_MAX),
2934
2935 REG_VARIABLE( CFG_ASD_RTT_RSSI_HYST_THRESHOLD_NAME, WLAN_PARAM_Integer,
2936 hdd_config_t, gAsdRTTRssiHystThreshold,
2937 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2938 CFG_ASD_RTT_RSSI_HYST_THRESHOLD_DEFAULT,
2939 CFG_ASD_RTT_RSSI_HYST_THRESHOLD_MIN,
2940 CFG_ASD_RTT_RSSI_HYST_THRESHOLD_MAX),
Leela Venkata Kiran Kumar Reddy Chirala22c159b2013-12-23 18:19:13 -08002941
2942 REG_VARIABLE( CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_NAME, WLAN_PARAM_Integer,
2943 hdd_config_t, debugP2pRemainOnChannel,
2944 VAR_FLAGS_OPTIONAL,
2945 CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_DEFAULT,
2946 CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_MIN,
2947 CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_MAX ),
2948
2949 REG_VARIABLE(CFG_CTS2S_DURING_BTC_SCO_NAME, WLAN_PARAM_Integer,
2950 hdd_config_t, cfgBtcCTS2SduringSCO,
2951 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2952 CFG_CTS2S_DURING_BTC_SCO_DEFAULT,
2953 CFG_CTS2S_DURING_BTC_SCO_MIN,
2954 CFG_CTS2S_DURING_BTC_SCO_MAX ),
Tushnim Bhattacharyyaa3ba5a52014-01-30 11:37:33 -08002955
2956 REG_VARIABLE( CFG_ENABLE_DEBUG_CONNECT_ISSUE, WLAN_PARAM_Integer,
2957 hdd_config_t, gEnableDebugLog,
2958 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2959 CFG_ENABLE_DEBUG_CONNECT_ISSUE_DEFAULT,
2960 CFG_ENABLE_DEBUG_CONNECT_ISSUE_MIN ,
2961 CFG_ENABLE_DEBUG_CONNECT_ISSUE_MAX),
Sandeep Puligilla04bb8fd2014-02-03 23:21:47 +05302962
2963 REG_VARIABLE(CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_NAME, WLAN_PARAM_Integer,
2964 hdd_config_t, nOBSSScanActiveDwellTime,
2965 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2966 CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_DEFAULT,
2967 CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_MIN,
2968 CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_MAX ),
2969
2970 REG_VARIABLE(CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_NAME, WLAN_PARAM_Integer,
2971 hdd_config_t, nOBSSScanPassiveDwellTime,
2972 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2973 CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_DEFAULT,
2974 CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_MIN,
2975 CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_MAX ),
2976
2977 REG_VARIABLE(CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_NAME,
2978 WLAN_PARAM_Integer,
2979 hdd_config_t, nOBSSScanWidthTriggerInterval,
2980 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2981 CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_DEFAULT,
2982 CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_MIN,
2983 CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_MAX ),
Kalikinkar dharad73a9bd2014-01-28 22:42:34 -08002984
2985 REG_VARIABLE( CFG_ENABLE_STRICT_REGULATORY_FOR_FCC_NAME, WLAN_PARAM_Integer,
2986 hdd_config_t, gEnableStrictRegulatoryForFCC,
2987 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2988 CFG_ENABLE_STRICT_REGULATORY_FOR_FCC_DEFAULT,
2989 CFG_ENABLE_STRICT_REGULATORY_FOR_FCC_MIN,
2990 CFG_ENABLE_STRICT_REGULATORY_FOR_FCC_MAX ),
2991
Rashmi Ramannabd3feb72014-02-25 16:14:48 +05302992 REG_VARIABLE( CFG_ADVERTISE_CONCURRENT_OPERATION_NAME , WLAN_PARAM_Integer,
2993 hdd_config_t, advertiseConcurrentOperation,
2994 VAR_FLAGS_OPTIONAL,
2995 CFG_ADVERTISE_CONCURRENT_OPERATION_DEFAULT,
2996 CFG_ADVERTISE_CONCURRENT_OPERATION_MIN,
2997 CFG_ADVERTISE_CONCURRENT_OPERATION_MAX ),
2998
Abhishek Singh8280c4e2014-02-18 13:26:34 +05302999 REG_VARIABLE( CFG_DEFAULT_RATE_INDEX_24GH, WLAN_PARAM_Integer,
3000 hdd_config_t, defaultRateIndex24Ghz,
3001 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3002 CFG_DEFAULT_RATE_INDEX_24GH_DEFAULT,
3003 CFG_DEFAULT_RATE_INDEX_24GH_MIN,
3004 CFG_DEFAULT_RATE_INDEX_24GH_MAX ),
3005
Sushant Kaushik7dc03272015-02-18 11:25:12 +05303006 REG_VARIABLE( CFG_SAP_ENABLE_11AC_NAME, WLAN_PARAM_Integer,
3007 hdd_config_t, sapEnable11AC,
Abhishek Singhf0ac1752014-03-05 17:47:09 +05303008 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
Sushant Kaushik7dc03272015-02-18 11:25:12 +05303009 CFG_SAP_ENABLE_11AC_DEFAULT,
3010 CFG_SAP_ENABLE_11AC_MIN,
3011 CFG_SAP_ENABLE_11AC_MAX ),
Abhishek Singhf0ac1752014-03-05 17:47:09 +05303012
c_hpothu5bd1ae42014-03-07 20:28:22 +05303013 REG_VARIABLE(CFG_RA_FILTER_ENABLE_NAME, WLAN_PARAM_Integer,
3014 hdd_config_t, cfgRAFilterEnable,
3015 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3016 CFG_RA_FILTER_ENABLE_DEFAULT,
3017 CFG_RA_FILTER_ENABLE_MIN,
3018 CFG_RA_FILTER_ENABLE_MAX ),
3019
3020 REG_VARIABLE(CFG_RA_RATE_LIMIT_INTERVAL_NAME, WLAN_PARAM_Integer,
3021 hdd_config_t, cfgRARateLimitInterval,
3022 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3023 CFG_RA_RATE_LIMIT_INTERVAL_DEFAULT,
3024 CFG_RA_RATE_LIMIT_INTERVAL_MIN,
3025 CFG_RA_RATE_LIMIT_INTERVAL_MAX ),
Sandeep Puligillac80f26e2014-03-11 18:36:10 +05303026
3027 REG_VARIABLE( CFG_ROAMING_DFS_CHANNEL_NAME , WLAN_PARAM_Integer,
3028 hdd_config_t, allowDFSChannelRoam,
3029 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3030 CFG_ROAMING_DFS_CHANNEL_DEFAULT,
3031 CFG_ROAMING_DFS_CHANNEL_MIN,
3032 CFG_ROAMING_DFS_CHANNEL_MAX ),
Vinay Krishna Erannad938c422014-03-10 17:14:21 +05303033
3034#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
3035 REG_VARIABLE( CFG_WLAN_LOGGING_SUPPORT_NAME, WLAN_PARAM_Integer,
3036 hdd_config_t, wlanLoggingEnable,
3037 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3038 CFG_WLAN_LOGGING_SUPPORT_DEFAULT,
3039 CFG_WLAN_LOGGING_SUPPORT_DISABLE,
3040 CFG_WLAN_LOGGING_SUPPORT_ENABLE ),
3041
3042 REG_VARIABLE( CFG_WLAN_LOGGING_FE_CONSOLE_SUPPORT_NAME, WLAN_PARAM_Integer,
3043 hdd_config_t, wlanLoggingFEToConsole,
3044 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3045 CFG_WLAN_LOGGING_FE_CONSOLE_SUPPORT_DEFAULT,
3046 CFG_WLAN_LOGGING_FE_CONSOLE_SUPPORT_DISABLE,
3047 CFG_WLAN_LOGGING_FE_CONSOLE_SUPPORT_ENABLE ),
3048
3049 REG_VARIABLE( CFG_WLAN_LOGGING_NUM_BUF_NAME, WLAN_PARAM_Integer,
3050 hdd_config_t, wlanLoggingNumBuf,
3051 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3052 CFG_WLAN_LOGGING_NUM_BUF_DEFAULT,
3053 CFG_WLAN_LOGGING_NUM_BUF_MIN,
3054 CFG_WLAN_LOGGING_NUM_BUF_MAX ),
3055#endif //WLAN_LOGGING_SOCK_SVC_ENABLE
3056
c_hpothu059edb02014-03-12 21:44:28 +05303057 REG_VARIABLE(CFG_INITIAL_DWELL_TIME_NAME, WLAN_PARAM_Integer,
3058 hdd_config_t, nInitialDwellTime,
3059 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3060 CFG_INITIAL_DWELL_TIME_DEFAULT,
3061 CFG_INITIAL_DWELL_TIME_MIN,
3062 CFG_INITIAL_DWELL_TIME_MAX ),
c_hpothu0d5a7352014-03-22 12:30:25 +05303063
3064 REG_VARIABLE(CFG_INITIAL_SCAN_SKIP_DFS_CH_NAME, WLAN_PARAM_Integer,
3065 hdd_config_t, initialScanSkipDFSCh,
3066 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3067 CFG_INITIAL_SCAN_SKIP_DFS_CH_DEFAULT,
3068 CFG_INITIAL_SCAN_SKIP_DFS_CH_MIN,
3069 CFG_INITIAL_SCAN_SKIP_DFS_CH_MAX),
c_hpothu2d0f1c42014-04-01 18:38:51 +05303070
3071 REG_VARIABLE(CFG_BTC_FATAL_HID_NSNIFF_BLK_GUIDANCE_NAME, WLAN_PARAM_Integer,
3072 hdd_config_t, cfgBtcFatalHidnSniffBlkGuidance,
3073 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3074 CFG_BTC_FATAL_HID_NSNIFF_BLK_GUIDANCE_DEFAULT,
3075 CFG_BTC_FATAL_HID_NSNIFF_BLK_GUIDANCE_MIN,
3076 CFG_BTC_FATAL_HID_NSNIFF_BLK_GUIDANCE_MAX ),
3077
3078 REG_VARIABLE(CFG_BTC_CRITICAL_HID_NSNIFF_BLK_GUIDANCE_NAME, WLAN_PARAM_Integer,
3079 hdd_config_t, cfgBtcCriticalHidnSniffBlkGuidance,
3080 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3081 CFG_BTC_CRITICAL_HID_NSNIFF_BLK_GUIDANCE_DEFAULT,
3082 CFG_BTC_CRITICAL_HID_NSNIFF_BLK_GUIDANCE_MIN,
3083 CFG_BTC_CRITICAL_HID_NSNIFF_BLK_GUIDANCE_MAX ),
3084
3085 REG_VARIABLE(CFG_BTC_DYN_A2DP_TX_QUEUE_THOLD_NAME, WLAN_PARAM_Integer,
3086 hdd_config_t, cfgBtcA2dpTxQueueThold,
3087 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3088 CFG_BTC_DYN_A2DP_TX_QUEUE_THOLD_DEFAULT,
3089 CFG_BTC_DYN_A2DP_TX_QUEUE_THOLD_MIN,
3090 CFG_BTC_DYN_A2DP_TX_QUEUE_THOLD_MAX ),
3091
3092 REG_VARIABLE(CFG_BTC_DYN_OPP_TX_QUEUE_THOLD_NAME, WLAN_PARAM_Integer,
3093 hdd_config_t, cfgBtcOppTxQueueThold,
3094 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3095 CFG_BTC_DYN_OPP_TX_QUEUE_THOLD_DEFAULT,
3096 CFG_BTC_DYN_OPP_TX_QUEUE_THOLD_MIN,
3097 CFG_BTC_DYN_OPP_TX_QUEUE_THOLD_MAX ),
Chet Lanctotfadc8e32014-04-24 14:50:52 -07003098
3099#ifdef WLAN_FEATURE_11W
3100 REG_VARIABLE(CFG_PMF_SA_QUERY_MAX_RETRIES_NAME, WLAN_PARAM_Integer,
3101 hdd_config_t, pmfSaQueryMaxRetries,
3102 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3103 CFG_PMF_SA_QUERY_MAX_RETRIES_DEFAULT,
3104 CFG_PMF_SA_QUERY_MAX_RETRIES_MIN,
3105 CFG_PMF_SA_QUERY_MAX_RETRIES_MAX ),
3106
3107 REG_VARIABLE(CFG_PMF_SA_QUERY_RETRY_INTERVAL_NAME, WLAN_PARAM_Integer,
3108 hdd_config_t, pmfSaQueryRetryInterval,
3109 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3110 CFG_PMF_SA_QUERY_RETRY_INTERVAL_DEFAULT,
3111 CFG_PMF_SA_QUERY_RETRY_INTERVAL_MIN,
3112 CFG_PMF_SA_QUERY_RETRY_INTERVAL_MAX ),
3113#endif
Rashmi Ramanna68b309c2014-05-20 11:52:22 +05303114
3115 REG_VARIABLE(CFG_DEFER_IMPS_FOR_TIME_NAME, WLAN_PARAM_Integer,
3116 hdd_config_t, deferImpsTime,
3117 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3118 CFG_DEFER_IMPS_FOR_TIME_DEFAULT,
3119 CFG_DEFER_IMPS_FOR_TIME_MIN,
3120 CFG_DEFER_IMPS_FOR_TIME_MAX),
3121
Abhishek Singhde51a412014-05-20 19:17:26 +05303122 REG_VARIABLE(CFG_ENABLE_DEAUTH_BEFORE_CONNECTION, WLAN_PARAM_Integer,
3123 hdd_config_t, sendDeauthBeforeCon,
3124 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3125 CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_DEFAULT,
3126 CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_MIN,
3127 CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_MAX),
Pradeep Reddy POTTETI5c2e16d2014-06-27 16:47:38 +05303128
Siddharth Bhala3a5cb42014-09-29 21:13:13 +05303129 REG_VARIABLE(CFG_ENABLE_MAC_ADDR_SPOOFING, WLAN_PARAM_Integer,
3130 hdd_config_t, enableMacSpoofing,
3131 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3132 CFG_ENABLE_MAC_ADDR_SPOOFING_DEFAULT,
3133 CFG_ENABLE_MAC_ADDR_SPOOFING_MIN,
3134 CFG_ENABLE_MAC_ADDR_SPOOFING_MAX),
3135
Siddharth Bhal4a432552015-02-27 01:09:31 +05303136 REG_VARIABLE(CFG_ENABLE_MGMT_LOGGING, WLAN_PARAM_Integer,
3137 hdd_config_t, enableMgmtLogging,
3138 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3139 CFG_ENABLE_MGMT_LOGGING_DEFAULT,
3140 CFG_ENABLE_MGMT_LOGGING_MIN,
3141 CFG_ENABLE_MGMT_LOGGING_MAX),
3142
3143 REG_VARIABLE(CFG_ENABLE_BMUHW_TRACING, WLAN_PARAM_Integer,
3144 hdd_config_t, enableBMUHWtracing,
3145 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3146 CFG_ENABLE_BMUHW_TRACING_DEFAULT,
3147 CFG_ENABLE_BMUHW_TRACING_MIN,
3148 CFG_ENABLE_BMUHW_TRACING_MAX),
3149
Pradeep Reddy POTTETI5c2e16d2014-06-27 16:47:38 +05303150 REG_VARIABLE(CFG_ENABLE_CH_AVOID, WLAN_PARAM_Integer,
3151 hdd_config_t, fenableCHAvoidance,
3152 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3153 CFG_ENABLE_CH_AVOID_DEFAULT,
3154 CFG_ENABLE_CH_AVOID_MIN,
3155 CFG_ENABLE_CH_AVOID_MAX ),
Agarwal Ashish51325b52014-06-16 16:50:49 +05303156
3157 REG_VARIABLE(CFG_MAX_CONCURRENT_CONNECTIONS_NAME, WLAN_PARAM_Integer,
3158 hdd_config_t, gMaxConcurrentActiveSessions,
3159 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3160 CFG_MAX_CONCURRENT_CONNECTIONS_DEFAULT,
3161 CFG_MAX_CONCURRENT_CONNECTIONS_MIN,
3162 CFG_MAX_CONCURRENT_CONNECTIONS_MAX ),
Hardik Kantilal Patel086e0a32014-11-20 14:56:26 +05303163
3164#ifdef WLAN_FEATURE_AP_HT40_24G
3165 REG_VARIABLE(CFG_ENABLE_HT_2040_COEX, WLAN_PARAM_Integer,
3166 hdd_config_t, apHT40_24GEnabled,
3167 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3168 CFG_ENABLE_HT_2040_COEX_DEFAULT,
3169 CFG_ENABLE_HT_2040_COEX_MIN,
3170 CFG_ENABLE_HT_2040_COEX_MAX ),
3171#endif
3172
Mihir Shetec34258c2014-07-30 17:50:27 +05303173 REG_VARIABLE( CFG_ENABLE_DYNAMIC_WMMPS_NAME, WLAN_PARAM_Integer,
3174 hdd_config_t, enableDynamicWMMPS,
3175 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3176 CFG_ENABLE_DYNAMIC_WMM_PS_DEFAULT,
3177 CFG_ENABLE_DYNAMIC_WMM_PS_MIN,
3178 CFG_ENABLE_DYNAMIC_WMM_PS_MAX ),
3179
3180 REG_VARIABLE( CFG_MAX_UAPSD_CONSEC_SP_NAME, WLAN_PARAM_Integer,
3181 hdd_config_t, maxUapsdConsecSP,
3182 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3183 CFG_MAX_UAPSD_CONSEC_SP_DEFAULT,
3184 CFG_MAX_UAPSD_CONSEC_SP_MIN,
3185 CFG_MAX_UAPSD_CONSEC_SP_MAX ),
3186
3187 REG_VARIABLE( CFG_MAX_UAPSD_CONSEC_RX_CNT_NAME, WLAN_PARAM_Integer,
3188 hdd_config_t, maxUapsdConsecRxCnt,
3189 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3190 CFG_MAX_UAPSD_CONSEC_RX_CNT_DEFAULT,
3191 CFG_MAX_UAPSD_CONSEC_RX_CNT_MIN,
3192 CFG_MAX_UAPSD_CONSEC_RX_CNT_MAX ),
3193
3194 REG_VARIABLE( CFG_MAX_UAPSD_CONSEC_TX_CNT_NAME, WLAN_PARAM_Integer,
3195 hdd_config_t, maxUapsdConsecTxCnt,
3196 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3197 CFG_MAX_UAPSD_CONSEC_TX_CNT_DEFAULT,
3198 CFG_MAX_UAPSD_CONSEC_TX_CNT_MIN,
3199 CFG_MAX_UAPSD_CONSEC_TX_CNT_MAX ),
3200
3201 REG_VARIABLE( CFG_UAPSD_CONSEC_RX_CNT_MEAS_WINDOW_NAME, WLAN_PARAM_Integer,
3202 hdd_config_t, uapsdConsecRxCntMeasWindow,
3203 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3204 CFG_UAPSD_CONSEC_RX_CNT_MEAS_WINDOW_DEFAULT,
3205 CFG_UAPSD_CONSEC_RX_CNT_MEAS_WINDOW_MIN,
3206 CFG_UAPSD_CONSEC_RX_CNT_MEAS_WINDOW_MAX ),
3207
3208 REG_VARIABLE( CFG_UAPSD_CONSEC_TX_CNT_MEAS_WINDOW_NAME, WLAN_PARAM_Integer,
3209 hdd_config_t, uapsdConsecTxCntMeasWindow,
3210 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3211 CFG_UAPSD_CONSEC_TX_CNT_MEAS_WINDOW_DEFAULT,
3212 CFG_UAPSD_CONSEC_TX_CNT_MEAS_WINDOW_MIN,
3213 CFG_UAPSD_CONSEC_TX_CNT_MEAS_WINDOW_MAX ),
3214
3215 REG_VARIABLE( CFG_UAPSD_PSPOLL_NAME, WLAN_PARAM_Integer,
3216 hdd_config_t, maxPsPollInWmmUapsdMode,
3217 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3218 CFG_UAPSD_PSPOLL_DEFAULT,
3219 CFG_UAPSD_PSPOLL_MIN,
3220 CFG_UAPSD_PSPOLL_MAX ),
3221
3222 REG_VARIABLE( CFG_MAX_UAPSD_INACT_INTVL_NAME, WLAN_PARAM_Integer,
3223 hdd_config_t, maxUapsdInactivityIntervals,
3224 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3225 CFG_MAX_UAPSD_INACT_INTVL_DEFAULT,
3226 CFG_MAX_UAPSD_INACT_INTVL_MIN,
3227 CFG_MAX_UAPSD_INACT_INTVL_MAX ),
Dino Mycled9b7cc12014-09-04 18:43:07 +05303228
c_hpothu03d961b2014-09-19 16:45:00 +05303229 REG_VARIABLE( CFG_BURST_MODE_BE_TXOP_VALUE, WLAN_PARAM_Integer,
3230 hdd_config_t, burstModeTXOPValue,
3231 VAR_FLAGS_OPTIONAL |
3232 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3233 CFG_BURST_MODE_BE_TXOP_VALUE_DEFAULT,
3234 CFG_BURST_MODE_BE_TXOP_VALUE_MIN,
3235 CFG_BURST_MODE_BE_TXOP_VALUE_MAX ),
Peng Xufc6ad8e2014-09-25 13:16:43 +05303236 REG_VARIABLE( CFG_SAP_SCAN_BAND_PREFERENCE, WLAN_PARAM_Integer,
3237 hdd_config_t, acsScanBandPreference,
3238 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
3239 CFG_SAP_SCAN_BAND_PREFERENCE_DEFAULT,
3240 CFG_SAP_SCAN_BAND_PREFERENCE_MIN,
3241 CFG_SAP_SCAN_BAND_PREFERENCE_MAX ),
Deepthi Gowri9025aa62014-11-07 19:45:36 +05303242
3243 REG_VARIABLE( CFG_ENABLE_DYNAMIC_RA_START_RATE_NAME, WLAN_PARAM_Integer,
3244 hdd_config_t, enableDynamicRAStartRate,
3245 VAR_FLAGS_OPTIONAL |
3246 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3247 CFG_ENABLE_DYNAMIC_RA_START_RATE_DEFAULT,
3248 CFG_ENABLE_DYNAMIC_RA_START_RATE_MIN,
3249 CFG_ENABLE_DYNAMIC_RA_START_RATE_MAX),
Ganesh Kondabattinibabfb492014-12-17 20:25:29 +05303250
3251 REG_VARIABLE( CFG_P2P_LISTEN_DEFER_INTERVAL_NAME, WLAN_PARAM_Integer,
3252 hdd_config_t, gP2PListenDeferInterval,
3253 VAR_FLAGS_OPTIONAL |
3254 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3255 CFG_P2P_LISTEN_DEFER_INTERVAL_DEFAULT,
3256 CFG_P2P_LISTEN_DEFER_INTERVAL_MIN,
3257 CFG_P2P_LISTEN_DEFER_INTERVAL_MAX),
Chandrasekaran, Manishekar5cb0acd2014-12-23 20:06:52 +05303258
3259 REG_VARIABLE( CFG_BTC_ENABLE_IND_TIMER_VALUE, WLAN_PARAM_Integer,
3260 hdd_config_t, btcEnableIndTimerVal,
3261 VAR_FLAGS_OPTIONAL |
3262 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3263 CFG_BTC_ENABLE_IND_TIMER_VALUE_DEFAULT,
3264 CFG_BTC_ENABLE_IND_TIMER_VALUE_MIN,
3265 CFG_BTC_ENABLE_IND_TIMER_VALUE_MAX),
3266
Naresh Jayaramf5bbe3f2014-12-29 18:32:47 +05303267 REG_VARIABLE( CFG_BTC_FAST_WLAN_CONN_PREF , WLAN_PARAM_Integer,
3268 hdd_config_t, btcFastWlanConnPref,
3269 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3270 CFG_BTC_FAST_WLAN_CONN_PREF_DEFAULT,
3271 CFG_BTC_FAST_WLAN_CONN_PREF_MIN,
3272 CFG_BTC_FAST_WLAN_CONN_PREF_MAX ),
3273
jagadeeshaf2d0ce2015-03-31 11:45:30 +05303274 REG_VARIABLE( CFG_ENABLE_RTSCTS_HTVHT_NAME, WLAN_PARAM_Integer,
3275 hdd_config_t, enableRtsCtsHtVht,
3276 VAR_FLAGS_OPTIONAL |
3277 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3278 CFG_ENABLE_RTSCTS_HTVHT_DEFAULT,
3279 CFG_ENABLE_RTSCTS_HTVHT_MIN,
3280 CFG_ENABLE_RTSCTS_HTVHT_MAX),
3281
Katya Nigama6fbf662015-03-17 18:35:47 +05303282 REG_VARIABLE( CFG_DXE_REPLENISH_RX_TIMER_VALUE, WLAN_PARAM_Integer,
3283 hdd_config_t, dxeReplenishRXTimerVal,
3284 VAR_FLAGS_OPTIONAL |
3285 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3286 CFG_DXE_REPLENISH_RX_TIMER_VALUE_DEFAULT,
3287 CFG_DXE_REPLENISH_RX_TIMER_VALUE_MIN,
3288 CFG_DXE_REPLENISH_RX_TIMER_VALUE_MAX ),
3289
3290 REG_VARIABLE( CFG_DXE_SSR_ENABLE, WLAN_PARAM_Integer,
3291 hdd_config_t, dxeSSREnable,
3292 VAR_FLAGS_OPTIONAL |
3293 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3294 CFG_DXE_SSR_ENABLE_DEFAULT,
3295 CFG_DXE_SSR_ENABLE_MIN,
3296 CFG_DXE_SSR_ENABLE_MAX ),
Tushnim Bhattacharyya9889e792013-12-19 18:18:36 -08003297};
3298
Jeff Johnson295189b2012-06-20 16:38:30 -07003299/*
3300 * This function returns a pointer to the character after the occurence
3301 * of a new line character. It also modifies the original string by replacing
3302 * the '\n' character with the null character.
3303 * Function returns NULL if no new line character was found before end of
3304 * string was reached
3305 */
Vinay Krishna Eranna4fba8d22014-12-02 19:34:22 +05303306static char* get_next_line(char* str, char *str_end)
Jeff Johnson295189b2012-06-20 16:38:30 -07003307{
3308 char c;
3309
3310 if( str == NULL || *str == '\0') {
3311 return NULL;
3312 }
3313
3314 c = *str;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003315 while(c != '\n' && c != '\0' && c != 0xd) {
Jeff Johnson295189b2012-06-20 16:38:30 -07003316 str = str + 1;
Vinay Krishna Eranna4fba8d22014-12-02 19:34:22 +05303317 if (str > str_end)
3318 {
3319 return str;
3320 }
Jeff Johnson295189b2012-06-20 16:38:30 -07003321 c = *str;
3322 }
3323
3324 if (c == '\0' ) {
3325 return NULL;
3326 }
3327 else
3328 {
Jeff Johnson295189b2012-06-20 16:38:30 -07003329 return (str+1);
3330 }
3331
3332 return NULL;
3333}
3334
3335// look for space. Ascii values to look are -
3336// 0x09 == horizontal tab
3337// 0x0a == Newline ("\n")
3338// 0x0b == vertical tab
3339// 0x0c == Newpage or feed form.
3340// 0x0d == carriage return (CR or "\r")
3341// Null ('\0') should not considered as space.
3342#define i_isspace(ch) (((ch) >= 0x09 && (ch) <= 0x0d) || (ch) == ' ')
3343
3344/*
3345 * This function trims any leading and trailing white spaces
3346 */
3347static char *i_trim(char *str)
3348
3349{
3350 char *ptr;
3351
3352 if(*str == '\0') return str;
3353
3354 /* Find the first non white-space*/
3355 for (ptr = str; i_isspace(*ptr); ptr++);
3356 if (*ptr == '\0')
3357 return str;
3358
3359 /* This is the new start of the string*/
3360 str = ptr;
3361
3362 /* Find the last non white-space */
3363 ptr += strlen(ptr) - 1;
3364 for (; ptr != str && i_isspace(*ptr); ptr--);
3365 /* Null terminate the following character */
3366 ptr[1] = '\0';
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003367
Jeff Johnson295189b2012-06-20 16:38:30 -07003368 return str;
3369}
3370
3371
3372//Structure to store each entry in qcom_cfg.ini file
3373typedef struct
3374{
3375 char *name;
3376 char *value;
3377}tCfgIniEntry;
3378
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003379static VOS_STATUS hdd_apply_cfg_ini( hdd_context_t * pHddCtx,
Jeff Johnson295189b2012-06-20 16:38:30 -07003380 tCfgIniEntry* iniTable, unsigned long entries);
3381
3382#ifdef WLAN_CFG_DEBUG
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003383void dump_cfg_ini (tCfgIniEntry* iniTable, unsigned long entries)
Jeff Johnson295189b2012-06-20 16:38:30 -07003384{
3385 unsigned long i;
3386
3387 for (i = 0; i < entries; i++) {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003388 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "%s entry Name=[%s] value=[%s]",
Jeff Johnson295189b2012-06-20 16:38:30 -07003389 WLAN_INI_FILE, iniTable[i].name, iniTable[i].value);
3390 }
3391}
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003392#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07003393
3394/*
3395 * This function reads the qcom_cfg.ini file and
3396 * parses each 'Name=Value' pair in the ini file
3397 */
3398VOS_STATUS hdd_parse_config_ini(hdd_context_t* pHddCtx)
3399{
3400 int status, i=0;
3401 /** Pointer for firmware image data */
3402 const struct firmware *fw = NULL;
Jeff Johnson4416a782013-03-25 14:17:50 -07003403 char *buffer, *line, *pTemp = NULL;
Jeff Johnson295189b2012-06-20 16:38:30 -07003404 size_t size;
3405 char *name, *value;
Madan Mohan Koyyalamudi729972c2012-10-21 12:39:24 -07003406 /* cfgIniTable is static to avoid excess stack usage */
3407 static tCfgIniEntry cfgIniTable[MAX_CFG_INI_ITEMS];
Jeff Johnson295189b2012-06-20 16:38:30 -07003408 VOS_STATUS vos_status = VOS_STATUS_SUCCESS;
3409
3410 memset(cfgIniTable, 0, sizeof(cfgIniTable));
3411
3412 status = request_firmware(&fw, WLAN_INI_FILE, pHddCtx->parent_dev);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003413
Jeff Johnson295189b2012-06-20 16:38:30 -07003414 if(status)
3415 {
Arif Hussain6d2a3322013-11-17 19:50:10 -08003416 hddLog(VOS_TRACE_LEVEL_FATAL, "%s: request_firmware failed %d",__func__, status);
Jeff Johnson4416a782013-03-25 14:17:50 -07003417 vos_status = VOS_STATUS_E_FAILURE;
3418 goto config_exit;
Jeff Johnson295189b2012-06-20 16:38:30 -07003419 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003420 if(!fw || !fw->data || !fw->size)
Jeff Johnson295189b2012-06-20 16:38:30 -07003421 {
Arif Hussain6d2a3322013-11-17 19:50:10 -08003422 hddLog(VOS_TRACE_LEVEL_FATAL, "%s: %s download failed",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07003423 __func__, WLAN_INI_FILE);
Jeff Johnson4416a782013-03-25 14:17:50 -07003424 vos_status = VOS_STATUS_E_FAILURE;
3425 goto config_exit;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003426 }
Jeff Johnson295189b2012-06-20 16:38:30 -07003427
Vinay Krishna Erannaf5a30832014-08-13 18:44:37 +05303428 hddLog(LOGE, "%s: qcom_cfg.ini Size %zu", __func__, fw->size);
Jeff Johnson295189b2012-06-20 16:38:30 -07003429
3430 buffer = (char*)vos_mem_malloc(fw->size);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003431
Jeff Johnson295189b2012-06-20 16:38:30 -07003432 if(NULL == buffer) {
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07003433 hddLog(VOS_TRACE_LEVEL_FATAL, "%s: kmalloc failure",__func__);
Jeff Johnson295189b2012-06-20 16:38:30 -07003434 release_firmware(fw);
3435 return VOS_STATUS_E_FAILURE;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003436 }
Jeff Johnson295189b2012-06-20 16:38:30 -07003437 pTemp = buffer;
3438
3439 vos_mem_copy((void*)buffer,(void *)fw->data, fw->size);
3440 size = fw->size;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003441
Jeff Johnson295189b2012-06-20 16:38:30 -07003442 while (buffer != NULL)
3443 {
Vinay Krishna Erannaf5a30832014-08-13 18:44:37 +05303444 /*
3445 * get_next_line function used to modify the \n and \r delimiter
3446 * to \0 before returning, without checking if it is over parsing the
3447 * source buffer. So changed the function not to modify the buffer
3448 * passed to it and letting the calling/caller function to take
3449 * care of the return pointer validation and modification of the buffer.
3450 * So validating if the return pointer is not greater than the end
3451 * buffer address and modifying the buffer value.
3452 */
Vinay Krishna Eranna4fba8d22014-12-02 19:34:22 +05303453 line = get_next_line(buffer, (pTemp + (fw->size-1)));
Vinay Krishna Erannaf5a30832014-08-13 18:44:37 +05303454 if(line > (pTemp + fw->size)) {
3455 hddLog(VOS_TRACE_LEVEL_FATAL, "%s: INI file seems to be corrupted",
3456 __func__);
3457 vos_status = VOS_STATUS_E_FAILURE;
3458 goto config_exit;
3459 }
3460 else if(line) {
3461 *(line - 1) = '\0';
3462 }
3463
Jeff Johnson295189b2012-06-20 16:38:30 -07003464 buffer = i_trim(buffer);
3465
3466 hddLog(LOG1, "%s: item", buffer);
3467
3468 if(strlen((char*)buffer) == 0 || *buffer == '#') {
3469 buffer = line;
3470 continue;
3471 }
3472 else if(strncmp(buffer, "END", 3) == 0 ) {
3473 break;
3474 }
3475 else
3476 {
3477 name = buffer;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003478 while(*buffer != '=' && *buffer != '\0')
Jeff Johnson295189b2012-06-20 16:38:30 -07003479 buffer++;
3480 if(*buffer != '\0') {
3481 *buffer++ = '\0';
3482 i_trim(name);
3483 if(strlen (name) != 0) {
3484 buffer = i_trim(buffer);
3485 if(strlen(buffer)>0) {
3486 value = buffer;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003487 while(!i_isspace(*buffer) && *buffer != '\0')
Jeff Johnson295189b2012-06-20 16:38:30 -07003488 buffer++;
3489 *buffer = '\0';
3490 cfgIniTable[i].name= name;
3491 cfgIniTable[i++].value= value;
3492 if(i >= MAX_CFG_INI_ITEMS) {
Arif Hussain6d2a3322013-11-17 19:50:10 -08003493 hddLog(LOGE,"%s: Number of items in %s > %d",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07003494 __func__, WLAN_INI_FILE, MAX_CFG_INI_ITEMS);
Jeff Johnson295189b2012-06-20 16:38:30 -07003495 break;
3496 }
3497 }
3498 }
3499 }
3500 }
3501 buffer = line;
3502 }
3503
3504 //Loop through the registry table and apply all these configs
3505 vos_status = hdd_apply_cfg_ini(pHddCtx, cfgIniTable, i);
3506
Jeff Johnson4416a782013-03-25 14:17:50 -07003507config_exit:
Jeff Johnson295189b2012-06-20 16:38:30 -07003508 release_firmware(fw);
3509 vos_mem_free(pTemp);
3510 return vos_status;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003511}
Jeff Johnson295189b2012-06-20 16:38:30 -07003512
3513
3514static void print_hdd_cfg(hdd_context_t *pHddCtx)
3515{
3516 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "*********Config values in HDD Adapter*******");
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003517 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [RTSThreshold] Value = %u",pHddCtx->cfg_ini->RTSThreshold) ;
Jeff Johnson295189b2012-06-20 16:38:30 -07003518 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [OperatingChannel] Value = [%u]",pHddCtx->cfg_ini->OperatingChannel);
3519 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [PowerUsageControl] Value = [%s]",pHddCtx->cfg_ini->PowerUsageControl);
3520 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [fIsImpsEnabled] Value = [%u]",pHddCtx->cfg_ini->fIsImpsEnabled);
3521 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [AutoBmpsTimerEnabled] Value = [%u]",pHddCtx->cfg_ini->fIsAutoBmpsTimerEnabled);
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003522 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nAutoBmpsTimerValue] Value = [%u]",pHddCtx->cfg_ini->nAutoBmpsTimerValue);
Jeff Johnson295189b2012-06-20 16:38:30 -07003523 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nVccRssiTrigger] Value = [%u]",pHddCtx->cfg_ini->nVccRssiTrigger);
Arif Hussaina7c8e412013-11-20 11:06:42 -08003524 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
3525 "Name = [gIbssBssid] Value =["MAC_ADDRESS_STR"]",
3526 MAC_ADDR_ARRAY(pHddCtx->cfg_ini->IbssBssid.bytes));
Jeff Johnson295189b2012-06-20 16:38:30 -07003527
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003528 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Arif Hussaina7c8e412013-11-20 11:06:42 -08003529 "Name = [Intf0MacAddress] Value =["MAC_ADDRESS_STR"]",
3530 MAC_ADDR_ARRAY(pHddCtx->cfg_ini->intfMacAddr[0].bytes));
Jeff Johnson295189b2012-06-20 16:38:30 -07003531
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003532 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Arif Hussaina7c8e412013-11-20 11:06:42 -08003533 "Name = [Intf1MacAddress] Value =["MAC_ADDRESS_STR"]",
3534 MAC_ADDR_ARRAY(pHddCtx->cfg_ini->intfMacAddr[1].bytes));
Jeff Johnson295189b2012-06-20 16:38:30 -07003535
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003536 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Arif Hussaina7c8e412013-11-20 11:06:42 -08003537 "Name = [Intf2MacAddress] Value =["MAC_ADDRESS_STR"]",
3538 MAC_ADDR_ARRAY(pHddCtx->cfg_ini->intfMacAddr[2].bytes));
Jeff Johnson295189b2012-06-20 16:38:30 -07003539
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003540 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Arif Hussaina7c8e412013-11-20 11:06:42 -08003541 "Name = [Intf3MacAddress] Value =["MAC_ADDRESS_STR"]",
3542 MAC_ADDR_ARRAY(pHddCtx->cfg_ini->intfMacAddr[3].bytes));
Jeff Johnson295189b2012-06-20 16:38:30 -07003543
Arif Hussain6d2a3322013-11-17 19:50:10 -08003544 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gApEnableUapsd] value = [%u]",pHddCtx->cfg_ini->apUapsdEnabled);
Jeff Johnson295189b2012-06-20 16:38:30 -07003545
Arif Hussain6d2a3322013-11-17 19:50:10 -08003546 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gAPCntryCode] Value =[%c%c%c]",
Jeff Johnson295189b2012-06-20 16:38:30 -07003547 pHddCtx->cfg_ini->apCntryCode[0],pHddCtx->cfg_ini->apCntryCode[1],
3548 pHddCtx->cfg_ini->apCntryCode[2]);
3549 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableApProt] value = [%u]", pHddCtx->cfg_ini->apProtEnabled);
Arif Hussain6d2a3322013-11-17 19:50:10 -08003550 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gAPAutoShutOff] Value = [%u]", pHddCtx->cfg_ini->nAPAutoShutOff);
Jeff Johnson295189b2012-06-20 16:38:30 -07003551
Arif Hussain6d2a3322013-11-17 19:50:10 -08003552 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableListenMode] Value = [%u]", pHddCtx->cfg_ini->nEnableListenMode);
3553 VOS_TRACE (VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gApProtection] value = [%u]",pHddCtx->cfg_ini->apProtection);
3554 VOS_TRACE (VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableApOBSSProt] value = [%u]",pHddCtx->cfg_ini->apOBSSProtEnabled);
3555 VOS_TRACE (VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gApAutoChannelSelection] value = [%u]",pHddCtx->cfg_ini->apAutoChannelSelection);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003556
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003557 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [ChannelBondingMode] Value = [%u]",pHddCtx->cfg_ini->nChannelBondingMode24GHz);
3558 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [ChannelBondingMode] Value = [%u]",pHddCtx->cfg_ini->nChannelBondingMode5GHz);
3559 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [dot11Mode] Value = [%u]",pHddCtx->cfg_ini->dot11Mode);
Jeff Johnson295189b2012-06-20 16:38:30 -07003560 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [WmmMode] Value = [%u] ",pHddCtx->cfg_ini->WmmMode);
3561 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [UapsdMask] Value = [0x%x] ",pHddCtx->cfg_ini->UapsdMask);
3562 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [PktClassificationBasis] Value = [%u] ",pHddCtx->cfg_ini->PktClassificationBasis);
3563 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [ImplicitQosIsEnabled] Value = [%u]",(int)pHddCtx->cfg_ini->bImplicitQosEnabled);
3564
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003565 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraUapsdVoSrvIntv] Value = [%u] ",pHddCtx->cfg_ini->InfraUapsdVoSrvIntv);
3566 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraUapsdVoSuspIntv] Value = [%u] ",pHddCtx->cfg_ini->InfraUapsdVoSuspIntv);
Jeff Johnson295189b2012-06-20 16:38:30 -07003567
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003568 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraUapsdViSrvIntv] Value = [%u] ",pHddCtx->cfg_ini->InfraUapsdViSrvIntv);
3569 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraUapsdViSuspIntv] Value = [%u] ",pHddCtx->cfg_ini->InfraUapsdViSuspIntv);
Jeff Johnson295189b2012-06-20 16:38:30 -07003570
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003571 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraUapsdBeSrvIntv] Value = [%u] ",pHddCtx->cfg_ini->InfraUapsdBeSrvIntv);
3572 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraUapsdBeSuspIntv] Value = [%u] ",pHddCtx->cfg_ini->InfraUapsdBeSuspIntv);
Jeff Johnson295189b2012-06-20 16:38:30 -07003573
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003574 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraUapsdBkSrvIntv] Value = [%u] ",pHddCtx->cfg_ini->InfraUapsdBkSrvIntv);
3575 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraUapsdBkSuspIntv] Value = [%u] ",pHddCtx->cfg_ini->InfraUapsdBkSuspIntv);
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08003576#ifdef FEATURE_WLAN_ESE
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003577 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraInactivityInterval] Value = [%u] ",pHddCtx->cfg_ini->InfraInactivityInterval);
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08003578 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [EseEnabled] Value = [%u] ",pHddCtx->cfg_ini->isEseIniFeatureEnabled);
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003579 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [FastTransitionEnabled] Value = [%u] ",pHddCtx->cfg_ini->isFastTransitionEnabled);
3580 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gTxPowerCap] Value = [%u] dBm ",pHddCtx->cfg_ini->nTxPowerCap);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003581#endif
Jeff Johnson04dd8a82012-06-29 20:41:40 -07003582#ifdef FEATURE_WLAN_LFR
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003583 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [FastRoamEnabled] Value = [%u] ",pHddCtx->cfg_ini->isFastRoamIniFeatureEnabled);
Kiet Lamaa8e15a2014-02-11 23:30:06 -08003584 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [MAWCEnabled] Value = [%u] ",pHddCtx->cfg_ini->MAWCEnabled);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003585#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08003586#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003587 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [RoamRssiDiff] Value = [%u] ",pHddCtx->cfg_ini->RoamRssiDiff);
3588 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [ImmediateRoamRssiDiff] Value = [%u] ",pHddCtx->cfg_ini->nImmediateRoamRssiDiff);
3589 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [isWESModeEnabled] Value = [%u] ",pHddCtx->cfg_ini->isWESModeEnabled);
Jeff Johnson43971f52012-07-17 12:26:56 -07003590#endif
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07003591#ifdef FEATURE_WLAN_OKC
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003592 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [OkcEnabled] Value = [%u] ",pHddCtx->cfg_ini->isOkcIniFeatureEnabled);
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07003593#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07003594 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraDirAcVo] Value = [%u] ",pHddCtx->cfg_ini->InfraDirAcVo);
3595 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraNomMsduSizeAcVo] Value = [0x%x] ",pHddCtx->cfg_ini->InfraNomMsduSizeAcVo);
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003596 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraMeanDataRateAcVo] Value = [0x%x] ",pHddCtx->cfg_ini->InfraMeanDataRateAcVo);
3597 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraMinPhyRateAcVo] Value = [0x%x] ",pHddCtx->cfg_ini->InfraMinPhyRateAcVo);
Jeff Johnson295189b2012-06-20 16:38:30 -07003598 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraSbaAcVo] Value = [0x%x] ",pHddCtx->cfg_ini->InfraSbaAcVo);
3599
3600 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraDirAcVi] Value = [%u] ",pHddCtx->cfg_ini->InfraDirAcVi);
3601 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraNomMsduSizeAcVi] Value = [0x%x] ",pHddCtx->cfg_ini->InfraNomMsduSizeAcVi);
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003602 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraMeanDataRateAcVi] Value = [0x%x] ",pHddCtx->cfg_ini->InfraMeanDataRateAcVi);
3603 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraMinPhyRateAcVi] Value = [0x%x] ",pHddCtx->cfg_ini->InfraMinPhyRateAcVi);
Jeff Johnson295189b2012-06-20 16:38:30 -07003604 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraSbaAcVi] Value = [0x%x] ",pHddCtx->cfg_ini->InfraSbaAcVi);
3605
3606 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraDirAcBe] Value = [%u] ",pHddCtx->cfg_ini->InfraDirAcBe);
3607 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraNomMsduSizeAcBe] Value = [0x%x] ",pHddCtx->cfg_ini->InfraNomMsduSizeAcBe);
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003608 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraMeanDataRateAcBe] Value = [0x%x] ",pHddCtx->cfg_ini->InfraMeanDataRateAcBe);
3609 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraMinPhyRateAcBe] Value = [0x%x] ",pHddCtx->cfg_ini->InfraMinPhyRateAcBe);
Jeff Johnson295189b2012-06-20 16:38:30 -07003610 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraSbaAcBe] Value = [0x%x] ",pHddCtx->cfg_ini->InfraSbaAcBe);
3611
3612 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraDirAcBk] Value = [%u] ",pHddCtx->cfg_ini->InfraDirAcBk);
3613 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraNomMsduSizeAcBk] Value = [0x%x] ",pHddCtx->cfg_ini->InfraNomMsduSizeAcBk);
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003614 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraMeanDataRateAcBk] Value = [0x%x] ",pHddCtx->cfg_ini->InfraMeanDataRateAcBk);
3615 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraMinPhyRateAcBk] Value = [0x%x] ",pHddCtx->cfg_ini->InfraMinPhyRateAcBk);
Jeff Johnson295189b2012-06-20 16:38:30 -07003616 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraSbaAcBk] Value = [0x%x] ",pHddCtx->cfg_ini->InfraSbaAcBk);
3617
3618 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [WfqBkWeight] Value = [%u] ",pHddCtx->cfg_ini->WfqBkWeight);
3619 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [WfqBeWeight] Value = [%u] ",pHddCtx->cfg_ini->WfqBeWeight);
3620 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [WfqViWeight] Value = [%u] ",pHddCtx->cfg_ini->WfqViWeight);
3621 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [WfqVoWeight] Value = [%u] ",pHddCtx->cfg_ini->WfqVoWeight);
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003622 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [DelayedTriggerFrmInt] Value = [%u] ",pHddCtx->cfg_ini->DelayedTriggerFrmInt);
Dhanashri Atred8c20a32014-01-03 17:20:55 -08003623 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [BkReorderAgingTime] Value = [%u] ",pHddCtx->cfg_ini->BkReorderAgingTime);
3624 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [BeReorderAgingTime] Value = [%u] ",pHddCtx->cfg_ini->BeReorderAgingTime);
3625 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [ViReorderAgingTime] Value = [%u] ",pHddCtx->cfg_ini->ViReorderAgingTime);
3626 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [VoReorderAgingTime] Value = [%u] ",pHddCtx->cfg_ini->VoReorderAgingTime);
Jeff Johnson295189b2012-06-20 16:38:30 -07003627 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [mcastBcastFilterSetting] Value = [%u] ",pHddCtx->cfg_ini->mcastBcastFilterSetting);
3628 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [fhostArpOffload] Value = [%u] ",pHddCtx->cfg_ini->fhostArpOffload);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003629#ifdef WLAN_FEATURE_VOWIFI_11R
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003630 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [fFTResourceReqSupported] Value = [%u] ",pHddCtx->cfg_ini->fFTResourceReqSupported);
Jeff Johnson295189b2012-06-20 16:38:30 -07003631#endif
3632
Girish Gowlibf0e1ab2015-01-19 16:05:16 +05303633 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableRoamDelayStats] Value = [%u] ",pHddCtx->cfg_ini->gEnableRoamDelayStats);
Jeff Johnson295189b2012-06-20 16:38:30 -07003634#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003635 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nNeighborReassocRssiThreshold] Value = [%u] ",pHddCtx->cfg_ini->nNeighborReassocRssiThreshold);
3636 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nNeighborLookupRssiThreshold] Value = [%u] ",pHddCtx->cfg_ini->nNeighborLookupRssiThreshold);
3637 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nNeighborScanMinChanTime] Value = [%u] ",pHddCtx->cfg_ini->nNeighborScanMinChanTime);
3638 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nNeighborScanMaxChanTime] Value = [%u] ",pHddCtx->cfg_ini->nNeighborScanMaxChanTime);
3639 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nMaxNeighborRetries] Value = [%u] ",pHddCtx->cfg_ini->nMaxNeighborReqTries);
3640 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nNeighborScanPeriod] Value = [%u] ",pHddCtx->cfg_ini->nNeighborScanPeriod);
3641 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nNeighborScanResultsRefreshPeriod] Value = [%u] ",pHddCtx->cfg_ini->nNeighborResultsRefreshPeriod);
3642 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nEmptyScanRefreshPeriod] Value = [%u] ",pHddCtx->cfg_ini->nEmptyScanRefreshPeriod);
Mukul Sharma20aa6582014-08-07 21:36:12 +05303643 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nNeighborInitialForcedRoamTo5GhEnable] Value = [%u] ",pHddCtx->cfg_ini->nNeighborInitialForcedRoamTo5GhEnable);
Jeff Johnson295189b2012-06-20 16:38:30 -07003644#endif
3645 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [burstSizeDefinition] Value = [0x%x] ",pHddCtx->cfg_ini->burstSizeDefinition);
3646 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [tsInfoAckPolicy] Value = [0x%x] ",pHddCtx->cfg_ini->tsInfoAckPolicy);
3647 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [rfSettlingTimeUs] Value = [%u] ",pHddCtx->cfg_ini->rfSettlingTimeUs);
3648 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [bSingleTidRc] Value = [%u] ",pHddCtx->cfg_ini->bSingleTidRc);
3649 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gDynamicPSPollvalue] Value = [%u] ",pHddCtx->cfg_ini->dynamicPsPollValue);
3650 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gAddTSWhenACMIsOff] Value = [%u] ",pHddCtx->cfg_ini->AddTSWhenACMIsOff);
3651 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gValidateScanList] Value = [%u] ",pHddCtx->cfg_ini->fValidateScanList);
3652
3653 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gStaKeepAlivePeriod] Value = [%u] ",pHddCtx->cfg_ini->infraStaKeepAlivePeriod);
3654 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gApDataAvailPollInterVal] Value = [%u] ",pHddCtx->cfg_ini->apDataAvailPollPeriodInMs);
3655 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableBtAmp] Value = [%u] ",pHddCtx->cfg_ini->enableBtAmp);
3656#ifdef WLAN_BTAMP_FEATURE
3657 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [BtAmpPreferredChannel] Value = [%u] ",pHddCtx->cfg_ini->preferredChannel);
3658#endif //WLAN_BTAMP_FEATURE
3659 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [BandCapability] Value = [%u] ",pHddCtx->cfg_ini->nBandCapability);
3660 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [fEnableBeaconEarlyTermination] Value = [%u] ",pHddCtx->cfg_ini->fEnableBeaconEarlyTermination);
3661 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [teleBcnWakeupEnable] Value = [%u] ",pHddCtx->cfg_ini->teleBcnWakeupEn);
3662 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [transListenInterval] Value = [%u] ",pHddCtx->cfg_ini->nTeleBcnTransListenInterval);
3663 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [transLiNumIdleBeacons] Value = [%u] ",pHddCtx->cfg_ini->nTeleBcnTransLiNumIdleBeacons);
3664 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [maxListenInterval] Value = [%u] ",pHddCtx->cfg_ini->nTeleBcnMaxListenInterval);
3665 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [maxLiNumIdleBeacons] Value = [%u] ",pHddCtx->cfg_ini->nTeleBcnMaxLiNumIdleBeacons);
3666 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [bcnEarlyTermWakeInterval] Value = [%u] ",pHddCtx->cfg_ini->bcnEarlyTermWakeInterval);
3667 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gApDataAvailPollInterVal] Value = [%u] ",pHddCtx->cfg_ini->apDataAvailPollPeriodInMs);
3668 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableBypass11d] Value = [%u] ",pHddCtx->cfg_ini->enableBypass11d);
3669 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableDFSChnlScan] Value = [%u] ",pHddCtx->cfg_ini->enableDFSChnlScan);
Sachin Ahuja697ba3f2014-11-12 18:57:11 +05303670 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableDFSPnoChnlScan] Value = [%u] ",pHddCtx->cfg_ini->enableDFSPnoChnlScan);
Jeff Johnson295189b2012-06-20 16:38:30 -07003671 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gReportMaxLinkSpeed] Value = [%u] ",pHddCtx->cfg_ini->reportMaxLinkSpeed);
3672 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [thermalMitigationEnable] Value = [%u] ",pHddCtx->cfg_ini->thermalMitigationEnable);
Jeff Johnsone7245742012-09-05 17:12:55 -07003673#ifdef WLAN_FEATURE_11AC
Arif Hussain6d2a3322013-11-17 19:50:10 -08003674 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gVhtChannelWidth] value = [%u]",pHddCtx->cfg_ini->vhtChannelWidth);
Jeff Johnsone7245742012-09-05 17:12:55 -07003675#endif
3676 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [enableFirstScan2GOnly] Value = [%u] ",pHddCtx->cfg_ini->enableFirstScan2GOnly);
3677 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [skipDfsChnlInP2pSearch] Value = [%u] ",pHddCtx->cfg_ini->skipDfsChnlInP2pSearch);
3678 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [ignoreDynamicDtimInP2pMode] Value = [%u] ",pHddCtx->cfg_ini->ignoreDynamicDtimInP2pMode);
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05303679 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [enableRxSTBC] Value = [%u] ",pHddCtx->cfg_ini->enableRxSTBC);
Madan Mohan Koyyalamudi0d40e662012-12-07 14:24:14 -08003680 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableLpwrImgTransition] Value = [%u] ",pHddCtx->cfg_ini->enableLpwrImgTransition);
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -07003681 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableSSR] Value = [%u] ",pHddCtx->cfg_ini->enableSSR);
Ravi Joshi83bfaa12013-05-28 22:12:08 -07003682 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableVhtFor24GHzBand] Value = [%u] ",pHddCtx->cfg_ini->enableVhtFor24GHzBand);
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -07003683
Leo Chang64d68bc2013-06-04 15:40:52 -07003684 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableTrafficMonitor] Value = [%u] ", pHddCtx->cfg_ini->enableTrafficMonitor);
3685 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gTrafficIdleTimeout] Value = [%u] ", pHddCtx->cfg_ini->trafficIdleTimeout);
Yue Ma0fd23872013-08-01 15:56:47 -07003686 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gFlexConnectPowerFactor] Value = [%u] ", pHddCtx->cfg_ini->flexConnectPowerFactor);
Ravi Joshid2ca7c42013-07-23 08:37:49 -07003687 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableIbssHeartBeatOffload] Value = [%u] ", pHddCtx->cfg_ini->enableIbssHeartBeatOffload);
Madan Mohan Koyyalamudica454572013-08-07 19:57:03 +05303688 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gAntennaDiversity] Value = [%u] ", pHddCtx->cfg_ini->antennaDiversity);
Madan Mohan Koyyalamudi2558bc92013-08-24 16:54:31 +05303689 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gGoLinkMonitorPeriod] Value = [%u]",pHddCtx->cfg_ini->goLinkMonitorPeriod);
3690 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gApLinkMonitorPeriod] Value = [%u]",pHddCtx->cfg_ini->apLinkMonitorPeriod);
3691 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gGoKeepAlivePeriod] Value = [%u]",pHddCtx->cfg_ini->goKeepAlivePeriod);
3692 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gApKeepAlivePeriod]Value = [%u]",pHddCtx->cfg_ini->apKeepAlivePeriod);
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003693 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gAmsduSupportInAMPDU] Value = [%u] ",pHddCtx->cfg_ini->isAmsduSupportInAMPDU);
3694 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nSelect5GHzMargin] Value = [%u] ",pHddCtx->cfg_ini->nSelect5GHzMargin);
Jeff Johnson89aa2692013-11-25 16:23:43 -08003695 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gCoalesingInIBSS] Value = [%u] ",pHddCtx->cfg_ini->isCoalesingInIBSSAllowed);
Madan Mohan Koyyalamudi2558bc92013-08-24 16:54:31 +05303696
Tushnim Bhattacharyya9889e792013-12-19 18:18:36 -08003697 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [overrideCountryCode] Value = [%s] ",pHddCtx->cfg_ini->overrideCountryCode);
AnjaneeDevi Kapparapu50239e32014-01-07 18:09:33 +05303698
3699 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gAsdProbeInterval] Value = [%u]",pHddCtx->cfg_ini->gAsdProbeInterval);
c_hpothu1c4405a2014-12-10 18:16:16 +05303700 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gAsdTriggerThreshold] Value = [%hhd]",pHddCtx->cfg_ini->gAsdTriggerThreshold);
AnjaneeDevi Kapparapu50239e32014-01-07 18:09:33 +05303701 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gAsdRTTRssiHystThreshold]Value = [%u]",pHddCtx->cfg_ini->gAsdRTTRssiHystThreshold);
Sandeep Puligillac80f26e2014-03-11 18:36:10 +05303702 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gRoamtoDFSChannel] Value = [%u] ",pHddCtx->cfg_ini->allowDFSChannelRoam);
Agarwal Ashish51325b52014-06-16 16:50:49 +05303703 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gMaxConcurrentActiveSessions] Value = [%u] ", pHddCtx->cfg_ini->gMaxConcurrentActiveSessions);
Hardik Kantilal Patel086e0a32014-11-20 14:56:26 +05303704#ifdef WLAN_FEATURE_AP_HT40_24G
3705 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gApHT4024G] Value = [%u]", pHddCtx->cfg_ini->apHT40_24GEnabled);
3706#endif
Peng Xufc6ad8e2014-09-25 13:16:43 +05303707 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gAcsScanBandPreference] Value = [%u] ",pHddCtx->cfg_ini->acsScanBandPreference);
Agarwal Ashishbd3e10b2014-11-24 19:19:46 +05303708 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gACSBandSwitchThreshold] value = [%u]\n",pHddCtx->cfg_ini->acsBandSwitchThreshold);
3709 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gDeferScanTimeInterval] value = [%u]\n",pHddCtx->cfg_ini->nDeferScanTimeInterval);
Agarwal Ashishef54a182014-12-16 15:07:31 +05303710 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableTDLSScan] value = [%u]\n",pHddCtx->cfg_ini->fEnableTDLSScan);
Katya Nigama6fbf662015-03-17 18:35:47 +05303711 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gDxeReplenishRXTimerVal] Value = [%u] ", pHddCtx->cfg_ini->dxeReplenishRXTimerVal);
3712 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gDxeSSREnable] Value = [%u] ", pHddCtx->cfg_ini->dxeSSREnable);
Jeff Johnson295189b2012-06-20 16:38:30 -07003713}
3714
3715
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -07003716
Jeff Johnson295189b2012-06-20 16:38:30 -07003717#define CFG_VALUE_MAX_LEN 256
3718#define CFG_ENTRY_MAX_LEN (32+CFG_VALUE_MAX_LEN)
3719VOS_STATUS hdd_cfg_get_config(hdd_context_t *pHddCtx, char *pBuf, int buflen)
3720{
3721 unsigned int idx;
3722 REG_TABLE_ENTRY *pRegEntry = g_registry_table;
3723 unsigned long cRegTableEntries = sizeof(g_registry_table) / sizeof( g_registry_table[ 0 ]);
3724 v_U32_t value;
3725 char valueStr[CFG_VALUE_MAX_LEN];
3726 char configStr[CFG_ENTRY_MAX_LEN];
3727 char *fmt;
3728 void *pField;
3729 v_MACADDR_t *pMacAddr;
3730 char *pCur = pBuf;
3731 int curlen;
3732
3733 // start with an empty string
3734 *pCur = '\0';
3735
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003736 for ( idx = 0; idx < cRegTableEntries; idx++, pRegEntry++ )
Jeff Johnson295189b2012-06-20 16:38:30 -07003737 {
3738 pField = ( (v_U8_t *)pHddCtx->cfg_ini) + pRegEntry->VarOffset;
3739
3740 if ( ( WLAN_PARAM_Integer == pRegEntry->RegType ) ||
3741 ( WLAN_PARAM_SignedInteger == pRegEntry->RegType ) ||
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003742 ( WLAN_PARAM_HexInteger == pRegEntry->RegType ) )
Jeff Johnson295189b2012-06-20 16:38:30 -07003743 {
3744 value = 0;
3745 memcpy( &value, pField, pRegEntry->VarSize );
3746 if ( WLAN_PARAM_HexInteger == pRegEntry->RegType )
3747 {
3748 fmt = "%x";
3749 }
3750 else if ( WLAN_PARAM_SignedInteger == pRegEntry->RegType )
3751 {
3752 fmt = "%d";
3753 }
3754 else
3755 {
3756 fmt = "%u";
3757 }
3758 snprintf(valueStr, CFG_VALUE_MAX_LEN, fmt, value);
3759 }
3760 else if ( WLAN_PARAM_String == pRegEntry->RegType )
3761 {
3762 snprintf(valueStr, CFG_VALUE_MAX_LEN, "%s", (char *)pField);
3763 }
3764 else if ( WLAN_PARAM_MacAddr == pRegEntry->RegType )
3765 {
3766 pMacAddr = (v_MACADDR_t *) pField;
3767 snprintf(valueStr, CFG_VALUE_MAX_LEN,
3768 "%02x:%02x:%02x:%02x:%02x:%02x",
3769 pMacAddr->bytes[0],
3770 pMacAddr->bytes[1],
3771 pMacAddr->bytes[2],
3772 pMacAddr->bytes[3],
3773 pMacAddr->bytes[4],
3774 pMacAddr->bytes[5]);
3775 }
3776 else
3777 {
3778 snprintf(valueStr, CFG_VALUE_MAX_LEN, "(unhandled)");
3779 }
Sameer Thalappilb0a30232013-09-27 15:37:48 -07003780 curlen = scnprintf(configStr, CFG_ENTRY_MAX_LEN,
Jeff Johnson295189b2012-06-20 16:38:30 -07003781 "%s=[%s]%s\n",
3782 pRegEntry->RegName,
3783 valueStr,
3784 test_bit(idx, (void *)&pHddCtx->cfg_ini->bExplicitCfg) ?
3785 "*" : "");
3786
3787 // ideally we want to return the config to the application
3788 // however the config is too big so we just printk() for now
3789#ifdef RETURN_IN_BUFFER
3790 if (curlen <= buflen)
3791 {
3792 // copy string + '\0'
3793 memcpy(pCur, configStr, curlen+1);
3794
3795 // account for addition;
3796 pCur += curlen;
3797 buflen -= curlen;
3798 }
3799 else
3800 {
3801 // buffer space exhausted, return what we have
3802 return VOS_STATUS_E_RESOURCES;
3803 }
3804#else
3805 printk(KERN_CRIT "%s", configStr);
3806#endif // RETURN_IN_BUFFER
3807
3808}
3809
3810#ifndef RETURN_IN_BUFFER
3811 // notify application that output is in system log
3812 snprintf(pCur, buflen, "WLAN configuration written to system log");
3813#endif // RETURN_IN_BUFFER
3814
3815 return VOS_STATUS_SUCCESS;
3816}
3817
3818static VOS_STATUS find_cfg_item (tCfgIniEntry* iniTable, unsigned long entries,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08003819 char *name, char** value)
Jeff Johnson295189b2012-06-20 16:38:30 -07003820{
3821 VOS_STATUS status = VOS_STATUS_E_FAILURE;
3822 unsigned long i;
3823
3824 for (i = 0; i < entries; i++) {
3825 if (strcmp(iniTable[i].name, name) == 0) {
3826 *value = iniTable[i].value;
3827 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Found %s entry for Name=[%s] Value=[%s] ",
3828 WLAN_INI_FILE, name, *value);
3829 return VOS_STATUS_SUCCESS;
3830 }
3831 }
3832
3833 return status;
3834}
3835
3836static int parseHexDigit(char c)
3837{
3838 if (c >= '0' && c <= '9')
3839 return c-'0';
3840 if (c >= 'a' && c <= 'f')
3841 return c-'a'+10;
3842 if (c >= 'A' && c <= 'F')
3843 return c-'A'+10;
3844
3845 return 0;
3846}
3847
3848
3849static VOS_STATUS hdd_apply_cfg_ini( hdd_context_t *pHddCtx, tCfgIniEntry* iniTable, unsigned long entries)
3850{
3851 VOS_STATUS match_status = VOS_STATUS_E_FAILURE;
3852 VOS_STATUS ret_status = VOS_STATUS_SUCCESS;
3853 unsigned int idx;
3854 void *pField;
3855 char *value_str = NULL;
3856 unsigned long len_value_str;
3857 char *candidate;
3858 v_U32_t value;
3859 v_S31_t svalue;
3860 void *pStructBase = pHddCtx->cfg_ini;
3861 REG_TABLE_ENTRY *pRegEntry = g_registry_table;
3862 unsigned long cRegTableEntries = sizeof(g_registry_table) / sizeof( g_registry_table[ 0 ]);
3863 v_U32_t cbOutString;
3864 int i;
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08003865 int rv;
Jeff Johnson295189b2012-06-20 16:38:30 -07003866
3867 // sanity test
3868 if (MAX_CFG_INI_ITEMS < cRegTableEntries)
3869 {
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003870 hddLog(LOGE, "%s: MAX_CFG_INI_ITEMS too small, must be at least %ld",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07003871 __func__, cRegTableEntries);
Jeff Johnson295189b2012-06-20 16:38:30 -07003872 }
3873
3874 for ( idx = 0; idx < cRegTableEntries; idx++, pRegEntry++ )
3875 {
3876 //Calculate the address of the destination field in the structure.
3877 pField = ( (v_U8_t *)pStructBase )+ pRegEntry->VarOffset;
3878
3879 match_status = find_cfg_item(iniTable, entries, pRegEntry->RegName, &value_str);
3880
3881 if( (match_status != VOS_STATUS_SUCCESS) && ( pRegEntry->Flags & VAR_FLAGS_REQUIRED ) )
3882 {
3883 // If we could not read the cfg item and it is required, this is an error.
3884 hddLog(LOGE, "%s: Failed to read required config parameter %s",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07003885 __func__, pRegEntry->RegName);
Jeff Johnson295189b2012-06-20 16:38:30 -07003886 ret_status = VOS_STATUS_E_FAILURE;
3887 break;
3888 }
3889
3890 if ( ( WLAN_PARAM_Integer == pRegEntry->RegType ) ||
3891 ( WLAN_PARAM_HexInteger == pRegEntry->RegType ) )
3892 {
3893 // If successfully read from the registry, use the value read.
3894 // If not, use the default value.
3895 if ( match_status == VOS_STATUS_SUCCESS && (WLAN_PARAM_Integer == pRegEntry->RegType)) {
Jeff Johnson02797792013-10-26 19:17:13 -07003896 rv = kstrtou32(value_str, 10, &value);
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08003897 if (rv < 0) {
3898 hddLog(LOGE, "%s: Reg Parameter %s invalid. Enforcing default",
3899 __func__, pRegEntry->RegName);
3900 value = pRegEntry->VarDefault;
3901 }
Jeff Johnson295189b2012-06-20 16:38:30 -07003902 }
3903 else if ( match_status == VOS_STATUS_SUCCESS && (WLAN_PARAM_HexInteger == pRegEntry->RegType)) {
Jeff Johnson02797792013-10-26 19:17:13 -07003904 rv = kstrtou32(value_str, 16, &value);
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08003905 if (rv < 0) {
3906 hddLog(LOGE, "%s: Reg paramter %s invalid. Enforcing default",
3907 __func__, pRegEntry->RegName);
3908 value = pRegEntry->VarDefault;
3909 }
Jeff Johnson295189b2012-06-20 16:38:30 -07003910 }
3911 else {
3912 value = pRegEntry->VarDefault;
3913 }
3914
3915 // If this parameter needs range checking, do it here.
3916 if ( pRegEntry->Flags & VAR_FLAGS_RANGE_CHECK )
3917 {
3918 if ( value > pRegEntry->VarMax )
3919 {
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003920 hddLog(LOGE, "%s: Reg Parameter %s > allowed Maximum [%u > %lu]. Enforcing Maximum",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07003921 __func__, pRegEntry->RegName, value, pRegEntry->VarMax );
Jeff Johnson295189b2012-06-20 16:38:30 -07003922 value = pRegEntry->VarMax;
3923 }
3924
3925 if ( value < pRegEntry->VarMin )
3926 {
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003927 hddLog(LOGE, "%s: Reg Parameter %s < allowed Minimum [%u < %lu]. Enforcing Minimum",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07003928 __func__, pRegEntry->RegName, value, pRegEntry->VarMin);
Jeff Johnson295189b2012-06-20 16:38:30 -07003929 value = pRegEntry->VarMin;
3930 }
3931 }
3932 // If this parameter needs range checking, do it here.
3933 else if ( pRegEntry->Flags & VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT )
3934 {
3935 if ( value > pRegEntry->VarMax )
3936 {
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003937 hddLog(LOGE, "%s: Reg Parameter %s > allowed Maximum [%u > %lu]. Enforcing Default= %lu",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07003938 __func__, pRegEntry->RegName, value, pRegEntry->VarMax, pRegEntry->VarDefault );
Jeff Johnson295189b2012-06-20 16:38:30 -07003939 value = pRegEntry->VarDefault;
3940 }
3941
3942 if ( value < pRegEntry->VarMin )
3943 {
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003944 hddLog(LOGE, "%s: Reg Parameter %s < allowed Minimum [%u < %lu]. Enforcing Default= %lu",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07003945 __func__, pRegEntry->RegName, value, pRegEntry->VarMin, pRegEntry->VarDefault );
Jeff Johnson295189b2012-06-20 16:38:30 -07003946 value = pRegEntry->VarDefault;
3947 }
3948 }
3949
3950 // Move the variable into the output field.
3951 memcpy( pField, &value, pRegEntry->VarSize );
3952 }
3953 else if ( WLAN_PARAM_SignedInteger == pRegEntry->RegType )
3954 {
3955 // If successfully read from the registry, use the value read.
3956 // If not, use the default value.
3957 if (VOS_STATUS_SUCCESS == match_status)
3958 {
Jeff Johnson02797792013-10-26 19:17:13 -07003959 rv = kstrtos32(value_str, 10, &svalue);
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08003960 if (rv < 0) {
3961 hddLog(VOS_TRACE_LEVEL_WARN, "%s: Reg Parameter %s invalid. Enforcing Default",
3962 __func__, pRegEntry->RegName);
3963 svalue = (v_S31_t)pRegEntry->VarDefault;
3964 }
Jeff Johnson295189b2012-06-20 16:38:30 -07003965 }
3966 else
3967 {
3968 svalue = (v_S31_t)pRegEntry->VarDefault;
3969 }
3970
3971 // If this parameter needs range checking, do it here.
3972 if ( pRegEntry->Flags & VAR_FLAGS_RANGE_CHECK )
3973 {
3974 if ( svalue > (v_S31_t)pRegEntry->VarMax )
3975 {
3976 hddLog(LOGE, "%s: Reg Parameter %s > allowed Maximum "
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003977 "[%d > %d]. Enforcing Maximum", __func__,
Jeff Johnson295189b2012-06-20 16:38:30 -07003978 pRegEntry->RegName, svalue, (int)pRegEntry->VarMax );
3979 svalue = (v_S31_t)pRegEntry->VarMax;
3980 }
3981
3982 if ( svalue < (v_S31_t)pRegEntry->VarMin )
3983 {
3984 hddLog(LOGE, "%s: Reg Parameter %s < allowed Minimum "
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003985 "[%d < %d]. Enforcing Minimum", __func__,
Jeff Johnson295189b2012-06-20 16:38:30 -07003986 pRegEntry->RegName, svalue, (int)pRegEntry->VarMin);
3987 svalue = (v_S31_t)pRegEntry->VarMin;
3988 }
3989 }
3990 // If this parameter needs range checking, do it here.
3991 else if ( pRegEntry->Flags & VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT )
3992 {
3993 if ( svalue > (v_S31_t)pRegEntry->VarMax )
3994 {
3995 hddLog(LOGE, "%s: Reg Parameter %s > allowed Maximum "
Jeff Johnson0299d0a2013-10-30 12:37:43 -07003996 "[%d > %d]. Enforcing Default= %d",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07003997 __func__, pRegEntry->RegName, svalue,
Jeff Johnson295189b2012-06-20 16:38:30 -07003998 (int)pRegEntry->VarMax,
3999 (int)pRegEntry->VarDefault );
4000 svalue = (v_S31_t)pRegEntry->VarDefault;
4001 }
4002
4003 if ( svalue < (v_S31_t)pRegEntry->VarMin )
4004 {
4005 hddLog(LOGE, "%s: Reg Parameter %s < allowed Minimum "
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004006 "[%d < %d]. Enforcing Default= %d",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07004007 __func__, pRegEntry->RegName, svalue,
Jeff Johnson295189b2012-06-20 16:38:30 -07004008 (int)pRegEntry->VarMin,
4009 (int)pRegEntry->VarDefault);
4010 svalue = pRegEntry->VarDefault;
4011 }
4012 }
4013
4014 // Move the variable into the output field.
4015 memcpy( pField, &svalue, pRegEntry->VarSize );
4016 }
4017 // Handle string parameters
4018 else if ( WLAN_PARAM_String == pRegEntry->RegType )
4019 {
4020#ifdef WLAN_CFG_DEBUG
Arif Hussain6d2a3322013-11-17 19:50:10 -08004021 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "RegName = %s, VarOffset %u VarSize %u VarDefault %s",
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004022 pRegEntry->RegName, pRegEntry->VarOffset, pRegEntry->VarSize, (char*)pRegEntry->VarDefault);
Jeff Johnson295189b2012-06-20 16:38:30 -07004023#endif
4024
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004025 if ( match_status == VOS_STATUS_SUCCESS)
Jeff Johnson295189b2012-06-20 16:38:30 -07004026 {
4027 len_value_str = strlen(value_str);
4028
4029 if(len_value_str > (pRegEntry->VarSize - 1)) {
Arif Hussain6d2a3322013-11-17 19:50:10 -08004030 hddLog(LOGE, "%s: Invalid Value=[%s] specified for Name=[%s] in %s",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07004031 __func__, value_str, pRegEntry->RegName, WLAN_INI_FILE);
Jeff Johnson295189b2012-06-20 16:38:30 -07004032 cbOutString = utilMin( strlen( (char *)pRegEntry->VarDefault ), pRegEntry->VarSize - 1 );
4033 memcpy( pField, (void *)(pRegEntry->VarDefault), cbOutString );
4034 ( (v_U8_t *)pField )[ cbOutString ] = '\0';
4035 }
4036 else
4037 {
4038 memcpy( pField, (void *)(value_str), len_value_str);
4039 ( (v_U8_t *)pField )[ len_value_str ] = '\0';
4040 }
4041 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004042 else
Jeff Johnson295189b2012-06-20 16:38:30 -07004043 {
4044 // Failed to read the string parameter from the registry. Use the default.
4045 cbOutString = utilMin( strlen( (char *)pRegEntry->VarDefault ), pRegEntry->VarSize - 1 );
4046 memcpy( pField, (void *)(pRegEntry->VarDefault), cbOutString );
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004047 ( (v_U8_t *)pField )[ cbOutString ] = '\0';
Jeff Johnson295189b2012-06-20 16:38:30 -07004048 }
4049 }
4050 else if ( WLAN_PARAM_MacAddr == pRegEntry->RegType )
4051 {
4052 if(pRegEntry->VarSize != VOS_MAC_ADDR_SIZE) {
Arif Hussain6d2a3322013-11-17 19:50:10 -08004053 hddLog(LOGE, "%s: Invalid VarSize %u for Name=[%s]",
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004054 __func__, pRegEntry->VarSize, pRegEntry->RegName);
Jeff Johnson295189b2012-06-20 16:38:30 -07004055 continue;
4056 }
4057 candidate = (char*)pRegEntry->VarDefault;
4058 if ( match_status == VOS_STATUS_SUCCESS) {
4059 len_value_str = strlen(value_str);
4060 if(len_value_str != (VOS_MAC_ADDR_SIZE*2)) {
Arif Hussain6d2a3322013-11-17 19:50:10 -08004061 hddLog(LOGE, "%s: Invalid MAC addr [%s] specified for Name=[%s] in %s",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07004062 __func__, value_str, pRegEntry->RegName, WLAN_INI_FILE);
Jeff Johnson295189b2012-06-20 16:38:30 -07004063 }
4064 else
4065 candidate = value_str;
4066 }
4067 //parse the string and store it in the byte array
4068 for(i=0; i<VOS_MAC_ADDR_SIZE; i++)
4069 {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004070 ((char*)pField)[i] =
4071 (char)(parseHexDigit(candidate[i*2])*16 + parseHexDigit(candidate[i*2+1]));
Jeff Johnson295189b2012-06-20 16:38:30 -07004072 }
4073 }
4074 else
4075 {
Arif Hussain6d2a3322013-11-17 19:50:10 -08004076 hddLog(LOGE, "%s: Unknown param type for name[%s] in registry table",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07004077 __func__, pRegEntry->RegName);
Jeff Johnson295189b2012-06-20 16:38:30 -07004078 }
4079
4080 // did we successfully parse a cfg item for this parameter?
4081 if( (match_status == VOS_STATUS_SUCCESS) &&
4082 (idx < MAX_CFG_INI_ITEMS) )
4083 {
4084 set_bit(idx, (void *)&pHddCtx->cfg_ini->bExplicitCfg);
4085 }
4086 }
4087
4088 print_hdd_cfg(pHddCtx);
4089
4090 return( ret_status );
4091}
4092
4093eCsrPhyMode hdd_cfg_xlate_to_csr_phy_mode( eHddDot11Mode dot11Mode )
4094{
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004095 switch (dot11Mode)
Jeff Johnson295189b2012-06-20 16:38:30 -07004096 {
4097 case (eHDD_DOT11_MODE_abg):
4098 return eCSR_DOT11_MODE_abg;
4099 case (eHDD_DOT11_MODE_11b):
4100 return eCSR_DOT11_MODE_11b;
4101 case (eHDD_DOT11_MODE_11g):
4102 return eCSR_DOT11_MODE_11g;
4103 default:
4104 case (eHDD_DOT11_MODE_11n):
4105 return eCSR_DOT11_MODE_11n;
4106 case (eHDD_DOT11_MODE_11g_ONLY):
4107 return eCSR_DOT11_MODE_11g_ONLY;
4108 case (eHDD_DOT11_MODE_11n_ONLY):
4109 return eCSR_DOT11_MODE_11n_ONLY;
4110 case (eHDD_DOT11_MODE_11b_ONLY):
4111 return eCSR_DOT11_MODE_11b_ONLY;
Jeff Johnsone7245742012-09-05 17:12:55 -07004112#ifdef WLAN_FEATURE_11AC
4113 case (eHDD_DOT11_MODE_11ac_ONLY):
4114 return eCSR_DOT11_MODE_11ac_ONLY;
4115 case (eHDD_DOT11_MODE_11ac):
4116 return eCSR_DOT11_MODE_11ac;
4117#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07004118 case (eHDD_DOT11_MODE_AUTO):
4119 return eCSR_DOT11_MODE_AUTO;
4120 }
4121
4122}
4123
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004124static void hdd_set_btc_config(hdd_context_t *pHddCtx)
Jeff Johnson295189b2012-06-20 16:38:30 -07004125{
4126 hdd_config_t *pConfig = pHddCtx->cfg_ini;
4127 tSmeBtcConfig btcParams;
Wilson Tsaof8b37942013-09-06 10:49:00 -07004128 int i;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004129
Jeff Johnson295189b2012-06-20 16:38:30 -07004130 sme_BtcGetConfig(pHddCtx->hHal, &btcParams);
4131
4132 btcParams.btcExecutionMode = pConfig->btcExecutionMode;
Jeff Johnson295189b2012-06-20 16:38:30 -07004133 btcParams.btcConsBtSlotsToBlockDuringDhcp = pConfig->btcConsBtSlotsToBlockDuringDhcp;
Jeff Johnson295189b2012-06-20 16:38:30 -07004134 btcParams.btcA2DPBtSubIntervalsDuringDhcp = pConfig->btcA2DPBtSubIntervalsDuringDhcp;
4135
Jeff Johnson32d95a32012-09-10 13:15:23 -07004136 btcParams.btcStaticLenInqBt = pConfig->btcStaticLenInqBt;
4137 btcParams.btcStaticLenPageBt = pConfig->btcStaticLenPageBt;
4138 btcParams.btcStaticLenConnBt = pConfig->btcStaticLenConnBt;
4139 btcParams.btcStaticLenLeBt = pConfig->btcStaticLenLeBt;
4140 btcParams.btcStaticLenInqWlan = pConfig->btcStaticLenInqWlan;
4141 btcParams.btcStaticLenPageWlan = pConfig->btcStaticLenPageWlan;
4142 btcParams.btcStaticLenConnWlan = pConfig->btcStaticLenConnWlan;
4143 btcParams.btcStaticLenLeWlan = pConfig->btcStaticLenLeWlan;
4144 btcParams.btcDynMaxLenBt = pConfig->btcDynMaxLenBt;
4145 btcParams.btcDynMaxLenWlan = pConfig->btcDynMaxLenWlan;
4146 btcParams.btcMaxScoBlockPerc = pConfig->btcMaxScoBlockPerc;
4147 btcParams.btcDhcpProtOnA2dp = pConfig->btcDhcpProtOnA2dp;
4148 btcParams.btcDhcpProtOnSco = pConfig->btcDhcpProtOnSco;
4149
Wilson Tsaof8b37942013-09-06 10:49:00 -07004150 for (i = 0; i < 10; i++)
4151 {
4152 btcParams.mwsCoexVictimWANFreq[i] = pConfig->mwsCoexVictimWANFreq[i];
4153 btcParams.mwsCoexVictimWLANFreq[i] = pConfig->mwsCoexVictimWLANFreq[i];
4154 btcParams.mwsCoexVictimConfig[i] = pConfig->mwsCoexVictimConfig[i];
4155 btcParams.mwsCoexVictimConfig2[i] = pConfig->mwsCoexVictimConfig2[i];
4156 }
4157 for (i = 0; i < 6; i++)
4158 {
4159 btcParams.mwsCoexConfig[i] = pConfig->mwsCoexConfig[i];
4160 }
4161 btcParams.mwsCoexModemBackoff = pConfig->mwsCoexModemBackoff;
4162 btcParams.SARPowerBackoff = pConfig->SARPowerBackoff;
4163
Jeff Johnson295189b2012-06-20 16:38:30 -07004164 sme_BtcSetConfig(pHddCtx->hHal, &btcParams);
4165}
4166
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004167static void hdd_set_power_save_config(hdd_context_t *pHddCtx, tSmeConfigParams *smeConfig)
Jeff Johnson295189b2012-06-20 16:38:30 -07004168{
4169 hdd_config_t *pConfig = pHddCtx->cfg_ini;
4170
4171 tPmcBmpsConfigParams bmpsParams;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004172
Jeff Johnson295189b2012-06-20 16:38:30 -07004173 sme_GetConfigPowerSave(pHddCtx->hHal, ePMC_BEACON_MODE_POWER_SAVE, &bmpsParams);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004174
Jeff Johnson295189b2012-06-20 16:38:30 -07004175 if (strcmp(pConfig->PowerUsageControl, "Min") == 0)
4176 {
4177 smeConfig->csrConfig.impsSleepTime = pConfig->nImpsMinSleepTime;
4178 bmpsParams.bmpsPeriod = pConfig->nBmpsMinListenInterval;
4179 bmpsParams.enableBeaconEarlyTermination = pConfig->fEnableBeaconEarlyTermination;
4180 bmpsParams.bcnEarlyTermWakeInterval = pConfig->bcnEarlyTermWakeInterval;
4181 }
4182 if (strcmp(pConfig->PowerUsageControl, "Max") == 0)
4183 {
4184 smeConfig->csrConfig.impsSleepTime = pConfig->nImpsMaxSleepTime;
4185 bmpsParams.bmpsPeriod = pConfig->nBmpsMaxListenInterval;
4186 bmpsParams.enableBeaconEarlyTermination = pConfig->fEnableBeaconEarlyTermination;
4187 bmpsParams.bcnEarlyTermWakeInterval = pConfig->bcnEarlyTermWakeInterval;
4188 }
4189 if (strcmp(pConfig->PowerUsageControl, "Mod") == 0)
4190 {
4191 smeConfig->csrConfig.impsSleepTime = pConfig->nImpsModSleepTime;
4192 bmpsParams.bmpsPeriod = pConfig->nBmpsModListenInterval;
4193 bmpsParams.enableBeaconEarlyTermination = pConfig->fEnableBeaconEarlyTermination;
4194 bmpsParams.bcnEarlyTermWakeInterval = pConfig->bcnEarlyTermWakeInterval;
4195 }
4196
4197 if (pConfig->fIsImpsEnabled)
4198 {
4199 sme_EnablePowerSave (pHddCtx->hHal, ePMC_IDLE_MODE_POWER_SAVE);
4200 }
4201 else
4202 {
4203 sme_DisablePowerSave (pHddCtx->hHal, ePMC_IDLE_MODE_POWER_SAVE);
4204 }
4205
Madan Mohan Koyyalamudi69b34182013-01-16 08:51:40 +05304206 /*If isAndroidPsEn is 1 then Host driver and above layers control the PS mechanism
4207 If Value set to 0 Driver/Core Stack internally control the Power saving mechanism */
4208 sme_SetHostPowerSave (pHddCtx->hHal, pConfig->isAndroidPsEn);
4209
Jeff Johnson295189b2012-06-20 16:38:30 -07004210 if (pConfig->fIsBmpsEnabled)
4211 {
4212 sme_EnablePowerSave (pHddCtx->hHal, ePMC_BEACON_MODE_POWER_SAVE);
4213 }
4214 else
4215 {
4216 sme_DisablePowerSave (pHddCtx->hHal, ePMC_BEACON_MODE_POWER_SAVE);
4217 }
4218
4219 bmpsParams.trafficMeasurePeriod = pConfig->nAutoBmpsTimerValue;
4220
4221 if (sme_SetConfigPowerSave(pHddCtx->hHal, ePMC_BEACON_MODE_POWER_SAVE, &bmpsParams)== eHAL_STATUS_FAILURE)
4222 {
Arif Hussain6d2a3322013-11-17 19:50:10 -08004223 hddLog(LOGE, "SetConfigPowerSave failed to set BMPS params");
Jeff Johnson295189b2012-06-20 16:38:30 -07004224 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004225
Jeff Johnson295189b2012-06-20 16:38:30 -07004226 if(pConfig->fIsAutoBmpsTimerEnabled)
4227 {
4228 sme_StartAutoBmpsTimer(pHddCtx->hHal);
4229 }
4230
4231}
4232
4233#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
4234static VOS_STATUS hdd_string_to_u8_array( char *str, tANI_U8 *intArray, tANI_U8 *len, tANI_U8 intArrayMaxLen )
4235{
4236 char *s = str;
4237
4238 if( str == NULL || intArray == NULL || len == NULL )
4239 {
4240 return VOS_STATUS_E_INVAL;
4241 }
4242 *len = 0;
4243
Jeff Johnson295189b2012-06-20 16:38:30 -07004244 while ( (s != NULL) && (*len < intArrayMaxLen) )
4245 {
4246 int val;
4247 //Increment length only if sscanf succesfully extracted one element.
4248 //Any other return value means error. Ignore it.
4249 if( sscanf(s, "%d", &val ) == 1 )
4250 {
4251 intArray[*len] = (tANI_U8) val;
4252 *len += 1;
4253 }
4254 s = strpbrk( s, "," );
4255 if( s )
4256 s++;
4257 }
Jeff Johnson295189b2012-06-20 16:38:30 -07004258
4259 return VOS_STATUS_SUCCESS;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004260
Jeff Johnson295189b2012-06-20 16:38:30 -07004261}
4262#endif
4263
4264
4265v_BOOL_t hdd_update_config_dat( hdd_context_t *pHddCtx )
4266{
4267 v_BOOL_t fStatus = TRUE;
Gopichand Nakkala976e3252013-01-03 15:45:56 -08004268#ifdef WLAN_SOFTAP_VSTA_FEATURE
4269 tANI_U32 val;
4270#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07004271
4272 hdd_config_t *pConfig = pHddCtx->cfg_ini;
Yue Maed390e72014-04-23 15:46:45 -07004273 tSirMacHTCapabilityInfo *htCapInfo;
4274 tANI_U32 temp32;
4275 tANI_U16 temp16;
Jeff Johnson295189b2012-06-20 16:38:30 -07004276
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004277 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_SHORT_GI_20MHZ,
Jeff Johnson295189b2012-06-20 16:38:30 -07004278 pConfig->ShortGI20MhzEnable, NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4279 {
4280 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004281 hddLog(LOGE, "Could not pass on WNI_CFG_SHORT_GI_20MHZ to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004282 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004283
4284 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_CAL_CONTROL, pConfig->Calibration,
Jeff Johnson295189b2012-06-20 16:38:30 -07004285 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4286 {
4287 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004288 hddLog(LOGE, "Could not pass on WNI_CFG_CAL_CONTROL to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004289 }
4290
4291 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_CAL_PERIOD, pConfig->CalibrationPeriod,
4292 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4293 {
4294 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004295 hddLog(LOGE, "Could not pass on WNI_CFG_CAL_PERIOD to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004296 }
4297
4298 if ( 0 != pConfig->Cfg1Id )
4299 {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004300 if (ccmCfgSetInt(pHddCtx->hHal, pConfig->Cfg1Id, pConfig->Cfg1Value, NULL,
Jeff Johnson295189b2012-06-20 16:38:30 -07004301 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4302 {
4303 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004304 hddLog(LOGE, "Could not pass on Cfg1Id to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004305 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004306
Jeff Johnson295189b2012-06-20 16:38:30 -07004307 }
4308
4309 if ( 0 != pConfig->Cfg2Id )
4310 {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004311 if (ccmCfgSetInt(pHddCtx->hHal, pConfig->Cfg2Id, pConfig->Cfg2Value,
Jeff Johnson295189b2012-06-20 16:38:30 -07004312 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4313 {
4314 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004315 hddLog(LOGE, "Could not pass on Cfg2Id to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004316 }
4317 }
4318
4319 if ( 0 != pConfig->Cfg3Id )
4320 {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004321 if (ccmCfgSetInt(pHddCtx->hHal, pConfig->Cfg3Id, pConfig->Cfg3Value,
Jeff Johnson295189b2012-06-20 16:38:30 -07004322 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4323 {
4324 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004325 hddLog(LOGE, "Could not pass on Cfg3Id to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004326 }
4327 }
4328
4329 if ( 0 != pConfig->Cfg4Id )
4330 {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004331 if (ccmCfgSetInt(pHddCtx->hHal, pConfig->Cfg4Id, pConfig->Cfg4Value,
Jeff Johnson295189b2012-06-20 16:38:30 -07004332 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4333 {
4334 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004335 hddLog(LOGE, "Could not pass on Cfg4Id to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004336 }
4337 }
4338
4339 if ( 0 != pConfig->Cfg5Id )
4340 {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004341 if (ccmCfgSetInt(pHddCtx->hHal, pConfig->Cfg5Id, pConfig->Cfg5Value,
Jeff Johnson295189b2012-06-20 16:38:30 -07004342 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4343 {
4344 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004345 hddLog(LOGE, "Could not pass on Cfg5Id to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004346 }
4347 }
4348
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004349 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BA_AUTO_SETUP, pConfig->BlockAckAutoSetup,
Jeff Johnson295189b2012-06-20 16:38:30 -07004350 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4351 {
4352 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004353 hddLog(LOGE, "Could not pass on WNI_CFG_BA_AUTO_SETUP to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004354 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004355
4356 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_FIXED_RATE, pConfig->TxRate,
Jeff Johnson295189b2012-06-20 16:38:30 -07004357 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4358 {
4359 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004360 hddLog(LOGE, "Could not pass on WNI_CFG_FIXED_RATE to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004361 }
4362
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004363 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_RX_AMPDU_FACTOR,
Jeff Johnson295189b2012-06-20 16:38:30 -07004364 pConfig->MaxRxAmpduFactor, NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4365 {
4366 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004367 hddLog(LOGE,"Could not pass on WNI_CFG_HT_AMPDU_PARAMS_MAX_RX_AMPDU_FACTOR to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004368 }
4369
4370 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_SHORT_PREAMBLE, pConfig->fIsShortPreamble,
4371 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4372 {
4373 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004374 hddLog(LOGE,"Could not pass on WNI_CFG_SHORT_PREAMBLE to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004375 }
4376
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004377 if (pConfig->fIsAutoIbssBssid)
Jeff Johnson295189b2012-06-20 16:38:30 -07004378 {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004379 if (ccmCfgSetStr(pHddCtx->hHal, WNI_CFG_BSSID, (v_U8_t *)"000000000000",
Jeff Johnson295189b2012-06-20 16:38:30 -07004380 sizeof(v_BYTE_t) * VOS_MAC_ADDR_SIZE, NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4381 {
4382 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004383 hddLog(LOGE,"Could not pass on WNI_CFG_BSSID to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004384 }
4385 }
4386 else
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004387 {
Jeff Johnson295189b2012-06-20 16:38:30 -07004388 if ( VOS_FALSE == vos_is_macaddr_group( &pConfig->IbssBssid ))
4389 {
4390 VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_MED,
Arif Hussain24bafea2013-11-15 15:10:03 -08004391 "MAC Addr (IBSS BSSID) read from Registry is: " MAC_ADDRESS_STR,
4392 MAC_ADDR_ARRAY(pConfig->IbssBssid.bytes));
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004393 if (ccmCfgSetStr(pHddCtx->hHal, WNI_CFG_BSSID, pConfig->IbssBssid.bytes,
Jeff Johnson295189b2012-06-20 16:38:30 -07004394 sizeof(v_BYTE_t) * VOS_MAC_ADDR_SIZE, NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4395 {
4396 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004397 hddLog(LOGE,"Could not pass on WNI_CFG_BSSID to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004398 }
4399 }
4400 else
4401 {
4402 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004403 hddLog(LOGE,"Could not pass on WNI_CFG_BSSID to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004404 }
4405 }
4406
Naresh Jayaram3df09eb2013-12-18 17:39:04 +05304407 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PASSIVE_MINIMUM_CHANNEL_TIME,
4408 pConfig->nPassiveMinChnTime, NULL,
4409 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4410 {
4411 fStatus = FALSE;
4412 hddLog(LOGE, "Could not pass on WNI_CFG_PASSIVE_MINIMUM_CHANNEL_TIME"
4413 " to CCM\n");
4414 }
4415
4416 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PASSIVE_MAXIMUM_CHANNEL_TIME,
4417 pConfig->nPassiveMaxChnTime, NULL,
4418 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4419 {
4420 fStatus = FALSE;
4421 hddLog(LOGE, "Could not pass on WNI_CFG_PASSIVE_MAXIMUM_CHANNEL_TIME"
4422 " to CCM\n");
4423 }
4424
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004425 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BEACON_INTERVAL, pConfig->nBeaconInterval,
Jeff Johnson295189b2012-06-20 16:38:30 -07004426 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4427 {
4428 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004429 hddLog(LOGE, "Could not pass on WNI_CFG_BEACON_INTERVAL to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004430 }
4431
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004432 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_PS_POLL, pConfig->nMaxPsPoll,
Jeff Johnson295189b2012-06-20 16:38:30 -07004433 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4434 {
4435 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004436 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_PS_POLL to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004437 }
4438
4439 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_CURRENT_RX_ANTENNA, pConfig-> nRxAnt, NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4440 {
4441 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004442 hddLog(LOGE, "Failure: Could not pass on WNI_CFG_CURRENT_RX_ANTENNA configuration info to HAL" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004443 }
4444
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004445 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_LOW_GAIN_OVERRIDE, pConfig->fIsLowGainOverride,
Jeff Johnson295189b2012-06-20 16:38:30 -07004446 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4447 {
4448 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004449 hddLog(LOGE, "Could not pass on WNI_CFG_LOW_GAIN_OVERRIDE to HAL");
Jeff Johnson295189b2012-06-20 16:38:30 -07004450 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004451
Jeff Johnson295189b2012-06-20 16:38:30 -07004452 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RSSI_FILTER_PERIOD, pConfig->nRssiFilterPeriod,
4453 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4454 {
4455 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004456 hddLog(LOGE, "Could not pass on WNI_CFG_RSSI_FILTER_PERIOD to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004457 }
4458
Jeff Johnson295189b2012-06-20 16:38:30 -07004459 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_IGNORE_DTIM, pConfig->fIgnoreDtim,
4460 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4461 {
4462 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004463 hddLog(LOGE, "Could not pass on WNI_IGNORE_DTIM configuration to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004464 }
4465
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004466 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PS_ENABLE_HEART_BEAT, pConfig->fEnableFwHeartBeatMonitoring,
Jeff Johnson295189b2012-06-20 16:38:30 -07004467 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4468 {
4469 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004470 hddLog(LOGE, "Failure: Could not pass on WNI_CFG_PS_HEART_BEAT configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004471 }
4472
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004473 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PS_ENABLE_BCN_FILTER, pConfig->fEnableFwBeaconFiltering,
Jeff Johnson295189b2012-06-20 16:38:30 -07004474 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4475 {
4476 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004477 hddLog(LOGE, "Failure: Could not pass on WNI_CFG_PS_BCN_FILTER configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004478 }
4479
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004480 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PS_ENABLE_RSSI_MONITOR, pConfig->fEnableFwRssiMonitoring,
Jeff Johnson295189b2012-06-20 16:38:30 -07004481 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4482 {
4483 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004484 hddLog(LOGE, "Failure: Could not pass on WNI_CFG_PS_RSSI_MONITOR configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004485 }
4486
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004487 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PS_DATA_INACTIVITY_TIMEOUT, pConfig->nDataInactivityTimeout,
Jeff Johnson295189b2012-06-20 16:38:30 -07004488 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4489 {
4490 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004491 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_PS_DATA_INACTIVITY_TIMEOUT configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004492 }
4493
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004494 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_NTH_BEACON_FILTER, pConfig->nthBeaconFilter,
Jeff Johnson295189b2012-06-20 16:38:30 -07004495 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4496 {
4497 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004498 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_NTH_BEACON_FILTER configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004499 }
4500
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004501 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_LTE_COEX, pConfig->enableLTECoex,
Jeff Johnson295189b2012-06-20 16:38:30 -07004502 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4503 {
4504 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004505 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_LTE_COEX to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004506 }
4507
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004508 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_PHY_AGC_LISTEN_MODE, pConfig->nEnableListenMode,
Jeff Johnson295189b2012-06-20 16:38:30 -07004509 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4510 {
4511 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004512 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_PHY_AGC_LISTEN_MODE to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004513 }
4514
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004515 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_AP_KEEP_ALIVE_TIMEOUT, pConfig->apKeepAlivePeriod,
Jeff Johnson295189b2012-06-20 16:38:30 -07004516 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4517 {
4518 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004519 hddLog(LOGE, "Could not pass on WNI_CFG_AP_KEEP_ALIVE_TIMEOUT to CCM");
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004520 }
Jeff Johnson295189b2012-06-20 16:38:30 -07004521
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004522 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_GO_KEEP_ALIVE_TIMEOUT, pConfig->goKeepAlivePeriod,
Jeff Johnson295189b2012-06-20 16:38:30 -07004523 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4524 {
4525 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004526 hddLog(LOGE, "Could not pass on WNI_CFG_GO_KEEP_ALIVE_TIMEOUT to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004527 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004528
Sejal Chauhanbcde8bc2013-03-04 18:06:36 +05304529 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_AP_LINK_MONITOR_TIMEOUT, pConfig->apLinkMonitorPeriod,
4530 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4531 {
4532 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004533 hddLog(LOGE, "Could not pass on WNI_CFG_AP_LINK_MONITOR_TIMEOUT to CCM");
Sejal Chauhanbcde8bc2013-03-04 18:06:36 +05304534 }
4535
Madan Mohan Koyyalamudi2558bc92013-08-24 16:54:31 +05304536 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_GO_LINK_MONITOR_TIMEOUT, pConfig->goLinkMonitorPeriod,
4537 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4538 {
4539 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004540 hddLog(LOGE, "Could not pass on WNI_CFG_GO_LINK_MONITOR_TIMEOUT to CCM");
Madan Mohan Koyyalamudi2558bc92013-08-24 16:54:31 +05304541 }
4542
4543
Jeff Johnson295189b2012-06-20 16:38:30 -07004544#if defined WLAN_FEATURE_VOWIFI
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004545 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RRM_ENABLED, pConfig->fRrmEnable,
Jeff Johnson295189b2012-06-20 16:38:30 -07004546 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4547 {
4548 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004549 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_RRM_ENABLE configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004550 }
4551
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004552 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RRM_OPERATING_CHAN_MAX, pConfig->nInChanMeasMaxDuration,
Jeff Johnson295189b2012-06-20 16:38:30 -07004553 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4554 {
4555 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004556 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_RRM_OPERATING_CHAN_MAX configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004557 }
4558
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004559 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RRM_NON_OPERATING_CHAN_MAX, pConfig->nOutChanMeasMaxDuration,
Jeff Johnson295189b2012-06-20 16:38:30 -07004560 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4561 {
4562 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004563 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_RRM_OUT_CHAN_MAX configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004564 }
4565
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004566 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MCAST_BCAST_FILTER_SETTING, pConfig->mcastBcastFilterSetting,
Jeff Johnson295189b2012-06-20 16:38:30 -07004567 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4568#endif
4569
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004570 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_SINGLE_TID_RC, pConfig->bSingleTidRc,
Jeff Johnson295189b2012-06-20 16:38:30 -07004571 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4572 {
4573 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004574 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_SINGLE_TID_RC configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004575 }
4576
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004577 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TELE_BCN_WAKEUP_EN, pConfig->teleBcnWakeupEn,
Jeff Johnson295189b2012-06-20 16:38:30 -07004578 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4579 {
4580 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004581 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_TELE_BCN_WAKEUP_EN configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004582 }
4583
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004584 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TELE_BCN_TRANS_LI, pConfig->nTeleBcnTransListenInterval,
Jeff Johnson295189b2012-06-20 16:38:30 -07004585 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4586 {
4587 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004588 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_TELE_BCN_TRANS_LI configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004589 }
4590
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004591 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TELE_BCN_MAX_LI, pConfig->nTeleBcnMaxListenInterval,
Jeff Johnson295189b2012-06-20 16:38:30 -07004592 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4593 {
4594 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004595 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_TELE_BCN_MAX_LI configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004596 }
4597
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004598 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TELE_BCN_TRANS_LI_IDLE_BCNS, pConfig->nTeleBcnTransLiNumIdleBeacons,
Jeff Johnson295189b2012-06-20 16:38:30 -07004599 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4600 {
4601 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004602 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_TELE_BCN_TRANS_LI_IDLE_BCNS configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004603 }
4604
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004605 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TELE_BCN_MAX_LI_IDLE_BCNS, pConfig->nTeleBcnMaxLiNumIdleBeacons,
Jeff Johnson295189b2012-06-20 16:38:30 -07004606 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4607 {
4608 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004609 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_TELE_BCN_MAX_LI_IDLE_BCNS configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004610 }
4611
4612 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RF_SETTLING_TIME_CLK, pConfig->rfSettlingTimeUs,
4613 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4614 {
4615 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004616 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_RF_SETTLING_TIME_CLK configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004617 }
4618
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004619 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_INFRA_STA_KEEP_ALIVE_PERIOD, pConfig->infraStaKeepAlivePeriod,
Jeff Johnson295189b2012-06-20 16:38:30 -07004620 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4621 {
4622 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004623 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_INFRA_STA_KEEP_ALIVE_PERIOD configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004624 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004625 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_DYNAMIC_PS_POLL_VALUE, pConfig->dynamicPsPollValue,
Jeff Johnson295189b2012-06-20 16:38:30 -07004626 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4627 {
4628 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004629 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_DYNAMIC_PS_POLL_VALUE configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004630 }
4631
4632 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT, pConfig->nNullDataApRespTimeout,
4633 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4634 {
4635 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004636 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_PS_NULLDATA_DELAY_TIMEOUT configuration info to CCM" );
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004637 }
Jeff Johnson295189b2012-06-20 16:38:30 -07004638
Jeff Johnsoneed2dca2013-02-22 21:18:46 -08004639 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD, pConfig->apDataAvailPollPeriodInMs,
Jeff Johnson295189b2012-06-20 16:38:30 -07004640 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
Jeff Johnsoneed2dca2013-02-22 21:18:46 -08004641 {
4642 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004643 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD configuration info to CCM" );
Jeff Johnsoneed2dca2013-02-22 21:18:46 -08004644 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004645 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_FRAGMENTATION_THRESHOLD, pConfig->FragmentationThreshold,
Jeff Johnson295189b2012-06-20 16:38:30 -07004646 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
4647 {
4648 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004649 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_FRAGMENTATION_THRESHOLD configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004650 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004651 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RTS_THRESHOLD, pConfig->RTSThreshold,
Jeff Johnson295189b2012-06-20 16:38:30 -07004652 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
4653 {
4654 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004655 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_RTS_THRESHOLD configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004656 }
4657
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004658 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_11D_ENABLED, pConfig->Is11dSupportEnabled,
Jeff Johnson295189b2012-06-20 16:38:30 -07004659 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
4660 {
4661 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004662 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_11D_ENABLED configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004663 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004664 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_HEART_BEAT_THRESHOLD, pConfig->HeartbeatThresh24,
Jeff Johnson295189b2012-06-20 16:38:30 -07004665 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
4666 {
4667 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004668 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_HEART_BEAT_THRESHOLD configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004669 }
4670
Jeff Johnson295189b2012-06-20 16:38:30 -07004671 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD, pConfig->apDataAvailPollPeriodInMs,
4672 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4673 {
4674 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004675 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07004676 }
4677
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004678 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_CLOSE_LOOP,
Jeff Johnson295189b2012-06-20 16:38:30 -07004679 pConfig->enableCloseLoop, NULL, eANI_BOOLEAN_FALSE)
4680 ==eHAL_STATUS_FAILURE)
4681 {
4682 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004683 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_CLOSE_LOOP to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004684 }
4685
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004686 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TX_PWR_CTRL_ENABLE,
Jeff Johnson295189b2012-06-20 16:38:30 -07004687 pConfig->enableAutomaticTxPowerControl, NULL, eANI_BOOLEAN_FALSE)
4688 ==eHAL_STATUS_FAILURE)
4689 {
4690 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004691 hddLog(LOGE, "Could not pass on WNI_CFG_TX_PWR_CTRL_ENABLE to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004692 }
4693
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004694 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_SHORT_GI_40MHZ,
Jeff Johnson295189b2012-06-20 16:38:30 -07004695 pConfig->ShortGI40MhzEnable, NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4696 {
4697 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004698 hddLog(LOGE, "Could not pass on WNI_CFG_SHORT_GI_40MHZ to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07004699 }
4700
Jeff Johnsond13512a2012-07-17 11:42:19 -07004701
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004702 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_MC_ADDR_LIST, pConfig->fEnableMCAddrList,
Jeff Johnsond13512a2012-07-17 11:42:19 -07004703 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4704 {
4705 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004706 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_MC_ADDR_LIST to CCM");
Jeff Johnsond13512a2012-07-17 11:42:19 -07004707 }
4708
Jeff Johnsone7245742012-09-05 17:12:55 -07004709#ifdef WLAN_FEATURE_11AC
4710 /* Based on cfg.ini, update the Basic MCS set, RX/TX MCS map in the cfg.dat */
4711 /* valid values are 0(MCS0-7), 1(MCS0-8), 2(MCS0-9) */
4712 /* we update only the least significant 2 bits in the corresponding fields */
4713 if( (pConfig->dot11Mode == eHDD_DOT11_MODE_AUTO) ||
4714 (pConfig->dot11Mode == eHDD_DOT11_MODE_11ac_ONLY) ||
4715 (pConfig->dot11Mode == eHDD_DOT11_MODE_11ac) )
4716 {
4717 {
4718 tANI_U32 temp = 0;
4719
4720 ccmCfgGetInt(pHddCtx->hHal, WNI_CFG_VHT_BASIC_MCS_SET, &temp);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004721 temp = (temp & 0xFFFC) | pConfig->vhtRxMCS;
Jeff Johnsone7245742012-09-05 17:12:55 -07004722
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004723 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_VHT_BASIC_MCS_SET,
Jeff Johnsone7245742012-09-05 17:12:55 -07004724 temp, NULL, eANI_BOOLEAN_FALSE)
4725 ==eHAL_STATUS_FAILURE)
4726 {
4727 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004728 hddLog(LOGE, "Could not pass on WNI_CFG_VHT_BASIC_MCS_SET to CCM");
Jeff Johnsone7245742012-09-05 17:12:55 -07004729 }
4730
4731 ccmCfgGetInt(pHddCtx->hHal, WNI_CFG_VHT_RX_MCS_MAP, &temp);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004732 temp = (temp & 0xFFFC) | pConfig->vhtRxMCS;
Jeff Johnsone7245742012-09-05 17:12:55 -07004733
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004734 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_VHT_RX_MCS_MAP,
Jeff Johnsone7245742012-09-05 17:12:55 -07004735 temp, NULL, eANI_BOOLEAN_FALSE)
4736 ==eHAL_STATUS_FAILURE)
4737 {
4738 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004739 hddLog(LOGE, "Could not pass on WNI_CFG_VHT_RX_MCS_MAP to CCM");
Jeff Johnsone7245742012-09-05 17:12:55 -07004740 }
4741
4742 ccmCfgGetInt(pHddCtx->hHal, WNI_CFG_VHT_TX_MCS_MAP, &temp);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004743 temp = (temp & 0xFFFC) | pConfig->vhtTxMCS;
Jeff Johnsone7245742012-09-05 17:12:55 -07004744
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004745 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_VHT_TX_MCS_MAP,
Jeff Johnsone7245742012-09-05 17:12:55 -07004746 temp, NULL, eANI_BOOLEAN_FALSE)
4747 ==eHAL_STATUS_FAILURE)
4748 {
4749 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004750 hddLog(LOGE, "Could not pass on WNI_CFG_VHT_TX_MCS_MAP to CCM");
Jeff Johnsone7245742012-09-05 17:12:55 -07004751 }
Praveen Kumar Sirisilla4cf7d262013-12-04 17:22:53 -08004752 /* Currently shortGI40Mhz is used for shortGI80Mhz */
4753 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_VHT_SHORT_GI_80MHZ,
4754 pConfig->ShortGI40MhzEnable, NULL, eANI_BOOLEAN_FALSE)
4755 == eHAL_STATUS_FAILURE)
4756 {
4757 fStatus = FALSE;
4758 hddLog(LOGE, "Could not pass WNI_VHT_SHORT_GI_80MHZ to CCM\n");
4759 }
Abhishek Singhaa63bf22014-10-30 17:09:45 +05304760 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_VHT_AMPDU_LEN_EXPONENT,
4761 pConfig->gVhtMaxAmpduLenExp, NULL, eANI_BOOLEAN_FALSE)
4762 ==eHAL_STATUS_FAILURE)
4763 {
4764 fStatus = FALSE;
4765 hddLog(LOGE, "Could not pass on WNI_CFG_VHT_AMPDU_LEN_EXPONENT to CCM");
4766 }
4767
Jeff Johnsone7245742012-09-05 17:12:55 -07004768 }
4769 }
4770#endif
4771
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004772 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_NUM_BUFF_ADVERT,pConfig->numBuffAdvert,
Madan Mohan Koyyalamudidd11eaf2012-11-02 16:04:21 -07004773 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4774 {
4775 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004776 hddLog(LOGE, "Could not pass on WNI_CFG_NUM_BUFF_ADVERT to CCM");
Madan Mohan Koyyalamudidd11eaf2012-11-02 16:04:21 -07004777 }
4778
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004779 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_HT_RX_STBC,
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05304780 pConfig->enableRxSTBC, NULL, eANI_BOOLEAN_FALSE)
4781 ==eHAL_STATUS_FAILURE)
4782 {
4783 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004784 hddLog(LOGE, "Could not pass on WNI_CFG_HT_RX_STBC to CCM");
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05304785 }
4786
Yue Maed390e72014-04-23 15:46:45 -07004787 ccmCfgGetInt(pHddCtx->hHal, WNI_CFG_HT_CAP_INFO, &temp32);
4788 temp16 = temp32 & 0xffff;
4789 htCapInfo = (tSirMacHTCapabilityInfo *)&temp16;
4790 htCapInfo->rxSTBC = pConfig->enableRxSTBC;
4791 temp32 = temp16;
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05304792
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004793 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_HT_CAP_INFO,
Yue Maed390e72014-04-23 15:46:45 -07004794 temp32, NULL, eANI_BOOLEAN_FALSE)
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05304795 ==eHAL_STATUS_FAILURE)
4796 {
4797 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004798 hddLog(LOGE, "Could not pass on WNI_CFG_HT_CAP_INFO to CCM");
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05304799 }
4800
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004801 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_VHT_RXSTBC,
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05304802 pConfig->enableRxSTBC, NULL, eANI_BOOLEAN_FALSE)
4803 ==eHAL_STATUS_FAILURE)
4804 {
4805 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004806 hddLog(LOGE, "Could not pass on WNI_CFG_VHT_RXSTBC to CCM");
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05304807 }
Gopichand Nakkala976e3252013-01-03 15:45:56 -08004808
4809#ifdef WLAN_SOFTAP_VSTA_FEATURE
4810 if(pConfig->fEnableVSTASupport)
4811 {
4812 ccmCfgGetInt(pHddCtx->hHal, WNI_CFG_ASSOC_STA_LIMIT, &val);
4813 if( val <= WNI_CFG_ASSOC_STA_LIMIT_STADEF)
4814 val = WNI_CFG_ASSOC_STA_LIMIT_STAMAX;
4815 }
4816 else
4817 {
4818 val = WNI_CFG_ASSOC_STA_LIMIT_STADEF;
4819 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004820 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ASSOC_STA_LIMIT, val,
Gopichand Nakkala976e3252013-01-03 15:45:56 -08004821 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
4822 {
4823 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004824 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_ASSOC_STA_LIMIT configuration info to CCM" );
Gopichand Nakkala976e3252013-01-03 15:45:56 -08004825 }
4826#endif
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004827 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_LPWR_IMG_TRANSITION,
Madan Mohan Koyyalamudi0d40e662012-12-07 14:24:14 -08004828 pConfig->enableLpwrImgTransition, NULL, eANI_BOOLEAN_FALSE)
4829 ==eHAL_STATUS_FAILURE)
4830 {
4831 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004832 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_LPWR_IMG_TRANSITION to CCM");
Madan Mohan Koyyalamudi0d40e662012-12-07 14:24:14 -08004833 }
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05304834
Madan Mohan Koyyalamudi01cba042013-01-10 21:56:05 -08004835 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_MCC_ADAPTIVE_SCHED, pConfig->enableMCCAdaptiveScheduler,
4836 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4837 {
4838 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08004839 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_MCC_ADAPTIVE_SCHED to CCM");
Madan Mohan Koyyalamudi01cba042013-01-10 21:56:05 -08004840 }
Leela V Kiran Kumar Reddy Chiralab1f7d342013-02-11 00:27:02 -08004841 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_DISABLE_LDPC_WITH_TXBF_AP, pConfig->disableLDPCWithTxbfAP,
4842 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4843 {
4844 fStatus = FALSE;
Kiran Kumar Lokere1f39e952013-04-03 18:34:30 -07004845 hddLog(LOGE, "Could not pass on WNI_CFG_DISABLE_LDPC_WITH_TXBF_AP to CCM");
Leela V Kiran Kumar Reddy Chiralab1f7d342013-02-11 00:27:02 -08004846 }
Kiran Kumar Lokere1f39e952013-04-03 18:34:30 -07004847
4848 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_DYNAMIC_THRESHOLD_ZERO, pConfig->retryLimitZero,
4849 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4850 {
4851 fStatus = FALSE;
4852 hddLog(LOGE, "Could not pass on WNI_CFG_DYNAMIC_THRESHOLD_ZERO to CCM");
4853 }
4854
4855 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_DYNAMIC_THRESHOLD_ONE, pConfig->retryLimitOne,
4856 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4857 {
4858 fStatus = FALSE;
4859 hddLog(LOGE, "Could not pass on WNI_CFG_DYNAMIC_THRESHOLD_ONE to CCM");
4860 }
4861
4862 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_DYNAMIC_THRESHOLD_TWO, pConfig->retryLimitTwo,
4863 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4864 {
4865 fStatus = FALSE;
4866 hddLog(LOGE, "Could not pass on WNI_CFG_DYNAMIC_THRESHOLD_TWO to CCM");
4867 }
4868
Gopichand Nakkala42bc89e2013-05-27 12:49:09 +05304869 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_MEDIUM_TIME, pConfig->cfgMaxMediumTime,
4870 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
4871 {
4872 fStatus = FALSE;
4873 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_MEDIUM_TIME to CCM");
4874 }
4875
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304876#ifdef FEATURE_WLAN_TDLS
4877
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07004878 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TDLS_QOS_WMM_UAPSD_MASK,
4879 pConfig->fTDLSUapsdMask, NULL,
4880 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304881 {
4882 fStatus = FALSE;
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07004883 hddLog(LOGE, "Could not pass on WNI_CFG_TDLS_QOS_WMM_UAPSD_MASK to CCM");
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304884 }
Pradeep Reddy POTTETIedaeb5f2014-05-22 23:34:41 +05304885
4886 if (TRUE == pConfig->fEnableTDLSScanCoexSupport)
4887 {
4888 /* TDLSScanCoexistance feature is supported when the DUT acts as only
4889 * the Sleep STA and hence explicitly disable the BufferSta capability
4890 * on the DUT. DUT's Buffer STA capability is explicitly disabled to
4891 * ensure that the TDLS peer shall not go to TDLS power save mode.
4892 */
4893 pConfig->fEnableTDLSBufferSta = FALSE;
4894 }
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07004895 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TDLS_BUF_STA_ENABLED,
4896 pConfig->fEnableTDLSBufferSta, NULL,
4897 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304898 {
4899 fStatus = FALSE;
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07004900 hddLog(LOGE, "Could not pass on WNI_CFG_TDLS_BUF_STA_ENABLED to CCM");
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304901 }
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07004902 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TDLS_PUAPSD_INACT_TIME,
4903 pConfig->fTDLSPuapsdInactivityTimer, NULL,
4904 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304905 {
4906 fStatus = FALSE;
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07004907 hddLog(LOGE, "Could not pass on WNI_CFG_TDLS_PUAPSD_INACT_TIME to CCM");
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304908 }
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07004909 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TDLS_RX_FRAME_THRESHOLD,
4910 pConfig->fTDLSRxFrameThreshold, NULL,
4911 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304912 {
4913 fStatus = FALSE;
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07004914 hddLog(LOGE, "Could not pass on WNI_CFG_TDLS_RX_FRAME_THRESHOLD to CCM");
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304915 }
Naresh Jayaramf73f3762014-02-04 16:13:20 +05304916
4917 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TDLS_OFF_CHANNEL_ENABLED,
4918 pConfig->fEnableTDLSOffChannel, NULL,
4919 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4920 {
4921 fStatus = FALSE;
4922 hddLog(LOGE, "Could not pass on WNI_CFG_TDLS_BUF_STA_ENABLED to CCM\n");
4923 }
4924
Pradeep Reddy POTTETIa9c80d52014-05-09 18:05:29 +05304925 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TDLS_WMM_MODE_ENABLED,
4926 pConfig->fEnableTDLSWmmMode, NULL,
4927 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4928 {
4929 fStatus = FALSE;
4930 hddLog(LOGE, "Could not pass on WNI_CFG_TDLS_WMM_MODE_ENABLED to CCM\n");
4931 }
4932
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05304933#endif
4934
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07004935 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_ADAPT_RX_DRAIN,
4936 pConfig->fEnableAdaptRxDrain, NULL,
4937 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
4938 {
4939 fStatus = FALSE;
4940 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_ADAPT_RX_DRAIN to CCM");
4941 }
Yue Ma0fd23872013-08-01 15:56:47 -07004942
4943 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_FLEX_CONNECT_POWER_FACTOR,
4944 pConfig->flexConnectPowerFactor, NULL,
4945 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
4946 {
4947 fStatus = FALSE;
4948 hddLog(LOGE, "Failure: Could not pass on "
4949 "WNI_CFG_FLEX_CONNECT_POWER_FACTOR to CCM");
4950 }
4951
Madan Mohan Koyyalamudica454572013-08-07 19:57:03 +05304952 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ANTENNA_DIVESITY,
4953 pConfig->antennaDiversity, NULL,
4954 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4955 {
4956 fStatus = FALSE;
4957 hddLog(LOGE, "Could not pass on WNI_CFG_ANTENNA_DIVESITY to CCM");
4958 }
4959
Kiet Lam4bbd3cb2013-11-07 20:03:49 +05304960 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ATH_DISABLE,
4961 pConfig->cfgAthDisable, NULL,
4962 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
4963 {
4964 fStatus = FALSE;
4965 hddLog(LOGE, "Could not pass on WNI_CFG_ATH_DISABLE to CCM");
4966 }
c_hpothu6d7dc922013-12-02 12:36:41 +05304967
4968 if (ccmCfgSetInt(pHddCtx->hHal,
4969 WNI_CFG_BTC_ACTIVE_WLAN_LEN,
4970 pConfig->cfgBtcActiveWlanLen,
4971 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
4972 {
4973 fStatus = FALSE;
4974 hddLog(LOGE, "Could not pass on WNI_BTC_ACTIVE_WLAN_LEN to CCM");
4975 }
4976
4977 if (ccmCfgSetInt(pHddCtx->hHal,
4978 WNI_CFG_BTC_ACTIVE_BT_LEN,
4979 pConfig->cfgBtcActiveBtLen,
4980 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
4981 {
4982 fStatus = FALSE;
4983 hddLog(LOGE, "Could not pass on WNI_BTC_ACTIVE_BT_LEN to CCM");
4984 }
4985
4986 if (ccmCfgSetInt(pHddCtx->hHal,
4987 WNI_CFG_BTC_SAP_ACTIVE_WLAN_LEN,
4988 pConfig->cfgBtcSapActiveWlanLen,
4989 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
4990 {
4991 fStatus = FALSE;
4992 hddLog(LOGE, "Could not pass on WNI_BTC_ACTIVE_WLAN_LEN to CCM");
4993 }
4994
4995 if (ccmCfgSetInt(pHddCtx->hHal,
4996 WNI_CFG_BTC_SAP_ACTIVE_BT_LEN,
4997 pConfig->cfgBtcSapActiveBtLen,
4998 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
4999 {
5000 fStatus = FALSE;
5001 hddLog(LOGE, "Could not pass on WNI_BTC_ACTIVE_BT_LEN to CCM");
5002 }
AnjaneeDevi Kapparapu50239e32014-01-07 18:09:33 +05305003
5004 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ASD_PROBE_INTERVAL,
5005 pConfig->gAsdProbeInterval, NULL,
5006 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5007 {
5008 fStatus = FALSE;
5009 hddLog(LOGE, "Could not pass on WNI_CFG_ASD_PROBE_INTERVAL to CCM");
5010 }
5011
5012 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ASD_TRIGGER_THRESHOLD,
5013 pConfig->gAsdTriggerThreshold, NULL,
5014 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5015 {
5016 fStatus = FALSE;
5017 hddLog(LOGE, "Could not pass on WNI_CFG_ASD_TRIGGER_THRESHOLD to CCM");
5018 }
5019
5020 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ASD_RTT_RSSI_HYST_THRESHOLD,
5021 pConfig->gAsdRTTRssiHystThreshold, NULL,
5022 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5023 {
5024 fStatus = FALSE;
5025 hddLog(LOGE, "Could not pass on WNI_CFG_ASD_RSSI_HYST_THRESHOLD to CCM");
5026 }
Leela Venkata Kiran Kumar Reddy Chirala22c159b2013-12-23 18:19:13 -08005027
5028 if (ccmCfgSetInt(pHddCtx->hHal,
5029 WNI_CFG_DEBUG_P2P_REMAIN_ON_CHANNEL,
5030 pConfig->debugP2pRemainOnChannel,
5031 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5032 {
5033 fStatus = FALSE;
5034 hddLog(LOGE,
5035 "Could not pass on WNI_CFG_DEBUG_P2P_REMAIN_ON_CHANNEL to CCM");
5036 }
5037
5038 if (ccmCfgSetInt(pHddCtx->hHal,
5039 WNI_CFG_BTC_CTS2S_DURING_SCO,
5040 pConfig->cfgBtcCTS2SduringSCO,
5041 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5042 {
5043 fStatus = FALSE;
5044 hddLog(LOGE, "Could not pass on WNI_CFG_BTC_CTS2S_DURING_SCO to CCM");
5045 }
Abhishek Singh8280c4e2014-02-18 13:26:34 +05305046
5047 if(ccmCfgSetInt(pHddCtx->hHal,
5048 WNI_CFG_DEFAULT_RATE_INDEX_24GHZ,
5049 defHddRateToDefCfgRate(pConfig->defaultRateIndex24Ghz),
5050 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5051 {
5052 fStatus = FALSE;
5053 hddLog(LOGE, "Could not pass on WNI_CFG_DEFAULT_RATE_INDEX_24GHZ to"
5054 " CCM\n");
5055 }
c_hpothu5bd1ae42014-03-07 20:28:22 +05305056
5057 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RA_FILTER_ENABLE, pConfig->cfgRAFilterEnable,
5058 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5059 {
5060 fStatus = FALSE;
5061 hddLog(LOGE, "Could not pass on WNI_CFG_RA_FILTER_ENABLE to CCM");
5062 }
5063
5064 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RA_RATE_LIMIT_INTERVAL, pConfig->cfgRARateLimitInterval,
5065 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5066 {
5067 fStatus = FALSE;
5068 hddLog(LOGE, "Could not pass on WNI_CFG_RA_FILTER_ENABLE to CCM");
5069 }
5070
c_hpothu2d0f1c42014-04-01 18:38:51 +05305071 if (ccmCfgSetInt(pHddCtx->hHal,
5072 WNI_CFG_BTC_FATAL_HID_NSNIFF_BLK_GUIDANCE,
5073 pConfig->cfgBtcFatalHidnSniffBlkGuidance,
5074 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5075 {
5076 fStatus = FALSE;
5077 hddLog(LOGE, "Could not pass on"
5078 "WNI_CFG_BTC_FATAL_HID_NSNIFF_BLK_GUIDANCE to CCM");
5079 }
5080
5081 if (ccmCfgSetInt(pHddCtx->hHal,
5082 WNI_CFG_BTC_CRITICAL_HID_NSNIFF_BLK_GUIDANCE,
5083 pConfig->cfgBtcCriticalHidnSniffBlkGuidance,
5084 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5085 {
5086 fStatus = FALSE;
5087 hddLog(LOGE, "Could not pass on"
5088 "WNI_CFG_BTC_CRITICAL_HID_NSNIFF_BLK_GUIDANCE to CCM");
5089 }
5090
5091 if (ccmCfgSetInt(pHddCtx->hHal,
5092 WNI_CFG_BTC_DYN_A2DP_TX_QUEUE_THOLD,
5093 pConfig->cfgBtcA2dpTxQueueThold,
5094 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5095 {
5096 fStatus = FALSE;
5097 hddLog(LOGE, "Could not pass on"
5098 "WNI_CFG_BTC_DYN_A2DP_TX_QUEUE_THOLD to CCM");
5099 }
5100
5101 if (ccmCfgSetInt(pHddCtx->hHal,
5102 WNI_CFG_BTC_DYN_OPP_TX_QUEUE_THOLD,
5103 pConfig->cfgBtcOppTxQueueThold,
5104 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5105 {
5106 fStatus = FALSE;
5107 hddLog(LOGE, "Could not pass on"
5108 "WNI_CFG_BTC_DYN_OPP_TX_QUEUE_THOLD to CCM");
5109 }
5110
Chet Lanctotfadc8e32014-04-24 14:50:52 -07005111#ifdef WLAN_FEATURE_11W
5112 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PMF_SA_QUERY_MAX_RETRIES,
5113 pConfig->pmfSaQueryMaxRetries, NULL,
5114 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5115 {
5116 fStatus = FALSE;
5117 hddLog(LOGE, "Could not pass on WNI_CFG_SA_QUERY_MAX_RETRIES to CCM");
5118 }
5119
5120 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PMF_SA_QUERY_RETRY_INTERVAL,
5121 pConfig->pmfSaQueryRetryInterval, NULL,
5122 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5123 {
5124 fStatus = FALSE;
5125 hddLog(LOGE, "Could not pass on WNI_CFG_SA_QUERY_RETRY_INTERVAL to CCM");
5126 }
5127#endif
Mihir Shetec34258c2014-07-30 17:50:27 +05305128 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_UAPSD_CONSEC_SP,
5129 pConfig->maxUapsdConsecSP, NULL,
5130 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5131 {
5132 fStatus = FALSE;
5133 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_UAPSD_CONSEC_SP");
5134 }
5135
5136 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_UAPSD_CONSEC_RX_CNT,
5137 pConfig->maxUapsdConsecRxCnt, NULL,
5138 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5139 {
5140 fStatus = FALSE;
5141 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_UAPSD_CONSEC_RX_CNT");
5142 }
5143
5144 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_UAPSD_CONSEC_TX_CNT,
5145 pConfig->maxUapsdConsecTxCnt, NULL,
5146 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5147 {
5148 fStatus = FALSE;
5149 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_UAPSD_CONSEC_TX_CNT");
5150 }
5151
5152 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_UAPSD_CONSEC_TX_CNT_MEAS_WINDOW,
5153 pConfig->uapsdConsecTxCntMeasWindow, NULL,
5154 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5155 {
5156 fStatus = FALSE;
5157 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_UAPSD_CONSEC_TX_CNT_MEAS_WINDOW");
5158 }
5159
5160 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_UAPSD_CONSEC_RX_CNT_MEAS_WINDOW,
5161 pConfig->uapsdConsecRxCntMeasWindow, NULL,
5162 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5163 {
5164 fStatus = FALSE;
5165 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_UAPSD_CONSEC_RX_CNT_MEAS_WINDOW");
5166 }
5167
5168 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_PSPOLL_IN_WMM_UAPSD_PS_MODE,
5169 pConfig->maxPsPollInWmmUapsdMode, NULL,
5170 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5171 {
5172 fStatus = FALSE;
5173 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_PSPOLL_IN_WMM_UAPSD_PS_MODE");
5174 }
5175
5176 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_UAPSD_INACTIVITY_INTERVALS,
5177 pConfig->maxUapsdInactivityIntervals, NULL,
5178 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5179 {
5180 fStatus = FALSE;
5181 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_UAPSD_INACTIVITY_INTERVALS");
5182 }
5183
5184 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_DYNAMIC_WMMPS,
5185 pConfig->enableDynamicWMMPS, NULL,
5186 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5187 {
5188 fStatus = FALSE;
5189 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_DYNAMIC_WMMPS");
5190 }
Chet Lanctotfadc8e32014-04-24 14:50:52 -07005191
c_hpothu03d961b2014-09-19 16:45:00 +05305192 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BURST_MODE_BE_TXOP_VALUE,
5193 pConfig->burstModeTXOPValue, NULL,
5194 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5195 {
5196 fStatus = FALSE;
5197 hddLog(LOGE, "Could not pass on WNI_CFG_BURST_MODE_BE_TXOP_VALUE ");
5198 }
Deepthi Gowri9025aa62014-11-07 19:45:36 +05305199
5200 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_DYNAMIC_RA_START_RATE,
5201 pConfig->enableDynamicRAStartRate,
5202 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5203 {
5204 fStatus = FALSE;
5205 hddLog(LOGE, "Could not pass on"
5206 "WNI_CFG_ENABLE_DYNAMIC_RA_START_RATE to CCM");
5207 }
Naresh Jayaramf5bbe3f2014-12-29 18:32:47 +05305208
5209 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BTC_FAST_WLAN_CONN_PREF,
5210 pConfig->btcFastWlanConnPref, NULL,
5211 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5212 {
5213 fStatus = FALSE;
5214 hddLog(LOGE, "Could not pass on WNI_CFG_BTC_FAST_WLAN_CONN_PREF ");
5215 }
jagadeeshaf2d0ce2015-03-31 11:45:30 +05305216
5217 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_RTSCTS_HTVHT,
5218 pConfig->enableRtsCtsHtVht,
5219 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5220 {
5221 fStatus = FALSE;
5222 hddLog(LOGE, "Could not pass on"
5223 "WNI_CFG_ENABLE_RTSCTS_HTVHT to CCM");
5224 }
Jeff Johnson295189b2012-06-20 16:38:30 -07005225 return fStatus;
5226}
5227
5228
5229/**---------------------------------------------------------------------------
5230
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005231 \brief hdd_init_set_sme_config() -
Jeff Johnson295189b2012-06-20 16:38:30 -07005232
5233 This function initializes the sme configuration parameters
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005234
Jeff Johnson295189b2012-06-20 16:38:30 -07005235 \param - pHddCtx - Pointer to the HDD Adapter.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005236
Jeff Johnson295189b2012-06-20 16:38:30 -07005237 \return - 0 for success, non zero for failure
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005238
Jeff Johnson295189b2012-06-20 16:38:30 -07005239 --------------------------------------------------------------------------*/
5240
5241VOS_STATUS hdd_set_sme_config( hdd_context_t *pHddCtx )
5242{
5243 VOS_STATUS status = VOS_STATUS_SUCCESS;
5244 eHalStatus halStatus;
Mukul Sharma20aa6582014-08-07 21:36:12 +05305245 tpSmeConfigParams smeConfig;
Jeff Johnson295189b2012-06-20 16:38:30 -07005246
5247 hdd_config_t *pConfig = pHddCtx->cfg_ini;
5248
Mukul Sharma20aa6582014-08-07 21:36:12 +05305249 smeConfig = vos_mem_malloc(sizeof(tSmeConfigParams));
5250 if (NULL == smeConfig)
5251 {
5252 VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, "%s smeConfig allocation failed",__func__);
5253 return eHAL_STATUS_FAILED_ALLOC;
5254 }
Mukul Sharmaa631e892014-08-28 15:38:51 +05305255 vos_mem_zero( smeConfig, sizeof( tSmeConfigParams ) );
Jeff Johnson295189b2012-06-20 16:38:30 -07005256
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005257 VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Arif Hussain6d2a3322013-11-17 19:50:10 -08005258 "%s bWmmIsEnabled=%d 802_11e_enabled=%d dot11Mode=%d", __func__,
Jeff Johnson295189b2012-06-20 16:38:30 -07005259 pConfig->WmmMode, pConfig->b80211eIsEnabled, pConfig->dot11Mode);
5260
5261 // Config params obtained from the registry
Amar Singhalfddc28c2013-09-05 13:03:40 -07005262
Mukul Sharma20aa6582014-08-07 21:36:12 +05305263 smeConfig->csrConfig.RTSThreshold = pConfig->RTSThreshold;
5264 smeConfig->csrConfig.FragmentationThreshold = pConfig->FragmentationThreshold;
5265 smeConfig->csrConfig.shortSlotTime = pConfig->ShortSlotTimeEnabled;
5266 smeConfig->csrConfig.Is11dSupportEnabled = pConfig->Is11dSupportEnabled;
5267 smeConfig->csrConfig.HeartbeatThresh24 = pConfig->HeartbeatThresh24;
Jeff Johnson295189b2012-06-20 16:38:30 -07005268
Mukul Sharma20aa6582014-08-07 21:36:12 +05305269 smeConfig->csrConfig.phyMode = hdd_cfg_xlate_to_csr_phy_mode ( pConfig->dot11Mode );
Jeff Johnson295189b2012-06-20 16:38:30 -07005270
Leela Venkata Kiran Kumar Reddy Chirala784d7e82013-11-20 10:57:25 -08005271 if( (pConfig->dot11Mode == eHDD_DOT11_MODE_abg) ||
5272 (pConfig->dot11Mode == eHDD_DOT11_MODE_11b) ||
5273 (pConfig->dot11Mode == eHDD_DOT11_MODE_11g) ||
5274 (pConfig->dot11Mode == eHDD_DOT11_MODE_11b_ONLY) ||
5275 (pConfig->dot11Mode == eHDD_DOT11_MODE_11g_ONLY))
5276 {
Mukul Sharma20aa6582014-08-07 21:36:12 +05305277 smeConfig->csrConfig.channelBondingMode24GHz = 0;
5278 smeConfig->csrConfig.channelBondingMode5GHz = 0;
Leela Venkata Kiran Kumar Reddy Chirala784d7e82013-11-20 10:57:25 -08005279 }
5280 else
5281 {
Mukul Sharma20aa6582014-08-07 21:36:12 +05305282 smeConfig->csrConfig.channelBondingMode24GHz = pConfig->nChannelBondingMode24GHz;
5283 smeConfig->csrConfig.channelBondingMode5GHz = pConfig->nChannelBondingMode5GHz;
Leela Venkata Kiran Kumar Reddy Chirala784d7e82013-11-20 10:57:25 -08005284 }
Mukul Sharma20aa6582014-08-07 21:36:12 +05305285 smeConfig->csrConfig.TxRate = pConfig->TxRate;
5286 smeConfig->csrConfig.nScanResultAgeCount = pConfig->ScanResultAgeCount;
5287 smeConfig->csrConfig.scanAgeTimeNCNPS = pConfig->nScanAgeTimeNCNPS;
5288 smeConfig->csrConfig.scanAgeTimeNCPS = pConfig->nScanAgeTimeNCPS;
5289 smeConfig->csrConfig.scanAgeTimeCNPS = pConfig->nScanAgeTimeCNPS;
5290 smeConfig->csrConfig.scanAgeTimeCPS = pConfig->nScanAgeTimeCPS;
5291 smeConfig->csrConfig.AdHocChannel24 = pConfig->OperatingChannel;
5292 smeConfig->csrConfig.fEnforce11dChannels = pConfig->fEnforce11dChannels;
5293 smeConfig->csrConfig.fSupplicantCountryCodeHasPriority = pConfig->fSupplicantCountryCodeHasPriority;
5294 smeConfig->csrConfig.fEnforceCountryCodeMatch = pConfig->fEnforceCountryCodeMatch;
5295 smeConfig->csrConfig.fEnforceDefaultDomain = pConfig->fEnforceDefaultDomain;
5296 smeConfig->csrConfig.bCatRssiOffset = pConfig->nRssiCatGap;
5297 smeConfig->csrConfig.vccRssiThreshold = pConfig->nVccRssiTrigger;
5298 smeConfig->csrConfig.vccUlMacLossThreshold = pConfig->nVccUlMacLossThreshold;
5299 smeConfig->csrConfig.nRoamingTime = pConfig->nRoamingTime;
5300 smeConfig->csrConfig.IsIdleScanEnabled = pConfig->nEnableIdleScan;
5301 smeConfig->csrConfig.nInitialDwellTime = pConfig->nInitialDwellTime;
5302 smeConfig->csrConfig.nActiveMaxChnTime = pConfig->nActiveMaxChnTime;
5303 smeConfig->csrConfig.nActiveMinChnTime = pConfig->nActiveMinChnTime;
5304 smeConfig->csrConfig.nPassiveMaxChnTime = pConfig->nPassiveMaxChnTime;
5305 smeConfig->csrConfig.nPassiveMinChnTime = pConfig->nPassiveMinChnTime;
5306 smeConfig->csrConfig.nActiveMaxChnTimeBtc = pConfig->nActiveMaxChnTimeBtc;
5307 smeConfig->csrConfig.nActiveMinChnTimeBtc = pConfig->nActiveMinChnTimeBtc;
5308 smeConfig->csrConfig.disableAggWithBtc = pConfig->disableAggWithBtc;
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -07005309#ifdef WLAN_AP_STA_CONCURRENCY
Mukul Sharma20aa6582014-08-07 21:36:12 +05305310 smeConfig->csrConfig.nActiveMaxChnTimeConc = pConfig->nActiveMaxChnTimeConc;
5311 smeConfig->csrConfig.nActiveMinChnTimeConc = pConfig->nActiveMinChnTimeConc;
5312 smeConfig->csrConfig.nPassiveMaxChnTimeConc = pConfig->nPassiveMaxChnTimeConc;
5313 smeConfig->csrConfig.nPassiveMinChnTimeConc = pConfig->nPassiveMinChnTimeConc;
5314 smeConfig->csrConfig.nRestTimeConc = pConfig->nRestTimeConc;
5315 smeConfig->csrConfig.nNumStaChanCombinedConc = pConfig->nNumStaChanCombinedConc;
5316 smeConfig->csrConfig.nNumP2PChanCombinedConc = pConfig->nNumP2PChanCombinedConc;
Sudhir Sattayappa Kohallieb97d502013-05-22 23:16:42 -07005317
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -07005318#endif
Mukul Sharma20aa6582014-08-07 21:36:12 +05305319 smeConfig->csrConfig.Is11eSupportEnabled = pConfig->b80211eIsEnabled;
5320 smeConfig->csrConfig.WMMSupportMode = pConfig->WmmMode;
Jeff Johnson295189b2012-06-20 16:38:30 -07005321
5322#if defined WLAN_FEATURE_VOWIFI
Mukul Sharma20aa6582014-08-07 21:36:12 +05305323 smeConfig->rrmConfig.rrmEnabled = pConfig->fRrmEnable;
5324 smeConfig->rrmConfig.maxRandnInterval = pConfig->nRrmRandnIntvl;
Jeff Johnson295189b2012-06-20 16:38:30 -07005325#endif
5326 //Remaining config params not obtained from registry
5327 // On RF EVB beacon using channel 1.
Jeff Johnsone7245742012-09-05 17:12:55 -07005328#ifdef WLAN_FEATURE_11AC
Mukul Sharma20aa6582014-08-07 21:36:12 +05305329 smeConfig->csrConfig.nVhtChannelWidth = pConfig->vhtChannelWidth;
5330 smeConfig->csrConfig.enableTxBF = pConfig->enableTxBF;
5331 smeConfig->csrConfig.txBFCsnValue = pConfig->txBFCsnValue;
5332 smeConfig->csrConfig.enableVhtFor24GHz = pConfig->enableVhtFor24GHzBand;
Abhishek Singh6d5d29c2014-07-03 14:25:22 +05305333 /* Consider Mu-beamformee only if SU-beamformee is enabled */
5334 if ( pConfig->enableTxBF )
Mukul Sharma20aa6582014-08-07 21:36:12 +05305335 smeConfig->csrConfig.enableMuBformee = pConfig->enableMuBformee;
Abhishek Singh6d5d29c2014-07-03 14:25:22 +05305336 else
Mukul Sharma20aa6582014-08-07 21:36:12 +05305337 smeConfig->csrConfig.enableMuBformee = 0;
Jeff Johnsone7245742012-09-05 17:12:55 -07005338#endif
Mukul Sharma20aa6582014-08-07 21:36:12 +05305339 smeConfig->csrConfig.AdHocChannel5G = pConfig->AdHocChannel5G;
5340 smeConfig->csrConfig.AdHocChannel24 = pConfig->AdHocChannel24G;
5341 smeConfig->csrConfig.ProprietaryRatesEnabled = 0;
5342 smeConfig->csrConfig.HeartbeatThresh50 = 40;
5343 smeConfig->csrConfig.bandCapability = pConfig->nBandCapability;
Madan Mohan Koyyalamudi8db1c942013-01-10 15:24:29 -08005344 if (pConfig->nBandCapability == eCSR_BAND_24)
5345 {
Mukul Sharma20aa6582014-08-07 21:36:12 +05305346 smeConfig->csrConfig.Is11hSupportEnabled = 0;
Madan Mohan Koyyalamudi8db1c942013-01-10 15:24:29 -08005347 } else {
Mukul Sharma20aa6582014-08-07 21:36:12 +05305348 smeConfig->csrConfig.Is11hSupportEnabled = pConfig->Is11hSupportEnabled;
Madan Mohan Koyyalamudi8db1c942013-01-10 15:24:29 -08005349 }
Mukul Sharma20aa6582014-08-07 21:36:12 +05305350 smeConfig->csrConfig.cbChoice = 0;
5351 smeConfig->csrConfig.bgScanInterval = 0;
5352 smeConfig->csrConfig.eBand = pConfig->nBandCapability;
5353 smeConfig->csrConfig.nTxPowerCap = pConfig->nTxPowerCap;
5354 smeConfig->csrConfig.fEnableBypass11d = pConfig->enableBypass11d;
5355 smeConfig->csrConfig.fEnableDFSChnlScan = pConfig->enableDFSChnlScan;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08005356#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
Mukul Sharma20aa6582014-08-07 21:36:12 +05305357 smeConfig->csrConfig.nRoamPrefer5GHz = pConfig->nRoamPrefer5GHz;
5358 smeConfig->csrConfig.nRoamIntraBand = pConfig->nRoamIntraBand;
5359 smeConfig->csrConfig.nProbes = pConfig->nProbes;
5360 smeConfig->csrConfig.nRoamScanHomeAwayTime = pConfig->nRoamScanHomeAwayTime;
Madan Mohan Koyyalamudid5026072012-11-30 14:56:21 -08005361#endif
Mukul Sharma20aa6582014-08-07 21:36:12 +05305362 smeConfig->csrConfig.fFirstScanOnly2GChnl = pConfig->enableFirstScan2GOnly;
Jeff Johnsone7245742012-09-05 17:12:55 -07005363
Jeff Johnson295189b2012-06-20 16:38:30 -07005364 //FIXME 11d config is hardcoded
Jeff Johnson7dda7772013-02-27 08:36:13 -08005365 if ( VOS_STA_SAP_MODE != hdd_get_conparam())
5366 {
Mukul Sharma20aa6582014-08-07 21:36:12 +05305367 smeConfig->csrConfig.Csr11dinfo.Channels.numChannels = 0;
Jeff Johnson295189b2012-06-20 16:38:30 -07005368
Jeff Johnson7dda7772013-02-27 08:36:13 -08005369 /* if there is a requirement that HDD will control the default
5370 * channel list & country code (say from .ini file) we need to
5371 * add some logic here. Otherwise the default 11d info should
5372 * come from NV as per our current implementation */
Jeff Johnson295189b2012-06-20 16:38:30 -07005373 }
Jeff Johnson7dda7772013-02-27 08:36:13 -08005374 else
5375 {
5376 VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
5377 "AP country Code %s", pConfig->apCntryCode);
Jeff Johnson295189b2012-06-20 16:38:30 -07005378
Jeff Johnson7dda7772013-02-27 08:36:13 -08005379 if (memcmp(pConfig->apCntryCode, CFG_AP_COUNTRY_CODE_DEFAULT, 3) != 0)
5380 sme_setRegInfo(pHddCtx->hHal, pConfig->apCntryCode);
Mukul Sharma20aa6582014-08-07 21:36:12 +05305381 sme_set11dinfo(pHddCtx->hHal, smeConfig);
Jeff Johnson7dda7772013-02-27 08:36:13 -08005382 }
Mukul Sharma20aa6582014-08-07 21:36:12 +05305383 hdd_set_power_save_config(pHddCtx, smeConfig);
Jeff Johnson295189b2012-06-20 16:38:30 -07005384 hdd_set_btc_config(pHddCtx);
5385
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005386#ifdef WLAN_FEATURE_VOWIFI_11R
Mukul Sharma20aa6582014-08-07 21:36:12 +05305387 smeConfig->csrConfig.csr11rConfig.IsFTResourceReqSupported = pConfig->fFTResourceReqSupported;
Jeff Johnson295189b2012-06-20 16:38:30 -07005388#endif
Jeff Johnson04dd8a82012-06-29 20:41:40 -07005389#ifdef FEATURE_WLAN_LFR
Mukul Sharma20aa6582014-08-07 21:36:12 +05305390 smeConfig->csrConfig.isFastRoamIniFeatureEnabled = pConfig->isFastRoamIniFeatureEnabled;
5391 smeConfig->csrConfig.MAWCEnabled = pConfig->MAWCEnabled;
Jeff Johnson04dd8a82012-06-29 20:41:40 -07005392#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08005393#ifdef FEATURE_WLAN_ESE
Mukul Sharma20aa6582014-08-07 21:36:12 +05305394 smeConfig->csrConfig.isEseIniFeatureEnabled = pConfig->isEseIniFeatureEnabled;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08005395 if( pConfig->isEseIniFeatureEnabled )
Gopichand Nakkala98a98af2012-12-31 14:38:47 -08005396 {
5397 pConfig->isFastTransitionEnabled = TRUE;
5398 }
Jeff Johnson295189b2012-06-20 16:38:30 -07005399#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08005400#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
Mukul Sharma20aa6582014-08-07 21:36:12 +05305401 smeConfig->csrConfig.isFastTransitionEnabled = pConfig->isFastTransitionEnabled;
5402 smeConfig->csrConfig.RoamRssiDiff = pConfig->RoamRssiDiff;
5403 smeConfig->csrConfig.nImmediateRoamRssiDiff = pConfig->nImmediateRoamRssiDiff;
5404 smeConfig->csrConfig.isWESModeEnabled = pConfig->isWESModeEnabled;
Jeff Johnson295189b2012-06-20 16:38:30 -07005405#endif
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005406#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Mukul Sharma20aa6582014-08-07 21:36:12 +05305407 smeConfig->csrConfig.isRoamOffloadScanEnabled = pConfig->isRoamOffloadScanEnabled;
5408 smeConfig->csrConfig.bFastRoamInConIniFeatureEnabled = pConfig->bFastRoamInConIniFeatureEnabled;
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07005409
Mukul Sharma20aa6582014-08-07 21:36:12 +05305410 if (0 == smeConfig->csrConfig.isRoamOffloadScanEnabled)
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07005411 {
5412 /* Disable roaming in concurrency if roam scan offload is disabled */
Mukul Sharma20aa6582014-08-07 21:36:12 +05305413 smeConfig->csrConfig.bFastRoamInConIniFeatureEnabled = 0;
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07005414 }
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07005415#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07005416#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
Mukul Sharma20aa6582014-08-07 21:36:12 +05305417 smeConfig->csrConfig.neighborRoamConfig.nNeighborReassocRssiThreshold = pConfig->nNeighborReassocRssiThreshold;
5418 smeConfig->csrConfig.neighborRoamConfig.nNeighborLookupRssiThreshold = pConfig->nNeighborLookupRssiThreshold;
5419 smeConfig->csrConfig.neighborRoamConfig.nNeighborScanMaxChanTime = pConfig->nNeighborScanMaxChanTime;
5420 smeConfig->csrConfig.neighborRoamConfig.nNeighborScanMinChanTime = pConfig->nNeighborScanMinChanTime;
5421 smeConfig->csrConfig.neighborRoamConfig.nNeighborScanTimerPeriod = pConfig->nNeighborScanPeriod;
5422 smeConfig->csrConfig.neighborRoamConfig.nMaxNeighborRetries = pConfig->nMaxNeighborReqTries;
5423 smeConfig->csrConfig.neighborRoamConfig.nNeighborResultsRefreshPeriod = pConfig->nNeighborResultsRefreshPeriod;
5424 smeConfig->csrConfig.neighborRoamConfig.nEmptyScanRefreshPeriod = pConfig->nEmptyScanRefreshPeriod;
Mukul Sharma8b192c02014-12-30 19:52:50 +05305425 //Making Forced 5G roaming to tightly coupled with the gEnableFirstScan2GOnly
5426 //=1 only, Also making sure if HW does not support 5G RF band then no need to
5427 //enable this feature even though it is enabled in .ini.
5428 if((pConfig->enableFirstScan2GOnly) && (pConfig->nBandCapability != eCSR_BAND_24))
Mukul Sharmad49b3d62014-09-02 01:45:32 +05305429 {
Mukul Sharma8b192c02014-12-30 19:52:50 +05305430 smeConfig->csrConfig.neighborRoamConfig.nNeighborInitialForcedRoamTo5GhEnable
5431 = pConfig->nNeighborInitialForcedRoamTo5GhEnable;
Mukul Sharmad49b3d62014-09-02 01:45:32 +05305432 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005433 hdd_string_to_u8_array( pConfig->neighborScanChanList,
Mukul Sharma20aa6582014-08-07 21:36:12 +05305434 smeConfig->csrConfig.neighborRoamConfig.neighborScanChanList.channelList,
5435 &smeConfig->csrConfig.neighborRoamConfig.neighborScanChanList.numChannels,
Jeff Johnson295189b2012-06-20 16:38:30 -07005436 WNI_CFG_VALID_CHANNEL_LIST_LEN );
5437#endif
5438
Mukul Sharma20aa6582014-08-07 21:36:12 +05305439 smeConfig->csrConfig.addTSWhenACMIsOff = pConfig->AddTSWhenACMIsOff;
5440 smeConfig->csrConfig.fValidateList = pConfig->fValidateScanList;
5441 smeConfig->csrConfig.allowDFSChannelRoam = pConfig->allowDFSChannelRoam;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005442 //Enable/Disable MCC
Mukul Sharma20aa6582014-08-07 21:36:12 +05305443 smeConfig->csrConfig.fEnableMCCMode = pConfig->enableMCC;
5444 smeConfig->csrConfig.fAllowMCCGODiffBI = pConfig->allowMCCGODiffBI;
Jeff Johnson295189b2012-06-20 16:38:30 -07005445
Sandeep Puligilla2b6dc632012-12-17 14:44:16 -08005446 //Scan Results Aging Time out value
Mukul Sharma20aa6582014-08-07 21:36:12 +05305447 smeConfig->csrConfig.scanCfgAgingTime = pConfig->scanAgingTimeout;
Sandeep Puligilla2b6dc632012-12-17 14:44:16 -08005448
Mukul Sharma20aa6582014-08-07 21:36:12 +05305449 smeConfig->csrConfig.enableTxLdpc = pConfig->enableTxLdpc;
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08005450
Mukul Sharma20aa6582014-08-07 21:36:12 +05305451 smeConfig->csrConfig.isAmsduSupportInAMPDU = pConfig->isAmsduSupportInAMPDU;
Mukul Sharma8b192c02014-12-30 19:52:50 +05305452 if(pConfig->nBandCapability != eCSR_BAND_24)
5453 {
5454 smeConfig->csrConfig.nSelect5GHzMargin = pConfig->nSelect5GHzMargin;
5455 }
Mukul Sharma20aa6582014-08-07 21:36:12 +05305456 smeConfig->csrConfig.initialScanSkipDFSCh = pConfig->initialScanSkipDFSCh;
krunal soni5afa96c2013-09-06 22:19:02 -07005457
Mukul Sharma20aa6582014-08-07 21:36:12 +05305458 smeConfig->csrConfig.isCoalesingInIBSSAllowed =
krunal sonie9002db2013-11-25 14:24:17 -08005459 pHddCtx->cfg_ini->isCoalesingInIBSSAllowed;
5460
5461
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -07005462 /* update SSR config */
5463 sme_UpdateEnableSSR((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->enableSSR);
Gopichand Nakkala86e42662013-06-11 17:44:11 +05305464 /* Update the Directed scan offload setting */
Mukul Sharma20aa6582014-08-07 21:36:12 +05305465 smeConfig->fScanOffload = pHddCtx->cfg_ini->fScanOffload;
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -07005466
Peng Xufc6ad8e2014-09-25 13:16:43 +05305467 smeConfig->csrConfig.scanBandPreference =
5468 pHddCtx->cfg_ini->acsScanBandPreference;
Peng Xu2446a892014-09-05 17:21:18 +05305469
Mukul Sharma20aa6582014-08-07 21:36:12 +05305470 smeConfig->fEnableDebugLog = pHddCtx->cfg_ini->gEnableDebugLog;
5471 smeConfig->csrConfig.sendDeauthBeforeCon = pConfig->sendDeauthBeforeCon;
Sushant Kaushikc9682be2014-11-26 12:27:04 +05305472 smeConfig->csrConfig.nOBSSScanWidthTriggerInterval =
5473 pConfig->nOBSSScanWidthTriggerInterval;
Mukul Sharma20aa6582014-08-07 21:36:12 +05305474 smeConfig->fDeferIMPSTime = pHddCtx->cfg_ini->deferImpsTime;
Chandrasekaran, Manishekar5cb0acd2014-12-23 20:06:52 +05305475 smeConfig->fBtcEnableIndTimerVal = pHddCtx->cfg_ini->btcEnableIndTimerVal;
Girish Gowli1c2fc802015-01-19 16:18:07 +05305476 smeConfig->csrConfig.roamDelayStatsEnabled = pHddCtx->cfg_ini->gEnableRoamDelayStats;
Mukul Sharma20aa6582014-08-07 21:36:12 +05305477 halStatus = sme_UpdateConfig( pHddCtx->hHal, smeConfig);
Jeff Johnson295189b2012-06-20 16:38:30 -07005478 if ( !HAL_STATUS_SUCCESS( halStatus ) )
5479 {
5480 status = VOS_STATUS_E_FAILURE;
c_hpothu6ff1c3c2013-10-01 19:01:57 +05305481 hddLog(LOGE, "sme_UpdateConfig() return failure %d", halStatus);
Jeff Johnson295189b2012-06-20 16:38:30 -07005482 }
5483
Mukul Sharma20aa6582014-08-07 21:36:12 +05305484 vos_mem_free(smeConfig);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005485 return status;
Jeff Johnson295189b2012-06-20 16:38:30 -07005486}
5487
5488
5489/**---------------------------------------------------------------------------
5490
5491 \brief hdd_execute_config_command() -
5492
5493 This function executes an arbitrary configuration set command
5494
5495 \param - pHddCtx - Pointer to the HDD Adapter.
5496 \parmm - command - a configuration command of the form:
5497 <name>=<value>
5498
5499 \return - 0 for success, non zero for failure
5500
5501 --------------------------------------------------------------------------*/
5502
5503VOS_STATUS hdd_execute_config_command(hdd_context_t *pHddCtx, char *command)
5504{
5505 size_t tableSize = sizeof(g_registry_table)/sizeof(g_registry_table[0]);
5506 REG_TABLE_ENTRY *pRegEntry;
5507 char *clone;
5508 char *pCmd;
5509 void *pField;
5510 char *name;
5511 char *value_str;
5512 v_U32_t value;
5513 v_S31_t svalue;
5514 size_t len_value_str;
5515 unsigned int idx;
5516 unsigned int i;
5517 VOS_STATUS vstatus;
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08005518 int rv;
Jeff Johnson295189b2012-06-20 16:38:30 -07005519
5520 // assume failure until proven otherwise
5521 vstatus = VOS_STATUS_E_FAILURE;
5522
5523 // clone the command so that we can manipulate it
5524 clone = kstrdup(command, GFP_ATOMIC);
5525 if (NULL == clone)
5526 {
5527 hddLog(LOGE, "%s: memory allocation failure, unable to process [%s]",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005528 __func__, command);
Jeff Johnson295189b2012-06-20 16:38:30 -07005529 return vstatus;
5530 }
5531
5532 // 'clone' will point to the beginning of the string so it can be freed
5533 // 'pCmd' will be used to walk/parse the command
5534 pCmd = clone;
5535
5536 // get rid of leading/trailing whitespace
5537 pCmd = i_trim(pCmd);
5538 if ('\0' == *pCmd)
5539 {
5540 // only whitespace
5541 hddLog(LOGE, "%s: invalid command, only whitespace:[%s]",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005542 __func__, command);
Jeff Johnson295189b2012-06-20 16:38:30 -07005543 goto done;
5544 }
5545
5546 // parse the <name> = <value>
5547 name = pCmd;
5548 while (('=' != *pCmd) && ('\0' != *pCmd))
5549 {
5550 pCmd++;
5551 }
5552 if ('\0' == *pCmd)
5553 {
5554 // did not find '='
5555 hddLog(LOGE, "%s: invalid command, no '=':[%s]",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005556 __func__, command);
Jeff Johnson295189b2012-06-20 16:38:30 -07005557 goto done;
5558 }
5559
5560 // replace '=' with NUL to terminate the <name>
5561 *pCmd++ = '\0';
5562 name = i_trim(name);
5563 if ('\0' == *name)
5564 {
5565 // did not find a name
5566 hddLog(LOGE, "%s: invalid command, no <name>:[%s]",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005567 __func__, command);
Jeff Johnson295189b2012-06-20 16:38:30 -07005568 goto done;
5569 }
5570
5571 value_str = i_trim(pCmd);
5572 if ('\0' == *value_str)
5573 {
5574 // did not find a value
5575 hddLog(LOGE, "%s: invalid command, no <value>:[%s]",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005576 __func__, command);
Jeff Johnson295189b2012-06-20 16:38:30 -07005577 goto done;
5578 }
5579
5580 // lookup the configuration item
5581 for (idx = 0; idx < tableSize; idx++)
5582 {
5583 if (0 == strcmp(name, g_registry_table[idx].RegName))
5584 {
5585 // found a match
5586 break;
5587 }
5588 }
5589 if (tableSize == idx)
5590 {
5591 // did not match the name
5592 hddLog(LOGE, "%s: invalid command, unknown configuration item:[%s]",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005593 __func__, command);
Jeff Johnson295189b2012-06-20 16:38:30 -07005594 goto done;
5595 }
5596
5597 pRegEntry = &g_registry_table[idx];
5598 if (!(pRegEntry->Flags & VAR_FLAGS_DYNAMIC_CFG))
5599 {
5600 // does not support dynamic configuration
5601 hddLog(LOGE, "%s: invalid command, %s does not support "
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005602 "dynamic configuration", __func__, name);
Jeff Johnson295189b2012-06-20 16:38:30 -07005603 goto done;
5604 }
5605
5606 pField = ((v_U8_t *)pHddCtx->cfg_ini) + pRegEntry->VarOffset;
5607
5608 switch (pRegEntry->RegType)
5609 {
5610 case WLAN_PARAM_Integer:
Jeff Johnson02797792013-10-26 19:17:13 -07005611 rv = kstrtou32(value_str, 10, &value);
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08005612 if (rv < 0)
5613 goto done;
Jeff Johnson295189b2012-06-20 16:38:30 -07005614 if (value < pRegEntry->VarMin)
5615 {
5616 // out of range
Jeff Johnson0299d0a2013-10-30 12:37:43 -07005617 hddLog(LOGE, "%s: invalid command, value %u < min value %lu",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005618 __func__, value, pRegEntry->VarMin);
Jeff Johnson295189b2012-06-20 16:38:30 -07005619 goto done;
5620 }
5621 if (value > pRegEntry->VarMax)
5622 {
5623 // out of range
Jeff Johnson0299d0a2013-10-30 12:37:43 -07005624 hddLog(LOGE, "%s: invalid command, value %u > max value %lu",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005625 __func__, value, pRegEntry->VarMax);
Jeff Johnson295189b2012-06-20 16:38:30 -07005626 goto done;
5627 }
5628 memcpy(pField, &value, pRegEntry->VarSize);
5629 break;
5630
5631 case WLAN_PARAM_HexInteger:
Jeff Johnson02797792013-10-26 19:17:13 -07005632 rv = kstrtou32(value_str, 16, &value);
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08005633 if (rv < 0)
5634 goto done;
Jeff Johnson295189b2012-06-20 16:38:30 -07005635 if (value < pRegEntry->VarMin)
5636 {
5637 // out of range
Jeff Johnson0299d0a2013-10-30 12:37:43 -07005638 hddLog(LOGE, "%s: invalid command, value %x < min value %lx",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005639 __func__, value, pRegEntry->VarMin);
Jeff Johnson295189b2012-06-20 16:38:30 -07005640 goto done;
5641 }
5642 if (value > pRegEntry->VarMax)
5643 {
5644 // out of range
Jeff Johnson0299d0a2013-10-30 12:37:43 -07005645 hddLog(LOGE, "%s: invalid command, value %x > max value %lx",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005646 __func__, value, pRegEntry->VarMax);
Jeff Johnson295189b2012-06-20 16:38:30 -07005647 goto done;
5648 }
5649 memcpy(pField, &value, pRegEntry->VarSize);
5650 break;
5651
5652 case WLAN_PARAM_SignedInteger:
Jeff Johnson02797792013-10-26 19:17:13 -07005653 rv = kstrtos32(value_str, 10, &svalue);
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08005654 if (rv < 0)
5655 goto done;
Jeff Johnson295189b2012-06-20 16:38:30 -07005656 if (svalue < (v_S31_t)pRegEntry->VarMin)
5657 {
5658 // out of range
5659 hddLog(LOGE, "%s: invalid command, value %d < min value %d",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005660 __func__, svalue, (int)pRegEntry->VarMin);
Jeff Johnson295189b2012-06-20 16:38:30 -07005661 goto done;
5662 }
5663 if (svalue > (v_S31_t)pRegEntry->VarMax)
5664 {
5665 // out of range
5666 hddLog(LOGE, "%s: invalid command, value %d > max value %d",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005667 __func__, svalue, (int)pRegEntry->VarMax);
Jeff Johnson295189b2012-06-20 16:38:30 -07005668 goto done;
5669 }
5670 memcpy(pField, &svalue, pRegEntry->VarSize);
5671 break;
5672
5673 case WLAN_PARAM_String:
5674 len_value_str = strlen(value_str);
5675 if (len_value_str > (pRegEntry->VarSize - 1))
5676 {
5677 // too big
5678 hddLog(LOGE,
5679 "%s: invalid command, string [%s] length "
Jeff Johnson59a121e2013-11-30 09:46:08 -08005680 "%zu exceeds maximum length %u",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005681 __func__, value_str,
Jeff Johnson295189b2012-06-20 16:38:30 -07005682 len_value_str, (pRegEntry->VarSize - 1));
5683 goto done;
5684 }
5685 // copy string plus NUL
5686 memcpy(pField, value_str, (len_value_str + 1));
5687 break;
5688
5689 case WLAN_PARAM_MacAddr:
5690 len_value_str = strlen(value_str);
5691 if (len_value_str != (VOS_MAC_ADDR_SIZE * 2))
5692 {
5693 // out of range
5694 hddLog(LOGE,
5695 "%s: invalid command, MAC address [%s] length "
Jeff Johnson59a121e2013-11-30 09:46:08 -08005696 "%zu is not expected length %u",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005697 __func__, value_str,
Jeff Johnson295189b2012-06-20 16:38:30 -07005698 len_value_str, (VOS_MAC_ADDR_SIZE * 2));
5699 goto done;
5700 }
5701 //parse the string and store it in the byte array
5702 for (i = 0; i < VOS_MAC_ADDR_SIZE; i++)
5703 {
5704 ((char*)pField)[i] = (char)
5705 ((parseHexDigit(value_str[(i * 2)]) * 16) +
5706 parseHexDigit(value_str[(i * 2) + 1]));
5707 }
5708 break;
5709
5710 default:
5711 goto done;
5712 }
5713
5714 // if we get here, we had a successful modification
5715 vstatus = VOS_STATUS_SUCCESS;
5716
5717 // config table has been modified, is there a notifier?
5718 if (NULL != pRegEntry->pfnDynamicNotify)
5719 {
5720 (pRegEntry->pfnDynamicNotify)(pHddCtx, pRegEntry->NotifyId);
5721 }
5722
5723 // note that this item was explicitly configured
5724 if (idx < MAX_CFG_INI_ITEMS)
5725 {
5726 set_bit(idx, (void *)&pHddCtx->cfg_ini->bExplicitCfg);
5727 }
5728 done:
5729 kfree(clone);
5730 return vstatus;
5731}
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07005732
5733/**---------------------------------------------------------------------------
5734
5735 \brief hdd_is_okc_mode_enabled() -
5736
5737 This function returns whether OKC mode is enabled or not
5738
5739 \param - pHddCtx - Pointer to the HDD Adapter.
5740
5741 \return - 1 for enabled, zero for disabled
5742
5743 --------------------------------------------------------------------------*/
5744
5745tANI_BOOLEAN hdd_is_okc_mode_enabled(hdd_context_t *pHddCtx)
5746{
5747 if (NULL == pHddCtx)
5748 {
5749 hddLog(VOS_TRACE_LEVEL_FATAL, "%s: pHddCtx is NULL", __func__);
5750 return -EINVAL;
5751 }
5752
5753#ifdef FEATURE_WLAN_OKC
5754 return pHddCtx->cfg_ini->isOkcIniFeatureEnabled;
5755#else
5756 return eANI_BOOLEAN_FALSE;
5757#endif
5758}