blob: 941befb7bf913a02275d478d49706b1be66eac98 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Arunk Khandavalli95608be2019-01-22 13:12:54 +05302 * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
Kiet Lam842dad02014-02-18 18:44:02 -08003 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22/*
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
Sourav Mohapatra5817dc42017-12-18 17:45:16 +0530212 REG_VARIABLE(CFG_MARK_INDOOR_AS_DISABLE_NAME,
213 WLAN_PARAM_Integer,
214 hdd_config_t, disable_indoor_channel,
215 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
216 CFG_MARK_INDOOR_AS_DISABLE_DEFAULT,
217 CFG_MARK_INDOOR_AS_DISABLE_MIN,
218 CFG_MARK_INDOOR_AS_DISABLE_MAX),
219
Jeff Johnson295189b2012-06-20 16:38:30 -0700220 REG_VARIABLE( CFG_FRAG_THRESHOLD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800221 hdd_config_t, FragmentationThreshold,
222 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
223 CFG_FRAG_THRESHOLD_DEFAULT,
224 CFG_FRAG_THRESHOLD_MIN,
225 CFG_FRAG_THRESHOLD_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -0700226
227 REG_VARIABLE( CFG_CALIBRATION_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800228 hdd_config_t, Calibration,
229 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
230 CFG_CALIBRATION_DEFAULT,
231 CFG_CALIBRATION_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700232 CFG_CALIBRATION_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800233
Jeff Johnson295189b2012-06-20 16:38:30 -0700234 REG_VARIABLE( CFG_CALIBRATION_PERIOD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800235 hdd_config_t, CalibrationPeriod,
236 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
237 CFG_CALIBRATION_PERIOD_DEFAULT,
238 CFG_CALIBRATION_PERIOD_MIN,
239 CFG_CALIBRATION_PERIOD_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -0700240
241 REG_VARIABLE( CFG_OPERATING_CHANNEL_NAME, WLAN_PARAM_Integer,
242 hdd_config_t, OperatingChannel,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800243 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
244 CFG_OPERATING_CHANNEL_DEFAULT,
245 CFG_OPERATING_CHANNEL_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700246 CFG_OPERATING_CHANNEL_MAX ),
247
248 REG_VARIABLE( CFG_SHORT_SLOT_TIME_ENABLED_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800249 hdd_config_t, ShortSlotTimeEnabled,
250 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
251 CFG_SHORT_SLOT_TIME_ENABLED_DEFAULT,
252 CFG_SHORT_SLOT_TIME_ENABLED_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700253 CFG_SHORT_SLOT_TIME_ENABLED_MAX ),
254
255 REG_VARIABLE( CFG_11D_SUPPORT_ENABLED_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800256 hdd_config_t, Is11dSupportEnabled,
257 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
258 CFG_11D_SUPPORT_ENABLED_DEFAULT,
259 CFG_11D_SUPPORT_ENABLED_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700260 CFG_11D_SUPPORT_ENABLED_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800261
Madan Mohan Koyyalamudi8db1c942013-01-10 15:24:29 -0800262 REG_VARIABLE( CFG_11H_SUPPORT_ENABLED_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800263 hdd_config_t, Is11hSupportEnabled,
264 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
265 CFG_11H_SUPPORT_ENABLED_DEFAULT,
266 CFG_11H_SUPPORT_ENABLED_MIN,
Madan Mohan Koyyalamudi8db1c942013-01-10 15:24:29 -0800267 CFG_11H_SUPPORT_ENABLED_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -0700268
269 REG_VARIABLE( CFG_ENFORCE_11D_CHANNELS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800270 hdd_config_t, fEnforce11dChannels,
271 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
272 CFG_ENFORCE_11D_CHANNELS_DEFAULT,
273 CFG_ENFORCE_11D_CHANNELS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700274 CFG_ENFORCE_11D_CHANNELS_MAX ),
275
276 REG_VARIABLE( CFG_COUNTRY_CODE_PRIORITY_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800277 hdd_config_t, fSupplicantCountryCodeHasPriority,
278 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
279 CFG_COUNTRY_CODE_PRIORITY_DEFAULT,
280 CFG_COUNTRY_CODE_PRIORITY_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700281 CFG_COUNTRY_CODE_PRIORITY_MAX),
282
283 REG_VARIABLE( CFG_ENFORCE_COUNTRY_CODE_MATCH_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800284 hdd_config_t, fEnforceCountryCodeMatch,
285 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
286 CFG_ENFORCE_COUNTRY_CODE_MATCH_DEFAULT,
287 CFG_ENFORCE_COUNTRY_CODE_MATCH_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700288 CFG_ENFORCE_COUNTRY_CODE_MATCH_MAX ),
289
290 REG_VARIABLE( CFG_ENFORCE_DEFAULT_DOMAIN_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800291 hdd_config_t, fEnforceDefaultDomain,
292 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
293 CFG_ENFORCE_DEFAULT_DOMAIN_DEFAULT,
294 CFG_ENFORCE_DEFAULT_DOMAIN_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700295 CFG_ENFORCE_DEFAULT_DOMAIN_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800296
Jeff Johnson295189b2012-06-20 16:38:30 -0700297 REG_VARIABLE( CFG_GENERIC_ID1_NAME, WLAN_PARAM_Integer,
298 hdd_config_t, Cfg1Id,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800299 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
300 CFG_GENERIC_ID1_DEFAULT,
301 CFG_GENERIC_ID1_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700302 CFG_GENERIC_ID1_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800303
Jeff Johnson295189b2012-06-20 16:38:30 -0700304 REG_VARIABLE( CFG_GENERIC_ID2_NAME, WLAN_PARAM_Integer,
305 hdd_config_t, Cfg2Id,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800306 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
307 CFG_GENERIC_ID2_DEFAULT,
308 CFG_GENERIC_ID2_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700309 CFG_GENERIC_ID2_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800310
Jeff Johnson295189b2012-06-20 16:38:30 -0700311 REG_VARIABLE( CFG_GENERIC_ID3_NAME, WLAN_PARAM_Integer,
312 hdd_config_t, Cfg3Id,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800313 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
314 CFG_GENERIC_ID3_DEFAULT,
315 CFG_GENERIC_ID3_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700316 CFG_GENERIC_ID3_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800317
Jeff Johnson295189b2012-06-20 16:38:30 -0700318 REG_VARIABLE( CFG_GENERIC_ID4_NAME, WLAN_PARAM_Integer,
319 hdd_config_t, Cfg4Id,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800320 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
321 CFG_GENERIC_ID4_DEFAULT,
322 CFG_GENERIC_ID4_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700323 CFG_GENERIC_ID4_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800324
Jeff Johnson295189b2012-06-20 16:38:30 -0700325 REG_VARIABLE( CFG_GENERIC_ID5_NAME, WLAN_PARAM_Integer,
326 hdd_config_t, Cfg5Id,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800327 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
328 CFG_GENERIC_ID5_DEFAULT,
329 CFG_GENERIC_ID5_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700330 CFG_GENERIC_ID5_MAX ),
331
332 REG_VARIABLE( CFG_GENERIC_VALUE1_NAME, WLAN_PARAM_Integer,
333 hdd_config_t, Cfg1Value,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800334 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
335 CFG_GENERIC_VALUE1_DEFAULT,
336 CFG_GENERIC_VALUE1_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700337 CFG_GENERIC_VALUE1_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800338
Jeff Johnson295189b2012-06-20 16:38:30 -0700339 REG_VARIABLE( CFG_GENERIC_VALUE2_NAME, WLAN_PARAM_Integer,
340 hdd_config_t, Cfg2Value,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800341 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
342 CFG_GENERIC_VALUE2_DEFAULT,
343 CFG_GENERIC_VALUE2_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700344 CFG_GENERIC_VALUE2_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800345
Jeff Johnson295189b2012-06-20 16:38:30 -0700346 REG_VARIABLE( CFG_GENERIC_VALUE3_NAME, WLAN_PARAM_Integer,
347 hdd_config_t, Cfg3Value,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800348 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
349 CFG_GENERIC_VALUE3_DEFAULT,
350 CFG_GENERIC_VALUE3_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700351 CFG_GENERIC_VALUE3_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800352
Jeff Johnson295189b2012-06-20 16:38:30 -0700353 REG_VARIABLE( CFG_GENERIC_VALUE4_NAME, WLAN_PARAM_Integer,
354 hdd_config_t, Cfg4Value,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800355 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
356 CFG_GENERIC_VALUE4_DEFAULT,
357 CFG_GENERIC_VALUE4_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700358 CFG_GENERIC_VALUE4_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800359
Jeff Johnson295189b2012-06-20 16:38:30 -0700360 REG_VARIABLE( CFG_GENERIC_VALUE5_NAME, WLAN_PARAM_Integer,
361 hdd_config_t, Cfg5Value,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800362 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
363 CFG_GENERIC_VALUE5_DEFAULT,
364 CFG_GENERIC_VALUE5_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700365 CFG_GENERIC_VALUE5_MAX ),
366
367 REG_VARIABLE( CFG_HEARTBEAT_THRESH_24_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800368 hdd_config_t, HeartbeatThresh24,
369 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
370 CFG_HEARTBEAT_THRESH_24_DEFAULT,
371 CFG_HEARTBEAT_THRESH_24_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700372 CFG_HEARTBEAT_THRESH_24_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800373
Jeff Johnson295189b2012-06-20 16:38:30 -0700374 REG_VARIABLE_STRING( CFG_POWER_USAGE_NAME, WLAN_PARAM_String,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800375 hdd_config_t, PowerUsageControl,
Jeff Johnson295189b2012-06-20 16:38:30 -0700376 VAR_FLAGS_OPTIONAL,
377 (void *)CFG_POWER_USAGE_DEFAULT ),
378
379 REG_VARIABLE( CFG_ENABLE_SUSPEND_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800380 hdd_config_t, nEnableSuspend,
381 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
382 CFG_ENABLE_SUSPEND_DEFAULT,
383 CFG_ENABLE_SUSPEND_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700384 CFG_ENABLE_SUSPEND_MAX ),
385
386 REG_VARIABLE( CFG_ENABLE_ENABLE_DRIVER_STOP_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800387 hdd_config_t, nEnableDriverStop,
388 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
389 CFG_ENABLE_ENABLE_DRIVER_STOP_DEFAULT,
390 CFG_ENABLE_ENABLE_DRIVER_STOP_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700391 CFG_ENABLE_ENABLE_DRIVER_STOP_MAX ),
392
393 REG_VARIABLE( CFG_ENABLE_IMPS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800394 hdd_config_t, fIsImpsEnabled,
395 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
396 CFG_ENABLE_IMPS_DEFAULT,
397 CFG_ENABLE_IMPS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700398 CFG_ENABLE_IMPS_MAX ),
399
Pradeep Kumar Goudagunta22d8e4d2014-07-17 15:03:51 +0530400 REG_VARIABLE( CFG_SSR_PANIC_ON_FAILURE_NAME, WLAN_PARAM_Integer,
401 hdd_config_t, fIsSsrPanicOnFailure,
402 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
403 CFG_SSR_PANIC_ON_FAILURE_DEFAULT,
404 CFG_SSR_PANIC_ON_FAILURE_MIN,
405 CFG_SSR_PANIC_ON_FAILURE_MAX),
406
Jeff Johnson295189b2012-06-20 16:38:30 -0700407 REG_VARIABLE( CFG_ENABLE_LOGP_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800408 hdd_config_t, fIsLogpEnabled,
409 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
410 CFG_ENABLE_LOGP_DEFAULT,
411 CFG_ENABLE_LOGP_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700412 CFG_ENABLE_LOGP_MAX ),
413
414 REG_VARIABLE( CFG_IMPS_MINIMUM_SLEEP_TIME_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800415 hdd_config_t, nImpsMinSleepTime,
416 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
417 CFG_IMPS_MINIMUM_SLEEP_TIME_DEFAULT,
418 CFG_IMPS_MINIMUM_SLEEP_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700419 CFG_IMPS_MINIMUM_SLEEP_TIME_MAX ),
420
421 REG_VARIABLE( CFG_IMPS_MAXIMUM_SLEEP_TIME_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800422 hdd_config_t, nImpsMaxSleepTime,
423 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
424 CFG_IMPS_MAXIMUM_SLEEP_TIME_DEFAULT,
425 CFG_IMPS_MAXIMUM_SLEEP_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700426 CFG_IMPS_MAXIMUM_SLEEP_TIME_MAX ),
427
Agarwal Ashishbd3e10b2014-11-24 19:19:46 +0530428 REG_VARIABLE( CFG_DEFER_SCAN_TIME_INTERVAL, WLAN_PARAM_Integer,
429 hdd_config_t, nDeferScanTimeInterval,
430 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
431 CFG_DEFER_SCAN_TIME_INTERVAL_DEFAULT,
432 CFG_DEFER_SCAN_TIME_INTERVAL_MIN,
433 CFG_DEFER_SCAN_TIME_INTERVAL_MAX ),
434
Jeff Johnson295189b2012-06-20 16:38:30 -0700435 REG_VARIABLE( CFG_IMPS_MODERATE_SLEEP_TIME_NAME, WLAN_PARAM_Integer,
436 hdd_config_t, nImpsModSleepTime,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800437 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
438 CFG_IMPS_MODERATE_SLEEP_TIME_DEFAULT,
439 CFG_IMPS_MODERATE_SLEEP_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700440 CFG_IMPS_MODERATE_SLEEP_TIME_MAX ),
441
442 REG_VARIABLE( CFG_ENABLE_BMPS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800443 hdd_config_t, fIsBmpsEnabled,
444 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
445 CFG_ENABLE_BMPS_DEFAULT,
446 CFG_ENABLE_BMPS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700447 CFG_ENABLE_BMPS_MAX ),
448
449 REG_VARIABLE( CFG_BMPS_MINIMUM_LI_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800450 hdd_config_t, nBmpsMinListenInterval,
451 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
452 CFG_BMPS_MINIMUM_LI_DEFAULT,
453 CFG_BMPS_MINIMUM_LI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700454 CFG_BMPS_MINIMUM_LI_MAX ),
455
456 REG_VARIABLE( CFG_BMPS_MAXIMUM_LI_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800457 hdd_config_t, nBmpsMaxListenInterval,
458 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
459 CFG_BMPS_MAXIMUM_LI_DEFAULT,
460 CFG_BMPS_MAXIMUM_LI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700461 CFG_BMPS_MAXIMUM_LI_MAX ),
462
463 REG_VARIABLE( CFG_BMPS_MODERATE_LI_NAME, WLAN_PARAM_Integer,
464 hdd_config_t, nBmpsModListenInterval,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800465 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
466 CFG_BMPS_MODERATE_LI_DEFAULT,
467 CFG_BMPS_MODERATE_LI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700468 CFG_BMPS_MODERATE_LI_MAX ),
469
470 REG_VARIABLE( CFG_ENABLE_AUTO_BMPS_TIMER_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800471 hdd_config_t, fIsAutoBmpsTimerEnabled,
472 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
473 CFG_ENABLE_AUTO_BMPS_TIMER_DEFAULT,
474 CFG_ENABLE_AUTO_BMPS_TIMER_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700475 CFG_ENABLE_AUTO_BMPS_TIMER_MAX ),
476
477 REG_VARIABLE( CFG_AUTO_BMPS_TIMER_VALUE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800478 hdd_config_t, nAutoBmpsTimerValue,
479 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
480 CFG_AUTO_BMPS_TIMER_VALUE_DEFAULT,
481 CFG_AUTO_BMPS_TIMER_VALUE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700482 CFG_AUTO_BMPS_TIMER_VALUE_MAX ),
483
484 REG_VARIABLE( CFG_DOT11_MODE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800485 hdd_config_t, dot11Mode,
486 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
487 CFG_DOT11_MODE_DEFAULT,
488 CFG_DOT11_MODE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700489 CFG_DOT11_MODE_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800490
Jeff Johnson295189b2012-06-20 16:38:30 -0700491 REG_VARIABLE( CFG_CHANNEL_BONDING_MODE_24GHZ_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800492 hdd_config_t, nChannelBondingMode24GHz,
493 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
494 CFG_CHANNEL_BONDING_MODE_DEFAULT,
495 CFG_CHANNEL_BONDING_MODE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700496 CFG_CHANNEL_BONDING_MODE_MAX),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800497
Abhishek Singhe3beee22017-07-31 15:35:40 +0530498 REG_VARIABLE(CFG_OVERRIDE_HT40_20_24GHZ_NAME, WLAN_PARAM_Integer,
499 hdd_config_t, override_ht20_40_24g,
500 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
501 CFG_OVERRIDE_HT40_20_24GHZ_DEFAULT,
502 CFG_OVERRIDE_HT40_20_24GHZ_MIN,
503 CFG_OVERRIDE_HT40_20_24GHZ_MAX),
504
Jeff Johnson295189b2012-06-20 16:38:30 -0700505 REG_VARIABLE( CFG_CHANNEL_BONDING_MODE_5GHZ_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800506 hdd_config_t, nChannelBondingMode5GHz,
507 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
508 CFG_CHANNEL_BONDING_MODE_DEFAULT,
509 CFG_CHANNEL_BONDING_MODE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700510 CFG_CHANNEL_BONDING_MODE_MAX),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800511
512 REG_VARIABLE( CFG_MAX_RX_AMPDU_FACTOR_NAME, WLAN_PARAM_Integer,
513 hdd_config_t, MaxRxAmpduFactor,
514 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK ,
515 CFG_MAX_RX_AMPDU_FACTOR_DEFAULT,
516 CFG_MAX_RX_AMPDU_FACTOR_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700517 CFG_MAX_RX_AMPDU_FACTOR_MAX),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800518
Jeff Johnson295189b2012-06-20 16:38:30 -0700519 REG_VARIABLE( CFG_FIXED_RATE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800520 hdd_config_t, TxRate,
521 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
522 CFG_FIXED_RATE_DEFAULT,
523 CFG_FIXED_RATE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700524 CFG_FIXED_RATE_MAX ),
525
526 REG_VARIABLE( CFG_SHORT_GI_20MHZ_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800527 hdd_config_t, ShortGI20MhzEnable,
528 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
529 CFG_SHORT_GI_20MHZ_DEFAULT,
530 CFG_SHORT_GI_20MHZ_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700531 CFG_SHORT_GI_20MHZ_MAX ),
532
533 REG_VARIABLE( CFG_BLOCK_ACK_AUTO_SETUP_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800534 hdd_config_t, BlockAckAutoSetup,
535 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
536 CFG_BLOCK_ACK_AUTO_SETUP_DEFAULT,
537 CFG_BLOCK_ACK_AUTO_SETUP_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700538 CFG_BLOCK_ACK_AUTO_SETUP_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800539
Jeff Johnson295189b2012-06-20 16:38:30 -0700540 REG_VARIABLE( CFG_SCAN_RESULT_AGE_COUNT_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800541 hdd_config_t, ScanResultAgeCount,
542 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
543 CFG_SCAN_RESULT_AGE_COUNT_DEFAULT,
544 CFG_SCAN_RESULT_AGE_COUNT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700545 CFG_SCAN_RESULT_AGE_COUNT_MAX ),
546
547 REG_VARIABLE( CFG_SCAN_RESULT_AGE_TIME_NCNPS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800548 hdd_config_t, nScanAgeTimeNCNPS,
549 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
550 CFG_SCAN_RESULT_AGE_TIME_NCNPS_DEFAULT,
551 CFG_SCAN_RESULT_AGE_TIME_NCNPS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700552 CFG_SCAN_RESULT_AGE_TIME_NCNPS_MAX ),
553
554 REG_VARIABLE( CFG_SCAN_RESULT_AGE_TIME_NCPS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800555 hdd_config_t, nScanAgeTimeNCPS,
556 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
557 CFG_SCAN_RESULT_AGE_TIME_NCPS_DEFAULT,
558 CFG_SCAN_RESULT_AGE_TIME_NCPS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700559 CFG_SCAN_RESULT_AGE_TIME_NCPS_MAX ),
560
561 REG_VARIABLE( CFG_SCAN_RESULT_AGE_TIME_CNPS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800562 hdd_config_t, nScanAgeTimeCNPS,
563 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
564 CFG_SCAN_RESULT_AGE_TIME_CNPS_DEFAULT,
565 CFG_SCAN_RESULT_AGE_TIME_CNPS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700566 CFG_SCAN_RESULT_AGE_TIME_CNPS_MAX ),
567
568 REG_VARIABLE( CFG_SCAN_RESULT_AGE_TIME_CPS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800569 hdd_config_t, nScanAgeTimeCPS,
570 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
571 CFG_SCAN_RESULT_AGE_TIME_CPS_DEFAULT,
572 CFG_SCAN_RESULT_AGE_TIME_CPS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700573 CFG_SCAN_RESULT_AGE_TIME_CPS_MAX ),
574
575 REG_VARIABLE( CFG_RSSI_CATEGORY_GAP_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800576 hdd_config_t, nRssiCatGap,
577 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
578 CFG_RSSI_CATEGORY_GAP_DEFAULT,
579 CFG_RSSI_CATEGORY_GAP_MIN,
580 CFG_RSSI_CATEGORY_GAP_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -0700581
Jeff Johnson295189b2012-06-20 16:38:30 -0700582 REG_VARIABLE( CFG_SHORT_PREAMBLE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800583 hdd_config_t, fIsShortPreamble,
584 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
585 CFG_SHORT_PREAMBLE_DEFAULT,
586 CFG_SHORT_PREAMBLE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700587 CFG_SHORT_PREAMBLE_MAX ),
588
589 REG_VARIABLE( CFG_IBSS_AUTO_BSSID_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800590 hdd_config_t, fIsAutoIbssBssid,
591 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
592 CFG_IBSS_AUTO_BSSID_DEFAULT,
593 CFG_IBSS_AUTO_BSSID_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700594 CFG_IBSS_AUTO_BSSID_MAX ),
595
596 REG_VARIABLE_STRING( CFG_IBSS_BSSID_NAME, WLAN_PARAM_MacAddr,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800597 hdd_config_t, IbssBssid,
Jeff Johnson295189b2012-06-20 16:38:30 -0700598 VAR_FLAGS_OPTIONAL,
599 (void *)CFG_IBSS_BSSID_DEFAULT ),
600
601 REG_VARIABLE_STRING( CFG_INTF0_MAC_ADDR_NAME, WLAN_PARAM_MacAddr,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800602 hdd_config_t, intfMacAddr[0],
Jeff Johnson295189b2012-06-20 16:38:30 -0700603 VAR_FLAGS_OPTIONAL,
604 (void *)CFG_INTF0_MAC_ADDR_DEFAULT ),
605
606 REG_VARIABLE_STRING( CFG_INTF1_MAC_ADDR_NAME, WLAN_PARAM_MacAddr,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800607 hdd_config_t, intfMacAddr[1],
Jeff Johnson295189b2012-06-20 16:38:30 -0700608 VAR_FLAGS_OPTIONAL,
609 (void *)CFG_INTF1_MAC_ADDR_DEFAULT ),
610
611 REG_VARIABLE_STRING( CFG_INTF2_MAC_ADDR_NAME, WLAN_PARAM_MacAddr,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800612 hdd_config_t, intfMacAddr[2],
Jeff Johnson295189b2012-06-20 16:38:30 -0700613 VAR_FLAGS_OPTIONAL,
614 (void *)CFG_INTF2_MAC_ADDR_DEFAULT ),
615
616 REG_VARIABLE_STRING( CFG_INTF3_MAC_ADDR_NAME, WLAN_PARAM_MacAddr,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800617 hdd_config_t, intfMacAddr[3],
Jeff Johnson295189b2012-06-20 16:38:30 -0700618 VAR_FLAGS_OPTIONAL,
619 (void *)CFG_INTF3_MAC_ADDR_DEFAULT ),
620
Jeff Johnson295189b2012-06-20 16:38:30 -0700621 REG_VARIABLE( CFG_AP_QOS_UAPSD_MODE_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800622 hdd_config_t, apUapsdEnabled,
623 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
624 CFG_AP_QOS_UAPSD_MODE_DEFAULT,
625 CFG_AP_QOS_UAPSD_MODE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700626 CFG_AP_QOS_UAPSD_MODE_MAX ),
627
628 REG_VARIABLE_STRING( CFG_AP_COUNTRY_CODE, WLAN_PARAM_String,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800629 hdd_config_t, apCntryCode,
Jeff Johnson295189b2012-06-20 16:38:30 -0700630 VAR_FLAGS_OPTIONAL,
631 (void *)CFG_AP_COUNTRY_CODE_DEFAULT ),
632
Madan Mohan Koyyalamudi3ff2a0b2012-10-15 14:33:46 -0700633 REG_VARIABLE( CFG_AP_ENABLE_RANDOM_BSSID_NAME, WLAN_PARAM_Integer,
634 hdd_config_t, apRandomBssidEnabled,
635 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
636 CFG_AP_ENABLE_RANDOM_BSSID_DEFAULT,
637 CFG_AP_ENABLE_RANDOM_BSSID_MIN,
638 CFG_AP_ENABLE_RANDOM_BSSID_MAX ),
639
Jeff Johnson295189b2012-06-20 16:38:30 -0700640 REG_VARIABLE( CFG_AP_ENABLE_PROTECTION_MODE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800641 hdd_config_t, apProtEnabled,
Jeff Johnson295189b2012-06-20 16:38:30 -0700642 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
643 CFG_AP_ENABLE_PROTECTION_MODE_DEFAULT,
644 CFG_AP_ENABLE_PROTECTION_MODE_MIN,
645 CFG_AP_ENABLE_PROTECTION_MODE_MAX ),
646
647 REG_VARIABLE( CFG_AP_PROTECTION_MODE_NAME, WLAN_PARAM_HexInteger,
648 hdd_config_t, apProtection,
649 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
650 CFG_AP_PROTECTION_MODE_DEFAULT,
651 CFG_AP_PROTECTION_MODE_MIN,
652 CFG_AP_PROTECTION_MODE_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800653
Jeff Johnson295189b2012-06-20 16:38:30 -0700654 REG_VARIABLE( CFG_AP_OBSS_PROTECTION_MODE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800655 hdd_config_t, apOBSSProtEnabled,
Jeff Johnson295189b2012-06-20 16:38:30 -0700656 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
657 CFG_AP_OBSS_PROTECTION_MODE_DEFAULT,
658 CFG_AP_OBSS_PROTECTION_MODE_MIN,
659 CFG_AP_OBSS_PROTECTION_MODE_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800660
Jeff Johnson295189b2012-06-20 16:38:30 -0700661 REG_VARIABLE( CFG_AP_STA_SECURITY_SEPERATION_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800662 hdd_config_t, apDisableIntraBssFwd,
Jeff Johnson295189b2012-06-20 16:38:30 -0700663 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
664 CFG_AP_STA_SECURITY_SEPERATION_DEFAULT,
665 CFG_AP_STA_SECURITY_SEPERATION_MIN,
666 CFG_AP_STA_SECURITY_SEPERATION_MAX ),
667
668 REG_VARIABLE( CFG_FRAMES_PROCESSING_TH_MODE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800669 hdd_config_t, MinFramesProcThres,
Jeff Johnson295189b2012-06-20 16:38:30 -0700670 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
671 CFG_FRAMES_PROCESSING_TH_DEFAULT,
672 CFG_FRAMES_PROCESSING_TH_MIN,
673 CFG_FRAMES_PROCESSING_TH_MAX ),
674
675 REG_VARIABLE(CFG_SAP_CHANNEL_SELECT_START_CHANNEL , WLAN_PARAM_Integer,
676 hdd_config_t, apStartChannelNum,
677 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
678 CFG_SAP_CHANNEL_SELECT_START_CHANNEL_DEFAULT,
679 CFG_SAP_CHANNEL_SELECT_START_CHANNEL_MIN,
680 CFG_SAP_CHANNEL_SELECT_START_CHANNEL_MAX ),
681
682 REG_VARIABLE(CFG_SAP_CHANNEL_SELECT_END_CHANNEL , WLAN_PARAM_Integer,
683 hdd_config_t, apEndChannelNum,
684 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
685 CFG_SAP_CHANNEL_SELECT_END_CHANNEL_DEFAULT,
686 CFG_SAP_CHANNEL_SELECT_END_CHANNEL_MIN,
687 CFG_SAP_CHANNEL_SELECT_END_CHANNEL_MAX ),
688
689 REG_VARIABLE(CFG_SAP_CHANNEL_SELECT_OPERATING_BAND , WLAN_PARAM_Integer,
690 hdd_config_t, apOperatingBand,
691 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
692 CFG_SAP_CHANNEL_SELECT_OPERATING_BAND_DEFAULT,
693 CFG_SAP_CHANNEL_SELECT_OPERATING_BAND_MIN,
694 CFG_SAP_CHANNEL_SELECT_OPERATING_BAND_MAX ),
695
696 REG_VARIABLE(CFG_SAP_AUTO_CHANNEL_SELECTION_NAME , WLAN_PARAM_Integer,
697 hdd_config_t, apAutoChannelSelection,
698 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
699 CFG_SAP_AUTO_CHANNEL_SELECTION_DEFAULT,
700 CFG_SAP_AUTO_CHANNEL_SELECTION_MIN,
701 CFG_SAP_AUTO_CHANNEL_SELECTION_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800702
Jeff Johnson295189b2012-06-20 16:38:30 -0700703 REG_VARIABLE(CFG_ENABLE_LTE_COEX , WLAN_PARAM_Integer,
704 hdd_config_t, enableLTECoex,
705 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
706 CFG_ENABLE_LTE_COEX_DEFAULT,
707 CFG_ENABLE_LTE_COEX_MIN,
708 CFG_ENABLE_LTE_COEX_MAX ),
709
710 REG_VARIABLE( CFG_AP_KEEP_ALIVE_PERIOD_NAME, WLAN_PARAM_Integer,
711 hdd_config_t, apKeepAlivePeriod,
712 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
713 CFG_AP_KEEP_ALIVE_PERIOD_DEFAULT,
714 CFG_AP_KEEP_ALIVE_PERIOD_MIN,
715 CFG_AP_KEEP_ALIVE_PERIOD_MAX),
716
717 REG_VARIABLE( CFG_GO_KEEP_ALIVE_PERIOD_NAME, WLAN_PARAM_Integer,
718 hdd_config_t, goKeepAlivePeriod,
719 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
720 CFG_GO_KEEP_ALIVE_PERIOD_DEFAULT,
721 CFG_GO_KEEP_ALIVE_PERIOD_MIN,
722 CFG_GO_KEEP_ALIVE_PERIOD_MAX),
723
Sejal Chauhanbcde8bc2013-03-04 18:06:36 +0530724 REG_VARIABLE( CFG_AP_LINK_MONITOR_PERIOD_NAME, WLAN_PARAM_Integer,
725 hdd_config_t, apLinkMonitorPeriod,
726 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
727 CFG_AP_LINK_MONITOR_PERIOD_DEFAULT,
728 CFG_AP_LINK_MONITOR_PERIOD_MIN,
729 CFG_AP_LINK_MONITOR_PERIOD_MAX),
730
Madan Mohan Koyyalamudi2558bc92013-08-24 16:54:31 +0530731 REG_VARIABLE( CFG_GO_LINK_MONITOR_PERIOD_NAME, WLAN_PARAM_Integer,
732 hdd_config_t, goLinkMonitorPeriod,
733 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
734 CFG_GO_LINK_MONITOR_PERIOD_DEFAULT,
735 CFG_GO_LINK_MONITOR_PERIOD_MIN,
736 CFG_GO_LINK_MONITOR_PERIOD_MAX),
737
Jeff Johnson295189b2012-06-20 16:38:30 -0700738 REG_VARIABLE(CFG_DISABLE_PACKET_FILTER , WLAN_PARAM_Integer,
739 hdd_config_t, disablePacketFilter,
740 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
741 CFG_DISABLE_PACKET_FILTER_DEFAULT,
742 CFG_DISABLE_PACKET_FILTER_MIN,
743 CFG_DISABLE_PACKET_FILTER_MAX ),
744
745 REG_VARIABLE( CFG_BEACON_INTERVAL_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800746 hdd_config_t, nBeaconInterval,
747 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
748 CFG_BEACON_INTERVAL_DEFAULT,
749 CFG_BEACON_INTERVAL_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700750 CFG_BEACON_INTERVAL_MAX ),
751
Jeff Johnson295189b2012-06-20 16:38:30 -0700752 REG_VARIABLE( CFG_ENABLE_IDLE_SCAN_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800753 hdd_config_t, nEnableIdleScan,
754 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
755 CFG_ENABLE_IDLE_SCAN_DEFAULT,
756 CFG_ENABLE_IDLE_SCAN_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700757 CFG_ENABLE_IDLE_SCAN_MAX ),
758
759 REG_VARIABLE( CFG_ROAMING_TIME_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800760 hdd_config_t, nRoamingTime,
761 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
762 CFG_ROAMING_TIME_DEFAULT,
763 CFG_ROAMING_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700764 CFG_ROAMING_TIME_MAX ),
765
766 REG_VARIABLE( CFG_VCC_RSSI_TRIGGER_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800767 hdd_config_t, nVccRssiTrigger,
768 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
769 CFG_VCC_RSSI_TRIGGER_DEFAULT,
770 CFG_VCC_RSSI_TRIGGER_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700771 CFG_VCC_RSSI_TRIGGER_MAX ),
772
773 REG_VARIABLE( CFG_VCC_UL_MAC_LOSS_THRESH_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800774 hdd_config_t, nVccUlMacLossThreshold,
775 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
776 CFG_VCC_UL_MAC_LOSS_THRESH_DEFAULT,
777 CFG_VCC_UL_MAC_LOSS_THRESH_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700778 CFG_VCC_UL_MAC_LOSS_THRESH_MAX ),
779
780 REG_VARIABLE( CFG_PASSIVE_MAX_CHANNEL_TIME_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800781 hdd_config_t, nPassiveMaxChnTime,
782 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
783 CFG_PASSIVE_MAX_CHANNEL_TIME_DEFAULT,
784 CFG_PASSIVE_MAX_CHANNEL_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700785 CFG_PASSIVE_MAX_CHANNEL_TIME_MAX ),
786
787 REG_VARIABLE( CFG_PASSIVE_MIN_CHANNEL_TIME_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800788 hdd_config_t, nPassiveMinChnTime,
789 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
790 CFG_PASSIVE_MIN_CHANNEL_TIME_DEFAULT,
791 CFG_PASSIVE_MIN_CHANNEL_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700792 CFG_PASSIVE_MIN_CHANNEL_TIME_MAX ),
793
794 REG_VARIABLE( CFG_ACTIVE_MAX_CHANNEL_TIME_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800795 hdd_config_t, nActiveMaxChnTime,
796 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
797 CFG_ACTIVE_MAX_CHANNEL_TIME_DEFAULT,
798 CFG_ACTIVE_MAX_CHANNEL_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700799 CFG_ACTIVE_MAX_CHANNEL_TIME_MAX ),
800
801 REG_VARIABLE( CFG_ACTIVE_MIN_CHANNEL_TIME_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800802 hdd_config_t, nActiveMinChnTime,
803 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
804 CFG_ACTIVE_MIN_CHANNEL_TIME_DEFAULT,
805 CFG_ACTIVE_MIN_CHANNEL_TIME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700806 CFG_ACTIVE_MIN_CHANNEL_TIME_MAX ),
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700807
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800808 REG_VARIABLE( CFG_ACTIVE_MAX_CHANNEL_TIME_BTC_NAME, WLAN_PARAM_Integer,
Abhishek Singhadd13582016-09-29 17:00:03 +0530809 hdd_config_t, max_chntime_btc_esco,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800810 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
811 CFG_ACTIVE_MAX_CHANNEL_TIME_BTC_DEFAULT,
812 CFG_ACTIVE_MAX_CHANNEL_TIME_BTC_MIN,
813 CFG_ACTIVE_MAX_CHANNEL_TIME_BTC_MAX ),
814
815 REG_VARIABLE( CFG_ACTIVE_MIN_CHANNEL_TIME_BTC_NAME, WLAN_PARAM_Integer,
Abhishek Singhadd13582016-09-29 17:00:03 +0530816 hdd_config_t, min_chntime_btc_esco,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800817 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
818 CFG_ACTIVE_MIN_CHANNEL_TIME_BTC_DEFAULT,
819 CFG_ACTIVE_MIN_CHANNEL_TIME_BTC_MIN,
820 CFG_ACTIVE_MIN_CHANNEL_TIME_BTC_MAX ),
821
Abhishek Singhadd13582016-09-29 17:00:03 +0530822 REG_VARIABLE(CFG_ACTIVE_MIN_CHANNEL_TIME_BTC_SCO_NAME, WLAN_PARAM_Integer,
823 hdd_config_t, min_chntime_btc_sco,
824 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
825 CFG_ACTIVE_MIN_CHANNEL_TIME_BTC_SCO_DEFAULT,
826 CFG_ACTIVE_MIN_CHANNEL_TIME_BTC_SCO_MIN,
827 CFG_ACTIVE_MIN_CHANNEL_TIME_BTC_SCO_MAX ),
828
829 REG_VARIABLE(CFG_ACTIVE_MAX_CHANNEL_TIME_BTC_SCO_NAME, WLAN_PARAM_Integer,
830 hdd_config_t, max_chntime_btc_sco,
831 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
832 CFG_ACTIVE_MAX_CHANNEL_TIME_BTC_SCO_DEFAULT,
833 CFG_ACTIVE_MAX_CHANNEL_TIME_BTC_SCO_MIN,
834 CFG_ACTIVE_MAX_CHANNEL_TIME_BTC_SCO_MAX ),
835
Kiran Kumar Lokere1f39e952013-04-03 18:34:30 -0700836 REG_VARIABLE( CFG_RETRY_LIMIT_ZERO_NAME, WLAN_PARAM_Integer,
837 hdd_config_t, retryLimitZero,
838 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
839 CFG_RETRY_LIMIT_ZERO_DEFAULT,
840 CFG_RETRY_LIMIT_ZERO_MIN,
841 CFG_RETRY_LIMIT_ZERO_MAX ),
842
843 REG_VARIABLE( CFG_RETRY_LIMIT_ONE_NAME, WLAN_PARAM_Integer,
844 hdd_config_t, retryLimitOne,
845 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
846 CFG_RETRY_LIMIT_ONE_DEFAULT,
847 CFG_RETRY_LIMIT_ONE_MIN,
848 CFG_RETRY_LIMIT_ONE_MAX ),
849
850 REG_VARIABLE( CFG_RETRY_LIMIT_TWO_NAME, WLAN_PARAM_Integer,
851 hdd_config_t, retryLimitTwo,
852 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
853 CFG_RETRY_LIMIT_TWO_DEFAULT,
854 CFG_RETRY_LIMIT_TWO_MIN,
855 CFG_RETRY_LIMIT_TWO_MAX ),
856
Kiran Kumar Lokere458d7322013-05-29 14:29:43 -0700857 REG_VARIABLE( CFG_DISABLE_AGG_WITH_BTC_NAME, WLAN_PARAM_Integer,
858 hdd_config_t, disableAggWithBtc,
859 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
860 CFG_DISABLE_AGG_WITH_BTC_DEFAULT,
861 CFG_DISABLE_AGG_WITH_BTC_MIN,
862 CFG_DISABLE_AGG_WITH_BTC_MAX ),
863
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700864#ifdef WLAN_AP_STA_CONCURRENCY
865 REG_VARIABLE( CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800866 hdd_config_t, nPassiveMaxChnTimeConc,
867 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
868 CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_DEFAULT,
869 CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_MIN,
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700870 CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_MAX ),
871
872 REG_VARIABLE( CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800873 hdd_config_t, nPassiveMinChnTimeConc,
874 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
875 CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_DEFAULT,
876 CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_MIN,
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700877 CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_MAX ),
878
879 REG_VARIABLE( CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800880 hdd_config_t, nActiveMaxChnTimeConc,
881 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
882 CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_DEFAULT,
883 CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_MIN,
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700884 CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_MAX ),
885
886 REG_VARIABLE( CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800887 hdd_config_t, nActiveMinChnTimeConc,
888 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
889 CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_DEFAULT,
890 CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_MIN,
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700891 CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_MAX ),
892
893 REG_VARIABLE( CFG_REST_TIME_CONC_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800894 hdd_config_t, nRestTimeConc,
895 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
896 CFG_REST_TIME_CONC_DEFAULT,
897 CFG_REST_TIME_CONC_MIN,
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700898 CFG_REST_TIME_CONC_MAX ),
Vinay Malekal05fdc812012-12-17 13:04:30 -0800899
Sudhir Sattayappa Kohallieb97d502013-05-22 23:16:42 -0700900 REG_VARIABLE( CFG_NUM_STA_CHAN_COMBINED_CONC_NAME, WLAN_PARAM_Integer,
901 hdd_config_t, nNumStaChanCombinedConc,
Vinay Malekal05fdc812012-12-17 13:04:30 -0800902 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
Sudhir Sattayappa Kohallieb97d502013-05-22 23:16:42 -0700903 CFG_NUM_STA_CHAN_COMBINED_CONC_DEFAULT,
904 CFG_NUM_STA_CHAN_COMBINED_CONC_MIN,
905 CFG_NUM_STA_CHAN_COMBINED_CONC_MAX ),
906
907 REG_VARIABLE( CFG_NUM_P2P_CHAN_COMBINED_CONC_NAME, WLAN_PARAM_Integer,
908 hdd_config_t, nNumP2PChanCombinedConc,
909 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
910 CFG_NUM_P2P_CHAN_COMBINED_CONC_DEFAULT,
911 CFG_NUM_P2P_CHAN_COMBINED_CONC_MIN,
912 CFG_NUM_P2P_CHAN_COMBINED_CONC_MAX ),
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -0700913#endif
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800914
Jeff Johnson295189b2012-06-20 16:38:30 -0700915 REG_VARIABLE( CFG_MAX_PS_POLL_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800916 hdd_config_t, nMaxPsPoll,
917 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
918 CFG_MAX_PS_POLL_DEFAULT,
919 CFG_MAX_PS_POLL_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700920 CFG_MAX_PS_POLL_MAX ),
921
922 REG_VARIABLE( CFG_MAX_TX_POWER_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800923 hdd_config_t, nTxPowerCap,
924 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
925 CFG_MAX_TX_POWER_DEFAULT,
926 CFG_MAX_TX_POWER_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700927 CFG_MAX_TX_POWER_MAX ),
928
929 REG_VARIABLE( CFG_LOW_GAIN_OVERRIDE_NAME, WLAN_PARAM_Integer,
930 hdd_config_t, fIsLowGainOverride,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800931 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
932 CFG_LOW_GAIN_OVERRIDE_DEFAULT,
933 CFG_LOW_GAIN_OVERRIDE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700934 CFG_LOW_GAIN_OVERRIDE_MAX ),
935
936 REG_VARIABLE( CFG_RSSI_FILTER_PERIOD_NAME, WLAN_PARAM_Integer,
937 hdd_config_t, nRssiFilterPeriod,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800938 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
939 CFG_RSSI_FILTER_PERIOD_DEFAULT,
940 CFG_RSSI_FILTER_PERIOD_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700941 CFG_RSSI_FILTER_PERIOD_MAX ),
942
943 REG_VARIABLE( CFG_IGNORE_DTIM_NAME, WLAN_PARAM_Integer,
944 hdd_config_t, fIgnoreDtim,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800945 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
946 CFG_IGNORE_DTIM_DEFAULT,
947 CFG_IGNORE_DTIM_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700948 CFG_IGNORE_DTIM_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800949
Yue Mac24062f2013-05-13 17:01:29 -0700950 REG_VARIABLE( CFG_MAX_LI_MODULATED_DTIM_NAME, WLAN_PARAM_Integer,
951 hdd_config_t, fMaxLIModulatedDTIM,
952 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
953 CFG_MAX_LI_MODULATED_DTIM_DEFAULT,
954 CFG_MAX_LI_MODULATED_DTIM_MIN,
955 CFG_MAX_LI_MODULATED_DTIM_MAX ),
956
Jeff Johnson295189b2012-06-20 16:38:30 -0700957 REG_VARIABLE( CFG_RX_ANT_CONFIGURATION_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800958 hdd_config_t, nRxAnt,
959 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
960 CFG_RX_ANT_CONFIGURATION_NAME_DEFAULT,
961 CFG_RX_ANT_CONFIGURATION_NAME_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700962 CFG_RX_ANT_CONFIGURATION_NAME_MAX ),
963
964 REG_VARIABLE( CFG_FW_HEART_BEAT_MONITORING_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800965 hdd_config_t, fEnableFwHeartBeatMonitoring,
966 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
967 CFG_FW_HEART_BEAT_MONITORING_DEFAULT,
968 CFG_FW_HEART_BEAT_MONITORING_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700969 CFG_FW_HEART_BEAT_MONITORING_MAX ),
970
971 REG_VARIABLE( CFG_FW_BEACON_FILTERING_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800972 hdd_config_t, fEnableFwBeaconFiltering,
973 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
974 CFG_FW_BEACON_FILTERING_DEFAULT,
975 CFG_FW_BEACON_FILTERING_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700976 CFG_FW_BEACON_FILTERING_MAX ),
977
Gopichand Nakkala98a98af2012-12-31 14:38:47 -0800978 REG_DYNAMIC_VARIABLE( CFG_FW_RSSI_MONITORING_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800979 hdd_config_t, fEnableFwRssiMonitoring,
980 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
981 CFG_FW_RSSI_MONITORING_DEFAULT,
982 CFG_FW_RSSI_MONITORING_MIN,
Gopichand Nakkala98a98af2012-12-31 14:38:47 -0800983 CFG_FW_RSSI_MONITORING_MAX,
984 cbNotifySetFwRssiMonitoring, 0 ),
Jeff Johnson295189b2012-06-20 16:38:30 -0700985
986 REG_VARIABLE( CFG_DATA_INACTIVITY_TIMEOUT_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800987 hdd_config_t, nDataInactivityTimeout,
988 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
989 CFG_DATA_INACTIVITY_TIMEOUT_DEFAULT,
990 CFG_DATA_INACTIVITY_TIMEOUT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -0700991 CFG_DATA_INACTIVITY_TIMEOUT_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800992
Jeff Johnson295189b2012-06-20 16:38:30 -0700993 REG_VARIABLE( CFG_NTH_BEACON_FILTER_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -0800994 hdd_config_t, nthBeaconFilter,
995 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
996 CFG_NTH_BEACON_FILTER_DEFAULT,
997 CFG_NTH_BEACON_FILTER_MIN,
998 CFG_NTH_BEACON_FILTER_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -0700999
1000 REG_VARIABLE( CFG_QOS_WMM_MODE_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001001 hdd_config_t, WmmMode,
1002 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1003 CFG_QOS_WMM_MODE_DEFAULT,
1004 CFG_QOS_WMM_MODE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001005 CFG_QOS_WMM_MODE_MAX ),
1006
1007 REG_VARIABLE( CFG_QOS_WMM_80211E_ENABLED_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001008 hdd_config_t, b80211eIsEnabled,
1009 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1010 CFG_QOS_WMM_80211E_ENABLED_DEFAULT,
1011 CFG_QOS_WMM_80211E_ENABLED_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001012 CFG_QOS_WMM_80211E_ENABLED_MAX ),
1013
1014 REG_VARIABLE( CFG_QOS_WMM_UAPSD_MASK_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001015 hdd_config_t, UapsdMask,
1016 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1017 CFG_QOS_WMM_UAPSD_MASK_DEFAULT,
1018 CFG_QOS_WMM_UAPSD_MASK_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001019 CFG_QOS_WMM_UAPSD_MASK_MAX ),
1020
Jeff Johnson295189b2012-06-20 16:38:30 -07001021 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001022 hdd_config_t, InfraUapsdVoSrvIntv,
1023 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1024 CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_DEFAULT,
1025 CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001026 CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_MAX ),
1027
1028 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001029 hdd_config_t, InfraUapsdVoSuspIntv,
1030 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1031 CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_DEFAULT,
1032 CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001033 CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_MAX ),
1034
1035 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001036 hdd_config_t, InfraUapsdViSrvIntv,
1037 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1038 CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_DEFAULT,
1039 CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001040 CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_MAX ),
1041
1042 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001043 hdd_config_t, InfraUapsdViSuspIntv,
1044 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1045 CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_DEFAULT,
1046 CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001047 CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_MAX ),
1048
1049 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001050 hdd_config_t, InfraUapsdBeSrvIntv,
1051 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1052 CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_DEFAULT,
1053 CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001054 CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_MAX ),
1055
1056 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001057 hdd_config_t, InfraUapsdBeSuspIntv,
1058 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1059 CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_DEFAULT,
1060 CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001061 CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_MAX ),
1062
1063 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001064 hdd_config_t, InfraUapsdBkSrvIntv,
1065 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1066 CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_DEFAULT,
1067 CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001068 CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_MAX ),
1069
1070 REG_VARIABLE( CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001071 hdd_config_t, InfraUapsdBkSuspIntv,
1072 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1073 CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_DEFAULT,
1074 CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001075 CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_MAX ),
1076
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001077#ifdef FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07001078 REG_VARIABLE( CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001079 hdd_config_t, InfraInactivityInterval,
1080 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1081 CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_DEFAULT,
1082 CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001083 CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_MAX),
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001084 REG_DYNAMIC_VARIABLE( CFG_ESE_FEATURE_ENABLED_NAME, WLAN_PARAM_Integer,
1085 hdd_config_t, isEseIniFeatureEnabled,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001086 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001087 CFG_ESE_FEATURE_ENABLED_DEFAULT,
1088 CFG_ESE_FEATURE_ENABLED_MIN,
1089 CFG_ESE_FEATURE_ENABLED_MAX,
1090 cbNotifySetEseFeatureEnabled, 0 ),
1091#endif // FEATURE_WLAN_ESE
Jeff Johnson295189b2012-06-20 16:38:30 -07001092
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001093#ifdef FEATURE_WLAN_LFR
1094 // flag to turn ON/OFF Legacy Fast Roaming
Gopichand Nakkala98a98af2012-12-31 14:38:47 -08001095 REG_DYNAMIC_VARIABLE( CFG_LFR_FEATURE_ENABLED_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001096 hdd_config_t, isFastRoamIniFeatureEnabled,
1097 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1098 CFG_LFR_FEATURE_ENABLED_DEFAULT,
1099 CFG_LFR_FEATURE_ENABLED_MIN,
Srinivas Girigowda100eb322013-03-15 16:48:20 -07001100 CFG_LFR_FEATURE_ENABLED_MAX,
1101 NotifyIsFastRoamIniFeatureEnabled, 0 ),
Sameer Thalappil4ae66ec2013-11-05 14:17:35 -08001102
1103 /* flag to turn ON/OFF Motion assistance for Legacy Fast Roaming */
1104 REG_DYNAMIC_VARIABLE( CFG_LFR_MAWC_FEATURE_ENABLED_NAME, WLAN_PARAM_Integer,
1105 hdd_config_t, MAWCEnabled,
1106 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1107 CFG_LFR_MAWC_FEATURE_ENABLED_DEFAULT,
1108 CFG_LFR_MAWC_FEATURE_ENABLED_MIN,
1109 CFG_LFR_MAWC_FEATURE_ENABLED_MAX,
1110 NotifyIsMAWCIniFeatureEnabled, 0 ),
1111
Jeff Johnson04dd8a82012-06-29 20:41:40 -07001112#endif // FEATURE_WLAN_LFR
1113
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08001114#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
1115 // flag to turn ON/OFF 11r and ESE FastTransition
Gopichand Nakkala98a98af2012-12-31 14:38:47 -08001116 REG_DYNAMIC_VARIABLE( CFG_FAST_TRANSITION_ENABLED_NAME, WLAN_PARAM_Integer,
Jeff Johnson295189b2012-06-20 16:38:30 -07001117 hdd_config_t, isFastTransitionEnabled,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001118 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1119 CFG_FAST_TRANSITION_ENABLED_NAME_DEFAULT,
1120 CFG_FAST_TRANSITION_ENABLED_NAME_MIN,
Gopichand Nakkala98a98af2012-12-31 14:38:47 -08001121 CFG_FAST_TRANSITION_ENABLED_NAME_MAX,
1122 cbNotifySetFastTransitionEnabled, 0 ),
Jeff Johnson43971f52012-07-17 12:26:56 -07001123
Srinivas Girigowdade697412013-02-14 16:31:48 -08001124 /* Variable to specify the delta/difference between the RSSI of current AP
Jeff Johnson43971f52012-07-17 12:26:56 -07001125 * and roamable AP while roaming */
Srinivas Girigowdade697412013-02-14 16:31:48 -08001126 REG_DYNAMIC_VARIABLE( CFG_ROAM_RSSI_DIFF_NAME, WLAN_PARAM_Integer,
1127 hdd_config_t, RoamRssiDiff,
1128 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1129 CFG_ROAM_RSSI_DIFF_DEFAULT,
1130 CFG_ROAM_RSSI_DIFF_MIN,
1131 CFG_ROAM_RSSI_DIFF_MAX,
1132 cbNotifySetRoamRssiDiff, 0),
Madan Mohan Koyyalamudi62b55b02012-12-03 16:45:39 -08001133
1134 REG_DYNAMIC_VARIABLE( CFG_IMMEDIATE_ROAM_RSSI_DIFF_NAME, WLAN_PARAM_Integer,
Srinivas Girigowdade697412013-02-14 16:31:48 -08001135 hdd_config_t, nImmediateRoamRssiDiff,
1136 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1137 CFG_IMMEDIATE_ROAM_RSSI_DIFF_DEFAULT,
1138 CFG_IMMEDIATE_ROAM_RSSI_DIFF_MIN,
Madan Mohan Koyyalamudi62b55b02012-12-03 16:45:39 -08001139 CFG_IMMEDIATE_ROAM_RSSI_DIFF_MAX,
1140 cbNotifySetImmediateRoamRssiDiff, 0),
Srinivas Girigowda100eb322013-03-15 16:48:20 -07001141
Srinivas Girigowdaad34ca92013-10-22 10:54:29 -07001142 REG_DYNAMIC_VARIABLE( CFG_ENABLE_WES_MODE_NAME, WLAN_PARAM_Integer,
1143 hdd_config_t, isWESModeEnabled,
1144 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1145 CFG_ENABLE_WES_MODE_NAME_DEFAULT,
1146 CFG_ENABLE_WES_MODE_NAME_MIN,
1147 CFG_ENABLE_WES_MODE_NAME_MAX,
1148 cbNotifySetWESMode, 0),
Jeff Johnson295189b2012-06-20 16:38:30 -07001149#endif
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001150#ifdef FEATURE_WLAN_OKC
1151 REG_DYNAMIC_VARIABLE( CFG_OKC_FEATURE_ENABLED_NAME, WLAN_PARAM_Integer,
1152 hdd_config_t, isOkcIniFeatureEnabled,
1153 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1154 CFG_OKC_FEATURE_ENABLED_DEFAULT,
1155 CFG_OKC_FEATURE_ENABLED_MIN,
1156 CFG_OKC_FEATURE_ENABLED_MAX,
1157 cbNotifySetOkcFeatureEnabled, 0 ),
1158#endif
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07001159#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
1160 REG_DYNAMIC_VARIABLE( CFG_ROAM_SCAN_OFFLOAD_ENABLED, WLAN_PARAM_Integer,
1161 hdd_config_t, isRoamOffloadScanEnabled,
1162 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1163 CFG_ROAM_SCAN_OFFLOAD_ENABLED_DEFAULT,
1164 CFG_ROAM_SCAN_OFFLOAD_ENABLED_MIN,
1165 CFG_ROAM_SCAN_OFFLOAD_ENABLED_MAX,
1166 cbNotifyUpdateRoamScanOffloadEnabled, 0),
1167#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07001168 REG_VARIABLE( CFG_QOS_WMM_PKT_CLASSIFY_BASIS_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001169 hdd_config_t, PktClassificationBasis,
1170 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1171 CFG_QOS_WMM_PKT_CLASSIFY_BASIS_DEFAULT,
1172 CFG_QOS_WMM_PKT_CLASSIFY_BASIS_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001173 CFG_QOS_WMM_PKT_CLASSIFY_BASIS_MAX ),
1174
1175 REG_VARIABLE( CFG_QOS_WMM_INFRA_DIR_AC_VO_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001176 hdd_config_t, InfraDirAcVo,
1177 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1178 CFG_QOS_WMM_INFRA_DIR_AC_VO_DEFAULT,
1179 CFG_QOS_WMM_INFRA_DIR_AC_VO_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001180 CFG_QOS_WMM_INFRA_DIR_AC_VO_MAX ),
1181
1182 REG_VARIABLE( CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001183 hdd_config_t, InfraNomMsduSizeAcVo,
1184 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1185 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_DEFAULT,
1186 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001187 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_MAX ),
1188
1189 REG_VARIABLE( CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001190 hdd_config_t, InfraMeanDataRateAcVo,
1191 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1192 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_DEFAULT,
1193 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001194 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_MAX ),
1195
1196 REG_VARIABLE( CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001197 hdd_config_t, InfraMinPhyRateAcVo,
1198 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1199 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_DEFAULT,
1200 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001201 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_MAX ),
1202
1203 REG_VARIABLE( CFG_QOS_WMM_INFRA_SBA_AC_VO_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001204 hdd_config_t, InfraSbaAcVo,
1205 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1206 CFG_QOS_WMM_INFRA_SBA_AC_VO_DEFAULT,
1207 CFG_QOS_WMM_INFRA_SBA_AC_VO_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001208 CFG_QOS_WMM_INFRA_SBA_AC_VO_MAX ),
1209
1210 REG_VARIABLE( CFG_QOS_WMM_INFRA_DIR_AC_VI_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001211 hdd_config_t, InfraDirAcVi,
1212 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1213 CFG_QOS_WMM_INFRA_DIR_AC_VI_DEFAULT,
1214 CFG_QOS_WMM_INFRA_DIR_AC_VI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001215 CFG_QOS_WMM_INFRA_DIR_AC_VI_MAX ),
1216
1217 REG_VARIABLE( CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001218 hdd_config_t, InfraNomMsduSizeAcVi,
1219 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1220 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_DEFAULT,
1221 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001222 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_MAX ),
1223
1224 REG_VARIABLE( CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001225 hdd_config_t, InfraMeanDataRateAcVi,
1226 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1227 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_DEFAULT,
1228 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001229 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_MAX ),
1230
1231 REG_VARIABLE( CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001232 hdd_config_t, InfraMinPhyRateAcVi,
1233 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1234 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_DEFAULT,
1235 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001236 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_MAX ),
1237
1238 REG_VARIABLE( CFG_QOS_WMM_INFRA_SBA_AC_VI_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001239 hdd_config_t, InfraSbaAcVi,
1240 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1241 CFG_QOS_WMM_INFRA_SBA_AC_VI_DEFAULT,
1242 CFG_QOS_WMM_INFRA_SBA_AC_VI_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001243 CFG_QOS_WMM_INFRA_SBA_AC_VI_MAX ),
1244
1245 REG_VARIABLE( CFG_QOS_WMM_INFRA_DIR_AC_BE_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001246 hdd_config_t, InfraDirAcBe,
1247 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1248 CFG_QOS_WMM_INFRA_DIR_AC_BE_DEFAULT,
1249 CFG_QOS_WMM_INFRA_DIR_AC_BE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001250 CFG_QOS_WMM_INFRA_DIR_AC_BE_MAX ),
1251
1252 REG_VARIABLE( CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001253 hdd_config_t, InfraNomMsduSizeAcBe,
1254 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1255 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_DEFAULT,
1256 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001257 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_MAX ),
1258
1259 REG_VARIABLE( CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001260 hdd_config_t, InfraMeanDataRateAcBe,
1261 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1262 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_DEFAULT,
1263 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001264 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_MAX ),
1265
1266 REG_VARIABLE( CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001267 hdd_config_t, InfraMinPhyRateAcBe,
1268 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1269 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_DEFAULT,
1270 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001271 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_MAX ),
1272
1273 REG_VARIABLE( CFG_QOS_WMM_INFRA_SBA_AC_BE_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001274 hdd_config_t, InfraSbaAcBe,
1275 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1276 CFG_QOS_WMM_INFRA_SBA_AC_BE_DEFAULT,
1277 CFG_QOS_WMM_INFRA_SBA_AC_BE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001278 CFG_QOS_WMM_INFRA_SBA_AC_BE_MAX ),
1279
1280 REG_VARIABLE( CFG_QOS_WMM_INFRA_DIR_AC_BK_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001281 hdd_config_t, InfraDirAcBk,
1282 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1283 CFG_QOS_WMM_INFRA_DIR_AC_BK_DEFAULT,
1284 CFG_QOS_WMM_INFRA_DIR_AC_BK_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001285 CFG_QOS_WMM_INFRA_DIR_AC_BK_MAX ),
1286
1287 REG_VARIABLE( CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001288 hdd_config_t, InfraNomMsduSizeAcBk,
1289 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1290 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_DEFAULT,
1291 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001292 CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_MAX ),
1293
1294 REG_VARIABLE( CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001295 hdd_config_t, InfraMeanDataRateAcBk,
1296 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1297 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_DEFAULT,
1298 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001299 CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_MAX ),
1300
1301 REG_VARIABLE( CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001302 hdd_config_t, InfraMinPhyRateAcBk,
1303 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1304 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_DEFAULT,
1305 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001306 CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_MAX ),
1307
1308 REG_VARIABLE( CFG_QOS_WMM_INFRA_SBA_AC_BK_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001309 hdd_config_t, InfraSbaAcBk,
1310 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1311 CFG_QOS_WMM_INFRA_SBA_AC_BK_DEFAULT,
1312 CFG_QOS_WMM_INFRA_SBA_AC_BK_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001313 CFG_QOS_WMM_INFRA_SBA_AC_BK_MAX ),
1314
1315 REG_VARIABLE( CFG_TL_WFQ_BK_WEIGHT_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001316 hdd_config_t, WfqBkWeight,
1317 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1318 CFG_TL_WFQ_BK_WEIGHT_DEFAULT,
1319 CFG_TL_WFQ_BK_WEIGHT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001320 CFG_TL_WFQ_BK_WEIGHT_MAX ),
1321
1322 REG_VARIABLE( CFG_TL_WFQ_BE_WEIGHT_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001323 hdd_config_t, WfqBeWeight,
1324 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1325 CFG_TL_WFQ_BE_WEIGHT_DEFAULT,
1326 CFG_TL_WFQ_BE_WEIGHT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001327 CFG_TL_WFQ_BE_WEIGHT_MAX ),
1328
1329 REG_VARIABLE( CFG_TL_WFQ_VI_WEIGHT_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001330 hdd_config_t, WfqViWeight,
1331 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1332 CFG_TL_WFQ_VI_WEIGHT_DEFAULT,
1333 CFG_TL_WFQ_VI_WEIGHT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001334 CFG_TL_WFQ_VI_WEIGHT_MAX ),
1335
1336 REG_VARIABLE( CFG_TL_WFQ_VO_WEIGHT_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001337 hdd_config_t, WfqVoWeight,
1338 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1339 CFG_TL_WFQ_VO_WEIGHT_DEFAULT,
1340 CFG_TL_WFQ_VO_WEIGHT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001341 CFG_TL_WFQ_VO_WEIGHT_MAX ),
1342
1343 REG_VARIABLE( CFG_TL_DELAYED_TRGR_FRM_INT_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001344 hdd_config_t, DelayedTriggerFrmInt,
1345 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1346 CFG_TL_DELAYED_TRGR_FRM_INT_DEFAULT,
1347 CFG_TL_DELAYED_TRGR_FRM_INT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001348 CFG_TL_DELAYED_TRGR_FRM_INT_MAX ),
1349
Dhanashri Atred8c20a32014-01-03 17:20:55 -08001350 REG_VARIABLE( CFG_REORDER_TIME_BK_NAME , WLAN_PARAM_Integer,
1351 hdd_config_t, BkReorderAgingTime,
1352 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1353 CFG_REORDER_TIME_BK_DEFAULT,
1354 CFG_REORDER_TIME_BK_MIN,
1355 CFG_REORDER_TIME_BK_MAX ),
1356
1357 REG_VARIABLE( CFG_REORDER_TIME_BE_NAME , WLAN_PARAM_Integer,
1358 hdd_config_t, BeReorderAgingTime,
1359 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1360 CFG_REORDER_TIME_BE_DEFAULT,
1361 CFG_REORDER_TIME_BE_MIN,
1362 CFG_REORDER_TIME_BE_MAX ),
1363
1364 REG_VARIABLE( CFG_REORDER_TIME_VI_NAME , WLAN_PARAM_Integer,
1365 hdd_config_t, ViReorderAgingTime,
1366 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1367 CFG_REORDER_TIME_VI_DEFAULT,
1368 CFG_REORDER_TIME_VI_MIN,
1369 CFG_REORDER_TIME_VI_MAX ),
1370
1371 REG_VARIABLE( CFG_REORDER_TIME_VO_NAME , WLAN_PARAM_Integer,
1372 hdd_config_t, VoReorderAgingTime,
1373 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1374 CFG_REORDER_TIME_VO_DEFAULT,
1375 CFG_REORDER_TIME_VO_MIN,
1376 CFG_REORDER_TIME_VO_MAX ),
1377
Sravan Kumar Kairam56bb37a2017-12-29 17:15:19 +05301378 REG_VARIABLE( CFG_ENABLE_PN_REPLAY_NAME , WLAN_PARAM_Integer,
1379 hdd_config_t, enablePNReplay,
1380 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1381 CFG_ENABLE_PN_REPLAY_DEFAULT,
1382 CFG_ENABLE_PN_REPLAY_MIN,
1383 CFG_ENABLE_PN_REPLAY_MAX ),
1384
Jeff Johnson295189b2012-06-20 16:38:30 -07001385 REG_VARIABLE_STRING( CFG_WOWL_PATTERN_NAME, WLAN_PARAM_String,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001386 hdd_config_t, wowlPattern,
Jeff Johnson295189b2012-06-20 16:38:30 -07001387 VAR_FLAGS_OPTIONAL,
1388 (void *)CFG_WOWL_PATTERN_DEFAULT ),
1389
1390 REG_VARIABLE( CFG_QOS_IMPLICIT_SETUP_ENABLED_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001391 hdd_config_t, bImplicitQosEnabled,
1392 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1393 CFG_QOS_IMPLICIT_SETUP_ENABLED_DEFAULT,
1394 CFG_QOS_IMPLICIT_SETUP_ENABLED_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001395 CFG_QOS_IMPLICIT_SETUP_ENABLED_MAX ),
1396
Jeff Johnson295189b2012-06-20 16:38:30 -07001397 REG_VARIABLE( CFG_BTC_EXECUTION_MODE_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001398 hdd_config_t, btcExecutionMode,
1399 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1400 CFG_BTC_EXECUTION_MODE_DEFAULT,
1401 CFG_BTC_EXECUTION_MODE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001402 CFG_BTC_EXECUTION_MODE_MAX ),
1403
1404 REG_VARIABLE( CFG_BTC_DHCP_PROTECTION_NAME , WLAN_PARAM_Integer,
1405 hdd_config_t, btcConsBtSlotsToBlockDuringDhcp,
1406 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1407 CFG_BTC_DHCP_PROTECTION_DEFAULT,
1408 CFG_BTC_DHCP_PROTECTION_MIN,
1409 CFG_BTC_DHCP_PROTECTION_MAX ),
1410
1411 REG_VARIABLE( CFG_BTC_A2DP_DHCP_PROTECTION_NAME , WLAN_PARAM_Integer,
1412 hdd_config_t, btcA2DPBtSubIntervalsDuringDhcp,
1413 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1414 CFG_BTC_A2DP_DHCP_PROTECTION_DEFAULT,
1415 CFG_BTC_A2DP_DHCP_PROTECTION_MIN,
1416 CFG_BTC_A2DP_DHCP_PROTECTION_MAX ),
1417
Jeff Johnson32d95a32012-09-10 13:15:23 -07001418 REG_VARIABLE( CFG_BTC_STATIC_LEN_INQ_BT_NAME , WLAN_PARAM_Integer,
1419 hdd_config_t, btcStaticLenInqBt,
1420 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1421 CFG_BTC_STATIC_LEN_INQ_BT_DEFAULT,
1422 CFG_BTC_STATIC_LEN_INQ_BT_MIN,
1423 CFG_BTC_STATIC_LEN_INQ_BT_MAX ),
1424
1425 REG_VARIABLE( CFG_BTC_STATIC_LEN_PAGE_BT_NAME , WLAN_PARAM_Integer,
1426 hdd_config_t, btcStaticLenPageBt,
1427 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1428 CFG_BTC_STATIC_LEN_PAGE_BT_DEFAULT,
1429 CFG_BTC_STATIC_LEN_PAGE_BT_MIN,
1430 CFG_BTC_STATIC_LEN_PAGE_BT_MAX ),
1431
1432 REG_VARIABLE( CFG_BTC_STATIC_LEN_CONN_BT_NAME , WLAN_PARAM_Integer,
1433 hdd_config_t, btcStaticLenConnBt,
1434 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1435 CFG_BTC_STATIC_LEN_CONN_BT_DEFAULT,
1436 CFG_BTC_STATIC_LEN_CONN_BT_MIN,
1437 CFG_BTC_STATIC_LEN_CONN_BT_MAX ),
1438
1439 REG_VARIABLE( CFG_BTC_STATIC_LEN_LE_BT_NAME , WLAN_PARAM_Integer,
1440 hdd_config_t, btcStaticLenLeBt,
1441 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1442 CFG_BTC_STATIC_LEN_LE_BT_DEFAULT,
1443 CFG_BTC_STATIC_LEN_LE_BT_MIN,
1444 CFG_BTC_STATIC_LEN_LE_BT_MAX ),
1445
1446 REG_VARIABLE( CFG_BTC_STATIC_LEN_INQ_WLAN_NAME , WLAN_PARAM_Integer,
1447 hdd_config_t, btcStaticLenInqWlan,
1448 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1449 CFG_BTC_STATIC_LEN_INQ_WLAN_DEFAULT,
1450 CFG_BTC_STATIC_LEN_INQ_WLAN_MIN,
1451 CFG_BTC_STATIC_LEN_INQ_WLAN_MAX ),
1452
1453 REG_VARIABLE( CFG_BTC_STATIC_LEN_PAGE_WLAN_NAME , WLAN_PARAM_Integer,
1454 hdd_config_t, btcStaticLenPageWlan,
1455 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1456 CFG_BTC_STATIC_LEN_PAGE_WLAN_DEFAULT,
1457 CFG_BTC_STATIC_LEN_PAGE_WLAN_MIN,
1458 CFG_BTC_STATIC_LEN_PAGE_WLAN_MAX ),
1459
1460 REG_VARIABLE( CFG_BTC_STATIC_LEN_CONN_WLAN_NAME , WLAN_PARAM_Integer,
1461 hdd_config_t, btcStaticLenConnWlan,
1462 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1463 CFG_BTC_STATIC_LEN_CONN_WLAN_DEFAULT,
1464 CFG_BTC_STATIC_LEN_CONN_WLAN_MIN,
1465 CFG_BTC_STATIC_LEN_CONN_WLAN_MAX ),
1466
1467 REG_VARIABLE( CFG_BTC_STATIC_LEN_LE_WLAN_NAME , WLAN_PARAM_Integer,
1468 hdd_config_t, btcStaticLenLeWlan,
1469 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1470 CFG_BTC_STATIC_LEN_LE_WLAN_DEFAULT,
1471 CFG_BTC_STATIC_LEN_LE_WLAN_MIN,
1472 CFG_BTC_STATIC_LEN_LE_WLAN_MAX ),
1473
1474 REG_VARIABLE( CFG_BTC_DYN_MAX_LEN_BT_NAME , WLAN_PARAM_Integer,
1475 hdd_config_t, btcDynMaxLenBt,
1476 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1477 CFG_BTC_DYN_MAX_LEN_BT_DEFAULT,
1478 CFG_BTC_DYN_MAX_LEN_BT_MIN,
1479 CFG_BTC_DYN_MAX_LEN_BT_MAX ),
1480
1481 REG_VARIABLE( CFG_BTC_DYN_MAX_LEN_WLAN_NAME , WLAN_PARAM_Integer,
1482 hdd_config_t, btcDynMaxLenWlan,
1483 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1484 CFG_BTC_DYN_MAX_LEN_WLAN_DEFAULT,
1485 CFG_BTC_DYN_MAX_LEN_WLAN_MIN,
1486 CFG_BTC_DYN_MAX_LEN_WLAN_MAX ),
1487
1488 REG_VARIABLE( CFG_BTC_MAX_SCO_BLOCK_PERC_NAME , WLAN_PARAM_Integer,
1489 hdd_config_t, btcMaxScoBlockPerc,
1490 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1491 CFG_BTC_MAX_SCO_BLOCK_PERC_DEFAULT,
1492 CFG_BTC_MAX_SCO_BLOCK_PERC_MIN,
1493 CFG_BTC_MAX_SCO_BLOCK_PERC_MAX ),
1494
1495 REG_VARIABLE( CFG_BTC_DHCP_PROT_ON_A2DP_NAME , WLAN_PARAM_Integer,
1496 hdd_config_t, btcDhcpProtOnA2dp,
1497 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1498 CFG_BTC_DHCP_PROT_ON_A2DP_DEFAULT,
1499 CFG_BTC_DHCP_PROT_ON_A2DP_MIN,
1500 CFG_BTC_DHCP_PROT_ON_A2DP_MAX ),
1501
1502 REG_VARIABLE( CFG_BTC_DHCP_PROT_ON_SCO_NAME , WLAN_PARAM_Integer,
1503 hdd_config_t, btcDhcpProtOnSco,
1504 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1505 CFG_BTC_DHCP_PROT_ON_SCO_DEFAULT,
1506 CFG_BTC_DHCP_PROT_ON_SCO_MIN,
1507 CFG_BTC_DHCP_PROT_ON_SCO_MAX ),
1508
Wilson Tsaof8b37942013-09-06 10:49:00 -07001509 REG_VARIABLE( CFG_MWS_COEX_V1_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1510 hdd_config_t, mwsCoexVictimWANFreq[0],
1511 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1512 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1513 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1514 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1515
1516 REG_VARIABLE( CFG_MWS_COEX_V1_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1517 hdd_config_t, mwsCoexVictimWLANFreq[0],
1518 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1519 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1520 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1521 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1522
1523 REG_VARIABLE( CFG_MWS_COEX_V1_CONFIG_NAME , WLAN_PARAM_Integer,
1524 hdd_config_t, mwsCoexVictimConfig[0],
1525 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1526 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1527 CFG_MWS_COEX_VX_CONFIG_MIN,
1528 CFG_MWS_COEX_VX_CONFIG_MAX ),
1529
1530 REG_VARIABLE( CFG_MWS_COEX_V1_CONFIG2_NAME , WLAN_PARAM_Integer,
1531 hdd_config_t, mwsCoexVictimConfig2[0],
1532 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1533 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1534 CFG_MWS_COEX_VX_CONFIG_MIN,
1535 CFG_MWS_COEX_VX_CONFIG_MAX ),
1536
1537 REG_VARIABLE( CFG_MWS_COEX_V2_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1538 hdd_config_t, mwsCoexVictimWANFreq[1],
1539 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1540 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1541 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1542 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1543
1544 REG_VARIABLE( CFG_MWS_COEX_V2_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1545 hdd_config_t, mwsCoexVictimWLANFreq[1],
1546 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1547 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1548 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1549 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1550
1551 REG_VARIABLE( CFG_MWS_COEX_V2_CONFIG_NAME , WLAN_PARAM_Integer,
1552 hdd_config_t, mwsCoexVictimConfig[1],
1553 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1554 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1555 CFG_MWS_COEX_VX_CONFIG_MIN,
1556 CFG_MWS_COEX_VX_CONFIG_MAX ),
1557
1558 REG_VARIABLE( CFG_MWS_COEX_V2_CONFIG2_NAME , WLAN_PARAM_Integer,
1559 hdd_config_t, mwsCoexVictimConfig2[1],
1560 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1561 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1562 CFG_MWS_COEX_VX_CONFIG_MIN,
1563 CFG_MWS_COEX_VX_CONFIG_MAX ),
1564
1565 REG_VARIABLE( CFG_MWS_COEX_V3_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1566 hdd_config_t, mwsCoexVictimWANFreq[2],
1567 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1568 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1569 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1570 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1571
1572 REG_VARIABLE( CFG_MWS_COEX_V3_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1573 hdd_config_t, mwsCoexVictimWLANFreq[2],
1574 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1575 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1576 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1577 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1578
1579 REG_VARIABLE( CFG_MWS_COEX_V3_CONFIG_NAME , WLAN_PARAM_Integer,
1580 hdd_config_t, mwsCoexVictimConfig[2],
1581 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1582 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1583 CFG_MWS_COEX_VX_CONFIG_MIN,
1584 CFG_MWS_COEX_VX_CONFIG_MAX ),
1585
1586 REG_VARIABLE( CFG_MWS_COEX_V3_CONFIG2_NAME , WLAN_PARAM_Integer,
1587 hdd_config_t, mwsCoexVictimConfig2[2],
1588 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1589 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1590 CFG_MWS_COEX_VX_CONFIG_MIN,
1591 CFG_MWS_COEX_VX_CONFIG_MAX ),
1592
1593 REG_VARIABLE( CFG_MWS_COEX_V4_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1594 hdd_config_t, mwsCoexVictimWANFreq[3],
1595 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1596 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1597 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1598 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1599
1600 REG_VARIABLE( CFG_MWS_COEX_V4_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1601 hdd_config_t, mwsCoexVictimWLANFreq[3],
1602 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1603 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1604 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1605 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1606
1607 REG_VARIABLE( CFG_MWS_COEX_V4_CONFIG_NAME , WLAN_PARAM_Integer,
1608 hdd_config_t, mwsCoexVictimConfig[3],
1609 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1610 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1611 CFG_MWS_COEX_VX_CONFIG_MIN,
1612 CFG_MWS_COEX_VX_CONFIG_MAX ),
1613
1614 REG_VARIABLE( CFG_MWS_COEX_V4_CONFIG2_NAME , WLAN_PARAM_Integer,
1615 hdd_config_t, mwsCoexVictimConfig2[3],
1616 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1617 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1618 CFG_MWS_COEX_VX_CONFIG_MIN,
1619 CFG_MWS_COEX_VX_CONFIG_MAX ),
1620
1621 REG_VARIABLE( CFG_MWS_COEX_V5_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1622 hdd_config_t, mwsCoexVictimWANFreq[4],
1623 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1624 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1625 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1626 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1627
1628 REG_VARIABLE( CFG_MWS_COEX_V5_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1629 hdd_config_t, mwsCoexVictimWLANFreq[4],
1630 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1631 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1632 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1633 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1634
1635 REG_VARIABLE( CFG_MWS_COEX_V5_CONFIG_NAME , WLAN_PARAM_Integer,
1636 hdd_config_t, mwsCoexVictimConfig[4],
1637 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1638 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1639 CFG_MWS_COEX_VX_CONFIG_MIN,
1640 CFG_MWS_COEX_VX_CONFIG_MAX ),
1641
1642 REG_VARIABLE( CFG_MWS_COEX_V5_CONFIG2_NAME , WLAN_PARAM_Integer,
1643 hdd_config_t, mwsCoexVictimConfig2[4],
1644 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1645 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1646 CFG_MWS_COEX_VX_CONFIG_MIN,
1647 CFG_MWS_COEX_VX_CONFIG_MAX ),
1648
1649 REG_VARIABLE( CFG_MWS_COEX_V6_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1650 hdd_config_t, mwsCoexVictimWANFreq[5],
1651 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1652 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1653 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1654 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1655
1656 REG_VARIABLE( CFG_MWS_COEX_V6_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1657 hdd_config_t, mwsCoexVictimWLANFreq[5],
1658 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1659 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1660 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1661 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1662
1663 REG_VARIABLE( CFG_MWS_COEX_V6_CONFIG_NAME , WLAN_PARAM_Integer,
1664 hdd_config_t, mwsCoexVictimConfig[5],
1665 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1666 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1667 CFG_MWS_COEX_VX_CONFIG_MIN,
1668 CFG_MWS_COEX_VX_CONFIG_MAX ),
1669
1670 REG_VARIABLE( CFG_MWS_COEX_V6_CONFIG2_NAME , WLAN_PARAM_Integer,
1671 hdd_config_t, mwsCoexVictimConfig2[5],
1672 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1673 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1674 CFG_MWS_COEX_VX_CONFIG_MIN,
1675 CFG_MWS_COEX_VX_CONFIG_MAX ),
1676
1677 REG_VARIABLE( CFG_MWS_COEX_V7_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1678 hdd_config_t, mwsCoexVictimWANFreq[6],
1679 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1680 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1681 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1682 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1683
1684 REG_VARIABLE( CFG_MWS_COEX_V7_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1685 hdd_config_t, mwsCoexVictimWLANFreq[6],
1686 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1687 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1688 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1689 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1690
1691 REG_VARIABLE( CFG_MWS_COEX_V7_CONFIG_NAME , WLAN_PARAM_Integer,
1692 hdd_config_t, mwsCoexVictimConfig[6],
1693 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1694 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1695 CFG_MWS_COEX_VX_CONFIG_MIN,
1696 CFG_MWS_COEX_VX_CONFIG_MAX ),
1697
1698 REG_VARIABLE( CFG_MWS_COEX_V7_CONFIG2_NAME , WLAN_PARAM_Integer,
1699 hdd_config_t, mwsCoexVictimConfig2[6],
1700 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1701 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1702 CFG_MWS_COEX_VX_CONFIG_MIN,
1703 CFG_MWS_COEX_VX_CONFIG_MAX ),
1704
1705 REG_VARIABLE( CFG_MWS_COEX_V8_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1706 hdd_config_t, mwsCoexVictimWANFreq[7],
1707 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1708 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1709 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1710 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1711
1712 REG_VARIABLE( CFG_MWS_COEX_V8_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1713 hdd_config_t, mwsCoexVictimWLANFreq[7],
1714 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1715 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1716 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1717 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1718
1719 REG_VARIABLE( CFG_MWS_COEX_V8_CONFIG_NAME , WLAN_PARAM_Integer,
1720 hdd_config_t, mwsCoexVictimConfig[7],
1721 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1722 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1723 CFG_MWS_COEX_VX_CONFIG_MIN,
1724 CFG_MWS_COEX_VX_CONFIG_MAX ),
1725
1726 REG_VARIABLE( CFG_MWS_COEX_V8_CONFIG2_NAME , WLAN_PARAM_Integer,
1727 hdd_config_t, mwsCoexVictimConfig2[7],
1728 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1729 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1730 CFG_MWS_COEX_VX_CONFIG_MIN,
1731 CFG_MWS_COEX_VX_CONFIG_MAX ),
1732
1733 REG_VARIABLE( CFG_MWS_COEX_V9_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1734 hdd_config_t, mwsCoexVictimWANFreq[8],
1735 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1736 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1737 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1738 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1739
1740 REG_VARIABLE( CFG_MWS_COEX_V9_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1741 hdd_config_t, mwsCoexVictimWLANFreq[8],
1742 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1743 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1744 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1745 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1746
1747 REG_VARIABLE( CFG_MWS_COEX_V9_CONFIG_NAME , WLAN_PARAM_Integer,
1748 hdd_config_t, mwsCoexVictimConfig[8],
1749 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1750 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1751 CFG_MWS_COEX_VX_CONFIG_MIN,
1752 CFG_MWS_COEX_VX_CONFIG_MAX ),
1753
1754 REG_VARIABLE( CFG_MWS_COEX_V9_CONFIG2_NAME , WLAN_PARAM_Integer,
1755 hdd_config_t, mwsCoexVictimConfig2[8],
1756 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1757 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1758 CFG_MWS_COEX_VX_CONFIG_MIN,
1759 CFG_MWS_COEX_VX_CONFIG_MAX ),
1760
1761 REG_VARIABLE( CFG_MWS_COEX_V10_WAN_FREQ_NAME , WLAN_PARAM_Integer,
1762 hdd_config_t, mwsCoexVictimWANFreq[9],
1763 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1764 CFG_MWS_COEX_VX_WAN_FREQ_DEFAULT,
1765 CFG_MWS_COEX_VX_WAN_FREQ_MIN,
1766 CFG_MWS_COEX_VX_WAN_FREQ_MAX ),
1767
1768 REG_VARIABLE( CFG_MWS_COEX_V10_WLAN_FREQ_NAME , WLAN_PARAM_Integer,
1769 hdd_config_t, mwsCoexVictimWLANFreq[9],
1770 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1771 CFG_MWS_COEX_VX_WLAN_FREQ_DEFAULT,
1772 CFG_MWS_COEX_VX_WLAN_FREQ_MIN,
1773 CFG_MWS_COEX_VX_WLAN_FREQ_MAX ),
1774
1775 REG_VARIABLE( CFG_MWS_COEX_V10_CONFIG_NAME , WLAN_PARAM_Integer,
1776 hdd_config_t, mwsCoexVictimConfig[9],
1777 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1778 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1779 CFG_MWS_COEX_VX_CONFIG_MIN,
1780 CFG_MWS_COEX_VX_CONFIG_MAX ),
1781
1782 REG_VARIABLE( CFG_MWS_COEX_V10_CONFIG2_NAME , WLAN_PARAM_Integer,
1783 hdd_config_t, mwsCoexVictimConfig2[9],
1784 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1785 CFG_MWS_COEX_VX_CONFIG_DEFAULT,
1786 CFG_MWS_COEX_VX_CONFIG_MIN,
1787 CFG_MWS_COEX_VX_CONFIG_MAX ),
1788
1789 REG_VARIABLE( CFG_MWS_COEX_MODEM_BACKOFF_NAME , WLAN_PARAM_Integer,
1790 hdd_config_t, mwsCoexModemBackoff,
1791 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1792 CFG_MWS_COEX_MODEM_BACKOFF_DEFAULT,
1793 CFG_MWS_COEX_MODEM_BACKOFF_MIN,
1794 CFG_MWS_COEX_MODEM_BACKOFF_MAX ),
1795
1796 REG_VARIABLE( CFG_MWS_COEX_CONFIG1_NAME , WLAN_PARAM_Integer,
1797 hdd_config_t, mwsCoexConfig[0],
1798 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1799 CFG_MWS_COEX_CONFIGX_DEFAULT,
1800 CFG_MWS_COEX_CONFIGX_MIN,
1801 CFG_MWS_COEX_CONFIGX_MAX ),
1802
1803 REG_VARIABLE( CFG_MWS_COEX_CONFIG2_NAME , WLAN_PARAM_Integer,
1804 hdd_config_t, mwsCoexConfig[1],
1805 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1806 CFG_MWS_COEX_CONFIGX_DEFAULT,
1807 CFG_MWS_COEX_CONFIGX_MIN,
1808 CFG_MWS_COEX_CONFIGX_MAX ),
1809
1810 REG_VARIABLE( CFG_MWS_COEX_CONFIG3_NAME , WLAN_PARAM_Integer,
1811 hdd_config_t, mwsCoexConfig[2],
1812 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1813 CFG_MWS_COEX_CONFIGX_DEFAULT,
1814 CFG_MWS_COEX_CONFIGX_MIN,
1815 CFG_MWS_COEX_CONFIGX_MAX ),
1816
1817 REG_VARIABLE( CFG_MWS_COEX_CONFIG4_NAME , WLAN_PARAM_Integer,
1818 hdd_config_t, mwsCoexConfig[3],
1819 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1820 CFG_MWS_COEX_CONFIGX_DEFAULT,
1821 CFG_MWS_COEX_CONFIGX_MIN,
1822 CFG_MWS_COEX_CONFIGX_MAX ),
1823
1824 REG_VARIABLE( CFG_MWS_COEX_CONFIG5_NAME , WLAN_PARAM_Integer,
1825 hdd_config_t, mwsCoexConfig[4],
1826 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1827 CFG_MWS_COEX_CONFIGX_DEFAULT,
1828 CFG_MWS_COEX_CONFIGX_MIN,
1829 CFG_MWS_COEX_CONFIGX_MAX ),
1830
1831 REG_VARIABLE( CFG_MWS_COEX_CONFIG6_NAME , WLAN_PARAM_Integer,
1832 hdd_config_t, mwsCoexConfig[5],
1833 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1834 CFG_MWS_COEX_CONFIGX_DEFAULT,
1835 CFG_MWS_COEX_CONFIGX_MIN,
1836 CFG_MWS_COEX_CONFIGX_MAX ),
1837
1838 REG_VARIABLE( CFG_SAR_POWER_BACKOFF_NAME , WLAN_PARAM_Integer,
1839 hdd_config_t, SARPowerBackoff,
1840 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1841 CFG_SAR_POWER_BACKOFF_DEFAULT,
1842 CFG_SAR_POWER_BACKOFF_MIN,
1843 CFG_SAR_POWER_BACKOFF_MAX ),
1844
Jeff Johnson295189b2012-06-20 16:38:30 -07001845 REG_VARIABLE( CFG_AP_LISTEN_MODE_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001846 hdd_config_t, nEnableListenMode,
1847 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1848 CFG_AP_LISTEN_MODE_DEFAULT,
1849 CFG_AP_LISTEN_MODE_MIN,
1850 CFG_AP_LISTEN_MODE_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07001851
1852 REG_VARIABLE( CFG_AP_AUTO_SHUT_OFF , WLAN_PARAM_Integer,
1853 hdd_config_t, nAPAutoShutOff,
1854 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1855 CFG_AP_AUTO_SHUT_OFF_DEFAULT,
1856 CFG_AP_AUTO_SHUT_OFF_MIN,
1857 CFG_AP_AUTO_SHUT_OFF_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07001858
1859#if defined WLAN_FEATURE_VOWIFI
1860 REG_VARIABLE( CFG_RRM_ENABLE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001861 hdd_config_t, fRrmEnable,
1862 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1863 CFG_RRM_ENABLE_DEFAULT,
1864 CFG_RRM_ENABLE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001865 CFG_RRM_ENABLE_MAX ),
1866
1867 REG_VARIABLE( CFG_RRM_OPERATING_CHAN_MAX_DURATION_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001868 hdd_config_t, nInChanMeasMaxDuration,
1869 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1870 CFG_RRM_OPERATING_CHAN_MAX_DURATION_DEFAULT,
1871 CFG_RRM_OPERATING_CHAN_MAX_DURATION_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001872 CFG_RRM_OPERATING_CHAN_MAX_DURATION_MAX ),
1873
1874 REG_VARIABLE( CFG_RRM_NON_OPERATING_CHAN_MAX_DURATION_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001875 hdd_config_t, nOutChanMeasMaxDuration,
1876 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1877 CFG_RRM_NON_OPERATING_CHAN_MAX_DURATION_DEFAULT,
1878 CFG_RRM_NON_OPERATING_CHAN_MAX_DURATION_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001879 CFG_RRM_NON_OPERATING_CHAN_MAX_DURATION_MAX ),
1880
1881 REG_VARIABLE( CFG_RRM_MEAS_RANDOMIZATION_INTVL_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001882 hdd_config_t, nRrmRandnIntvl,
1883 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1884 CFG_RRM_MEAS_RANDOMIZATION_INTVL_DEFAULT,
1885 CFG_RRM_MEAS_RANDOMIZATION_INTVL_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001886 CFG_RRM_MEAS_RANDOMIZATION_INTVL_MAX ),
1887#endif
1888
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001889#ifdef WLAN_FEATURE_VOWIFI_11R
Jeff Johnson295189b2012-06-20 16:38:30 -07001890 REG_VARIABLE( CFG_FT_RESOURCE_REQ_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001891 hdd_config_t, fFTResourceReqSupported,
1892 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1893 CFG_FT_RESOURCE_REQ_DEFAULT,
1894 CFG_FT_RESOURCE_REQ_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001895 CFG_FT_RESOURCE_REQ_MAX ),
1896#endif
1897
Girish Gowlibf0e1ab2015-01-19 16:05:16 +05301898 REG_VARIABLE( CFG_ENABLE_ROAM_DELAY_STATS, WLAN_PARAM_Integer,
1899 hdd_config_t, gEnableRoamDelayStats,
1900 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1901 CFG_ENABLE_ROAM_DELAY_STATS_DEFAULT,
1902 CFG_ENABLE_ROAM_DELAY_STATS_MIN,
1903 CFG_ENABLE_ROAM_DELAY_STATS_MAX ),
Girish Gowlibf0e1ab2015-01-19 16:05:16 +05301904
Jeff Johnson295189b2012-06-20 16:38:30 -07001905#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001906 REG_DYNAMIC_VARIABLE( CFG_NEIGHBOR_SCAN_TIMER_PERIOD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001907 hdd_config_t, nNeighborScanPeriod,
1908 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1909 CFG_NEIGHBOR_SCAN_TIMER_PERIOD_DEFAULT,
1910 CFG_NEIGHBOR_SCAN_TIMER_PERIOD_MIN,
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001911 CFG_NEIGHBOR_SCAN_TIMER_PERIOD_MAX,
1912 cbNotifySetNeighborScanPeriod, 0 ),
Jeff Johnson295189b2012-06-20 16:38:30 -07001913
1914 REG_VARIABLE( CFG_NEIGHBOR_REASSOC_RSSI_THRESHOLD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001915 hdd_config_t, nNeighborReassocRssiThreshold,
1916 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1917 CFG_NEIGHBOR_REASSOC_RSSI_THRESHOLD_DEFAULT,
1918 CFG_NEIGHBOR_REASSOC_RSSI_THRESHOLD_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001919 CFG_NEIGHBOR_REASSOC_RSSI_THRESHOLD_MAX ),
1920
Srinivas Girigowdade697412013-02-14 16:31:48 -08001921 REG_DYNAMIC_VARIABLE( CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001922 hdd_config_t, nNeighborLookupRssiThreshold,
1923 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1924 CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_DEFAULT,
1925 CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_MIN,
Srinivas Girigowdade697412013-02-14 16:31:48 -08001926 CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_MAX,
1927 cbNotifySetNeighborLookupRssiThreshold, 0 ),
Jeff Johnson295189b2012-06-20 16:38:30 -07001928
1929 REG_VARIABLE_STRING( CFG_NEIGHBOR_SCAN_CHAN_LIST_NAME, WLAN_PARAM_String,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001930 hdd_config_t, neighborScanChanList,
Jeff Johnson295189b2012-06-20 16:38:30 -07001931 VAR_FLAGS_OPTIONAL,
1932 (void *)CFG_NEIGHBOR_SCAN_CHAN_LIST_DEFAULT ),
1933
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001934 REG_DYNAMIC_VARIABLE( CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_NAME, WLAN_PARAM_Integer,
Jeff Johnson295189b2012-06-20 16:38:30 -07001935 hdd_config_t, nNeighborScanMinChanTime,
1936 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1937 CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_DEFAULT,
1938 CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_MIN,
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001939 CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_MAX,
1940 cbNotifySetNeighborScanMinChanTime, 0 ),
Jeff Johnson295189b2012-06-20 16:38:30 -07001941
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001942 REG_DYNAMIC_VARIABLE( CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001943 hdd_config_t, nNeighborScanMaxChanTime,
1944 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1945 CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_DEFAULT,
1946 CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_MIN,
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07001947 CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_MAX,
1948 cbNotifySetNeighborScanMaxChanTime, 0 ),
Jeff Johnson295189b2012-06-20 16:38:30 -07001949
1950 REG_VARIABLE( CFG_11R_NEIGHBOR_REQ_MAX_TRIES_NAME, WLAN_PARAM_Integer,
1951 hdd_config_t, nMaxNeighborReqTries,
1952 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1953 CFG_11R_NEIGHBOR_REQ_MAX_TRIES_DEFAULT,
1954 CFG_11R_NEIGHBOR_REQ_MAX_TRIES_MIN,
1955 CFG_11R_NEIGHBOR_REQ_MAX_TRIES_MAX),
1956
Srinivas Girigowdade697412013-02-14 16:31:48 -08001957 REG_DYNAMIC_VARIABLE( CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001958 hdd_config_t, nNeighborResultsRefreshPeriod,
1959 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1960 CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_DEFAULT,
1961 CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_MIN,
Srinivas Girigowdade697412013-02-14 16:31:48 -08001962 CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_MAX,
1963 cbNotifySetNeighborResultsRefreshPeriod, 0 ),
1964
1965 REG_DYNAMIC_VARIABLE( CFG_EMPTY_SCAN_REFRESH_PERIOD_NAME, WLAN_PARAM_Integer,
1966 hdd_config_t, nEmptyScanRefreshPeriod,
1967 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1968 CFG_EMPTY_SCAN_REFRESH_PERIOD_DEFAULT,
1969 CFG_EMPTY_SCAN_REFRESH_PERIOD_MIN,
1970 CFG_EMPTY_SCAN_REFRESH_PERIOD_MAX,
1971 cbNotifySetEmptyScanRefreshPeriod, 0 ),
Mukul Sharma20aa6582014-08-07 21:36:12 +05301972
1973 REG_VARIABLE( CFG_NEIGHBOR_INITIAL_FORCED_ROAM_TO_5GH_ENABLE_NAME, WLAN_PARAM_Integer,
1974 hdd_config_t, nNeighborInitialForcedRoamTo5GhEnable,
1975 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1976 CFG_NEIGHBOR_INITIAL_FORCED_ROAM_TO_5GH_ENABLE_DEFAULT,
1977 CFG_NEIGHBOR_INITIAL_FORCED_ROAM_TO_5GH_ENABLE_MIN,
1978 CFG_NEIGHBOR_INITIAL_FORCED_ROAM_TO_5GH_ENABLE_MAX),
1979
Sreelakshmi Konamki70bfdaf2017-05-29 18:47:29 +05301980 REG_VARIABLE(CFG_NEIGHBOR_WEAK_ZONE_RSSI_THRESHOLD_FOR_ROAM_NAME,
1981 WLAN_PARAM_Integer,
1982 hdd_config_t, nWeakZoneRssiThresholdForRoam,
1983 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1984 CFG_NEIGHBOR_WEAK_ZONE_RSSI_THRESHOLD_FOR_ROAM_DEFAULT,
1985 CFG_NEIGHBOR_WEAK_ZONE_RSSI_THRESHOLD_FOR_ROAM_MIN,
1986 CFG_NEIGHBOR_WEAK_ZONE_RSSI_THRESHOLD_FOR_ROAM_MAX),
1987
Jeff Johnson295189b2012-06-20 16:38:30 -07001988#endif /* WLAN_FEATURE_NEIGHBOR_ROAMING */
1989
1990 REG_VARIABLE( CFG_QOS_WMM_BURST_SIZE_DEFN_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08001991 hdd_config_t, burstSizeDefinition,
1992 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
1993 CFG_QOS_WMM_BURST_SIZE_DEFN_DEFAULT,
1994 CFG_QOS_WMM_BURST_SIZE_DEFN_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07001995 CFG_QOS_WMM_BURST_SIZE_DEFN_MAX ),
1996
1997 REG_VARIABLE( CFG_MCAST_BCAST_FILTER_SETTING_NAME, WLAN_PARAM_Integer,
1998 hdd_config_t, mcastBcastFilterSetting,
1999 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2000 CFG_MCAST_BCAST_FILTER_SETTING_DEFAULT,
2001 CFG_MCAST_BCAST_FILTER_SETTING_MIN,
2002 CFG_MCAST_BCAST_FILTER_SETTING_MAX ),
2003
2004 REG_VARIABLE( CFG_ENABLE_HOST_ARPOFFLOAD_NAME, WLAN_PARAM_Integer,
2005 hdd_config_t, fhostArpOffload,
2006 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2007 CFG_ENABLE_HOST_ARPOFFLOAD_DEFAULT,
2008 CFG_ENABLE_HOST_ARPOFFLOAD_MIN,
2009 CFG_ENABLE_HOST_ARPOFFLOAD_MAX ),
2010
Gopichand Nakkala746a9452013-06-11 12:45:54 +05302011 REG_VARIABLE( CFG_ENABLE_HOST_NSOFFLOAD_NAME, WLAN_PARAM_Integer,
2012 hdd_config_t, fhostNSOffload,
2013 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2014 CFG_ENABLE_HOST_NSOFFLOAD_DEFAULT,
2015 CFG_ENABLE_HOST_NSOFFLOAD_MIN,
2016 CFG_ENABLE_HOST_NSOFFLOAD_MAX ),
2017
Jeff Johnson295189b2012-06-20 16:38:30 -07002018 REG_VARIABLE( CFG_QOS_WMM_TS_INFO_ACK_POLICY_NAME , WLAN_PARAM_HexInteger,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002019 hdd_config_t, tsInfoAckPolicy,
2020 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2021 CFG_QOS_WMM_TS_INFO_ACK_POLICY_DEFAULT,
2022 CFG_QOS_WMM_TS_INFO_ACK_POLICY_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002023 CFG_QOS_WMM_TS_INFO_ACK_POLICY_MAX ),
2024
2025 REG_VARIABLE( CFG_SINGLE_TID_RC_NAME, WLAN_PARAM_Integer,
2026 hdd_config_t, bSingleTidRc,
2027 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2028 CFG_SINGLE_TID_RC_DEFAULT,
2029 CFG_SINGLE_TID_RC_MIN,
2030 CFG_SINGLE_TID_RC_MAX),
2031
2032 REG_VARIABLE( CFG_DYNAMIC_PSPOLL_VALUE_NAME, WLAN_PARAM_Integer,
2033 hdd_config_t, dynamicPsPollValue,
2034 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2035 CFG_DYNAMIC_PSPOLL_VALUE_DEFAULT,
2036 CFG_DYNAMIC_PSPOLL_VALUE_MIN,
2037 CFG_DYNAMIC_PSPOLL_VALUE_MAX ),
2038
2039 REG_VARIABLE( CFG_TELE_BCN_WAKEUP_EN_NAME, WLAN_PARAM_Integer,
2040 hdd_config_t, teleBcnWakeupEn,
2041 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2042 CFG_TELE_BCN_WAKEUP_EN_DEFAULT,
2043 CFG_TELE_BCN_WAKEUP_EN_MIN,
2044 CFG_TELE_BCN_WAKEUP_EN_MAX ),
2045
2046 REG_VARIABLE( CFG_INFRA_STA_KEEP_ALIVE_PERIOD_NAME, WLAN_PARAM_Integer,
2047 hdd_config_t, infraStaKeepAlivePeriod,
2048 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2049 CFG_INFRA_STA_KEEP_ALIVE_PERIOD_DEFAULT,
2050 CFG_INFRA_STA_KEEP_ALIVE_PERIOD_MIN,
2051 CFG_INFRA_STA_KEEP_ALIVE_PERIOD_MAX),
2052
2053 REG_VARIABLE( CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002054 hdd_config_t, AddTSWhenACMIsOff,
2055 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2056 CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_DEFAULT,
2057 CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002058 CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_MAX ),
2059
2060
2061 REG_VARIABLE( CFG_VALIDATE_SCAN_LIST_NAME , WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002062 hdd_config_t, fValidateScanList,
2063 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2064 CFG_VALIDATE_SCAN_LIST_DEFAULT,
2065 CFG_VALIDATE_SCAN_LIST_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002066 CFG_VALIDATE_SCAN_LIST_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002067
Jeff Johnson295189b2012-06-20 16:38:30 -07002068 REG_VARIABLE( CFG_NULLDATA_AP_RESP_TIMEOUT_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002069 hdd_config_t, nNullDataApRespTimeout,
2070 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2071 CFG_NULLDATA_AP_RESP_TIMEOUT_DEFAULT,
2072 CFG_NULLDATA_AP_RESP_TIMEOUT_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002073 CFG_NULLDATA_AP_RESP_TIMEOUT_MAX ),
2074
2075 REG_VARIABLE( CFG_AP_DATA_AVAIL_POLL_PERIOD_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002076 hdd_config_t, apDataAvailPollPeriodInMs,
2077 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2078 CFG_AP_DATA_AVAIL_POLL_PERIOD_DEFAULT,
2079 CFG_AP_DATA_AVAIL_POLL_PERIOD_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002080 CFG_AP_DATA_AVAIL_POLL_PERIOD_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002081
Jeff Johnson295189b2012-06-20 16:38:30 -07002082 REG_VARIABLE( CFG_ENABLE_BTAMP_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002083 hdd_config_t, enableBtAmp,
2084 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2085 CFG_ENABLE_BTAMP_DEFAULT,
2086 CFG_ENABLE_BTAMP_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002087 CFG_ENABLE_BTAMP_MAX ),
2088
2089#ifdef WLAN_BTAMP_FEATURE
2090 REG_VARIABLE( CFG_BT_AMP_PREFERRED_CHANNEL_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002091 hdd_config_t, preferredChannel,
Jeff Johnson295189b2012-06-20 16:38:30 -07002092 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2093 CFG_BT_AMP_PREFERRED_CHANNEL_DEFAULT,
2094 CFG_BT_AMP_PREFERRED_CHANNEL_MIN,
2095 CFG_BT_AMP_PREFERRED_CHANNEL_MAX ),
2096#endif //WLAN_BTAMP_FEATURE
2097 REG_VARIABLE( CFG_BAND_CAPABILITY_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002098 hdd_config_t, nBandCapability,
2099 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2100 CFG_BAND_CAPABILITY_DEFAULT,
2101 CFG_BAND_CAPABILITY_MIN,
2102 CFG_BAND_CAPABILITY_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002103
2104 REG_VARIABLE( CFG_ENABLE_BEACON_EARLY_TERMINATION_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002105 hdd_config_t, fEnableBeaconEarlyTermination,
2106 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2107 CFG_ENABLE_BEACON_EARLY_TERMINATION_DEFAULT,
2108 CFG_ENABLE_BEACON_EARLY_TERMINATION_MIN,
2109 CFG_ENABLE_BEACON_EARLY_TERMINATION_MAX ),
Varun Reddy Yeturu587e6802013-01-24 12:21:41 -08002110/* CFG_VOS_TRACE_ENABLE Parameters */
2111 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_BAP_NAME, WLAN_PARAM_Integer,
2112 hdd_config_t, vosTraceEnableBAP,
2113 VAR_FLAGS_OPTIONAL,
2114 CFG_VOS_TRACE_ENABLE_DEFAULT,
2115 CFG_VOS_TRACE_ENABLE_MIN,
2116 CFG_VOS_TRACE_ENABLE_MAX ),
2117
2118 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_TL_NAME, WLAN_PARAM_Integer,
2119 hdd_config_t, vosTraceEnableTL,
2120 VAR_FLAGS_OPTIONAL,
2121 CFG_VOS_TRACE_ENABLE_DEFAULT,
2122 CFG_VOS_TRACE_ENABLE_MIN,
2123 CFG_VOS_TRACE_ENABLE_MAX ),
2124
2125 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_WDI_NAME, WLAN_PARAM_Integer,
2126 hdd_config_t, vosTraceEnableWDI,
2127 VAR_FLAGS_OPTIONAL,
2128 CFG_VOS_TRACE_ENABLE_DEFAULT,
2129 CFG_VOS_TRACE_ENABLE_MIN,
2130 CFG_VOS_TRACE_ENABLE_MAX ),
2131
2132 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_HDD_NAME, WLAN_PARAM_Integer,
2133 hdd_config_t, vosTraceEnableHDD,
2134 VAR_FLAGS_OPTIONAL,
2135 CFG_VOS_TRACE_ENABLE_DEFAULT,
2136 CFG_VOS_TRACE_ENABLE_MIN,
2137 CFG_VOS_TRACE_ENABLE_MAX ),
2138
2139 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_SME_NAME, WLAN_PARAM_Integer,
2140 hdd_config_t, vosTraceEnableSME,
2141 VAR_FLAGS_OPTIONAL,
2142 CFG_VOS_TRACE_ENABLE_DEFAULT,
2143 CFG_VOS_TRACE_ENABLE_MIN,
2144 CFG_VOS_TRACE_ENABLE_MAX ),
2145
2146 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_PE_NAME, WLAN_PARAM_Integer,
2147 hdd_config_t, vosTraceEnablePE,
2148 VAR_FLAGS_OPTIONAL,
2149 CFG_VOS_TRACE_ENABLE_DEFAULT,
2150 CFG_VOS_TRACE_ENABLE_MIN,
2151 CFG_VOS_TRACE_ENABLE_MAX ),
2152
Katya Nigam70d68332013-09-16 16:49:45 +05302153 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_PMC_NAME, WLAN_PARAM_Integer,
2154 hdd_config_t, vosTraceEnablePMC,
2155 VAR_FLAGS_OPTIONAL,
2156 CFG_VOS_TRACE_ENABLE_DEFAULT,
2157 CFG_VOS_TRACE_ENABLE_MIN,
2158 CFG_VOS_TRACE_ENABLE_MAX ),
2159
Varun Reddy Yeturu587e6802013-01-24 12:21:41 -08002160 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_WDA_NAME, WLAN_PARAM_Integer,
2161 hdd_config_t, vosTraceEnableWDA,
2162 VAR_FLAGS_OPTIONAL,
2163 CFG_VOS_TRACE_ENABLE_DEFAULT,
2164 CFG_VOS_TRACE_ENABLE_MIN,
2165 CFG_VOS_TRACE_ENABLE_MAX ),
2166
2167 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_SYS_NAME, WLAN_PARAM_Integer,
2168 hdd_config_t, vosTraceEnableSYS,
2169 VAR_FLAGS_OPTIONAL,
2170 CFG_VOS_TRACE_ENABLE_DEFAULT,
2171 CFG_VOS_TRACE_ENABLE_MIN,
2172 CFG_VOS_TRACE_ENABLE_MAX ),
2173
2174 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_VOSS_NAME, WLAN_PARAM_Integer,
2175 hdd_config_t, vosTraceEnableVOSS,
2176 VAR_FLAGS_OPTIONAL,
2177 CFG_VOS_TRACE_ENABLE_DEFAULT,
2178 CFG_VOS_TRACE_ENABLE_MIN,
2179 CFG_VOS_TRACE_ENABLE_MAX ),
2180
Varun Reddy Yeturu587e6802013-01-24 12:21:41 -08002181 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_SAP_NAME, WLAN_PARAM_Integer,
2182 hdd_config_t, vosTraceEnableSAP,
2183 VAR_FLAGS_OPTIONAL,
2184 CFG_VOS_TRACE_ENABLE_DEFAULT,
2185 CFG_VOS_TRACE_ENABLE_MIN,
2186 CFG_VOS_TRACE_ENABLE_MAX ),
2187
2188 REG_VARIABLE( CFG_VOS_TRACE_ENABLE_HDD_SAP_NAME, WLAN_PARAM_Integer,
2189 hdd_config_t, vosTraceEnableHDDSAP,
2190 VAR_FLAGS_OPTIONAL,
2191 CFG_VOS_TRACE_ENABLE_DEFAULT,
2192 CFG_VOS_TRACE_ENABLE_MIN,
2193 CFG_VOS_TRACE_ENABLE_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002194
Jeff Johnson295189b2012-06-20 16:38:30 -07002195 /* note that since the default value is out of range we cannot
2196 enable range check, otherwise we get a system log message */
2197 REG_VARIABLE( CFG_WDI_TRACE_ENABLE_DAL_NAME, WLAN_PARAM_Integer,
2198 hdd_config_t, wdiTraceEnableDAL,
2199 VAR_FLAGS_OPTIONAL,
2200 CFG_WDI_TRACE_ENABLE_DEFAULT,
2201 CFG_WDI_TRACE_ENABLE_MIN,
2202 CFG_WDI_TRACE_ENABLE_MAX ),
2203
2204 REG_VARIABLE( CFG_WDI_TRACE_ENABLE_CTL_NAME, WLAN_PARAM_Integer,
2205 hdd_config_t, wdiTraceEnableCTL,
2206 VAR_FLAGS_OPTIONAL,
2207 CFG_WDI_TRACE_ENABLE_DEFAULT,
2208 CFG_WDI_TRACE_ENABLE_MIN,
2209 CFG_WDI_TRACE_ENABLE_MAX ),
2210
2211 REG_VARIABLE( CFG_WDI_TRACE_ENABLE_DAT_NAME, WLAN_PARAM_Integer,
2212 hdd_config_t, wdiTraceEnableDAT,
2213 VAR_FLAGS_OPTIONAL,
2214 CFG_WDI_TRACE_ENABLE_DEFAULT,
2215 CFG_WDI_TRACE_ENABLE_MIN,
2216 CFG_WDI_TRACE_ENABLE_MAX ),
2217
2218 REG_VARIABLE( CFG_WDI_TRACE_ENABLE_PAL_NAME, WLAN_PARAM_Integer,
2219 hdd_config_t, wdiTraceEnablePAL,
2220 VAR_FLAGS_OPTIONAL,
2221 CFG_WDI_TRACE_ENABLE_DEFAULT,
2222 CFG_WDI_TRACE_ENABLE_MIN,
2223 CFG_WDI_TRACE_ENABLE_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002224
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002225 REG_VARIABLE( CFG_TELE_BCN_TRANS_LI_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002226 hdd_config_t, nTeleBcnTransListenInterval,
2227 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2228 CFG_TELE_BCN_TRANS_LI_DEFAULT,
2229 CFG_TELE_BCN_TRANS_LI_MIN,
2230 CFG_TELE_BCN_TRANS_LI_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002231
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002232 REG_VARIABLE( CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002233 hdd_config_t, nTeleBcnTransLiNumIdleBeacons,
2234 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2235 CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_DEFAULT,
2236 CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_MIN,
2237 CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002238
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002239 REG_VARIABLE( CFG_TELE_BCN_MAX_LI_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002240 hdd_config_t, nTeleBcnMaxListenInterval,
2241 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2242 CFG_TELE_BCN_MAX_LI_DEFAULT,
2243 CFG_TELE_BCN_MAX_LI_MIN,
2244 CFG_TELE_BCN_MAX_LI_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002245
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002246 REG_VARIABLE( CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002247 hdd_config_t, nTeleBcnMaxLiNumIdleBeacons,
2248 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2249 CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_DEFAULT,
2250 CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_MIN,
2251 CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002252
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002253 REG_VARIABLE( CFG_BCN_EARLY_TERM_WAKE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002254 hdd_config_t, bcnEarlyTermWakeInterval,
2255 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2256 CFG_BCN_EARLY_TERM_WAKE_DEFAULT,
2257 CFG_BCN_EARLY_TERM_WAKE_MIN,
2258 CFG_BCN_EARLY_TERM_WAKE_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002259
Jeff Johnson295189b2012-06-20 16:38:30 -07002260 REG_VARIABLE( CFG_ENABLE_CLOSE_LOOP_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002261 hdd_config_t, enableCloseLoop,
2262 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2263 CFG_ENABLE_CLOSE_LOOP_DEFAULT,
2264 CFG_ENABLE_CLOSE_LOOP_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002265 CFG_ENABLE_CLOSE_LOOP_MAX ),
2266
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002267 REG_VARIABLE( CFG_ENABLE_BYPASS_11D_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002268 hdd_config_t, enableBypass11d,
2269 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2270 CFG_ENABLE_BYPASS_11D_DEFAULT,
2271 CFG_ENABLE_BYPASS_11D_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002272 CFG_ENABLE_BYPASS_11D_MAX ),
2273
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002274 REG_VARIABLE( CFG_ENABLE_DFS_CHNL_SCAN_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002275 hdd_config_t, enableDFSChnlScan,
2276 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2277 CFG_ENABLE_DFS_CHNL_SCAN_DEFAULT,
2278 CFG_ENABLE_DFS_CHNL_SCAN_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002279 CFG_ENABLE_DFS_CHNL_SCAN_MAX ),
2280
Sachin Ahuja697ba3f2014-11-12 18:57:11 +05302281 REG_VARIABLE( CFG_ENABLE_DFS_PNO_CHNL_SCAN_NAME, WLAN_PARAM_Integer,
2282 hdd_config_t, enableDFSPnoChnlScan,
2283 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2284 CFG_ENABLE_DFS_PNO_CHNL_SCAN_DEFAULT,
2285 CFG_ENABLE_DFS_PNO_CHNL_SCAN_MIN,
2286 CFG_ENABLE_DFS_PNO_CHNL_SCAN_MAX ),
2287
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002288 REG_VARIABLE( CFG_ENABLE_DYNAMIC_DTIM_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002289 hdd_config_t, enableDynamicDTIM,
2290 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2291 CFG_ENABLE_DYNAMIC_DTIM_DEFAULT,
2292 CFG_ENABLE_DYNAMIC_DTIM_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002293 CFG_ENABLE_DYNAMIC_DTIM_MAX ),
2294
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002295 REG_VARIABLE( CFG_ENABLE_AUTOMATIC_TX_POWER_CONTROL_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002296 hdd_config_t, enableAutomaticTxPowerControl,
2297 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2298 CFG_ENABLE_AUTOMATIC_TX_POWER_CONTROL_DEFAULT,
2299 CFG_ENABLE_AUTOMATIC_TX_POWER_CONTROL_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002300 CFG_ENABLE_AUTOMATIC_TX_POWER_CONTROL_MAX ),
2301
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002302 REG_VARIABLE( CFG_SHORT_GI_40MHZ_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002303 hdd_config_t, ShortGI40MhzEnable,
2304 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2305 CFG_SHORT_GI_40MHZ_DEFAULT,
2306 CFG_SHORT_GI_40MHZ_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002307 CFG_SHORT_GI_40MHZ_MAX ),
2308
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002309 REG_DYNAMIC_VARIABLE( CFG_REPORT_MAX_LINK_SPEED, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002310 hdd_config_t, reportMaxLinkSpeed,
2311 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2312 CFG_REPORT_MAX_LINK_SPEED_DEFAULT,
2313 CFG_REPORT_MAX_LINK_SPEED_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002314 CFG_REPORT_MAX_LINK_SPEED_MAX,
2315 NULL, 0 ),
2316
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002317 REG_DYNAMIC_VARIABLE( CFG_LINK_SPEED_RSSI_HIGH, WLAN_PARAM_SignedInteger,
Jeff Johnson295189b2012-06-20 16:38:30 -07002318 hdd_config_t, linkSpeedRssiHigh,
2319 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2320 CFG_LINK_SPEED_RSSI_HIGH_DEFAULT,
2321 CFG_LINK_SPEED_RSSI_HIGH_MIN,
2322 CFG_LINK_SPEED_RSSI_HIGH_MAX,
2323 NULL, 0 ),
2324
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002325 REG_DYNAMIC_VARIABLE( CFG_LINK_SPEED_RSSI_MID, WLAN_PARAM_SignedInteger,
Madan Mohan Koyyalamudi8df78d52012-11-02 12:30:06 -07002326 hdd_config_t, linkSpeedRssiMid,
2327 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2328 CFG_LINK_SPEED_RSSI_MID_DEFAULT,
2329 CFG_LINK_SPEED_RSSI_MID_MIN,
2330 CFG_LINK_SPEED_RSSI_MID_MAX,
2331 NULL, 0 ),
2332
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002333 REG_DYNAMIC_VARIABLE( CFG_LINK_SPEED_RSSI_LOW, WLAN_PARAM_SignedInteger,
Jeff Johnson295189b2012-06-20 16:38:30 -07002334 hdd_config_t, linkSpeedRssiLow,
2335 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2336 CFG_LINK_SPEED_RSSI_LOW_DEFAULT,
2337 CFG_LINK_SPEED_RSSI_LOW_MIN,
2338 CFG_LINK_SPEED_RSSI_LOW_MAX,
2339 NULL, 0 ),
2340
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08002341#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002342 REG_DYNAMIC_VARIABLE( CFG_ROAM_PREFER_5GHZ, WLAN_PARAM_Integer,
Madan Mohan Koyyalamudid5026072012-11-30 14:56:21 -08002343 hdd_config_t, nRoamPrefer5GHz,
2344 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2345 CFG_ROAM_PREFER_5GHZ_DEFAULT,
2346 CFG_ROAM_PREFER_5GHZ_MIN,
2347 CFG_ROAM_PREFER_5GHZ_MAX,
2348 cbNotifySetRoamPrefer5GHz, 0 ),
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07002349
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002350 REG_DYNAMIC_VARIABLE( CFG_ROAM_INTRA_BAND, WLAN_PARAM_Integer,
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07002351 hdd_config_t, nRoamIntraBand,
2352 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2353 CFG_ROAM_INTRA_BAND_DEFAULT,
2354 CFG_ROAM_INTRA_BAND_MIN,
2355 CFG_ROAM_INTRA_BAND_MAX,
2356 cbNotifySetRoamIntraBand, 0 ),
2357
Varun Reddy Yeturu920df212013-05-22 08:07:23 -07002358 REG_DYNAMIC_VARIABLE( CFG_ROAM_SCAN_N_PROBES, WLAN_PARAM_Integer,
2359 hdd_config_t, nProbes,
2360 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2361 CFG_ROAM_SCAN_N_PROBES_DEFAULT,
2362 CFG_ROAM_SCAN_N_PROBES_MIN,
2363 CFG_ROAM_SCAN_N_PROBES_MAX,
2364 cbNotifySetRoamScanNProbes, 0 ),
2365
2366 REG_DYNAMIC_VARIABLE( CFG_ROAM_SCAN_HOME_AWAY_TIME, WLAN_PARAM_Integer,
2367 hdd_config_t, nRoamScanHomeAwayTime,
2368 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2369 CFG_ROAM_SCAN_HOME_AWAY_TIME_DEFAULT,
2370 CFG_ROAM_SCAN_HOME_AWAY_TIME_MIN,
2371 CFG_ROAM_SCAN_HOME_AWAY_TIME_MAX,
2372 cbNotifySetRoamScanHomeAwayTime, 0 ),
2373
Madan Mohan Koyyalamudid5026072012-11-30 14:56:21 -08002374#endif
2375
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002376 REG_VARIABLE( CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_NAME, WLAN_PARAM_Integer,
Jeff Johnson295189b2012-06-20 16:38:30 -07002377 hdd_config_t, isP2pDeviceAddrAdministrated,
2378 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2379 CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_DEFAULT,
2380 CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MIN,
2381 CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MAX ),
Jeff Johnson295189b2012-06-20 16:38:30 -07002382
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002383 REG_VARIABLE( CFG_ENABLE_MCC_ENABLED_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002384 hdd_config_t, enableMCC,
2385 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2386 CFG_ENABLE_MCC_ENABLED_DEFAULT,
2387 CFG_ENABLE_MCC_ENABLED_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002388 CFG_ENABLE_MCC_ENABLED_MAX ),
2389
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002390 REG_VARIABLE( CFG_ALLOW_MCC_GO_DIFF_BI_NAME, WLAN_PARAM_Integer,
Mohit Khanna7ed53f02012-09-11 17:52:10 -07002391 hdd_config_t, allowMCCGODiffBI,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002392 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2393 CFG_ALLOW_MCC_GO_DIFF_BI_DEFAULT,
2394 CFG_ALLOW_MCC_GO_DIFF_BI_MIN,
2395 CFG_ALLOW_MCC_GO_DIFF_BI_MAX ),
Mohit Khanna7ed53f02012-09-11 17:52:10 -07002396
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002397 REG_VARIABLE( CFG_THERMAL_MIGRATION_ENABLE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002398 hdd_config_t, thermalMitigationEnable,
2399 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2400 CFG_THERMAL_MIGRATION_ENABLE_DEFAULT,
2401 CFG_THERMAL_MIGRATION_ENABLE_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002402 CFG_THERMAL_MIGRATION_ENABLE_MAX ),
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002403
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002404 REG_VARIABLE( CFG_ENABLE_MODULATED_DTIM_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002405 hdd_config_t, enableModulatedDTIM,
2406 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2407 CFG_ENABLE_MODULATED_DTIM_DEFAULT,
2408 CFG_ENABLE_MODULATED_DTIM_MIN,
Jeff Johnson295189b2012-06-20 16:38:30 -07002409 CFG_ENABLE_MODULATED_DTIM_MAX ),
2410
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002411 REG_VARIABLE( CFG_MC_ADDR_LIST_ENABLE_NAME, WLAN_PARAM_Integer,
Jeff Johnsond13512a2012-07-17 11:42:19 -07002412 hdd_config_t, fEnableMCAddrList,
2413 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2414 CFG_MC_ADDR_LIST_ENABLE_DEFAULT,
2415 CFG_MC_ADDR_LIST_ENABLE_MIN,
2416 CFG_MC_ADDR_LIST_ENABLE_MAX ),
2417
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002418#ifdef WLAN_FEATURE_11AC
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002419 REG_VARIABLE( CFG_VHT_CHANNEL_WIDTH, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002420 hdd_config_t, vhtChannelWidth,
2421 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
2422 CFG_VHT_CHANNEL_WIDTH_DEFAULT,
2423 CFG_VHT_CHANNEL_WIDTH_MIN,
Jeff Johnsone7245742012-09-05 17:12:55 -07002424 CFG_VHT_CHANNEL_WIDTH_MAX),
2425
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002426 REG_VARIABLE( CFG_VHT_ENABLE_RX_MCS_8_9, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002427 hdd_config_t, vhtRxMCS,
2428 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
2429 CFG_VHT_ENABLE_RX_MCS_8_9_DEFAULT,
2430 CFG_VHT_ENABLE_RX_MCS_8_9_MIN,
Jeff Johnsone7245742012-09-05 17:12:55 -07002431 CFG_VHT_ENABLE_RX_MCS_8_9_MAX),
2432
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002433 REG_VARIABLE( CFG_VHT_ENABLE_TX_MCS_8_9, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002434 hdd_config_t, vhtTxMCS,
2435 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
2436 CFG_VHT_ENABLE_TX_MCS_8_9_DEFAULT,
2437 CFG_VHT_ENABLE_TX_MCS_8_9_MIN,
Jeff Johnsone7245742012-09-05 17:12:55 -07002438 CFG_VHT_ENABLE_TX_MCS_8_9_MAX),
Abhishek Singhaa63bf22014-10-30 17:09:45 +05302439
2440 REG_VARIABLE( CFG_VHT_AMPDU_LEN_EXP_NAME, WLAN_PARAM_Integer,
2441 hdd_config_t, gVhtMaxAmpduLenExp,
2442 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2443 CFG_VHT_AMPDU_LEN_EXP_DEFAULT,
2444 CFG_VHT_AMPDU_LEN_EXP_MIN,
2445 CFG_VHT_AMPDU_LEN_EXP_MAX ),
Jeff Johnsone7245742012-09-05 17:12:55 -07002446#endif
2447
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002448 REG_VARIABLE( CFG_ENABLE_FIRST_SCAN_2G_ONLY_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002449 hdd_config_t, enableFirstScan2GOnly,
2450 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2451 CFG_ENABLE_FIRST_SCAN_2G_ONLY_DEFAULT,
2452 CFG_ENABLE_FIRST_SCAN_2G_ONLY_MIN,
Jeff Johnsone7245742012-09-05 17:12:55 -07002453 CFG_ENABLE_FIRST_SCAN_2G_ONLY_MAX ),
2454
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002455 REG_VARIABLE( CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002456 hdd_config_t, skipDfsChnlInP2pSearch,
2457 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2458 CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_DEFAULT,
2459 CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_MIN,
Jeff Johnsone7245742012-09-05 17:12:55 -07002460 CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_MAX ),
2461
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002462 REG_VARIABLE( CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002463 hdd_config_t, ignoreDynamicDtimInP2pMode,
2464 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2465 CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_DEFAULT,
2466 CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_MIN,
Jeff Johnsone7245742012-09-05 17:12:55 -07002467 CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_MAX ),
2468
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002469 REG_VARIABLE( CFG_NUM_BUFF_ADVERT_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002470 hdd_config_t,numBuffAdvert ,
2471 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
2472 CFG_NUM_BUFF_ADVERT_DEFAULT,
2473 CFG_NUM_BUFF_ADVERT_MIN,
Madan Mohan Koyyalamudidd11eaf2012-11-02 16:04:21 -07002474 CFG_NUM_BUFF_ADVERT_MAX ),
Madan Mohan Koyyalamudi3f65e312012-11-06 15:31:12 -08002475
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002476 REG_VARIABLE( CFG_MCC_CONFIG_PARAM_NAME, WLAN_PARAM_Integer,
Madan Mohan Koyyalamudid5f04ca2012-11-06 15:51:26 -08002477 hdd_config_t, configMccParam,
2478 VAR_FLAGS_OPTIONAL,
2479 CFG_MCC_CONFIG_PARAM_DEFAULT,
2480 CFG_MCC_CONFIG_PARAM_MIN,
2481 CFG_MCC_CONFIG_PARAM_MAX ),
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002482 REG_VARIABLE( CFG_ENABLE_RX_STBC, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002483 hdd_config_t, enableRxSTBC,
2484 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2485 CFG_ENABLE_RX_STBC_DEFAULT,
2486 CFG_ENABLE_RX_STBC_MIN,
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05302487 CFG_ENABLE_RX_STBC_MAX ),
Mohit Khanna698ba2a2012-12-04 15:08:18 -08002488#ifdef FEATURE_WLAN_TDLS
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002489 REG_VARIABLE( CFG_TDLS_SUPPORT_ENABLE, WLAN_PARAM_Integer,
Mohit Khanna698ba2a2012-12-04 15:08:18 -08002490 hdd_config_t, fEnableTDLSSupport,
2491 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2492 CFG_TDLS_SUPPORT_ENABLE_DEFAULT,
2493 CFG_TDLS_SUPPORT_ENABLE_MIN,
2494 CFG_TDLS_SUPPORT_ENABLE_MAX ),
Hoonki Leebf870f32013-01-19 15:53:30 +05302495
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002496 REG_VARIABLE( CFG_TDLS_IMPLICIT_TRIGGER, WLAN_PARAM_Integer,
Hoonki Leebf870f32013-01-19 15:53:30 +05302497 hdd_config_t, fEnableTDLSImplicitTrigger,
2498 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2499 CFG_TDLS_IMPLICIT_TRIGGER_DEFAULT,
2500 CFG_TDLS_IMPLICIT_TRIGGER_MIN,
2501 CFG_TDLS_IMPLICIT_TRIGGER_MAX ),
2502
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002503 REG_VARIABLE( CFG_TDLS_TX_STATS_PERIOD, WLAN_PARAM_Integer,
Hoonki Leebf870f32013-01-19 15:53:30 +05302504 hdd_config_t, fTDLSTxStatsPeriod,
2505 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2506 CFG_TDLS_TX_STATS_PERIOD_DEFAULT,
2507 CFG_TDLS_TX_STATS_PERIOD_MIN,
2508 CFG_TDLS_TX_STATS_PERIOD_MAX ),
2509
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002510 REG_VARIABLE( CFG_TDLS_TX_PACKET_THRESHOLD, WLAN_PARAM_Integer,
Hoonki Leebf870f32013-01-19 15:53:30 +05302511 hdd_config_t, fTDLSTxPacketThreshold,
2512 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2513 CFG_TDLS_TX_PACKET_THRESHOLD_DEFAULT,
2514 CFG_TDLS_TX_PACKET_THRESHOLD_MIN,
2515 CFG_TDLS_TX_PACKET_THRESHOLD_MAX ),
2516
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002517 REG_VARIABLE( CFG_TDLS_DISCOVERY_PERIOD, WLAN_PARAM_Integer,
Hoonki Leebf870f32013-01-19 15:53:30 +05302518 hdd_config_t, fTDLSDiscoveryPeriod,
2519 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2520 CFG_TDLS_DISCOVERY_PERIOD_DEFAULT,
2521 CFG_TDLS_DISCOVERY_PERIOD_MIN,
2522 CFG_TDLS_DISCOVERY_PERIOD_MAX ),
2523
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002524 REG_VARIABLE( CFG_TDLS_MAX_DISCOVERY_ATTEMPT, WLAN_PARAM_Integer,
Hoonki Leebf870f32013-01-19 15:53:30 +05302525 hdd_config_t, fTDLSMaxDiscoveryAttempt,
2526 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2527 CFG_TDLS_MAX_DISCOVERY_ATTEMPT_DEFAULT,
2528 CFG_TDLS_MAX_DISCOVERY_ATTEMPT_MIN,
2529 CFG_TDLS_MAX_DISCOVERY_ATTEMPT_MAX ),
2530
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002531 REG_VARIABLE( CFG_TDLS_IDLE_TIMEOUT, WLAN_PARAM_Integer,
Chilam Ng01120412013-02-19 18:32:21 -08002532 hdd_config_t, fTDLSIdleTimeout,
Hoonki Leebf870f32013-01-19 15:53:30 +05302533 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
Chilam Ng01120412013-02-19 18:32:21 -08002534 CFG_TDLS_IDLE_TIMEOUT_DEFAULT,
2535 CFG_TDLS_IDLE_TIMEOUT_MIN,
2536 CFG_TDLS_IDLE_TIMEOUT_MAX ),
2537
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002538 REG_VARIABLE( CFG_TDLS_IDLE_PACKET_THRESHOLD, WLAN_PARAM_Integer,
Chilam Ng01120412013-02-19 18:32:21 -08002539 hdd_config_t, fTDLSIdlePacketThreshold,
2540 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2541 CFG_TDLS_IDLE_PACKET_THRESHOLD_DEFAULT,
2542 CFG_TDLS_IDLE_PACKET_THRESHOLD_MIN,
2543 CFG_TDLS_IDLE_PACKET_THRESHOLD_MAX ),
Hoonki Leebf870f32013-01-19 15:53:30 +05302544
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002545 REG_VARIABLE( CFG_TDLS_RSSI_HYSTERESIS, WLAN_PARAM_Integer,
Chilam Ng01120412013-02-19 18:32:21 -08002546 hdd_config_t, fTDLSRSSIHysteresis,
Hoonki Leebf870f32013-01-19 15:53:30 +05302547 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2548 CFG_TDLS_RSSI_HYSTERESIS_DEFAULT,
2549 CFG_TDLS_RSSI_HYSTERESIS_MIN,
2550 CFG_TDLS_RSSI_HYSTERESIS_MAX ),
Chilam Ng01120412013-02-19 18:32:21 -08002551
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002552 REG_VARIABLE( CFG_TDLS_RSSI_TRIGGER_THRESHOLD, WLAN_PARAM_SignedInteger,
Chilam Ng01120412013-02-19 18:32:21 -08002553 hdd_config_t, fTDLSRSSITriggerThreshold,
2554 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2555 CFG_TDLS_RSSI_TRIGGER_THRESHOLD_DEFAULT,
2556 CFG_TDLS_RSSI_TRIGGER_THRESHOLD_MIN,
2557 CFG_TDLS_RSSI_TRIGGER_THRESHOLD_MAX ),
2558
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002559 REG_VARIABLE( CFG_TDLS_RSSI_TEARDOWN_THRESHOLD, WLAN_PARAM_SignedInteger,
Chilam Ng01120412013-02-19 18:32:21 -08002560 hdd_config_t, fTDLSRSSITeardownThreshold,
2561 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2562 CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_DEFAULT,
2563 CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_MIN,
2564 CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_MAX ),
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05302565
2566REG_VARIABLE( CFG_TDLS_QOS_WMM_UAPSD_MASK_NAME , WLAN_PARAM_HexInteger,
2567 hdd_config_t, fTDLSUapsdMask,
2568 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2569 CFG_TDLS_QOS_WMM_UAPSD_MASK_DEFAULT,
2570 CFG_TDLS_QOS_WMM_UAPSD_MASK_MIN,
2571 CFG_TDLS_QOS_WMM_UAPSD_MASK_MAX ),
2572
2573REG_VARIABLE( CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE, WLAN_PARAM_Integer,
2574 hdd_config_t, fEnableTDLSBufferSta,
2575 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2576 CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_DEFAULT,
2577 CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_MIN,
2578 CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_MAX ),
2579
Naresh Jayaramf73f3762014-02-04 16:13:20 +05302580REG_VARIABLE( CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE, WLAN_PARAM_Integer,
2581 hdd_config_t, fEnableTDLSOffChannel,
2582 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2583 CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_DEFAULT,
2584 CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_MIN,
2585 CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_MAX ),
2586
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05302587REG_VARIABLE( CFG_TDLS_PUAPSD_INACTIVITY_TIME, WLAN_PARAM_Integer,
2588 hdd_config_t, fTDLSPuapsdInactivityTimer,
2589 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2590 CFG_TDLS_PUAPSD_INACTIVITY_TIME_DEFAULT,
2591 CFG_TDLS_PUAPSD_INACTIVITY_TIME_MIN,
2592 CFG_TDLS_PUAPSD_INACTIVITY_TIME_MAX ),
2593
2594REG_VARIABLE( CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD, WLAN_PARAM_Integer,
2595 hdd_config_t, fTDLSRxFrameThreshold,
2596 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2597 CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_DEFAULT,
2598 CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_MIN,
2599 CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_MAX ),
Sunil Dutt41de4e22013-11-14 18:09:02 +05302600
2601REG_VARIABLE( CFG_TDLS_EXTERNAL_CONTROL, WLAN_PARAM_Integer,
2602 hdd_config_t, fTDLSExternalControl,
2603 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2604 CFG_TDLS_EXTERNAL_CONTROL_DEFAULT,
2605 CFG_TDLS_EXTERNAL_CONTROL_MIN,
2606 CFG_TDLS_EXTERNAL_CONTROL_MAX ),
Pradeep Reddy POTTETIa9c80d52014-05-09 18:05:29 +05302607
2608REG_VARIABLE( CFG_TDLS_WMM_MODE_ENABLE, WLAN_PARAM_Integer,
2609 hdd_config_t, fEnableTDLSWmmMode,
2610 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2611 CFG_TDLS_WMM_MODE_ENABLE_DEFAULT,
2612 CFG_TDLS_WMM_MODE_ENABLE_MIN,
2613 CFG_TDLS_WMM_MODE_ENABLE_MAX ),
Pradeep Reddy POTTETIedaeb5f2014-05-22 23:34:41 +05302614
2615REG_VARIABLE( CFG_TDLS_SCAN_COEX_SUPPORT_ENABLE, WLAN_PARAM_Integer,
2616 hdd_config_t, fEnableTDLSScanCoexSupport,
2617 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2618 CFG_TDLS_SCAN_COEX_SUPPORT_ENABLE_DEFAULT,
2619 CFG_TDLS_SCAN_COEX_SUPPORT_ENABLE_MIN,
2620 CFG_TDLS_SCAN_COEX_SUPPORT_ENABLE_MAX ),
Agarwal Ashishef54a182014-12-16 15:07:31 +05302621
2622REG_VARIABLE( CFG_TDLS_SCAN_ENABLE, WLAN_PARAM_Integer,
2623 hdd_config_t, fEnableTDLSScan,
2624 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2625 CFG_TDLS_SCAN_ENABLE_DEFAULT,
2626 CFG_TDLS_SCAN_ENABLE_MIN,
2627 CFG_TDLS_SCAN_ENABLE_MAX ),
Mohit Khanna698ba2a2012-12-04 15:08:18 -08002628#endif
Madan Mohan Koyyalamudi0d40e662012-12-07 14:24:14 -08002629
Dino Mycledf0a5d92014-07-04 09:41:55 +05302630#ifdef WLAN_FEATURE_LINK_LAYER_STATS
2631REG_VARIABLE( CFG_LINK_LAYER_STATS_ENABLE, WLAN_PARAM_Integer,
2632 hdd_config_t, fEnableLLStats,
2633 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2634 CFG_LINK_LAYER_STATS_ENABLE_DEFAULT,
2635 CFG_LINK_LAYER_STATS_ENABLE_MIN,
2636 CFG_LINK_LAYER_STATS_ENABLE_MAX ),
2637#endif
Dino Myclee8843b32014-07-04 14:21:45 +05302638#ifdef WLAN_FEATURE_EXTSCAN
2639REG_VARIABLE( CFG_EXTSCAN_ENABLE, WLAN_PARAM_Integer,
2640 hdd_config_t, fEnableEXTScan,
2641 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2642 CFG_EXTSCAN_ENABLE_DEFAULT,
2643 CFG_EXTSCAN_ENABLE_MIN,
2644 CFG_EXTSCAN_ENABLE_MAX ),
2645#endif
Dino Mycledf0a5d92014-07-04 09:41:55 +05302646
Gopichand Nakkala976e3252013-01-03 15:45:56 -08002647#ifdef WLAN_SOFTAP_VSTA_FEATURE
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002648 REG_VARIABLE( CFG_VSTA_SUPPORT_ENABLE, WLAN_PARAM_Integer,
Gopichand Nakkala976e3252013-01-03 15:45:56 -08002649 hdd_config_t, fEnableVSTASupport,
2650 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2651 CFG_VSTA_SUPPORT_ENABLE_DEFAULT,
2652 CFG_VSTA_SUPPORT_ENABLE_MIN,
2653 CFG_VSTA_SUPPORT_ENABLE_MAX ),
2654#endif
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002655 REG_VARIABLE( CFG_ENABLE_LPWR_IMG_TRANSITION_NAME, WLAN_PARAM_Integer,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08002656 hdd_config_t, enableLpwrImgTransition,
2657 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2658 CFG_ENABLE_LPWR_IMG_TRANSITION_DEFAULT,
2659 CFG_ENABLE_LPWR_IMG_TRANSITION_MIN,
Madan Mohan Koyyalamudi0d40e662012-12-07 14:24:14 -08002660 CFG_ENABLE_LPWR_IMG_TRANSITION_MAX ),
2661
AnjaneeDevi Kapparapu3f7edc52016-10-19 15:16:09 +05302662 REG_VARIABLE( CFG_ENABLE_CONSECUTIVE_BMISS_NAME, WLAN_PARAM_Integer,
2663 hdd_config_t, enable_conc_bmiss,
2664 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2665 CFG_ENABLE_CONSECUTIVE_BMISS_DEFAULT,
2666 CFG_ENABLE_CONSECUTIVE_BMISS_MIN,
2667 CFG_ENABLE_CONSECUTIVE_BMISS_MAX ),
2668
2669 REG_VARIABLE( CFG_ENABLE_UNITS_BEACON_WAIT_NAME, WLAN_PARAM_Integer,
2670 hdd_config_t, enable_units_bwait,
2671 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2672 CFG_ENABLE_UNITS_BEACON_WAIT_DEFAULT,
2673 CFG_ENABLE_UNITS_BEACON_WAIT_MIN,
2674 CFG_ENABLE_UNITS_BEACON_WAIT_MAX ),
2675
2676
Yathish9f22e662012-12-10 14:21:35 -08002677#ifdef WLAN_ACTIVEMODE_OFFLOAD_FEATURE
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002678 REG_VARIABLE( CFG_ACTIVEMODE_OFFLOAD_ENABLE, WLAN_PARAM_Integer,
Yathish9f22e662012-12-10 14:21:35 -08002679 hdd_config_t, fEnableActiveModeOffload,
2680 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2681 CFG_ACTIVEMODE_OFFLOAD_ENABLE_DEFAULT,
2682 CFG_ACTIVEMODE_OFFLOAD_ENABLE_MIN,
2683 CFG_ACTIVEMODE_OFFLOAD_ENABLE_MAX ),
2684#endif
Sandeep Puligilla2b6dc632012-12-17 14:44:16 -08002685
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002686 REG_VARIABLE( CFG_SCAN_AGING_PARAM_NAME, WLAN_PARAM_Integer,
Sandeep Puligilla2b6dc632012-12-17 14:44:16 -08002687 hdd_config_t, scanAgingTimeout,
2688 VAR_FLAGS_OPTIONAL,
2689 CFG_SCAN_AGING_PARAM_DEFAULT,
2690 CFG_SCAN_AGING_PARAM_MIN,
2691 CFG_SCAN_AGING_PARAM_MAX ),
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08002692
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002693 REG_VARIABLE( CFG_TX_LDPC_ENABLE_FEATURE, WLAN_PARAM_Integer,
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08002694 hdd_config_t, enableTxLdpc,
2695 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2696 CFG_TX_LDPC_ENABLE_FEATURE_DEFAULT,
2697 CFG_TX_LDPC_ENABLE_FEATURE_MIN,
2698 CFG_TX_LDPC_ENABLE_FEATURE_MAX ),
2699
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002700 REG_VARIABLE( CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_NAME, WLAN_PARAM_Integer,
Madan Mohan Koyyalamudi69b34182013-01-16 08:51:40 +05302701 hdd_config_t, enableMCCAdaptiveScheduler,
2702 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2703 CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_DEFAULT,
2704 CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_MIN,
2705 CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_MAX ),
2706
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002707 REG_VARIABLE( CFG_ANDRIOD_POWER_SAVE_NAME, WLAN_PARAM_Integer,
Madan Mohan Koyyalamudi69b34182013-01-16 08:51:40 +05302708 hdd_config_t, isAndroidPsEn,
2709 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2710 CFG_ANDRIOD_POWER_SAVE_DEFAULT,
2711 CFG_ANDRIOD_POWER_SAVE_MIN,
2712 CFG_ANDRIOD_POWER_SAVE_MAX),
2713
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002714 REG_VARIABLE( CFG_IBSS_ADHOC_CHANNEL_5GHZ_NAME, WLAN_PARAM_Integer,
Shailender Karmuchia734f332013-04-19 14:02:48 -07002715 hdd_config_t, AdHocChannel5G,
2716 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2717 CFG_IBSS_ADHOC_CHANNEL_5GHZ_DEFAULT,
2718 CFG_IBSS_ADHOC_CHANNEL_5GHZ_MIN,
2719 CFG_IBSS_ADHOC_CHANNEL_5GHZ_MAX),
2720
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002721 REG_VARIABLE( CFG_IBSS_ADHOC_CHANNEL_24GHZ_NAME, WLAN_PARAM_Integer,
Shailender Karmuchia734f332013-04-19 14:02:48 -07002722 hdd_config_t, AdHocChannel24G,
2723 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2724 CFG_IBSS_ADHOC_CHANNEL_24GHZ_DEFAULT,
2725 CFG_IBSS_ADHOC_CHANNEL_24GHZ_MIN,
2726 CFG_IBSS_ADHOC_CHANNEL_24GHZ_MAX),
2727
2728
Shailender Karmuchi08f87c22013-01-17 12:51:24 -08002729#ifdef WLAN_FEATURE_11AC
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002730 REG_VARIABLE( CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE, WLAN_PARAM_Integer,
Shailender Karmuchi08f87c22013-01-17 12:51:24 -08002731 hdd_config_t, enableTxBF,
2732 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2733 CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_DEFAULT,
2734 CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_MIN,
2735 CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_MAX ),
Shailender Karmuchicc3fe442013-02-16 18:18:33 -08002736
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002737 REG_VARIABLE( CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED, WLAN_PARAM_Integer,
Shailender Karmuchicc3fe442013-02-16 18:18:33 -08002738 hdd_config_t, txBFCsnValue,
2739 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2740 CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_DEFAULT,
2741 CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_MIN,
2742 CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_MAX ),
Abhishek Singh6d5d29c2014-07-03 14:25:22 +05302743 REG_VARIABLE( CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE, WLAN_PARAM_Integer,
2744 hdd_config_t, enableMuBformee,
2745 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2746 CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_DEFAULT,
2747 CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_MIN,
2748 CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_MAX ),
Shailender Karmuchicc3fe442013-02-16 18:18:33 -08002749
Shailender Karmuchi08f87c22013-01-17 12:51:24 -08002750#endif
Madan Mohan Koyylamudi64267f72013-02-05 14:07:08 +05302751
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002752 REG_VARIABLE( CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_NAME, WLAN_PARAM_Integer,
Madan Mohan Koyylamudi64267f72013-02-05 14:07:08 +05302753 hdd_config_t, sapAllowAllChannel,
2754 VAR_FLAGS_OPTIONAL,
2755 CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_DEFAULT,
2756 CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_MIN,
2757 CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_MAX ),
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002758
Leela V Kiran Kumar Reddy Chiralab1f7d342013-02-11 00:27:02 -08002759#ifdef WLAN_FEATURE_11AC
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002760 REG_VARIABLE( CFG_DISABLE_LDPC_WITH_TXBF_AP, WLAN_PARAM_Integer,
Leela V Kiran Kumar Reddy Chiralab1f7d342013-02-11 00:27:02 -08002761 hdd_config_t, disableLDPCWithTxbfAP,
2762 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2763 CFG_DISABLE_LDPC_WITH_TXBF_AP_DEFAULT,
2764 CFG_DISABLE_LDPC_WITH_TXBF_AP_MIN,
2765 CFG_DISABLE_LDPC_WITH_TXBF_AP_MAX ),
2766#endif
Tushnim Bhattacharyya9cdf6082013-04-21 16:33:30 -07002767
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002768 REG_VARIABLE_STRING( CFG_LIST_OF_NON_DFS_COUNTRY_CODE, WLAN_PARAM_String,
Tushnim Bhattacharyya9cdf6082013-04-21 16:33:30 -07002769 hdd_config_t, listOfNonDfsCountryCode,
2770 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2771 (void *)CFG_LIST_OF_NON_DFS_COUNTRY_CODE_DEFAULT),
2772
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -07002773 REG_DYNAMIC_VARIABLE( CFG_ENABLE_SSR, WLAN_PARAM_Integer,
2774 hdd_config_t, enableSSR,
2775 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2776 CFG_ENABLE_SSR_DEFAULT,
2777 CFG_ENABLE_SSR_MIN,
2778 CFG_ENABLE_SSR_MAX,
2779 cbNotifySetEnableSSR, 0 ),
Gopichand Nakkaladacbcb52013-04-18 16:41:54 +05302780
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002781 REG_VARIABLE_STRING( CFG_LIST_OF_NON_11AC_COUNTRY_CODE, WLAN_PARAM_String,
Gopichand Nakkaladacbcb52013-04-18 16:41:54 +05302782 hdd_config_t, listOfNon11acCountryCode,
2783 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2784 (void *)CFG_LIST_OF_NON_11AC_COUNTRY_CODE_DEFAULT),
2785
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002786 REG_VARIABLE(CFG_MAX_MEDIUM_TIME, WLAN_PARAM_Integer,
Gopichand Nakkala42bc89e2013-05-27 12:49:09 +05302787 hdd_config_t, cfgMaxMediumTime,
2788 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2789 CFG_MAX_MEDIUM_TIME_STADEFAULT,
2790 CFG_MAX_MEDIUM_TIME_STAMIN,
2791 CFG_MAX_MEDIUM_TIME_STAMAX ),
2792
Leo Chang64d68bc2013-06-04 15:40:52 -07002793 REG_VARIABLE( CFG_ENABLE_TRAFFIC_MONITOR, WLAN_PARAM_Integer,
2794 hdd_config_t, enableTrafficMonitor,
2795 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2796 CFG_ENABLE_TRAFFIC_MONITOR_DEFAULT,
2797 CFG_ENABLE_TRAFFIC_MONITOR_MIN,
2798 CFG_ENABLE_TRAFFIC_MONITOR_MAX),
2799
2800 REG_VARIABLE( CFG_TRAFFIC_IDLE_TIMEOUT, WLAN_PARAM_Integer,
2801 hdd_config_t, trafficIdleTimeout,
2802 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2803 CFG_TRAFFIC_IDLE_TIMEOUT_DEFAULT,
2804 CFG_TRAFFIC_IDLE_TIMEOUT_MIN,
2805 CFG_TRAFFIC_IDLE_TIMEOUT_MAX),
Ravi Joshi83bfaa12013-05-28 22:12:08 -07002806
2807#ifdef WLAN_FEATURE_11AC
2808 REG_VARIABLE( CFG_ENABLE_VHT_FOR_24GHZ_NAME, WLAN_PARAM_Integer,
2809 hdd_config_t, enableVhtFor24GHzBand,
2810 VAR_FLAGS_OPTIONAL,
2811 CFG_ENABLE_VHT_FOR_24GHZ_DEFAULT,
2812 CFG_ENABLE_VHT_FOR_24GHZ_MIN,
2813 CFG_ENABLE_VHT_FOR_24GHZ_MAX),
2814#endif
Gopichand Nakkala154bda22013-06-11 17:41:22 +05302815
2816 REG_VARIABLE( CFG_SCAN_OFFLOAD_NAME, WLAN_PARAM_Integer,
2817 hdd_config_t, fScanOffload,
2818 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2819 CFG_SCAN_OFFLOAD_DEFAULT,
2820 CFG_SCAN_OFFLOAD_DISABLE,
2821 CFG_SCAN_OFFLOAD_ENABLE ),
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07002822
2823#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
2824 REG_DYNAMIC_VARIABLE( CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY, WLAN_PARAM_Integer,
2825 hdd_config_t, bFastRoamInConIniFeatureEnabled,
2826 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2827 CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_DEFAULT,
2828 CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_MIN,
2829 CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_MAX,
2830 cbNotifySetEnableFastRoamInConcurrency, 0 ),
Kapil Gupta00e71f92016-06-26 13:31:37 +05302831
2832 REG_VARIABLE(CFG_PER_ROAM_SCAN_OFFLOAD_ENABLED, WLAN_PARAM_Integer,
2833 hdd_config_t, isPERRoamEnabled,
2834 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2835 CFG_PER_ROAM_SCAN_OFFLOAD_ENABLED_DEFAULT,
2836 CFG_PER_ROAM_SCAN_OFFLOAD_ENABLED_MIN,
2837 CFG_PER_ROAM_SCAN_OFFLOAD_ENABLED_MAX),
2838
2839 REG_VARIABLE(CFG_PER_ROAM_SCAN_RATE_UP_THRESHOLD, WLAN_PARAM_Integer,
2840 hdd_config_t, rateUpThreshold,
2841 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2842 CFG_PER_ROAM_SCAN_RATE_UP_THRESHOLD_DEFAULT,
2843 CFG_PER_ROAM_SCAN_RATE_UP_THRESHOLD_MIN,
2844 CFG_PER_ROAM_SCAN_RATE_UP_THRESHOLD_MAX),
2845
2846 REG_VARIABLE(CFG_PER_ROAM_SCAN_RATE_DOWN_THRESHOLD, WLAN_PARAM_Integer,
2847 hdd_config_t, rateDownThreshold,
2848 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2849 CFG_PER_ROAM_SCAN_RATE_DOWN_THRESHOLD_DEFAULT,
2850 CFG_PER_ROAM_SCAN_RATE_DOWN_THRESHOLD_MIN,
2851 CFG_PER_ROAM_SCAN_RATE_DOWN_THRESHOLD_MAX),
2852
2853 REG_VARIABLE(CFG_PER_ROAM_SCAN_WAIT_TIME, WLAN_PARAM_Integer,
2854 hdd_config_t, waitPeriodForNextPERScan,
2855 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2856 CFG_PER_ROAM_SCAN_WAIT_TIME_DEFAULT,
2857 CFG_PER_ROAM_SCAN_WAIT_TIME_MIN,
2858 CFG_PER_ROAM_SCAN_WAIT_TIME_MAX),
2859
2860 REG_VARIABLE(CFG_PER_ROAM_SCAN_PER_TIME_THRESHOLD, WLAN_PARAM_Integer,
2861 hdd_config_t, PERtimerThreshold,
2862 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2863 CFG_PER_ROAM_SCAN_PER_TIME_THRESHOLD_DEFAULT,
2864 CFG_PER_ROAM_SCAN_PER_TIME_THRESHOLD_MIN,
2865 CFG_PER_ROAM_SCAN_PER_TIME_THRESHOLD_MAX),
2866
2867 REG_VARIABLE(CFG_PER_ROAM_SCAN_RX_MONITOR_ENABLED, WLAN_PARAM_Integer,
2868 hdd_config_t, isPERRoamRxPathEnabled,
2869 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2870 CFG_PER_ROAM_SCAN_RX_MONITOR_ENABLED_DEFAULT,
2871 CFG_PER_ROAM_SCAN_RX_MONITOR_ENABLED_MIN,
2872 CFG_PER_ROAM_SCAN_RX_MONITOR_ENABLED_MAX),
2873
2874 REG_VARIABLE(CFG_PER_ROAM_SCAN_MIN_PERCENTAGE, WLAN_PARAM_Integer,
2875 hdd_config_t, PERroamTriggerPercent,
2876 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2877 CFG_PER_ROAM_SCAN_MIN_PERCENTAGE_DEFAULT,
2878 CFG_PER_ROAM_SCAN_MIN_PERCENTAGE_MIN,
2879 CFG_PER_ROAM_SCAN_MIN_PERCENTAGE_MAX),
2880
2881 REG_VARIABLE(CFG_PER_ROAM_SCAN_RX_MIN_PACKETS, WLAN_PARAM_Integer,
2882 hdd_config_t, PERroamRxPktsThreshold,
2883 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2884 CFG_PER_ROAM_SCAN_RX_MIN_PACKETS_DEFAULT,
2885 CFG_PER_ROAM_SCAN_RX_MIN_PACKETS_MIN,
2886 CFG_PER_ROAM_SCAN_RX_MIN_PACKETS_MAX),
2887
2888 REG_VARIABLE(CFG_PER_ROAM_SCAN_CCA_ENABLED, WLAN_PARAM_Integer,
2889 hdd_config_t, isPERRoamCCAEnabled,
2890 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2891 CFG_PER_ROAM_SCAN_CCA_ENABLED_DEFAULT,
2892 CFG_PER_ROAM_SCAN_CCA_ENABLED_MIN,
2893 CFG_PER_ROAM_SCAN_CCA_ENABLED_MAX),
Kapil Gupta89a8a0e2016-08-25 14:11:17 +05302894
2895 REG_VARIABLE(CFG_PER_ROAM_FULL_SCAN_RSSI_THRESHOLD, WLAN_PARAM_SignedInteger,
2896 hdd_config_t, PERRoamFullScanThreshold,
2897 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2898 CFG_PER_ROAM_FULL_SCAN_RSSI_THRESHOLD_DEFAULT,
2899 CFG_PER_ROAM_FULL_SCAN_RSSI_THRESHOLD_MIN,
2900 CFG_PER_ROAM_FULL_SCAN_RSSI_THRESHOLD_MAX),
Kapil Gupta192d9d42016-11-25 16:24:13 +05302901
2902 REG_VARIABLE(CFG_PER_ROAM_BAD_RSSI, WLAN_PARAM_SignedInteger,
2903 hdd_config_t, PERMinRssiThresholdForRoam,
2904 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2905 CFG_PER_ROAM_BAD_RSSI_DEFAULT,
2906 CFG_PER_ROAM_BAD_RSSI_MIN,
2907 CFG_PER_ROAM_BAD_RSSI_MAX),
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07002908#endif
2909
Padma, Santhosh Kumar67f479b2016-12-28 15:43:42 +05302910#ifdef WLAN_FEATURE_LFR_MBB
2911 REG_VARIABLE(CFG_ENABLE_LFR_MBB, WLAN_PARAM_Integer,
2912 hdd_config_t, enable_lfr_mbb,
2913 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2914 CFG_ENABLE_LFR_MBB_DEFAULT,
2915 CFG_ENABLE_LFR_MBB_MIN,
2916 CFG_ENABLE_LFR_MBB_MAX ),
2917#endif
2918
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07002919 REG_VARIABLE( CFG_ENABLE_ADAPT_RX_DRAIN_NAME, WLAN_PARAM_Integer,
2920 hdd_config_t, fEnableAdaptRxDrain,
2921 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK ,
2922 CFG_ENABLE_ADAPT_RX_DRAIN_DEFAULT,
2923 CFG_ENABLE_ADAPT_RX_DRAIN_MIN,
2924 CFG_ENABLE_ADAPT_RX_DRAIN_MAX),
2925
Sudhir Sattayappa Kohalli37620692013-08-05 14:02:26 -07002926 REG_VARIABLE( CFG_DYNAMIC_SPLIT_SCAN_NAME, WLAN_PARAM_Integer,
2927 hdd_config_t, dynSplitscan,
2928 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2929 CFG_DYNAMIC_SPLIT_SCAN_DEFAULT,
2930 CFG_DYNAMIC_SPLIT_SCAN_MIN,
2931 CFG_DYNAMIC_SPLIT_SCAN_MAX ),
2932
2933 REG_VARIABLE( CFG_SPLIT_SCAN_TRAFFIC_MONITOR_THRSHLD_NAME, WLAN_PARAM_Integer,
2934 hdd_config_t, txRxThresholdForSplitScan,
2935 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2936 CFG_SPLIT_SCAN_TRAFFIC_MONITOR_THRSHLD_DEFAULT,
2937 CFG_SPLIT_SCAN_TRAFFIC_MONITOR_THRSHLD_MIN,
2938 CFG_SPLIT_SCAN_TRAFFIC_MONITOR_THRSHLD_MAX ),
2939
2940 REG_VARIABLE( CFG_SPLIT_SCAN_TRAFFIC_MONITOR_TIMER_NAME, WLAN_PARAM_Integer,
2941 hdd_config_t, trafficMntrTmrForSplitScan,
2942 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2943 CFG_SPLIT_SCAN_TRAFFIC_MONITOR_TIMER_DEFAULT,
2944 CFG_SPLIT_SCAN_TRAFFIC_MONITOR_TIMER_MIN,
2945 CFG_SPLIT_SCAN_TRAFFIC_MONITOR_TIMER_MAX ),
2946
Yue Ma0fd23872013-08-01 15:56:47 -07002947 REG_VARIABLE( CFG_FLEX_CONNECT_POWER_FACTOR_NAME, WLAN_PARAM_Integer,
2948 hdd_config_t, flexConnectPowerFactor,
2949 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_MINMAX,
2950 CFG_FLEX_CONNECT_POWER_FACTOR_DEFAULT,
2951 CFG_FLEX_CONNECT_POWER_FACTOR_MIN,
2952 CFG_FLEX_CONNECT_POWER_FACTOR_MAX ),
2953
Ravi Joshid2ca7c42013-07-23 08:37:49 -07002954 REG_VARIABLE( CFG_ENABLE_HEART_BEAT_OFFLOAD, WLAN_PARAM_Integer,
2955 hdd_config_t, enableIbssHeartBeatOffload,
2956 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2957 CFG_ENABLE_HEART_BEAT_OFFLOAD_DEFAULT,
2958 CFG_ENABLE_HEART_BEAT_OFFLOAD_MIN,
2959 CFG_ENABLE_HEART_BEAT_OFFLOAD_MAX),
2960
Madan Mohan Koyyalamudica454572013-08-07 19:57:03 +05302961 REG_VARIABLE( CFG_ANTENNA_DIVERSITY_PARAM_NAME, WLAN_PARAM_Integer,
2962 hdd_config_t, antennaDiversity,
2963 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2964 CFG_ANTENNA_DIVERSITY_PARAM_DEFAULT,
2965 CFG_ANTENNA_DIVERSITY_PARAM_MIN,
2966 CFG_ANTENNA_DIVERSITY_PARAM_MAX),
Madan Mohan Koyyalamudid9383fd2013-08-13 09:27:30 +05302967
2968 REG_VARIABLE( CFG_ENABLE_SNR_MONITORING_NAME, WLAN_PARAM_Integer,
2969 hdd_config_t, fEnableSNRMonitoring,
2970 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK ,
2971 CFG_ENABLE_SNR_MONITORING_DEFAULT,
2972 CFG_ENABLE_SNR_MONITORING_MIN,
2973 CFG_ENABLE_SNR_MONITORING_MAX),
2974
Madan Mohan Koyyalamudi1d16f462013-08-27 16:25:34 +05302975#ifdef FEATURE_WLAN_SCAN_PNO
Hardik Kantilal Patel3dfd8792013-11-13 20:34:57 +05302976 REG_VARIABLE( CFG_PNO_SCAN_SUPPORT, WLAN_PARAM_Integer,
2977 hdd_config_t, configPNOScanSupport,
2978 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2979 CFG_PNO_SCAN_SUPPORT_DEFAULT,
2980 CFG_PNO_SCAN_SUPPORT_DISABLE,
2981 CFG_PNO_SCAN_SUPPORT_ENABLE),
2982
Madan Mohan Koyyalamudi1d16f462013-08-27 16:25:34 +05302983 REG_VARIABLE( CFG_PNO_SCAN_TIMER_REPEAT_VALUE, WLAN_PARAM_Integer,
2984 hdd_config_t, configPNOScanTimerRepeatValue,
2985 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2986 CFG_PNO_SCAN_TIMER_REPEAT_VALUE_DEFAULT,
2987 CFG_PNO_SCAN_TIMER_REPEAT_VALUE_MIN,
2988 CFG_PNO_SCAN_TIMER_REPEAT_VALUE_MAX),
2989#endif
krunal soni5afa96c2013-09-06 22:19:02 -07002990 REG_VARIABLE( CFG_AMSDU_SUPPORT_IN_AMPDU_NAME , WLAN_PARAM_Integer,
2991 hdd_config_t, isAmsduSupportInAMPDU,
2992 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
2993 CFG_AMSDU_SUPPORT_IN_AMPDU_DEFAULT,
2994 CFG_AMSDU_SUPPORT_IN_AMPDU_MIN,
2995 CFG_AMSDU_SUPPORT_IN_AMPDU_MAX ),
Madan Mohan Koyyalamudi1d16f462013-08-27 16:25:34 +05302996
Srinivas Girigowda41c7c5f2013-10-21 19:01:38 -07002997 REG_VARIABLE( CFG_STRICT_5GHZ_PREF_BY_MARGIN , WLAN_PARAM_Integer,
2998 hdd_config_t, nSelect5GHzMargin,
2999 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3000 CFG_STRICT_5GHZ_PREF_BY_MARGIN_DEFAULT,
3001 CFG_STRICT_5GHZ_PREF_BY_MARGIN_MIN,
3002 CFG_STRICT_5GHZ_PREF_BY_MARGIN_MAX ),
3003
krunal sonie9002db2013-11-25 14:24:17 -08003004 REG_VARIABLE( CFG_COALESING_IN_IBSS_NAME , WLAN_PARAM_Integer,
3005 hdd_config_t, isCoalesingInIBSSAllowed,
3006 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3007 CFG_COALESING_IN_IBSS_DEFAULT,
3008 CFG_COALESING_IN_IBSS_MIN,
3009 CFG_COALESING_IN_IBSS_MAX ),
Kiet Lam4bbd3cb2013-11-07 20:03:49 +05303010
3011 REG_VARIABLE( CFG_DISABLE_ATH_NAME , WLAN_PARAM_Integer,
3012 hdd_config_t, cfgAthDisable,
3013 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3014 CFG_DISABLE_ATH_DEFAULT,
3015 CFG_DISABLE_ATH_MIN,
3016 CFG_DISABLE_ATH_MAX ),
c_hpothu6d7dc922013-12-02 12:36:41 +05303017 REG_VARIABLE(CFG_BTC_ACTIVE_WLAN_LEN_NAME, WLAN_PARAM_Integer,
3018 hdd_config_t, cfgBtcActiveWlanLen,
3019 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3020 CFG_BTC_ACTIVE_WLAN_LEN_DEFAULT,
3021 CFG_BTC_ACTIVE_WLAN_LEN_MIN,
3022 CFG_BTC_ACTIVE_WLAN_LEN_MAX ),
3023
3024 REG_VARIABLE(CFG_BTC_ACTIVE_BT_LEN_NAME, WLAN_PARAM_Integer,
3025 hdd_config_t, cfgBtcActiveBtLen,
3026 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3027 CFG_BTC_ACTIVE_BT_LEN_DEFAULT,
3028 CFG_BTC_ACTIVE_BT_LEN_MIN,
3029 CFG_BTC_ACTIVE_BT_LEN_MAX ),
3030
3031 REG_VARIABLE(CFG_BTC_SAP_ACTIVE_WLAN_LEN_NAME, WLAN_PARAM_Integer,
3032 hdd_config_t, cfgBtcSapActiveWlanLen,
3033 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3034 CFG_BTC_SAP_ACTIVE_WLAN_LEN_DEFAULT,
3035 CFG_BTC_SAP_ACTIVE_WLAN_LEN_MIN,
3036 CFG_BTC_SAP_ACTIVE_WLAN_LEN_MAX ),
3037
3038 REG_VARIABLE(CFG_BTC_SAP_ACTIVE_BT_LEN_NAME, WLAN_PARAM_Integer,
3039 hdd_config_t, cfgBtcSapActiveBtLen,
3040 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3041 CFG_BTC_SAP_ACTIVE_BT_LEN_DEFAULT,
3042 CFG_BTC_SAP_ACTIVE_BT_LEN_MIN,
3043 CFG_BTC_SAP_ACTIVE_BT_LEN_MAX ),
Arif Hussaind5218912013-12-05 01:10:55 -08003044
3045#ifdef MEMORY_DEBUG
3046 REG_VARIABLE(CFG_ENABLE_MEMORY_DEBUG_NAME, WLAN_PARAM_Integer,
3047 hdd_config_t, IsMemoryDebugSupportEnabled,
3048 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3049 CFG_ENABLE_MEMORY_DEBUG_DEFAULT,
3050 CFG_ENABLE_MEMORY_DEBUG_MIN,
3051 CFG_ENABLE_MEMORY_DEBUG_MAX ),
3052#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07003053
Tushnim Bhattacharyya9889e792013-12-19 18:18:36 -08003054 REG_VARIABLE_STRING( CFG_OVERRIDE_COUNTRY_CODE, WLAN_PARAM_String,
3055 hdd_config_t, overrideCountryCode,
3056 VAR_FLAGS_OPTIONAL,
Kiet Lamaa8e15a2014-02-11 23:30:06 -08003057 (void *)CFG_OVERRIDE_COUNTRY_CODE_DEFAULT),
AnjaneeDevi Kapparapu50239e32014-01-07 18:09:33 +05303058
3059 REG_VARIABLE( CFG_ASD_PROBE_INTERVAL_NAME, WLAN_PARAM_Integer,
3060 hdd_config_t, gAsdProbeInterval,
3061 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3062 CFG_ASD_PROBE_INTERVAL_DEFAULT,
3063 CFG_ASD_PROBE_INTERVAL_MIN,
3064 CFG_ASD_PROBE_INTERVAL_MAX),
3065
c_hpothu1c4405a2014-12-10 18:16:16 +05303066 REG_VARIABLE( CFG_ASD_TRIGGER_THRESHOLD_NAME, WLAN_PARAM_SignedInteger,
AnjaneeDevi Kapparapu50239e32014-01-07 18:09:33 +05303067 hdd_config_t, gAsdTriggerThreshold,
3068 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3069 CFG_ASD_TRIGGER_THRESHOLD_DEFAULT,
3070 CFG_ASD_TRIGGER_THRESHOLD_MIN,
3071 CFG_ASD_TRIGGER_THRESHOLD_MAX),
3072
3073 REG_VARIABLE( CFG_ASD_RTT_RSSI_HYST_THRESHOLD_NAME, WLAN_PARAM_Integer,
3074 hdd_config_t, gAsdRTTRssiHystThreshold,
3075 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3076 CFG_ASD_RTT_RSSI_HYST_THRESHOLD_DEFAULT,
3077 CFG_ASD_RTT_RSSI_HYST_THRESHOLD_MIN,
3078 CFG_ASD_RTT_RSSI_HYST_THRESHOLD_MAX),
Leela Venkata Kiran Kumar Reddy Chirala22c159b2013-12-23 18:19:13 -08003079
3080 REG_VARIABLE( CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_NAME, WLAN_PARAM_Integer,
3081 hdd_config_t, debugP2pRemainOnChannel,
3082 VAR_FLAGS_OPTIONAL,
3083 CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_DEFAULT,
3084 CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_MIN,
3085 CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_MAX ),
3086
3087 REG_VARIABLE(CFG_CTS2S_DURING_BTC_SCO_NAME, WLAN_PARAM_Integer,
3088 hdd_config_t, cfgBtcCTS2SduringSCO,
3089 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3090 CFG_CTS2S_DURING_BTC_SCO_DEFAULT,
3091 CFG_CTS2S_DURING_BTC_SCO_MIN,
3092 CFG_CTS2S_DURING_BTC_SCO_MAX ),
Tushnim Bhattacharyyaa3ba5a52014-01-30 11:37:33 -08003093
3094 REG_VARIABLE( CFG_ENABLE_DEBUG_CONNECT_ISSUE, WLAN_PARAM_Integer,
3095 hdd_config_t, gEnableDebugLog,
3096 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3097 CFG_ENABLE_DEBUG_CONNECT_ISSUE_DEFAULT,
3098 CFG_ENABLE_DEBUG_CONNECT_ISSUE_MIN ,
3099 CFG_ENABLE_DEBUG_CONNECT_ISSUE_MAX),
Sandeep Puligilla04bb8fd2014-02-03 23:21:47 +05303100
3101 REG_VARIABLE(CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_NAME, WLAN_PARAM_Integer,
3102 hdd_config_t, nOBSSScanActiveDwellTime,
3103 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3104 CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_DEFAULT,
3105 CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_MIN,
3106 CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_MAX ),
3107
3108 REG_VARIABLE(CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_NAME, WLAN_PARAM_Integer,
3109 hdd_config_t, nOBSSScanPassiveDwellTime,
3110 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3111 CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_DEFAULT,
3112 CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_MIN,
3113 CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_MAX ),
3114
3115 REG_VARIABLE(CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_NAME,
3116 WLAN_PARAM_Integer,
3117 hdd_config_t, nOBSSScanWidthTriggerInterval,
3118 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3119 CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_DEFAULT,
3120 CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_MIN,
3121 CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_MAX ),
Kalikinkar dharad73a9bd2014-01-28 22:42:34 -08003122
3123 REG_VARIABLE( CFG_ENABLE_STRICT_REGULATORY_FOR_FCC_NAME, WLAN_PARAM_Integer,
3124 hdd_config_t, gEnableStrictRegulatoryForFCC,
3125 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3126 CFG_ENABLE_STRICT_REGULATORY_FOR_FCC_DEFAULT,
3127 CFG_ENABLE_STRICT_REGULATORY_FOR_FCC_MIN,
3128 CFG_ENABLE_STRICT_REGULATORY_FOR_FCC_MAX ),
3129
Rashmi Ramannabd3feb72014-02-25 16:14:48 +05303130 REG_VARIABLE( CFG_ADVERTISE_CONCURRENT_OPERATION_NAME , WLAN_PARAM_Integer,
3131 hdd_config_t, advertiseConcurrentOperation,
3132 VAR_FLAGS_OPTIONAL,
3133 CFG_ADVERTISE_CONCURRENT_OPERATION_DEFAULT,
3134 CFG_ADVERTISE_CONCURRENT_OPERATION_MIN,
3135 CFG_ADVERTISE_CONCURRENT_OPERATION_MAX ),
3136
Abhishek Singh8280c4e2014-02-18 13:26:34 +05303137 REG_VARIABLE( CFG_DEFAULT_RATE_INDEX_24GH, WLAN_PARAM_Integer,
3138 hdd_config_t, defaultRateIndex24Ghz,
3139 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3140 CFG_DEFAULT_RATE_INDEX_24GH_DEFAULT,
3141 CFG_DEFAULT_RATE_INDEX_24GH_MIN,
3142 CFG_DEFAULT_RATE_INDEX_24GH_MAX ),
3143
Sushant Kaushik7dc03272015-02-18 11:25:12 +05303144 REG_VARIABLE( CFG_SAP_ENABLE_11AC_NAME, WLAN_PARAM_Integer,
3145 hdd_config_t, sapEnable11AC,
Abhishek Singhf0ac1752014-03-05 17:47:09 +05303146 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
Sushant Kaushik7dc03272015-02-18 11:25:12 +05303147 CFG_SAP_ENABLE_11AC_DEFAULT,
3148 CFG_SAP_ENABLE_11AC_MIN,
3149 CFG_SAP_ENABLE_11AC_MAX ),
Abhishek Singhf0ac1752014-03-05 17:47:09 +05303150
c_hpothu5bd1ae42014-03-07 20:28:22 +05303151 REG_VARIABLE(CFG_RA_FILTER_ENABLE_NAME, WLAN_PARAM_Integer,
3152 hdd_config_t, cfgRAFilterEnable,
3153 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3154 CFG_RA_FILTER_ENABLE_DEFAULT,
3155 CFG_RA_FILTER_ENABLE_MIN,
3156 CFG_RA_FILTER_ENABLE_MAX ),
3157
3158 REG_VARIABLE(CFG_RA_RATE_LIMIT_INTERVAL_NAME, WLAN_PARAM_Integer,
3159 hdd_config_t, cfgRARateLimitInterval,
3160 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3161 CFG_RA_RATE_LIMIT_INTERVAL_DEFAULT,
3162 CFG_RA_RATE_LIMIT_INTERVAL_MIN,
3163 CFG_RA_RATE_LIMIT_INTERVAL_MAX ),
Sandeep Puligillac80f26e2014-03-11 18:36:10 +05303164
3165 REG_VARIABLE( CFG_ROAMING_DFS_CHANNEL_NAME , WLAN_PARAM_Integer,
3166 hdd_config_t, allowDFSChannelRoam,
3167 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3168 CFG_ROAMING_DFS_CHANNEL_DEFAULT,
3169 CFG_ROAMING_DFS_CHANNEL_MIN,
3170 CFG_ROAMING_DFS_CHANNEL_MAX ),
Vinay Krishna Erannad938c422014-03-10 17:14:21 +05303171
3172#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
3173 REG_VARIABLE( CFG_WLAN_LOGGING_SUPPORT_NAME, WLAN_PARAM_Integer,
3174 hdd_config_t, wlanLoggingEnable,
3175 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3176 CFG_WLAN_LOGGING_SUPPORT_DEFAULT,
3177 CFG_WLAN_LOGGING_SUPPORT_DISABLE,
3178 CFG_WLAN_LOGGING_SUPPORT_ENABLE ),
3179
3180 REG_VARIABLE( CFG_WLAN_LOGGING_FE_CONSOLE_SUPPORT_NAME, WLAN_PARAM_Integer,
3181 hdd_config_t, wlanLoggingFEToConsole,
3182 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3183 CFG_WLAN_LOGGING_FE_CONSOLE_SUPPORT_DEFAULT,
3184 CFG_WLAN_LOGGING_FE_CONSOLE_SUPPORT_DISABLE,
3185 CFG_WLAN_LOGGING_FE_CONSOLE_SUPPORT_ENABLE ),
3186
3187 REG_VARIABLE( CFG_WLAN_LOGGING_NUM_BUF_NAME, WLAN_PARAM_Integer,
3188 hdd_config_t, wlanLoggingNumBuf,
3189 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3190 CFG_WLAN_LOGGING_NUM_BUF_DEFAULT,
3191 CFG_WLAN_LOGGING_NUM_BUF_MIN,
3192 CFG_WLAN_LOGGING_NUM_BUF_MAX ),
Sushant Kaushik33200572015-08-05 16:46:20 +05303193
Sushant Kaushik8e644982015-09-23 12:18:54 +05303194 REG_VARIABLE( CFG_WLAN_PKT_STATS_LOGGING_NAME, WLAN_PARAM_Integer,
3195 hdd_config_t, wlanPerPktStatsLogEnable,
3196 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3197 CFG_WLAN_PKT_STATS_LOGGING_DEFAULT,
3198 CFG_WLAN_PKT_STATS_LOGGING_DISABLE,
3199 CFG_WLAN_PKT_STATS_LOGGING_ENABLE ),
3200
Sushant Kaushik33200572015-08-05 16:46:20 +05303201 REG_VARIABLE( CFG_WLAN_PKT_STATS_NUM_BUF_NAME, WLAN_PARAM_Integer,
3202 hdd_config_t, wlanPerPktStatsNumBuf,
3203 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3204 CFG_WLAN_PKT_STATS_NUM_BUF_DEFAULT,
3205 CFG_WLAN_PKT_STATS_NUM_BUF_MIN,
3206 CFG_WLAN_PKT_STATS_NUM_BUF_MAX ),
3207
Vinay Krishna Erannad938c422014-03-10 17:14:21 +05303208#endif //WLAN_LOGGING_SOCK_SVC_ENABLE
3209
Abhishek Singhc98534e2015-06-12 10:44:34 +05303210 REG_VARIABLE( CFG_IGNORE_PEER_ERP_INFO_NAME, WLAN_PARAM_Integer,
3211 hdd_config_t, ignorePeerErpInfo,
3212 VAR_FLAGS_OPTIONAL |
3213 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3214 CFG_IGNORE_PEER_ERP_INFO_DEFAULT,
3215 CFG_IGNORE_PEER_ERP_INFO_MIN,
3216 CFG_IGNORE_PEER_ERP_INFO_MAX ),
3217
Sushant Kaushikae17dd62015-08-27 17:07:04 +05303218 REG_VARIABLE( CFG_IGNORE_PEER_HT_MODE_NAME, WLAN_PARAM_Integer,
3219 hdd_config_t, ignorePeerHTopMode,
3220 VAR_FLAGS_OPTIONAL |
3221 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3222 CFG_IGNORE_PEER_HT_MODE_DEFAULT,
3223 CFG_IGNORE_PEER_HT_MODE_MIN,
3224 CFG_IGNORE_PEER_HT_MODE_MAX ),
3225
c_hpothu059edb02014-03-12 21:44:28 +05303226 REG_VARIABLE(CFG_INITIAL_DWELL_TIME_NAME, WLAN_PARAM_Integer,
3227 hdd_config_t, nInitialDwellTime,
3228 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3229 CFG_INITIAL_DWELL_TIME_DEFAULT,
3230 CFG_INITIAL_DWELL_TIME_MIN,
3231 CFG_INITIAL_DWELL_TIME_MAX ),
c_hpothu0d5a7352014-03-22 12:30:25 +05303232
3233 REG_VARIABLE(CFG_INITIAL_SCAN_SKIP_DFS_CH_NAME, WLAN_PARAM_Integer,
3234 hdd_config_t, initialScanSkipDFSCh,
3235 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3236 CFG_INITIAL_SCAN_SKIP_DFS_CH_DEFAULT,
3237 CFG_INITIAL_SCAN_SKIP_DFS_CH_MIN,
3238 CFG_INITIAL_SCAN_SKIP_DFS_CH_MAX),
c_hpothu2d0f1c42014-04-01 18:38:51 +05303239
3240 REG_VARIABLE(CFG_BTC_FATAL_HID_NSNIFF_BLK_GUIDANCE_NAME, WLAN_PARAM_Integer,
3241 hdd_config_t, cfgBtcFatalHidnSniffBlkGuidance,
3242 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3243 CFG_BTC_FATAL_HID_NSNIFF_BLK_GUIDANCE_DEFAULT,
3244 CFG_BTC_FATAL_HID_NSNIFF_BLK_GUIDANCE_MIN,
3245 CFG_BTC_FATAL_HID_NSNIFF_BLK_GUIDANCE_MAX ),
3246
3247 REG_VARIABLE(CFG_BTC_CRITICAL_HID_NSNIFF_BLK_GUIDANCE_NAME, WLAN_PARAM_Integer,
3248 hdd_config_t, cfgBtcCriticalHidnSniffBlkGuidance,
3249 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3250 CFG_BTC_CRITICAL_HID_NSNIFF_BLK_GUIDANCE_DEFAULT,
3251 CFG_BTC_CRITICAL_HID_NSNIFF_BLK_GUIDANCE_MIN,
3252 CFG_BTC_CRITICAL_HID_NSNIFF_BLK_GUIDANCE_MAX ),
3253
3254 REG_VARIABLE(CFG_BTC_DYN_A2DP_TX_QUEUE_THOLD_NAME, WLAN_PARAM_Integer,
3255 hdd_config_t, cfgBtcA2dpTxQueueThold,
3256 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3257 CFG_BTC_DYN_A2DP_TX_QUEUE_THOLD_DEFAULT,
3258 CFG_BTC_DYN_A2DP_TX_QUEUE_THOLD_MIN,
3259 CFG_BTC_DYN_A2DP_TX_QUEUE_THOLD_MAX ),
3260
3261 REG_VARIABLE(CFG_BTC_DYN_OPP_TX_QUEUE_THOLD_NAME, WLAN_PARAM_Integer,
3262 hdd_config_t, cfgBtcOppTxQueueThold,
3263 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3264 CFG_BTC_DYN_OPP_TX_QUEUE_THOLD_DEFAULT,
3265 CFG_BTC_DYN_OPP_TX_QUEUE_THOLD_MIN,
3266 CFG_BTC_DYN_OPP_TX_QUEUE_THOLD_MAX ),
Chet Lanctotfadc8e32014-04-24 14:50:52 -07003267
3268#ifdef WLAN_FEATURE_11W
3269 REG_VARIABLE(CFG_PMF_SA_QUERY_MAX_RETRIES_NAME, WLAN_PARAM_Integer,
3270 hdd_config_t, pmfSaQueryMaxRetries,
3271 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3272 CFG_PMF_SA_QUERY_MAX_RETRIES_DEFAULT,
3273 CFG_PMF_SA_QUERY_MAX_RETRIES_MIN,
3274 CFG_PMF_SA_QUERY_MAX_RETRIES_MAX ),
3275
3276 REG_VARIABLE(CFG_PMF_SA_QUERY_RETRY_INTERVAL_NAME, WLAN_PARAM_Integer,
3277 hdd_config_t, pmfSaQueryRetryInterval,
3278 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3279 CFG_PMF_SA_QUERY_RETRY_INTERVAL_DEFAULT,
3280 CFG_PMF_SA_QUERY_RETRY_INTERVAL_MIN,
3281 CFG_PMF_SA_QUERY_RETRY_INTERVAL_MAX ),
3282#endif
Rashmi Ramanna68b309c2014-05-20 11:52:22 +05303283
3284 REG_VARIABLE(CFG_DEFER_IMPS_FOR_TIME_NAME, WLAN_PARAM_Integer,
3285 hdd_config_t, deferImpsTime,
3286 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3287 CFG_DEFER_IMPS_FOR_TIME_DEFAULT,
3288 CFG_DEFER_IMPS_FOR_TIME_MIN,
3289 CFG_DEFER_IMPS_FOR_TIME_MAX),
3290
Abhishek Singhde51a412014-05-20 19:17:26 +05303291 REG_VARIABLE(CFG_ENABLE_DEAUTH_BEFORE_CONNECTION, WLAN_PARAM_Integer,
3292 hdd_config_t, sendDeauthBeforeCon,
3293 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3294 CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_DEFAULT,
3295 CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_MIN,
3296 CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_MAX),
Pradeep Reddy POTTETI5c2e16d2014-06-27 16:47:38 +05303297
Siddharth Bhala3a5cb42014-09-29 21:13:13 +05303298 REG_VARIABLE(CFG_ENABLE_MAC_ADDR_SPOOFING, WLAN_PARAM_Integer,
3299 hdd_config_t, enableMacSpoofing,
3300 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3301 CFG_ENABLE_MAC_ADDR_SPOOFING_DEFAULT,
3302 CFG_ENABLE_MAC_ADDR_SPOOFING_MIN,
3303 CFG_ENABLE_MAC_ADDR_SPOOFING_MAX),
3304
Abhishek Singh795e1b82015-09-25 15:35:03 +05303305 REG_VARIABLE(CFG_DISABLE_P2P_MAC_ADDR_SPOOFING, WLAN_PARAM_Integer,
3306 hdd_config_t, disableP2PMacSpoofing,
3307 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3308 CFG_DISABLE_P2P_MAC_ADDR_SPOOFING_DEFAULT,
3309 CFG_DISABLE_P2P_MAC_ADDR_SPOOFING_MIN,
3310 CFG_DISABLE_P2P_MAC_ADDR_SPOOFING_MAX),
3311
Abhishek Singh837adf22015-10-01 17:37:37 +05303312 REG_VARIABLE(CFG_ENABLE_FATAL_EVENT_TRIGGER, WLAN_PARAM_Integer,
3313 hdd_config_t, enableFatalEvent,
3314 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3315 CFG_ENABLE_FATAL_EVENT_TRIGGER_DEFAULT,
3316 CFG_ENABLE_FATAL_EVENT_TRIGGER_MIN,
3317 CFG_ENABLE_FATAL_EVENT_TRIGGER_MAX),
3318
Siddharth Bhal4a432552015-02-27 01:09:31 +05303319 REG_VARIABLE(CFG_ENABLE_MGMT_LOGGING, WLAN_PARAM_Integer,
3320 hdd_config_t, enableMgmtLogging,
3321 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3322 CFG_ENABLE_MGMT_LOGGING_DEFAULT,
3323 CFG_ENABLE_MGMT_LOGGING_MIN,
3324 CFG_ENABLE_MGMT_LOGGING_MAX),
3325
3326 REG_VARIABLE(CFG_ENABLE_BMUHW_TRACING, WLAN_PARAM_Integer,
3327 hdd_config_t, enableBMUHWtracing,
3328 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3329 CFG_ENABLE_BMUHW_TRACING_DEFAULT,
3330 CFG_ENABLE_BMUHW_TRACING_MIN,
3331 CFG_ENABLE_BMUHW_TRACING_MAX),
3332
Siddharth Bhald1be97f2015-05-27 22:39:59 +05303333 REG_VARIABLE(CFG_ENABLE_FW_LOGGING, WLAN_PARAM_Integer,
3334 hdd_config_t, enableFWLogging,
3335 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3336 CFG_ENABLE_FW_LOGGING_DEFAULT,
3337 CFG_ENABLE_FW_LOGGING_MIN,
3338 CFG_ENABLE_FW_LOGGING_MAX),
3339
3340 REG_VARIABLE(CFG_ENABLE_FW_CONTINIOUS_LOGGING, WLAN_PARAM_Integer,
3341 hdd_config_t, enableContFWLogging,
3342 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3343 CFG_ENABLE_FW_CONTINIOUS_LOGGING_DEFAULT,
3344 CFG_ENABLE_FW_CONTINIOUS_LOGGING_MIN,
3345 CFG_ENABLE_FW_CONTINIOUS_LOGGING_MAX),
3346
3347 REG_VARIABLE(CFG_MIN_LOGGING_BUFFER_SIZE, WLAN_PARAM_Integer,
3348 hdd_config_t, minLoggingBufferSize,
3349 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3350 CFG_MIN_LOGGING_BUFFER_SIZE_DEFAULT,
3351 CFG_MIN_LOGGING_BUFFER_SIZE_MIN,
3352 CFG_MIN_LOGGING_BUFFER_SIZE_MAX),
3353
3354 REG_VARIABLE(CFG_MAX_LOGGING_BUFFER_SIZE, WLAN_PARAM_Integer,
3355 hdd_config_t, maxLoggingBufferSize,
3356 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3357 CFG_MAX_LOGGING_BUFFER_SIZE_DEFAULT,
3358 CFG_MAX_LOGGING_BUFFER_SIZE_MIN,
3359 CFG_MAX_LOGGING_BUFFER_SIZE_MAX),
3360
Pradeep Reddy POTTETI5c2e16d2014-06-27 16:47:38 +05303361 REG_VARIABLE(CFG_ENABLE_CH_AVOID, WLAN_PARAM_Integer,
3362 hdd_config_t, fenableCHAvoidance,
3363 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3364 CFG_ENABLE_CH_AVOID_DEFAULT,
3365 CFG_ENABLE_CH_AVOID_MIN,
3366 CFG_ENABLE_CH_AVOID_MAX ),
Agarwal Ashish51325b52014-06-16 16:50:49 +05303367
3368 REG_VARIABLE(CFG_MAX_CONCURRENT_CONNECTIONS_NAME, WLAN_PARAM_Integer,
3369 hdd_config_t, gMaxConcurrentActiveSessions,
3370 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3371 CFG_MAX_CONCURRENT_CONNECTIONS_DEFAULT,
3372 CFG_MAX_CONCURRENT_CONNECTIONS_MIN,
3373 CFG_MAX_CONCURRENT_CONNECTIONS_MAX ),
Hardik Kantilal Patel086e0a32014-11-20 14:56:26 +05303374
3375#ifdef WLAN_FEATURE_AP_HT40_24G
3376 REG_VARIABLE(CFG_ENABLE_HT_2040_COEX, WLAN_PARAM_Integer,
3377 hdd_config_t, apHT40_24GEnabled,
3378 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3379 CFG_ENABLE_HT_2040_COEX_DEFAULT,
3380 CFG_ENABLE_HT_2040_COEX_MIN,
3381 CFG_ENABLE_HT_2040_COEX_MAX ),
3382#endif
3383
Mihir Shetec34258c2014-07-30 17:50:27 +05303384 REG_VARIABLE( CFG_ENABLE_DYNAMIC_WMMPS_NAME, WLAN_PARAM_Integer,
3385 hdd_config_t, enableDynamicWMMPS,
3386 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3387 CFG_ENABLE_DYNAMIC_WMM_PS_DEFAULT,
3388 CFG_ENABLE_DYNAMIC_WMM_PS_MIN,
3389 CFG_ENABLE_DYNAMIC_WMM_PS_MAX ),
3390
3391 REG_VARIABLE( CFG_MAX_UAPSD_CONSEC_SP_NAME, WLAN_PARAM_Integer,
3392 hdd_config_t, maxUapsdConsecSP,
3393 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3394 CFG_MAX_UAPSD_CONSEC_SP_DEFAULT,
3395 CFG_MAX_UAPSD_CONSEC_SP_MIN,
3396 CFG_MAX_UAPSD_CONSEC_SP_MAX ),
3397
3398 REG_VARIABLE( CFG_MAX_UAPSD_CONSEC_RX_CNT_NAME, WLAN_PARAM_Integer,
3399 hdd_config_t, maxUapsdConsecRxCnt,
3400 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3401 CFG_MAX_UAPSD_CONSEC_RX_CNT_DEFAULT,
3402 CFG_MAX_UAPSD_CONSEC_RX_CNT_MIN,
3403 CFG_MAX_UAPSD_CONSEC_RX_CNT_MAX ),
3404
3405 REG_VARIABLE( CFG_MAX_UAPSD_CONSEC_TX_CNT_NAME, WLAN_PARAM_Integer,
3406 hdd_config_t, maxUapsdConsecTxCnt,
3407 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3408 CFG_MAX_UAPSD_CONSEC_TX_CNT_DEFAULT,
3409 CFG_MAX_UAPSD_CONSEC_TX_CNT_MIN,
3410 CFG_MAX_UAPSD_CONSEC_TX_CNT_MAX ),
3411
3412 REG_VARIABLE( CFG_UAPSD_CONSEC_RX_CNT_MEAS_WINDOW_NAME, WLAN_PARAM_Integer,
3413 hdd_config_t, uapsdConsecRxCntMeasWindow,
3414 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3415 CFG_UAPSD_CONSEC_RX_CNT_MEAS_WINDOW_DEFAULT,
3416 CFG_UAPSD_CONSEC_RX_CNT_MEAS_WINDOW_MIN,
3417 CFG_UAPSD_CONSEC_RX_CNT_MEAS_WINDOW_MAX ),
3418
3419 REG_VARIABLE( CFG_UAPSD_CONSEC_TX_CNT_MEAS_WINDOW_NAME, WLAN_PARAM_Integer,
3420 hdd_config_t, uapsdConsecTxCntMeasWindow,
3421 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3422 CFG_UAPSD_CONSEC_TX_CNT_MEAS_WINDOW_DEFAULT,
3423 CFG_UAPSD_CONSEC_TX_CNT_MEAS_WINDOW_MIN,
3424 CFG_UAPSD_CONSEC_TX_CNT_MEAS_WINDOW_MAX ),
3425
3426 REG_VARIABLE( CFG_UAPSD_PSPOLL_NAME, WLAN_PARAM_Integer,
3427 hdd_config_t, maxPsPollInWmmUapsdMode,
3428 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3429 CFG_UAPSD_PSPOLL_DEFAULT,
3430 CFG_UAPSD_PSPOLL_MIN,
3431 CFG_UAPSD_PSPOLL_MAX ),
3432
3433 REG_VARIABLE( CFG_MAX_UAPSD_INACT_INTVL_NAME, WLAN_PARAM_Integer,
3434 hdd_config_t, maxUapsdInactivityIntervals,
3435 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3436 CFG_MAX_UAPSD_INACT_INTVL_DEFAULT,
3437 CFG_MAX_UAPSD_INACT_INTVL_MIN,
3438 CFG_MAX_UAPSD_INACT_INTVL_MAX ),
Dino Mycled9b7cc12014-09-04 18:43:07 +05303439
c_hpothu03d961b2014-09-19 16:45:00 +05303440 REG_VARIABLE( CFG_BURST_MODE_BE_TXOP_VALUE, WLAN_PARAM_Integer,
3441 hdd_config_t, burstModeTXOPValue,
3442 VAR_FLAGS_OPTIONAL |
3443 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3444 CFG_BURST_MODE_BE_TXOP_VALUE_DEFAULT,
3445 CFG_BURST_MODE_BE_TXOP_VALUE_MIN,
3446 CFG_BURST_MODE_BE_TXOP_VALUE_MAX ),
Peng Xufc6ad8e2014-09-25 13:16:43 +05303447 REG_VARIABLE( CFG_SAP_SCAN_BAND_PREFERENCE, WLAN_PARAM_Integer,
3448 hdd_config_t, acsScanBandPreference,
3449 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK,
3450 CFG_SAP_SCAN_BAND_PREFERENCE_DEFAULT,
3451 CFG_SAP_SCAN_BAND_PREFERENCE_MIN,
3452 CFG_SAP_SCAN_BAND_PREFERENCE_MAX ),
Deepthi Gowri9025aa62014-11-07 19:45:36 +05303453
Sourav Mohapatradf8b23c2017-11-17 17:50:31 +05303454 REG_VARIABLE(CFG_ENABLE_RTT_SUPPORT, WLAN_PARAM_Integer,
3455 hdd_config_t, enable_rtt_support,
3456 VAR_FLAGS_OPTIONAL,
3457 CFG_ENABLE_RTT_SUPPORT_DEFAULT,
3458 CFG_ENABLE_RTT_SUPPORT_MIN,
3459 CFG_ENABLE_RTT_SUPPORT_MAX ),
3460
Deepthi Gowri9025aa62014-11-07 19:45:36 +05303461 REG_VARIABLE( CFG_ENABLE_DYNAMIC_RA_START_RATE_NAME, WLAN_PARAM_Integer,
3462 hdd_config_t, enableDynamicRAStartRate,
3463 VAR_FLAGS_OPTIONAL |
3464 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3465 CFG_ENABLE_DYNAMIC_RA_START_RATE_DEFAULT,
3466 CFG_ENABLE_DYNAMIC_RA_START_RATE_MIN,
3467 CFG_ENABLE_DYNAMIC_RA_START_RATE_MAX),
Ganesh Kondabattinibabfb492014-12-17 20:25:29 +05303468
3469 REG_VARIABLE( CFG_P2P_LISTEN_DEFER_INTERVAL_NAME, WLAN_PARAM_Integer,
3470 hdd_config_t, gP2PListenDeferInterval,
3471 VAR_FLAGS_OPTIONAL |
3472 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3473 CFG_P2P_LISTEN_DEFER_INTERVAL_DEFAULT,
3474 CFG_P2P_LISTEN_DEFER_INTERVAL_MIN,
3475 CFG_P2P_LISTEN_DEFER_INTERVAL_MAX),
Chandrasekaran, Manishekar5cb0acd2014-12-23 20:06:52 +05303476
3477 REG_VARIABLE( CFG_BTC_ENABLE_IND_TIMER_VALUE, WLAN_PARAM_Integer,
3478 hdd_config_t, btcEnableIndTimerVal,
3479 VAR_FLAGS_OPTIONAL |
3480 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3481 CFG_BTC_ENABLE_IND_TIMER_VALUE_DEFAULT,
3482 CFG_BTC_ENABLE_IND_TIMER_VALUE_MIN,
3483 CFG_BTC_ENABLE_IND_TIMER_VALUE_MAX),
3484
Naresh Jayaramf5bbe3f2014-12-29 18:32:47 +05303485 REG_VARIABLE( CFG_BTC_FAST_WLAN_CONN_PREF , WLAN_PARAM_Integer,
3486 hdd_config_t, btcFastWlanConnPref,
3487 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3488 CFG_BTC_FAST_WLAN_CONN_PREF_DEFAULT,
3489 CFG_BTC_FAST_WLAN_CONN_PREF_MIN,
3490 CFG_BTC_FAST_WLAN_CONN_PREF_MAX ),
3491
jagadeeshaf2d0ce2015-03-31 11:45:30 +05303492 REG_VARIABLE( CFG_ENABLE_RTSCTS_HTVHT_NAME, WLAN_PARAM_Integer,
3493 hdd_config_t, enableRtsCtsHtVht,
3494 VAR_FLAGS_OPTIONAL |
3495 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3496 CFG_ENABLE_RTSCTS_HTVHT_DEFAULT,
3497 CFG_ENABLE_RTSCTS_HTVHT_MIN,
3498 CFG_ENABLE_RTSCTS_HTVHT_MAX),
3499
Katya Nigama6fbf662015-03-17 18:35:47 +05303500 REG_VARIABLE( CFG_DXE_REPLENISH_RX_TIMER_VALUE, WLAN_PARAM_Integer,
3501 hdd_config_t, dxeReplenishRXTimerVal,
3502 VAR_FLAGS_OPTIONAL |
3503 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3504 CFG_DXE_REPLENISH_RX_TIMER_VALUE_DEFAULT,
3505 CFG_DXE_REPLENISH_RX_TIMER_VALUE_MIN,
3506 CFG_DXE_REPLENISH_RX_TIMER_VALUE_MAX ),
3507
3508 REG_VARIABLE( CFG_DXE_SSR_ENABLE, WLAN_PARAM_Integer,
3509 hdd_config_t, dxeSSREnable,
3510 VAR_FLAGS_OPTIONAL |
3511 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3512 CFG_DXE_SSR_ENABLE_DEFAULT,
3513 CFG_DXE_SSR_ENABLE_MIN,
3514 CFG_DXE_SSR_ENABLE_MAX ),
Sushant Kaushik215778f2015-05-21 14:05:36 +05303515
3516 REG_VARIABLE( CFG_MULTICAST_HOST_FW_MSGS, WLAN_PARAM_Integer,
3517 hdd_config_t, multicast_host_msgs,
3518 VAR_FLAGS_OPTIONAL |
3519 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3520 CFG_MULTICAST_HOST_FW_MSGS_DEFAULT,
3521 CFG_MULTICAST_HOST_FW_MSGS_MIN,
3522 CFG_MULTICAST_HOST_FW_MSGS_MAX),
3523
Hanumantha Reddy Pothulaee001fc2015-05-26 15:21:53 +05303524 REG_VARIABLE( CFG_TOGGLE_ARP_BDRATES_NAME, WLAN_PARAM_Integer,
3525 hdd_config_t, toggleArpBDRates,
3526 VAR_FLAGS_OPTIONAL |
3527 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3528 CFG_TOGGLE_ARP_BDRATES_DEFAULT,
3529 CFG_TOGGLE_ARP_BDRATES_MIN,
3530 CFG_TOGGLE_ARP_BDRATES_MAX),
Sachin Ahuja41b61902015-06-18 18:32:15 +05303531
3532 REG_VARIABLE( CFG_BTC_STATIC_OPP_WLAN_IDLE_WLAN_LEN , WLAN_PARAM_Integer,
3533 hdd_config_t, btcStaticOppWlanIdleWlanLen,
3534 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3535 CFG_BTC_STATIC_OPP_WLAN_IDLE_WLAN_LEN_DEFAULT,
3536 CFG_BTC_STATIC_OPP_WLAN_IDLE_WLAN_LEN_MIN,
3537 CFG_BTC_STATIC_OPP_WLAN_IDLE_WLAN_LEN_MAX ),
3538
Manjeet Singh67024b02016-10-26 15:34:20 +05303539 REG_VARIABLE( CFG_BTC_DISABLE_WLAN_LINK_CRITICAL , WLAN_PARAM_Integer,
3540 hdd_config_t, btc_disable_wlan_link_critical,
3541 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3542 CFG_BTC_DISABLE_WLAN_LINK_CRITICAL_DEFAULT,
3543 CFG_BTC_DISABLE_WLAN_LINK_CRITICAL_MIN,
3544 CFG_BTC_DISABLE_WLAN_LINK_CRITICAL_MAX ),
3545
Sachin Ahuja41b61902015-06-18 18:32:15 +05303546 REG_VARIABLE( CFG_BTC_STATIC_OPP_WLAN_IDLE_BT_LEN , WLAN_PARAM_Integer,
3547 hdd_config_t, btcStaticOppWlanIdleBtLen,
3548 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3549 CFG_BTC_STATIC_OPP_WLAN_IDLE_BT_LEN_DEFAULT,
3550 CFG_BTC_STATIC_OPP_WLAN_IDLE_BT_LEN_MIN,
3551 CFG_BTC_STATIC_OPP_WLAN_IDLE_BT_LEN_MAX ),
3552
Bhargav Shah66896792015-10-01 18:17:37 +05303553 REG_VARIABLE( CFG_TCP_DELACK_COMPUTE_INTERVAL, WLAN_PARAM_Integer,
3554 hdd_config_t, tcpDelAckComputeInterval,
3555 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3556 CFG_TCP_DELACK_COMPUTE_INTERVAL_DEFAULT,
3557 CFG_TCP_DELACK_COMPUTE_INTERVAL_MIN,
3558 CFG_TCP_DELACK_COMPUTE_INTERVAL_MAX),
3559
3560 REG_VARIABLE( CFG_TCP_DELACK_THRESHOLD_HIGH, WLAN_PARAM_Integer,
3561 hdd_config_t, tcpDelAckThresholdHigh,
3562 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3563 CFG_TCP_DELACK_THRESHOLD_HIGH_DEFAULT,
3564 CFG_TCP_DELACK_THRESHOLD_HIGH_MIN,
3565 CFG_TCP_DELACK_THRESHOLD_HIGH_MAX ),
3566
3567 REG_VARIABLE( CFG_TCP_DELACK_THRESHOLD_LOW, WLAN_PARAM_Integer,
3568 hdd_config_t, tcpDelAckThresholdLow,
3569 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3570 CFG_TCP_DELACK_THRESHOLD_LOW_DEFAULT,
3571 CFG_TCP_DELACK_THRESHOLD_LOW_MIN,
3572 CFG_TCP_DELACK_THRESHOLD_LOW_MAX ),
3573
Hanumantha Reddy Pothula9a8ccab2015-07-03 14:33:17 +05303574 REG_VARIABLE( CFG_LINK_FAIL_TIMEOUT_NAME , WLAN_PARAM_Integer,
3575 hdd_config_t, linkFailTimeout,
3576 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3577 CFG_LINK_FAIL_TIMEOUT_DEF,
3578 CFG_LINK_FAIL_TIMEOUT_MIN,
3579 CFG_LINK_FAIL_TIMEOUT_MAX ),
3580
3581 REG_VARIABLE( CFG_LINK_FAIL_TX_CNT_NAME , WLAN_PARAM_Integer,
3582 hdd_config_t, linkFailTxCnt,
3583 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3584 CFG_LINK_FAIL_TX_CNT_DEF,
3585 CFG_LINK_FAIL_TX_CNT_MIN,
3586 CFG_LINK_FAIL_TX_CNT_MAX ),
Hanumantha Reddy Pothula802d31d2015-09-29 17:39:11 +05303587
Mahesh A Saptasagarbeca12c2015-09-07 16:21:06 +05303588 REG_VARIABLE( CFG_OPTIMIZE_CA_EVENT_NAME, WLAN_PARAM_Integer,
3589 hdd_config_t, gOptimizeCAevent,
3590 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3591 CFG_OPTIMIZE_CA_EVENT_DEFAULT,
3592 CFG_OPTIMIZE_CA_EVENT_DISABLE,
3593 CFG_OPTIMIZE_CA_EVENT_ENABLE ),
3594
c_manjeecfd1efb2015-09-25 19:32:34 +05303595 REG_VARIABLE(CFG_FWR_MEM_DUMP_NAME, WLAN_PARAM_Integer,
3596 hdd_config_t,enableFwrMemDump,
3597 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3598 CFG_FWR_MEM_DUMP_DEF,
3599 CFG_FWR_MEM_DUMP_MIN,
3600 CFG_FWR_MEM_DUMP_MAX),
3601
Hanumantha Reddy Pothula802d31d2015-09-29 17:39:11 +05303602 REG_VARIABLE( CFG_ACTIVE_PASSIVE_CHAN_CONV_NAME, WLAN_PARAM_Integer,
3603 hdd_config_t, gActivePassiveChCon,
3604 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3605 CFG_ACTIVE_PASSIVE_CHAN_CONV_DEF,
3606 CFG_ACTIVE_PASSIVE_CHAN_CONV_MIN,
3607 CFG_ACTIVE_PASSIVE_CHAN_CONV_MAX ),
Padma, Santhosh Kumare2eb0fa2015-08-26 13:40:47 +05303608
3609 REG_VARIABLE( CFG_EXT_SCAN_CONC_MODE , WLAN_PARAM_Integer,
3610 hdd_config_t, cfgExtScanConcMode,
3611 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3612 CFG_EXT_SCAN_CONC_MODE_DEFAULT,
3613 CFG_EXT_SCAN_CONC_MODE_MIN,
3614 CFG_EXT_SCAN_CONC_MODE_MAX ),
Bhargav shah23c94942015-10-13 12:48:35 +05303615
3616 REG_VARIABLE( CFG_RPS_CPU_MAP_NAME, WLAN_PARAM_HexInteger,
3617 hdd_config_t, rps_mask,
3618 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3619 CFG_RPS_CPU_MAP_DEFAULT,
3620 CFG_RPS_CPU_MAP_MIN,
3621 CFG_RPS_CPU_MAP_MAX),
Arun Khandavalli7eeb1592015-10-19 21:36:57 +05303622
3623 REG_VARIABLE( CFG_WIFI_CONFIG_ENABLE, WLAN_PARAM_Integer,
3624 hdd_config_t, fEnableWifiConfig,
3625 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3626 CFG_WIFI_CONFIG_DEFAULT,
3627 CFG_WIFI_CONFIG_MIN,
3628 CFG_WIFI_CONFIG_MAX ),
Arun Khandavalliffbf9c02015-12-03 16:48:53 +05303629
3630 REG_VARIABLE( CFG_ENABLE_CRASH_INJECT, WLAN_PARAM_Integer,
3631 hdd_config_t, crash_inject_enabled,
3632 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3633 CFG_ENABLE_CRASH_INJECT_DEFAULT,
3634 CFG_ENABLE_CRASH_INJECT_MIN,
3635 CFG_ENABLE_CRASH_INJECT_MAX),
Bhargav Shah66896792015-10-01 18:17:37 +05303636
3637 REG_VARIABLE( CFG_ENABLE_TCP_DELACK_NAME, WLAN_PARAM_Integer,
3638 hdd_config_t, enable_delack,
3639 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3640 CFG_ENABLE_TCP_DELACK_DEFAULT,
3641 CFG_ENABLE_TCP_DELACK_MIN,
3642 CFG_ENABLE_TCP_DELACK_MAX ),
Sachin Ahujab4d7a292015-12-08 19:57:04 +05303643
3644 REG_VARIABLE( CFG_DISABLE_BAR_WAKEUP_HOST_NAME, WLAN_PARAM_Integer,
3645 hdd_config_t, disableBarWakeUp,
3646 VAR_FLAGS_OPTIONAL |
3647 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3648 CFG_DISABLE_BAR_WAKEUP_HOST_DEFAULT,
3649 CFG_DISABLE_BAR_WAKEUP_HOST_MIN,
3650 CFG_DISABLE_BAR_WAKEUP_HOST_MAX),
Gupta, Kapilb79cda32015-12-30 20:36:33 +05303651
3652 REG_VARIABLE( CFG_MAXCHAN_FOR_CHANTIME_CORR_NAME, WLAN_PARAM_Integer,
3653 hdd_config_t, max_chan_for_dwell_time_cfg,
3654 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3655 CFG_MAXCHAN_FOR_CHANTIME_CORR_DEFAULT,
3656 CFG_MAXCHAN_FOR_CHANTIME_CORR_MIN,
3657 CFG_MAXCHAN_FOR_CHANTIME_CORR_MAX ),
Masti, Narayanraddi037f3552015-12-22 11:54:35 +05303658
3659 REG_VARIABLE(CFG_TDLS_ENABLE_DEFER_TIMER, WLAN_PARAM_Integer,
3660 hdd_config_t, tdls_enable_defer_time,
3661 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3662 CFG_TDLS_ENABLE_DEFER_TIMER_DEFAULT,
3663 CFG_TDLS_ENABLE_DEFER_TIMER_MIN,
3664 CFG_TDLS_ENABLE_DEFER_TIMER_MAX),
Manjeet Singhaefc25c2016-02-09 19:06:08 +05303665
3666 REG_VARIABLE(CFG_SAR_BOFFSET_SET_CORRECTION_NAME, WLAN_PARAM_Integer,
3667 hdd_config_t, boffset_correction_enable,
3668 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3669 CFG_SAR_BOFFSET_SET_CORRECTION_DEFAULT,
3670 CFG_SAR_BOFFSET_SET_CORRECTION_MIN,
3671 CFG_SAR_BOFFSET_SET_CORRECTION_MAX),
Agrawal Ashishaf1de652016-03-02 18:03:43 +05303672
Anurag Chouhan83026002016-12-13 22:46:21 +05303673
Abhishek Singh4463af02016-03-30 15:20:19 +05303674 REG_VARIABLE(CFG_ENABLE_EDCA_INI_NAME, WLAN_PARAM_Integer,
3675 hdd_config_t, enable_edca_params,
3676 VAR_FLAGS_OPTIONAL |
3677 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3678 CFG_ENABLE_EDCA_INI_DEFAULT,
3679 CFG_ENABLE_EDCA_INI_MIN,
3680 CFG_ENABLE_EDCA_INI_MAX),
3681
3682 REG_VARIABLE(CFG_EDCA_VO_CWMIN_VALUE_NAME, WLAN_PARAM_Integer,
3683 hdd_config_t, edca_vo_cwmin,
3684 VAR_FLAGS_OPTIONAL |
3685 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3686 CFG_EDCA_VO_CWMIN_VALUE_DEFAULT,
3687 CFG_EDCA_VO_CWMIN_VALUE_MIN,
3688 CFG_EDCA_VO_CWMIN_VALUE_MAX),
3689
3690 REG_VARIABLE(CFG_EDCA_VI_CWMIN_VALUE_NAME, WLAN_PARAM_Integer,
3691 hdd_config_t, edca_vi_cwmin,
3692 VAR_FLAGS_OPTIONAL |
3693 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3694 CFG_EDCA_VI_CWMIN_VALUE_DEFAULT,
3695 CFG_EDCA_VI_CWMIN_VALUE_MIN,
3696 CFG_EDCA_VI_CWMIN_VALUE_MAX),
3697
3698 REG_VARIABLE(CFG_EDCA_BK_CWMIN_VALUE_NAME, WLAN_PARAM_Integer,
3699 hdd_config_t, edca_bk_cwmin,
3700 VAR_FLAGS_OPTIONAL |
3701 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3702 CFG_EDCA_BK_CWMIN_VALUE_DEFAULT,
3703 CFG_EDCA_BK_CWMIN_VALUE_MIN,
3704 CFG_EDCA_BK_CWMIN_VALUE_MAX),
3705
3706 REG_VARIABLE(CFG_EDCA_BE_CWMIN_VALUE_NAME, WLAN_PARAM_Integer,
3707 hdd_config_t, edca_be_cwmin,
3708 VAR_FLAGS_OPTIONAL |
3709 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3710 CFG_EDCA_BE_CWMIN_VALUE_DEFAULT,
3711 CFG_EDCA_BE_CWMIN_VALUE_MIN,
3712 CFG_EDCA_BE_CWMIN_VALUE_MAX),
3713
3714 REG_VARIABLE(CFG_EDCA_VO_CWMAX_VALUE_NAME, WLAN_PARAM_Integer,
3715 hdd_config_t, edca_vo_cwmax,
3716 VAR_FLAGS_OPTIONAL |
3717 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3718 CFG_EDCA_VO_CWMAX_VALUE_DEFAULT,
3719 CFG_EDCA_VO_CWMAX_VALUE_MIN,
3720 CFG_EDCA_VO_CWMAX_VALUE_MAX),
3721
3722 REG_VARIABLE(CFG_EDCA_VI_CWMAX_VALUE_NAME, WLAN_PARAM_Integer,
3723 hdd_config_t, edca_vi_cwmax,
3724 VAR_FLAGS_OPTIONAL |
3725 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3726 CFG_EDCA_VI_CWMAX_VALUE_DEFAULT,
3727 CFG_EDCA_VI_CWMAX_VALUE_MIN,
3728 CFG_EDCA_VI_CWMAX_VALUE_MAX),
3729
3730 REG_VARIABLE(CFG_EDCA_BK_CWMAX_VALUE_NAME, WLAN_PARAM_Integer,
3731 hdd_config_t, edca_bk_cwmax,
3732 VAR_FLAGS_OPTIONAL |
3733 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3734 CFG_EDCA_BK_CWMAX_VALUE_DEFAULT,
3735 CFG_EDCA_BK_CWMAX_VALUE_MIN,
3736 CFG_EDCA_BK_CWMAX_VALUE_MAX),
3737
3738 REG_VARIABLE(CFG_EDCA_BE_CWMAX_VALUE_NAME, WLAN_PARAM_Integer,
3739 hdd_config_t, edca_be_cwmax,
3740 VAR_FLAGS_OPTIONAL |
3741 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3742 CFG_EDCA_BE_CWMAX_VALUE_DEFAULT,
3743 CFG_EDCA_BE_CWMAX_VALUE_MIN,
3744 CFG_EDCA_BE_CWMAX_VALUE_MAX),
3745
3746 REG_VARIABLE(CFG_EDCA_VO_AIFS_VALUE_NAME, WLAN_PARAM_Integer,
3747 hdd_config_t, edca_vo_aifs,
3748 VAR_FLAGS_OPTIONAL |
3749 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3750 CFG_EDCA_VO_AIFS_VALUE_DEFAULT,
3751 CFG_EDCA_VO_AIFS_VALUE_MIN,
3752 CFG_EDCA_VO_AIFS_VALUE_MAX),
3753
3754 REG_VARIABLE(CFG_EDCA_VI_AIFS_VALUE_NAME, WLAN_PARAM_Integer,
3755 hdd_config_t, edca_vi_aifs,
3756 VAR_FLAGS_OPTIONAL |
3757 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3758 CFG_EDCA_VI_AIFS_VALUE_DEFAULT,
3759 CFG_EDCA_VI_AIFS_VALUE_MIN,
3760 CFG_EDCA_VI_AIFS_VALUE_MAX),
3761
3762 REG_VARIABLE(CFG_EDCA_BK_AIFS_VALUE_NAME, WLAN_PARAM_Integer,
3763 hdd_config_t, edca_bk_aifs,
3764 VAR_FLAGS_OPTIONAL |
3765 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3766 CFG_EDCA_BK_AIFS_VALUE_DEFAULT,
3767 CFG_EDCA_BK_AIFS_VALUE_MIN,
3768 CFG_EDCA_BK_AIFS_VALUE_MAX),
3769
3770 REG_VARIABLE(CFG_EDCA_BE_AIFS_VALUE_NAME, WLAN_PARAM_Integer,
3771 hdd_config_t, edca_be_aifs,
3772 VAR_FLAGS_OPTIONAL |
3773 VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3774 CFG_EDCA_BE_AIFS_VALUE_DEFAULT,
3775 CFG_EDCA_BE_AIFS_VALUE_MIN,
3776 CFG_EDCA_BE_AIFS_VALUE_MAX),
3777
Agrawal Ashishaf1de652016-03-02 18:03:43 +05303778 REG_VARIABLE( CFG_SEND_MGMT_PKT_VIA_WQ5_NAME , WLAN_PARAM_Integer,
3779 hdd_config_t, sendMgmtPktViaWQ5,
3780 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3781 CFG_SEND_MGMT_PKT_VIA_WQ5_DEF,
3782 CFG_SEND_MGMT_PKT_VIA_WQ5_MIN,
3783 CFG_SEND_MGMT_PKT_VIA_WQ5_MAX ),
3784
Rajeev Kumar Sirasanagandlaade0a332016-06-29 16:52:15 +05303785 REG_VARIABLE(CFG_SAP_PROBE_RESP_OFFLOAD_NAME, WLAN_PARAM_Integer,
3786 hdd_config_t, sap_probe_resp_offload,
3787 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3788 CFG_SAP_PROBE_RESP_OFFLOAD_DEFAULT,
3789 CFG_SAP_PROBE_RESP_OFFLOAD_MIN,
3790 CFG_SAP_PROBE_RESP_OFFLOAD_MAX),
Padma, Santhosh Kumar36183352016-11-08 17:48:34 +05303791
Hanumanth Reddy Pothulad864f312017-01-18 16:16:08 +05303792 REG_VARIABLE(CFG_SAP_INTERNAL_RESTART_NAME, WLAN_PARAM_Integer,
3793 hdd_config_t, sap_internal_restart,
Kapil Gupta137ef892016-12-13 19:38:00 +05303794 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
Hanumanth Reddy Pothulad864f312017-01-18 16:16:08 +05303795 CFG_SAP_INTERNAL_RESTART_DEFAULT,
3796 CFG_SAP_INTERNAL_RESTART_MIN,
3797 CFG_SAP_INTERNAL_RESTART_MAX),
Kapil Gupta137ef892016-12-13 19:38:00 +05303798
Padma, Santhosh Kumar36183352016-11-08 17:48:34 +05303799 REG_VARIABLE(CFG_DISABLE_SCAN_DURING_SCO, WLAN_PARAM_Integer,
3800 hdd_config_t, disable_scan_during_sco,
3801 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3802 CFG_DISABLE_SCAN_DURING_SCO_DEFAULT,
3803 CFG_DISABLE_SCAN_DURING_SCO_MIN,
3804 CFG_DISABLE_SCAN_DURING_SCO_MAX ),
Agrawal Ashish17ef5082016-10-17 18:33:21 +05303805#ifdef SAP_AUTH_OFFLOAD
3806 REG_VARIABLE(CFG_ENABLE_SAP_AUTH_OFL_NAME, WLAN_PARAM_Integer,
3807 hdd_config_t, enable_sap_auth_offload,
3808 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3809 CFG_ENABLE_SAP_AUTH_OFL_DEFAULT,
3810 CFG_ENABLE_SAP_AUTH_OFL_MIN,
3811 CFG_ENABLE_SAP_AUTH_OFL_MAX ),
3812
3813 REG_VARIABLE(CFG_SAP_AUTH_OFL_SECURITY_TYPE_NAME, WLAN_PARAM_Integer,
3814 hdd_config_t, sap_auth_offload_sec_type,
3815 VAR_FLAGS_OPTIONAL | CFG_SAP_AUTH_OFL_SECURITY_TYPE_DEFAULT,
3816 CFG_SAP_AUTH_OFL_SECURITY_TYPE_DEFAULT,
3817 CFG_SAP_AUTH_OFL_SECURITY_TYPE_MIN,
3818 CFG_SAP_AUTH_OFL_SECURITY_TYPE_MAX ),
3819
3820 REG_VARIABLE_STRING(CFG_SAP_AUTH_OFL_KEY_NAME, WLAN_PARAM_String,
3821 hdd_config_t, sap_auth_offload_key,
3822 VAR_FLAGS_OPTIONAL,
3823 (void *) CFG_SAP_AUTH_OFL_KEY_DEFAULT ),
3824#endif
Anurag Chouhan83026002016-12-13 22:46:21 +05303825#ifdef DHCP_SERVER_OFFLOAD
3826 REG_VARIABLE(CFG_DHCP_SERVER_OFFLOAD_SUPPORT_NAME, WLAN_PARAM_Integer,
3827 hdd_config_t, enable_dhcp_srv_offload,
3828 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3829 CFG_DHCP_SERVER_OFFLOAD_SUPPORT_DEFAULT,
3830 CFG_DHCP_SERVER_OFFLOAD_SUPPORT_MIN,
3831 CFG_DHCP_SERVER_OFFLOAD_SUPPORT_MAX),
3832
3833 REG_VARIABLE(CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_NAME, WLAN_PARAM_Integer,
3834 hdd_config_t, dhcp_max_num_clients,
3835 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3836 CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_DEFAULT,
3837 CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_MIN,
3838 CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_MAX),
3839
3840 REG_VARIABLE_STRING(CFG_DHCP_SERVER_IP_NAME, WLAN_PARAM_String,
3841 hdd_config_t, dhcp_srv_ip,
3842 VAR_FLAGS_OPTIONAL,
3843 (void *) CFG_DHCP_SERVER_IP_DEFAULT),
3844
3845 REG_VARIABLE(CFG_DHCP_SERVER_OFFLOAD_START_LSB_NAME, WLAN_PARAM_Integer,
3846 hdd_config_t, dhcp_start_lsb,
3847 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3848 CFG_DHCP_SERVER_OFFLOAD_START_LSB_DEFAULT,
3849 CFG_DHCP_SERVER_OFFLOAD_START_LSB_MIN,
3850 CFG_DHCP_SERVER_OFFLOAD_START_LSB_MAX),
3851#endif /* DHCP_SERVER_OFFLOAD */
Anurag Chouhan343af7e2016-12-16 13:11:19 +05303852 REG_VARIABLE(CFG_MAX_SCHED_SCAN_PLAN_INT_NAME, WLAN_PARAM_Integer,
3853 hdd_config_t, max_sched_scan_plan_interval,
3854 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3855 CFG_MAX_SCHED_SCAN_PLAN_INT_DEFAULT,
3856 CFG_MAX_SCHED_SCAN_PLAN_INT_MIN,
3857 CFG_MAX_SCHED_SCAN_PLAN_INT_MAX),
3858
3859 REG_VARIABLE(CFG_MAX_SCHED_SCAN_PLAN_ITRNS_NAME, WLAN_PARAM_Integer,
3860 hdd_config_t, max_sched_scan_plan_iterations,
3861 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3862 CFG_MAX_SCHED_SCAN_PLAN_ITRNS_DEFAULT,
3863 CFG_MAX_SCHED_SCAN_PLAN_ITRNS_MIN,
3864 CFG_MAX_SCHED_SCAN_PLAN_ITRNS_MAX),
Anurag Chouhan0b29de02016-12-16 13:18:40 +05303865
3866#ifdef MDNS_OFFLOAD
3867 REG_VARIABLE( CFG_MDNS_OFFLOAD_SUPPORT_NAME, WLAN_PARAM_Integer,
3868 hdd_config_t, enable_mdns_offload,
3869 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3870 CFG_MDNS_OFFLOAD_SUPPORT_DEFAULT,
3871 CFG_MDNS_OFFLOAD_SUPPORT_MIN,
3872 CFG_MDNS_OFFLOAD_SUPPORT_MAX ),
3873
3874 REG_VARIABLE_STRING( CFG_MDNS_FQDN_NAME, WLAN_PARAM_String,
3875 hdd_config_t, mdns_fqdn,
3876 VAR_FLAGS_OPTIONAL,
3877 (void *) CFG_MDNS_FQDN_DEFAULT ),
3878
3879 REG_VARIABLE_STRING( CFG_MDNS_UNIQUE_FQDN_NAME, WLAN_PARAM_String,
3880 hdd_config_t, mdns_uniquefqdn,
3881 VAR_FLAGS_OPTIONAL,
3882 (void *) CFG_MDNS_UNIQUE_FQDN_DEFAULT ),
3883
3884 REG_VARIABLE_STRING( CFG_MDNS_RESPONSE_TYPE_A_NAME, WLAN_PARAM_String,
3885 hdd_config_t, mdns_resp_type_a,
3886 VAR_FLAGS_OPTIONAL,
3887 (void *) CFG_MDNS_RESPONSE_TYPE_A_DEFAULT ),
3888
3889 REG_VARIABLE( CFG_MDNS_RESPONSE_TYPE_A_IPV4_NAME, WLAN_PARAM_HexInteger,
3890 hdd_config_t, mdns_resp_type_a_ipv4,
3891 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3892 CFG_MDNS_RESPONSE_TYPE_A_IPV4_DEFAULT,
3893 CFG_MDNS_RESPONSE_TYPE_A_IPV4_MIN,
3894 CFG_MDNS_RESPONSE_TYPE_A_IPV4_MAX ),
3895
3896 REG_VARIABLE_STRING( CFG_MDNS_RESPONSE_TYPE_TXT_NAME, WLAN_PARAM_String,
3897 hdd_config_t, mdns_resp_type_txt,
3898 VAR_FLAGS_OPTIONAL,
3899 (void *) CFG_MDNS_RESPONSE_TYPE_TXT_DEFAULT ),
3900
3901 REG_VARIABLE_STRING( CFG_MDNS_RESPONSE_TYPE_TXT_CNT_NAME, WLAN_PARAM_String,
3902 hdd_config_t, mdns_resp_type_txt_content,
3903 VAR_FLAGS_OPTIONAL,
3904 (void *) CFG_MDNS_RESPONSE_TYPE_TXT_CNT_DEFAULT ),
3905
3906 REG_VARIABLE_STRING( CFG_MDNS_RESPONSE_TYPE_PTR_NAME, WLAN_PARAM_String,
3907 hdd_config_t, mdns_resp_type_ptr,
3908 VAR_FLAGS_OPTIONAL,
3909 (void *) CFG_MDNS_RESPONSE_TYPE_PTR_DEFAULT ),
3910
3911 REG_VARIABLE_STRING( CFG_MDNS_RESPONSE_TYPE_PTR_DN_NAME, WLAN_PARAM_String,
3912 hdd_config_t, mdns_resp_type_ptr_dname,
3913 VAR_FLAGS_OPTIONAL,
3914 (void *) CFG_MDNS_RESPONSE_TYPE_PTR_DN_DEFAULT ),
3915
3916 REG_VARIABLE_STRING( CFG_MDNS_RESPONSE_TYPE_SRV_NAME, WLAN_PARAM_String,
3917 hdd_config_t, mdns_resp_type_srv,
3918 VAR_FLAGS_OPTIONAL,
3919 (void *) CFG_MDNS_RESPONSE_TYPE_SRV_DEFAULT ),
3920
3921 REG_VARIABLE( CFG_MDNS_RESPONSE_TYPE_SRV_PRIORITY_NAME, WLAN_PARAM_Integer,
3922 hdd_config_t, mdns_resp_type_srv_priority,
3923 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3924 CFG_MDNS_RESPONSE_TYPE_SRV_PRIORITY_DEFAULT,
3925 CFG_MDNS_RESPONSE_TYPE_SRV_PRIORITY_MIN,
3926 CFG_MDNS_RESPONSE_TYPE_SRV_PRIORITY_MAX ),
3927
3928 REG_VARIABLE( CFG_MDNS_RESPONSE_TYPE_SRV_WEIGHT_NAME, WLAN_PARAM_Integer,
3929 hdd_config_t, mdns_resp_type_srv_weight,
3930 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3931 CFG_MDNS_RESPONSE_TYPE_SRV_WEIGHT_DEFAULT,
3932 CFG_MDNS_RESPONSE_TYPE_SRV_WEIGHT_MIN,
3933 CFG_MDNS_RESPONSE_TYPE_SRV_WEIGHT_MAX ),
3934
3935 REG_VARIABLE( CFG_MDNS_RESPONSE_TYPE_SRV_PORT_NAME, WLAN_PARAM_Integer,
3936 hdd_config_t, mdns_resp_type_srv_port,
3937 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3938 CFG_MDNS_RESPONSE_TYPE_SRV_PORT_DEFAULT,
3939 CFG_MDNS_RESPONSE_TYPE_SRV_PORT_MIN,
3940 CFG_MDNS_RESPONSE_TYPE_SRV_PORT_MAX ),
3941
3942 REG_VARIABLE_STRING( CFG_MDNS_RESPONSE_TYPE_SRV_TGT_NAME, WLAN_PARAM_String,
3943 hdd_config_t, mdns_resp_type_srv_target,
3944 VAR_FLAGS_OPTIONAL,
3945 (void *) CFG_MDNS_RESPONSE_TYPE_SRV_TGT_DEFAULT ),
3946#endif /* MDNS_OFFLOAD */
Paul Zhang83289792017-02-28 18:58:52 +08003947
3948 REG_VARIABLE( CFG_STA_AUTH_RETRIES_FOR_CODE17_NAME, WLAN_PARAM_Integer,
3949 hdd_config_t, sta_auth_retries_for_code17,
3950 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3951 CFG_STA_AUTH_RETRIES_FOR_CODE17_DEFAULT,
3952 CFG_STA_AUTH_RETRIES_FOR_CODE17_MIN,
3953 CFG_STA_AUTH_RETRIES_FOR_CODE17_MAX ),
Ashish Kumar Dhanotiyabf6bcea2017-08-17 19:14:33 +05303954
Sourav Mohapatra077057d2018-02-07 19:19:18 +05303955 REG_VARIABLE( CFG_INDOOR_CHANNEL_SUPPORT_NAME, WLAN_PARAM_Integer,
3956 hdd_config_t, indoor_channel_support,
3957 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3958 CFG_INDOOR_CHANNEL_SUPPORT_DEFAULT,
3959 CFG_INDOOR_CHANNEL_SUPPORT_MIN,
3960 CFG_INDOOR_CHANNEL_SUPPORT_MAX),
3961
3962
Ashish Kumar Dhanotiyabf6bcea2017-08-17 19:14:33 +05303963 REG_VARIABLE( CFG_TRIGGER_NULLFRAME_BEFORE_HB_NAME, WLAN_PARAM_Integer,
3964 hdd_config_t, trigger_nullframe_before_hb,
3965 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3966 CFG_TRIGGER_NULLFRAME_BEFORE_HB_DEFAULT,
3967 CFG_TRIGGER_NULLFRAME_BEFORE_HB_MIN,
3968 CFG_TRIGGER_NULLFRAME_BEFORE_HB_MAX ),
Abhishek Singhceb6fe22017-11-27 13:53:18 +05303969
3970 REG_VARIABLE(CFG_FORCE_SCC_WITH_ECSA_NAME, WLAN_PARAM_Integer,
3971 hdd_config_t, force_scc_with_ecsa,
3972 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3973 CFG_FORCE_SCC_WITH_ECSA_DEFAULT,
3974 CFG_FORCE_SCC_WITH_ECSA_MIN,
3975 CFG_FORCE_SCC_WITH_ECSA_MAX ),
Ganesh Kondabattinie3ac17f2017-11-30 15:09:07 +05303976
3977 REG_VARIABLE(CFG_STA_SAP_SCC_ON_DFS_CHAN, WLAN_PARAM_HexInteger,
3978 hdd_config_t, sta_sap_scc_on_dfs_chan,
3979 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3980 CFG_STA_SAP_SCC_ON_DFS_CHAN_DEFAULT,
3981 CFG_STA_SAP_SCC_ON_DFS_CHAN_MIN,
3982 CFG_STA_SAP_SCC_ON_DFS_CHAN_MAX),
Yeshwanth Sriram Guntuka8d9b29c2017-12-12 15:44:57 +05303983
3984 REG_VARIABLE_STRING(CFG_ENABLE_AGG_BTC_SCO_OUI_NAME, WLAN_PARAM_String,
3985 hdd_config_t, enable_aggr_btc_sco_oui,
3986 VAR_FLAGS_OPTIONAL,
3987 (void *) CFG_ENABLE_AGG_BTC_SCO_OUI_DEFAULT),
3988
3989 REG_VARIABLE(CFG_NUM_BUFF_BTC_SCO_NAME, WLAN_PARAM_Integer,
3990 hdd_config_t, num_buff_aggr_btc_sco,
3991 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3992 CFG_NUM_BUFF_BTC_SCO_DEFAULT,
3993 CFG_NUM_BUFF_BTC_SCO_MIN,
3994 CFG_NUM_BUFF_BTC_SCO_MAX ),
Ashish Kumar Dhanotiya17866e12018-01-16 19:53:43 +05303995
3996 REG_VARIABLE(CFG_ENABLE_POWERSAVE_OFFLOAD_NAME, WLAN_PARAM_Integer,
3997 hdd_config_t, enable_power_save_offload,
3998 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
3999 CFG_ENABLE_POWERSAVE_OFFLOAD_DEFAULT,
4000 CFG_ENABLE_POWERSAVE_OFFLOAD_MIN,
4001 CFG_ENABLE_POWERSAVE_OFFLOAD_MAX),
Sourav Mohapatra7288ba42018-04-12 19:15:57 +05304002
4003 REG_VARIABLE(CFG_BTC_2M_DYN_LONG_WLAN_LEN_NAME, WLAN_PARAM_Integer,
4004 hdd_config_t, btc_dyn_wlan_len,
4005 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
4006 CFG_BTC_2M_DYN_LONG_WLAN_LEN_DEFAULT,
4007 CFG_BTC_2M_DYN_LONG_WLAN_LEN_MIN,
4008 CFG_BTC_2M_DYN_LONG_WLAN_LEN_MAX),
4009
4010 REG_VARIABLE(CFG_BTC_2M_DYN_LONG_BT_LEN_NAME, WLAN_PARAM_Integer,
4011 hdd_config_t, btc_dyn_bt_len,
4012 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
4013 CFG_BTC_2M_DYN_LONG_BT_LEN_DEFAULT,
4014 CFG_BTC_2M_DYN_LONG_BT_LEN_MIN,
4015 CFG_BTC_2M_DYN_LONG_BT_LEN_MAX),
4016
4017 REG_VARIABLE(CFG_BTC_2M_DYN_LONG_BT_EXT_LEN_NAME, WLAN_PARAM_Integer,
4018 hdd_config_t, btc_dyn_bt_ext_len,
4019 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
4020 CFG_BTC_2M_DYN_LONG_BT_EXT_LEN_DEFAULT,
4021 CFG_BTC_2M_DYN_LONG_BT_EXT_LEN_MIN,
4022 CFG_BTC_2M_DYN_LONG_BT_EXT_LEN_MAX),
4023
4024 REG_VARIABLE(CFG_BTC_2M_DYN_LONG_NUM_BT_EXT_NAME, WLAN_PARAM_Integer,
4025 hdd_config_t, btc_dyn_num_bt_ext,
4026 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
4027 CFG_BTC_2M_DYN_LONG_NUM_BT_EXT_DEFAULT,
4028 CFG_BTC_2M_DYN_LONG_NUM_BT_EXT_MIN,
4029 CFG_BTC_2M_DYN_LONG_NUM_BT_EXT_MAX),
4030
Pragaspathi Thilagaraj03e2ab12018-06-22 12:19:48 +05304031 REG_VARIABLE(CFG_FORCE_RSNE_OVERRIDE_NAME, WLAN_PARAM_Integer,
4032 hdd_config_t, force_rsne_override,
4033 VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
4034 CFG_FORCE_RSNE_OVERRIDE_DEFAULT,
4035 CFG_FORCE_RSNE_OVERRIDE_MIN,
4036 CFG_FORCE_RSNE_OVERRIDE_MAX),
4037
Arunk Khandavalli95608be2019-01-22 13:12:54 +05304038 REG_VARIABLE_STRING(CFG_ENABLE_DEFAULT_SAP, WLAN_PARAM_String,
4039 hdd_config_t, enabledefaultSAP,
4040 VAR_FLAGS_NONE,
4041 (void *)CFG_ENABLE_DEFAULT_SAP),
4042
Tushnim Bhattacharyya9889e792013-12-19 18:18:36 -08004043};
4044
Jeff Johnson295189b2012-06-20 16:38:30 -07004045/*
4046 * This function returns a pointer to the character after the occurence
4047 * of a new line character. It also modifies the original string by replacing
4048 * the '\n' character with the null character.
4049 * Function returns NULL if no new line character was found before end of
4050 * string was reached
4051 */
Vinay Krishna Eranna4fba8d22014-12-02 19:34:22 +05304052static char* get_next_line(char* str, char *str_end)
Jeff Johnson295189b2012-06-20 16:38:30 -07004053{
4054 char c;
4055
4056 if( str == NULL || *str == '\0') {
4057 return NULL;
4058 }
4059
4060 c = *str;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004061 while(c != '\n' && c != '\0' && c != 0xd) {
Jeff Johnson295189b2012-06-20 16:38:30 -07004062 str = str + 1;
Vinay Krishna Eranna4fba8d22014-12-02 19:34:22 +05304063 if (str > str_end)
4064 {
4065 return str;
4066 }
Jeff Johnson295189b2012-06-20 16:38:30 -07004067 c = *str;
4068 }
4069
4070 if (c == '\0' ) {
4071 return NULL;
4072 }
4073 else
4074 {
Jeff Johnson295189b2012-06-20 16:38:30 -07004075 return (str+1);
4076 }
4077
4078 return NULL;
4079}
4080
4081// look for space. Ascii values to look are -
4082// 0x09 == horizontal tab
4083// 0x0a == Newline ("\n")
4084// 0x0b == vertical tab
4085// 0x0c == Newpage or feed form.
4086// 0x0d == carriage return (CR or "\r")
4087// Null ('\0') should not considered as space.
4088#define i_isspace(ch) (((ch) >= 0x09 && (ch) <= 0x0d) || (ch) == ' ')
4089
4090/*
4091 * This function trims any leading and trailing white spaces
4092 */
4093static char *i_trim(char *str)
4094
4095{
4096 char *ptr;
4097
4098 if(*str == '\0') return str;
4099
4100 /* Find the first non white-space*/
4101 for (ptr = str; i_isspace(*ptr); ptr++);
4102 if (*ptr == '\0')
4103 return str;
4104
4105 /* This is the new start of the string*/
4106 str = ptr;
4107
4108 /* Find the last non white-space */
4109 ptr += strlen(ptr) - 1;
4110 for (; ptr != str && i_isspace(*ptr); ptr--);
4111 /* Null terminate the following character */
4112 ptr[1] = '\0';
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004113
Jeff Johnson295189b2012-06-20 16:38:30 -07004114 return str;
4115}
4116
4117
4118//Structure to store each entry in qcom_cfg.ini file
4119typedef struct
4120{
4121 char *name;
4122 char *value;
4123}tCfgIniEntry;
4124
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004125static VOS_STATUS hdd_apply_cfg_ini( hdd_context_t * pHddCtx,
Jeff Johnson295189b2012-06-20 16:38:30 -07004126 tCfgIniEntry* iniTable, unsigned long entries);
4127
4128#ifdef WLAN_CFG_DEBUG
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004129void dump_cfg_ini (tCfgIniEntry* iniTable, unsigned long entries)
Jeff Johnson295189b2012-06-20 16:38:30 -07004130{
4131 unsigned long i;
4132
4133 for (i = 0; i < entries; i++) {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004134 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "%s entry Name=[%s] value=[%s]",
Jeff Johnson295189b2012-06-20 16:38:30 -07004135 WLAN_INI_FILE, iniTable[i].name, iniTable[i].value);
4136 }
4137}
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004138#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07004139
4140/*
4141 * This function reads the qcom_cfg.ini file and
4142 * parses each 'Name=Value' pair in the ini file
4143 */
4144VOS_STATUS hdd_parse_config_ini(hdd_context_t* pHddCtx)
4145{
4146 int status, i=0;
4147 /** Pointer for firmware image data */
4148 const struct firmware *fw = NULL;
Jeff Johnson4416a782013-03-25 14:17:50 -07004149 char *buffer, *line, *pTemp = NULL;
Jeff Johnson295189b2012-06-20 16:38:30 -07004150 size_t size;
4151 char *name, *value;
Madan Mohan Koyyalamudi729972c2012-10-21 12:39:24 -07004152 /* cfgIniTable is static to avoid excess stack usage */
4153 static tCfgIniEntry cfgIniTable[MAX_CFG_INI_ITEMS];
Jeff Johnson295189b2012-06-20 16:38:30 -07004154 VOS_STATUS vos_status = VOS_STATUS_SUCCESS;
4155
4156 memset(cfgIniTable, 0, sizeof(cfgIniTable));
4157
4158 status = request_firmware(&fw, WLAN_INI_FILE, pHddCtx->parent_dev);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004159
Jeff Johnson295189b2012-06-20 16:38:30 -07004160 if(status)
4161 {
Arif Hussain6d2a3322013-11-17 19:50:10 -08004162 hddLog(VOS_TRACE_LEVEL_FATAL, "%s: request_firmware failed %d",__func__, status);
Jeff Johnson4416a782013-03-25 14:17:50 -07004163 vos_status = VOS_STATUS_E_FAILURE;
4164 goto config_exit;
Jeff Johnson295189b2012-06-20 16:38:30 -07004165 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004166 if(!fw || !fw->data || !fw->size)
Jeff Johnson295189b2012-06-20 16:38:30 -07004167 {
Arif Hussain6d2a3322013-11-17 19:50:10 -08004168 hddLog(VOS_TRACE_LEVEL_FATAL, "%s: %s download failed",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07004169 __func__, WLAN_INI_FILE);
Jeff Johnson4416a782013-03-25 14:17:50 -07004170 vos_status = VOS_STATUS_E_FAILURE;
4171 goto config_exit;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004172 }
Jeff Johnson295189b2012-06-20 16:38:30 -07004173
Ratheesh S P36dbc932015-08-07 14:28:57 +05304174 hddLog(VOS_TRACE_LEVEL_INFO , "%s: qcom_cfg.ini Size %zu", __func__, fw->size);
Jeff Johnson295189b2012-06-20 16:38:30 -07004175
Sushant Kaushikf4a27972015-04-16 16:48:00 +05304176 buffer = (char*)vos_mem_vmalloc(fw->size);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004177
Jeff Johnson295189b2012-06-20 16:38:30 -07004178 if(NULL == buffer) {
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07004179 hddLog(VOS_TRACE_LEVEL_FATAL, "%s: kmalloc failure",__func__);
Jeff Johnson295189b2012-06-20 16:38:30 -07004180 release_firmware(fw);
4181 return VOS_STATUS_E_FAILURE;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004182 }
Jeff Johnson295189b2012-06-20 16:38:30 -07004183 pTemp = buffer;
4184
4185 vos_mem_copy((void*)buffer,(void *)fw->data, fw->size);
4186 size = fw->size;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004187
Jeff Johnson295189b2012-06-20 16:38:30 -07004188 while (buffer != NULL)
4189 {
Vinay Krishna Erannaf5a30832014-08-13 18:44:37 +05304190 /*
4191 * get_next_line function used to modify the \n and \r delimiter
4192 * to \0 before returning, without checking if it is over parsing the
4193 * source buffer. So changed the function not to modify the buffer
4194 * passed to it and letting the calling/caller function to take
4195 * care of the return pointer validation and modification of the buffer.
4196 * So validating if the return pointer is not greater than the end
4197 * buffer address and modifying the buffer value.
4198 */
Vinay Krishna Eranna4fba8d22014-12-02 19:34:22 +05304199 line = get_next_line(buffer, (pTemp + (fw->size-1)));
Hanumantha Reddy Pothula6f7811f2015-05-29 18:59:36 +05304200 if(line >= (pTemp + fw->size)) {
Vinay Krishna Erannaf5a30832014-08-13 18:44:37 +05304201 hddLog(VOS_TRACE_LEVEL_FATAL, "%s: INI file seems to be corrupted",
4202 __func__);
4203 vos_status = VOS_STATUS_E_FAILURE;
4204 goto config_exit;
4205 }
4206 else if(line) {
4207 *(line - 1) = '\0';
4208 }
4209
Jeff Johnson295189b2012-06-20 16:38:30 -07004210 buffer = i_trim(buffer);
4211
4212 hddLog(LOG1, "%s: item", buffer);
4213
4214 if(strlen((char*)buffer) == 0 || *buffer == '#') {
4215 buffer = line;
4216 continue;
4217 }
4218 else if(strncmp(buffer, "END", 3) == 0 ) {
4219 break;
4220 }
4221 else
4222 {
4223 name = buffer;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004224 while(*buffer != '=' && *buffer != '\0')
Jeff Johnson295189b2012-06-20 16:38:30 -07004225 buffer++;
4226 if(*buffer != '\0') {
4227 *buffer++ = '\0';
4228 i_trim(name);
4229 if(strlen (name) != 0) {
4230 buffer = i_trim(buffer);
4231 if(strlen(buffer)>0) {
4232 value = buffer;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004233 while(!i_isspace(*buffer) && *buffer != '\0')
Jeff Johnson295189b2012-06-20 16:38:30 -07004234 buffer++;
4235 *buffer = '\0';
4236 cfgIniTable[i].name= name;
4237 cfgIniTable[i++].value= value;
4238 if(i >= MAX_CFG_INI_ITEMS) {
Arif Hussain6d2a3322013-11-17 19:50:10 -08004239 hddLog(LOGE,"%s: Number of items in %s > %d",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07004240 __func__, WLAN_INI_FILE, MAX_CFG_INI_ITEMS);
Jeff Johnson295189b2012-06-20 16:38:30 -07004241 break;
4242 }
4243 }
4244 }
4245 }
4246 }
4247 buffer = line;
4248 }
4249
4250 //Loop through the registry table and apply all these configs
4251 vos_status = hdd_apply_cfg_ini(pHddCtx, cfgIniTable, i);
4252
Jeff Johnson4416a782013-03-25 14:17:50 -07004253config_exit:
Jeff Johnson295189b2012-06-20 16:38:30 -07004254 release_firmware(fw);
Sushant Kaushikf4a27972015-04-16 16:48:00 +05304255 vos_mem_vfree(pTemp);
Jeff Johnson295189b2012-06-20 16:38:30 -07004256 return vos_status;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004257}
Jeff Johnson295189b2012-06-20 16:38:30 -07004258
4259
4260static void print_hdd_cfg(hdd_context_t *pHddCtx)
4261{
4262 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "*********Config values in HDD Adapter*******");
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004263 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 -07004264 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [OperatingChannel] Value = [%u]",pHddCtx->cfg_ini->OperatingChannel);
4265 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [PowerUsageControl] Value = [%s]",pHddCtx->cfg_ini->PowerUsageControl);
4266 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [fIsImpsEnabled] Value = [%u]",pHddCtx->cfg_ini->fIsImpsEnabled);
4267 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 -07004268 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 -07004269 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 -08004270 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4271 "Name = [gIbssBssid] Value =["MAC_ADDRESS_STR"]",
4272 MAC_ADDR_ARRAY(pHddCtx->cfg_ini->IbssBssid.bytes));
Jeff Johnson295189b2012-06-20 16:38:30 -07004273
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004274 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Arif Hussaina7c8e412013-11-20 11:06:42 -08004275 "Name = [Intf0MacAddress] Value =["MAC_ADDRESS_STR"]",
4276 MAC_ADDR_ARRAY(pHddCtx->cfg_ini->intfMacAddr[0].bytes));
Jeff Johnson295189b2012-06-20 16:38:30 -07004277
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004278 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Arif Hussaina7c8e412013-11-20 11:06:42 -08004279 "Name = [Intf1MacAddress] Value =["MAC_ADDRESS_STR"]",
4280 MAC_ADDR_ARRAY(pHddCtx->cfg_ini->intfMacAddr[1].bytes));
Jeff Johnson295189b2012-06-20 16:38:30 -07004281
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004282 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Arif Hussaina7c8e412013-11-20 11:06:42 -08004283 "Name = [Intf2MacAddress] Value =["MAC_ADDRESS_STR"]",
4284 MAC_ADDR_ARRAY(pHddCtx->cfg_ini->intfMacAddr[2].bytes));
Jeff Johnson295189b2012-06-20 16:38:30 -07004285
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004286 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Arif Hussaina7c8e412013-11-20 11:06:42 -08004287 "Name = [Intf3MacAddress] Value =["MAC_ADDRESS_STR"]",
4288 MAC_ADDR_ARRAY(pHddCtx->cfg_ini->intfMacAddr[3].bytes));
Jeff Johnson295189b2012-06-20 16:38:30 -07004289
Arif Hussain6d2a3322013-11-17 19:50:10 -08004290 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 -07004291
Arif Hussain6d2a3322013-11-17 19:50:10 -08004292 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gAPCntryCode] Value =[%c%c%c]",
Jeff Johnson295189b2012-06-20 16:38:30 -07004293 pHddCtx->cfg_ini->apCntryCode[0],pHddCtx->cfg_ini->apCntryCode[1],
4294 pHddCtx->cfg_ini->apCntryCode[2]);
4295 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 -08004296 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 -07004297
Arif Hussain6d2a3322013-11-17 19:50:10 -08004298 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableListenMode] Value = [%u]", pHddCtx->cfg_ini->nEnableListenMode);
4299 VOS_TRACE (VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gApProtection] value = [%u]",pHddCtx->cfg_ini->apProtection);
4300 VOS_TRACE (VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableApOBSSProt] value = [%u]",pHddCtx->cfg_ini->apOBSSProtEnabled);
4301 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 -08004302
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004303 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [ChannelBondingMode] Value = [%u]",pHddCtx->cfg_ini->nChannelBondingMode24GHz);
Abhishek Singhe3beee22017-07-31 15:35:40 +05304304 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [%s] Value = [%u] ",
4305 CFG_OVERRIDE_HT40_20_24GHZ_NAME, pHddCtx->cfg_ini->override_ht20_40_24g);
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004306 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [ChannelBondingMode] Value = [%u]",pHddCtx->cfg_ini->nChannelBondingMode5GHz);
4307 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 -07004308 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [WmmMode] Value = [%u] ",pHddCtx->cfg_ini->WmmMode);
4309 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [UapsdMask] Value = [0x%x] ",pHddCtx->cfg_ini->UapsdMask);
4310 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [PktClassificationBasis] Value = [%u] ",pHddCtx->cfg_ini->PktClassificationBasis);
4311 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [ImplicitQosIsEnabled] Value = [%u]",(int)pHddCtx->cfg_ini->bImplicitQosEnabled);
4312
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004313 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraUapsdVoSrvIntv] Value = [%u] ",pHddCtx->cfg_ini->InfraUapsdVoSrvIntv);
4314 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 -07004315
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004316 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraUapsdViSrvIntv] Value = [%u] ",pHddCtx->cfg_ini->InfraUapsdViSrvIntv);
4317 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 -07004318
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004319 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraUapsdBeSrvIntv] Value = [%u] ",pHddCtx->cfg_ini->InfraUapsdBeSrvIntv);
4320 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 -07004321
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004322 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraUapsdBkSrvIntv] Value = [%u] ",pHddCtx->cfg_ini->InfraUapsdBkSrvIntv);
4323 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 -08004324#ifdef FEATURE_WLAN_ESE
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004325 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 -08004326 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 -07004327 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [FastTransitionEnabled] Value = [%u] ",pHddCtx->cfg_ini->isFastTransitionEnabled);
4328 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 -08004329#endif
Jeff Johnson04dd8a82012-06-29 20:41:40 -07004330#ifdef FEATURE_WLAN_LFR
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004331 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 -08004332 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 -08004333#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08004334#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004335 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [RoamRssiDiff] Value = [%u] ",pHddCtx->cfg_ini->RoamRssiDiff);
4336 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [ImmediateRoamRssiDiff] Value = [%u] ",pHddCtx->cfg_ini->nImmediateRoamRssiDiff);
4337 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 -07004338#endif
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07004339#ifdef FEATURE_WLAN_OKC
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004340 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 -07004341#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07004342 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraDirAcVo] Value = [%u] ",pHddCtx->cfg_ini->InfraDirAcVo);
4343 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 -07004344 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraMeanDataRateAcVo] Value = [0x%x] ",pHddCtx->cfg_ini->InfraMeanDataRateAcVo);
4345 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 -07004346 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraSbaAcVo] Value = [0x%x] ",pHddCtx->cfg_ini->InfraSbaAcVo);
4347
4348 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraDirAcVi] Value = [%u] ",pHddCtx->cfg_ini->InfraDirAcVi);
4349 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 -07004350 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraMeanDataRateAcVi] Value = [0x%x] ",pHddCtx->cfg_ini->InfraMeanDataRateAcVi);
4351 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 -07004352 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraSbaAcVi] Value = [0x%x] ",pHddCtx->cfg_ini->InfraSbaAcVi);
4353
4354 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraDirAcBe] Value = [%u] ",pHddCtx->cfg_ini->InfraDirAcBe);
4355 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 -07004356 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraMeanDataRateAcBe] Value = [0x%x] ",pHddCtx->cfg_ini->InfraMeanDataRateAcBe);
4357 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 -07004358 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraSbaAcBe] Value = [0x%x] ",pHddCtx->cfg_ini->InfraSbaAcBe);
4359
4360 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraDirAcBk] Value = [%u] ",pHddCtx->cfg_ini->InfraDirAcBk);
4361 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 -07004362 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraMeanDataRateAcBk] Value = [0x%x] ",pHddCtx->cfg_ini->InfraMeanDataRateAcBk);
4363 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 -07004364 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraSbaAcBk] Value = [0x%x] ",pHddCtx->cfg_ini->InfraSbaAcBk);
4365
4366 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [WfqBkWeight] Value = [%u] ",pHddCtx->cfg_ini->WfqBkWeight);
4367 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [WfqBeWeight] Value = [%u] ",pHddCtx->cfg_ini->WfqBeWeight);
4368 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [WfqViWeight] Value = [%u] ",pHddCtx->cfg_ini->WfqViWeight);
4369 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 -07004370 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 -08004371 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [BkReorderAgingTime] Value = [%u] ",pHddCtx->cfg_ini->BkReorderAgingTime);
4372 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [BeReorderAgingTime] Value = [%u] ",pHddCtx->cfg_ini->BeReorderAgingTime);
4373 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [ViReorderAgingTime] Value = [%u] ",pHddCtx->cfg_ini->ViReorderAgingTime);
4374 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 -07004375 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [mcastBcastFilterSetting] Value = [%u] ",pHddCtx->cfg_ini->mcastBcastFilterSetting);
4376 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 -08004377#ifdef WLAN_FEATURE_VOWIFI_11R
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004378 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 -07004379#endif
4380
Girish Gowlibf0e1ab2015-01-19 16:05:16 +05304381 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 -07004382#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004383 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nNeighborReassocRssiThreshold] Value = [%u] ",pHddCtx->cfg_ini->nNeighborReassocRssiThreshold);
4384 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nNeighborLookupRssiThreshold] Value = [%u] ",pHddCtx->cfg_ini->nNeighborLookupRssiThreshold);
4385 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nNeighborScanMinChanTime] Value = [%u] ",pHddCtx->cfg_ini->nNeighborScanMinChanTime);
4386 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nNeighborScanMaxChanTime] Value = [%u] ",pHddCtx->cfg_ini->nNeighborScanMaxChanTime);
4387 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nMaxNeighborRetries] Value = [%u] ",pHddCtx->cfg_ini->nMaxNeighborReqTries);
4388 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nNeighborScanPeriod] Value = [%u] ",pHddCtx->cfg_ini->nNeighborScanPeriod);
4389 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nNeighborScanResultsRefreshPeriod] Value = [%u] ",pHddCtx->cfg_ini->nNeighborResultsRefreshPeriod);
4390 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 +05304391 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nNeighborInitialForcedRoamTo5GhEnable] Value = [%u] ",pHddCtx->cfg_ini->nNeighborInitialForcedRoamTo5GhEnable);
Sreelakshmi Konamki70bfdaf2017-05-29 18:47:29 +05304392 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [nWeakZoneRssiThresholdForRoam] Value = [%u] ",pHddCtx->cfg_ini->nWeakZoneRssiThresholdForRoam);
Jeff Johnson295189b2012-06-20 16:38:30 -07004393#endif
4394 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [burstSizeDefinition] Value = [0x%x] ",pHddCtx->cfg_ini->burstSizeDefinition);
4395 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [tsInfoAckPolicy] Value = [0x%x] ",pHddCtx->cfg_ini->tsInfoAckPolicy);
4396 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [rfSettlingTimeUs] Value = [%u] ",pHddCtx->cfg_ini->rfSettlingTimeUs);
4397 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [bSingleTidRc] Value = [%u] ",pHddCtx->cfg_ini->bSingleTidRc);
4398 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gDynamicPSPollvalue] Value = [%u] ",pHddCtx->cfg_ini->dynamicPsPollValue);
4399 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gAddTSWhenACMIsOff] Value = [%u] ",pHddCtx->cfg_ini->AddTSWhenACMIsOff);
4400 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gValidateScanList] Value = [%u] ",pHddCtx->cfg_ini->fValidateScanList);
4401
4402 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gStaKeepAlivePeriod] Value = [%u] ",pHddCtx->cfg_ini->infraStaKeepAlivePeriod);
4403 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gApDataAvailPollInterVal] Value = [%u] ",pHddCtx->cfg_ini->apDataAvailPollPeriodInMs);
4404 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableBtAmp] Value = [%u] ",pHddCtx->cfg_ini->enableBtAmp);
4405#ifdef WLAN_BTAMP_FEATURE
4406 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [BtAmpPreferredChannel] Value = [%u] ",pHddCtx->cfg_ini->preferredChannel);
4407#endif //WLAN_BTAMP_FEATURE
4408 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [BandCapability] Value = [%u] ",pHddCtx->cfg_ini->nBandCapability);
4409 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [fEnableBeaconEarlyTermination] Value = [%u] ",pHddCtx->cfg_ini->fEnableBeaconEarlyTermination);
4410 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [teleBcnWakeupEnable] Value = [%u] ",pHddCtx->cfg_ini->teleBcnWakeupEn);
4411 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [transListenInterval] Value = [%u] ",pHddCtx->cfg_ini->nTeleBcnTransListenInterval);
4412 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [transLiNumIdleBeacons] Value = [%u] ",pHddCtx->cfg_ini->nTeleBcnTransLiNumIdleBeacons);
4413 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [maxListenInterval] Value = [%u] ",pHddCtx->cfg_ini->nTeleBcnMaxListenInterval);
4414 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [maxLiNumIdleBeacons] Value = [%u] ",pHddCtx->cfg_ini->nTeleBcnMaxLiNumIdleBeacons);
4415 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [bcnEarlyTermWakeInterval] Value = [%u] ",pHddCtx->cfg_ini->bcnEarlyTermWakeInterval);
Jeff Johnson295189b2012-06-20 16:38:30 -07004416 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableBypass11d] Value = [%u] ",pHddCtx->cfg_ini->enableBypass11d);
4417 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 +05304418 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 -07004419 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gReportMaxLinkSpeed] Value = [%u] ",pHddCtx->cfg_ini->reportMaxLinkSpeed);
4420 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 -07004421#ifdef WLAN_FEATURE_11AC
Arif Hussain6d2a3322013-11-17 19:50:10 -08004422 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 -07004423#endif
4424 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [enableFirstScan2GOnly] Value = [%u] ",pHddCtx->cfg_ini->enableFirstScan2GOnly);
4425 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [skipDfsChnlInP2pSearch] Value = [%u] ",pHddCtx->cfg_ini->skipDfsChnlInP2pSearch);
4426 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 +05304427 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 -08004428 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableLpwrImgTransition] Value = [%u] ",pHddCtx->cfg_ini->enableLpwrImgTransition);
AnjaneeDevi Kapparapu3f7edc52016-10-19 15:16:09 +05304429 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [enable_conc_bmiss] Value = [%u] ",pHddCtx->cfg_ini->enable_conc_bmiss);
4430 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [enable_units_bwait] Value = [%u] ",pHddCtx->cfg_ini->enable_units_bwait);
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -07004431 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 -07004432 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 -07004433
Leo Chang64d68bc2013-06-04 15:40:52 -07004434 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableTrafficMonitor] Value = [%u] ", pHddCtx->cfg_ini->enableTrafficMonitor);
4435 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 -07004436 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 -07004437 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 +05304438 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 +05304439 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gGoLinkMonitorPeriod] Value = [%u]",pHddCtx->cfg_ini->goLinkMonitorPeriod);
4440 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gApLinkMonitorPeriod] Value = [%u]",pHddCtx->cfg_ini->apLinkMonitorPeriod);
4441 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gGoKeepAlivePeriod] Value = [%u]",pHddCtx->cfg_ini->goKeepAlivePeriod);
4442 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 -07004443 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gAmsduSupportInAMPDU] Value = [%u] ",pHddCtx->cfg_ini->isAmsduSupportInAMPDU);
4444 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 -08004445 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 +05304446
Tushnim Bhattacharyya9889e792013-12-19 18:18:36 -08004447 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 +05304448
4449 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 +05304450 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 +05304451 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gAsdRTTRssiHystThreshold]Value = [%u]",pHddCtx->cfg_ini->gAsdRTTRssiHystThreshold);
Abhishek Singhc98534e2015-06-12 10:44:34 +05304452 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4453 "Name = [gIgnorePeerErpInfo] Value = [%u] ",
4454 pHddCtx->cfg_ini->ignorePeerErpInfo);
Abhishek Singh795e1b82015-09-25 15:35:03 +05304455 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4456 "Name = [disableP2PMacSpoofing] Value = [%u] ",
4457 pHddCtx->cfg_ini->disableP2PMacSpoofing);
Abhishek Singh837adf22015-10-01 17:37:37 +05304458 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4459 "Name = [enableFatalEvent] Value = [%u] ",
4460 pHddCtx->cfg_ini->enableFatalEvent);
Sandeep Puligillac80f26e2014-03-11 18:36:10 +05304461 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 +05304462 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 +05304463#ifdef WLAN_FEATURE_AP_HT40_24G
4464 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gApHT4024G] Value = [%u]", pHddCtx->cfg_ini->apHT40_24GEnabled);
4465#endif
Peng Xufc6ad8e2014-09-25 13:16:43 +05304466 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gAcsScanBandPreference] Value = [%u] ",pHddCtx->cfg_ini->acsScanBandPreference);
Sushant Kaushik87787972015-09-11 16:05:00 +05304467 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gACSBandSwitchThreshold] value = [%u]",pHddCtx->cfg_ini->acsBandSwitchThreshold);
4468 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gDeferScanTimeInterval] value = [%u]",pHddCtx->cfg_ini->nDeferScanTimeInterval);
Agarwal Ashishef54a182014-12-16 15:07:31 +05304469 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 +05304470 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gDxeReplenishRXTimerVal] Value = [%u] ", pHddCtx->cfg_ini->dxeReplenishRXTimerVal);
4471 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gDxeSSREnable] Value = [%u] ", pHddCtx->cfg_ini->dxeSSREnable);
Hanumantha Reddy Pothulaee001fc2015-05-26 15:21:53 +05304472 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [toggleArpBDRates] Value = [%u] ", pHddCtx->cfg_ini->toggleArpBDRates);
Padma, Santhosh Kumare2eb0fa2015-08-26 13:40:47 +05304473 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [ExtScanConcMode] Value = [%u] ", pHddCtx->cfg_ini->cfgExtScanConcMode);
Arun Khandavalliffbf9c02015-12-03 16:48:53 +05304474 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [gEnableForceTargetAssert] Value = [%u] ", pHddCtx->cfg_ini->crash_inject_enabled);
Bhargav Shah66896792015-10-01 18:17:37 +05304475 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4476 "Name = [gTcpDelAckComputeInterval] Value = [%u] ",
4477 pHddCtx->cfg_ini->tcpDelAckComputeInterval);
4478 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4479 "Name = [gTcpDelAckThresholdHigh] Value = [%u] ",
4480 pHddCtx->cfg_ini->tcpDelAckThresholdHigh);
4481 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4482 "Name = [gTcpDelAckThresholdLow] Value = [%u] ",
4483 pHddCtx->cfg_ini->tcpDelAckThresholdLow);
4484 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4485 "Name = [gEnableDelAck] Value = [%u] ",
4486 pHddCtx->cfg_ini->enable_delack);
Sachin Ahujab4d7a292015-12-08 19:57:04 +05304487 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Sourav Mohapatra5817dc42017-12-18 17:45:16 +05304488 "Name = [g_mark_indoor_as_disable] Value = [%u]",
4489 pHddCtx->cfg_ini->disable_indoor_channel);
4490 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Sachin Ahujab4d7a292015-12-08 19:57:04 +05304491 "Name = [disableBarWakeUp] Value = [%u] ",
4492 pHddCtx->cfg_ini->disableBarWakeUp);
Gupta, Kapilb79cda32015-12-30 20:36:33 +05304493 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4494 "Name = [gMaxChannelForMoreDwellTime] Value = [%u] ",
4495 pHddCtx->cfg_ini->max_chan_for_dwell_time_cfg);
Masti, Narayanraddi037f3552015-12-22 11:54:35 +05304496 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4497 "Name = [gTDLSEnableDeferTime] Value = [%u] ",
4498 pHddCtx->cfg_ini->tdls_enable_defer_time);
Abhishek Singh4463af02016-03-30 15:20:19 +05304499
4500 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4501 "Name = [%s] Value = [%u] ",
4502 CFG_ENABLE_EDCA_INI_NAME,
4503 pHddCtx->cfg_ini->enable_edca_params);
4504
4505 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4506 "Name = [%s] Value = [%u] ",
4507 CFG_EDCA_VO_CWMIN_VALUE_NAME,
4508 pHddCtx->cfg_ini->edca_vo_cwmin);
4509 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4510 "Name = [%s] Value = [%u] ",
4511 CFG_EDCA_VI_CWMIN_VALUE_NAME,
4512 pHddCtx->cfg_ini->edca_vi_cwmin);
4513 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4514 "Name = [%s] Value = [%u] ",
4515 CFG_EDCA_BK_CWMIN_VALUE_NAME,
4516 pHddCtx->cfg_ini->edca_bk_cwmin);
4517 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4518 "Name = [%s] Value = [%u] ",
4519 CFG_EDCA_BE_CWMIN_VALUE_NAME,
4520 pHddCtx->cfg_ini->edca_be_cwmin);
4521
4522 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4523 "Name = [%s] Value = [%u] ",
4524 CFG_EDCA_VO_CWMAX_VALUE_NAME,
4525 pHddCtx->cfg_ini->edca_vo_cwmax);
4526 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4527 "Name = [%s] Value = [%u] ",
4528 CFG_EDCA_VI_CWMAX_VALUE_NAME,
4529 pHddCtx->cfg_ini->edca_vi_cwmax);
4530 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4531 "Name = [%s] Value = [%u] ",
4532 CFG_EDCA_BK_CWMAX_VALUE_NAME,
4533 pHddCtx->cfg_ini->edca_bk_cwmax);
4534 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4535 "Name = [%s] Value = [%u] ",
4536 CFG_EDCA_BE_CWMAX_VALUE_NAME,
4537 pHddCtx->cfg_ini->edca_be_cwmax);
4538
4539 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4540 "Name = [%s] Value = [%u] ",
4541 CFG_EDCA_VO_AIFS_VALUE_NAME,
4542 pHddCtx->cfg_ini->edca_vo_aifs);
4543 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4544 "Name = [%s] Value = [%u] ",
4545 CFG_EDCA_VI_AIFS_VALUE_NAME,
4546 pHddCtx->cfg_ini->edca_vi_aifs);
4547 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4548 "Name = [%s] Value = [%u] ",
4549 CFG_EDCA_BK_AIFS_VALUE_NAME,
4550 pHddCtx->cfg_ini->edca_bk_aifs);
4551 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4552 "Name = [%s] Value = [%u] ",
4553 CFG_EDCA_BE_AIFS_VALUE_NAME,
4554 pHddCtx->cfg_ini->edca_be_aifs);
4555
Agrawal Ashishaf1de652016-03-02 18:03:43 +05304556 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4557 "Name = [gSendMgmtPktViaWQ5] Value = [%u] ",
4558 pHddCtx->cfg_ini->sendMgmtPktViaWQ5);
Rajeev Kumar Sirasanagandlaade0a332016-06-29 16:52:15 +05304559
4560 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4561 "Name = [%s] Value = [%u] ", CFG_SAP_PROBE_RESP_OFFLOAD_NAME,
4562 pHddCtx->cfg_ini->sap_probe_resp_offload);
Kapil Gupta00e71f92016-06-26 13:31:37 +05304563
4564#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
4565 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4566 "Name = [gPERRoamStatsTime] Value = [%lu] ",
4567 (long unsigned int)pHddCtx->cfg_ini->PERtimerThreshold);
4568
4569 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4570 "Name = [gPERRoamRxMonitorEnabled] Value = [%u] ",
4571 pHddCtx->cfg_ini->isPERRoamRxPathEnabled);
4572
4573 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4574 "Name = [gPERRoamTriggerPercent] Value = [%u] ",
4575 pHddCtx->cfg_ini->PERroamTriggerPercent);
4576
4577 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4578 "Name = [gPERRoamRxPktThreshold] Value = [%u] ",
4579 pHddCtx->cfg_ini->PERroamRxPktsThreshold);
4580
4581 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4582 "Name = [gPERRoamCCAEnabled] Value = [%u] ",
4583 pHddCtx->cfg_ini->isPERRoamCCAEnabled);
4584
Anurag Chouhan83026002016-12-13 22:46:21 +05304585#ifdef DHCP_SERVER_OFFLOAD
4586 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4587 "Name = [gDHCPServerOffloadEnable] Value = [%u]",
4588 pHddCtx->cfg_ini->enable_dhcp_srv_offload);
4589 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4590 "Name = [gDHCPMaxNumClients] Value = [%u]",
4591 pHddCtx->cfg_ini->dhcp_max_num_clients);
4592 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4593 "Name = [gDHCPServerIP] Value = [%s]",
4594 pHddCtx->cfg_ini->dhcp_srv_ip);
4595 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4596 "Name = [gDHCPStartLsb] Value = [%u]",
4597 pHddCtx->cfg_ini->dhcp_start_lsb);
4598#endif /* DHCP_SERVER_OFFLOAD */
Anurag Chouhan0b29de02016-12-16 13:18:40 +05304599#ifdef MDNS_OFFLOAD
4600 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4601 "Name = [gMDNSOffloadEnable] Value = [%u]",
4602 pHddCtx->cfg_ini->enable_mdns_offload);
4603 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4604 "Name = [gMDNSFqdn] Value = [%s]",
4605 pHddCtx->cfg_ini->mdns_fqdn);
4606 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4607 "Name = [gMDNSUniqueFqdn] Value = [%s]",
4608 pHddCtx->cfg_ini->mdns_uniquefqdn);
4609 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4610 "Name = [gMDNSResponseTypeA] Value = [%s]",
4611 pHddCtx->cfg_ini->mdns_resp_type_a);
4612 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4613 "Name = [gMDNSResponseTypeAIpv4Addr] Value = [%u]",
4614 pHddCtx->cfg_ini->mdns_resp_type_a_ipv4);
4615 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4616 "Name = [gMDNSResponseTypeTXT] Value = [%s]",
4617 pHddCtx->cfg_ini->mdns_resp_type_txt);
4618 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4619 "Name = [gMDNSResponseTypeTXTContent] Value = [%s]",
4620 pHddCtx->cfg_ini->mdns_resp_type_txt_content);
4621 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4622 "Name = [gMDNSResponseTypePTR] Value = [%s]",
4623 pHddCtx->cfg_ini->mdns_resp_type_ptr);
4624 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4625 "Name = [gMDNSResponseTypePTRDomainName] Value = [%s]",
4626 pHddCtx->cfg_ini->mdns_resp_type_ptr_dname);
4627 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4628 "Name = [gMDNSResponseTypeSRV] Value = [%s]",
4629 pHddCtx->cfg_ini->mdns_resp_type_srv);
4630 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4631 "Name = [gMDNSResponseTypeSRVPriority] Value = [%u]",
4632 pHddCtx->cfg_ini->mdns_resp_type_srv_priority);
4633 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4634 "Name = [gMDNSResponseTypeSRVWeight] Value = [%u]",
4635 pHddCtx->cfg_ini->mdns_resp_type_srv_weight);
4636 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4637 "Name = [gMDNSResponseTypeSRVPort] Value = [%u]",
4638 pHddCtx->cfg_ini->mdns_resp_type_srv_port);
4639 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4640 "Name = [gMDNSResponseTypeSRVTarget] Value = [%s]",
4641 pHddCtx->cfg_ini->mdns_resp_type_srv_target);
4642#endif /* MDNS_OFFLOAD */
4643
Anurag Chouhan83026002016-12-13 22:46:21 +05304644
Kapil Gupta00e71f92016-06-26 13:31:37 +05304645 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Kapil Gupta89a8a0e2016-08-25 14:11:17 +05304646 "Name = [gPERRoamFullScanThreshold] Value = [%u] ",
4647 pHddCtx->cfg_ini->PERRoamFullScanThreshold);
4648
4649 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Kapil Gupta192d9d42016-11-25 16:24:13 +05304650 "Name = [gPERMinRssiThresholdForRoam] Value = [%d] ",
4651 pHddCtx->cfg_ini->PERMinRssiThresholdForRoam);
4652
4653 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Kapil Gupta00e71f92016-06-26 13:31:37 +05304654 "Name = [gPERRoamScanInterval] Value = [%lu] ",
4655 (long unsigned int)pHddCtx->cfg_ini->waitPeriodForNextPERScan);
4656
4657 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4658 "Name = [gPERRoamDownThresholdRate] Value = [%u] ",
4659 pHddCtx->cfg_ini->rateDownThreshold);
4660
4661 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4662 "Name = [gPERRoamEnable] Value = [%u] ",
4663 pHddCtx->cfg_ini->isPERRoamEnabled);
4664
4665 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4666 "Name = [gPERRoamUpThresholdRate] Value = [%u] ",
4667 pHddCtx->cfg_ini->rateUpThreshold);
Padma, Santhosh Kumar36183352016-11-08 17:48:34 +05304668
4669 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4670 "Name = [gDisableScanDuringSco] Value = [%u] ",
4671 pHddCtx->cfg_ini->disable_scan_during_sco);
Agrawal Ashish17ef5082016-10-17 18:33:21 +05304672#endif
4673#ifdef SAP_AUTH_OFFLOAD
4674 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4675 "Name = [gEnableSAPAuthOffload] Value = [%u] ",
4676 pHddCtx->cfg_ini->enable_sap_auth_offload);
Kapil Gupta00e71f92016-06-26 13:31:37 +05304677#endif
Kapil Gupta137ef892016-12-13 19:38:00 +05304678 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Hanumanth Reddy Pothulad864f312017-01-18 16:16:08 +05304679 "Name = [gEnableSapInternalRestart] Value = [%u] ",
4680 pHddCtx->cfg_ini->sap_internal_restart);
Padma, Santhosh Kumar67f479b2016-12-28 15:43:42 +05304681
4682#ifdef WLAN_FEATURE_LFR_MBB
4683 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4684 "Name = [gEnableLFRMBB] Value = [%u] ",
4685 pHddCtx->cfg_ini->enable_lfr_mbb);
4686#endif
4687
Paul Zhang83289792017-02-28 18:58:52 +08004688 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4689 "Name = [sta_auth_retries_for_code17] Value = [%u] ",
4690 pHddCtx->cfg_ini->sta_auth_retries_for_code17);
Ashish Kumar Dhanotiyabf6bcea2017-08-17 19:14:33 +05304691
4692 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4693 "Name = [%s] Value = [%u] ",
4694 CFG_TRIGGER_NULLFRAME_BEFORE_HB_NAME,
4695 pHddCtx->cfg_ini->trigger_nullframe_before_hb);
Abhishek Singhceb6fe22017-11-27 13:53:18 +05304696
4697 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4698 "Name = [%s] Value = [%u] ",
4699 CFG_FORCE_SCC_WITH_ECSA_NAME,
4700 pHddCtx->cfg_ini->force_scc_with_ecsa);
Ganesh Kondabattinie3ac17f2017-11-30 15:09:07 +05304701
4702 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4703 "Name = [%s] value = [%u]",
4704 CFG_STA_SAP_SCC_ON_DFS_CHAN,
4705 pHddCtx->cfg_ini->sta_sap_scc_on_dfs_chan);
Ashish Kumar Dhanotiya17866e12018-01-16 19:53:43 +05304706
4707 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4708 "Name = [%s] Value = [%u] ",
4709 CFG_ENABLE_POWERSAVE_OFFLOAD_NAME,
4710 pHddCtx->cfg_ini->enable_power_save_offload);
Pragaspathi Thilagaraj03e2ab12018-06-22 12:19:48 +05304711
4712 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4713 "Name = [%s] Value = [%u] ",
4714 CFG_FORCE_RSNE_OVERRIDE_NAME,
4715 pHddCtx->cfg_ini->force_rsne_override);
Arunk Khandavalli95608be2019-01-22 13:12:54 +05304716 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
4717 "Name = [%s] Value = [%s] ",
4718 CFG_ENABLE_DEFAULT_SAP,
4719 pHddCtx->cfg_ini->enabledefaultSAP);
Jeff Johnson295189b2012-06-20 16:38:30 -07004720}
4721
4722
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -07004723
Jeff Johnson295189b2012-06-20 16:38:30 -07004724#define CFG_VALUE_MAX_LEN 256
4725#define CFG_ENTRY_MAX_LEN (32+CFG_VALUE_MAX_LEN)
4726VOS_STATUS hdd_cfg_get_config(hdd_context_t *pHddCtx, char *pBuf, int buflen)
4727{
4728 unsigned int idx;
4729 REG_TABLE_ENTRY *pRegEntry = g_registry_table;
4730 unsigned long cRegTableEntries = sizeof(g_registry_table) / sizeof( g_registry_table[ 0 ]);
4731 v_U32_t value;
4732 char valueStr[CFG_VALUE_MAX_LEN];
4733 char configStr[CFG_ENTRY_MAX_LEN];
4734 char *fmt;
4735 void *pField;
4736 v_MACADDR_t *pMacAddr;
4737 char *pCur = pBuf;
4738 int curlen;
4739
4740 // start with an empty string
4741 *pCur = '\0';
4742
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004743 for ( idx = 0; idx < cRegTableEntries; idx++, pRegEntry++ )
Jeff Johnson295189b2012-06-20 16:38:30 -07004744 {
4745 pField = ( (v_U8_t *)pHddCtx->cfg_ini) + pRegEntry->VarOffset;
4746
4747 if ( ( WLAN_PARAM_Integer == pRegEntry->RegType ) ||
4748 ( WLAN_PARAM_SignedInteger == pRegEntry->RegType ) ||
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004749 ( WLAN_PARAM_HexInteger == pRegEntry->RegType ) )
Jeff Johnson295189b2012-06-20 16:38:30 -07004750 {
4751 value = 0;
4752 memcpy( &value, pField, pRegEntry->VarSize );
4753 if ( WLAN_PARAM_HexInteger == pRegEntry->RegType )
4754 {
4755 fmt = "%x";
4756 }
4757 else if ( WLAN_PARAM_SignedInteger == pRegEntry->RegType )
4758 {
4759 fmt = "%d";
4760 }
4761 else
4762 {
4763 fmt = "%u";
4764 }
4765 snprintf(valueStr, CFG_VALUE_MAX_LEN, fmt, value);
4766 }
4767 else if ( WLAN_PARAM_String == pRegEntry->RegType )
4768 {
4769 snprintf(valueStr, CFG_VALUE_MAX_LEN, "%s", (char *)pField);
4770 }
4771 else if ( WLAN_PARAM_MacAddr == pRegEntry->RegType )
4772 {
4773 pMacAddr = (v_MACADDR_t *) pField;
4774 snprintf(valueStr, CFG_VALUE_MAX_LEN,
4775 "%02x:%02x:%02x:%02x:%02x:%02x",
4776 pMacAddr->bytes[0],
4777 pMacAddr->bytes[1],
4778 pMacAddr->bytes[2],
4779 pMacAddr->bytes[3],
4780 pMacAddr->bytes[4],
4781 pMacAddr->bytes[5]);
4782 }
4783 else
4784 {
4785 snprintf(valueStr, CFG_VALUE_MAX_LEN, "(unhandled)");
4786 }
Sameer Thalappilb0a30232013-09-27 15:37:48 -07004787 curlen = scnprintf(configStr, CFG_ENTRY_MAX_LEN,
Jeff Johnson295189b2012-06-20 16:38:30 -07004788 "%s=[%s]%s\n",
4789 pRegEntry->RegName,
4790 valueStr,
4791 test_bit(idx, (void *)&pHddCtx->cfg_ini->bExplicitCfg) ?
4792 "*" : "");
4793
4794 // ideally we want to return the config to the application
4795 // however the config is too big so we just printk() for now
4796#ifdef RETURN_IN_BUFFER
Hanumantha Reddy Pothula02bd60c2016-05-11 15:57:51 +05304797 if (curlen < buflen)
Jeff Johnson295189b2012-06-20 16:38:30 -07004798 {
4799 // copy string + '\0'
4800 memcpy(pCur, configStr, curlen+1);
4801
4802 // account for addition;
4803 pCur += curlen;
4804 buflen -= curlen;
4805 }
4806 else
4807 {
4808 // buffer space exhausted, return what we have
4809 return VOS_STATUS_E_RESOURCES;
4810 }
4811#else
4812 printk(KERN_CRIT "%s", configStr);
4813#endif // RETURN_IN_BUFFER
4814
4815}
4816
4817#ifndef RETURN_IN_BUFFER
4818 // notify application that output is in system log
4819 snprintf(pCur, buflen, "WLAN configuration written to system log");
4820#endif // RETURN_IN_BUFFER
4821
4822 return VOS_STATUS_SUCCESS;
4823}
4824
4825static VOS_STATUS find_cfg_item (tCfgIniEntry* iniTable, unsigned long entries,
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08004826 char *name, char** value)
Jeff Johnson295189b2012-06-20 16:38:30 -07004827{
4828 VOS_STATUS status = VOS_STATUS_E_FAILURE;
4829 unsigned long i;
4830
4831 for (i = 0; i < entries; i++) {
4832 if (strcmp(iniTable[i].name, name) == 0) {
4833 *value = iniTable[i].value;
4834 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Found %s entry for Name=[%s] Value=[%s] ",
4835 WLAN_INI_FILE, name, *value);
4836 return VOS_STATUS_SUCCESS;
4837 }
4838 }
4839
4840 return status;
4841}
4842
4843static int parseHexDigit(char c)
4844{
4845 if (c >= '0' && c <= '9')
4846 return c-'0';
4847 if (c >= 'a' && c <= 'f')
4848 return c-'a'+10;
4849 if (c >= 'A' && c <= 'F')
4850 return c-'A'+10;
4851
4852 return 0;
4853}
4854
4855
4856static VOS_STATUS hdd_apply_cfg_ini( hdd_context_t *pHddCtx, tCfgIniEntry* iniTable, unsigned long entries)
4857{
4858 VOS_STATUS match_status = VOS_STATUS_E_FAILURE;
4859 VOS_STATUS ret_status = VOS_STATUS_SUCCESS;
4860 unsigned int idx;
4861 void *pField;
4862 char *value_str = NULL;
4863 unsigned long len_value_str;
4864 char *candidate;
4865 v_U32_t value;
4866 v_S31_t svalue;
4867 void *pStructBase = pHddCtx->cfg_ini;
4868 REG_TABLE_ENTRY *pRegEntry = g_registry_table;
4869 unsigned long cRegTableEntries = sizeof(g_registry_table) / sizeof( g_registry_table[ 0 ]);
4870 v_U32_t cbOutString;
4871 int i;
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08004872 int rv;
Jeff Johnson295189b2012-06-20 16:38:30 -07004873
4874 // sanity test
4875 if (MAX_CFG_INI_ITEMS < cRegTableEntries)
4876 {
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004877 hddLog(LOGE, "%s: MAX_CFG_INI_ITEMS too small, must be at least %ld",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07004878 __func__, cRegTableEntries);
Hanumanth Reddy Pothula8b6a8d32018-04-30 18:56:17 +05304879 VOS_ASSERT(1);
Jeff Johnson295189b2012-06-20 16:38:30 -07004880 }
4881
4882 for ( idx = 0; idx < cRegTableEntries; idx++, pRegEntry++ )
4883 {
4884 //Calculate the address of the destination field in the structure.
4885 pField = ( (v_U8_t *)pStructBase )+ pRegEntry->VarOffset;
4886
4887 match_status = find_cfg_item(iniTable, entries, pRegEntry->RegName, &value_str);
4888
4889 if( (match_status != VOS_STATUS_SUCCESS) && ( pRegEntry->Flags & VAR_FLAGS_REQUIRED ) )
4890 {
4891 // If we could not read the cfg item and it is required, this is an error.
4892 hddLog(LOGE, "%s: Failed to read required config parameter %s",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07004893 __func__, pRegEntry->RegName);
Jeff Johnson295189b2012-06-20 16:38:30 -07004894 ret_status = VOS_STATUS_E_FAILURE;
4895 break;
4896 }
4897
4898 if ( ( WLAN_PARAM_Integer == pRegEntry->RegType ) ||
4899 ( WLAN_PARAM_HexInteger == pRegEntry->RegType ) )
4900 {
4901 // If successfully read from the registry, use the value read.
4902 // If not, use the default value.
4903 if ( match_status == VOS_STATUS_SUCCESS && (WLAN_PARAM_Integer == pRegEntry->RegType)) {
Jeff Johnson02797792013-10-26 19:17:13 -07004904 rv = kstrtou32(value_str, 10, &value);
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08004905 if (rv < 0) {
4906 hddLog(LOGE, "%s: Reg Parameter %s invalid. Enforcing default",
4907 __func__, pRegEntry->RegName);
4908 value = pRegEntry->VarDefault;
4909 }
Jeff Johnson295189b2012-06-20 16:38:30 -07004910 }
4911 else if ( match_status == VOS_STATUS_SUCCESS && (WLAN_PARAM_HexInteger == pRegEntry->RegType)) {
Jeff Johnson02797792013-10-26 19:17:13 -07004912 rv = kstrtou32(value_str, 16, &value);
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08004913 if (rv < 0) {
4914 hddLog(LOGE, "%s: Reg paramter %s invalid. Enforcing default",
4915 __func__, pRegEntry->RegName);
4916 value = pRegEntry->VarDefault;
4917 }
Jeff Johnson295189b2012-06-20 16:38:30 -07004918 }
4919 else {
4920 value = pRegEntry->VarDefault;
4921 }
4922
4923 // If this parameter needs range checking, do it here.
4924 if ( pRegEntry->Flags & VAR_FLAGS_RANGE_CHECK )
4925 {
4926 if ( value > pRegEntry->VarMax )
4927 {
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004928 hddLog(LOGE, "%s: Reg Parameter %s > allowed Maximum [%u > %lu]. Enforcing Maximum",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07004929 __func__, pRegEntry->RegName, value, pRegEntry->VarMax );
Jeff Johnson295189b2012-06-20 16:38:30 -07004930 value = pRegEntry->VarMax;
4931 }
4932
4933 if ( value < pRegEntry->VarMin )
4934 {
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004935 hddLog(LOGE, "%s: Reg Parameter %s < allowed Minimum [%u < %lu]. Enforcing Minimum",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07004936 __func__, pRegEntry->RegName, value, pRegEntry->VarMin);
Jeff Johnson295189b2012-06-20 16:38:30 -07004937 value = pRegEntry->VarMin;
4938 }
4939 }
4940 // If this parameter needs range checking, do it here.
4941 else if ( pRegEntry->Flags & VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT )
4942 {
4943 if ( value > pRegEntry->VarMax )
4944 {
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004945 hddLog(LOGE, "%s: Reg Parameter %s > allowed Maximum [%u > %lu]. Enforcing Default= %lu",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07004946 __func__, pRegEntry->RegName, value, pRegEntry->VarMax, pRegEntry->VarDefault );
Jeff Johnson295189b2012-06-20 16:38:30 -07004947 value = pRegEntry->VarDefault;
4948 }
4949
4950 if ( value < pRegEntry->VarMin )
4951 {
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004952 hddLog(LOGE, "%s: Reg Parameter %s < allowed Minimum [%u < %lu]. Enforcing Default= %lu",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07004953 __func__, pRegEntry->RegName, value, pRegEntry->VarMin, pRegEntry->VarDefault );
Jeff Johnson295189b2012-06-20 16:38:30 -07004954 value = pRegEntry->VarDefault;
4955 }
4956 }
4957
4958 // Move the variable into the output field.
4959 memcpy( pField, &value, pRegEntry->VarSize );
4960 }
4961 else if ( WLAN_PARAM_SignedInteger == pRegEntry->RegType )
4962 {
4963 // If successfully read from the registry, use the value read.
4964 // If not, use the default value.
4965 if (VOS_STATUS_SUCCESS == match_status)
4966 {
Jeff Johnson02797792013-10-26 19:17:13 -07004967 rv = kstrtos32(value_str, 10, &svalue);
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08004968 if (rv < 0) {
4969 hddLog(VOS_TRACE_LEVEL_WARN, "%s: Reg Parameter %s invalid. Enforcing Default",
4970 __func__, pRegEntry->RegName);
4971 svalue = (v_S31_t)pRegEntry->VarDefault;
4972 }
Jeff Johnson295189b2012-06-20 16:38:30 -07004973 }
4974 else
4975 {
4976 svalue = (v_S31_t)pRegEntry->VarDefault;
4977 }
4978
4979 // If this parameter needs range checking, do it here.
4980 if ( pRegEntry->Flags & VAR_FLAGS_RANGE_CHECK )
4981 {
4982 if ( svalue > (v_S31_t)pRegEntry->VarMax )
4983 {
4984 hddLog(LOGE, "%s: Reg Parameter %s > allowed Maximum "
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004985 "[%d > %d]. Enforcing Maximum", __func__,
Jeff Johnson295189b2012-06-20 16:38:30 -07004986 pRegEntry->RegName, svalue, (int)pRegEntry->VarMax );
4987 svalue = (v_S31_t)pRegEntry->VarMax;
4988 }
4989
4990 if ( svalue < (v_S31_t)pRegEntry->VarMin )
4991 {
4992 hddLog(LOGE, "%s: Reg Parameter %s < allowed Minimum "
Jeff Johnson0299d0a2013-10-30 12:37:43 -07004993 "[%d < %d]. Enforcing Minimum", __func__,
Jeff Johnson295189b2012-06-20 16:38:30 -07004994 pRegEntry->RegName, svalue, (int)pRegEntry->VarMin);
4995 svalue = (v_S31_t)pRegEntry->VarMin;
4996 }
4997 }
4998 // If this parameter needs range checking, do it here.
4999 else if ( pRegEntry->Flags & VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT )
5000 {
5001 if ( svalue > (v_S31_t)pRegEntry->VarMax )
5002 {
5003 hddLog(LOGE, "%s: Reg Parameter %s > allowed Maximum "
Jeff Johnson0299d0a2013-10-30 12:37:43 -07005004 "[%d > %d]. Enforcing Default= %d",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005005 __func__, pRegEntry->RegName, svalue,
Jeff Johnson295189b2012-06-20 16:38:30 -07005006 (int)pRegEntry->VarMax,
5007 (int)pRegEntry->VarDefault );
5008 svalue = (v_S31_t)pRegEntry->VarDefault;
5009 }
5010
5011 if ( svalue < (v_S31_t)pRegEntry->VarMin )
5012 {
5013 hddLog(LOGE, "%s: Reg Parameter %s < allowed Minimum "
Jeff Johnson0299d0a2013-10-30 12:37:43 -07005014 "[%d < %d]. Enforcing Default= %d",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005015 __func__, pRegEntry->RegName, svalue,
Jeff Johnson295189b2012-06-20 16:38:30 -07005016 (int)pRegEntry->VarMin,
5017 (int)pRegEntry->VarDefault);
5018 svalue = pRegEntry->VarDefault;
5019 }
5020 }
5021
5022 // Move the variable into the output field.
5023 memcpy( pField, &svalue, pRegEntry->VarSize );
5024 }
5025 // Handle string parameters
5026 else if ( WLAN_PARAM_String == pRegEntry->RegType )
5027 {
5028#ifdef WLAN_CFG_DEBUG
Arif Hussain6d2a3322013-11-17 19:50:10 -08005029 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 -08005030 pRegEntry->RegName, pRegEntry->VarOffset, pRegEntry->VarSize, (char*)pRegEntry->VarDefault);
Jeff Johnson295189b2012-06-20 16:38:30 -07005031#endif
5032
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005033 if ( match_status == VOS_STATUS_SUCCESS)
Jeff Johnson295189b2012-06-20 16:38:30 -07005034 {
5035 len_value_str = strlen(value_str);
5036
5037 if(len_value_str > (pRegEntry->VarSize - 1)) {
Arif Hussain6d2a3322013-11-17 19:50:10 -08005038 hddLog(LOGE, "%s: Invalid Value=[%s] specified for Name=[%s] in %s",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005039 __func__, value_str, pRegEntry->RegName, WLAN_INI_FILE);
Jeff Johnson295189b2012-06-20 16:38:30 -07005040 cbOutString = utilMin( strlen( (char *)pRegEntry->VarDefault ), pRegEntry->VarSize - 1 );
5041 memcpy( pField, (void *)(pRegEntry->VarDefault), cbOutString );
5042 ( (v_U8_t *)pField )[ cbOutString ] = '\0';
5043 }
5044 else
5045 {
5046 memcpy( pField, (void *)(value_str), len_value_str);
5047 ( (v_U8_t *)pField )[ len_value_str ] = '\0';
5048 }
5049 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005050 else
Jeff Johnson295189b2012-06-20 16:38:30 -07005051 {
5052 // Failed to read the string parameter from the registry. Use the default.
5053 cbOutString = utilMin( strlen( (char *)pRegEntry->VarDefault ), pRegEntry->VarSize - 1 );
5054 memcpy( pField, (void *)(pRegEntry->VarDefault), cbOutString );
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005055 ( (v_U8_t *)pField )[ cbOutString ] = '\0';
Jeff Johnson295189b2012-06-20 16:38:30 -07005056 }
5057 }
5058 else if ( WLAN_PARAM_MacAddr == pRegEntry->RegType )
5059 {
5060 if(pRegEntry->VarSize != VOS_MAC_ADDR_SIZE) {
Arif Hussain6d2a3322013-11-17 19:50:10 -08005061 hddLog(LOGE, "%s: Invalid VarSize %u for Name=[%s]",
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005062 __func__, pRegEntry->VarSize, pRegEntry->RegName);
Jeff Johnson295189b2012-06-20 16:38:30 -07005063 continue;
5064 }
5065 candidate = (char*)pRegEntry->VarDefault;
5066 if ( match_status == VOS_STATUS_SUCCESS) {
5067 len_value_str = strlen(value_str);
5068 if(len_value_str != (VOS_MAC_ADDR_SIZE*2)) {
Arif Hussain6d2a3322013-11-17 19:50:10 -08005069 hddLog(LOGE, "%s: Invalid MAC addr [%s] specified for Name=[%s] in %s",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005070 __func__, value_str, pRegEntry->RegName, WLAN_INI_FILE);
Jeff Johnson295189b2012-06-20 16:38:30 -07005071 }
5072 else
5073 candidate = value_str;
5074 }
5075 //parse the string and store it in the byte array
5076 for(i=0; i<VOS_MAC_ADDR_SIZE; i++)
5077 {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005078 ((char*)pField)[i] =
5079 (char)(parseHexDigit(candidate[i*2])*16 + parseHexDigit(candidate[i*2+1]));
Jeff Johnson295189b2012-06-20 16:38:30 -07005080 }
5081 }
5082 else
5083 {
Arif Hussain6d2a3322013-11-17 19:50:10 -08005084 hddLog(LOGE, "%s: Unknown param type for name[%s] in registry table",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07005085 __func__, pRegEntry->RegName);
Jeff Johnson295189b2012-06-20 16:38:30 -07005086 }
5087
5088 // did we successfully parse a cfg item for this parameter?
5089 if( (match_status == VOS_STATUS_SUCCESS) &&
5090 (idx < MAX_CFG_INI_ITEMS) )
5091 {
5092 set_bit(idx, (void *)&pHddCtx->cfg_ini->bExplicitCfg);
5093 }
5094 }
5095
5096 print_hdd_cfg(pHddCtx);
5097
5098 return( ret_status );
5099}
5100
5101eCsrPhyMode hdd_cfg_xlate_to_csr_phy_mode( eHddDot11Mode dot11Mode )
5102{
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005103 switch (dot11Mode)
Jeff Johnson295189b2012-06-20 16:38:30 -07005104 {
5105 case (eHDD_DOT11_MODE_abg):
5106 return eCSR_DOT11_MODE_abg;
5107 case (eHDD_DOT11_MODE_11b):
5108 return eCSR_DOT11_MODE_11b;
5109 case (eHDD_DOT11_MODE_11g):
5110 return eCSR_DOT11_MODE_11g;
5111 default:
5112 case (eHDD_DOT11_MODE_11n):
5113 return eCSR_DOT11_MODE_11n;
5114 case (eHDD_DOT11_MODE_11g_ONLY):
5115 return eCSR_DOT11_MODE_11g_ONLY;
5116 case (eHDD_DOT11_MODE_11n_ONLY):
5117 return eCSR_DOT11_MODE_11n_ONLY;
5118 case (eHDD_DOT11_MODE_11b_ONLY):
5119 return eCSR_DOT11_MODE_11b_ONLY;
Jeff Johnsone7245742012-09-05 17:12:55 -07005120#ifdef WLAN_FEATURE_11AC
5121 case (eHDD_DOT11_MODE_11ac_ONLY):
5122 return eCSR_DOT11_MODE_11ac_ONLY;
5123 case (eHDD_DOT11_MODE_11ac):
5124 return eCSR_DOT11_MODE_11ac;
5125#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07005126 case (eHDD_DOT11_MODE_AUTO):
5127 return eCSR_DOT11_MODE_AUTO;
5128 }
5129
5130}
5131
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005132static void hdd_set_btc_config(hdd_context_t *pHddCtx)
Jeff Johnson295189b2012-06-20 16:38:30 -07005133{
5134 hdd_config_t *pConfig = pHddCtx->cfg_ini;
5135 tSmeBtcConfig btcParams;
Wilson Tsaof8b37942013-09-06 10:49:00 -07005136 int i;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005137
Jeff Johnson295189b2012-06-20 16:38:30 -07005138 sme_BtcGetConfig(pHddCtx->hHal, &btcParams);
5139
5140 btcParams.btcExecutionMode = pConfig->btcExecutionMode;
Jeff Johnson295189b2012-06-20 16:38:30 -07005141 btcParams.btcConsBtSlotsToBlockDuringDhcp = pConfig->btcConsBtSlotsToBlockDuringDhcp;
Jeff Johnson295189b2012-06-20 16:38:30 -07005142 btcParams.btcA2DPBtSubIntervalsDuringDhcp = pConfig->btcA2DPBtSubIntervalsDuringDhcp;
5143
Jeff Johnson32d95a32012-09-10 13:15:23 -07005144 btcParams.btcStaticLenInqBt = pConfig->btcStaticLenInqBt;
5145 btcParams.btcStaticLenPageBt = pConfig->btcStaticLenPageBt;
5146 btcParams.btcStaticLenConnBt = pConfig->btcStaticLenConnBt;
5147 btcParams.btcStaticLenLeBt = pConfig->btcStaticLenLeBt;
5148 btcParams.btcStaticLenInqWlan = pConfig->btcStaticLenInqWlan;
5149 btcParams.btcStaticLenPageWlan = pConfig->btcStaticLenPageWlan;
5150 btcParams.btcStaticLenConnWlan = pConfig->btcStaticLenConnWlan;
5151 btcParams.btcStaticLenLeWlan = pConfig->btcStaticLenLeWlan;
5152 btcParams.btcDynMaxLenBt = pConfig->btcDynMaxLenBt;
5153 btcParams.btcDynMaxLenWlan = pConfig->btcDynMaxLenWlan;
5154 btcParams.btcMaxScoBlockPerc = pConfig->btcMaxScoBlockPerc;
5155 btcParams.btcDhcpProtOnA2dp = pConfig->btcDhcpProtOnA2dp;
5156 btcParams.btcDhcpProtOnSco = pConfig->btcDhcpProtOnSco;
5157
Wilson Tsaof8b37942013-09-06 10:49:00 -07005158 for (i = 0; i < 10; i++)
5159 {
5160 btcParams.mwsCoexVictimWANFreq[i] = pConfig->mwsCoexVictimWANFreq[i];
5161 btcParams.mwsCoexVictimWLANFreq[i] = pConfig->mwsCoexVictimWLANFreq[i];
5162 btcParams.mwsCoexVictimConfig[i] = pConfig->mwsCoexVictimConfig[i];
5163 btcParams.mwsCoexVictimConfig2[i] = pConfig->mwsCoexVictimConfig2[i];
5164 }
5165 for (i = 0; i < 6; i++)
5166 {
5167 btcParams.mwsCoexConfig[i] = pConfig->mwsCoexConfig[i];
5168 }
5169 btcParams.mwsCoexModemBackoff = pConfig->mwsCoexModemBackoff;
5170 btcParams.SARPowerBackoff = pConfig->SARPowerBackoff;
5171
Jeff Johnson295189b2012-06-20 16:38:30 -07005172 sme_BtcSetConfig(pHddCtx->hHal, &btcParams);
5173}
5174
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005175static void hdd_set_power_save_config(hdd_context_t *pHddCtx, tSmeConfigParams *smeConfig)
Jeff Johnson295189b2012-06-20 16:38:30 -07005176{
5177 hdd_config_t *pConfig = pHddCtx->cfg_ini;
5178
5179 tPmcBmpsConfigParams bmpsParams;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005180
Jeff Johnson295189b2012-06-20 16:38:30 -07005181 sme_GetConfigPowerSave(pHddCtx->hHal, ePMC_BEACON_MODE_POWER_SAVE, &bmpsParams);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005182
Jeff Johnson295189b2012-06-20 16:38:30 -07005183 if (strcmp(pConfig->PowerUsageControl, "Min") == 0)
5184 {
5185 smeConfig->csrConfig.impsSleepTime = pConfig->nImpsMinSleepTime;
5186 bmpsParams.bmpsPeriod = pConfig->nBmpsMinListenInterval;
5187 bmpsParams.enableBeaconEarlyTermination = pConfig->fEnableBeaconEarlyTermination;
5188 bmpsParams.bcnEarlyTermWakeInterval = pConfig->bcnEarlyTermWakeInterval;
5189 }
5190 if (strcmp(pConfig->PowerUsageControl, "Max") == 0)
5191 {
5192 smeConfig->csrConfig.impsSleepTime = pConfig->nImpsMaxSleepTime;
5193 bmpsParams.bmpsPeriod = pConfig->nBmpsMaxListenInterval;
5194 bmpsParams.enableBeaconEarlyTermination = pConfig->fEnableBeaconEarlyTermination;
5195 bmpsParams.bcnEarlyTermWakeInterval = pConfig->bcnEarlyTermWakeInterval;
5196 }
5197 if (strcmp(pConfig->PowerUsageControl, "Mod") == 0)
5198 {
5199 smeConfig->csrConfig.impsSleepTime = pConfig->nImpsModSleepTime;
5200 bmpsParams.bmpsPeriod = pConfig->nBmpsModListenInterval;
5201 bmpsParams.enableBeaconEarlyTermination = pConfig->fEnableBeaconEarlyTermination;
5202 bmpsParams.bcnEarlyTermWakeInterval = pConfig->bcnEarlyTermWakeInterval;
5203 }
5204
5205 if (pConfig->fIsImpsEnabled)
5206 {
5207 sme_EnablePowerSave (pHddCtx->hHal, ePMC_IDLE_MODE_POWER_SAVE);
5208 }
5209 else
5210 {
5211 sme_DisablePowerSave (pHddCtx->hHal, ePMC_IDLE_MODE_POWER_SAVE);
5212 }
5213
Madan Mohan Koyyalamudi69b34182013-01-16 08:51:40 +05305214 /*If isAndroidPsEn is 1 then Host driver and above layers control the PS mechanism
5215 If Value set to 0 Driver/Core Stack internally control the Power saving mechanism */
5216 sme_SetHostPowerSave (pHddCtx->hHal, pConfig->isAndroidPsEn);
5217
Jeff Johnson295189b2012-06-20 16:38:30 -07005218 if (pConfig->fIsBmpsEnabled)
5219 {
5220 sme_EnablePowerSave (pHddCtx->hHal, ePMC_BEACON_MODE_POWER_SAVE);
5221 }
5222 else
5223 {
5224 sme_DisablePowerSave (pHddCtx->hHal, ePMC_BEACON_MODE_POWER_SAVE);
5225 }
5226
5227 bmpsParams.trafficMeasurePeriod = pConfig->nAutoBmpsTimerValue;
5228
5229 if (sme_SetConfigPowerSave(pHddCtx->hHal, ePMC_BEACON_MODE_POWER_SAVE, &bmpsParams)== eHAL_STATUS_FAILURE)
5230 {
Arif Hussain6d2a3322013-11-17 19:50:10 -08005231 hddLog(LOGE, "SetConfigPowerSave failed to set BMPS params");
Jeff Johnson295189b2012-06-20 16:38:30 -07005232 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005233
Jeff Johnson295189b2012-06-20 16:38:30 -07005234 if(pConfig->fIsAutoBmpsTimerEnabled)
5235 {
5236 sme_StartAutoBmpsTimer(pHddCtx->hHal);
5237 }
5238
5239}
5240
Anurag Chouhan83026002016-12-13 22:46:21 +05305241VOS_STATUS hdd_string_to_u8_array(char *str, tANI_U8 *intArray,
Anurag Chouhanac145c22016-11-22 16:51:47 +05305242 tANI_U8 *len, tANI_U8 intArrayMaxLen,
Yeshwanth Sriram Guntuka8d9b29c2017-12-12 15:44:57 +05305243 char *seperator, bool to_hex)
Jeff Johnson295189b2012-06-20 16:38:30 -07005244{
Yeshwanth Sriram Guntuka8d9b29c2017-12-12 15:44:57 +05305245 char *format, *s = str;
Jeff Johnson295189b2012-06-20 16:38:30 -07005246
5247 if( str == NULL || intArray == NULL || len == NULL )
5248 {
5249 return VOS_STATUS_E_INVAL;
5250 }
5251 *len = 0;
5252
Yeshwanth Sriram Guntuka8d9b29c2017-12-12 15:44:57 +05305253 format = (to_hex) ? "%02x" : "%d";
Jeff Johnson295189b2012-06-20 16:38:30 -07005254 while ( (s != NULL) && (*len < intArrayMaxLen) )
5255 {
5256 int val;
5257 //Increment length only if sscanf succesfully extracted one element.
5258 //Any other return value means error. Ignore it.
Yeshwanth Sriram Guntuka8d9b29c2017-12-12 15:44:57 +05305259 if( sscanf(s, format, &val ) == 1 )
Jeff Johnson295189b2012-06-20 16:38:30 -07005260 {
Anurag Chouhanac145c22016-11-22 16:51:47 +05305261 if (val > 255 || val < 0)
5262 return VOS_STATUS_E_FAILURE;
Jeff Johnson295189b2012-06-20 16:38:30 -07005263 intArray[*len] = (tANI_U8) val;
5264 *len += 1;
5265 }
Anurag Chouhanac145c22016-11-22 16:51:47 +05305266 s = strpbrk( s, seperator);
Jeff Johnson295189b2012-06-20 16:38:30 -07005267 if( s )
5268 s++;
5269 }
Jeff Johnson295189b2012-06-20 16:38:30 -07005270
5271 return VOS_STATUS_SUCCESS;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005272
Jeff Johnson295189b2012-06-20 16:38:30 -07005273}
Jeff Johnson295189b2012-06-20 16:38:30 -07005274
Anurag Chouhan0b29de02016-12-16 13:18:40 +05305275#ifdef MDNS_OFFLOAD
5276int hdd_string_to_string_array(char *data, uint8_t *datalist,
5277 char separator, uint8_t *num_entries,
5278 uint8_t max_entries,
5279 uint8_t max_len_entry)
5280{
5281 uint8_t num = 0;
Anurag Chouhanb2951ae2017-03-12 13:41:35 +05305282 char *str = NULL;
Anurag Chouhan54515d42017-04-20 14:12:46 +05305283 char *temp_str = NULL;
Anurag Chouhan0b29de02016-12-16 13:18:40 +05305284 char *field;
5285 uint16_t len = 0;
5286
5287 if ((data == NULL) || ( datalist == NULL) || (num_entries == NULL))
5288 return VOS_STATUS_E_INVAL;
5289
Anurag Chouhanda91a032017-11-02 20:53:38 +05305290 str = vos_mem_malloc(strlen((char *)data) + 1);
Anurag Chouhanb2951ae2017-03-12 13:41:35 +05305291 if (!str) {
5292 VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
5293 "%s str allocation failed",__func__);
5294 return -ENOMEM;
5295 }
5296 vos_mem_copy(str, data, strlen((char *)data));
Anurag Chouhanda91a032017-11-02 20:53:38 +05305297 str[strlen((char *)data)] = '\0';
Anurag Chouhan54515d42017-04-20 14:12:46 +05305298 temp_str = str;
Anurag Chouhan0b29de02016-12-16 13:18:40 +05305299 /* parse the string */
5300 while (str && ('\0' != *str) && (num < max_entries)) {
5301 field = str;
5302 while (str && ('\0' != *str) && (separator != *str))
5303 str++;
5304 if ('\0' == *str) {
5305 /* reach the end of string */
5306 if ('\0' != *field) {
5307 strlcpy((char *)(datalist +
5308 (num * max_len_entry)),
5309 field, max_len_entry);
5310 num++;
5311 }
5312 break;
5313 }
5314 /* replace separator with NULL to terminate the data */
5315 *str++ = '\0';
5316 len = (char *)str - (char *)field;
5317 strlcpy((char *)(datalist + (num * max_len_entry)),
5318 field, len);
5319 num++;
5320 }
5321 *num_entries = num;
Anurag Chouhan54515d42017-04-20 14:12:46 +05305322 vos_mem_free(temp_str);
Anurag Chouhan0b29de02016-12-16 13:18:40 +05305323
5324 return 0;
5325}
5326#endif /* MDNS_OFFLOAD */
Jeff Johnson295189b2012-06-20 16:38:30 -07005327
5328v_BOOL_t hdd_update_config_dat( hdd_context_t *pHddCtx )
5329{
5330 v_BOOL_t fStatus = TRUE;
Gopichand Nakkala976e3252013-01-03 15:45:56 -08005331#ifdef WLAN_SOFTAP_VSTA_FEATURE
5332 tANI_U32 val;
5333#endif
Jeff Johnson295189b2012-06-20 16:38:30 -07005334
5335 hdd_config_t *pConfig = pHddCtx->cfg_ini;
Yue Maed390e72014-04-23 15:46:45 -07005336 tSirMacHTCapabilityInfo *htCapInfo;
5337 tANI_U32 temp32;
5338 tANI_U16 temp16;
Jeff Johnson295189b2012-06-20 16:38:30 -07005339
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005340 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_SHORT_GI_20MHZ,
Jeff Johnson295189b2012-06-20 16:38:30 -07005341 pConfig->ShortGI20MhzEnable, NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5342 {
5343 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005344 hddLog(LOGE, "Could not pass on WNI_CFG_SHORT_GI_20MHZ to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005345 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005346
5347 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_CAL_CONTROL, pConfig->Calibration,
Jeff Johnson295189b2012-06-20 16:38:30 -07005348 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5349 {
5350 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005351 hddLog(LOGE, "Could not pass on WNI_CFG_CAL_CONTROL to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005352 }
5353
5354 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_CAL_PERIOD, pConfig->CalibrationPeriod,
5355 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5356 {
5357 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005358 hddLog(LOGE, "Could not pass on WNI_CFG_CAL_PERIOD to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005359 }
5360
5361 if ( 0 != pConfig->Cfg1Id )
5362 {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005363 if (ccmCfgSetInt(pHddCtx->hHal, pConfig->Cfg1Id, pConfig->Cfg1Value, NULL,
Jeff Johnson295189b2012-06-20 16:38:30 -07005364 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5365 {
5366 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005367 hddLog(LOGE, "Could not pass on Cfg1Id to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005368 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005369
Jeff Johnson295189b2012-06-20 16:38:30 -07005370 }
5371
5372 if ( 0 != pConfig->Cfg2Id )
5373 {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005374 if (ccmCfgSetInt(pHddCtx->hHal, pConfig->Cfg2Id, pConfig->Cfg2Value,
Jeff Johnson295189b2012-06-20 16:38:30 -07005375 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5376 {
5377 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005378 hddLog(LOGE, "Could not pass on Cfg2Id to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005379 }
5380 }
5381
5382 if ( 0 != pConfig->Cfg3Id )
5383 {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005384 if (ccmCfgSetInt(pHddCtx->hHal, pConfig->Cfg3Id, pConfig->Cfg3Value,
Jeff Johnson295189b2012-06-20 16:38:30 -07005385 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5386 {
5387 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005388 hddLog(LOGE, "Could not pass on Cfg3Id to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005389 }
5390 }
5391
5392 if ( 0 != pConfig->Cfg4Id )
5393 {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005394 if (ccmCfgSetInt(pHddCtx->hHal, pConfig->Cfg4Id, pConfig->Cfg4Value,
Jeff Johnson295189b2012-06-20 16:38:30 -07005395 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5396 {
5397 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005398 hddLog(LOGE, "Could not pass on Cfg4Id to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005399 }
5400 }
5401
5402 if ( 0 != pConfig->Cfg5Id )
5403 {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005404 if (ccmCfgSetInt(pHddCtx->hHal, pConfig->Cfg5Id, pConfig->Cfg5Value,
Jeff Johnson295189b2012-06-20 16:38:30 -07005405 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5406 {
5407 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005408 hddLog(LOGE, "Could not pass on Cfg5Id to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005409 }
5410 }
5411
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005412 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BA_AUTO_SETUP, pConfig->BlockAckAutoSetup,
Jeff Johnson295189b2012-06-20 16:38:30 -07005413 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5414 {
5415 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005416 hddLog(LOGE, "Could not pass on WNI_CFG_BA_AUTO_SETUP to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005417 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005418
5419 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_FIXED_RATE, pConfig->TxRate,
Jeff Johnson295189b2012-06-20 16:38:30 -07005420 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5421 {
5422 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005423 hddLog(LOGE, "Could not pass on WNI_CFG_FIXED_RATE to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005424 }
5425
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005426 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_RX_AMPDU_FACTOR,
Jeff Johnson295189b2012-06-20 16:38:30 -07005427 pConfig->MaxRxAmpduFactor, NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5428 {
5429 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005430 hddLog(LOGE,"Could not pass on WNI_CFG_HT_AMPDU_PARAMS_MAX_RX_AMPDU_FACTOR to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005431 }
5432
5433 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_SHORT_PREAMBLE, pConfig->fIsShortPreamble,
5434 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5435 {
5436 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005437 hddLog(LOGE,"Could not pass on WNI_CFG_SHORT_PREAMBLE to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005438 }
5439
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005440 if (pConfig->fIsAutoIbssBssid)
Jeff Johnson295189b2012-06-20 16:38:30 -07005441 {
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005442 if (ccmCfgSetStr(pHddCtx->hHal, WNI_CFG_BSSID, (v_U8_t *)"000000000000",
Jeff Johnson295189b2012-06-20 16:38:30 -07005443 sizeof(v_BYTE_t) * VOS_MAC_ADDR_SIZE, NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5444 {
5445 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005446 hddLog(LOGE,"Could not pass on WNI_CFG_BSSID to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005447 }
5448 }
5449 else
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005450 {
Jeff Johnson295189b2012-06-20 16:38:30 -07005451 if ( VOS_FALSE == vos_is_macaddr_group( &pConfig->IbssBssid ))
5452 {
5453 VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_MED,
Arif Hussain24bafea2013-11-15 15:10:03 -08005454 "MAC Addr (IBSS BSSID) read from Registry is: " MAC_ADDRESS_STR,
5455 MAC_ADDR_ARRAY(pConfig->IbssBssid.bytes));
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005456 if (ccmCfgSetStr(pHddCtx->hHal, WNI_CFG_BSSID, pConfig->IbssBssid.bytes,
Jeff Johnson295189b2012-06-20 16:38:30 -07005457 sizeof(v_BYTE_t) * VOS_MAC_ADDR_SIZE, NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5458 {
5459 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005460 hddLog(LOGE,"Could not pass on WNI_CFG_BSSID to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005461 }
5462 }
5463 else
5464 {
5465 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005466 hddLog(LOGE,"Could not pass on WNI_CFG_BSSID to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005467 }
5468 }
5469
Naresh Jayaram3df09eb2013-12-18 17:39:04 +05305470 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PASSIVE_MINIMUM_CHANNEL_TIME,
5471 pConfig->nPassiveMinChnTime, NULL,
5472 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5473 {
5474 fStatus = FALSE;
5475 hddLog(LOGE, "Could not pass on WNI_CFG_PASSIVE_MINIMUM_CHANNEL_TIME"
5476 " to CCM\n");
5477 }
5478
5479 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PASSIVE_MAXIMUM_CHANNEL_TIME,
5480 pConfig->nPassiveMaxChnTime, NULL,
5481 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5482 {
5483 fStatus = FALSE;
5484 hddLog(LOGE, "Could not pass on WNI_CFG_PASSIVE_MAXIMUM_CHANNEL_TIME"
5485 " to CCM\n");
5486 }
5487
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005488 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BEACON_INTERVAL, pConfig->nBeaconInterval,
Jeff Johnson295189b2012-06-20 16:38:30 -07005489 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5490 {
5491 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005492 hddLog(LOGE, "Could not pass on WNI_CFG_BEACON_INTERVAL to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005493 }
5494
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005495 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_PS_POLL, pConfig->nMaxPsPoll,
Jeff Johnson295189b2012-06-20 16:38:30 -07005496 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5497 {
5498 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005499 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_PS_POLL to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005500 }
5501
5502 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_CURRENT_RX_ANTENNA, pConfig-> nRxAnt, NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5503 {
5504 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005505 hddLog(LOGE, "Failure: Could not pass on WNI_CFG_CURRENT_RX_ANTENNA configuration info to HAL" );
Jeff Johnson295189b2012-06-20 16:38:30 -07005506 }
5507
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005508 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_LOW_GAIN_OVERRIDE, pConfig->fIsLowGainOverride,
Jeff Johnson295189b2012-06-20 16:38:30 -07005509 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5510 {
5511 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005512 hddLog(LOGE, "Could not pass on WNI_CFG_LOW_GAIN_OVERRIDE to HAL");
Jeff Johnson295189b2012-06-20 16:38:30 -07005513 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005514
Jeff Johnson295189b2012-06-20 16:38:30 -07005515 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RSSI_FILTER_PERIOD, pConfig->nRssiFilterPeriod,
5516 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5517 {
5518 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005519 hddLog(LOGE, "Could not pass on WNI_CFG_RSSI_FILTER_PERIOD to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005520 }
5521
Jeff Johnson295189b2012-06-20 16:38:30 -07005522 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_IGNORE_DTIM, pConfig->fIgnoreDtim,
5523 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5524 {
5525 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005526 hddLog(LOGE, "Could not pass on WNI_IGNORE_DTIM configuration to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07005527 }
5528
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005529 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PS_ENABLE_HEART_BEAT, pConfig->fEnableFwHeartBeatMonitoring,
Jeff Johnson295189b2012-06-20 16:38:30 -07005530 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5531 {
5532 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005533 hddLog(LOGE, "Failure: Could not pass on WNI_CFG_PS_HEART_BEAT configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005534 }
5535
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005536 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PS_ENABLE_BCN_FILTER, pConfig->fEnableFwBeaconFiltering,
Jeff Johnson295189b2012-06-20 16:38:30 -07005537 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5538 {
5539 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005540 hddLog(LOGE, "Failure: Could not pass on WNI_CFG_PS_BCN_FILTER configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005541 }
5542
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005543 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PS_ENABLE_RSSI_MONITOR, pConfig->fEnableFwRssiMonitoring,
Jeff Johnson295189b2012-06-20 16:38:30 -07005544 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5545 {
5546 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005547 hddLog(LOGE, "Failure: Could not pass on WNI_CFG_PS_RSSI_MONITOR configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005548 }
5549
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005550 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PS_DATA_INACTIVITY_TIMEOUT, pConfig->nDataInactivityTimeout,
Jeff Johnson295189b2012-06-20 16:38:30 -07005551 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5552 {
5553 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005554 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_PS_DATA_INACTIVITY_TIMEOUT configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005555 }
5556
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005557 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_NTH_BEACON_FILTER, pConfig->nthBeaconFilter,
Jeff Johnson295189b2012-06-20 16:38:30 -07005558 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5559 {
5560 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005561 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_NTH_BEACON_FILTER configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005562 }
5563
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005564 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_LTE_COEX, pConfig->enableLTECoex,
Jeff Johnson295189b2012-06-20 16:38:30 -07005565 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5566 {
5567 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005568 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_LTE_COEX to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005569 }
5570
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005571 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_PHY_AGC_LISTEN_MODE, pConfig->nEnableListenMode,
Jeff Johnson295189b2012-06-20 16:38:30 -07005572 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5573 {
5574 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005575 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_PHY_AGC_LISTEN_MODE to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005576 }
5577
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005578 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_AP_KEEP_ALIVE_TIMEOUT, pConfig->apKeepAlivePeriod,
Jeff Johnson295189b2012-06-20 16:38:30 -07005579 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5580 {
5581 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005582 hddLog(LOGE, "Could not pass on WNI_CFG_AP_KEEP_ALIVE_TIMEOUT to CCM");
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005583 }
Jeff Johnson295189b2012-06-20 16:38:30 -07005584
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005585 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_GO_KEEP_ALIVE_TIMEOUT, pConfig->goKeepAlivePeriod,
Jeff Johnson295189b2012-06-20 16:38:30 -07005586 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5587 {
5588 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005589 hddLog(LOGE, "Could not pass on WNI_CFG_GO_KEEP_ALIVE_TIMEOUT to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005590 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005591
Sejal Chauhanbcde8bc2013-03-04 18:06:36 +05305592 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_AP_LINK_MONITOR_TIMEOUT, pConfig->apLinkMonitorPeriod,
5593 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5594 {
5595 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005596 hddLog(LOGE, "Could not pass on WNI_CFG_AP_LINK_MONITOR_TIMEOUT to CCM");
Sejal Chauhanbcde8bc2013-03-04 18:06:36 +05305597 }
5598
Madan Mohan Koyyalamudi2558bc92013-08-24 16:54:31 +05305599 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_GO_LINK_MONITOR_TIMEOUT, pConfig->goLinkMonitorPeriod,
5600 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5601 {
5602 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005603 hddLog(LOGE, "Could not pass on WNI_CFG_GO_LINK_MONITOR_TIMEOUT to CCM");
Madan Mohan Koyyalamudi2558bc92013-08-24 16:54:31 +05305604 }
5605
5606
Jeff Johnson295189b2012-06-20 16:38:30 -07005607#if defined WLAN_FEATURE_VOWIFI
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005608 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RRM_ENABLED, pConfig->fRrmEnable,
Jeff Johnson295189b2012-06-20 16:38:30 -07005609 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5610 {
5611 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005612 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_RRM_ENABLE configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005613 }
5614
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005615 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RRM_OPERATING_CHAN_MAX, pConfig->nInChanMeasMaxDuration,
Jeff Johnson295189b2012-06-20 16:38:30 -07005616 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5617 {
5618 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005619 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_RRM_OPERATING_CHAN_MAX configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005620 }
5621
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005622 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RRM_NON_OPERATING_CHAN_MAX, pConfig->nOutChanMeasMaxDuration,
Jeff Johnson295189b2012-06-20 16:38:30 -07005623 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5624 {
5625 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005626 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_RRM_OUT_CHAN_MAX configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005627 }
5628
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005629 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MCAST_BCAST_FILTER_SETTING, pConfig->mcastBcastFilterSetting,
Jeff Johnson295189b2012-06-20 16:38:30 -07005630 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5631#endif
5632
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005633 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_SINGLE_TID_RC, pConfig->bSingleTidRc,
Jeff Johnson295189b2012-06-20 16:38:30 -07005634 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5635 {
5636 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005637 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_SINGLE_TID_RC configuration info to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005638 }
5639
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005640 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TELE_BCN_WAKEUP_EN, pConfig->teleBcnWakeupEn,
Jeff Johnson295189b2012-06-20 16:38:30 -07005641 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5642 {
5643 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005644 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_TELE_BCN_WAKEUP_EN configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07005645 }
5646
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005647 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TELE_BCN_TRANS_LI, pConfig->nTeleBcnTransListenInterval,
Jeff Johnson295189b2012-06-20 16:38:30 -07005648 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5649 {
5650 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005651 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_TELE_BCN_TRANS_LI configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07005652 }
5653
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005654 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TELE_BCN_MAX_LI, pConfig->nTeleBcnMaxListenInterval,
Jeff Johnson295189b2012-06-20 16:38:30 -07005655 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5656 {
5657 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005658 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_TELE_BCN_MAX_LI configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07005659 }
5660
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005661 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TELE_BCN_TRANS_LI_IDLE_BCNS, pConfig->nTeleBcnTransLiNumIdleBeacons,
Jeff Johnson295189b2012-06-20 16:38:30 -07005662 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5663 {
5664 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005665 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 -07005666 }
5667
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005668 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TELE_BCN_MAX_LI_IDLE_BCNS, pConfig->nTeleBcnMaxLiNumIdleBeacons,
Jeff Johnson295189b2012-06-20 16:38:30 -07005669 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5670 {
5671 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005672 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 -07005673 }
5674
5675 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RF_SETTLING_TIME_CLK, pConfig->rfSettlingTimeUs,
5676 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5677 {
5678 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005679 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_RF_SETTLING_TIME_CLK configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07005680 }
5681
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005682 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_INFRA_STA_KEEP_ALIVE_PERIOD, pConfig->infraStaKeepAlivePeriod,
Jeff Johnson295189b2012-06-20 16:38:30 -07005683 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5684 {
5685 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005686 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 -07005687 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005688 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_DYNAMIC_PS_POLL_VALUE, pConfig->dynamicPsPollValue,
Jeff Johnson295189b2012-06-20 16:38:30 -07005689 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5690 {
5691 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005692 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_DYNAMIC_PS_POLL_VALUE configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07005693 }
5694
5695 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT, pConfig->nNullDataApRespTimeout,
5696 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5697 {
5698 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005699 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 -08005700 }
Jeff Johnson295189b2012-06-20 16:38:30 -07005701
Jeff Johnsoneed2dca2013-02-22 21:18:46 -08005702 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD, pConfig->apDataAvailPollPeriodInMs,
Jeff Johnson295189b2012-06-20 16:38:30 -07005703 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
Jeff Johnsoneed2dca2013-02-22 21:18:46 -08005704 {
5705 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005706 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 -08005707 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005708 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_FRAGMENTATION_THRESHOLD, pConfig->FragmentationThreshold,
Jeff Johnson295189b2012-06-20 16:38:30 -07005709 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5710 {
5711 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005712 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_FRAGMENTATION_THRESHOLD configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07005713 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005714 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RTS_THRESHOLD, pConfig->RTSThreshold,
Jeff Johnson295189b2012-06-20 16:38:30 -07005715 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5716 {
5717 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005718 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_RTS_THRESHOLD configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07005719 }
5720
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005721 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_11D_ENABLED, pConfig->Is11dSupportEnabled,
Jeff Johnson295189b2012-06-20 16:38:30 -07005722 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5723 {
5724 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005725 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_11D_ENABLED configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07005726 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005727 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_HEART_BEAT_THRESHOLD, pConfig->HeartbeatThresh24,
Jeff Johnson295189b2012-06-20 16:38:30 -07005728 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5729 {
5730 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005731 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_HEART_BEAT_THRESHOLD configuration info to CCM" );
Jeff Johnson295189b2012-06-20 16:38:30 -07005732 }
5733
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005734 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_CLOSE_LOOP,
Jeff Johnson295189b2012-06-20 16:38:30 -07005735 pConfig->enableCloseLoop, NULL, eANI_BOOLEAN_FALSE)
5736 ==eHAL_STATUS_FAILURE)
5737 {
5738 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005739 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_CLOSE_LOOP to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005740 }
5741
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005742 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TX_PWR_CTRL_ENABLE,
Jeff Johnson295189b2012-06-20 16:38:30 -07005743 pConfig->enableAutomaticTxPowerControl, NULL, eANI_BOOLEAN_FALSE)
5744 ==eHAL_STATUS_FAILURE)
5745 {
5746 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005747 hddLog(LOGE, "Could not pass on WNI_CFG_TX_PWR_CTRL_ENABLE to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005748 }
5749
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005750 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_SHORT_GI_40MHZ,
Jeff Johnson295189b2012-06-20 16:38:30 -07005751 pConfig->ShortGI40MhzEnable, NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5752 {
5753 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005754 hddLog(LOGE, "Could not pass on WNI_CFG_SHORT_GI_40MHZ to CCM");
Jeff Johnson295189b2012-06-20 16:38:30 -07005755 }
5756
Jeff Johnsond13512a2012-07-17 11:42:19 -07005757
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005758 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_MC_ADDR_LIST, pConfig->fEnableMCAddrList,
Jeff Johnsond13512a2012-07-17 11:42:19 -07005759 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5760 {
5761 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005762 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_MC_ADDR_LIST to CCM");
Jeff Johnsond13512a2012-07-17 11:42:19 -07005763 }
5764
mukul sharmae4abd892016-11-24 22:03:31 +05305765 /* cache the value configured in fwr */
5766 pHddCtx->mc_list_cfg_in_fwr = pConfig->fEnableMCAddrList;
5767
Jeff Johnsone7245742012-09-05 17:12:55 -07005768#ifdef WLAN_FEATURE_11AC
5769 /* Based on cfg.ini, update the Basic MCS set, RX/TX MCS map in the cfg.dat */
5770 /* valid values are 0(MCS0-7), 1(MCS0-8), 2(MCS0-9) */
5771 /* we update only the least significant 2 bits in the corresponding fields */
5772 if( (pConfig->dot11Mode == eHDD_DOT11_MODE_AUTO) ||
5773 (pConfig->dot11Mode == eHDD_DOT11_MODE_11ac_ONLY) ||
5774 (pConfig->dot11Mode == eHDD_DOT11_MODE_11ac) )
5775 {
5776 {
5777 tANI_U32 temp = 0;
5778
5779 ccmCfgGetInt(pHddCtx->hHal, WNI_CFG_VHT_BASIC_MCS_SET, &temp);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005780 temp = (temp & 0xFFFC) | pConfig->vhtRxMCS;
Jeff Johnsone7245742012-09-05 17:12:55 -07005781
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005782 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_VHT_BASIC_MCS_SET,
Jeff Johnsone7245742012-09-05 17:12:55 -07005783 temp, NULL, eANI_BOOLEAN_FALSE)
5784 ==eHAL_STATUS_FAILURE)
5785 {
5786 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005787 hddLog(LOGE, "Could not pass on WNI_CFG_VHT_BASIC_MCS_SET to CCM");
Jeff Johnsone7245742012-09-05 17:12:55 -07005788 }
5789
5790 ccmCfgGetInt(pHddCtx->hHal, WNI_CFG_VHT_RX_MCS_MAP, &temp);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005791 temp = (temp & 0xFFFC) | pConfig->vhtRxMCS;
Jeff Johnsone7245742012-09-05 17:12:55 -07005792
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005793 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_VHT_RX_MCS_MAP,
Jeff Johnsone7245742012-09-05 17:12:55 -07005794 temp, NULL, eANI_BOOLEAN_FALSE)
5795 ==eHAL_STATUS_FAILURE)
5796 {
5797 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005798 hddLog(LOGE, "Could not pass on WNI_CFG_VHT_RX_MCS_MAP to CCM");
Jeff Johnsone7245742012-09-05 17:12:55 -07005799 }
5800
5801 ccmCfgGetInt(pHddCtx->hHal, WNI_CFG_VHT_TX_MCS_MAP, &temp);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005802 temp = (temp & 0xFFFC) | pConfig->vhtTxMCS;
Jeff Johnsone7245742012-09-05 17:12:55 -07005803
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005804 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_VHT_TX_MCS_MAP,
Jeff Johnsone7245742012-09-05 17:12:55 -07005805 temp, NULL, eANI_BOOLEAN_FALSE)
5806 ==eHAL_STATUS_FAILURE)
5807 {
5808 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005809 hddLog(LOGE, "Could not pass on WNI_CFG_VHT_TX_MCS_MAP to CCM");
Jeff Johnsone7245742012-09-05 17:12:55 -07005810 }
Praveen Kumar Sirisilla4cf7d262013-12-04 17:22:53 -08005811 /* Currently shortGI40Mhz is used for shortGI80Mhz */
5812 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_VHT_SHORT_GI_80MHZ,
5813 pConfig->ShortGI40MhzEnable, NULL, eANI_BOOLEAN_FALSE)
5814 == eHAL_STATUS_FAILURE)
5815 {
5816 fStatus = FALSE;
5817 hddLog(LOGE, "Could not pass WNI_VHT_SHORT_GI_80MHZ to CCM\n");
5818 }
Abhishek Singhaa63bf22014-10-30 17:09:45 +05305819 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_VHT_AMPDU_LEN_EXPONENT,
5820 pConfig->gVhtMaxAmpduLenExp, NULL, eANI_BOOLEAN_FALSE)
5821 ==eHAL_STATUS_FAILURE)
5822 {
5823 fStatus = FALSE;
5824 hddLog(LOGE, "Could not pass on WNI_CFG_VHT_AMPDU_LEN_EXPONENT to CCM");
5825 }
5826
Jeff Johnsone7245742012-09-05 17:12:55 -07005827 }
5828 }
5829#endif
5830
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005831 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_NUM_BUFF_ADVERT,pConfig->numBuffAdvert,
Madan Mohan Koyyalamudidd11eaf2012-11-02 16:04:21 -07005832 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5833 {
5834 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005835 hddLog(LOGE, "Could not pass on WNI_CFG_NUM_BUFF_ADVERT to CCM");
Madan Mohan Koyyalamudidd11eaf2012-11-02 16:04:21 -07005836 }
5837
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005838 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_HT_RX_STBC,
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05305839 pConfig->enableRxSTBC, NULL, eANI_BOOLEAN_FALSE)
5840 ==eHAL_STATUS_FAILURE)
5841 {
5842 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005843 hddLog(LOGE, "Could not pass on WNI_CFG_HT_RX_STBC to CCM");
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05305844 }
5845
Yue Maed390e72014-04-23 15:46:45 -07005846 ccmCfgGetInt(pHddCtx->hHal, WNI_CFG_HT_CAP_INFO, &temp32);
5847 temp16 = temp32 & 0xffff;
5848 htCapInfo = (tSirMacHTCapabilityInfo *)&temp16;
5849 htCapInfo->rxSTBC = pConfig->enableRxSTBC;
5850 temp32 = temp16;
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05305851
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005852 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_HT_CAP_INFO,
Yue Maed390e72014-04-23 15:46:45 -07005853 temp32, NULL, eANI_BOOLEAN_FALSE)
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05305854 ==eHAL_STATUS_FAILURE)
5855 {
5856 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005857 hddLog(LOGE, "Could not pass on WNI_CFG_HT_CAP_INFO to CCM");
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05305858 }
5859
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005860 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_VHT_RXSTBC,
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05305861 pConfig->enableRxSTBC, NULL, eANI_BOOLEAN_FALSE)
5862 ==eHAL_STATUS_FAILURE)
5863 {
5864 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005865 hddLog(LOGE, "Could not pass on WNI_CFG_VHT_RXSTBC to CCM");
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05305866 }
Gopichand Nakkala976e3252013-01-03 15:45:56 -08005867
5868#ifdef WLAN_SOFTAP_VSTA_FEATURE
5869 if(pConfig->fEnableVSTASupport)
5870 {
5871 ccmCfgGetInt(pHddCtx->hHal, WNI_CFG_ASSOC_STA_LIMIT, &val);
5872 if( val <= WNI_CFG_ASSOC_STA_LIMIT_STADEF)
5873 val = WNI_CFG_ASSOC_STA_LIMIT_STAMAX;
5874 }
5875 else
5876 {
5877 val = WNI_CFG_ASSOC_STA_LIMIT_STADEF;
5878 }
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005879 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ASSOC_STA_LIMIT, val,
Gopichand Nakkala976e3252013-01-03 15:45:56 -08005880 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5881 {
5882 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005883 hddLog(LOGE,"Failure: Could not pass on WNI_CFG_ASSOC_STA_LIMIT configuration info to CCM" );
Gopichand Nakkala976e3252013-01-03 15:45:56 -08005884 }
5885#endif
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08005886 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_LPWR_IMG_TRANSITION,
Madan Mohan Koyyalamudi0d40e662012-12-07 14:24:14 -08005887 pConfig->enableLpwrImgTransition, NULL, eANI_BOOLEAN_FALSE)
5888 ==eHAL_STATUS_FAILURE)
5889 {
5890 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005891 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_LPWR_IMG_TRANSITION to CCM");
Madan Mohan Koyyalamudi0d40e662012-12-07 14:24:14 -08005892 }
Pratik Bhalgat6bfd1422012-11-22 17:09:40 +05305893
Madan Mohan Koyyalamudi01cba042013-01-10 21:56:05 -08005894 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_MCC_ADAPTIVE_SCHED, pConfig->enableMCCAdaptiveScheduler,
5895 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5896 {
5897 fStatus = FALSE;
Arif Hussain6d2a3322013-11-17 19:50:10 -08005898 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_MCC_ADAPTIVE_SCHED to CCM");
Madan Mohan Koyyalamudi01cba042013-01-10 21:56:05 -08005899 }
Leela V Kiran Kumar Reddy Chiralab1f7d342013-02-11 00:27:02 -08005900 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_DISABLE_LDPC_WITH_TXBF_AP, pConfig->disableLDPCWithTxbfAP,
5901 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5902 {
5903 fStatus = FALSE;
Kiran Kumar Lokere1f39e952013-04-03 18:34:30 -07005904 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 -08005905 }
Kiran Kumar Lokere1f39e952013-04-03 18:34:30 -07005906
5907 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_DYNAMIC_THRESHOLD_ZERO, pConfig->retryLimitZero,
5908 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5909 {
5910 fStatus = FALSE;
5911 hddLog(LOGE, "Could not pass on WNI_CFG_DYNAMIC_THRESHOLD_ZERO to CCM");
5912 }
5913
5914 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_DYNAMIC_THRESHOLD_ONE, pConfig->retryLimitOne,
5915 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5916 {
5917 fStatus = FALSE;
5918 hddLog(LOGE, "Could not pass on WNI_CFG_DYNAMIC_THRESHOLD_ONE to CCM");
5919 }
5920
5921 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_DYNAMIC_THRESHOLD_TWO, pConfig->retryLimitTwo,
5922 NULL, eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5923 {
5924 fStatus = FALSE;
5925 hddLog(LOGE, "Could not pass on WNI_CFG_DYNAMIC_THRESHOLD_TWO to CCM");
5926 }
5927
Gopichand Nakkala42bc89e2013-05-27 12:49:09 +05305928 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_MEDIUM_TIME, pConfig->cfgMaxMediumTime,
5929 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5930 {
5931 fStatus = FALSE;
5932 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_MEDIUM_TIME to CCM");
5933 }
5934
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05305935#ifdef FEATURE_WLAN_TDLS
5936
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07005937 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TDLS_QOS_WMM_UAPSD_MASK,
5938 pConfig->fTDLSUapsdMask, NULL,
5939 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05305940 {
5941 fStatus = FALSE;
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07005942 hddLog(LOGE, "Could not pass on WNI_CFG_TDLS_QOS_WMM_UAPSD_MASK to CCM");
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05305943 }
Pradeep Reddy POTTETIedaeb5f2014-05-22 23:34:41 +05305944
5945 if (TRUE == pConfig->fEnableTDLSScanCoexSupport)
5946 {
5947 /* TDLSScanCoexistance feature is supported when the DUT acts as only
5948 * the Sleep STA and hence explicitly disable the BufferSta capability
5949 * on the DUT. DUT's Buffer STA capability is explicitly disabled to
5950 * ensure that the TDLS peer shall not go to TDLS power save mode.
5951 */
5952 pConfig->fEnableTDLSBufferSta = FALSE;
5953 }
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07005954 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TDLS_BUF_STA_ENABLED,
5955 pConfig->fEnableTDLSBufferSta, NULL,
5956 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05305957 {
5958 fStatus = FALSE;
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07005959 hddLog(LOGE, "Could not pass on WNI_CFG_TDLS_BUF_STA_ENABLED to CCM");
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05305960 }
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07005961 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TDLS_PUAPSD_INACT_TIME,
5962 pConfig->fTDLSPuapsdInactivityTimer, NULL,
5963 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05305964 {
5965 fStatus = FALSE;
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07005966 hddLog(LOGE, "Could not pass on WNI_CFG_TDLS_PUAPSD_INACT_TIME to CCM");
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05305967 }
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07005968 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TDLS_RX_FRAME_THRESHOLD,
5969 pConfig->fTDLSRxFrameThreshold, NULL,
5970 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05305971 {
5972 fStatus = FALSE;
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07005973 hddLog(LOGE, "Could not pass on WNI_CFG_TDLS_RX_FRAME_THRESHOLD to CCM");
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05305974 }
Naresh Jayaramf73f3762014-02-04 16:13:20 +05305975
5976 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TDLS_OFF_CHANNEL_ENABLED,
5977 pConfig->fEnableTDLSOffChannel, NULL,
5978 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5979 {
5980 fStatus = FALSE;
5981 hddLog(LOGE, "Could not pass on WNI_CFG_TDLS_BUF_STA_ENABLED to CCM\n");
5982 }
5983
Pradeep Reddy POTTETIa9c80d52014-05-09 18:05:29 +05305984 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TDLS_WMM_MODE_ENABLED,
5985 pConfig->fEnableTDLSWmmMode, NULL,
5986 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
5987 {
5988 fStatus = FALSE;
5989 hddLog(LOGE, "Could not pass on WNI_CFG_TDLS_WMM_MODE_ENABLED to CCM\n");
5990 }
5991
Gopichand Nakkala79ff85d2013-05-27 17:05:29 +05305992#endif
5993
Sudhir Sattayappa Kohallida1be202013-07-11 12:04:30 -07005994 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_ADAPT_RX_DRAIN,
5995 pConfig->fEnableAdaptRxDrain, NULL,
5996 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
5997 {
5998 fStatus = FALSE;
5999 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_ADAPT_RX_DRAIN to CCM");
6000 }
Yue Ma0fd23872013-08-01 15:56:47 -07006001
6002 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_FLEX_CONNECT_POWER_FACTOR,
6003 pConfig->flexConnectPowerFactor, NULL,
6004 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6005 {
6006 fStatus = FALSE;
6007 hddLog(LOGE, "Failure: Could not pass on "
6008 "WNI_CFG_FLEX_CONNECT_POWER_FACTOR to CCM");
6009 }
6010
Madan Mohan Koyyalamudica454572013-08-07 19:57:03 +05306011 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ANTENNA_DIVESITY,
6012 pConfig->antennaDiversity, NULL,
6013 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
6014 {
6015 fStatus = FALSE;
6016 hddLog(LOGE, "Could not pass on WNI_CFG_ANTENNA_DIVESITY to CCM");
6017 }
6018
Kiet Lam4bbd3cb2013-11-07 20:03:49 +05306019 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ATH_DISABLE,
6020 pConfig->cfgAthDisable, NULL,
6021 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
6022 {
6023 fStatus = FALSE;
6024 hddLog(LOGE, "Could not pass on WNI_CFG_ATH_DISABLE to CCM");
6025 }
c_hpothu6d7dc922013-12-02 12:36:41 +05306026
6027 if (ccmCfgSetInt(pHddCtx->hHal,
6028 WNI_CFG_BTC_ACTIVE_WLAN_LEN,
6029 pConfig->cfgBtcActiveWlanLen,
6030 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6031 {
6032 fStatus = FALSE;
6033 hddLog(LOGE, "Could not pass on WNI_BTC_ACTIVE_WLAN_LEN to CCM");
6034 }
6035
6036 if (ccmCfgSetInt(pHddCtx->hHal,
6037 WNI_CFG_BTC_ACTIVE_BT_LEN,
6038 pConfig->cfgBtcActiveBtLen,
6039 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6040 {
6041 fStatus = FALSE;
6042 hddLog(LOGE, "Could not pass on WNI_BTC_ACTIVE_BT_LEN to CCM");
6043 }
6044
6045 if (ccmCfgSetInt(pHddCtx->hHal,
6046 WNI_CFG_BTC_SAP_ACTIVE_WLAN_LEN,
6047 pConfig->cfgBtcSapActiveWlanLen,
6048 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6049 {
6050 fStatus = FALSE;
6051 hddLog(LOGE, "Could not pass on WNI_BTC_ACTIVE_WLAN_LEN to CCM");
6052 }
6053
6054 if (ccmCfgSetInt(pHddCtx->hHal,
6055 WNI_CFG_BTC_SAP_ACTIVE_BT_LEN,
6056 pConfig->cfgBtcSapActiveBtLen,
6057 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6058 {
6059 fStatus = FALSE;
6060 hddLog(LOGE, "Could not pass on WNI_BTC_ACTIVE_BT_LEN to CCM");
6061 }
AnjaneeDevi Kapparapu50239e32014-01-07 18:09:33 +05306062
6063 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ASD_PROBE_INTERVAL,
6064 pConfig->gAsdProbeInterval, NULL,
6065 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
6066 {
6067 fStatus = FALSE;
6068 hddLog(LOGE, "Could not pass on WNI_CFG_ASD_PROBE_INTERVAL to CCM");
6069 }
6070
6071 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ASD_TRIGGER_THRESHOLD,
6072 pConfig->gAsdTriggerThreshold, NULL,
6073 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
6074 {
6075 fStatus = FALSE;
6076 hddLog(LOGE, "Could not pass on WNI_CFG_ASD_TRIGGER_THRESHOLD to CCM");
6077 }
6078
6079 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ASD_RTT_RSSI_HYST_THRESHOLD,
6080 pConfig->gAsdRTTRssiHystThreshold, NULL,
6081 eANI_BOOLEAN_FALSE)==eHAL_STATUS_FAILURE)
6082 {
6083 fStatus = FALSE;
6084 hddLog(LOGE, "Could not pass on WNI_CFG_ASD_RSSI_HYST_THRESHOLD to CCM");
6085 }
Leela Venkata Kiran Kumar Reddy Chirala22c159b2013-12-23 18:19:13 -08006086
6087 if (ccmCfgSetInt(pHddCtx->hHal,
6088 WNI_CFG_DEBUG_P2P_REMAIN_ON_CHANNEL,
6089 pConfig->debugP2pRemainOnChannel,
6090 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6091 {
6092 fStatus = FALSE;
6093 hddLog(LOGE,
6094 "Could not pass on WNI_CFG_DEBUG_P2P_REMAIN_ON_CHANNEL to CCM");
6095 }
6096
6097 if (ccmCfgSetInt(pHddCtx->hHal,
6098 WNI_CFG_BTC_CTS2S_DURING_SCO,
6099 pConfig->cfgBtcCTS2SduringSCO,
6100 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6101 {
6102 fStatus = FALSE;
6103 hddLog(LOGE, "Could not pass on WNI_CFG_BTC_CTS2S_DURING_SCO to CCM");
6104 }
Abhishek Singh8280c4e2014-02-18 13:26:34 +05306105
6106 if(ccmCfgSetInt(pHddCtx->hHal,
6107 WNI_CFG_DEFAULT_RATE_INDEX_24GHZ,
6108 defHddRateToDefCfgRate(pConfig->defaultRateIndex24Ghz),
6109 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6110 {
6111 fStatus = FALSE;
6112 hddLog(LOGE, "Could not pass on WNI_CFG_DEFAULT_RATE_INDEX_24GHZ to"
6113 " CCM\n");
6114 }
c_hpothu5bd1ae42014-03-07 20:28:22 +05306115
6116 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RA_FILTER_ENABLE, pConfig->cfgRAFilterEnable,
6117 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6118 {
6119 fStatus = FALSE;
6120 hddLog(LOGE, "Could not pass on WNI_CFG_RA_FILTER_ENABLE to CCM");
6121 }
6122
6123 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_RA_RATE_LIMIT_INTERVAL, pConfig->cfgRARateLimitInterval,
6124 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6125 {
6126 fStatus = FALSE;
6127 hddLog(LOGE, "Could not pass on WNI_CFG_RA_FILTER_ENABLE to CCM");
6128 }
6129
c_hpothu2d0f1c42014-04-01 18:38:51 +05306130 if (ccmCfgSetInt(pHddCtx->hHal,
6131 WNI_CFG_BTC_FATAL_HID_NSNIFF_BLK_GUIDANCE,
6132 pConfig->cfgBtcFatalHidnSniffBlkGuidance,
6133 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6134 {
6135 fStatus = FALSE;
6136 hddLog(LOGE, "Could not pass on"
6137 "WNI_CFG_BTC_FATAL_HID_NSNIFF_BLK_GUIDANCE to CCM");
6138 }
6139
6140 if (ccmCfgSetInt(pHddCtx->hHal,
6141 WNI_CFG_BTC_CRITICAL_HID_NSNIFF_BLK_GUIDANCE,
6142 pConfig->cfgBtcCriticalHidnSniffBlkGuidance,
6143 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6144 {
6145 fStatus = FALSE;
6146 hddLog(LOGE, "Could not pass on"
6147 "WNI_CFG_BTC_CRITICAL_HID_NSNIFF_BLK_GUIDANCE to CCM");
6148 }
6149
6150 if (ccmCfgSetInt(pHddCtx->hHal,
6151 WNI_CFG_BTC_DYN_A2DP_TX_QUEUE_THOLD,
6152 pConfig->cfgBtcA2dpTxQueueThold,
6153 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6154 {
6155 fStatus = FALSE;
6156 hddLog(LOGE, "Could not pass on"
6157 "WNI_CFG_BTC_DYN_A2DP_TX_QUEUE_THOLD to CCM");
6158 }
6159
6160 if (ccmCfgSetInt(pHddCtx->hHal,
6161 WNI_CFG_BTC_DYN_OPP_TX_QUEUE_THOLD,
6162 pConfig->cfgBtcOppTxQueueThold,
6163 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6164 {
6165 fStatus = FALSE;
6166 hddLog(LOGE, "Could not pass on"
6167 "WNI_CFG_BTC_DYN_OPP_TX_QUEUE_THOLD to CCM");
6168 }
6169
Chet Lanctotfadc8e32014-04-24 14:50:52 -07006170#ifdef WLAN_FEATURE_11W
6171 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PMF_SA_QUERY_MAX_RETRIES,
6172 pConfig->pmfSaQueryMaxRetries, NULL,
6173 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6174 {
6175 fStatus = FALSE;
6176 hddLog(LOGE, "Could not pass on WNI_CFG_SA_QUERY_MAX_RETRIES to CCM");
6177 }
6178
6179 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_PMF_SA_QUERY_RETRY_INTERVAL,
6180 pConfig->pmfSaQueryRetryInterval, NULL,
6181 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6182 {
6183 fStatus = FALSE;
6184 hddLog(LOGE, "Could not pass on WNI_CFG_SA_QUERY_RETRY_INTERVAL to CCM");
6185 }
6186#endif
Mihir Shetec34258c2014-07-30 17:50:27 +05306187 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_UAPSD_CONSEC_SP,
6188 pConfig->maxUapsdConsecSP, NULL,
6189 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6190 {
6191 fStatus = FALSE;
6192 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_UAPSD_CONSEC_SP");
6193 }
6194
6195 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_UAPSD_CONSEC_RX_CNT,
6196 pConfig->maxUapsdConsecRxCnt, NULL,
6197 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6198 {
6199 fStatus = FALSE;
6200 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_UAPSD_CONSEC_RX_CNT");
6201 }
6202
6203 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_UAPSD_CONSEC_TX_CNT,
6204 pConfig->maxUapsdConsecTxCnt, NULL,
6205 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6206 {
6207 fStatus = FALSE;
6208 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_UAPSD_CONSEC_TX_CNT");
6209 }
6210
6211 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_UAPSD_CONSEC_TX_CNT_MEAS_WINDOW,
6212 pConfig->uapsdConsecTxCntMeasWindow, NULL,
6213 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6214 {
6215 fStatus = FALSE;
6216 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_UAPSD_CONSEC_TX_CNT_MEAS_WINDOW");
6217 }
6218
6219 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_UAPSD_CONSEC_RX_CNT_MEAS_WINDOW,
6220 pConfig->uapsdConsecRxCntMeasWindow, NULL,
6221 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6222 {
6223 fStatus = FALSE;
6224 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_UAPSD_CONSEC_RX_CNT_MEAS_WINDOW");
6225 }
6226
6227 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_PSPOLL_IN_WMM_UAPSD_PS_MODE,
6228 pConfig->maxPsPollInWmmUapsdMode, NULL,
6229 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6230 {
6231 fStatus = FALSE;
6232 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_PSPOLL_IN_WMM_UAPSD_PS_MODE");
6233 }
6234
6235 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_MAX_UAPSD_INACTIVITY_INTERVALS,
6236 pConfig->maxUapsdInactivityIntervals, NULL,
6237 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6238 {
6239 fStatus = FALSE;
6240 hddLog(LOGE, "Could not pass on WNI_CFG_MAX_UAPSD_INACTIVITY_INTERVALS");
6241 }
6242
6243 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_DYNAMIC_WMMPS,
6244 pConfig->enableDynamicWMMPS, NULL,
6245 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6246 {
6247 fStatus = FALSE;
6248 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_DYNAMIC_WMMPS");
6249 }
Chet Lanctotfadc8e32014-04-24 14:50:52 -07006250
c_hpothu03d961b2014-09-19 16:45:00 +05306251 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BURST_MODE_BE_TXOP_VALUE,
6252 pConfig->burstModeTXOPValue, NULL,
6253 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6254 {
6255 fStatus = FALSE;
6256 hddLog(LOGE, "Could not pass on WNI_CFG_BURST_MODE_BE_TXOP_VALUE ");
6257 }
Deepthi Gowri9025aa62014-11-07 19:45:36 +05306258
6259 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_DYNAMIC_RA_START_RATE,
6260 pConfig->enableDynamicRAStartRate,
6261 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6262 {
6263 fStatus = FALSE;
6264 hddLog(LOGE, "Could not pass on"
6265 "WNI_CFG_ENABLE_DYNAMIC_RA_START_RATE to CCM");
6266 }
Naresh Jayaramf5bbe3f2014-12-29 18:32:47 +05306267
6268 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BTC_FAST_WLAN_CONN_PREF,
6269 pConfig->btcFastWlanConnPref, NULL,
6270 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6271 {
6272 fStatus = FALSE;
6273 hddLog(LOGE, "Could not pass on WNI_CFG_BTC_FAST_WLAN_CONN_PREF ");
6274 }
jagadeeshaf2d0ce2015-03-31 11:45:30 +05306275
6276 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_RTSCTS_HTVHT,
6277 pConfig->enableRtsCtsHtVht,
6278 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6279 {
6280 fStatus = FALSE;
6281 hddLog(LOGE, "Could not pass on"
6282 "WNI_CFG_ENABLE_RTSCTS_HTVHT to CCM");
6283 }
Hanumantha Reddy Pothulaee001fc2015-05-26 15:21:53 +05306284
6285 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TOGGLE_ARP_BDRATES,
6286 pConfig->toggleArpBDRates,
6287 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6288 {
6289 fStatus = FALSE;
6290 hddLog(LOGE, "Could not pass on"
6291 "WNI_CFG_TOGGLE_ARP_BDRATES to CCM");
6292 }
Sachin Ahuja41b61902015-06-18 18:32:15 +05306293
6294 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BTC_STATIC_OPP_WLAN_IDLE_WLAN_LEN,
6295 pConfig->btcStaticOppWlanIdleWlanLen, NULL,
6296 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6297 {
6298 fStatus = FALSE;
6299 hddLog(LOGE, "Could not pass on WNI_CFG_BTC_STATIC_OPP_WLAN_IDLE_WLAN_LEN ");
6300 }
6301
6302 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BTC_STATIC_OPP_WLAN_IDLE_BT_LEN,
6303 pConfig->btcStaticOppWlanIdleBtLen, NULL,
6304 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6305 {
6306 fStatus = FALSE;
6307 hddLog(LOGE, "Could not pass on WNI_CFG_BTC_STATIC_OPP_WLAN_IDLE_BT_LEN ");
6308 }
6309
Manjeet Singh67024b02016-10-26 15:34:20 +05306310 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BTC_DISABLE_WLAN_LINK_CRITICAL,
6311 pConfig->btc_disable_wlan_link_critical, NULL,
6312 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6313 {
6314 fStatus = FALSE;
6315 hddLog(LOGE, "Could not pass on WNI_CFG_BTC_DISABLE_WLAN_LINK_CRITICAL");
6316 }
6317
Hanumantha Reddy Pothula9a8ccab2015-07-03 14:33:17 +05306318 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_LINK_FAIL_TIMEOUT,
6319 pConfig->linkFailTimeout, NULL,
6320 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6321 {
6322 fStatus = FALSE;
6323 hddLog(LOGE, "Could not pass on WNI_CFG_LINK_FAIL_TIMEOUT ");
6324 }
6325
6326 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_LINK_FAIL_TX_CNT,
6327 pConfig->linkFailTxCnt, NULL,
6328 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6329 {
6330 fStatus = FALSE;
6331 hddLog(LOGE, "Could not pass on WNI_CFG_LINK_FAIL_TX_CNT ");
6332 }
Mahesh A Saptasagarbeca12c2015-09-07 16:21:06 +05306333 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_OPTIMIZE_CA_EVENT,
6334 pConfig->gOptimizeCAevent, NULL,
6335 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6336 {
6337 fStatus = FALSE;
6338 hddLog(LOGE, "Could not pass on WNI_CFG_OPTIMIZE_CA_EVENT ");
6339 }
Padma, Santhosh Kumare2eb0fa2015-08-26 13:40:47 +05306340 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_EXT_SCAN_CONC_MODE, pConfig->cfgExtScanConcMode,
6341 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6342 {
6343 fStatus = FALSE;
6344 hddLog(LOGE, "Could not pass on WNI_CFG_EXT_SCAN_CONC_MODE to CCM");
6345 }
Mahesh A Saptasagarbeca12c2015-09-07 16:21:06 +05306346
Hanumantha Reddy Pothula802d31d2015-09-29 17:39:11 +05306347 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ACTIVE_PASSIVE_CON,
6348 pConfig->gActivePassiveChCon, NULL,
6349 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6350 {
6351 fStatus = FALSE;
6352 hddLog(LOGE, "Could not pass on WNI_CFG_ACTIVE_PASSIVE_CON ");
6353 }
Hanumantha Reddy Pothulaca1d1cc2015-10-26 15:37:35 +05306354
6355 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_MAC_ADDR_SPOOFING,
6356 pConfig->enableMacSpoofing, NULL,
6357 eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6358 {
6359 fStatus = FALSE;
6360 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_MAC_ADDR_SPOOFING ");
6361 }
6362
Sachin Ahujab4d7a292015-12-08 19:57:04 +05306363 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_DISABLE_BAR_WAKE_UP_HOST,
6364 pConfig->disableBarWakeUp,
6365 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6366 {
6367 fStatus = FALSE;
6368 hddLog(LOGE, "Could not pass on WNI_CFG_DISABLE_BAR_WAKE_UP_HOST to CCM");
6369 }
6370
Manjeet Singhaefc25c2016-02-09 19:06:08 +05306371 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_SAR_BOFFSET_SET_CORRECTION,
6372 pConfig->boffset_correction_enable,
6373 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6374 {
6375 fStatus = FALSE;
6376 hddLog(LOGE, "Could not pass on WNI_CFG_SAR_BOFFSET_SET_CORRECTION to CCM");
6377 }
Padma, Santhosh Kumar36183352016-11-08 17:48:34 +05306378
6379 if (ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_DISABLE_SCAN_DURING_SCO,
6380 pConfig->disable_scan_during_sco,
6381 NULL, eANI_BOOLEAN_FALSE) == eHAL_STATUS_FAILURE)
6382 {
6383 fStatus = FALSE;
6384 hddLog(LOGE, "Could not pass on WNI_CFG_DISABLE_SCAN_DURING_SCO to CCM");
6385 }
Anurag Chouhana9116af2016-11-23 00:03:08 +05306386 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_CONC_BMISS,
6387 pConfig->enable_conc_bmiss, NULL, eANI_BOOLEAN_FALSE)
6388 ==eHAL_STATUS_FAILURE)
6389 {
6390 fStatus = FALSE;
6391 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_CONC_BMISS to CCM");
6392 }
6393 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_UNITS_BWAIT,
6394 pConfig->enable_units_bwait, NULL, eANI_BOOLEAN_FALSE)
6395 ==eHAL_STATUS_FAILURE)
6396 {
6397 fStatus = FALSE;
6398 hddLog(LOGE, "Could not pass on WNI_CFG_ENABLE_UNITS_BWAIT to CCM");
6399 }
Padma, Santhosh Kumar36183352016-11-08 17:48:34 +05306400
Ashish Kumar Dhanotiyabf6bcea2017-08-17 19:14:33 +05306401 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_TRIGGER_NULLFRAME_BEFORE_HB,
6402 pConfig->trigger_nullframe_before_hb, NULL,
6403 eANI_BOOLEAN_FALSE)
6404 ==eHAL_STATUS_FAILURE)
6405 {
6406 fStatus = FALSE;
6407 hddLog(LOGE, "Couldn't pass WNI_CFG_TRIGGER_NULLFRAME_BEFORE_HB to CCM");
6408 }
Ashish Kumar Dhanotiya17866e12018-01-16 19:53:43 +05306409
6410 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_ENABLE_POWERSAVE_OFFLOAD,
6411 pConfig->enable_power_save_offload, NULL,
6412 eANI_BOOLEAN_FALSE)
6413 ==eHAL_STATUS_FAILURE)
6414 {
6415 fStatus = FALSE;
6416 hddLog(LOGE, "Couldn't pass WNI_CFG_ENABLE_POWERSAVE_OFFLOAD to CCM");
6417 }
Sourav Mohapatra7288ba42018-04-12 19:15:57 +05306418
6419 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BTC_2M_DYN_LONG_WLAN_LEN,
6420 pConfig->btc_dyn_wlan_len, NULL,
6421 eANI_BOOLEAN_FALSE)
6422 ==eHAL_STATUS_FAILURE)
6423 {
6424 fStatus = FALSE;
6425 hddLog(LOGE, "Couldn't pass WNI_CFG_BTC_2M_DYN_LONG_WLAN_LEN to CCM");
6426 }
6427
6428 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BTC_2M_DYN_LONG_BT_LEN,
6429 pConfig->btc_dyn_bt_len, NULL,
6430 eANI_BOOLEAN_FALSE)
6431 ==eHAL_STATUS_FAILURE)
6432 {
6433 fStatus = FALSE;
6434 hddLog(LOGE, "Couldn't pass WNI_CFG_BTC_2M_DYN_LONG_BT_LEN to CCM");
6435 }
6436 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BTC_2M_DYN_LONG_BT_EXT_LEN,
6437 pConfig->btc_dyn_bt_ext_len, NULL,
6438 eANI_BOOLEAN_FALSE)
6439 ==eHAL_STATUS_FAILURE)
6440 {
6441 fStatus = FALSE;
6442 hddLog(LOGE, "Couldn't pass WNI_CFG_BTC_2M_DYN_LONG_BT_EXT_LEN to CCM");
6443 }
6444 if(ccmCfgSetInt(pHddCtx->hHal, WNI_CFG_BTC_2M_DYN_LONG_NUM_BT_EXT,
6445 pConfig->btc_dyn_num_bt_ext, NULL,
6446 eANI_BOOLEAN_FALSE)
6447 ==eHAL_STATUS_FAILURE)
6448 {
6449 fStatus = FALSE;
6450 hddLog(LOGE, "Couldn't pass WNI_CFG_BTC_2M_DYN_LONG_NUM_BT_EXT to CCM");
6451 }
6452
6453
6454
Jeff Johnson295189b2012-06-20 16:38:30 -07006455 return fStatus;
6456}
6457
Jeff Johnson295189b2012-06-20 16:38:30 -07006458/**---------------------------------------------------------------------------
6459
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08006460 \brief hdd_init_set_sme_config() -
Jeff Johnson295189b2012-06-20 16:38:30 -07006461
6462 This function initializes the sme configuration parameters
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08006463
Jeff Johnson295189b2012-06-20 16:38:30 -07006464 \param - pHddCtx - Pointer to the HDD Adapter.
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08006465
Jeff Johnson295189b2012-06-20 16:38:30 -07006466 \return - 0 for success, non zero for failure
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08006467
Jeff Johnson295189b2012-06-20 16:38:30 -07006468 --------------------------------------------------------------------------*/
6469
6470VOS_STATUS hdd_set_sme_config( hdd_context_t *pHddCtx )
6471{
6472 VOS_STATUS status = VOS_STATUS_SUCCESS;
6473 eHalStatus halStatus;
Mukul Sharma20aa6582014-08-07 21:36:12 +05306474 tpSmeConfigParams smeConfig;
Yeshwanth Sriram Guntuka8d9b29c2017-12-12 15:44:57 +05306475 tANI_U8 i;
Jeff Johnson295189b2012-06-20 16:38:30 -07006476
6477 hdd_config_t *pConfig = pHddCtx->cfg_ini;
6478
Mukul Sharma20aa6582014-08-07 21:36:12 +05306479 smeConfig = vos_mem_malloc(sizeof(tSmeConfigParams));
6480 if (NULL == smeConfig)
6481 {
6482 VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, "%s smeConfig allocation failed",__func__);
6483 return eHAL_STATUS_FAILED_ALLOC;
6484 }
Mukul Sharmaa631e892014-08-28 15:38:51 +05306485 vos_mem_zero( smeConfig, sizeof( tSmeConfigParams ) );
Jeff Johnson295189b2012-06-20 16:38:30 -07006486
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08006487 VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH,
Arif Hussain6d2a3322013-11-17 19:50:10 -08006488 "%s bWmmIsEnabled=%d 802_11e_enabled=%d dot11Mode=%d", __func__,
Jeff Johnson295189b2012-06-20 16:38:30 -07006489 pConfig->WmmMode, pConfig->b80211eIsEnabled, pConfig->dot11Mode);
6490
6491 // Config params obtained from the registry
Amar Singhalfddc28c2013-09-05 13:03:40 -07006492
Mukul Sharma20aa6582014-08-07 21:36:12 +05306493 smeConfig->csrConfig.RTSThreshold = pConfig->RTSThreshold;
6494 smeConfig->csrConfig.FragmentationThreshold = pConfig->FragmentationThreshold;
6495 smeConfig->csrConfig.shortSlotTime = pConfig->ShortSlotTimeEnabled;
6496 smeConfig->csrConfig.Is11dSupportEnabled = pConfig->Is11dSupportEnabled;
6497 smeConfig->csrConfig.HeartbeatThresh24 = pConfig->HeartbeatThresh24;
Jeff Johnson295189b2012-06-20 16:38:30 -07006498
Mukul Sharma20aa6582014-08-07 21:36:12 +05306499 smeConfig->csrConfig.phyMode = hdd_cfg_xlate_to_csr_phy_mode ( pConfig->dot11Mode );
Jeff Johnson295189b2012-06-20 16:38:30 -07006500
Leela Venkata Kiran Kumar Reddy Chirala784d7e82013-11-20 10:57:25 -08006501 if( (pConfig->dot11Mode == eHDD_DOT11_MODE_abg) ||
6502 (pConfig->dot11Mode == eHDD_DOT11_MODE_11b) ||
6503 (pConfig->dot11Mode == eHDD_DOT11_MODE_11g) ||
6504 (pConfig->dot11Mode == eHDD_DOT11_MODE_11b_ONLY) ||
6505 (pConfig->dot11Mode == eHDD_DOT11_MODE_11g_ONLY))
6506 {
Mukul Sharma20aa6582014-08-07 21:36:12 +05306507 smeConfig->csrConfig.channelBondingMode24GHz = 0;
6508 smeConfig->csrConfig.channelBondingMode5GHz = 0;
Leela Venkata Kiran Kumar Reddy Chirala784d7e82013-11-20 10:57:25 -08006509 }
6510 else
6511 {
Mukul Sharma20aa6582014-08-07 21:36:12 +05306512 smeConfig->csrConfig.channelBondingMode24GHz = pConfig->nChannelBondingMode24GHz;
6513 smeConfig->csrConfig.channelBondingMode5GHz = pConfig->nChannelBondingMode5GHz;
Leela Venkata Kiran Kumar Reddy Chirala784d7e82013-11-20 10:57:25 -08006514 }
Mukul Sharma20aa6582014-08-07 21:36:12 +05306515 smeConfig->csrConfig.TxRate = pConfig->TxRate;
6516 smeConfig->csrConfig.nScanResultAgeCount = pConfig->ScanResultAgeCount;
6517 smeConfig->csrConfig.scanAgeTimeNCNPS = pConfig->nScanAgeTimeNCNPS;
6518 smeConfig->csrConfig.scanAgeTimeNCPS = pConfig->nScanAgeTimeNCPS;
6519 smeConfig->csrConfig.scanAgeTimeCNPS = pConfig->nScanAgeTimeCNPS;
6520 smeConfig->csrConfig.scanAgeTimeCPS = pConfig->nScanAgeTimeCPS;
6521 smeConfig->csrConfig.AdHocChannel24 = pConfig->OperatingChannel;
6522 smeConfig->csrConfig.fEnforce11dChannels = pConfig->fEnforce11dChannels;
6523 smeConfig->csrConfig.fSupplicantCountryCodeHasPriority = pConfig->fSupplicantCountryCodeHasPriority;
6524 smeConfig->csrConfig.fEnforceCountryCodeMatch = pConfig->fEnforceCountryCodeMatch;
6525 smeConfig->csrConfig.fEnforceDefaultDomain = pConfig->fEnforceDefaultDomain;
6526 smeConfig->csrConfig.bCatRssiOffset = pConfig->nRssiCatGap;
6527 smeConfig->csrConfig.vccRssiThreshold = pConfig->nVccRssiTrigger;
6528 smeConfig->csrConfig.vccUlMacLossThreshold = pConfig->nVccUlMacLossThreshold;
6529 smeConfig->csrConfig.nRoamingTime = pConfig->nRoamingTime;
6530 smeConfig->csrConfig.IsIdleScanEnabled = pConfig->nEnableIdleScan;
6531 smeConfig->csrConfig.nInitialDwellTime = pConfig->nInitialDwellTime;
6532 smeConfig->csrConfig.nActiveMaxChnTime = pConfig->nActiveMaxChnTime;
6533 smeConfig->csrConfig.nActiveMinChnTime = pConfig->nActiveMinChnTime;
6534 smeConfig->csrConfig.nPassiveMaxChnTime = pConfig->nPassiveMaxChnTime;
6535 smeConfig->csrConfig.nPassiveMinChnTime = pConfig->nPassiveMinChnTime;
Abhishek Singhadd13582016-09-29 17:00:03 +05306536 smeConfig->csrConfig.max_chntime_btc_esco =
6537 pConfig->max_chntime_btc_esco;
6538 smeConfig->csrConfig.min_chntime_btc_esco =
6539 pConfig->min_chntime_btc_esco;
6540 smeConfig->csrConfig.min_chntime_btc_sco =
6541 pConfig->min_chntime_btc_sco;
6542 smeConfig->csrConfig.max_chntime_btc_sco =
6543 pConfig->max_chntime_btc_sco;
Mukul Sharma20aa6582014-08-07 21:36:12 +05306544 smeConfig->csrConfig.disableAggWithBtc = pConfig->disableAggWithBtc;
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -07006545#ifdef WLAN_AP_STA_CONCURRENCY
Mukul Sharma20aa6582014-08-07 21:36:12 +05306546 smeConfig->csrConfig.nActiveMaxChnTimeConc = pConfig->nActiveMaxChnTimeConc;
6547 smeConfig->csrConfig.nActiveMinChnTimeConc = pConfig->nActiveMinChnTimeConc;
6548 smeConfig->csrConfig.nPassiveMaxChnTimeConc = pConfig->nPassiveMaxChnTimeConc;
6549 smeConfig->csrConfig.nPassiveMinChnTimeConc = pConfig->nPassiveMinChnTimeConc;
6550 smeConfig->csrConfig.nRestTimeConc = pConfig->nRestTimeConc;
6551 smeConfig->csrConfig.nNumStaChanCombinedConc = pConfig->nNumStaChanCombinedConc;
6552 smeConfig->csrConfig.nNumP2PChanCombinedConc = pConfig->nNumP2PChanCombinedConc;
Sudhir Sattayappa Kohallieb97d502013-05-22 23:16:42 -07006553
Madan Mohan Koyyalamudi4ff9cd62012-10-30 17:48:57 -07006554#endif
Mukul Sharma20aa6582014-08-07 21:36:12 +05306555 smeConfig->csrConfig.Is11eSupportEnabled = pConfig->b80211eIsEnabled;
6556 smeConfig->csrConfig.WMMSupportMode = pConfig->WmmMode;
Jeff Johnson295189b2012-06-20 16:38:30 -07006557
6558#if defined WLAN_FEATURE_VOWIFI
Mukul Sharma20aa6582014-08-07 21:36:12 +05306559 smeConfig->rrmConfig.rrmEnabled = pConfig->fRrmEnable;
6560 smeConfig->rrmConfig.maxRandnInterval = pConfig->nRrmRandnIntvl;
Jeff Johnson295189b2012-06-20 16:38:30 -07006561#endif
6562 //Remaining config params not obtained from registry
6563 // On RF EVB beacon using channel 1.
Jeff Johnsone7245742012-09-05 17:12:55 -07006564#ifdef WLAN_FEATURE_11AC
Mukul Sharma20aa6582014-08-07 21:36:12 +05306565 smeConfig->csrConfig.nVhtChannelWidth = pConfig->vhtChannelWidth;
6566 smeConfig->csrConfig.enableTxBF = pConfig->enableTxBF;
6567 smeConfig->csrConfig.txBFCsnValue = pConfig->txBFCsnValue;
6568 smeConfig->csrConfig.enableVhtFor24GHz = pConfig->enableVhtFor24GHzBand;
Abhishek Singh6d5d29c2014-07-03 14:25:22 +05306569 /* Consider Mu-beamformee only if SU-beamformee is enabled */
6570 if ( pConfig->enableTxBF )
Mukul Sharma20aa6582014-08-07 21:36:12 +05306571 smeConfig->csrConfig.enableMuBformee = pConfig->enableMuBformee;
Abhishek Singh6d5d29c2014-07-03 14:25:22 +05306572 else
Mukul Sharma20aa6582014-08-07 21:36:12 +05306573 smeConfig->csrConfig.enableMuBformee = 0;
Jeff Johnsone7245742012-09-05 17:12:55 -07006574#endif
Mukul Sharma20aa6582014-08-07 21:36:12 +05306575 smeConfig->csrConfig.AdHocChannel5G = pConfig->AdHocChannel5G;
6576 smeConfig->csrConfig.AdHocChannel24 = pConfig->AdHocChannel24G;
6577 smeConfig->csrConfig.ProprietaryRatesEnabled = 0;
6578 smeConfig->csrConfig.HeartbeatThresh50 = 40;
6579 smeConfig->csrConfig.bandCapability = pConfig->nBandCapability;
Madan Mohan Koyyalamudi8db1c942013-01-10 15:24:29 -08006580 if (pConfig->nBandCapability == eCSR_BAND_24)
6581 {
Mukul Sharma20aa6582014-08-07 21:36:12 +05306582 smeConfig->csrConfig.Is11hSupportEnabled = 0;
Madan Mohan Koyyalamudi8db1c942013-01-10 15:24:29 -08006583 } else {
Mukul Sharma20aa6582014-08-07 21:36:12 +05306584 smeConfig->csrConfig.Is11hSupportEnabled = pConfig->Is11hSupportEnabled;
Madan Mohan Koyyalamudi8db1c942013-01-10 15:24:29 -08006585 }
Mukul Sharma20aa6582014-08-07 21:36:12 +05306586 smeConfig->csrConfig.cbChoice = 0;
6587 smeConfig->csrConfig.bgScanInterval = 0;
6588 smeConfig->csrConfig.eBand = pConfig->nBandCapability;
6589 smeConfig->csrConfig.nTxPowerCap = pConfig->nTxPowerCap;
6590 smeConfig->csrConfig.fEnableBypass11d = pConfig->enableBypass11d;
6591 smeConfig->csrConfig.fEnableDFSChnlScan = pConfig->enableDFSChnlScan;
Padma, Santhosh Kumar36183352016-11-08 17:48:34 +05306592 smeConfig->csrConfig.disable_scan_during_sco =
6593 pConfig->disable_scan_during_sco;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08006594#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
Mukul Sharma20aa6582014-08-07 21:36:12 +05306595 smeConfig->csrConfig.nRoamPrefer5GHz = pConfig->nRoamPrefer5GHz;
6596 smeConfig->csrConfig.nRoamIntraBand = pConfig->nRoamIntraBand;
6597 smeConfig->csrConfig.nProbes = pConfig->nProbes;
6598 smeConfig->csrConfig.nRoamScanHomeAwayTime = pConfig->nRoamScanHomeAwayTime;
Madan Mohan Koyyalamudid5026072012-11-30 14:56:21 -08006599#endif
Mukul Sharma20aa6582014-08-07 21:36:12 +05306600 smeConfig->csrConfig.fFirstScanOnly2GChnl = pConfig->enableFirstScan2GOnly;
Jeff Johnsone7245742012-09-05 17:12:55 -07006601
Jeff Johnson295189b2012-06-20 16:38:30 -07006602 //FIXME 11d config is hardcoded
Jeff Johnson7dda7772013-02-27 08:36:13 -08006603 if ( VOS_STA_SAP_MODE != hdd_get_conparam())
6604 {
Mukul Sharma20aa6582014-08-07 21:36:12 +05306605 smeConfig->csrConfig.Csr11dinfo.Channels.numChannels = 0;
Jeff Johnson295189b2012-06-20 16:38:30 -07006606
Jeff Johnson7dda7772013-02-27 08:36:13 -08006607 /* if there is a requirement that HDD will control the default
6608 * channel list & country code (say from .ini file) we need to
6609 * add some logic here. Otherwise the default 11d info should
6610 * come from NV as per our current implementation */
Jeff Johnson295189b2012-06-20 16:38:30 -07006611 }
Jeff Johnson7dda7772013-02-27 08:36:13 -08006612 else
6613 {
6614 VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
6615 "AP country Code %s", pConfig->apCntryCode);
Jeff Johnson295189b2012-06-20 16:38:30 -07006616
Jeff Johnson7dda7772013-02-27 08:36:13 -08006617 if (memcmp(pConfig->apCntryCode, CFG_AP_COUNTRY_CODE_DEFAULT, 3) != 0)
6618 sme_setRegInfo(pHddCtx->hHal, pConfig->apCntryCode);
Mukul Sharma20aa6582014-08-07 21:36:12 +05306619 sme_set11dinfo(pHddCtx->hHal, smeConfig);
Jeff Johnson7dda7772013-02-27 08:36:13 -08006620 }
Mukul Sharma20aa6582014-08-07 21:36:12 +05306621 hdd_set_power_save_config(pHddCtx, smeConfig);
Jeff Johnson295189b2012-06-20 16:38:30 -07006622 hdd_set_btc_config(pHddCtx);
6623
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08006624#ifdef WLAN_FEATURE_VOWIFI_11R
Mukul Sharma20aa6582014-08-07 21:36:12 +05306625 smeConfig->csrConfig.csr11rConfig.IsFTResourceReqSupported = pConfig->fFTResourceReqSupported;
Jeff Johnson295189b2012-06-20 16:38:30 -07006626#endif
Jeff Johnson04dd8a82012-06-29 20:41:40 -07006627#ifdef FEATURE_WLAN_LFR
Mukul Sharma20aa6582014-08-07 21:36:12 +05306628 smeConfig->csrConfig.isFastRoamIniFeatureEnabled = pConfig->isFastRoamIniFeatureEnabled;
6629 smeConfig->csrConfig.MAWCEnabled = pConfig->MAWCEnabled;
Jeff Johnson04dd8a82012-06-29 20:41:40 -07006630#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08006631#ifdef FEATURE_WLAN_ESE
Mukul Sharma20aa6582014-08-07 21:36:12 +05306632 smeConfig->csrConfig.isEseIniFeatureEnabled = pConfig->isEseIniFeatureEnabled;
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08006633 if( pConfig->isEseIniFeatureEnabled )
Gopichand Nakkala98a98af2012-12-31 14:38:47 -08006634 {
6635 pConfig->isFastTransitionEnabled = TRUE;
6636 }
Jeff Johnson295189b2012-06-20 16:38:30 -07006637#endif
Varun Reddy Yeturu5d5e2c62014-02-27 13:31:29 -08006638#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_ESE) || defined(FEATURE_WLAN_LFR)
Mukul Sharma20aa6582014-08-07 21:36:12 +05306639 smeConfig->csrConfig.isFastTransitionEnabled = pConfig->isFastTransitionEnabled;
6640 smeConfig->csrConfig.RoamRssiDiff = pConfig->RoamRssiDiff;
6641 smeConfig->csrConfig.nImmediateRoamRssiDiff = pConfig->nImmediateRoamRssiDiff;
6642 smeConfig->csrConfig.isWESModeEnabled = pConfig->isWESModeEnabled;
Jeff Johnson295189b2012-06-20 16:38:30 -07006643#endif
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07006644#ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD
Kapil Gupta00e71f92016-06-26 13:31:37 +05306645 smeConfig->csrConfig.isRoamOffloadScanEnabled =
6646 pConfig->isRoamOffloadScanEnabled;
6647 smeConfig->csrConfig.bFastRoamInConIniFeatureEnabled =
6648 pConfig->bFastRoamInConIniFeatureEnabled;
6649 smeConfig->csrConfig.isPERRoamEnabled =
6650 pConfig->isPERRoamEnabled;
6651 smeConfig->csrConfig.rateUpThreshold = pConfig->rateUpThreshold;
6652 smeConfig->csrConfig.rateDownThreshold = pConfig->rateDownThreshold;
6653 smeConfig->csrConfig.waitPeriodForNextPERScan =
6654 pConfig->waitPeriodForNextPERScan;
6655 smeConfig->csrConfig.PERtimerThreshold = pConfig->PERtimerThreshold;
6656 smeConfig->csrConfig.isPERRoamCCAEnabled = pConfig->isPERRoamCCAEnabled;
Kapil Gupta89a8a0e2016-08-25 14:11:17 +05306657 smeConfig->csrConfig.PERRoamFullScanThreshold =
6658 pConfig->PERRoamFullScanThreshold * -1;
Kapil Gupta00e71f92016-06-26 13:31:37 +05306659 smeConfig->csrConfig.PERroamTriggerPercent = pConfig->PERroamTriggerPercent;
Kapil Guptae2b5c092017-02-06 15:04:47 +05306660 smeConfig->csrConfig.PERMinRssiThresholdForRoam =
6661 pConfig->PERMinRssiThresholdForRoam;
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07006662
Mukul Sharma20aa6582014-08-07 21:36:12 +05306663 if (0 == smeConfig->csrConfig.isRoamOffloadScanEnabled)
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07006664 {
6665 /* Disable roaming in concurrency if roam scan offload is disabled */
Mukul Sharma20aa6582014-08-07 21:36:12 +05306666 smeConfig->csrConfig.bFastRoamInConIniFeatureEnabled = 0;
Srinivas Girigowda830bbd02013-06-13 19:44:16 -07006667 }
Varun Reddy Yeturud0a3f252013-04-15 21:58:13 -07006668#endif
Padma, Santhosh Kumar67f479b2016-12-28 15:43:42 +05306669
6670#ifdef WLAN_FEATURE_LFR_MBB
6671 smeConfig->csrConfig.enable_lfr_mbb = pConfig->enable_lfr_mbb;
6672#endif
6673
Jeff Johnson295189b2012-06-20 16:38:30 -07006674#ifdef WLAN_FEATURE_NEIGHBOR_ROAMING
Mukul Sharma20aa6582014-08-07 21:36:12 +05306675 smeConfig->csrConfig.neighborRoamConfig.nNeighborReassocRssiThreshold = pConfig->nNeighborReassocRssiThreshold;
6676 smeConfig->csrConfig.neighborRoamConfig.nNeighborLookupRssiThreshold = pConfig->nNeighborLookupRssiThreshold;
6677 smeConfig->csrConfig.neighborRoamConfig.nNeighborScanMaxChanTime = pConfig->nNeighborScanMaxChanTime;
6678 smeConfig->csrConfig.neighborRoamConfig.nNeighborScanMinChanTime = pConfig->nNeighborScanMinChanTime;
6679 smeConfig->csrConfig.neighborRoamConfig.nNeighborScanTimerPeriod = pConfig->nNeighborScanPeriod;
6680 smeConfig->csrConfig.neighborRoamConfig.nMaxNeighborRetries = pConfig->nMaxNeighborReqTries;
6681 smeConfig->csrConfig.neighborRoamConfig.nNeighborResultsRefreshPeriod = pConfig->nNeighborResultsRefreshPeriod;
6682 smeConfig->csrConfig.neighborRoamConfig.nEmptyScanRefreshPeriod = pConfig->nEmptyScanRefreshPeriod;
Mukul Sharma8b192c02014-12-30 19:52:50 +05306683 //Making Forced 5G roaming to tightly coupled with the gEnableFirstScan2GOnly
6684 //=1 only, Also making sure if HW does not support 5G RF band then no need to
6685 //enable this feature even though it is enabled in .ini.
6686 if((pConfig->enableFirstScan2GOnly) && (pConfig->nBandCapability != eCSR_BAND_24))
Mukul Sharmad49b3d62014-09-02 01:45:32 +05306687 {
Mukul Sharma8b192c02014-12-30 19:52:50 +05306688 smeConfig->csrConfig.neighborRoamConfig.nNeighborInitialForcedRoamTo5GhEnable
6689 = pConfig->nNeighborInitialForcedRoamTo5GhEnable;
Mukul Sharmad49b3d62014-09-02 01:45:32 +05306690 }
Sreelakshmi Konamki70bfdaf2017-05-29 18:47:29 +05306691 smeConfig->csrConfig.neighborRoamConfig.nWeakZoneRssiThresholdForRoam =
6692 pConfig->nWeakZoneRssiThresholdForRoam;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08006693 hdd_string_to_u8_array( pConfig->neighborScanChanList,
Mukul Sharma20aa6582014-08-07 21:36:12 +05306694 smeConfig->csrConfig.neighborRoamConfig.neighborScanChanList.channelList,
6695 &smeConfig->csrConfig.neighborRoamConfig.neighborScanChanList.numChannels,
Yeshwanth Sriram Guntuka8d9b29c2017-12-12 15:44:57 +05306696 WNI_CFG_VALID_CHANNEL_LIST_LEN, ",",
6697 false);
Jeff Johnson295189b2012-06-20 16:38:30 -07006698#endif
6699
Mukul Sharma20aa6582014-08-07 21:36:12 +05306700 smeConfig->csrConfig.addTSWhenACMIsOff = pConfig->AddTSWhenACMIsOff;
6701 smeConfig->csrConfig.fValidateList = pConfig->fValidateScanList;
6702 smeConfig->csrConfig.allowDFSChannelRoam = pConfig->allowDFSChannelRoam;
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08006703 //Enable/Disable MCC
Mukul Sharma20aa6582014-08-07 21:36:12 +05306704 smeConfig->csrConfig.fEnableMCCMode = pConfig->enableMCC;
6705 smeConfig->csrConfig.fAllowMCCGODiffBI = pConfig->allowMCCGODiffBI;
Jeff Johnson295189b2012-06-20 16:38:30 -07006706
Sandeep Puligilla2b6dc632012-12-17 14:44:16 -08006707 //Scan Results Aging Time out value
Mukul Sharma20aa6582014-08-07 21:36:12 +05306708 smeConfig->csrConfig.scanCfgAgingTime = pConfig->scanAgingTimeout;
Sandeep Puligilla2b6dc632012-12-17 14:44:16 -08006709
Mukul Sharma20aa6582014-08-07 21:36:12 +05306710 smeConfig->csrConfig.enableTxLdpc = pConfig->enableTxLdpc;
Gopichand Nakkalab2d2c312013-01-04 11:41:02 -08006711
Mukul Sharma20aa6582014-08-07 21:36:12 +05306712 smeConfig->csrConfig.isAmsduSupportInAMPDU = pConfig->isAmsduSupportInAMPDU;
Mukul Sharma8b192c02014-12-30 19:52:50 +05306713 if(pConfig->nBandCapability != eCSR_BAND_24)
6714 {
6715 smeConfig->csrConfig.nSelect5GHzMargin = pConfig->nSelect5GHzMargin;
6716 }
Abhishek Singhc98534e2015-06-12 10:44:34 +05306717 smeConfig->csrConfig.ignorePeerErpInfo = pConfig->ignorePeerErpInfo;
Sushant Kaushikae17dd62015-08-27 17:07:04 +05306718 smeConfig->csrConfig.ignorePeerHTopMode = pConfig->ignorePeerHTopMode;
Abhishek Singh795e1b82015-09-25 15:35:03 +05306719 smeConfig->csrConfig.disableP2PMacSpoofing = pConfig->disableP2PMacSpoofing;
Abhishek Singh837adf22015-10-01 17:37:37 +05306720 smeConfig->csrConfig.enableFatalEvent= pConfig->enableFatalEvent;
Mukul Sharma20aa6582014-08-07 21:36:12 +05306721 smeConfig->csrConfig.initialScanSkipDFSCh = pConfig->initialScanSkipDFSCh;
krunal soni5afa96c2013-09-06 22:19:02 -07006722
Mukul Sharma20aa6582014-08-07 21:36:12 +05306723 smeConfig->csrConfig.isCoalesingInIBSSAllowed =
krunal sonie9002db2013-11-25 14:24:17 -08006724 pHddCtx->cfg_ini->isCoalesingInIBSSAllowed;
6725
6726
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -07006727 /* update SSR config */
6728 sme_UpdateEnableSSR((tHalHandle)(pHddCtx->hHal), pHddCtx->cfg_ini->enableSSR);
Gopichand Nakkala86e42662013-06-11 17:44:11 +05306729 /* Update the Directed scan offload setting */
Mukul Sharma20aa6582014-08-07 21:36:12 +05306730 smeConfig->fScanOffload = pHddCtx->cfg_ini->fScanOffload;
Gopichand Nakkalae620d5a2013-04-26 05:45:57 -07006731
Peng Xufc6ad8e2014-09-25 13:16:43 +05306732 smeConfig->csrConfig.scanBandPreference =
6733 pHddCtx->cfg_ini->acsScanBandPreference;
Peng Xu2446a892014-09-05 17:21:18 +05306734
Mukul Sharma20aa6582014-08-07 21:36:12 +05306735 smeConfig->fEnableDebugLog = pHddCtx->cfg_ini->gEnableDebugLog;
6736 smeConfig->csrConfig.sendDeauthBeforeCon = pConfig->sendDeauthBeforeCon;
Sushant Kaushikc9682be2014-11-26 12:27:04 +05306737 smeConfig->csrConfig.nOBSSScanWidthTriggerInterval =
6738 pConfig->nOBSSScanWidthTriggerInterval;
Mukul Sharma20aa6582014-08-07 21:36:12 +05306739 smeConfig->fDeferIMPSTime = pHddCtx->cfg_ini->deferImpsTime;
Chandrasekaran, Manishekar5cb0acd2014-12-23 20:06:52 +05306740 smeConfig->fBtcEnableIndTimerVal = pHddCtx->cfg_ini->btcEnableIndTimerVal;
Girish Gowli1c2fc802015-01-19 16:18:07 +05306741 smeConfig->csrConfig.roamDelayStatsEnabled = pHddCtx->cfg_ini->gEnableRoamDelayStats;
Gupta, Kapilb79cda32015-12-30 20:36:33 +05306742 smeConfig->csrConfig.max_chan_for_dwell_time_cfg =
6743 pHddCtx->cfg_ini->max_chan_for_dwell_time_cfg;
Abhishek Singh4463af02016-03-30 15:20:19 +05306744
6745 smeConfig->csrConfig.enable_edca_params =
6746 pHddCtx->cfg_ini->enable_edca_params;
6747
6748 smeConfig->csrConfig.edca_vo_cwmin =
6749 pHddCtx->cfg_ini->edca_vo_cwmin;
6750 smeConfig->csrConfig.edca_vi_cwmin =
6751 pHddCtx->cfg_ini->edca_vi_cwmin;
6752 smeConfig->csrConfig.edca_bk_cwmin =
6753 pHddCtx->cfg_ini->edca_bk_cwmin;
6754 smeConfig->csrConfig.edca_be_cwmin =
6755 pHddCtx->cfg_ini->edca_be_cwmin;
6756
6757 smeConfig->csrConfig.edca_vo_cwmax =
6758 pHddCtx->cfg_ini->edca_vo_cwmax;
6759 smeConfig->csrConfig.edca_vi_cwmax =
6760 pHddCtx->cfg_ini->edca_vi_cwmax;
6761 smeConfig->csrConfig.edca_bk_cwmax =
6762 pHddCtx->cfg_ini->edca_bk_cwmax;
6763 smeConfig->csrConfig.edca_be_cwmax =
6764 pHddCtx->cfg_ini->edca_be_cwmax;
6765
6766 smeConfig->csrConfig.edca_vo_aifs =
6767 pHddCtx->cfg_ini->edca_vo_aifs;
6768 smeConfig->csrConfig.edca_vi_aifs =
6769 pHddCtx->cfg_ini->edca_vi_aifs;
6770 smeConfig->csrConfig.edca_bk_aifs =
6771 pHddCtx->cfg_ini->edca_bk_aifs;
6772 smeConfig->csrConfig.edca_be_aifs =
6773 pHddCtx->cfg_ini->edca_be_aifs;
6774
Paul Zhang83289792017-02-28 18:58:52 +08006775 smeConfig->csrConfig.sta_auth_retries_for_code17 =
6776 pHddCtx->cfg_ini->sta_auth_retries_for_code17;
Yeshwanth Sriram Guntuka8d9b29c2017-12-12 15:44:57 +05306777 if (hdd_string_to_u8_array(pHddCtx->cfg_ini->enable_aggr_btc_sco_oui,
6778 smeConfig->csrConfig.agg_btc_sco_oui, &i, VENDOR_AP_OUI_SIZE, "-",
6779 true) != VOS_STATUS_SUCCESS)
6780 vos_mem_set(smeConfig->csrConfig.agg_btc_sco_oui, VENDOR_AP_OUI_SIZE, 0);
Abhishek Singh4463af02016-03-30 15:20:19 +05306781
Abhishek Singh6549e802018-01-23 13:29:44 +05306782 /* Disable aggrigation if value is 0 or 1 (CFG_NUM_BUFF_BTC_SCO_INVALID) */
6783 if (pHddCtx->cfg_ini->num_buff_aggr_btc_sco == CFG_NUM_BUFF_BTC_SCO_INVALID)
6784 pHddCtx->cfg_ini->num_buff_aggr_btc_sco = CFG_NUM_BUFF_BTC_SCO_MIN;
Yeshwanth Sriram Guntuka8d9b29c2017-12-12 15:44:57 +05306785 smeConfig->csrConfig.num_ba_buff_btc_sco =
6786 pHddCtx->cfg_ini->num_buff_aggr_btc_sco;
6787 smeConfig->csrConfig.num_ba_buff =
6788 pHddCtx->cfg_ini->numBuffAdvert;
Agrawal Ashishaf1de652016-03-02 18:03:43 +05306789 sme_set_mgmt_frm_via_wq5((tHalHandle)(pHddCtx->hHal),
6790 pHddCtx->cfg_ini->sendMgmtPktViaWQ5);
Sushant Kaushik215778f2015-05-21 14:05:36 +05306791
6792 vos_set_multicast_logging(pHddCtx->cfg_ini->multicast_host_msgs);
Ganesh Kondabattinie3ac17f2017-11-30 15:09:07 +05306793
6794 smeConfig->csrConfig.sta_sap_scc_on_dfs_chan =
6795 pHddCtx->cfg_ini->sta_sap_scc_on_dfs_chan;
Yeshwanth Sriram Guntukad3a9fc52018-01-10 15:09:49 +05306796 smeConfig->csrConfig.force_scc_with_ecsa =
6797 pHddCtx->cfg_ini->force_scc_with_ecsa;
Ganesh Kondabattinie3ac17f2017-11-30 15:09:07 +05306798
Mukul Sharma20aa6582014-08-07 21:36:12 +05306799 halStatus = sme_UpdateConfig( pHddCtx->hHal, smeConfig);
Jeff Johnson295189b2012-06-20 16:38:30 -07006800 if ( !HAL_STATUS_SUCCESS( halStatus ) )
6801 {
6802 status = VOS_STATUS_E_FAILURE;
c_hpothu6ff1c3c2013-10-01 19:01:57 +05306803 hddLog(LOGE, "sme_UpdateConfig() return failure %d", halStatus);
Jeff Johnson295189b2012-06-20 16:38:30 -07006804 }
6805
Mukul Sharma20aa6582014-08-07 21:36:12 +05306806 vos_mem_free(smeConfig);
Kiran Kumar Lokere3527f0c2013-02-24 22:21:28 -08006807 return status;
Jeff Johnson295189b2012-06-20 16:38:30 -07006808}
6809
6810
6811/**---------------------------------------------------------------------------
6812
6813 \brief hdd_execute_config_command() -
6814
6815 This function executes an arbitrary configuration set command
6816
6817 \param - pHddCtx - Pointer to the HDD Adapter.
6818 \parmm - command - a configuration command of the form:
6819 <name>=<value>
6820
6821 \return - 0 for success, non zero for failure
6822
6823 --------------------------------------------------------------------------*/
6824
6825VOS_STATUS hdd_execute_config_command(hdd_context_t *pHddCtx, char *command)
6826{
6827 size_t tableSize = sizeof(g_registry_table)/sizeof(g_registry_table[0]);
6828 REG_TABLE_ENTRY *pRegEntry;
6829 char *clone;
6830 char *pCmd;
6831 void *pField;
6832 char *name;
6833 char *value_str;
6834 v_U32_t value;
6835 v_S31_t svalue;
6836 size_t len_value_str;
6837 unsigned int idx;
6838 unsigned int i;
6839 VOS_STATUS vstatus;
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08006840 int rv;
Jeff Johnson295189b2012-06-20 16:38:30 -07006841
6842 // assume failure until proven otherwise
6843 vstatus = VOS_STATUS_E_FAILURE;
6844
6845 // clone the command so that we can manipulate it
6846 clone = kstrdup(command, GFP_ATOMIC);
6847 if (NULL == clone)
6848 {
6849 hddLog(LOGE, "%s: memory allocation failure, unable to process [%s]",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07006850 __func__, command);
Jeff Johnson295189b2012-06-20 16:38:30 -07006851 return vstatus;
6852 }
6853
6854 // 'clone' will point to the beginning of the string so it can be freed
6855 // 'pCmd' will be used to walk/parse the command
6856 pCmd = clone;
6857
6858 // get rid of leading/trailing whitespace
6859 pCmd = i_trim(pCmd);
6860 if ('\0' == *pCmd)
6861 {
6862 // only whitespace
6863 hddLog(LOGE, "%s: invalid command, only whitespace:[%s]",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07006864 __func__, command);
Jeff Johnson295189b2012-06-20 16:38:30 -07006865 goto done;
6866 }
6867
6868 // parse the <name> = <value>
6869 name = pCmd;
6870 while (('=' != *pCmd) && ('\0' != *pCmd))
6871 {
6872 pCmd++;
6873 }
6874 if ('\0' == *pCmd)
6875 {
6876 // did not find '='
6877 hddLog(LOGE, "%s: invalid command, no '=':[%s]",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07006878 __func__, command);
Jeff Johnson295189b2012-06-20 16:38:30 -07006879 goto done;
6880 }
6881
6882 // replace '=' with NUL to terminate the <name>
6883 *pCmd++ = '\0';
6884 name = i_trim(name);
6885 if ('\0' == *name)
6886 {
6887 // did not find a name
6888 hddLog(LOGE, "%s: invalid command, no <name>:[%s]",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07006889 __func__, command);
Jeff Johnson295189b2012-06-20 16:38:30 -07006890 goto done;
6891 }
6892
6893 value_str = i_trim(pCmd);
6894 if ('\0' == *value_str)
6895 {
6896 // did not find a value
6897 hddLog(LOGE, "%s: invalid command, no <value>:[%s]",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07006898 __func__, command);
Jeff Johnson295189b2012-06-20 16:38:30 -07006899 goto done;
6900 }
6901
6902 // lookup the configuration item
6903 for (idx = 0; idx < tableSize; idx++)
6904 {
6905 if (0 == strcmp(name, g_registry_table[idx].RegName))
6906 {
6907 // found a match
6908 break;
6909 }
6910 }
6911 if (tableSize == idx)
6912 {
6913 // did not match the name
6914 hddLog(LOGE, "%s: invalid command, unknown configuration item:[%s]",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07006915 __func__, command);
Jeff Johnson295189b2012-06-20 16:38:30 -07006916 goto done;
6917 }
6918
6919 pRegEntry = &g_registry_table[idx];
6920 if (!(pRegEntry->Flags & VAR_FLAGS_DYNAMIC_CFG))
6921 {
6922 // does not support dynamic configuration
6923 hddLog(LOGE, "%s: invalid command, %s does not support "
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07006924 "dynamic configuration", __func__, name);
Jeff Johnson295189b2012-06-20 16:38:30 -07006925 goto done;
6926 }
6927
6928 pField = ((v_U8_t *)pHddCtx->cfg_ini) + pRegEntry->VarOffset;
6929
6930 switch (pRegEntry->RegType)
6931 {
6932 case WLAN_PARAM_Integer:
Jeff Johnson02797792013-10-26 19:17:13 -07006933 rv = kstrtou32(value_str, 10, &value);
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08006934 if (rv < 0)
6935 goto done;
Jeff Johnson295189b2012-06-20 16:38:30 -07006936 if (value < pRegEntry->VarMin)
6937 {
6938 // out of range
Jeff Johnson0299d0a2013-10-30 12:37:43 -07006939 hddLog(LOGE, "%s: invalid command, value %u < min value %lu",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07006940 __func__, value, pRegEntry->VarMin);
Jeff Johnson295189b2012-06-20 16:38:30 -07006941 goto done;
6942 }
6943 if (value > pRegEntry->VarMax)
6944 {
6945 // out of range
Jeff Johnson0299d0a2013-10-30 12:37:43 -07006946 hddLog(LOGE, "%s: invalid command, value %u > max value %lu",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07006947 __func__, value, pRegEntry->VarMax);
Jeff Johnson295189b2012-06-20 16:38:30 -07006948 goto done;
6949 }
6950 memcpy(pField, &value, pRegEntry->VarSize);
6951 break;
6952
6953 case WLAN_PARAM_HexInteger:
Jeff Johnson02797792013-10-26 19:17:13 -07006954 rv = kstrtou32(value_str, 16, &value);
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08006955 if (rv < 0)
6956 goto done;
Jeff Johnson295189b2012-06-20 16:38:30 -07006957 if (value < pRegEntry->VarMin)
6958 {
6959 // out of range
Jeff Johnson0299d0a2013-10-30 12:37:43 -07006960 hddLog(LOGE, "%s: invalid command, value %x < min value %lx",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07006961 __func__, value, pRegEntry->VarMin);
Jeff Johnson295189b2012-06-20 16:38:30 -07006962 goto done;
6963 }
6964 if (value > pRegEntry->VarMax)
6965 {
6966 // out of range
Jeff Johnson0299d0a2013-10-30 12:37:43 -07006967 hddLog(LOGE, "%s: invalid command, value %x > max value %lx",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07006968 __func__, value, pRegEntry->VarMax);
Jeff Johnson295189b2012-06-20 16:38:30 -07006969 goto done;
6970 }
6971 memcpy(pField, &value, pRegEntry->VarSize);
6972 break;
6973
6974 case WLAN_PARAM_SignedInteger:
Jeff Johnson02797792013-10-26 19:17:13 -07006975 rv = kstrtos32(value_str, 10, &svalue);
Madan Mohan Koyyalamudid8ac8662012-11-06 19:04:56 -08006976 if (rv < 0)
6977 goto done;
Jeff Johnson295189b2012-06-20 16:38:30 -07006978 if (svalue < (v_S31_t)pRegEntry->VarMin)
6979 {
6980 // out of range
6981 hddLog(LOGE, "%s: invalid command, value %d < min value %d",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07006982 __func__, svalue, (int)pRegEntry->VarMin);
Jeff Johnson295189b2012-06-20 16:38:30 -07006983 goto done;
6984 }
6985 if (svalue > (v_S31_t)pRegEntry->VarMax)
6986 {
6987 // out of range
6988 hddLog(LOGE, "%s: invalid command, value %d > max value %d",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07006989 __func__, svalue, (int)pRegEntry->VarMax);
Jeff Johnson295189b2012-06-20 16:38:30 -07006990 goto done;
6991 }
6992 memcpy(pField, &svalue, pRegEntry->VarSize);
6993 break;
6994
6995 case WLAN_PARAM_String:
6996 len_value_str = strlen(value_str);
6997 if (len_value_str > (pRegEntry->VarSize - 1))
6998 {
6999 // too big
7000 hddLog(LOGE,
7001 "%s: invalid command, string [%s] length "
Jeff Johnson59a121e2013-11-30 09:46:08 -08007002 "%zu exceeds maximum length %u",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07007003 __func__, value_str,
Jeff Johnson295189b2012-06-20 16:38:30 -07007004 len_value_str, (pRegEntry->VarSize - 1));
7005 goto done;
7006 }
7007 // copy string plus NUL
7008 memcpy(pField, value_str, (len_value_str + 1));
7009 break;
7010
7011 case WLAN_PARAM_MacAddr:
7012 len_value_str = strlen(value_str);
7013 if (len_value_str != (VOS_MAC_ADDR_SIZE * 2))
7014 {
7015 // out of range
7016 hddLog(LOGE,
7017 "%s: invalid command, MAC address [%s] length "
Jeff Johnson59a121e2013-11-30 09:46:08 -08007018 "%zu is not expected length %u",
Madan Mohan Koyyalamudi87054ba2012-11-02 13:24:12 -07007019 __func__, value_str,
Jeff Johnson295189b2012-06-20 16:38:30 -07007020 len_value_str, (VOS_MAC_ADDR_SIZE * 2));
7021 goto done;
7022 }
7023 //parse the string and store it in the byte array
7024 for (i = 0; i < VOS_MAC_ADDR_SIZE; i++)
7025 {
7026 ((char*)pField)[i] = (char)
7027 ((parseHexDigit(value_str[(i * 2)]) * 16) +
7028 parseHexDigit(value_str[(i * 2) + 1]));
7029 }
7030 break;
7031
7032 default:
7033 goto done;
7034 }
7035
7036 // if we get here, we had a successful modification
7037 vstatus = VOS_STATUS_SUCCESS;
7038
7039 // config table has been modified, is there a notifier?
7040 if (NULL != pRegEntry->pfnDynamicNotify)
7041 {
7042 (pRegEntry->pfnDynamicNotify)(pHddCtx, pRegEntry->NotifyId);
7043 }
7044
7045 // note that this item was explicitly configured
7046 if (idx < MAX_CFG_INI_ITEMS)
7047 {
7048 set_bit(idx, (void *)&pHddCtx->cfg_ini->bExplicitCfg);
7049 }
7050 done:
7051 kfree(clone);
7052 return vstatus;
7053}
Srinivas Girigowdabbd16eb2013-03-21 12:34:46 -07007054
7055/**---------------------------------------------------------------------------
7056
7057 \brief hdd_is_okc_mode_enabled() -
7058
7059 This function returns whether OKC mode is enabled or not
7060
7061 \param - pHddCtx - Pointer to the HDD Adapter.
7062
7063 \return - 1 for enabled, zero for disabled
7064
7065 --------------------------------------------------------------------------*/
7066
7067tANI_BOOLEAN hdd_is_okc_mode_enabled(hdd_context_t *pHddCtx)
7068{
7069 if (NULL == pHddCtx)
7070 {
7071 hddLog(VOS_TRACE_LEVEL_FATAL, "%s: pHddCtx is NULL", __func__);
7072 return -EINVAL;
7073 }
7074
7075#ifdef FEATURE_WLAN_OKC
7076 return pHddCtx->cfg_ini->isOkcIniFeatureEnabled;
7077#else
7078 return eANI_BOOLEAN_FALSE;
7079#endif
7080}