blob: d6e2b864a830e71f47bacfdbb68b50ba8e9da935 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
Anurag Chouhan7c01cc42016-12-16 21:33:43 +05302 * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -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 */
27
28#if !defined(HDD_CONFIG_H__)
29#define HDD_CONFIG_H__
30
31/**
32 *
33 * DOC: wlan_hdd_config.h
34 *
35 * WLAN Adapter Configuration functions
36 */
37
38/* $HEADER$ */
39
40/* Include files */
41#include <wlan_hdd_includes.h>
42#include <wlan_hdd_wmm.h>
Anurag Chouhan6d760662016-02-20 16:05:43 +053043#include <qdf_types.h>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080044#include <csr_api.h>
45#include <sap_api.h>
Govind Singh5b486202016-06-09 18:29:42 +053046#include "osapi_linux.h"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080047#include <wmi_unified.h>
Dustin Brown1224e212017-05-12 14:02:12 -070048#include "wlan_pmo_hw_filter_public_struct.h"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080049
50#define FW_MODULE_LOG_LEVEL_STRING_LENGTH (255)
gbian62edd7e2017-03-07 13:12:13 +080051#define TX_SCHED_WRR_PARAM_STRING_LENGTH (50)
52#define TX_SCHED_WRR_PARAMS_NUM (5)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080053
Nirav Shahbd36b062016-07-18 11:12:59 +053054#define CFG_ENABLE_RX_THREAD (1 << 0)
55#define CFG_ENABLE_RPS (1 << 1)
56#define CFG_ENABLE_NAPI (1 << 2)
57
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080058#ifdef DHCP_SERVER_OFFLOAD
59#define IPADDR_NUM_ENTRIES (4)
60#define IPADDR_STRING_LENGTH (16)
61#endif
62
Nitesh Shah50a3de12017-04-03 19:37:19 +053063#define CFG_DBS_SCAN_PARAM_LENGTH (42)
64
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080065/* Number of items that can be configured */
Srinivas Girigowdaba3091c2015-11-16 17:18:40 -080066#define MAX_CFG_INI_ITEMS 1024
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080067
68/* Defines for all of the things we read from the configuration (registry). */
Ashish Kumar Dhanotiya470af292017-05-31 20:46:00 +053069/*
70 * <ini>
71 * gEnableConnectedScan - Will enable or disable scan in connected state
72 * @Min: 0
73 * @Max: 1
74 * @Default: 1
75 *
76 * This ini is used to enable or disable the scanning in
77 * Connected state
78 *
79 * Related: None
80 *
81 * Supported Feature: STA
82 *
83 * Usage: External
84 *
85 * <ini>
86 */
87
88#define CFG_ENABLE_CONNECTED_SCAN_NAME "gEnableConnectedScan"
89#define CFG_ENABLE_CONNECTED_SCAN_MIN (0)
90#define CFG_ENABLE_CONNECTED_SCAN_MAX (1)
91#define CFG_ENABLE_CONNECTED_SCAN_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080092
Sen, Devendra9ca8c432017-02-23 15:10:26 +053093/*
94 * <ini>
95 * RTSThreshold - Will provide RTSThreshold
96 * @Min: 0
97 * @Max: 1048576
98 * @Default: 2347
99 *
100 * This ini is used to set default RTSThreshold
101 * If minimum value 0 is selectd then it will use always RTS
102 *
103 * Related: None
104 *
105 * Supported Feature: STA
106 *
107 * Usage: Internal/External
108 *
109 * </ini>
110 */
111
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800112#define CFG_RTS_THRESHOLD_NAME "RTSThreshold"
113#define CFG_RTS_THRESHOLD_MIN WNI_CFG_RTS_THRESHOLD_STAMIN /* min is 0, meaning always use RTS. */
114#define CFG_RTS_THRESHOLD_MAX WNI_CFG_RTS_THRESHOLD_STAMAX /* max is the max frame size */
115#define CFG_RTS_THRESHOLD_DEFAULT WNI_CFG_RTS_THRESHOLD_STADEF
116
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530117/*
118 * <ini>
119 * gFragmentationThreshold - It will set fragmentation threshold
120 * @Min: 256
121 * @Max: 8000
122 * @Default: 8000
123 *
124 * This ini is used to indicate default fragmentation threshold
125 *
126 * Related: None
127 *
128 * Supported Feature: STA
129 *
130 * Usage: Internal/External
131 *
132 * </ini>
133 */
134
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800135#define CFG_FRAG_THRESHOLD_NAME "gFragmentationThreshold"
136#define CFG_FRAG_THRESHOLD_MIN WNI_CFG_FRAGMENTATION_THRESHOLD_STAMIN
137#define CFG_FRAG_THRESHOLD_MAX WNI_CFG_FRAGMENTATION_THRESHOLD_STAMAX
138#define CFG_FRAG_THRESHOLD_DEFAULT WNI_CFG_FRAGMENTATION_THRESHOLD_STADEF
139
140#define CFG_OPERATING_CHANNEL_NAME "gOperatingChannel"
141#define CFG_OPERATING_CHANNEL_MIN (0)
142#define CFG_OPERATING_CHANNEL_MAX (14)
143#define CFG_OPERATING_CHANNEL_DEFAULT (1)
144
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530145/*
146 * <ini>
147 * gShortSlotTimeEnabled - It will set slot timing slot.
148 * @Min: 0
149 * @Max: 1
150 * @Default: 1
151 *
152 * This ini is used to set default timing slot.
153 *
154 * Related: None
155 *
156 * Supported Feature: STA
157 *
158 * Usage: Internal/External
159 *
160 * </ini>
161 */
162
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800163#define CFG_SHORT_SLOT_TIME_ENABLED_NAME "gShortSlotTimeEnabled"
164#define CFG_SHORT_SLOT_TIME_ENABLED_MIN WNI_CFG_SHORT_SLOT_TIME_STAMIN
165#define CFG_SHORT_SLOT_TIME_ENABLED_MAX WNI_CFG_SHORT_SLOT_TIME_STAMAX
166#define CFG_SHORT_SLOT_TIME_ENABLED_DEFAULT WNI_CFG_SHORT_SLOT_TIME_STADEF
167
168#define CFG_11D_SUPPORT_ENABLED_NAME "g11dSupportEnabled"
169#define CFG_11D_SUPPORT_ENABLED_MIN WNI_CFG_11D_ENABLED_STAMIN
170#define CFG_11D_SUPPORT_ENABLED_MAX WNI_CFG_11D_ENABLED_STAMAX
171#define CFG_11D_SUPPORT_ENABLED_DEFAULT WNI_CFG_11D_ENABLED_STADEF /* Default is ON */
172
173#define CFG_11H_SUPPORT_ENABLED_NAME "g11hSupportEnabled"
174#define CFG_11H_SUPPORT_ENABLED_MIN (0)
175#define CFG_11H_SUPPORT_ENABLED_MAX (1)
176#define CFG_11H_SUPPORT_ENABLED_DEFAULT (1) /* Default is ON */
177
178/* COUNTRY Code Priority */
179#define CFG_COUNTRY_CODE_PRIORITY_NAME "gCountryCodePriority"
180#define CFG_COUNTRY_CODE_PRIORITY_MIN (0)
181#define CFG_COUNTRY_CODE_PRIORITY_MAX (1)
182#define CFG_COUNTRY_CODE_PRIORITY_DEFAULT (0)
183
184#define CFG_HEARTBEAT_THRESH_24_NAME "gHeartbeat24"
185#define CFG_HEARTBEAT_THRESH_24_MIN WNI_CFG_HEART_BEAT_THRESHOLD_STAMIN
186#define CFG_HEARTBEAT_THRESH_24_MAX WNI_CFG_HEART_BEAT_THRESHOLD_STAMAX
187#define CFG_HEARTBEAT_THRESH_24_DEFAULT WNI_CFG_HEART_BEAT_THRESHOLD_STADEF
188
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530189/*
190 * <ini>
191 * gMaxRxAmpduFactor - Provide the maximum ampdu factor.
192 * @Min: 0
193 * @Max: 3
194 * @Default: 3
195 *
196 * This ini is used to set default maxampdu factor
197 *
198 * Related: None
199 *
200 * Supported Feature: STA
201 *
202 * Usage: Internal/External
203 *
204 * </ini>
205 */
206
207#define CFG_MAX_RX_AMPDU_FACTOR_NAME "gMaxRxAmpduFactor"
208#define CFG_MAX_RX_AMPDU_FACTOR_MIN WNI_CFG_MAX_RX_AMPDU_FACTOR_STAMIN
209#define CFG_MAX_RX_AMPDU_FACTOR_MAX WNI_CFG_MAX_RX_AMPDU_FACTOR_STAMAX
210#define CFG_MAX_RX_AMPDU_FACTOR_DEFAULT WNI_CFG_MAX_RX_AMPDU_FACTOR_STADEF
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800211
Krishna Kumaar Natarajan22b59a72015-11-23 18:54:58 -0800212/* Configuration option for HT MPDU density (Table 8-125 802.11-2012)
213 * 0 for no restriction
214 * 1 for 1/4 micro sec
215 * 2 for 1/2 micro sec
216 * 3 for 1 micro sec
217 * 4 for 2 micro sec
218 * 5 for 4 micro sec
219 * 6 for 8 micro sec
220 * 7 for 16 micro sec
221 */
222#define CFG_HT_MPDU_DENSITY_NAME "ght_mpdu_density"
223#define CFG_HT_MPDU_DENSITY_MIN WNI_CFG_MPDU_DENSITY_STAMIN
224#define CFG_HT_MPDU_DENSITY_MAX WNI_CFG_MPDU_DENSITY_STAMAX
225#define CFG_HT_MPDU_DENSITY_DEFAULT WNI_CFG_MPDU_DENSITY_STADEF
226
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530227/*
228 * <ini>
229 * gEnableAdaptRxDrain - It will enable adapt received drain.
230 * @Min: 0
231 * @Max: 1
232 * @Default: 1
233 *
234 * This ini is used to Configuration added to enable/disable CTS2SELF in
235 * Adaptive RX drain feature.
236 *
237 * Related: None
238 *
239 * Supported Feature: STA
240 *
241 * Usage: Internal/External
242 *
243 * </ini>
244 */
245
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800246#define CFG_ENABLE_ADAPT_RX_DRAIN_NAME "gEnableAdaptRxDrain"
247#define CFG_ENABLE_ADAPT_RX_DRAIN_MIN WNI_CFG_ENABLE_ADAPT_RX_DRAIN_STAMIN
248#define CFG_ENABLE_ADAPT_RX_DRAIN_MAX WNI_CFG_ENABLE_ADAPT_RX_DRAIN_STAMAX
249#define CFG_ENABLE_ADAPT_RX_DRAIN_DEFAULT WNI_CFG_ENABLE_ADAPT_RX_DRAIN_STADEF
250
251#define CFG_REG_CHANGE_DEF_COUNTRY_NAME "gRegulatoryChangeCountry"
252#define CFG_REG_CHANGE_DEF_COUNTRY_DEFAULT (0)
253#define CFG_REG_CHANGE_DEF_COUNTRY_MIN (0)
254#define CFG_REG_CHANGE_DEF_COUNTRY_MAX (1)
255
256#define CFG_ADVERTISE_CONCURRENT_OPERATION_NAME "gAdvertiseConcurrentOperation"
257#define CFG_ADVERTISE_CONCURRENT_OPERATION_DEFAULT (1)
258#define CFG_ADVERTISE_CONCURRENT_OPERATION_MIN (0)
259#define CFG_ADVERTISE_CONCURRENT_OPERATION_MAX (1)
260
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -0700261enum hdd_dot11_mode {
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800262 eHDD_DOT11_MODE_AUTO = 0, /* covers all things we support */
263 eHDD_DOT11_MODE_abg, /* 11a/b/g only, no HT, no proprietary */
264 eHDD_DOT11_MODE_11b,
265 eHDD_DOT11_MODE_11g,
266 eHDD_DOT11_MODE_11n,
267 eHDD_DOT11_MODE_11g_ONLY,
268 eHDD_DOT11_MODE_11n_ONLY,
269 eHDD_DOT11_MODE_11b_ONLY,
270 eHDD_DOT11_MODE_11ac_ONLY,
271 eHDD_DOT11_MODE_11ac,
272 eHDD_DOT11_MODE_11a,
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -0800273 eHDD_DOT11_MODE_11ax_ONLY,
274 eHDD_DOT11_MODE_11ax,
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -0700275};
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800276
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530277/*
278 * <ini>
279 * gChannelBondingMode24GHz - Configures Channel Bonding in 24 GHz
280 * @Min: 0
281 * @Max: 10
282 * @Default: 0
283 *
284 * This ini is used to set default channel bonding mode 24GHZ
285 *
286 * Related: None
287 *
288 * Supported Feature: STA
289 *
290 * Usage: Internal/External
291 *
292 * </ini>
293 */
294
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800295#define CFG_CHANNEL_BONDING_MODE_24GHZ_NAME "gChannelBondingMode24GHz"
296#define CFG_CHANNEL_BONDING_MODE_MIN WNI_CFG_CHANNEL_BONDING_MODE_STAMIN
297#define CFG_CHANNEL_BONDING_MODE_MAX WNI_CFG_CHANNEL_BONDING_MODE_STAMAX
298#define CFG_CHANNEL_BONDING_MODE_DEFAULT WNI_CFG_CHANNEL_BONDING_MODE_STADEF
299
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530300/*
301 * <ini>
302 * gChannelBondingMode5GHz - Configures Channel Bonding in 5 GHz
303 * @Min: 0
304 * @Max: 10
305 * @Default: 0
306 *
307 * This ini is used to set default channel bonding mode 5GHZ
308 *
309 * Related: None
310 *
311 * Supported Feature: STA
312 *
313 * Usage: Internal/External
314 *
315 * </ini>
316 */
317
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800318#define CFG_CHANNEL_BONDING_MODE_5GHZ_NAME "gChannelBondingMode5GHz"
319#define CFG_CHANNEL_BONDING_MODE_MIN WNI_CFG_CHANNEL_BONDING_MODE_STAMIN
320#define CFG_CHANNEL_BONDING_MODE_MAX WNI_CFG_CHANNEL_BONDING_MODE_STAMAX
321#define CFG_CHANNEL_BONDING_MODE_DEFAULT WNI_CFG_CHANNEL_BONDING_MODE_STADEF
322
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530323/*
324 * <ini>
325 * gFixedRate - It will provide fixed rate
326 * @Min: 0
327 * @Max: 44
328 * @Default: 0
329 *
330 * This ini is used to set default fixed rate
331 *
332 * Related: None
333 *
334 * Supported Feature: STA
335 *
336 * Usage: Internal/External
337 *
338 * </ini>
339 */
340
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800341#define CFG_FIXED_RATE_NAME "gFixedRate"
342#define CFG_FIXED_RATE_MIN WNI_CFG_FIXED_RATE_STAMIN
343#define CFG_FIXED_RATE_MAX WNI_CFG_FIXED_RATE_STAMAX
344#define CFG_FIXED_RATE_DEFAULT WNI_CFG_FIXED_RATE_STADEF
345
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530346/*
347 * <ini>
348 * gShortGI20Mhz - Short Guard Interval for HT20
349 * @Min: 0
350 * @Max: 1
351 * @Default: 1
352 *
353 * This ini is used to set default short interval for HT20
354 *
355 * Related: None
356 *
357 * Supported Feature: STA
358 *
359 * Usage: Internal/External
360 *
361 * </ini>
362 */
363
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800364#define CFG_SHORT_GI_20MHZ_NAME "gShortGI20Mhz"
365#define CFG_SHORT_GI_20MHZ_MIN WNI_CFG_SHORT_GI_20MHZ_STAMIN
366#define CFG_SHORT_GI_20MHZ_MAX WNI_CFG_SHORT_GI_20MHZ_STAMAX
367#define CFG_SHORT_GI_20MHZ_DEFAULT WNI_CFG_SHORT_GI_20MHZ_STADEF
368
yeshwanth sriram guntukabdfe4352017-02-16 14:44:31 +0530369/*
370 * <ini>
371 * gScanResultAgeCount - Set scan result age count
372 * @Min: 1
373 * @Max: 100
374 * @Default: 1
375 *
376 * This ini parameter is the number of times a scan
377 * doesn't find it before it is removed from results.
378 *
379 * Related: None
380 *
381 * Supported Feature: Scan
382 *
383 * Usage: External
384 *
385 * </ini>
386 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800387#define CFG_SCAN_RESULT_AGE_COUNT_NAME "gScanResultAgeCount"
388#define CFG_SCAN_RESULT_AGE_COUNT_MIN (1)
389#define CFG_SCAN_RESULT_AGE_COUNT_MAX (100)
Jeff Johnsoncb331d92016-09-22 12:43:49 -0700390#define CFG_SCAN_RESULT_AGE_COUNT_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800391
yeshwanth sriram guntukabdfe4352017-02-16 14:44:31 +0530392/*
393 * <ini>
yeshwanth sriram guntukabdfe4352017-02-16 14:44:31 +0530394 * gNeighborScanTimerPeriod - Set neighbor scan timer period
395 * @Min: 3
396 * @Max: 300
397 * @Default: 200
398 *
399 * This ini is used to set the timer period in secs after
400 * which neighbor scan is trigerred.
401 *
402 * Related: None
403 *
404 * Supported Feature: LFR Scan
405 *
406 * Usage: External
407 *
408 * </ini>
409 */
410#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_NAME "gNeighborScanTimerPeriod"
411#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_MIN (3)
412#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_MAX (300)
413#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_DEFAULT (200)
414
415/*
416 * <ini>
Sridhar Selvaraj1b2330c2017-07-21 15:16:42 +0530417 * gRoamRestTimeMin - Set min neighbor scan timer period
418 * @Min: 3
419 * @Max: 300
420 * @Default: 200
421 *
422 * This is the min rest time after which firmware will check for traffic
423 * and if there no traffic it will move to a new channel to scan
424 * else it will stay on the home channel till gNeighborScanTimerPeriod time
425 * and then will move to a new channel to scan.
426 *
427 * Related: None
428 *
429 * Supported Feature: LFR Scan
430 *
431 * Usage: External
432 *
433 * </ini>
434 */
435#define CFG_NEIGHBOR_SCAN_MIN_TIMER_PERIOD_NAME "gRoamRestTimeMin"
436#define CFG_NEIGHBOR_SCAN_MIN_TIMER_PERIOD_MIN (3)
437#define CFG_NEIGHBOR_SCAN_MIN_TIMER_PERIOD_MAX (300)
438#define CFG_NEIGHBOR_SCAN_MIN_TIMER_PERIOD_DEFAULT (200)
439
440/*
441 * <ini>
yeshwanth sriram guntukabdfe4352017-02-16 14:44:31 +0530442 * gOpportunisticThresholdDiff - Set oppurtunistic threshold diff
443 * @Min: 0
444 * @Max: 127
445 * @Default: 0
446 *
447 * This ini is used to set opportunistic threshold diff.
448 * This parameter is the RSSI diff above neighbor lookup
449 * threshold, when opportunistic scan should be triggered.
450 * MAX value is choosen so that this type of scan can be
451 * always enabled by user.
452 * MIN value will cause opportunistic scan to be triggered
453 * in neighbor lookup RSSI range.
454 *
455 * Related: None
456 *
457 * Supported Feature: LFR Scan
458 *
459 * Usage: External
460 *
461 * </ini>
462 */
463#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_NAME "gOpportunisticThresholdDiff"
464#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_MIN (0)
465#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_MAX (127)
466#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_DEFAULT (0)
467
468/*
469 * <ini>
470 * gNeighborScanChannelList - Set channels to be scanned
471 * by firmware for LFR scan
472 * @Default: ""
473 *
474 * This ini is used to set the channels to be scanned
475 * by firmware for LFR scan.
476 *
477 * Related: None
478 *
479 * Supported Feature: LFR Scan
480 *
481 * Usage: External
482 *
483 * </ini>
484 */
485#define CFG_NEIGHBOR_SCAN_CHAN_LIST_NAME "gNeighborScanChannelList"
486#define CFG_NEIGHBOR_SCAN_CHAN_LIST_DEFAULT ""
487
488/*
489 * <ini>
490 * gNeighborScanChannelMinTime - Set neighbor scan channel min time
491 * @Min: 10
492 * @Max: 40
493 * @Default: 20
494 *
495 * This ini is used to set the minimum time in secs spent on each
496 * channel in LFR scan inside firmware.
497 *
498 * Related: None
499 *
500 * Supported Feature: LFR Scan
501 *
502 * Usage: External
503 *
504 * </ini>
505 */
506#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_NAME "gNeighborScanChannelMinTime"
507#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_MIN (10)
508#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_MAX (40)
509#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_DEFAULT (20)
510
511/*
512 * <ini>
513 * gNeighborScanChannelMaxTime - Set neighbor scan channel max time
514 * @Min: 3
515 * @Max: 300
516 * @Default: 30
517 *
518 * This ini is used to set the maximum time in secs spent on each
519 * channel in LFR scan inside firmware.
520 *
521 * Related: None
522 *
523 * Supported Feature: LFR Scan
524 *
525 * Usage: External
526 *
527 * </ini>
528 */
529#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_NAME "gNeighborScanChannelMaxTime"
530#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_MIN (3)
531#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_MAX (300)
532#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_DEFAULT (30)
533
534/*
535 * <ini>
536 * gNeighborScanRefreshPeriod - Set neighbor scan refresh period
537 * @Min: 1000
538 * @Max: 60000
539 * @Default: 20000
540 *
541 * This ini is used by firmware to set scan refresh period
542 * in msecs for lfr scan.
543 *
544 * Related: None
545 *
546 * Supported Feature: LFR Scan
547 *
548 * Usage: External
549 *
550 * </ini>
551 */
552#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_NAME "gNeighborScanRefreshPeriod"
553#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_MIN (1000)
554#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_MAX (60000)
555#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_DEFAULT (20000)
556
557/*
558 * <ini>
559 * gEmptyScanRefreshPeriod - Set empty scan refresh period
560 * @Min: 0
561 * @Max: 60000
562 * @Default: 0
563 *
564 * This ini is used by firmware to set scan period in msecs
565 * following empty scan results.
566 *
567 * Related: None
568 *
569 * Supported Feature: LFR Scan
570 *
571 * Usage: External
572 *
573 * </ini>
574 */
575#define CFG_EMPTY_SCAN_REFRESH_PERIOD_NAME "gEmptyScanRefreshPeriod"
576#define CFG_EMPTY_SCAN_REFRESH_PERIOD_MIN (0)
577#define CFG_EMPTY_SCAN_REFRESH_PERIOD_MAX (60000)
578#define CFG_EMPTY_SCAN_REFRESH_PERIOD_DEFAULT (0)
579
580/*
581 * <ini>
582 * gEnableDFSChnlScan - Enable DFS channel scan
583 * @Min: 0
584 * @Max: 1
585 * @Default: 1
586 *
587 * This ini is used to enable or disable DFS channel
588 * scan
Deepak Dhamdhere828f1892017-02-09 11:51:19 -0800589 */
590#define CFG_ENABLE_DFS_CHNL_SCAN_NAME "gEnableDFSChnlScan"
591#define CFG_ENABLE_DFS_CHNL_SCAN_MIN (0)
592#define CFG_ENABLE_DFS_CHNL_SCAN_MAX (1)
593#define CFG_ENABLE_DFS_CHNL_SCAN_DEFAULT (1)
594
595/*
596 * <ini>
597 * pmkidModes - Enable PMKID modes
598 * This INI is used to enable PMKID feature options
599 * @Min: 0
600 * @Max: 3
601 * @Default: 3
yeshwanth sriram guntukabdfe4352017-02-16 14:44:31 +0530602 *
603 * Related: None
604 *
605 * Supported Feature: Scan
606 *
607 * Usage: External
608 *
609 * </ini>
610 */
Deepak Dhamdhere828f1892017-02-09 11:51:19 -0800611#define CFG_PMKID_MODES_NAME "pmkidModes"
612#define CFG_PMKID_MODES_MIN (0x0)
613#define CFG_PMKID_MODES_MAX (0x3)
614#define CFG_PMKID_MODES_DEFAULT (0x3)
615#define CFG_PMKID_MODES_OKC (0x1)
616#define CFG_PMKID_MODES_PMKSA_CACHING (0x2)
yeshwanth sriram guntukabdfe4352017-02-16 14:44:31 +0530617
618/*
619 * <ini>
620 * gEnableDFSPnoChnlScan - Enable DFS PNO channel scan
621 * @Min: 0
622 * @Max: 1
623 * @Default: 1
624 *
625 * This ini is used to enable or disable DFS channel
626 * for PNO scan
627 *
628 * Related: None
629 *
630 * Supported Feature: Scan
631 *
632 * Usage: External
633 *
634 * </ini>
635 */
636#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_NAME "gEnableDFSPnoChnlScan"
637#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_MIN (0)
638#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_MAX (1)
639#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_DEFAULT (1)
640
641/*
642 * <ini>
643 * gEnableFirstScan2GOnly - Enable first scan 2G only
644 * @Min: 0
645 * @Max: 1
646 * @Default: 0
647 *
648 * This ini is used to scan 2G channels only in first scan.
649 *
650 * Related: None
651 *
652 * Supported Feature: Scan
653 *
654 * Usage: External
655 *
656 * </ini>
657 */
658#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_NAME "gEnableFirstScan2GOnly"
659#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_MIN (0)
660#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_MAX (1)
661#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_DEFAULT (0)
662
663/*
664 * <ini>
665 * gScanAgingTime - Set scan aging time
666 * @Min: 0
667 * @Max: 200
668 * @Default: 30
669 *
670 * This ini is used to set scan aging timeout value
671 * in secs. For example after 30 secs the bss results
672 * greater than 30secs age will be flushed.
673 *
674 * Related: None
675 *
676 * Supported Feature: Scan
677 *
678 * Usage: External
679 *
680 * </ini>
681 */
682#define CFG_SCAN_AGING_PARAM_NAME "gScanAgingTime"
683#define CFG_SCAN_AGING_PARAM_MIN (0)
684#define CFG_SCAN_AGING_PARAM_MAX (200)
Varun Reddy Yeturuc4631fb2017-07-06 15:13:53 -0700685#ifdef QCA_WIFI_NAPIER_EMULATION
686#define CFG_SCAN_AGING_PARAM_DEFAULT (90)
687#else
yeshwanth sriram guntukabdfe4352017-02-16 14:44:31 +0530688#define CFG_SCAN_AGING_PARAM_DEFAULT (30)
Varun Reddy Yeturuc4631fb2017-07-06 15:13:53 -0700689#endif
yeshwanth sriram guntukabdfe4352017-02-16 14:44:31 +0530690
691#ifdef FEATURE_WLAN_SCAN_PNO
692/*
693 * <ini>
694 * gPNOScanSupport - Enable or Disable PNO scan
695 * @Min: 1
696 * @Max: 0
697 * @Default: 1
698 *
699 * This ini is used to Enable or Disable PNO scan
700 *
701 * Related: None
702 *
703 * Supported Feature: Scan
704 *
705 * Usage: External
706 *
707 * </ini>
708 */
709#define CFG_PNO_SCAN_SUPPORT "gPNOScanSupport"
710#define CFG_PNO_SCAN_SUPPORT_ENABLE (1)
711#define CFG_PNO_SCAN_SUPPORT_DISABLE (0)
712#define CFG_PNO_SCAN_SUPPORT_DEFAULT (1)
713
714/*
715 * <ini>
716 * gPNOScanTimerRepeatValue - Set PNO scan timer repeat value
717 * @Min: 30
718 * @Max: 0
719 * @Default: 0xffffffff
720 *
721 * This ini is used by firmware to set fast scan max cycles
722 * equal to gPNOScanTimerRepeatValue. Taking power consumption
723 * into account firmware after gPNOScanTimerRepeatValue times
724 * fast_scan_period switches to slow_scan_period.
725 *
726 * Related: None
727 *
728 * Supported Feature: Scan
729 *
730 * Usage: External
731 *
732 * </ini>
733 */
734#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE "gPNOScanTimerRepeatValue"
735#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE_DEFAULT (30)
736#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE_MIN (0)
737#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE_MAX (0xffffffff)
738
739/*
740 * <ini>
741 * gPNOSlowScanMultiplier - Set PNO slow scan multiplier
742 * @Min: 6
743 * @Max: 0
744 * @Default: 30
745 *
746 * This ini is used by firmware to set slow scan period
747 * as gPNOSlowScanMultiplier times fast_scan_period.
748 *
749 * Related: None
750 *
751 * Supported Feature: Scan
752 *
753 * Usage: External
754 *
755 * </ini>
756 */
757#define CFG_PNO_SLOW_SCAN_MULTIPLIER "gPNOSlowScanMultiplier"
758#define CFG_PNO_SLOW_SCAN_MULTIPLIER_DEFAULT (6)
759#define CFG_PNO_SLOW_SCAN_MULTIPLIER_MIN (0)
760#define CFG_PNO_SLOW_SCAN_MULTIPLIER_MAX (30)
761#endif
762
763/*
764 * <ini>
765 * max_scan_count - Set maximum number of scans
766 * @Min: 1
767 * @Max: 8
768 * @Default: 4
769 *
770 * This ini is used to set the maximum number of
771 * scans that host can queue at firmware.
772 * Rome firmware support 8 scan queue size and 4
773 * are reserved for internal scan requests like
774 * roaming. So host can send 4 scan requests.
775 * In iHelium, there is no constraint in number of
776 * scan queue size at firmware but the current use
777 * cases needs support of maximum of 4 scan request
778 * from host.
779 *
780 * Related: None
781 *
782 * Supported Feature: Scan
783 *
784 * Usage: External
785 *
786 * </ini>
787 */
788#define CFG_MAX_SCAN_COUNT_NAME "max_scan_count"
789#define CFG_MAX_SCAN_COUNT_MIN (1)
790#define CFG_MAX_SCAN_COUNT_MAX (8)
791#define CFG_MAX_SCAN_COUNT_DEFAULT (4)
792
793/*
794 * <ini>
795 * gPassiveMaxChannelTime - Set max channel time for passive scan
796 * @Min: 0
797 * @Max: 10000
798 * @Default: 110
799 *
800 * This ini is used to set maximum channel time in secs spent in
801 * passive scan
802 *
803 * Related: None
804 *
805 * Supported Feature: Scan
806 *
807 * Usage: External
808 *
809 * </ini>
810 */
811#define CFG_PASSIVE_MAX_CHANNEL_TIME_NAME "gPassiveMaxChannelTime"
812#define CFG_PASSIVE_MAX_CHANNEL_TIME_MIN (0)
813#define CFG_PASSIVE_MAX_CHANNEL_TIME_MAX (10000)
814#define CFG_PASSIVE_MAX_CHANNEL_TIME_DEFAULT (110)
815
816/*
817 * <ini>
818 * gPassiveMinChannelTime - Set min channel time for passive scan
819 * @Min: 0
820 * @Max: 10000
821 * @Default: 60
822 *
823 * This ini is used to set minimum channel time in secs spent in
824 * passive scan
825 *
826 * Related: None
827 *
828 * Supported Feature: Scan
829 *
830 * Usage: External
831 *
832 * </ini>
833 */
834#define CFG_PASSIVE_MIN_CHANNEL_TIME_NAME "gPassiveMinChannelTime"
835#define CFG_PASSIVE_MIN_CHANNEL_TIME_MIN (0)
836#define CFG_PASSIVE_MIN_CHANNEL_TIME_MAX (10000)
837#define CFG_PASSIVE_MIN_CHANNEL_TIME_DEFAULT (60)
838
839/*
840 * <ini>
841 * gActiveMaxChannelTime - Set max channel time for active scan
842 * @Min: 0
843 * @Max: 10000
844 * @Default: 40
845 *
846 * This ini is used to set maximum channel time in secs spent in
847 * active scan
848 *
849 * Related: None
850 *
851 * Supported Feature: Scan
852 *
853 * Usage: External
854 *
855 * </ini>
856 */
857#define CFG_ACTIVE_MAX_CHANNEL_TIME_NAME "gActiveMaxChannelTime"
858#define CFG_ACTIVE_MAX_CHANNEL_TIME_MIN (0)
859#define CFG_ACTIVE_MAX_CHANNEL_TIME_MAX (10000)
860#define CFG_ACTIVE_MAX_CHANNEL_TIME_DEFAULT (40)
861
862/*
863 * <ini>
864 * gActiveMinChannelTime - Set min channel time for active scan
865 * @Min: 0
866 * @Max: 10000
867 * @Default: 20
868 *
869 * This ini is used to set minimum channel time in secs spent in
870 * active scan
871 *
872 * Related: None
873 *
874 * Supported Feature: Scan
875 *
876 * Usage: External
877 *
878 * </ini>
879 */
880#define CFG_ACTIVE_MIN_CHANNEL_TIME_NAME "gActiveMinChannelTime"
881#define CFG_ACTIVE_MIN_CHANNEL_TIME_MIN (0)
882#define CFG_ACTIVE_MIN_CHANNEL_TIME_MAX (10000)
883#define CFG_ACTIVE_MIN_CHANNEL_TIME_DEFAULT (20)
884
885#ifdef FEATURE_WLAN_EXTSCAN
886/*
887 * <ini>
888 * gExtScanEnable - Enable external scan
889 * @Min: 0
890 * @Max: 1
891 * @Default: 1
892 *
893 * This ini is used to control enabling of external scan
894 * feature.
895 *
896 * Related: None
897 *
898 * Supported Feature: Scan
899 *
900 * Usage: External
901 *
902 * </ini>
903 */
904#define CFG_EXTSCAN_ALLOWED_NAME "gExtScanEnable"
905#define CFG_EXTSCAN_ALLOWED_MIN (0)
906#define CFG_EXTSCAN_ALLOWED_MAX (1)
907#define CFG_EXTSCAN_ALLOWED_DEF (1)
908
909/*
910 * <ini>
911 * gExtScanPassiveMaxChannelTime - Set max channel time for external
912 * passive scan
913 * @Min: 0
914 * @Max: 500
915 * @Default: 110
916 *
917 * This ini is used to set maximum channel time in secs spent in
918 * external passive scan
919 *
920 * Related: None
921 *
922 * Supported Feature: Scan
923 *
924 * Usage: External
925 *
926 * </ini>
927 */
928#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_NAME "gExtScanPassiveMaxChannelTime"
929#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_MIN (0)
930#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_MAX (500)
931#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_DEFAULT (110)
932
933/*
934 * <ini>
935 * gExtScanPassiveMinChannelTime - Set min channel time for external
936 * passive scan
937 * @Min: 0
938 * @Max: 500
939 * @Default: 60
940 *
941 * This ini is used to set minimum channel time in secs spent in
942 * external passive scan
943 *
944 * Related: None
945 *
946 * Supported Feature: Scan
947 *
948 * Usage: External
949 *
950 * </ini>
951 */
952#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_NAME "gExtScanPassiveMinChannelTime"
953#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_MIN (0)
954#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_MAX (500)
955#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_DEFAULT (60)
956
957/*
958 * <ini>
959 * gExtScanActiveMaxChannelTime - Set min channel time for external
960 * active scan
961 * @Min: 0
962 * @Max: 110
963 * @Default: 40
964 *
965 * This ini is used to set maximum channel time in secs spent in
966 * external active scan
967 *
968 * Related: None
969 *
970 * Supported Feature: Scan
971 *
972 * Usage: External
973 *
974 * </ini>
975 */
976#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_NAME "gExtScanActiveMaxChannelTime"
977#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_MIN (0)
978#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_MAX (110)
979#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_DEFAULT (40)
980
981/*
982 * <ini>
983 * gExtScanActiveMinChannelTime - Set min channel time for external
984 * active scan
985 * @Min: 0
986 * @Max: 110
987 * @Default: 20
988 *
989 * This ini is used to set minimum channel time in secs spent in
990 * external active scan
991 *
992 * Related: None
993 *
994 * Supported Feature: Scan
995 *
996 * Usage: External
997 *
998 * </ini>
999 */
1000#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_NAME "gExtScanActiveMinChannelTime"
1001#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_MIN (0)
1002#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_MAX (110)
1003#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_DEFAULT (20)
1004#endif
1005
1006/*
1007 * <ini>
1008 * gChPredictionFullScanMs - Set periodic timer for channel
1009 * prediction
1010 * @Min: 3000
1011 * @Max: 0x7fffffff
1012 * @Default: 60000
1013 *
1014 * This ini is used to set the periodic timer upon which
1015 * a full scan needs to be triggered when PNO channel
1016 * prediction feature is enabled. This parameter is intended
1017 * to tweak the internal algortihm for experiments.
1018 *
1019 * Related: None
1020 *
1021 * Supported Feature: Scan
1022 *
1023 * Usage: Internal
1024 *
1025 * </ini>
1026 */
1027#define CFG_CHANNEL_PREDICTION_FULL_SCAN_MS_NAME "gChPredictionFullScanMs"
1028#define CFG_CHANNEL_PREDICTION_FULL_SCAN_MS_MIN (30000)
1029#define CFG_CHANNEL_PREDICTION_FULL_SCAN_MS_MAX (0x7fffffff)
1030#define CFG_CHANNEL_PREDICTION_FULL_SCAN_MS_DEFAULT (60000)
1031
1032/*
1033 * <ini>
1034 * gEnableEarlyStopScan - Set early stop scan
1035 * @Min: 0
1036 * @Max: 1
1037 * @Default: 1
1038 *
1039 * This ini is used to set early stop scan. Early stop
1040 * scan is a feature for roaming to stop the scans at
1041 * an early stage as soon as we find a better AP to roam.
1042 * This would make the roaming happen quickly.
1043 *
1044 * Related: None
1045 *
1046 * Supported Feature: LFR Scan
1047 *
1048 * Usage: External
1049 *
1050 * </ini>
1051 */
1052#define CFG_EARLY_STOP_SCAN_ENABLE "gEnableEarlyStopScan"
1053#define CFG_EARLY_STOP_SCAN_ENABLE_MIN (0)
1054#define CFG_EARLY_STOP_SCAN_ENABLE_MAX (1)
1055#define CFG_EARLY_STOP_SCAN_ENABLE_DEFAULT (1)
1056
1057/*
1058 * <ini>
1059 * gEarlyStopScanMinThreshold - Set early stop scan min
1060 * threshold
1061 * @Min: -80
1062 * @Max: -70
1063 * @Default: -73
1064 *
1065 * This ini is used to set the early stop scan minimum
1066 * threshold. Early stop scan minimum threshold is the
1067 * minimum threshold to be considered for stopping the
1068 * scan. The algorithm starts with a scan on the greedy
1069 * channel list with the maximum threshold and steps down
1070 * the threshold by 20% for each further channel. It can
1071 * step down on each channel but cannot go lower than the
1072 * minimum threshold.
1073 *
1074 * Related: None
1075 *
1076 * Supported Feature: Scan
1077 *
1078 * Usage: External
1079 *
1080 * </ini>
1081 */
1082#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD "gEarlyStopScanMinThreshold"
1083#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_MIN (-80)
1084#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_MAX (-70)
1085#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_DEFAULT (-73)
1086
1087/*
1088 * <ini>
1089 * gEarlyStopScanMaxThreshold - Set early stop scan max
1090 * threshold
1091 * @Min: -60
1092 * @Max: -40
1093 * @Default: -43
1094 *
1095 * This ini is used to set the the early stop scan maximum
1096 * threshold at which the candidate AP should be to be
1097 * qualified as a potential roam candidate and good enough
1098 * to stop the roaming scan.
1099 *
1100 * Related: None
1101 *
1102 * Supported Feature: Scan
1103 *
1104 * Usage: External
1105 *
1106 * </ini>
1107 */
1108#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD "gEarlyStopScanMaxThreshold"
1109#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_MIN (-60)
1110#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_MAX (-40)
1111#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_DEFAULT (-43)
1112
1113/*
1114 * <ini>
1115 * gFirstScanBucketThreshold - Set first scan bucket
1116 * threshold
1117 * @Min: -50
1118 * @Max: -30
1119 * @Default: -30
1120 *
1121 * This ini will configure the first scan bucket
1122 * threshold to the mentioned value and all the AP's which
1123 * have RSSI under this threshold will fall under this
1124 * bucket. This configuration item used to tweak and
1125 * test the input for internal algorithm.
1126 *
1127 * Related: None
1128 *
1129 * Supported Feature: Scan
1130 *
1131 * Usage: Internal
1132 *
1133 * </ini>
1134 */
1135#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_NAME "gFirstScanBucketThreshold"
1136#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_MIN (-50)
1137#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_MAX (-30)
1138#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_DEFAULT (-30)
1139
1140/*
1141 * <ini>
1142 * obss_active_dwelltime - Set obss active dwelltime
1143 * @Min: 5
1144 * @Max: 1000
1145 * @Default: 10
1146 *
1147 * This ini is used to set dwell time in secs for active
1148 * obss scan
1149 *
1150 * Related: None
1151 *
1152 * Supported Feature: Scan
1153 *
1154 * Usage: External
1155 *
1156 * </ini>
1157 */
1158#define CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_NAME "obss_active_dwelltime"
1159#define CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_MIN (5)
1160#define CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_MAX (1000)
1161#define CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_DEFAULT (10)
1162
1163/*
1164 * <ini>
1165 * obss_passive_dwelltime - Set obss passive dwelltime
1166 * @Min: 10
1167 * @Max: 1000
1168 * @Default: 20
1169 *
1170 * This ini is used to set dwell time in secs for passive
1171 * obss scan
1172 *
1173 * Related: None
1174 *
1175 * Supported Feature: Scan
1176 *
1177 * Usage: External
1178 *
1179 * </ini>
1180 */
1181#define CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_NAME "obss_passive_dwelltime"
1182#define CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_MIN (10)
1183#define CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_MAX (1000)
1184#define CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_DEFAULT (20)
1185
1186/*
1187 * <ini>
1188 * obss_width_trigger_interval - Set obss trigger interval
1189 * @Min: 10
1190 * @Max: 900
1191 * @Default: 200
1192 *
1193 * This ini is used during an OBSS scan operation,
1194 * where each channel in the set is scanned at least
1195 * once per configured trigger interval time.
1196 *
1197 * Related: None
1198 *
1199 * Supported Feature: Scan
1200 *
1201 * Usage: External
1202 *
1203 * </ini>
1204 */
1205#define CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_NAME "obss_width_trigger_interval"
1206#define CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_MIN (10)
1207#define CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_MAX (900)
1208#define CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_DEFAULT (200)
1209
1210/*
1211 * <ini>
1212 * gbug_report_for_scan_results - Enable bug report
1213 * @Min: 0
1214 * @Max: 1
1215 * @Default: 0
1216 *
1217 * This ini is used to create bug report in
1218 * case of nil scan results.
1219 *
1220 * Related: None
1221 *
1222 * Supported Feature: Scan
1223 *
1224 * Usage: External
1225 *
1226 * </ini>
1227 */
1228#define CFG_CREATE_BUG_REPORT_FOR_SCAN "gbug_report_for_scan_results"
1229#define CFG_CREATE_BUG_REPORT_FOR_SCAN_DISABLE (0)
1230#define CFG_CREATE_BUG_REPORT_FOR_SCAN_ENABLE (1)
1231#define CFG_CREATE_BUG_REPORT_FOR_SCAN_DEFAULT (0)
1232
1233/*
1234 * <ini>
1235 * hostscan_adaptive_dwell_mode - Enable adaptive dwell mode
1236 * during host scan
1237 * @Min: 0
1238 * @Max: 4
1239 * @Default: 0
1240 *
1241 * This ini will set the algo used in dwell time optimization
1242 * during host scan. see enum wmi_dwelltime_adaptive_mode.
1243 * Acceptable values for this:
1244 * 0: Default (Use firmware default mode)
1245 * 1: Conservative optimization
1246 * 2: Moderate optimization
1247 * 3: Aggressive optimization
1248 * 4: Static
1249 *
1250 * Related: None
1251 *
1252 * Supported Feature: Scan
1253 *
1254 * Usage: External
1255 *
1256 * </ini>
1257 */
1258#define CFG_ADAPTIVE_SCAN_DWELL_MODE_NAME "hostscan_adaptive_dwell_mode"
1259#define CFG_ADAPTIVE_SCAN_DWELL_MODE_MIN (0)
1260#define CFG_ADAPTIVE_SCAN_DWELL_MODE_MAX (4)
1261#define CFG_ADAPTIVE_SCAN_DWELL_MODE_DEFAULT (0)
1262
1263/*
1264 * <ini>
1265 * extscan_adaptive_dwell_mode - Enable adaptive dwell mode
1266 * during ext scan
1267 * @Min: 0
1268 * @Max: 4
1269 * @Default: 0
1270 *
1271 * This ini will set the algo used in dwell time optimization
1272 * during ext scan. see enum wmi_dwelltime_adaptive_mode.
1273 * Acceptable values for this:
1274 * 0: Default (Use firmware default mode)
1275 * 1: Conservative optimization
1276 * 2: Moderate optimization
1277 * 3: Aggressive optimization
1278 * 4: Static
1279 *
1280 * Related: None
1281 *
1282 * Supported Feature: Scan
1283 *
1284 * Usage: External
1285 *
1286 * </ini>
1287 */
1288#define CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_NAME "extscan_adaptive_dwell_mode"
1289#define CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_MIN (0)
1290#define CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_MAX (4)
1291#define CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_DEFAULT (0)
1292
1293/*
1294 * <ini>
1295 * pnoscan_adaptive_dwell_mode - Enable adaptive dwell mode
1296 * during pno scan
1297 * @Min: 0
1298 * @Max: 4
1299 * @Default: 0
1300 *
1301 * This ini will set the algo used in dwell time optimization
1302 * during pno scan. see enum wmi_dwelltime_adaptive_mode.
1303 * Acceptable values for this:
1304 * 0: Default (Use firmware default mode)
1305 * 1: Conservative optimization
1306 * 2: Moderate optimization
1307 * 3: Aggressive optimization
1308 * 4: Static
1309 *
1310 * Related: None
1311 *
1312 * Supported Feature: Scan
1313 *
1314 * Usage: External
1315 *
1316 * </ini>
1317 */
1318#define CFG_ADAPTIVE_PNOSCAN_DWELL_MODE_NAME "pnoscan_adaptive_dwell_mode"
1319#define CFG_ADAPTIVE_PNOSCAN_DWELL_MODE_MIN (0)
1320#define CFG_ADAPTIVE_PNOSCAN_DWELL_MODE_MAX (4)
1321#define CFG_ADAPTIVE_PNOSCAN_DWELL_MODE_DEFAULT (0)
1322
1323/*
1324 * <ini>
1325 * adaptive_dwell_mode_enabled - Enable adaptive dwell mode
1326 * @Min: 0
1327 * @Max: 1
1328 * @Default: 1
1329 *
1330 * This parameter will globally disable/enable the adaptive dwell config.
1331 * Following parameters will set different values of attributes for dwell
1332 * time optimization thus reducing total scan time.
1333 * Acceptable values for this:
1334 * 0: Config is disabled
1335 * 1: Config is enabled
1336 *
1337 * Related: None
1338 *
1339 * Supported Feature: Scan
1340 *
1341 * Usage: External
1342 *
1343 * </ini>
1344 */
1345#define CFG_ADAPTIVE_DWELL_MODE_ENABLED_NAME "adaptive_dwell_mode_enabled"
1346#define CFG_ADAPTIVE_DWELL_MODE_ENABLED_MIN (0)
1347#define CFG_ADAPTIVE_DWELL_MODE_ENABLED_MAX (1)
1348#define CFG_ADAPTIVE_DWELL_MODE_ENABLED_DEFAULT (1)
1349
1350/*
1351 * <ini>
1352 * global_adapt_dwelltime_mode - Set default adaptive mode
1353 * @Min: 0
1354 * @Max: 4
1355 * @Default: 1
1356 *
1357 * This parameter will set default adaptive mode, will be used if any of the
1358 * scan dwell mode is set to default.
1359 * For uses : see enum wmi_dwelltime_adaptive_mode
1360 *
1361 * Related: None
1362 *
1363 * Supported Feature: Scan
1364 *
1365 * Usage: External
1366 *
1367 * </ini>
1368 */
1369#define CFG_GLOBAL_ADAPTIVE_DWELL_MODE_NAME "global_adapt_dwelltime_mode"
1370#define CFG_GLOBAL_ADAPTIVE_DWELL_MODE_MIN (0)
1371#define CFG_GLOBAL_ADAPTIVE_DWELL_MODE_MAX (4)
1372#define CFG_GLOBAL_ADAPTIVE_DWELL_MODE_DEFAULT (1)
1373
Sen, Devendra9ca8c432017-02-23 15:10:26 +05301374/*
1375 * <ini>
1376 * gRssiCatGap - Set Rssi CatGap
1377 * @Min: 5
1378 * @Max: 100
1379 * @Default: 5
1380 *
1381 * This ini is used to set default RssiCatGap
1382 *
1383 * Related: None
1384 *
1385 * Supported Feature: STA
1386 *
1387 * Usage: Internal/External
1388 *
1389 * </ini>
1390 */
1391
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001392#define CFG_RSSI_CATEGORY_GAP_NAME "gRssiCatGap"
1393#define CFG_RSSI_CATEGORY_GAP_MIN (5)
1394#define CFG_RSSI_CATEGORY_GAP_MAX (100)
1395#define CFG_RSSI_CATEGORY_GAP_DEFAULT (5)
1396
Selvaraj, Sridharf7939832017-03-25 16:59:50 +05301397/*
1398 * <ini>
1399 * gRoamPrefer5GHz - Prefer roaming to 5GHz Bss
1400 * @Min: 0
1401 * @Max: 1
1402 * @Default: 1
1403 *
1404 * This ini is used to inform FW to prefer roaming to 5GHz BSS
1405 *
1406 * Related: None
1407 *
1408 * Supported Feature: Roaming
1409 *
1410 * Usage: External
1411 *
1412 * </ini>
1413 */
1414#define CFG_ROAM_PREFER_5GHZ "gRoamPrefer5GHz"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001415#define CFG_ROAM_PREFER_5GHZ_MIN (0)
1416#define CFG_ROAM_PREFER_5GHZ_MAX (1)
1417#define CFG_ROAM_PREFER_5GHZ_DEFAULT (1)
1418
1419/*
Selvaraj, Sridharf7939832017-03-25 16:59:50 +05301420 * <ini>
1421 * gRoamIntraBand - Prefer roaming within Band
1422 * @Min: 0
1423 * @Max: 1
1424 * @Default: 0
1425 *
1426 * This ini is used to inform FW to prefer roaming within band
1427 *
1428 * Related: None
1429 *
1430 * Supported Feature: Roaming
1431 *
1432 * Usage: External
1433 *
1434 * </ini>
1435 */
1436#define CFG_ROAM_INTRA_BAND "gRoamIntraBand"
1437#define CFG_ROAM_INTRA_BAND_MIN (0)
1438#define CFG_ROAM_INTRA_BAND_MAX (1)
1439#define CFG_ROAM_INTRA_BAND_DEFAULT (0)
1440
1441/*
1442 * <ini>
1443 * FastRoamEnabled - Enable fast roaming
1444 * @Min: 0
1445 * @Max: 1
1446 * @Default: 0
1447 *
1448 * This ini is used to inform FW to enable fast roaming
1449 *
1450 * Related: None
1451 *
1452 * Supported Feature: Roaming
1453 *
1454 * Usage: External
1455 *
1456 * </ini>
1457 */
1458#define CFG_LFR_FEATURE_ENABLED_NAME "FastRoamEnabled"
1459#define CFG_LFR_FEATURE_ENABLED_MIN (0)
1460#define CFG_LFR_FEATURE_ENABLED_MAX (1)
1461#define CFG_LFR_FEATURE_ENABLED_DEFAULT (0)
1462
1463/*
1464 * <ini>
1465 * FastTransitionEnabled - Enable fast transition in case of 11r and ese.
1466 * @Min: 0
1467 * @Max: 1
1468 * @Default: 1
1469 *
1470 * This ini is used to turn ON/OFF the whole neighbor roam, pre-auth, reassoc.
1471 * With this turned OFF 11r will completely not work. For 11r this flag has to
1472 * be ON. For ESE fastroam will not work.
1473 *
1474 * Related: None
1475 *
1476 * Supported Feature: Roaming
1477 *
1478 * Usage: External
1479 *
1480 * </ini>
1481 */
1482#define CFG_FAST_TRANSITION_ENABLED_NAME "FastTransitionEnabled"
1483#define CFG_FAST_TRANSITION_ENABLED_NAME_MIN (0)
1484#define CFG_FAST_TRANSITION_ENABLED_NAME_MAX (1)
1485#define CFG_FAST_TRANSITION_ENABLED_NAME_DEFAULT (1)
1486
1487/*
1488 * <ini>
1489 * RoamRssiDiff - Enable roam based on rssi
1490 * @Min: 0
1491 * @Max: 30
1492 * @Default: 5
1493 *
1494 * This INI is used to decide whether to Roam or not based on RSSI. AP1 is the
1495 * currently associated AP and AP2 is chosen for roaming. The Roaming will
1496 * happen only if AP2 has better Signal Quality and it has a RSSI better than
1497 * AP2. RoamRssiDiff is the number of units (typically measured in dB) AP2
1498 * is better than AP1.
1499 *
1500 * Related: None
1501 *
1502 * Supported Feature: Roaming
1503 *
1504 * Usage: External
1505 *
1506 * </ini>
1507 */
1508#define CFG_ROAM_RSSI_DIFF_NAME "RoamRssiDiff"
1509#define CFG_ROAM_RSSI_DIFF_MIN (0)
1510#define CFG_ROAM_RSSI_DIFF_MAX (30)
1511#define CFG_ROAM_RSSI_DIFF_DEFAULT (5)
1512
1513/*
1514 * <ini>
1515 * gRoamScanNProbes - Sets the number of probes to be sent for firmware roaming
1516 * @Min: 1
1517 * @Max: 10
1518 * @Default: 2
1519 *
1520 * This INI is used to set the maximum number of probes the firmware can send
1521 * for firmware internal roaming cases.
1522 *
1523 * Related: None
1524 *
1525 * Supported Feature: Roaming
1526 *
1527 * Usage: External
1528 *
1529 * </ini>
1530 */
1531#define CFG_ROAM_SCAN_N_PROBES "gRoamScanNProbes"
1532#define CFG_ROAM_SCAN_N_PROBES_MIN (1)
1533#define CFG_ROAM_SCAN_N_PROBES_MAX (10)
1534#define CFG_ROAM_SCAN_N_PROBES_DEFAULT (2)
1535
1536/*
1537 * <ini>
1538 * gRoamScanHomeAwayTime - Sets the Home Away Time to firmware
1539 * @Min: 0
1540 * @Max: 300
1541 * @Default: 0
1542 *
1543 * Home Away Time should be at least equal to (gNeighborScanChannelMaxTime
1544 * + (2*RFS)), where RFS is the RF Switching time(3). It is twice RFS
1545 * to consider the time to go off channel and return to the home channel.
1546 *
1547 * Related: gNeighborScanChannelMaxTime
1548 *
1549 * Supported Feature: Roaming
1550 *
1551 * Usage: External
1552 *
1553 * </ini>
1554 */
1555#define CFG_ROAM_SCAN_HOME_AWAY_TIME "gRoamScanHomeAwayTime"
1556#define CFG_ROAM_SCAN_HOME_AWAY_TIME_MIN (0)
1557#define CFG_ROAM_SCAN_HOME_AWAY_TIME_MAX (300)
1558#define CFG_ROAM_SCAN_HOME_AWAY_TIME_DEFAULT (0)
1559
1560/*
1561 * <ini>
1562 * OkcEnabled - Enable OKC(Oppurtunistic Key Caching)
1563 * @Min: 0
1564 * @Max: 1
1565 * @Default: 1
1566 *
1567 * This INI is used to enable OKC feature
1568 *
1569 * Related: None
1570 *
1571 * Supported Feature: Roaming
1572 *
1573 * Usage: External
1574 *
1575 * </ini>
1576 */
1577#define CFG_OKC_FEATURE_ENABLED_NAME "OkcEnabled"
1578#define CFG_OKC_FEATURE_ENABLED_MIN (0)
1579#define CFG_OKC_FEATURE_ENABLED_MAX (1)
1580#define CFG_OKC_FEATURE_ENABLED_DEFAULT (1)
1581
1582/*
1583 * <ini>
1584 * gRoamScanOffloadEnabled - Enable Roam Scan Offload
1585 * @Min: 0
1586 * @Max: 1
1587 * @Default: 1
1588 *
1589 * This INI is used to enable Roam Scan Offload in firmware
1590 *
1591 * Related: None
1592 *
1593 * Supported Feature: Roaming
1594 *
1595 * Usage: External
1596 *
1597 * </ini>
1598 */
1599#define CFG_ROAM_SCAN_OFFLOAD_ENABLED "gRoamScanOffloadEnabled"
1600#define CFG_ROAM_SCAN_OFFLOAD_ENABLED_MIN (0)
1601#define CFG_ROAM_SCAN_OFFLOAD_ENABLED_MAX (1)
1602#define CFG_ROAM_SCAN_OFFLOAD_ENABLED_DEFAULT (1)
1603
1604/*
1605 * <ini>
1606 * gRoamRescanRssiDiff - Sets RSSI for Scan trigger in firmware
1607 * @Min: 0
1608 * @Max: 100
1609 * @Default: 5
1610 *
1611 * This INI is the drop in RSSI value that will trigger a precautionary
1612 * scan by firmware. Max value is chosen in such a way that this type
1613 * of scan can be disabled by user.
1614 *
1615 * Related: None
1616 *
1617 * Supported Feature: Roaming
1618 *
1619 * Usage: External
1620 *
1621 * </ini>
1622 */
1623#define CFG_ROAM_RESCAN_RSSI_DIFF_NAME "gRoamRescanRssiDiff"
1624#define CFG_ROAM_RESCAN_RSSI_DIFF_MIN (0)
1625#define CFG_ROAM_RESCAN_RSSI_DIFF_MAX (100)
1626#define CFG_ROAM_RESCAN_RSSI_DIFF_DEFAULT (5)
1627
1628/*
1629 * <ini>
Naveen Rawat2b6e3c92017-03-20 13:59:07 -07001630 * gDroppedPktDisconnectTh - Sets dropped packet threshold in firmware
1631 * @Min: 0
1632 * @Max: 512
1633 * @Default: 512
1634 *
1635 * This INI is the packet drop threshold will trigger disconnect from remote
1636 * peer.
1637 *
1638 * Related: None
1639 *
1640 * Supported Feature: connection
1641 *
1642 * Usage: External
1643 *
1644 * </ini>
1645 */
1646#define CFG_DROPPED_PKT_DISCONNECT_TH_NAME "gDroppedPktDisconnectTh"
1647#define CFG_DROPPED_PKT_DISCONNECT_TH_MIN (0)
Naveen Rawat3ca28b02017-04-05 10:03:29 -07001648#define CFG_DROPPED_PKT_DISCONNECT_TH_MAX (65535)
Naveen Rawat2b6e3c92017-03-20 13:59:07 -07001649#define CFG_DROPPED_PKT_DISCONNECT_TH_DEFAULT (512)
1650
1651/*
1652 * <ini>
Naveen Rawatb2fc4132017-05-10 20:42:05 -07001653 * gForce1x1Exception - force 1x1 when connecting to certain peer
1654 * @Min: 0
1655 * @Max: 1
1656 * @Default: 0
1657 *
1658 * This INI when enabled will force 1x1 connection with certain peer.
1659 *
1660 *
1661 * Related: None
1662 *
1663 * Supported Feature: connection
1664 *
1665 * Usage: External
1666 *
1667 * </ini>
1668 */
1669#define CFG_FORCE_1X1_NAME "gForce1x1Exception"
1670#define CFG_FORCE_1X1_MIN (0)
1671#define CFG_FORCE_1X1_MAX (1)
1672#define CFG_FORCE_1X1_DEFAULT (0)
1673
1674/*
1675 * <ini>
Naveen Rawat247a8682017-06-05 15:00:31 -07001676 * g11bNumTxChains - Number of Tx Chanins in 11b mode
1677 * @Min: 0
1678 * @Max: 2
1679 * @Default: 0
1680 *
1681 * Number of Tx Chanins in 11b mode
1682 *
1683 *
1684 * Related: None
1685 *
1686 * Supported Feature: connection
1687 *
1688 * Usage: External
1689 *
1690 * </ini>
1691 */
1692#define CFG_11B_NUM_TX_CHAIN_NAME "g11bNumTxChains"
1693#define CFG_11B_NUM_TX_CHAIN_MIN (0)
1694#define CFG_11B_NUM_TX_CHAIN_MAX (2)
1695#define CFG_11B_NUM_TX_CHAIN_DEFAULT (0)
1696
1697/*
1698 * <ini>
1699 * g11agNumTxChains - Number of Tx Chanins in 11ag mode
1700 * @Min: 0
1701 * @Max: 2
1702 * @Default: 0
1703 *
1704 * Number of Tx Chanins in 11ag mode
1705 *
1706 *
1707 * Related: None
1708 *
1709 * Supported Feature: connection
1710 *
1711 * Usage: External
1712 *
1713 * </ini>
1714 */
1715#define CFG_11AG_NUM_TX_CHAIN_NAME "g11agNumTxChains"
1716#define CFG_11AG_NUM_TX_CHAIN_MIN (1)
1717#define CFG_11AG_NUM_TX_CHAIN_MAX (4)
1718#define CFG_11AG_NUM_TX_CHAIN_DEFAULT (1)
1719
1720/*
1721 * <ini>
Selvaraj, Sridharf7939832017-03-25 16:59:50 +05301722 * gEnableFastRoamInConcurrency - Enable LFR roaming on STA during concurrency
1723 * @Min: 0
1724 * @Max: 1
1725 * @Default: 1
1726 *
1727 * This INI is used to enable Legacy fast roaming(LFR) on STA link during
1728 * concurrent sessions.
1729 *
1730 * Related: None
1731 *
1732 * Supported Feature: Roaming
1733 *
1734 * Usage: External
1735 *
1736 * </ini>
1737 */
1738#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY "gEnableFastRoamInConcurrency"
1739#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_MIN (0)
1740#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_MAX (1)
1741#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_DEFAULT (1)
1742
1743/*
1744 * <ini>
1745 * gSelect5GHzMargin - Sets RSSI preference for 5GHz over 2.4GHz AP.
1746 * @Min: 0
1747 * @Max: 60
1748 * @Default: 0
1749 *
1750 * Prefer connecting to 5G AP even if its RSSI is lower by gSelect5GHzMargin
1751 * dBm than 2.4G AP. This feature requires the dependent cfg.ini
1752 * "gRoamPrefer5GHz" set to 1
1753 *
1754 * Related: gRoamPrefer5GHz
1755 *
1756 * Supported Feature: Roaming
1757 *
1758 * Usage: External
1759 *
1760 * </ini>
1761 */
1762#define CFG_STRICT_5GHZ_PREF_BY_MARGIN "gSelect5GHzMargin"
1763#define CFG_STRICT_5GHZ_PREF_BY_MARGIN_MIN (0)
1764#define CFG_STRICT_5GHZ_PREF_BY_MARGIN_MAX (60)
1765#define CFG_STRICT_5GHZ_PREF_BY_MARGIN_DEFAULT (0)
1766
1767#ifdef WLAN_FEATURE_ROAM_OFFLOAD
1768/*
1769 * <ini>
1770 * gRoamOffloadEnabled - enable/disable roam offload feature
1771 * @Min: 0
1772 * @Max: 1
1773 * @Default: 1
1774 *
1775 * This INI is used to enable/disable roam offload feature
1776 *
1777 * Related: None
1778 *
1779 * Supported Feature: Roaming
1780 *
1781 * Usage: External
1782 *
1783 * </ini>
1784 */
1785#define CFG_ROAMING_OFFLOAD_NAME "gRoamOffloadEnabled"
1786#define CFG_ROAMING_OFFLOAD_MIN (0)
1787#define CFG_ROAMING_OFFLOAD_MAX (1)
1788#define CFG_ROAMING_OFFLOAD_DEFAULT (1)
1789#endif
1790
1791/*
1792 * <ini>
1793 * gRoamScanHiRssiMaxCount - Sets 5GHz maximum scan count
1794 * @Min: 0
1795 * @Max: 10
1796 * @Default: 3
1797 *
1798 * This INI is used to set maximum scan count in 5GHz
1799 *
1800 * Related: None
1801 *
1802 * Supported Feature: Roaming
1803 *
1804 * Usage: External
1805 *
1806 * </ini>
1807 */
1808#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_NAME "gRoamScanHiRssiMaxCount"
1809#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_MIN (0)
1810#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_MAX (10)
1811#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_DEFAULT (3)
1812
1813/*
1814 * <ini>
1815 * gRoamScanHiRssiDelta - Sets RSSI Delta for scan trigger
1816 * @Min: 0
1817 * @Max: 16
1818 * @Default: 10
1819 *
1820 * This INI is used to set change in RSSI at which scan is triggered
1821 * in 5GHz.
1822 *
1823 * Related: None
1824 *
1825 * Supported Feature: Roaming
1826 *
1827 * Usage: External
1828 *
1829 * </ini>
1830 */
1831#define CFG_ROAM_SCAN_HI_RSSI_DELTA_NAME "gRoamScanHiRssiDelta"
1832#define CFG_ROAM_SCAN_HI_RSSI_DELTA_MIN (0)
1833#define CFG_ROAM_SCAN_HI_RSSI_DELTA_MAX (16)
1834#define CFG_ROAM_SCAN_HI_RSSI_DELTA_DEFAULT (10)
1835
1836/*
1837 * <ini>
1838 * gRoamScanHiRssiDelay - Sets minimum delay between 5GHz scans
1839 * @Min: 5000
1840 * @Max: 0x7fffffff
1841 * @Default: 15000
1842 *
1843 * This INI is used to set the minimum delay between 5GHz scans.
1844 *
1845 * Related: None
1846 *
1847 * Supported Feature: Roaming
1848 *
1849 * Usage: External
1850 *
1851 * </ini>
1852 */
1853#define CFG_ROAM_SCAN_HI_RSSI_DELAY_NAME "gRoamScanHiRssiDelay"
1854#define CFG_ROAM_SCAN_HI_RSSI_DELAY_MIN (5000)
1855#define CFG_ROAM_SCAN_HI_RSSI_DELAY_MAX (0x7fffffff)
1856#define CFG_ROAM_SCAN_HI_RSSI_DELAY_DEFAULT (15000)
1857
1858/*
1859 * <ini>
1860 * gRoamScanHiRssiUpperBound - Sets upper bound after which 5GHz scan
1861 * @Min: -66
1862 * @Max: 0
1863 * @Default: -30
1864 *
1865 * This INI is used to set the RSSI upper bound above which the 5GHz scan
1866 * will not be performed.
1867 *
1868 * Related: None
1869 *
1870 * Supported Feature: Roaming
1871 *
1872 * Usage: External
1873 *
1874 * </ini>
1875 */
1876#define CFG_ROAM_SCAN_HI_RSSI_UB_NAME "gRoamScanHiRssiUpperBound"
1877#define CFG_ROAM_SCAN_HI_RSSI_UB_MIN (-66)
1878#define CFG_ROAM_SCAN_HI_RSSI_UB_MAX (0)
1879#define CFG_ROAM_SCAN_HI_RSSI_UB_DEFAULT (-30)
1880
1881#ifdef FEATURE_LFR_SUBNET_DETECTION
1882/*
1883 * <ini>
1884 * gLFRSubnetDetectionEnable - Enable LFR3 subnet detection
1885 * @Min: 0
1886 * @Max: 1
1887 * @Default: 1
1888 *
1889 * Enable IP subnet detection during legacy fast roming version 3. Legacy fast
1890 * roaming could roam across IP subnets without host processors' knowledge.
1891 * This feature enables firmware to wake up the host processor if it
1892 * successfully determines change in the IP subnet. Change in IP subnet could
1893 * potentially cause disruption in IP connnectivity if IP address is not
1894 * refreshed.
1895 *
1896 * Related: None
1897 *
1898 * Supported Feature: Roaming
1899 *
1900 * Usage: External
1901 *
1902 * </ini>
1903 */
1904#define CFG_ENABLE_LFR_SUBNET_DETECTION "gLFRSubnetDetectionEnable"
1905#define CFG_ENABLE_LFR_SUBNET_MIN (0)
1906#define CFG_ENABLE_LFR_SUBNET_MAX (1)
1907#define CFG_ENABLE_LFR_SUBNET_DEFAULT (1)
1908#endif /* FEATURE_LFR_SUBNET_DETECTION */
1909
1910/*
1911 * <ini>
1912 * groam_dense_rssi_thresh_offset - Sets dense roam RSSI threshold diff
1913 * @Min: 0
1914 * @Max: 20
1915 * @Default: 10
1916 *
1917 * This INI is used to set offset value from normal RSSI threshold to dense
1918 * RSSI threshold Fw will optimize roaming based on new RSSI threshold once
1919 * it detects dense enviournment.
1920 *
1921 * Related: None
1922 *
1923 * Supported Feature: Roaming
1924 *
1925 * Usage: External
1926 *
1927 * </ini>
1928 */
1929#define CFG_ROAM_DENSE_RSSI_THRE_OFFSET "groam_dense_rssi_thresh_offset"
1930#define CFG_ROAM_DENSE_RSSI_THRE_OFFSET_MIN (0)
1931#define CFG_ROAM_DENSE_RSSI_THRE_OFFSET_MAX (20)
1932#define CFG_ROAM_DENSE_RSSI_THRE_OFFSET_DEFAULT (10)
1933
1934/*
1935 * <ini>
1936 * groam_dense_min_aps - Sets minimum number of AP for dense roam
1937 * @Min: 1
1938 * @Max: 5
1939 * @Default: 3
1940 *
1941 * Minimum number of APs required for dense roam. FW will consider
1942 * environment as dense once it detects #APs operating is more than
1943 * groam_dense_min_aps.
1944 *
1945 * Related: None
1946 *
1947 * Supported Feature: Roaming
1948 *
1949 * Usage: External
1950 *
1951 * </ini>
1952 */
1953#define CFG_ROAM_DENSE_MIN_APS "groam_dense_min_aps"
1954#define CFG_ROAM_DENSE_MIN_APS_MIN (1)
1955#define CFG_ROAM_DENSE_MIN_APS_MAX (5)
1956#define CFG_ROAM_DENSE_MIN_APS_DEFAULT (3)
1957
1958/*
1959 * <ini>
1960 * roamscan_adaptive_dwell_mode - Sets dwell time adaptive mode
1961 * @Min: 0
1962 * @Max: 4
1963 * @Default: 0
1964 *
1965 * This parameter will set the algo used in dwell time optimization during
1966 * roam scan. see enum wmi_dwelltime_adaptive_mode.
1967 * Acceptable values for this:
1968 * 0: Default (Use firmware default mode)
1969 * 1: Conservative optimization
1970 * 2: Moderate optimization
1971 * 3: Aggressive optimization
1972 * 4: Static
1973 *
1974 * Related: None
1975 *
1976 * Supported Feature: Roaming
1977 *
1978 * Usage: External
1979 *
1980 * </ini>
1981 */
1982#define CFG_ADAPTIVE_ROAMSCAN_DWELL_MODE_NAME "roamscan_adaptive_dwell_mode"
1983#define CFG_ADAPTIVE_ROAMSCAN_DWELL_MODE_MIN (0)
1984#define CFG_ADAPTIVE_ROAMSCAN_DWELL_MODE_MAX (4)
1985#define CFG_ADAPTIVE_ROAMSCAN_DWELL_MODE_DEFAULT (0)
1986
1987/*
Arun Khandavallifae92942016-08-01 13:31:08 +05301988 * Timer waiting for interface up from the upper layer. If
1989 * this timer expires all the cds modules shall be closed.
1990 * Time Units: ms
1991 */
1992#define CFG_INTERFACE_CHANGE_WAIT_NAME "gInterfaceChangeWait"
1993#define CFG_INTERFACE_CHANGE_WAIT_MIN (10)
Arunk Khandavallib0b940b2017-01-23 14:08:02 +05301994#define CFG_INTERFACE_CHANGE_WAIT_MAX (500000)
Hanumanth Reddy Pothula42e714a2016-12-21 19:33:57 +05301995#define CFG_INTERFACE_CHANGE_WAIT_DEFAULT (5000)
Arun Khandavallifae92942016-08-01 13:31:08 +05301996
1997/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05301998 * <ini>
1999 * gShortPreamble - Set Short Preamble
2000 * @Min: 0
2001 * @Max: 1
2002 * @Default: 1
2003 *
2004 * This ini is used to set default short Preamble
2005 *
2006 * Related: None
2007 *
2008 * Supported Feature: STA
2009 *
2010 * Usage: Internal/External
2011 *
2012 * </ini>
2013 */
2014
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002015#define CFG_SHORT_PREAMBLE_NAME "gShortPreamble"
2016#define CFG_SHORT_PREAMBLE_MIN WNI_CFG_SHORT_PREAMBLE_STAMIN
2017#define CFG_SHORT_PREAMBLE_MAX WNI_CFG_SHORT_PREAMBLE_STAMAX
2018#define CFG_SHORT_PREAMBLE_DEFAULT WNI_CFG_SHORT_PREAMBLE_STADEF
2019
Abhishek Singh49b654e2016-12-01 16:11:17 +05302020/*
2021 * <ini>
2022 * gIbssBssid - Default IBSS BSSID if BSSID is not provided by supplicant
2023 * @Min: "000000000000"
2024 * @Max: "ffffffffffff"
2025 * @Default: "000AF5040506"
2026 *
2027 * This ini is used to set Default IBSS BSSID if BSSID
2028 * is not provided by supplicant and Coalesing is disabled
2029 *
2030 * Related: Only applicable if gCoalesingInIBSS is 0
2031 *
2032 * Supported Feature: IBSS
2033 *
2034 * Usage: Internal/External
2035 *
2036 * </ini>
2037 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002038#define CFG_IBSS_BSSID_NAME "gIbssBssid"
2039#define CFG_IBSS_BSSID_MIN "000000000000"
2040#define CFG_IBSS_BSSID_MAX "ffffffffffff"
2041#define CFG_IBSS_BSSID_DEFAULT "000AF5040506"
2042
Abhishek Singh49b654e2016-12-01 16:11:17 +05302043/*
2044 * <ini>
2045 * gAdHocChannel5G - Default 5Ghz IBSS channel if channel is not
2046 * provided by supplicant.
2047 * @Min: 36
2048 * @Max: 165
2049 * @Default: 44
2050 *
2051 * This ini is used to set default 5Ghz IBSS channel
2052 * if channel is not provided by supplicant and band is 5Ghz
2053 *
2054 * Related: None
2055 *
2056 * Supported Feature: IBSS
2057 *
2058 * Usage: Internal/External
2059 *
2060 * </ini>
2061 */
2062#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_NAME "gAdHocChannel5G"
2063#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_MIN (36)
2064#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_MAX (165)
2065#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_DEFAULT (44)
2066
2067/*
2068 * <ini>
2069 * gAdHocChannel24G - Default 2.4Ghz IBSS channel if channel is not
2070 * provided by supplicant.
2071 * @Min: 1
2072 * @Max: 14
2073 * @Default: 6
2074 *
2075 * This ini is used to set default 2.4Ghz IBSS channel
2076 * if channel is not provided by supplicant and band is 2.4Ghz
2077 *
2078 * Related: None
2079 *
2080 * Supported Feature: IBSS
2081 *
2082 * Usage: Internal/External
2083 *
2084 * </ini>
2085 */
2086#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_NAME "gAdHocChannel24G"
2087#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_MIN (1)
2088#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_MAX (14)
2089#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_DEFAULT (6)
2090
2091/*
2092 * <ini>
2093 * gCoalesingInIBSS - If IBSS coalesing is enabled.
2094 * @Min: 0
2095 * @Max: 1
2096 * @Default: 0
2097 *
2098 * This ini is used to set IBSS coalesing
2099 *
2100 * Related: None
2101 *
2102 * Supported Feature: IBSS
2103 *
2104 * Usage: Internal/External
2105 *
2106 * </ini>
2107 */
2108#define CFG_COALESING_IN_IBSS_NAME "gCoalesingInIBSS"
2109#define CFG_COALESING_IN_IBSS_MIN (0)
2110#define CFG_COALESING_IN_IBSS_MAX (1)
2111#define CFG_COALESING_IN_IBSS_DEFAULT (0) /* disabled */
2112
2113/*
2114 * <ini>
2115 * gIbssATIMWinSize - Set IBSS ATIM window size
2116 * @Min: 0
2117 * @Max: 50
2118 * @Default: 0
2119 *
2120 * This ini is used to set IBSS ATIM window size
2121 *
2122 * Related: None
2123 *
2124 * Supported Feature: IBSS
2125 *
2126 * Usage: Internal/External
2127 *
2128 * </ini>
2129 */
2130#define CFG_IBSS_ATIM_WIN_SIZE_NAME "gIbssATIMWinSize"
2131#define CFG_IBSS_ATIM_WIN_SIZE_MIN (0)
2132#define CFG_IBSS_ATIM_WIN_SIZE_MAX (50)
2133#define CFG_IBSS_ATIM_WIN_SIZE_DEFAULT (0)
2134
2135
2136/*
2137 * <ini>
2138 * gIbssIsPowerSaveAllowed - Indicates if IBSS Power Save is
2139 * supported or not
2140 * @Min: 0
2141 * @Max: 1
2142 * @Default: 1
2143 *
2144 * This ini is used to Indicates if IBSS Power Save is
2145 * supported or not. When not allowed,IBSS station has
2146 * to stay awake all the time and should never set PM=1
2147 * in its transmitted frames.
2148 *
2149 * Related: valid only when gIbssATIMWinSize is non-zero
2150 *
2151 * Supported Feature: IBSS
2152 *
2153 * Usage: Internal/External
2154 *
2155 * </ini>
2156 */
2157#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_NAME "gIbssIsPowerSaveAllowed"
2158#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_MIN (0)
2159#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_MAX (1)
2160#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_DEFAULT (1)
2161
2162/*
2163 * <ini>
2164 * gIbssIsPowerCollapseAllowed - Indicates if IBSS Power Collapse
2165 * is allowed
2166 * @Min: 0
2167 * @Max: 1
2168 * @Default: 1
2169 *
2170 * This ini is used to indicates if IBSS Power Collapse
2171 * is allowed
2172 *
2173 * Related: None
2174 *
2175 * Supported Feature: IBSS
2176 *
2177 * Usage: Internal/External
2178 *
2179 * </ini>
2180 */
2181#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_NAME "gIbssIsPowerCollapseAllowed"
2182#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_MIN (0)
2183#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_MAX (1)
2184#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_DEFAULT (1)
2185
2186/*
2187 * <ini>
2188 * gIbssAwakeOnTxRx - Indicates whether IBSS station
2189 * can exit power save mode and enter power active
2190 * state whenever there is a TX/RX activity.
2191 *
2192 * @Min: 0
2193 * @Max: 1
2194 * @Default: 0
2195 *
2196 * This ini is used to ndicates whether IBSS station
2197 * can exit power save mode and enter power active
2198 * state whenever there is a TX/RX activity.
2199 *
2200 * Related: None
2201 *
2202 * Supported Feature: IBSS
2203 *
2204 * Usage: Internal/External
2205 *
2206 * </ini>
2207 */
2208#define CFG_IBSS_AWAKE_ON_TX_RX_NAME "gIbssAwakeOnTxRx"
2209#define CFG_IBSS_AWAKE_ON_TX_RX_MIN (0)
2210#define CFG_IBSS_AWAKE_ON_TX_RX_MAX (1)
2211#define CFG_IBSS_AWAKE_ON_TX_RX_DEFAULT (0)
2212
2213/*
2214 * <ini>
2215 * gIbssInactivityTime - Indicates the data
2216 * inactivity time in number of beacon intervals
2217 * after which IBSS station re-inters power save
2218 *
2219 * @Min: 1
2220 * @Max: 10
2221 * @Default: 1
2222 *
2223 * In IBSS mode if Awake on TX/RX activity is enabled
2224 * Ibss Inactivity parameter indicates the data
2225 * inactivity time in number of beacon intervals
2226 * after which IBSS station re-inters power save
2227 * by sending Null frame with PM=1
2228 *
2229 * Related: Aplicable if gIbssAwakeOnTxRx is enabled
2230 *
2231 * Supported Feature: IBSS
2232 *
2233 * Usage: Internal/External
2234 *
2235 * </ini>
2236 */
2237#define CFG_IBSS_INACTIVITY_TIME_NAME "gIbssInactivityTime"
2238#define CFG_IBSS_INACTIVITY_TIME_MIN (1)
2239#define CFG_IBSS_INACTIVITY_TIME_MAX (10)
2240#define CFG_IBSS_INACTIVITY_TIME_DEFAULT (1)
2241
2242/*
2243 * <ini>
2244 * gIbssTxSpEndInactivityTime - Indicates the time after
2245 * which TX Service Period is terminated by
2246 * sending a Qos Null frame with EOSP.
2247 *
2248 * @Min: 0
2249 * @Max: 100
2250 * @Default: 0
2251 *
2252 * In IBSS mode Tx Service Period Inactivity
2253 * time in msecs indicates the time after
2254 * which TX Service Period is terminated by
2255 * sending a Qos Null frame with EOSP.
2256 * If value is 0, TX SP is terminated with the
2257 * last buffered packet itself instead of waiting
2258 * for the inactivity.
2259 *
2260 * Related: None
2261 *
2262 * Supported Feature: IBSS
2263 *
2264 * Usage: Internal/External
2265 *
2266 * </ini>
2267 */
2268#define CFG_IBSS_TXSP_END_INACTIVITY_NAME "gIbssTxSpEndInactivityTime"
2269#define CFG_IBSS_TXSP_END_INACTIVITY_MIN (0)
2270#define CFG_IBSS_TXSP_END_INACTIVITY_MAX (100)
2271#define CFG_IBSS_TXSP_END_INACTIVITY_DEFAULT (0)
2272
2273/*
2274 * <ini>
2275 * gIbssPsWarmupTime - PS-supporting device
2276 * does not enter protocol sleep state during first
2277 * gIbssPsWarmupTime seconds.
2278 *
2279 * @Min: 0
2280 * @Max: 65535
2281 * @Default: 0
2282 *
2283 * When IBSS network is initialized, PS-supporting device
2284 * does not enter protocol sleep state during first
2285 * gIbssPsWarmupTime seconds.
2286 *
2287 * Related: valid if gIbssIsPowerSaveAllowed is set
2288 *
2289 * Supported Feature: IBSS
2290 *
2291 * Usage: Internal/External
2292 *
2293 * </ini>
2294 */
2295#define CFG_IBSS_PS_WARMUP_TIME_NAME "gIbssPsWarmupTime"
2296#define CFG_IBSS_PS_WARMUP_TIME_MIN (0)
2297/* Allow unsigned Int Max for now */
2298#define CFG_IBSS_PS_WARMUP_TIME_MAX (65535)
2299#define CFG_IBSS_PS_WARMUP_TIME_DEFAULT (0)
2300
2301/*
2302 * <ini>
Sen, Devendrac441b212017-02-23 15:40:42 +05302303 * gIbssPs1RxChainInAtim - IBSS Power Save Enable/Disable 1 RX
Abhishek Singh49b654e2016-12-01 16:11:17 +05302304 * chain usage during the ATIM window
2305 *
2306 * @Min: 0
2307 * @Max: 1
2308 * @Default: 0
2309 *
2310 * IBSS Power Save Enable/Disable 1 RX
2311 * chain usage during the ATIM window
2312 *
2313 * Related: Depend on gIbssIsPowerSaveAllowed
2314 *
2315 * Supported Feature: IBSS
2316 *
2317 * Usage: Internal/External
2318 *
2319 * </ini>
2320 */
2321#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_NAME "gIbssPs1RxChainInAtim"
2322#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_MIN (0)
2323#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_MAX (1)
2324#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_DEFAULT (0)
2325
2326
2327
2328
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002329#define CFG_INTF0_MAC_ADDR_NAME "Intf0MacAddress"
2330#define CFG_INTF0_MAC_ADDR_MIN "000000000000"
2331#define CFG_INTF0_MAC_ADDR_MAX "ffffffffffff"
Jeff Johnson9e6ff212016-09-02 10:26:32 -07002332#define CFG_INTF0_MAC_ADDR_DEFAULT "000AF58989FF"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002333
2334#define CFG_INTF1_MAC_ADDR_NAME "Intf1MacAddress"
2335#define CFG_INTF1_MAC_ADDR_MIN "000000000000"
2336#define CFG_INTF1_MAC_ADDR_MAX "ffffffffffff"
Jeff Johnson9e6ff212016-09-02 10:26:32 -07002337#define CFG_INTF1_MAC_ADDR_DEFAULT "000AF58989FE"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002338
2339#define CFG_INTF2_MAC_ADDR_NAME "Intf2MacAddress"
2340#define CFG_INTF2_MAC_ADDR_MIN "000000000000"
2341#define CFG_INTF2_MAC_ADDR_MAX "ffffffffffff"
Jeff Johnson9e6ff212016-09-02 10:26:32 -07002342#define CFG_INTF2_MAC_ADDR_DEFAULT "000AF58989FD"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002343
2344#define CFG_INTF3_MAC_ADDR_NAME "Intf3MacAddress"
2345#define CFG_INTF3_MAC_ADDR_MIN "000000000000"
2346#define CFG_INTF3_MAC_ADDR_MAX "ffffffffffff"
Jeff Johnson9e6ff212016-09-02 10:26:32 -07002347#define CFG_INTF3_MAC_ADDR_DEFAULT "000AF58989FC"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002348
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302349/*
2350 * <ini>
2351 * gDot11Mode - SAP phy mode
2352 * @Min: 0
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -08002353 * @Max: 12 (11ax)
2354 * @Default: 12 (11ax)
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302355 *
2356 * This ini is used to set Phy Mode (auto, b, g, n, etc/) Valid values are
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -08002357 * 0-12, with 0 = Auto, 12 = 11ax.
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302358 *
2359 * Related: None.
2360 *
2361 * Supported Feature: SAP
2362 *
2363 * Usage: Internal/External
2364 *
2365 * </ini>
2366 */
2367#define CFG_DOT11_MODE_NAME "gDot11Mode"
2368#define CFG_DOT11_MODE_MIN eHDD_DOT11_MODE_AUTO
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -08002369#define CFG_DOT11_MODE_DEFAULT eHDD_DOT11_MODE_11ax
2370#define CFG_DOT11_MODE_MAX eHDD_DOT11_MODE_11ax
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302371
2372/*
2373 * <ini>
2374 * gEnableApUapsd - Enable/disable UAPSD for SoftAP
2375 * @Min: 0
2376 * @Max: 1
2377 * @Default: 1
2378 *
2379 * This ini is used to setup setup U-APSD for Acs at association
2380 *
2381 * Related: None.
2382 *
2383 * Supported Feature: SAP
2384 *
2385 * Usage: Internal/External
2386 *
2387 * </ini>
2388 */
2389#define CFG_AP_QOS_UAPSD_MODE_NAME "gEnableApUapsd"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002390#define CFG_AP_QOS_UAPSD_MODE_MIN (0)
2391#define CFG_AP_QOS_UAPSD_MODE_MAX (1)
2392#define CFG_AP_QOS_UAPSD_MODE_DEFAULT (1)
2393
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302394/*
2395 * <ini>
2396 * gEnableApRandomBssid - Create ramdom BSSID
2397 * @Min: 0
2398 * @Max: 1
2399 * @Default: 0
2400 *
2401 * This ini is used to create a random BSSID in SoftAP mode to meet
2402 * the Android requirement.
2403 *
2404 * Related: None.
2405 *
2406 * Supported Feature: SAP
2407 *
2408 * Usage: Internal/External
2409 *
2410 * </ini>
2411 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002412#define CFG_AP_ENABLE_RANDOM_BSSID_NAME "gEnableApRandomBssid"
2413#define CFG_AP_ENABLE_RANDOM_BSSID_MIN (0)
2414#define CFG_AP_ENABLE_RANDOM_BSSID_MAX (1)
2415#define CFG_AP_ENABLE_RANDOM_BSSID_DEFAULT (0)
2416
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302417/*
2418 * <ini>
2419 * gEnableApProt - Enable/Disable AP protection
2420 * @Min: 0
2421 * @Max: 1
2422 * @Default: 1
2423 *
2424 * This ini is used to enable/disable AP protection
2425 *
2426 * Related: None.
2427 *
2428 * Supported Feature: SAP
2429 *
2430 * Usage: Internal/External
2431 *
2432 * </ini>
2433 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002434#define CFG_AP_ENABLE_PROTECTION_MODE_NAME "gEnableApProt"
2435#define CFG_AP_ENABLE_PROTECTION_MODE_MIN (0)
2436#define CFG_AP_ENABLE_PROTECTION_MODE_MAX (1)
2437#define CFG_AP_ENABLE_PROTECTION_MODE_DEFAULT (1)
2438
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302439/*
2440 * <ini>
2441 * gApProtection - Set AP protection parameter
2442 * @Min: 0x0
2443 * @Max: 0xFFFF
2444 * @Default: 0xBFFF
2445 *
2446 * This ini is used to set AP protection parameter
2447 * Bit map for CFG_AP_PROTECTION_MODE_DEFAULT
2448 * LOWER byte for associated stations
2449 * UPPER byte for overlapping stations
2450 * each byte will have the following info
2451 * bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8
2452 * OBSS RIFS LSIG_TXOP NON_GF HT20 FROM_11G FROM_11B FROM_11A
2453 * bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
2454 * OBSS RIFS LSIG_TXOP NON_GF HT_20 FROM_11G FROM_11B FROM_11A
2455 *
2456 * Related: None.
2457 *
2458 * Supported Feature: SAP
2459 *
2460 * Usage: Internal/External
2461 *
2462 * </ini>
2463 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002464#define CFG_AP_PROTECTION_MODE_NAME "gApProtection"
2465#define CFG_AP_PROTECTION_MODE_MIN (0x0)
2466#define CFG_AP_PROTECTION_MODE_MAX (0xFFFF)
2467#define CFG_AP_PROTECTION_MODE_DEFAULT (0xBFFF)
2468
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302469/*
2470 * <ini>
2471 * gEnableApOBSSProt - Enable/Disable AP OBSS protection
2472 * @Min: 0
2473 * @Max: 1
2474 * @Default: 0
2475 *
2476 * This ini is used to enable/disable AP OBSS protection
2477 *
2478 * Related: None.
2479 *
2480 * Supported Feature: SAP
2481 *
2482 * Usage: Internal/External
2483 *
2484 * </ini>
2485 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002486#define CFG_AP_OBSS_PROTECTION_MODE_NAME "gEnableApOBSSProt"
2487#define CFG_AP_OBSS_PROTECTION_MODE_MIN (0)
2488#define CFG_AP_OBSS_PROTECTION_MODE_MAX (1)
2489#define CFG_AP_OBSS_PROTECTION_MODE_DEFAULT (0)
2490
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302491/*
2492 * <ini>
2493 * gDisableIntraBssFwd - Disable intrs BSS Rx packets
2494 * @Min: 0
2495 * @Max: 1
2496 * @Default: 0
2497 *
2498 * This ini is used to disbale to forward Intra-BSS Rx packets when
2499 * ap_isolate=1 in hostapd.conf
2500 *
2501 * Related: None.
2502 *
2503 * Supported Feature: SAP
2504 *
2505 * Usage: Internal/External
2506 *
2507 * </ini>
2508 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002509#define CFG_AP_STA_SECURITY_SEPERATION_NAME "gDisableIntraBssFwd"
2510#define CFG_AP_STA_SECURITY_SEPERATION_MIN (0)
2511#define CFG_AP_STA_SECURITY_SEPERATION_MAX (1)
2512#define CFG_AP_STA_SECURITY_SEPERATION_DEFAULT (0)
2513
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302514/*
2515 * <ini>
2516 * gAPAutoShutOff - Auto shutdown when timer expires
2517 * @Min: 0
2518 * @Max: 4294967295UL
2519 * @Default: 0
2520 *
2521 * This ini is used to configure timer value to shutdown AP once timer expired
2522 *
2523 * Related: None.
2524 *
2525 * Supported Feature: SAP
2526 *
2527 * Usage: Internal/External
2528 *
2529 * </ini>
2530 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002531#define CFG_AP_AUTO_SHUT_OFF "gAPAutoShutOff"
2532#define CFG_AP_AUTO_SHUT_OFF_MIN (0)
2533#define CFG_AP_AUTO_SHUT_OFF_MAX (4294967295UL)
2534#define CFG_AP_AUTO_SHUT_OFF_DEFAULT (0)
2535
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302536/*
2537 * <ini>
2538 * gApKeepAlivePeriod - AP keep alive period
2539 * @Min: 1
2540 * @Max: 65535
2541 * @Default: 20
2542 *
2543 * This ini is used to set keep alive period of AP
2544 *
2545 * Related: None.
2546 *
2547 * Supported Feature: SAP
2548 *
2549 * Usage: Internal/External
2550 *
2551 * </ini>
2552 */
2553#define CFG_AP_KEEP_ALIVE_PERIOD_NAME "gApKeepAlivePeriod"
2554#define CFG_AP_KEEP_ALIVE_PERIOD_MIN WNI_CFG_AP_KEEP_ALIVE_TIMEOUT_STAMIN
2555#define CFG_AP_KEEP_ALIVE_PERIOD_MAX WNI_CFG_AP_KEEP_ALIVE_TIMEOUT_STAMAX
2556#define CFG_AP_KEEP_ALIVE_PERIOD_DEFAULT WNI_CFG_AP_KEEP_ALIVE_TIMEOUT_STADEF
2557
2558/*
2559 * <ini>
2560 * gApLinkMonitorPeriod - AP keep alive period
2561 * @Min: 3
2562 * @Max: 50
2563 * @Default: 10
2564 *
2565 * This ini is used to configure AP link monitor timeout value
2566 *
2567 * Related: None.
2568 *
2569 * Supported Feature: SAP
2570 *
2571 * Usage: Internal/External
2572 *
2573 * </ini>
2574 */
2575#define CFG_AP_LINK_MONITOR_PERIOD_NAME "gApLinkMonitorPeriod"
2576#define CFG_AP_LINK_MONITOR_PERIOD_MIN (3)
2577#define CFG_AP_LINK_MONITOR_PERIOD_MAX (50)
2578#define CFG_AP_LINK_MONITOR_PERIOD_DEFAULT (10)
2579
2580/*
2581 * <ini>
2582 * gBeaconInterval - Beacon interval for SoftAP
2583 * @Min: 0
2584 * @Max: 65535
2585 * @Default: 100
2586 *
2587 * This ini is used to set beacon interval for SoftAP
2588 *
2589 * Related: None.
2590 *
2591 * Supported Feature: SAP
2592 *
2593 * Usage: Internal/External
2594 *
2595 * </ini>
2596 */
2597#define CFG_BEACON_INTERVAL_NAME "gBeaconInterval"
2598#define CFG_BEACON_INTERVAL_MIN WNI_CFG_BEACON_INTERVAL_STAMIN
2599#define CFG_BEACON_INTERVAL_MAX WNI_CFG_BEACON_INTERVAL_STAMAX
2600#define CFG_BEACON_INTERVAL_DEFAULT WNI_CFG_BEACON_INTERVAL_STADEF
2601
2602/*
2603 * <ini>
2604 * gEnableVSTASupport - Enable/disable VSTA support
2605 * @Min: 0
2606 * @Max: 1
2607 * @Default: 0
2608 *
2609 * This ini is used to enable/disable VSTA based on max assoc limit.
2610 * Enable to have maximum 32 STA (P2P GC) on DUT as P2P GO or SAP
2611 *
2612 * Related: None.
2613 *
2614 * Supported Feature: SAP
2615 *
2616 * Usage: Internal/External
2617 *
2618 * </ini>
2619 */
2620#ifdef WLAN_SOFTAP_VSTA_FEATURE
2621#define CFG_VSTA_SUPPORT_ENABLE "gEnableVSTASupport"
2622#define CFG_VSTA_SUPPORT_ENABLE_MIN (0)
2623#define CFG_VSTA_SUPPORT_ENABLE_MAX (1)
2624#define CFG_VSTA_SUPPORT_ENABLE_DEFAULT (0)
2625#endif
2626
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002627#ifdef FEATURE_WLAN_AUTO_SHUTDOWN
2628#define CFG_WLAN_AUTO_SHUTDOWN "gWlanAutoShutdown"
2629#define CFG_WLAN_AUTO_SHUTDOWN_MIN (0)
2630#define CFG_WLAN_AUTO_SHUTDOWN_MAX (86400) /* Max 1 day timeout */
2631#define CFG_WLAN_AUTO_SHUTDOWN_DEFAULT (0)
2632#endif
2633
2634#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
Nitesh Shah03161d12016-12-06 18:30:12 +05302635/*
2636 * <ini>
2637 * gWlanMccToSccSwitchMode - Control SAP channel.
2638 * @Min: 0
2639 * @Max: 2
2640 * @Default: 0
2641 *
2642 * This ini is used to override SAP channel.
2643 * If gWlanMccToSccSwitchMode = 0: disabled.
2644 * If gWlanMccToSccSwitchMode = 1: override to SCC if channel overlap in
2645 * same band.
2646 * If gWlanMccToSccSwitchMode = 2: force to SCC in same band.
2647 *
2648 * Related: None.
2649 *
2650 * Supported Feature: Concurrency
2651 *
2652 * Usage: Internal/External
2653 *
2654 * </ini>
2655 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002656#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE "gWlanMccToSccSwitchMode"
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05302657#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE_MIN (QDF_MCC_TO_SCC_SWITCH_DISABLE)
Manishekar Chandrasekaran1db3abe2016-06-24 03:27:07 +05302658#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE_MAX \
2659 (QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNEL)
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05302660#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE_DEFAULT (QDF_MCC_TO_SCC_SWITCH_DISABLE)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002661#endif
2662
2663#define CFG_DISABLE_PACKET_FILTER "gDisablePacketFilter"
2664#define CFG_DISABLE_PACKET_FILTER_MIN (0)
2665#define CFG_DISABLE_PACKET_FILTER_MAX (0x1)
2666#define CFG_DISABLE_PACKET_FILTER_DEFAULT (0)
2667
2668#define CFG_ENABLE_LTE_COEX "gEnableLTECoex"
2669#define CFG_ENABLE_LTE_COEX_MIN (0)
2670#define CFG_ENABLE_LTE_COEX_MAX (1)
2671#define CFG_ENABLE_LTE_COEX_DEFAULT (0)
2672
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002673#define CFG_GO_KEEP_ALIVE_PERIOD_NAME "gGoKeepAlivePeriod"
2674#define CFG_GO_KEEP_ALIVE_PERIOD_MIN WNI_CFG_GO_KEEP_ALIVE_TIMEOUT_STAMIN
2675#define CFG_GO_KEEP_ALIVE_PERIOD_MAX WNI_CFG_GO_KEEP_ALIVE_TIMEOUT_STAMAX
2676#define CFG_GO_KEEP_ALIVE_PERIOD_DEFAULT WNI_CFG_GO_KEEP_ALIVE_TIMEOUT_STADEF
2677
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002678/* gGoLinkMonitorPeriod is period where link is idle and where
2679 * we send NULL frame
2680 */
2681#define CFG_GO_LINK_MONITOR_PERIOD_NAME "gGoLinkMonitorPeriod"
2682#define CFG_GO_LINK_MONITOR_PERIOD_MIN (3)
2683#define CFG_GO_LINK_MONITOR_PERIOD_MAX (50)
2684#define CFG_GO_LINK_MONITOR_PERIOD_DEFAULT (10)
2685
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002686#define CFG_VCC_RSSI_TRIGGER_NAME "gVccRssiTrigger"
2687#define CFG_VCC_RSSI_TRIGGER_MIN (0)
2688#define CFG_VCC_RSSI_TRIGGER_MAX (80)
2689#define CFG_VCC_RSSI_TRIGGER_DEFAULT (80)
2690
2691#define CFG_VCC_UL_MAC_LOSS_THRESH_NAME "gVccUlMacLossThresh"
2692#define CFG_VCC_UL_MAC_LOSS_THRESH_MIN (0)
2693#define CFG_VCC_UL_MAC_LOSS_THRESH_MAX (9)
2694#define CFG_VCC_UL_MAC_LOSS_THRESH_DEFAULT (9)
2695
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002696#define CFG_RETRY_LIMIT_ZERO_NAME "gRetryLimitZero"
2697#define CFG_RETRY_LIMIT_ZERO_MIN (0)
2698#define CFG_RETRY_LIMIT_ZERO_MAX (15)
2699#define CFG_RETRY_LIMIT_ZERO_DEFAULT (5)
2700
2701#define CFG_RETRY_LIMIT_ONE_NAME "gRetryLimitOne"
2702#define CFG_RETRY_LIMIT_ONE_MIN (0)
2703#define CFG_RETRY_LIMIT_ONE_MAX (15)
2704#define CFG_RETRY_LIMIT_ONE_DEFAULT (10)
2705
2706#define CFG_RETRY_LIMIT_TWO_NAME "gRetryLimitTwo"
2707#define CFG_RETRY_LIMIT_TWO_MIN (0)
2708#define CFG_RETRY_LIMIT_TWO_MAX (15)
2709#define CFG_RETRY_LIMIT_TWO_DEFAULT (15)
2710
2711#ifdef WLAN_AP_STA_CONCURRENCY
Nitesh Shah03161d12016-12-06 18:30:12 +05302712/*
2713 * <ini>
2714 * gPassiveMaxChannelTimeConc - Maximum passive scan time in milliseconds.
2715 * @Min: 0
2716 * @Max: 10000
2717 * @Default: 110
2718 *
2719 * This ini is used to set maximum passive scan time in STA+SAP concurrent
2720 * mode.
2721 *
2722 * Related: None.
2723 *
2724 * Supported Feature: Concurrency
2725 *
2726 * Usage: Internal/External
2727 *
2728 * </ini>
2729 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002730#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_NAME "gPassiveMaxChannelTimeConc"
2731#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_MIN (0)
2732#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_MAX (10000)
2733#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_DEFAULT (110)
2734
Nitesh Shah03161d12016-12-06 18:30:12 +05302735/*
2736 * <ini>
2737 * gPassiveMinChannelTimeConc - Minimum passive scan time in milliseconds.
2738 * @Min: 0
2739 * @Max: 10000
2740 * @Default: 60
2741 *
2742 * This ini is used to set minimum passive scan time in STA+SAP concurrent
2743 * mode.
2744 *
2745 * Related: None.
2746 *
2747 * Supported Feature: Concurrency
2748 *
2749 * Usage: Internal/External
2750 *
2751 * </ini>
2752 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002753#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_NAME "gPassiveMinChannelTimeConc"
2754#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_MIN (0)
2755#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_MAX (10000)
2756#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_DEFAULT (60)
2757
Nitesh Shah03161d12016-12-06 18:30:12 +05302758/*
2759 * <ini>
2760 * gActiveMaxChannelTimeConc - Maximum active scan time in milliseconds.
2761 * @Min: 0
2762 * @Max: 10000
2763 * @Default: 40
2764 *
2765 * This ini is used to set maximum active scan time in STA+SAP concurrent
2766 * mode.
2767 *
2768 * Related: None.
2769 *
2770 * Supported Feature: Concurrency
2771 *
2772 * Usage: Internal/External
2773 *
2774 * </ini>
2775 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002776#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_NAME "gActiveMaxChannelTimeConc"
2777#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_MIN (0)
2778#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_MAX (10000)
2779#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_DEFAULT (40)
2780
Nitesh Shah03161d12016-12-06 18:30:12 +05302781/*
2782 * <ini>
2783 * gActiveMinChannelTimeConc - Minimum active scan time in milliseconds..
2784 * @Min: 0
2785 * @Max: 10000
2786 * @Default: 20
2787 *
2788 * This ini is used to set minimum active scan time in STA+SAP concurrent
2789 * mode.
2790 *
2791 * Related: None.
2792 *
2793 * Supported Feature: Concurrency
2794 *
2795 * Usage: Internal/External
2796 *
2797 * </ini>
2798 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002799#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_NAME "gActiveMinChannelTimeConc"
2800#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_MIN (0)
2801#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_MAX (10000)
2802#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_DEFAULT (20)
2803
Nitesh Shah03161d12016-12-06 18:30:12 +05302804/*
2805 * <ini>
2806 * gRestTimeConc - Rest time before moving to a new channel to scan.
2807 * @Min: 0
2808 * @Max: 10000
2809 * @Default: 100
2810 *
2811 * This ini is used to configure rest time.
2812 *
2813 * Related: None.
2814 *
2815 * Supported Feature: Concurrency
2816 *
2817 * Usage: Internal/External
2818 *
2819 * </ini>
2820 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002821#define CFG_REST_TIME_CONC_NAME "gRestTimeConc"
2822#define CFG_REST_TIME_CONC_MIN (0)
2823#define CFG_REST_TIME_CONC_MAX (10000)
2824#define CFG_REST_TIME_CONC_DEFAULT (100)
2825
Nitesh Shah03161d12016-12-06 18:30:12 +05302826/*
2827 * <ini>
2828 * gMinRestTimeConc - Mininum time spent on home channel before moving to a
2829 * new channel to scan.
2830 * @Min: 0
2831 * @Max: 50
2832 * @Default: 50
2833 *
2834 * This ini is used to configure minimum time spent on home channel before
2835 * moving to a new channel to scan.
2836 *
2837 * Related: None.
2838 *
2839 * Supported Feature: Concurrency
2840 *
2841 * Usage: Internal/External
2842 *
2843 * </ini>
2844 */
Agrawal Ashish17bb3902016-05-05 13:29:40 +05302845#define CFG_MIN_REST_TIME_NAME "gMinRestTimeConc"
2846#define CFG_MIN_REST_TIME_MIN (0)
2847#define CFG_MIN_REST_TIME_MAX (50)
2848#define CFG_MIN_REST_TIME_DEFAULT (50)
2849
Nitesh Shah03161d12016-12-06 18:30:12 +05302850/*
2851 * <ini>
2852 * gIdleTimeConc - Data inactivity time in msec.
2853 * @Min: 0
2854 * @Max: 25
2855 * @Default: 25
2856 *
2857 * This ini is used to configure data inactivity time in msec on bss channel
2858 * that will be used by scan engine in firmware.
2859 * For example if this value is 25ms then firmware will check for data
2860 * inactivity every 25ms till gRestTimeConc is reached.
2861 * If inactive then scan engine will move from home channel to scan the next
2862 * frequency.
2863 *
2864 * Related: None.
2865 *
2866 * Supported Feature: Concurrency
2867 *
2868 * Usage: Internal/External
2869 *
2870 * </ini>
Agrawal Ashish17bb3902016-05-05 13:29:40 +05302871 */
2872#define CFG_IDLE_TIME_NAME "gIdleTimeConc"
2873#define CFG_IDLE_TIME_MIN (0)
2874#define CFG_IDLE_TIME_MAX (25)
2875#define CFG_IDLE_TIME_DEFAULT (25)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002876#endif
2877
2878#define CFG_MAX_PS_POLL_NAME "gMaxPsPoll"
2879#define CFG_MAX_PS_POLL_MIN WNI_CFG_MAX_PS_POLL_STAMIN
2880#define CFG_MAX_PS_POLL_MAX WNI_CFG_MAX_PS_POLL_STAMAX
2881#define CFG_MAX_PS_POLL_DEFAULT WNI_CFG_MAX_PS_POLL_STADEF
2882
2883#define CFG_MAX_TX_POWER_NAME "gTxPowerCap"
2884#define CFG_MAX_TX_POWER_MIN WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMIN
2885#define CFG_MAX_TX_POWER_MAX WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMAX
2886/* Not to use CFG default because if no registry setting, this is ignored by SME. */
2887#define CFG_MAX_TX_POWER_DEFAULT WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMAX
2888
Padma, Santhosh Kumar29df3622016-08-16 19:15:16 +05302889/* This ini controls driver to honor/dishonor power constraint from AP */
2890#define CFG_TX_POWER_CTRL_NAME "gAllowTPCfromAP"
2891#define CFG_TX_POWER_CTRL_DEFAULT (1)
2892#define CFG_TX_POWER_CTRL_MIN (0)
2893#define CFG_TX_POWER_CTRL_MAX (1)
2894
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302895/*
2896 * <ini>
2897 * gLowGainOverride - Indicates Low Gain Override
2898 * @Min: 0
2899 * @Max: 1
2900 * @Default: 0
2901 *
2902 * This ini is used to set default Low Gain Override
2903 *
2904 * Related: None
2905 *
2906 * Supported Feature: STA
2907 *
2908 * Usage: Internal/External
2909 *
2910 * </ini>
2911 */
2912
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002913#define CFG_LOW_GAIN_OVERRIDE_NAME "gLowGainOverride"
2914#define CFG_LOW_GAIN_OVERRIDE_MIN WNI_CFG_LOW_GAIN_OVERRIDE_STAMIN
2915#define CFG_LOW_GAIN_OVERRIDE_MAX WNI_CFG_LOW_GAIN_OVERRIDE_STAMAX
2916#define CFG_LOW_GAIN_OVERRIDE_DEFAULT WNI_CFG_LOW_GAIN_OVERRIDE_STADEF
2917
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302918/*
2919 * <ini>
2920 * gRssiFilterPeriod - Enable gRssi Filter for RSSI Monitoring
2921 * @Min: STAMIN
2922 * @Max: STAMAX
2923 * @Default: STADEF
2924 *
2925 * This ini is used to Increased this value for Non-ESE AP this is cause FW
2926 * RSSI Monitoring the consumer of this value is ON by default. So to impact
2927 * power numbers we are setting this to a high value.
2928 *
2929 * Related: None
2930 *
2931 * Supported Feature: STA
2932 *
2933 * Usage: Internal/External
2934 *
2935 * </ini>
2936 */
2937
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002938#define CFG_RSSI_FILTER_PERIOD_NAME "gRssiFilterPeriod"
2939#define CFG_RSSI_FILTER_PERIOD_MIN WNI_CFG_RSSI_FILTER_PERIOD_STAMIN
2940#define CFG_RSSI_FILTER_PERIOD_MAX WNI_CFG_RSSI_FILTER_PERIOD_STAMAX
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002941#define CFG_RSSI_FILTER_PERIOD_DEFAULT WNI_CFG_RSSI_FILTER_PERIOD_STADEF
2942
2943#define CFG_IGNORE_DTIM_NAME "gIgnoreDtim"
2944#define CFG_IGNORE_DTIM_MIN WNI_CFG_IGNORE_DTIM_STAMIN
2945#define CFG_IGNORE_DTIM_MAX WNI_CFG_IGNORE_DTIM_STAMAX
2946#define CFG_IGNORE_DTIM_DEFAULT WNI_CFG_IGNORE_DTIM_STADEF
2947
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302948/*
2949 * <ini>
2950 * gMaxLIModulatedDTIM - Set MaxLIModulate Dtim
2951 * @Min: 1
2952 * @Max: 10
2953 * @Default: 10
2954 *
2955 * This ini is used to set default MaxLIModulatedDTIM
2956 *
2957 * Related: None
2958 *
2959 * Supported Feature: STA
2960 *
2961 * Usage: Internal/External
2962 *
2963 * </ini>
2964 */
2965
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002966#define CFG_MAX_LI_MODULATED_DTIM_NAME "gMaxLIModulatedDTIM"
2967#define CFG_MAX_LI_MODULATED_DTIM_MIN (1)
2968#define CFG_MAX_LI_MODULATED_DTIM_MAX (10)
2969#define CFG_MAX_LI_MODULATED_DTIM_DEFAULT (10)
2970
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302971/*
2972 * <ini>
2973 * gEnableFWHeartBeatMonitoring - Enable FWHeartBeat Monitor
2974 * @Min: 0
2975 * @Max: 1
2976 * @Default: 1
2977 *
2978 * This ini is used to set default FWHeartBeat Monitor
2979 *
2980 * Related: None
2981 *
2982 * Supported Feature: STA
2983 *
2984 * Usage: Internal/External
2985 *
2986 * </ini>
2987 */
2988
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002989#define CFG_FW_HEART_BEAT_MONITORING_NAME "gEnableFWHeartBeatMonitoring"
2990#define CFG_FW_HEART_BEAT_MONITORING_MIN (0)
2991#define CFG_FW_HEART_BEAT_MONITORING_MAX (1)
2992#define CFG_FW_HEART_BEAT_MONITORING_DEFAULT (1)
2993
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302994/*
2995 * <ini>
2996 * gEnableFWBeaconFiltering - Enable FWBeacon Filter
2997 * @Min: 0
2998 * @Max: 1
2999 * @Default: 1
3000 *
3001 * This ini is used to set default FWBeacon Filter
3002 *
3003 * Related: None
3004 *
3005 * Supported Feature: STA
3006 *
3007 * Usage: Internal/External
3008 *
3009 * </ini>
3010 */
3011
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003012#define CFG_FW_BEACON_FILTERING_NAME "gEnableFWBeaconFiltering"
3013#define CFG_FW_BEACON_FILTERING_MIN (0)
3014#define CFG_FW_BEACON_FILTERING_MAX (1)
3015#define CFG_FW_BEACON_FILTERING_DEFAULT (1)
3016
Sen, Devendra9ca8c432017-02-23 15:10:26 +05303017/*
3018 * <ini>
3019 * gEnableFWRssiMonitoring - Enable FWRssi Monitor
3020 * @Min: 0
3021 * @Max: 1
3022 * @Default: 1
3023 *
3024 * This ini is used to set default FWRssi Monitor
3025 *
3026 * Related: None
3027 *
3028 * Supported Feature: STA
3029 *
3030 * Usage: Internal/External
3031 *
3032 * </ini>
3033 */
3034
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003035#define CFG_FW_RSSI_MONITORING_NAME "gEnableFWRssiMonitoring"
3036#define CFG_FW_RSSI_MONITORING_MIN (0)
3037#define CFG_FW_RSSI_MONITORING_MAX (1)
3038#define CFG_FW_RSSI_MONITORING_DEFAULT (1)
3039
Nitesh Shah03161d12016-12-06 18:30:12 +05303040/*
3041 * <ini>
3042 * gFWMccRtsCtsProtection - RTS-CTS protection in MCC.
3043 * @Min: 0
3044 * @Max: 1
3045 * @Default: 0
3046 *
3047 * This ini is used to enable/disable use of long duration RTS-CTS protection
3048 * when SAP goes off channel in MCC mode.
3049 *
3050 * Related: None.
3051 *
3052 * Supported Feature: Concurrency
3053 *
3054 * Usage: Internal/External
3055 *
3056 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003057 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05303058
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003059#define CFG_FW_MCC_RTS_CTS_PROT_NAME "gFWMccRtsCtsProtection"
3060#define CFG_FW_MCC_RTS_CTS_PROT_MIN (0)
3061#define CFG_FW_MCC_RTS_CTS_PROT_MAX (1)
3062#define CFG_FW_MCC_RTS_CTS_PROT_DEFAULT (0)
3063
Nitesh Shah03161d12016-12-06 18:30:12 +05303064/*
3065 * <ini>
3066 * gFWMccBCastProbeResponse - Broadcast Probe Response in MCC.
3067 * @Min: 0
3068 * @Max: 1
3069 * @Default: 0
3070 *
3071 * This ini is used to enable/disable use of broadcast probe response to
3072 * increase the detectability of SAP in MCC mode.
3073 *
3074 * Related: None.
3075 *
3076 * Supported Feature: Concurrency
3077 *
3078 * Usage: Internal/External
3079 *
3080 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003081 */
3082#define CFG_FW_MCC_BCAST_PROB_RESP_NAME "gFWMccBCastProbeResponse"
3083#define CFG_FW_MCC_BCAST_PROB_RESP_MIN (0)
3084#define CFG_FW_MCC_BCAST_PROB_RESP_MAX (1)
3085#define CFG_FW_MCC_BCAST_PROB_RESP_DEFAULT (0)
3086
Mukul Sharmaed92f2f2017-04-20 00:06:28 +05303087/*
3088 * <ini>
3089 * gDataInactivityTimeout - Data activity timeout for non wow mode.
3090 * @Min: 1
3091 * @Max: 255
3092 * @Default: 200
3093 *
3094 * This ini is used to set data inactivity timeout in non wow mode.
3095 *
3096 * Supported Feature: inactivity timeout in non wow mode
3097 *
3098 * Usage: External
3099 *
3100 * </ini>
3101 */
3102
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003103#define CFG_DATA_INACTIVITY_TIMEOUT_NAME "gDataInactivityTimeout"
3104#define CFG_DATA_INACTIVITY_TIMEOUT_MIN (1)
3105#define CFG_DATA_INACTIVITY_TIMEOUT_MAX (255)
Jeff Johnson9c9be712016-09-02 14:02:31 -07003106#define CFG_DATA_INACTIVITY_TIMEOUT_DEFAULT (200)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003107
Sen, Devendra9ca8c432017-02-23 15:10:26 +05303108/*
3109 * <ini>
Mukul Sharmaed92f2f2017-04-20 00:06:28 +05303110 * g_wow_data_inactivity_timeout - Data activity timeout in wow mode.
3111 * @Min: 1
3112 * @Max: 255
3113 * @Default: 50
3114 *
3115 * This ini is used to set data inactivity timeout in wow mode.
3116 *
3117 * Supported Feature: inactivity timeout in wow mode
3118 *
3119 * Usage: External
3120 *
3121 * </ini>
3122 */
3123#define CFG_WOW_DATA_INACTIVITY_TIMEOUT_NAME "g_wow_data_inactivity_timeout"
3124#define CFG_WOW_DATA_INACTIVITY_TIMEOUT_MIN (1)
3125#define CFG_WOW_DATA_INACTIVITY_TIMEOUT_MAX (255)
3126#define CFG_WOW_DATA_INACTIVITY_TIMEOUT_DEFAULT (50)
3127
3128/*
3129 * <ini>
Sen, Devendra9ca8c432017-02-23 15:10:26 +05303130 * rfSettlingTimeUs - Settle the TimeUs
3131 * @Min: 0
3132 * @Max: 60000
3133 * @Default: 1500
3134 *
3135 * This ini is used to set default TimeUs
3136 *
3137 * Related: None
3138 *
3139 * Supported Feature: STA
3140 *
3141 * Usage: Internal/External
3142 *
3143 * </ini>
3144 */
3145
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003146#define CFG_RF_SETTLING_TIME_CLK_NAME "rfSettlingTimeUs"
3147#define CFG_RF_SETTLING_TIME_CLK_MIN (0)
3148#define CFG_RF_SETTLING_TIME_CLK_MAX (60000)
3149#define CFG_RF_SETTLING_TIME_CLK_DEFAULT (1500)
3150
Sen, Devendra9ca8c432017-02-23 15:10:26 +05303151/*
3152 * <ini>
3153 * gStaKeepAlivePeriod - Sends NULL frame to AP periodically in
3154 * seconds to notify STA's existence
3155 * @Min: 0
3156 * @Max: 65535
3157 * @Default: 30
3158 *
3159 * This ini is used to send default NULL frame to AP
3160 *
3161 * Related: None
3162 *
3163 * Supported Feature: STA
3164 *
3165 * Usage: Internal/External
3166 *
3167 * </ini>
3168 */
3169
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003170#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_NAME "gStaKeepAlivePeriod"
3171#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_MIN (0)
3172#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_MAX (65535)
Dustin Brownf5108872017-02-01 10:51:50 -08003173#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_DEFAULT (90)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003174
Dustin Brownb6b0f182017-03-08 13:08:27 -08003175/**
3176 * enum station_keepalive_method - available keepalive methods for stations
3177 * @HDD_STA_KEEPALIVE_NULL_DATA: null data packet
3178 * @HDD_STA_KEEPALIVE_GRAT_ARP: gratuitous ARP packet
3179 * @HDD_STA_KEEPALIVE_COUNT: number of method options available
3180 */
3181enum station_keepalive_method {
3182 HDD_STA_KEEPALIVE_NULL_DATA,
3183 HDD_STA_KEEPALIVE_GRAT_ARP,
3184 /* keep at the end */
3185 HDD_STA_KEEPALIVE_COUNT
3186};
3187
3188/*
3189 * <ini>
3190 * gStaKeepAliveMethod - Which keepalive method to use
3191 * @Min: 0
3192 * @Max: 1
3193 * @Default: 1
3194 *
3195 * This ini determines which keepalive method to use for station interfaces
3196 * 1) Use null data packets
3197 * 2) Use gratuitous ARP packets
3198 *
3199 * Related: gStaKeepAlivePeriod, gApKeepAlivePeriod, gGoKeepAlivePeriod
3200 *
3201 * Supported Feature: STA, Keepalive
3202 *
3203 * Usage: Internal/External
3204 *
3205 * </ini>
3206 */
3207#define CFG_STA_KEEPALIVE_METHOD_NAME "gStaKeepAliveMethod"
3208#define CFG_STA_KEEPALIVE_METHOD_MIN (HDD_STA_KEEPALIVE_NULL_DATA)
3209#define CFG_STA_KEEPALIVE_METHOD_MAX (HDD_STA_KEEPALIVE_COUNT - 1)
3210#define CFG_STA_KEEPALIVE_METHOD_DEFAULT (HDD_STA_KEEPALIVE_GRAT_ARP)
3211
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003212/* WMM configuration */
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303213/*
3214 * <ini>
3215 * WmmIsEnabled - Enable WMM feature
3216 * @Min: 0
3217 * @Max: 2
3218 * @Default: 0
3219 *
3220 * This ini is used to enable/disable WMM.
3221 *
3222 * Related: None.
3223 *
3224 * Supported Feature: WMM
3225 *
3226 * Usage: Internal/External
3227 *
3228 * </ini>
3229 */
3230#define CFG_QOS_WMM_MODE_NAME "WmmIsEnabled"
3231#define CFG_QOS_WMM_MODE_MIN (0)
3232#define CFG_QOS_WMM_MODE_MAX (2) /* HDD_WMM_NO_QOS */
3233#define CFG_QOS_WMM_MODE_DEFAULT (0) /* HDD_WMM_AUTO */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003234
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303235/*
3236 * <ini>
3237 * 80211eIsEnabled - Enable 802.11e feature
3238 * @Min: 0
3239 * @Max: 1
3240 * @Default: 0
3241 *
3242 * This ini is used to enable/disable 802.11e.
3243 *
3244 * Related: None.
3245 *
3246 * Supported Feature: 802.11e
3247 *
3248 * Usage: Internal/External
3249 *
3250 * </ini>
3251 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003252#define CFG_QOS_WMM_80211E_ENABLED_NAME "80211eIsEnabled"
3253#define CFG_QOS_WMM_80211E_ENABLED_MIN (0)
3254#define CFG_QOS_WMM_80211E_ENABLED_MAX (1)
3255#define CFG_QOS_WMM_80211E_ENABLED_DEFAULT (0)
3256
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303257/*
3258 * <ini>
3259 * UapsdMask - To setup U-APSD mask for ACs
3260 * @Min: 0x00
3261 * @Max: 0xFF
3262 * @Default: 0x00
3263 *
3264 * This ini is used to setup U-APSD mask for ACs.
3265 *
3266 * Related: None.
3267 *
3268 * Supported Feature: WMM
3269 *
3270 * Usage: Internal/External
3271 *
3272 * </ini>
3273 */
3274#define CFG_QOS_WMM_UAPSD_MASK_NAME "UapsdMask"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003275#define CFG_QOS_WMM_UAPSD_MASK_MIN (0x00)
3276#define CFG_QOS_WMM_UAPSD_MASK_MAX (0xFF)
3277#define CFG_QOS_WMM_UAPSD_MASK_DEFAULT (0x00)
3278
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303279/*
3280 * <ini>
3281 * ImplicitQosIsEnabled - Enableimplicit QOS
3282 * @Min: 0
3283 * @Max: 1
3284 * @Default: 0
3285 *
3286 * This ini is used to enable/disable implicit QOS.
3287 *
3288 * Related: None.
3289 *
3290 * Supported Feature: WMM
3291 *
3292 * Usage: Internal/External
3293 *
3294 * </ini>
3295 */
3296#define CFG_QOS_IMPLICIT_SETUP_ENABLED_NAME "ImplicitQosIsEnabled"
3297#define CFG_QOS_IMPLICIT_SETUP_ENABLED_MIN (0)
3298#define CFG_QOS_IMPLICIT_SETUP_ENABLED_MAX (1)
3299#define CFG_QOS_IMPLICIT_SETUP_ENABLED_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003300
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303301/*
3302 * <ini>
3303 * InfraUapsdVoSrvIntv - Set Uapsd service interval for voice
3304 * @Min: 0
3305 * @Max: 4294967295UL
3306 * @Default: 20
3307 *
3308 * This ini is used to set Uapsd service interval for voice.
3309 *
3310 * Related: None.
3311 *
3312 * Supported Feature: WMM
3313 *
3314 * Usage: Internal/External
3315 *
3316 * </ini>
3317 */
3318#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_NAME "InfraUapsdVoSrvIntv"
3319#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_MIN (0)
3320#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_MAX (4294967295UL)
3321#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_DEFAULT (20)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003322
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303323/*
3324 * <ini>
3325 * InfraUapsdVoSuspIntv - Set Uapsd suspension interval for voice
3326 * @Min: 0
3327 * @Max: 4294967295UL
3328 * @Default: 2000
3329 *
3330 * This ini is used to set Uapsd suspension interval for voice.
3331 *
3332 * Related: None.
3333 *
3334 * Supported Feature: WMM
3335 *
3336 * Usage: Internal/External
3337 *
3338 * </ini>
3339 */
3340#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_NAME "InfraUapsdVoSuspIntv"
3341#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_MIN (0)
3342#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_MAX (4294967295UL)
3343#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_DEFAULT (2000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003344
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303345/*
3346 * <ini>
3347 * InfraUapsdViSrvIntv - Set Uapsd service interval for video
3348 * @Min: 0
3349 * @Max: 4294967295UL
3350 * @Default: 300
3351 *
3352 * This ini is used to set Uapsd service interval for video.
3353 *
3354 * Related: None.
3355 *
3356 * Supported Feature: WMM
3357 *
3358 * Usage: Internal/External
3359 *
3360 * </ini>
3361 */
3362#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_NAME "InfraUapsdViSrvIntv"
3363#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_MIN (0)
3364#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_MAX (4294967295UL)
3365#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_DEFAULT (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003366
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303367/*
3368 * <ini>
3369 * InfraUapsdViSuspIntv - Set Uapsd suspension interval for video
3370 * @Min: 0
3371 * @Max: 4294967295UL
3372 * @Default: 2000
3373 *
3374 * This ini is used to set Uapsd suspension interval for video
3375 *
3376 * Related: None.
3377 *
3378 * Supported Feature: WMM
3379 *
3380 * Usage: Internal/External
3381 *
3382 * </ini>
3383 */
3384#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_NAME "InfraUapsdViSuspIntv"
3385#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_MIN (0)
3386#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_MAX (4294967295UL)
3387#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_DEFAULT (2000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003388
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303389/*
3390 * <ini>
3391 * InfraUapsdBeSrvIntv - Set Uapsd service interval for BE
3392 * @Min: 0
3393 * @Max: 4294967295UL
3394 * @Default: 300
3395 *
3396 * This ini is used to set Uapsd service interval for BE
3397 *
3398 * Related: None.
3399 *
3400 * Supported Feature: WMM
3401 *
3402 * Usage: Internal/External
3403 *
3404 * </ini>
3405 */
3406#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_NAME "InfraUapsdBeSrvIntv"
3407#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_MIN (0)
3408#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_MAX (4294967295UL)
3409#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_DEFAULT (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003410
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303411/*
3412 * <ini>
3413 * InfraUapsdBeSuspIntv - Set Uapsd suspension interval for BE
3414 * @Min: 0
3415 * @Max: 4294967295UL
3416 * @Default: 2000
3417 *
3418 * This ini is used to set Uapsd suspension interval for BE
3419 *
3420 * Related: None.
3421 *
3422 * Supported Feature: WMM
3423 *
3424 * Usage: Internal/External
3425 *
3426 * </ini>
3427 */
3428#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_NAME "InfraUapsdBeSuspIntv"
3429#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_MIN (0)
3430#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_MAX (4294967295UL)
3431#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_DEFAULT (2000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003432
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303433/*
3434 * <ini>
3435 * InfraUapsdBkSrvIntv - Set Uapsd service interval for BK
3436 * @Min: 0
3437 * @Max: 4294967295UL
3438 * @Default: 300
3439 *
3440 * This ini is used to set Uapsd service interval for BK
3441 *
3442 * Related: None.
3443 *
3444 * Supported Feature: WMM
3445 *
3446 * Usage: Internal/External
3447 *
3448 * </ini>
3449 */
3450#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_NAME "InfraUapsdBkSrvIntv"
3451#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_MIN (0)
3452#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_MAX (4294967295UL)
3453#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_DEFAULT (300)
3454
3455/*
3456 * <ini>
3457 * InfraUapsdBkSuspIntv - Set Uapsd suspension interval for BK
3458 * @Min: 0
3459 * @Max: 4294967295UL
3460 * @Default: 2000
3461 *
3462 * This ini is used to set Uapsd suspension interval for BK
3463 *
3464 * Related: None.
3465 *
3466 * Supported Feature: WMM
3467 *
3468 * Usage: Internal/External
3469 *
3470 * </ini>
3471 */
3472#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_NAME "InfraUapsdBkSuspIntv"
3473#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_MIN (0)
3474#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_MAX (4294967295UL)
3475#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_DEFAULT (2000)
3476
3477/* default TSPEC parameters for AC_VO */
3478/*
3479 * <ini>
3480 * InfraDirAcVo - Set TSPEC direction for VO
3481 * @Min: 0
3482 * @Max: 3
3483 * @Default: 3
3484 *
3485 * This ini is used to set TSPEC direction for VO
3486 *
3487 * Related: None.
3488 *
3489 * Supported Feature: WMM
3490 *
3491 * Usage: Internal/External
3492 *
3493 * </ini>
3494 */
3495#define CFG_QOS_WMM_INFRA_DIR_AC_VO_NAME "InfraDirAcVo"
3496#define CFG_QOS_WMM_INFRA_DIR_AC_VO_MIN (0)
3497#define CFG_QOS_WMM_INFRA_DIR_AC_VO_MAX (3)
3498#define CFG_QOS_WMM_INFRA_DIR_AC_VO_DEFAULT (3) /*WLAN_QCT_CUST_WMM_TSDIR_BOTH*/
3499
3500/*
3501 * <ini>
3502 * InfraNomMsduSizeAcVo - Set normal MSDU size for VO
3503 * @Min: 0x0
3504 * @Max: 0xFFFF
3505 * @Default: 0x80D0
3506 *
3507 * This ini is used to set normal MSDU size for VO
3508 *
3509 * Related: None.
3510 *
3511 * Supported Feature: WMM
3512 *
3513 * Usage: Internal/External
3514 *
3515 * </ini>
3516 */
3517#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_NAME "InfraNomMsduSizeAcVo"
3518#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_MIN (0x0)
3519#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_MAX (0xFFFF)
3520#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_DEFAULT (0x80D0)
3521
3522/*
3523 * <ini>
3524 * InfraMeanDataRateAcVo - Set mean data rate for VO
3525 * @Min: 0x0
3526 * @Max: 0xFFFFFFFF
3527 * @Default: 0x14500
3528 *
3529 * This ini is used to set mean data rate for VO
3530 *
3531 * Related: None.
3532 *
3533 * Supported Feature: WMM
3534 *
3535 * Usage: Internal/External
3536 *
3537 * </ini>
3538 */
3539#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_NAME "InfraMeanDataRateAcVo"
3540#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_MIN (0x0)
3541#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_MAX (0xFFFFFFFF)
3542#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_DEFAULT (0x14500)
3543
3544/*
3545 * <ini>
3546 * InfraMinPhyRateAcVo - Set min PHY rate for VO
3547 * @Min: 0x0
3548 * @Max: 0xFFFFFFFF
3549 * @Default: 0x5B8D80
3550 *
3551 * This ini is used to set min PHY rate for VO
3552 *
3553 * Related: None.
3554 *
3555 * Supported Feature: WMM
3556 *
3557 * Usage: Internal/External
3558 *
3559 * </ini>
3560 */
3561#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_NAME "InfraMinPhyRateAcVo"
3562#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_MIN (0x0)
3563#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_MAX (0xFFFFFFFF)
3564#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_DEFAULT (0x5B8D80)
3565/*
3566 * <ini>
3567 * InfraSbaAcVo - Set surplus bandwidth allowance for VO
3568 * @Min: 0x2001
3569 * @Max: 0xFFFF
3570 * @Default: 0x2001
3571 *
3572 * This ini is used to set surplus bandwidth allowance for VO
3573 *
3574 * Related: None.
3575 *
3576 * Supported Feature: WMM
3577 *
3578 * Usage: Internal/External
3579 *
3580 * </ini>
3581 */
3582 #define CFG_QOS_WMM_INFRA_SBA_AC_VO_NAME "InfraSbaAcVo"
3583 #define CFG_QOS_WMM_INFRA_SBA_AC_VO_MIN (0x2001)
3584 #define CFG_QOS_WMM_INFRA_SBA_AC_VO_MAX (0xFFFF)
3585 #define CFG_QOS_WMM_INFRA_SBA_AC_VO_DEFAULT (0x2001)
3586
3587 /* default TSPEC parameters for AC_VI */
3588/*
3589 * <ini>
3590 * InfraDirAcVi - Set TSPEC direction for VI
3591 * @Min: 0
3592 * @Max: 3
3593 * @Default: 3
3594 *
3595 * This ini is used to set TSPEC direction for VI
3596 *
3597 * Related: None.
3598 *
3599 * Supported Feature: WMM
3600 *
3601 * Usage: Internal/External
3602 *
3603 * </ini>
3604 */
3605#define CFG_QOS_WMM_INFRA_DIR_AC_VI_NAME "InfraDirAcVi"
3606#define CFG_QOS_WMM_INFRA_DIR_AC_VI_MIN (0)
3607#define CFG_QOS_WMM_INFRA_DIR_AC_VI_MAX (3)
3608#define CFG_QOS_WMM_INFRA_DIR_AC_VI_DEFAULT (3) /*WLAN_QCT_CUST_WMM_TSDIR_BOTH*/
3609
3610/*
3611 * <ini>
3612 * InfraNomMsduSizeAcVi - Set normal MSDU size for VI
3613 * @Min: 0x0
3614 * @Max: 0xFFFF
3615 * @Default: 0x85DC
3616 *
3617 * This ini is used to set normal MSDU size for VI
3618 *
3619 * Related: None.
3620 *
3621 * Supported Feature: WMM
3622 *
3623 * Usage: Internal/External
3624 *
3625 * </ini>
3626 */
3627#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_NAME "InfraNomMsduSizeAcVi"
3628#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_MIN (0x0)
3629#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_MAX (0xFFFF)
3630#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_DEFAULT (0x85DC)
3631
3632/*
3633 * <ini>
3634 * InfraMeanDataRateAcVi - Set mean data rate for VI
3635 * @Min: 0x0
3636 * @Max: 0xFFFFFFFF
3637 * @Default: 0x57E40
3638 *
3639 * This ini is used to set mean data rate for VI
3640 *
3641 * Related: None.
3642 *
3643 * Supported Feature: WMM
3644 *
3645 * Usage: Internal/External
3646 *
3647 * </ini>
3648 */
3649#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_NAME "InfraMeanDataRateAcVi"
3650#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_MIN (0x0)
3651#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_MAX (0xFFFFFFFF)
3652#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_DEFAULT (0x57E40)
3653
3654/*
3655 * <ini>
3656 * iInfraMinPhyRateAcVi - Set min PHY rate for VI
3657 * @Min: 0x0
3658 * @Max: 0xFFFFFFFF
3659 * @Default: 0x5B8D80
3660 *
3661 * This ini is used to set min PHY rate for VI
3662 *
3663 * Related: None.
3664 *
3665 * Supported Feature: WMM
3666 *
3667 * Usage: Internal/External
3668 *
3669 * </ini>
3670 */
3671#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_NAME "InfraMinPhyRateAcVi"
3672#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_MIN (0x0)
3673#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_MAX (0xFFFFFFFF)
3674#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_DEFAULT (0x5B8D80)
3675
3676/*
3677 * <ini>
3678 * InfraSbaAcVi - Set surplus bandwidth allowance for VI
3679 * @Min: 0x2001
3680 * @Max: 0xFFFF
3681 * @Default: 0x2001
3682 *
3683 * This ini is used to set surplus bandwidth allowance for VI
3684 *
3685 * Related: None.
3686 *
3687 * Supported Feature: WMM
3688 *
3689 * Usage: Internal/External
3690 *
3691 * </ini>
3692 */
3693 #define CFG_QOS_WMM_INFRA_SBA_AC_VI_NAME "InfraSbaAcVi"
3694 #define CFG_QOS_WMM_INFRA_SBA_AC_VI_MIN (0x2001)
3695 #define CFG_QOS_WMM_INFRA_SBA_AC_VI_MAX (0xFFFF)
3696 #define CFG_QOS_WMM_INFRA_SBA_AC_VI_DEFAULT (0x2001)
3697
3698 /* default TSPEC parameters for AC_BE*/
3699/*
3700 * <ini>
3701 * InfraDirAcBe - Set TSPEC direction for BE
3702 * @Min: 0
3703 * @Max: 3
3704 * @Default: 3
3705 *
3706 * This ini is used to set TSPEC direction for BE
3707 *
3708 * Related: None.
3709 *
3710 * Supported Feature: WMM
3711 *
3712 * Usage: Internal/External
3713 *
3714 * </ini>
3715 */
3716#define CFG_QOS_WMM_INFRA_DIR_AC_BE_NAME "InfraDirAcBe"
3717#define CFG_QOS_WMM_INFRA_DIR_AC_BE_MIN (0)
3718#define CFG_QOS_WMM_INFRA_DIR_AC_BE_MAX (3)
3719#define CFG_QOS_WMM_INFRA_DIR_AC_BE_DEFAULT (3) /*WLAN_QCT_CUST_WMM_TSDIR_BOTH*/
3720
3721/*
3722 * <ini>
3723 * InfraNomMsduSizeAcBe - Set normal MSDU size for BE
3724 * @Min: 0x0
3725 * @Max: 0xFFFF
3726 * @Default: 0x85DC
3727 *
3728 * This ini is used to set normal MSDU size for BE
3729 *
3730 * Related: None.
3731 *
3732 * Supported Feature: WMM
3733 *
3734 * Usage: Internal/External
3735 *
3736 * </ini>
3737 */
3738#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_NAME "InfraNomMsduSizeAcBe"
3739#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_MIN (0x0)
3740#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_MAX (0xFFFF)
3741#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_DEFAULT (0x85DC)
3742
3743/*
3744 * <ini>
3745 * InfraMeanDataRateAcBe - Set mean data rate for BE
3746 * @Min: 0x0
3747 * @Max: 0xFFFFFFFF
3748 * @Default: 0x493E0
3749 *
3750 * This ini is used to set mean data rate for BE
3751 *
3752 * Related: None.
3753 *
3754 * Supported Feature: WMM
3755 *
3756 * Usage: Internal/External
3757 *
3758 * </ini>
3759 */
3760#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_NAME "InfraMeanDataRateAcBe"
3761#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_MIN (0x0)
3762#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_MAX (0xFFFFFFFF)
3763#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_DEFAULT (0x493E0)
3764
3765/*
3766 * <ini>
3767 * InfraMinPhyRateAcBe - Set min PHY rate for BE
3768 * @Min: 0x0
3769 * @Max: 0xFFFFFFFF
3770 * @Default: 0x5B8D80
3771 *
3772 * This ini is used to set min PHY rate for BE
3773 *
3774 * Related: None.
3775 *
3776 * Supported Feature: WMM
3777 *
3778 * Usage: Internal/External
3779 *
3780 * </ini>
3781 */
3782#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_NAME "InfraMinPhyRateAcBe"
3783#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_MIN (0x0)
3784#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_MAX (0xFFFFFFFF)
3785#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_DEFAULT (0x5B8D80)
3786
3787/*
3788 * <ini>
3789 * InfraSbaAcBe - Set surplus bandwidth allowance for BE
3790 * @Min: 0x2001
3791 * @Max: 0xFFFF
3792 * @Default: 0x2001
3793 *
3794 * This ini is used to set surplus bandwidth allowance for BE
3795 *
3796 * Related: None.
3797 *
3798 * Supported Feature: WMM
3799 *
3800 * Usage: Internal/External
3801 *
3802 * </ini>
3803 */
3804 #define CFG_QOS_WMM_INFRA_SBA_AC_BE_NAME "InfraSbaAcBe"
3805 #define CFG_QOS_WMM_INFRA_SBA_AC_BE_MIN (0x2001)
3806 #define CFG_QOS_WMM_INFRA_SBA_AC_BE_MAX (0xFFFF)
3807 #define CFG_QOS_WMM_INFRA_SBA_AC_BE_DEFAULT (0x2001)
3808
3809 /* default TSPEC parameters for AC_Bk*/
3810/*
3811 * <ini>
3812 * InfraDirAcBk - Set TSPEC direction for BK
3813 * @Min: 0
3814 * @Max: 3
3815 * @Default: 3
3816 *
3817 * This ini is used to set TSPEC direction for BK
3818 *
3819 * Related: None.
3820 *
3821 * Supported Feature: WMM
3822 *
3823 * Usage: Internal/External
3824 *
3825 * </ini>
3826 */
3827#define CFG_QOS_WMM_INFRA_DIR_AC_BK_NAME "InfraDirAcBk"
3828#define CFG_QOS_WMM_INFRA_DIR_AC_BK_MIN (0)
3829#define CFG_QOS_WMM_INFRA_DIR_AC_BK_MAX (3)
3830#define CFG_QOS_WMM_INFRA_DIR_AC_BK_DEFAULT (3) /*WLAN_QCT_CUST_WMM_TSDIR_BOTH*/
3831
3832/*
3833 * <ini>
3834 * InfraNomMsduSizeAcBk - Set normal MSDU size for BK
3835 * @Min: 0x0
3836 * @Max: 0xFFFF
3837 * @Default: 0x85DC
3838 *
3839 * This ini is used to set normal MSDU size for BK
3840 *
3841 * Related: None.
3842 *
3843 * Supported Feature: WMM
3844 *
3845 * Usage: Internal/External
3846 *
3847 * </ini>
3848 */
3849#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_NAME "InfraNomMsduSizeAcBk"
3850#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_MIN (0x0)
3851#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_MAX (0xFFFF)
3852#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_DEFAULT (0x85DC)
3853
3854/*
3855 * <ini>
3856 * InfraMeanDataRateAcBk - Set mean data rate for BK
3857 * @Min: 0x0
3858 * @Max: 0xFFFFFFFF
3859 * @Default: 0x493E0
3860 *
3861 * This ini is used to set mean data rate for BK
3862 *
3863 * Related: None.
3864 *
3865 * Supported Feature: WMM
3866 *
3867 * Usage: Internal/External
3868 *
3869 * </ini>
3870 */
3871#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_NAME "InfraMeanDataRateAcBk"
3872#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_MIN (0x0)
3873#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_MAX (0xFFFFFFFF)
3874#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_DEFAULT (0x493E0)
3875
3876/*
3877 * <ini>
3878 * InfraMinPhyRateAcBke - Set min PHY rate for BK
3879 * @Min: 0x0
3880 * @Max: 0xFFFFFFFF
3881 * @Default: 0x5B8D80
3882 *
3883 * This ini is used to set min PHY rate for BK
3884 *
3885 * Related: None.
3886 *
3887 * Supported Feature: WMM
3888 *
3889 * Usage: Internal/External
3890 *
3891 * </ini>
3892 */
3893#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_NAME "InfraMinPhyRateAcBk"
3894#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_MIN (0x0)
3895#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_MAX (0xFFFFFFFF)
3896#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_DEFAULT (0x5B8D80)
3897
3898/*
3899 * <ini>
3900 * InfraSbaAcBk - Set surplus bandwidth allowance for BK
3901 * @Min: 0x2001
3902 * @Max: 0xFFFF
3903 * @Default: 0x2001
3904 *
3905 * This ini is used to set surplus bandwidth allowance for BK
3906 *
3907 * Related: None.
3908 *
3909 * Supported Feature: WMM
3910 *
3911 * Usage: Internal/External
3912 *
3913 * </ini>
3914 */
3915 #define CFG_QOS_WMM_INFRA_SBA_AC_BK_NAME "InfraSbaAcBk"
3916 #define CFG_QOS_WMM_INFRA_SBA_AC_BK_MIN (0x2001)
3917 #define CFG_QOS_WMM_INFRA_SBA_AC_BK_MAX (0xFFFF)
3918 #define CFG_QOS_WMM_INFRA_SBA_AC_BK_DEFAULT (0x2001)
3919
3920/*
3921 * <ini>
3922 * burstSizeDefinition - Set TS burst size
3923 * @Min: 0
3924 * @Max: 1
3925 * @Default: 0
3926 *
3927 * This ini is used to set TS burst size
3928 *
3929 * Related: None.
3930 *
3931 * Supported Feature: WMM
3932 *
3933 * Usage: Internal/External
3934 *
3935 * </ini>
3936 */
3937#define CFG_QOS_WMM_BURST_SIZE_DEFN_NAME "burstSizeDefinition"
3938#define CFG_QOS_WMM_BURST_SIZE_DEFN_MIN (0)
3939#define CFG_QOS_WMM_BURST_SIZE_DEFN_MAX (1)
3940#define CFG_QOS_WMM_BURST_SIZE_DEFN_DEFAULT (0)
3941
3942/*
3943 * <ini>
3944 * tsInfoAckPolicy - Set TS ack policy
3945 * @Min: 0x00
3946 * @Max: 0x01
3947 * @Default: 0x00
3948 *
3949 * This ini is used to set TS ack policy
3950 *
3951 * Related: None.
3952 *
3953 * Supported Feature: WMM
3954 *
3955 * Usage: Internal/External
3956 *
3957 * </ini>
3958 */
3959#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_NAME "tsInfoAckPolicy"
3960#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_MIN (0x00)
3961#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_MAX (0x01)
3962#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_DEFAULT (0x00)
3963
3964/*
3965 * <ini>
3966 * SingleTIDRC - Set replay counter for all TID's
3967 * @Min: 0
3968 * @Max: 1
3969 * @Default: 1
3970 *
3971 * This ini is used to set replay counter for all TID's
3972 *
3973 * Related: None.
3974 *
3975 * Supported Feature: WMM
3976 *
3977 * Usage: Internal/External
3978 *
3979 * </ini>
3980 */
3981#define CFG_SINGLE_TID_RC_NAME "SingleTIDRC"
3982#define CFG_SINGLE_TID_RC_MIN (0) /* Separate replay counter for all TID */
3983#define CFG_SINGLE_TID_RC_MAX (1) /* Single replay counter for all TID */
3984#define CFG_SINGLE_TID_RC_DEFAULT (1)
3985
3986/*
3987 * <ini>
3988 * gAddTSWhenACMIsOff - Set ACM value for AC
3989 * @Min: 0
3990 * @Max: 1
3991 * @Default: 0
3992 *
3993 * This ini is used to set ACM value for AC
3994 *
3995 * Related: None.
3996 *
3997 * Supported Feature: WMM
3998 *
3999 * Usage: Internal/External
4000 *
4001 * </ini>
4002 */
4003#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_NAME "gAddTSWhenACMIsOff"
4004#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_MIN (0)
4005/* Send AddTs even when ACM is not set for the AC */
4006#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_MAX (1)
4007#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004008
4009#ifdef FEATURE_WLAN_ESE
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05304010#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_NAME "InfraInactivityInterval"
4011#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_MIN (0)
4012#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_MAX (4294967295UL)
4013#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_DEFAULT (0) /* disabled */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004014
4015#define CFG_ESE_FEATURE_ENABLED_NAME "EseEnabled"
4016#define CFG_ESE_FEATURE_ENABLED_MIN (0)
4017#define CFG_ESE_FEATURE_ENABLED_MAX (1)
4018#define CFG_ESE_FEATURE_ENABLED_DEFAULT (0) /* disabled */
4019#endif /* FEATURE_WLAN_ESE */
4020
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004021#define CFG_LFR_MAWC_FEATURE_ENABLED_NAME "MAWCEnabled"
4022#define CFG_LFR_MAWC_FEATURE_ENABLED_MIN (0)
4023#define CFG_LFR_MAWC_FEATURE_ENABLED_MAX (1)
4024#define CFG_LFR_MAWC_FEATURE_ENABLED_DEFAULT (0) /* disabled */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004025
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004026/*This parameter is used to set Wireless Extended Security Mode.*/
4027#define CFG_ENABLE_WES_MODE_NAME "gWESModeEnabled"
4028#define CFG_ENABLE_WES_MODE_NAME_MIN (0)
4029#define CFG_ENABLE_WES_MODE_NAME_MAX (1)
4030#define CFG_ENABLE_WES_MODE_NAME_DEFAULT (0)
4031
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004032#define CFG_TL_DELAYED_TRGR_FRM_INT_NAME "DelayedTriggerFrmInt"
4033#define CFG_TL_DELAYED_TRGR_FRM_INT_MIN 1
4034#define CFG_TL_DELAYED_TRGR_FRM_INT_MAX (4294967295UL)
4035#define CFG_TL_DELAYED_TRGR_FRM_INT_DEFAULT 3000
4036
Sreelakshmi Konamkided64d72017-02-23 10:39:26 +05304037/*
4038 * <ini>
4039 * gRrmEnable - Enable/Disable RRM
4040 * @Min: 0
4041 * @Max: 1
4042 * @Default: 0
4043 *
4044 * This ini is used to controls the capabilities (11 k) included
4045 * in the capabilities field.
4046 *
4047 * Related: None.
4048 *
4049 * Supported Feature: 11k
4050 *
4051 * Usage: Internal/External
4052 *
4053 * </ini>
4054 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004055#define CFG_RRM_ENABLE_NAME "gRrmEnable"
4056#define CFG_RRM_ENABLE_MIN (0)
4057#define CFG_RRM_ENABLE_MAX (1)
4058#define CFG_RRM_ENABLE_DEFAULT (0)
4059
Sreelakshmi Konamkided64d72017-02-23 10:39:26 +05304060/*
4061 * <ini>
4062 * gRrmRandnIntvl - Randomization interval
4063 * @Min: 10
4064 * @Max: 100
4065 * @Default: 100
4066 *
4067 * This ini is used to set randomization interval which is used to start a timer
4068 * of a random value within randomization interval. Next RRM Scan request
4069 * will be issued after the expiry of this random interval.
4070 *
4071 * Related: None.
4072 *
4073 * Supported Feature: 11k
4074 *
4075 * Usage: Internal/External
4076 *
4077 * </ini>
4078 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004079#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_NAME "gRrmRandnIntvl"
4080#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_MIN (10)
4081#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_MAX (100)
4082#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_DEFAULT (100)
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -08004083
Sreelakshmi Konamkided64d72017-02-23 10:39:26 +05304084/*
4085 * <ini>
4086 * rm_capability - Configure RM enabled capabilities IE
4087 * @Default: 73,10,91,00,04
4088 *
4089 * This ini is used to configure RM enabled capabilities IE.
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -08004090 * Using this INI, we can set/unset any of the bits in 5 bytes
4091 * (last 4bytes are reserved). Bit details are updated as per
4092 * Draft version of 11mc spec. (Draft P802.11REVmc_D4.2)
4093 *
Jeff Johnsond404d032016-09-08 14:51:43 -07004094 * Bitwise details are defined as bit mask in rrm_global.h
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -08004095 * Comma is used as a separator for each byte.
Sreelakshmi Konamkided64d72017-02-23 10:39:26 +05304096 *
4097 * Related: None.
4098 *
4099 * Supported Feature: 11k
4100 *
4101 * Usage: Internal/External
4102 *
4103 * </ini>
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -08004104 */
4105#define CFG_RM_CAPABILITY_NAME "rm_capability"
Jeff Johnsond404d032016-09-08 14:51:43 -07004106#define CFG_RM_CAPABILITY_DEFAULT "73,10,91,00,04"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004107
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004108#define CFG_FT_RESOURCE_REQ_NAME "gFTResourceReqSupported"
4109#define CFG_FT_RESOURCE_REQ_MIN (0)
4110#define CFG_FT_RESOURCE_REQ_MAX (1)
4111#define CFG_FT_RESOURCE_REQ_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004112
4113#define CFG_TELE_BCN_TRANS_LI_NAME "telescopicBeaconTransListenInterval"
4114#define CFG_TELE_BCN_TRANS_LI_MIN (0)
4115#define CFG_TELE_BCN_TRANS_LI_MAX (7)
4116#define CFG_TELE_BCN_TRANS_LI_DEFAULT (3)
4117
4118#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_NAME "telescopicBeaconTransListenIntervalNumIdleBcns"
4119#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_MIN (5)
4120#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_MAX (255)
4121#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_DEFAULT (10)
4122
4123#define CFG_TELE_BCN_MAX_LI_NAME "telescopicBeaconMaxListenInterval"
4124#define CFG_TELE_BCN_MAX_LI_MIN (0)
4125#define CFG_TELE_BCN_MAX_LI_MAX (7)
4126#define CFG_TELE_BCN_MAX_LI_DEFAULT (5)
4127
4128#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_NAME "telescopicBeaconMaxListenIntervalNumIdleBcns"
4129#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_MIN (5)
4130#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_MAX (255)
4131#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_DEFAULT (15)
4132
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004133#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_NAME "gNeighborLookupThreshold"
4134#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_MIN (10)
4135#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_MAX (120)
4136#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_DEFAULT (78)
4137
4138#define CFG_DELAY_BEFORE_VDEV_STOP_NAME "gDelayBeforeVdevStop"
4139#define CFG_DELAY_BEFORE_VDEV_STOP_MIN (2)
4140#define CFG_DELAY_BEFORE_VDEV_STOP_MAX (200)
4141#define CFG_DELAY_BEFORE_VDEV_STOP_DEFAULT (20)
4142
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004143#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_NAME "gMaxNeighborReqTries"
4144#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_MIN (1)
4145#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_MAX (4)
4146#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_DEFAULT (3)
4147
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004148#define CFG_ROAM_BMISS_FIRST_BCNT_NAME "gRoamBmissFirstBcnt"
4149#define CFG_ROAM_BMISS_FIRST_BCNT_MIN (5)
4150#define CFG_ROAM_BMISS_FIRST_BCNT_MAX (100)
4151#define CFG_ROAM_BMISS_FIRST_BCNT_DEFAULT (10)
4152
4153#define CFG_ROAM_BMISS_FINAL_BCNT_NAME "gRoamBmissFinalBcnt"
4154#define CFG_ROAM_BMISS_FINAL_BCNT_MIN (5)
4155#define CFG_ROAM_BMISS_FINAL_BCNT_MAX (100)
Mukul Sharma9e8395e2017-07-25 18:02:53 +05304156#define CFG_ROAM_BMISS_FINAL_BCNT_DEFAULT (20)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004157
4158#define CFG_ROAM_BEACON_RSSI_WEIGHT_NAME "gRoamBeaconRssiWeight"
4159#define CFG_ROAM_BEACON_RSSI_WEIGHT_MIN (0)
4160#define CFG_ROAM_BEACON_RSSI_WEIGHT_MAX (16)
4161#define CFG_ROAM_BEACON_RSSI_WEIGHT_DEFAULT (14)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004162
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304163/*
4164 * <ini>
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304165 * gDynamicPSPollvalue - Set dynamic PSpoll value
4166 * @Min: 0
4167 * @Max: 255
4168 * @Default: 0
4169 *
4170 * This ini is used to send default PSpoll value
4171 *
4172 * Related: None
4173 *
4174 * Supported Feature: STA
4175 *
4176 * Usage: Internal/External
4177 *
4178 * </ini>
4179 */
4180
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004181#define CFG_DYNAMIC_PSPOLL_VALUE_NAME "gDynamicPSPollvalue"
4182#define CFG_DYNAMIC_PSPOLL_VALUE_MIN (0)
4183#define CFG_DYNAMIC_PSPOLL_VALUE_MAX (255)
4184#define CFG_DYNAMIC_PSPOLL_VALUE_DEFAULT (0)
4185
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304186/*
4187 * <ini>
4188 * gTelescopicBeaconWakeupEn - Set teles copic beacon wakeup
4189 * @Min: 0
4190 * @Max: 1
4191 * @Default: 0
4192 *
4193 * This ini is used to set default teles copic beacon wakeup
4194 *
4195 * Related: None
4196 *
4197 * Supported Feature: STA
4198 *
4199 * Usage: Internal/External
4200 *
4201 * </ini>
4202 */
4203
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004204#define CFG_TELE_BCN_WAKEUP_EN_NAME "gTelescopicBeaconWakeupEn"
4205#define CFG_TELE_BCN_WAKEUP_EN_MIN (0)
4206#define CFG_TELE_BCN_WAKEUP_EN_MAX (1)
4207#define CFG_TELE_BCN_WAKEUP_EN_DEFAULT (0)
4208
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304209/*
4210 * <ini>
4211 * gValidateScanList - Set valid date scan list
4212 * @Min: 0
4213 * @Max: 65535
4214 * @Default: 30
4215 *
4216 * This ini is used to set default valid date scan list
4217 *
4218 * Related: None
4219 *
4220 * Supported Feature: STA
4221 *
4222 * Usage: Internal/External
4223 *
4224 * </ini>
4225 */
4226
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004227#define CFG_VALIDATE_SCAN_LIST_NAME "gValidateScanList"
4228#define CFG_VALIDATE_SCAN_LIST_MIN (0)
4229#define CFG_VALIDATE_SCAN_LIST_MAX (1)
4230#define CFG_VALIDATE_SCAN_LIST_DEFAULT (0)
4231
4232#define CFG_NULLDATA_AP_RESP_TIMEOUT_NAME "gNullDataApRespTimeout"
4233#define CFG_NULLDATA_AP_RESP_TIMEOUT_MIN (WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT_STAMIN)
4234#define CFG_NULLDATA_AP_RESP_TIMEOUT_MAX (WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT_STAMAX)
4235#define CFG_NULLDATA_AP_RESP_TIMEOUT_DEFAULT (WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT_STADEF)
4236
4237#define CFG_AP_DATA_AVAIL_POLL_PERIOD_NAME "gApDataAvailPollInterval"
4238#define CFG_AP_DATA_AVAIL_POLL_PERIOD_MIN (WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD_STAMIN)
4239#define CFG_AP_DATA_AVAIL_POLL_PERIOD_MAX (WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD_STAMAX)
4240#define CFG_AP_DATA_AVAIL_POLL_PERIOD_DEFAULT (WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD_STADEF)
4241
4242#define CFG_ENABLE_HOST_ARPOFFLOAD_NAME "hostArpOffload"
4243#define CFG_ENABLE_HOST_ARPOFFLOAD_MIN (0)
4244#define CFG_ENABLE_HOST_ARPOFFLOAD_MAX (1)
Manjeet Singhc5734182016-09-02 16:03:29 +05304245#define CFG_ENABLE_HOST_ARPOFFLOAD_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004246
4247#define CFG_ENABLE_HOST_SSDP_NAME "ssdp"
4248#define CFG_ENABLE_HOST_SSDP_MIN (0)
4249#define CFG_ENABLE_HOST_SSDP_MAX (1)
4250#define CFG_ENABLE_HOST_SSDP_DEFAULT (1)
4251
4252#define CFG_ENABLE_HOST_NSOFFLOAD_NAME "hostNSOffload"
4253#define CFG_ENABLE_HOST_NSOFFLOAD_MIN (0)
4254#define CFG_ENABLE_HOST_NSOFFLOAD_MAX (1)
Manjeet Singhc5734182016-09-02 16:03:29 +05304255#define CFG_ENABLE_HOST_NSOFFLOAD_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004256
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304257/*
4258 * <ini>
Dustin Brown1224e212017-05-12 14:02:12 -07004259 * gHwFilterMode - configure hardware filter for DTIM mode
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +05304260 * @Min: 0
Dustin Brown1224e212017-05-12 14:02:12 -07004261 * @Max: 3
Dustin Brown2078edd2017-05-18 11:37:33 -07004262 * @Default: 1
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +05304263 *
Dustin Brown1224e212017-05-12 14:02:12 -07004264 * The hardware filter is only effective in DTIM mode. Use this configuration
4265 * to blanket drop broadcast/multicast packets at the hardware level, without
4266 * waking up the firmware
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +05304267 *
Dustin Brown1224e212017-05-12 14:02:12 -07004268 * Takes a bitmap of frame types to drop
4269 * @E.g.
Dustin Brown2078edd2017-05-18 11:37:33 -07004270 * # disable feature
Dustin Brown1224e212017-05-12 14:02:12 -07004271 * gHwFilterMode=0
Dustin Brown2078edd2017-05-18 11:37:33 -07004272 * # drop all broadcast frames, except ARP (default)
Dustin Brown1224e212017-05-12 14:02:12 -07004273 * gHwFilterMode=1
4274 * # drop all multicast frames, except ICMPv6
4275 * gHwFilterMode=2
4276 * # drop all broadcast and multicast frames, except ARP and ICMPv6
4277 * gHwFilterMode=3
4278 *
4279 * Related: N/A
4280 *
4281 * Usage: Internal/External
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +05304282 *
4283 * </ini>
4284 */
Dustin Brown1224e212017-05-12 14:02:12 -07004285#define CFG_HW_FILTER_MODE_NAME "gHwFilterMode"
4286#define CFG_HW_FILTER_MODE_MIN (0)
4287#define CFG_HW_FILTER_MODE_MAX (3)
Dustin Brown2078edd2017-05-18 11:37:33 -07004288#define CFG_HW_FILTER_MODE_DEFAULT (1)
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +05304289
4290/*
4291 * <ini>
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304292 * BandCapability - Preferred band (0: Both, 1: 2.4G only, 2: 5G only)
4293 * @Min: 0
4294 * @Max: 2
4295 * @Default: 0
4296 *
4297 * This ini is used to set default band capability
4298 * (0: Both, 1: 2.4G only, 2: 5G only)
4299 *
4300 * Related: None
4301 *
4302 * Supported Feature: STA
4303 *
4304 * Usage: Internal/External
4305 *
4306 * </ini>
4307 */
4308
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004309#define CFG_BAND_CAPABILITY_NAME "BandCapability"
4310#define CFG_BAND_CAPABILITY_MIN (0)
4311#define CFG_BAND_CAPABILITY_MAX (2)
4312#define CFG_BAND_CAPABILITY_DEFAULT (0)
4313
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004314#define CFG_ENABLE_BYPASS_11D_NAME "gEnableBypass11d"
4315#define CFG_ENABLE_BYPASS_11D_MIN (0)
4316#define CFG_ENABLE_BYPASS_11D_MAX (1)
4317#define CFG_ENABLE_BYPASS_11D_DEFAULT (1)
4318
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304319/*
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304320 * gEnableDFSChnlScan - enable dfs channel scan.
4321 * @Min: 0
4322 * @Max: 1
4323 * @Default: 1
4324 *
4325 * This ini is used to enable/disable dfs channels in scan, enabling this
4326 * will enable driver to include dfs channels in its scan list.
4327 * Related: NA
4328 *
4329 * Supported Feature: DFS, Scan
4330 *
4331 * Usage: Internal/External
4332 *
4333 * </ini>
4334 */
4335#define CFG_ENABLE_DFS_CHNL_SCAN_NAME "gEnableDFSChnlScan"
4336#define CFG_ENABLE_DFS_CHNL_SCAN_MIN (0)
4337#define CFG_ENABLE_DFS_CHNL_SCAN_MAX (1)
4338#define CFG_ENABLE_DFS_CHNL_SCAN_DEFAULT (1)
4339
4340/*
4341 * <ini>
4342 * gEnableDFSPnoChnlScan - enable dfs channels in PNO scan
4343 * @Min: 0
4344 * @Max: 1
4345 * @Default: 1
4346 *
4347 * This ini is used to enable/disable dfs channels in PNO scan request,
4348 * enabling this ini enables driver to include dfs channels in its
4349 * PNO scan request
4350 * Related: NA
4351 *
4352 * Supported Feature: DFS, PNO
4353 *
4354 * Usage: Internal/External
4355 *
4356 * </ini>
4357 */
4358#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_NAME "gEnableDFSPnoChnlScan"
4359#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_MIN (0)
4360#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_MAX (1)
4361#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_DEFAULT (1)
4362
4363/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304364 * <ini>
4365 * gEnableDumpCollect - It will use for collect the dumps
4366 * @Min: 0
4367 * @Max: 1
4368 * @Default: 1
4369 *
4370 * This ini is used to set collect default dump
4371 *
4372 * Related: None
4373 *
4374 * Supported Feature: STA
4375 *
4376 * Usage: Internal/External
4377 *
4378 * </ini>
4379 */
4380
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004381#define CFG_ENABLE_RAMDUMP_COLLECTION "gEnableDumpCollect"
4382#define CFG_ENABLE_RAMDUMP_COLLECTION_MIN (0)
4383#define CFG_ENABLE_RAMDUMP_COLLECTION_MAX (1)
4384#define CFG_ENABLE_RAMDUMP_COLLECTION_DEFAULT (1)
4385
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -07004386enum hdd_link_speed_rpt_type {
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004387 eHDD_LINK_SPEED_REPORT_ACTUAL = 0,
4388 eHDD_LINK_SPEED_REPORT_MAX = 1,
4389 eHDD_LINK_SPEED_REPORT_MAX_SCALED = 2,
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -07004390};
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304391
4392/*
4393 * <ini>
4394 * gVhtChannelWidth - Channel width capability for 11ac
4395 * @Min: 0
4396 * @Max: 4
4397 * @Default: 3
4398 *
4399 * This ini is used to set channel width capability for 11AC.
4400 * eHT_CHANNEL_WIDTH_20MHZ = 0,
4401 * eHT_CHANNEL_WIDTH_40MHZ = 1,
4402 * eHT_CHANNEL_WIDTH_80MHZ = 2,
4403 * eHT_CHANNEL_WIDTH_160MHZ = 3,
4404 * eHT_CHANNEL_WIDTH_80P80MHZ = 4,
4405 *
4406 * Related: NA
4407 *
4408 * Supported Feature: 11AC
4409 *
4410 * Usage: External
4411 *
4412 * </ini>
4413 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004414#define CFG_VHT_CHANNEL_WIDTH "gVhtChannelWidth"
4415#define CFG_VHT_CHANNEL_WIDTH_MIN (0)
4416#define CFG_VHT_CHANNEL_WIDTH_MAX (4)
Kiran Kumar Lokere4bbbd0d2017-02-07 00:06:43 -08004417#define CFG_VHT_CHANNEL_WIDTH_DEFAULT (2)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004418
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304419/*
4420* <ini>
4421* gVhtRxMCS - VHT Rx MCS capability for 1x1 mode
4422* @Min: 0
4423* @Max: 2
4424* @Default: 0
4425*
4426* This ini is used to set VHT Rx MCS capability for 1x1 mode.
4427* 0, MCS0-7
4428* 1, MCS0-8
4429* 2, MCS0-9
4430*
4431* Related: NA
4432*
4433* Supported Feature: 11AC
4434*
4435* Usage: Internal/External
4436*
4437* </ini>
4438*/
4439
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004440#define CFG_VHT_ENABLE_RX_MCS_8_9 "gVhtRxMCS"
4441#define CFG_VHT_ENABLE_RX_MCS_8_9_MIN (0)
4442#define CFG_VHT_ENABLE_RX_MCS_8_9_MAX (2)
4443#define CFG_VHT_ENABLE_RX_MCS_8_9_DEFAULT (0)
4444
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304445/*
4446 * <ini>
4447 * gVhtTxMCS - VHT Tx MCS capability for 1x1 mode
4448 * @Min: 0
4449 * @Max: 2
4450 * @Default: 0
4451 *
4452 * This ini is used to set VHT Tx MCS capability for 1x1 mode.
4453 * 0, MCS0-7
4454 * 1, MCS0-8
4455 * 2, MCS0-9
4456 *
4457 * Related: NA
4458 *
4459 * Supported Feature: 11AC
4460 *
4461 * Usage: Internal/External
4462 *
4463 * </ini>
4464 */
4465
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004466#define CFG_VHT_ENABLE_TX_MCS_8_9 "gVhtTxMCS"
4467#define CFG_VHT_ENABLE_TX_MCS_8_9_MIN (0)
4468#define CFG_VHT_ENABLE_TX_MCS_8_9_MAX (2)
4469#define CFG_VHT_ENABLE_TX_MCS_8_9_DEFAULT (0)
4470
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304471/*
4472 * <ini>
4473 * gVhtRxMCS2x2 - VHT Rx MCS capability for 2x2 mode
4474 * @Min: 0
4475 * @Max: 2
4476 * @Default: 0
4477 *
4478 * This ini is used to set VHT Rx MCS capability for 2x2 mode.
4479 * 0, MCS0-7
4480 * 1, MCS0-8
4481 * 2, MCS0-9
4482 *
4483 * Related: NA
4484 *
4485 * Supported Feature: 11AC
4486 *
4487 * Usage: External
4488 *
4489 * </ini>
4490 */
4491
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004492#define CFG_VHT_ENABLE_RX_MCS2x2_8_9 "gVhtRxMCS2x2"
4493#define CFG_VHT_ENABLE_RX_MCS2x2_8_9_MIN (0)
4494#define CFG_VHT_ENABLE_RX_MCS2x2_8_9_MAX (2)
4495#define CFG_VHT_ENABLE_RX_MCS2x2_8_9_DEFAULT (0)
4496
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304497/*
4498 * <ini>
4499 * gVhtTxMCS2x2 - VHT Tx MCS capability for 2x2 mode
4500 * @Min: 0
4501 * @Max: 2
4502 * @Default: 0
4503 *
4504 * This ini is used to set VHT Tx MCS capability for 2x2 mode.
4505 * 0, MCS0-7
4506 * 1, MCS0-8
4507 * 2, MCS0-9
4508 *
4509 * Related: NA
4510 *
4511 * Supported Feature: 11AC
4512 *
4513 * Usage: External
4514 *
4515 * </ini>
4516 */
4517
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004518#define CFG_VHT_ENABLE_TX_MCS2x2_8_9 "gVhtTxMCS2x2"
4519#define CFG_VHT_ENABLE_TX_MCS2x2_8_9_MIN (0)
4520#define CFG_VHT_ENABLE_TX_MCS2x2_8_9_MAX (2)
4521#define CFG_VHT_ENABLE_TX_MCS2x2_8_9_DEFAULT (0)
4522
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304523/*
4524 * <ini>
4525 * gEnable2x2 - Enables/disables VHT Tx/Rx MCS values for 2x2
4526 * @Min: 0
4527 * @Max: 1
4528 * @Default: 0
4529 *
4530 * This ini disables/enables 2x2 mode. If this is zero then DUT operates as 1x1
4531 *
4532 * 0, Disable
4533 * 1, Enable
4534 *
4535 * Related: NA
4536 *
4537 * Supported Feature: 11AC
4538 *
4539 * Usage: External
4540 *
4541 * </ini>
4542 */
4543
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004544#define CFG_VHT_ENABLE_2x2_CAP_FEATURE "gEnable2x2"
4545#define CFG_VHT_ENABLE_2x2_CAP_FEATURE_MIN (0)
4546#define CFG_VHT_ENABLE_2x2_CAP_FEATURE_MAX (1)
4547#define CFG_VHT_ENABLE_2x2_CAP_FEATURE_DEFAULT (0)
4548
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304549/*
4550 * <ini>
4551 * gStaPrefer80MHzOver160MHz - set Sta perferance to connect in 80HZ/160HZ
4552 * @Min: 0
4553 * @Max: 1
4554 * @Default: 1
4555 *
4556 * This ini is used to set Sta perferance to connect in 80HZ/160HZ
4557 *
4558 * 0 - Connects in 160MHz 1x1 when AP is 160MHz 2x2
Kiran Kumar Lokere1aa9c9a2016-10-05 18:50:59 -07004559 * 1 - Connects in 80MHz 2x2 when AP is 160MHz 2x2
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304560 *
4561 * Related: NA
4562 *
4563 * Supported Feature: 11AC
4564 *
4565 * Usage: External
4566 *
4567 * </ini>
Kiran Kumar Lokere1aa9c9a2016-10-05 18:50:59 -07004568 */
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304569
Kiran Kumar Lokere1aa9c9a2016-10-05 18:50:59 -07004570#define CFG_STA_PREFER_80MHZ_OVER_160MHZ "gStaPrefer80MHzOver160MHz"
4571#define CFG_STA_PREFER_80MHZ_OVER_160MHZ_MIN (0)
4572#define CFG_STA_PREFER_80MHZ_OVER_160MHZ_MAX (1)
4573#define CFG_STA_PREFER_80MHZ_OVER_160MHZ_DEFAULT (1)
4574
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07004575/*
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304576 * <ini>
4577 * gVdevTypeNss_2g - set Number of streams per VDEV for 2G band.
4578 * @Min: 0x5555
4579 * @Max: 0xAAAA
4580 * @Default: 0xAAAA
4581 *
4582 * This ini is used to set set Number of streams per VDEV for 2G band
4583 *
4584 * These Nss parameters will have 32-bit configuration value, 2 bits are
4585 * allocated for each vdev.
4586 * Valid values are:
4587 * Min value – 0x5555
4588 * Max value – 0xAAAA
4589 * Default value will be 0xAAAA for both the parameters.
4590 * Value 0x5555 will configure all vdevs in 1x1 mode in 2.4G band.
4591 * Value 0xAAAA will configure all vdevs in 2x2 mode in 2.4G band.
4592 *
4593 * The max value is defined based on the valid max Nss of the vdev, the valid
4594 * values for each vdev 2-bits are 0x1 and 0x2. 0x3 and 0x0 are not valid vdev
4595 * Nss values.
4596 *
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07004597 * NSS cfg bit definition.
4598 * STA BIT[0:1]
4599 * SAP BIT[2:3]
4600 * P2P_GO BIT[4:5]
4601 * P2P_CLIENT BIT[6:7]
4602 * IBSS BIT[8:9]
4603 * TDLS BIT[10:11]
4604 * P2P_DEVICE BIT[12:13]
4605 * OCB BIT[14:15]
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304606 *
4607 * Related: NA
4608 *
4609 * Supported Feature: Antenna Sharing
4610 *
4611 * Usage: External
4612 *
4613 * </ini>
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07004614 */
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304615
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07004616#define CFG_VDEV_TYPE_NSS_2G "gVdevTypeNss_2g"
4617#define CFG_VDEV_TYPE_NSS_2G_MIN (0x5555)
4618#define CFG_VDEV_TYPE_NSS_2G_MAX (0xAAAA)
4619#define CFG_VDEV_TYPE_NSS_2G_DEFAULT (0xAAAA)
4620
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304621/*
4622 * <ini>
4623 * gVdevTypeNss_5g - set Number of streams per VDEV for 5G band.
4624 * @Min: 0x5555
4625 * @Max: 0xAAAA
4626 * @Default: 0xAAAA
4627 *
4628 * This ini is used to set set Number of streams per VDEV for 2G band
4629 *
4630 * These Nss parameters will have 32-bit configuration value, 2 bits are
4631 * allocated for each vdev.
4632 * Valid values are:
4633 * Min value – 0x5555
4634 * Max value – 0xAAAA
4635 * Default value will be 0xAAAA for both the parameters.
4636 * Value 0x5555 will configure all vdevs in 1x1 mode in 5 band.
4637 * Value 0xAAAA will configure all vdevs in 2x2 mode in 5 band.
4638 *
4639 * The max value is defined based on the valid max Nss of the vdev, the valid
4640 * values for each vdev 2-bits are 0x1 and 0x2. 0x3 and 0x0 are not valid vdev
4641 * Nss values.
4642 *
4643 * NSS cfg bit definition.
4644 * STA BIT[0:1]
4645 * SAP BIT[2:3]
4646 * P2P_GO BIT[4:5]
4647 * P2P_CLIENT BIT[6:7]
4648 * IBSS BIT[8:9]
4649 * TDLS BIT[10:11]
4650 * P2P_DEVICE BIT[12:13]
4651 * OCB BIT[14:15]
4652 *
4653 * Related: NA
4654 *
4655 * Supported Feature: Antenna Sharing
4656 *
4657 * Usage: External
4658 *
4659 * </ini>
4660 */
4661
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07004662#define CFG_VDEV_TYPE_NSS_5G "gVdevTypeNss_5g"
4663#define CFG_VDEV_TYPE_NSS_5G_MIN (0x5555)
4664#define CFG_VDEV_TYPE_NSS_5G_MAX (0xAAAA)
4665#define CFG_VDEV_TYPE_NSS_5G_DEFAULT (0xAAAA)
4666
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304667/*
4668 * <ini>
4669 * gEnableMuBformee - Enables/disables multi-user (MU) beam formee capability
4670 * @Min: 0
4671 * @Max: 1
4672 * @Default: 0
4673 *
4674 * This ini enables/disables multi-user (MU) beam formee
4675 * capability
4676 *
4677 * Change MU Bformee only when gTxBFEnable is enabled.
4678 * When gTxBFEnable and gEnableMuBformee are set, MU beam formee capability is
4679 * enabled.
4680 * Related: gTxBFEnable
4681 *
4682 * Supported Feature: 11AC
4683 *
4684 * Usage: External
4685 *
4686 * </ini>
4687 */
4688
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004689#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE "gEnableMuBformee"
4690#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_MIN (0)
4691#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_MAX (1)
4692#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_DEFAULT (0)
4693
4694#define CFG_VHT_ENABLE_PAID_FEATURE "gEnablePAID"
4695#define CFG_VHT_ENABLE_PAID_FEATURE_MIN (0)
4696#define CFG_VHT_ENABLE_PAID_FEATURE_MAX (1)
4697#define CFG_VHT_ENABLE_PAID_FEATURE_DEFAULT (0)
4698
4699#define CFG_VHT_ENABLE_GID_FEATURE "gEnableGID"
4700#define CFG_VHT_ENABLE_GID_FEATURE_MIN (0)
4701#define CFG_VHT_ENABLE_GID_FEATURE_MAX (1)
4702#define CFG_VHT_ENABLE_GID_FEATURE_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004703
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304704/*
4705 * <ini>
4706 * gSetTxChainmask1x1 - Sets Transmit chain mask.
4707 * @Min: 1
4708 * @Max: 2
4709 * @Default: 1
4710 *
4711 * This ini Sets Transmit chain mask.
4712 *
4713 * If gEnable2x2 is disabled, gSetTxChainmask1x1 and gSetRxChainmask1x1 values
4714 * are taken into account. If chainmask value exceeds the maximum number of
4715 * chains supported by target, the max number of chains is used. By default,
4716 * chain0 is selected for both Tx and Rx.
4717 * gSetTxChainmask1x1=1 or gSetRxChainmask1x1=1 to select chain0.
4718 * gSetTxChainmask1x1=2 or gSetRxChainmask1x1=2 to select chain1.
4719 *
4720 * Supported Feature: 11AC
4721 *
4722 * Usage: External
4723 *
4724 * </ini>
4725 */
4726
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004727#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK "gSetTxChainmask1x1"
4728#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK_MIN (1)
4729#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK_MAX (2)
4730#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK_DEFAULT (1)
4731
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304732/*
4733 * <ini>
4734 * gSetRxChainmask1x1 - Sets Receive chain mask.
4735 * @Min: 1
4736 * @Max: 2
4737 * @Default: 1
4738 *
4739 * This ini is used to set Receive chain mask.
4740 *
4741 * If gEnable2x2 is disabled, gSetTxChainmask1x1 and gSetRxChainmask1x1 values
4742 * are taken into account. If chainmask value exceeds the maximum number of
4743 * chains supported by target, the max number of chains is used. By default,
4744 * chain0 is selected for both Tx and Rx.
4745 * gSetTxChainmask1x1=1 or gSetRxChainmask1x1=1 to select chain0.
4746 * gSetTxChainmask1x1=2 or gSetRxChainmask1x1=2 to select chain1.
4747 *
4748 * Supported Feature: 11AC
4749 *
4750 * Usage: External
4751 *
4752 * </ini>
4753 */
4754
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004755#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK "gSetRxChainmask1x1"
4756#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK_MIN (1)
4757#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK_MAX (2)
4758#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK_DEFAULT (1)
4759
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304760/*
4761 * <ini>
4762 * gEnableAMPDUPS - Enable the AMPDUPS
4763 * @Min: 0
4764 * @Max: 1
4765 * @Default: 0
4766 *
4767 * This ini is used to set default AMPDUPS
4768 *
4769 * Related: None
4770 *
4771 * Supported Feature: STA
4772 *
4773 * Usage: Internal/External
4774 *
4775 * </ini>
4776 */
4777
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004778#define CFG_ENABLE_AMPDUPS_FEATURE "gEnableAMPDUPS"
4779#define CFG_ENABLE_AMPDUPS_FEATURE_MIN (0)
4780#define CFG_ENABLE_AMPDUPS_FEATURE_MAX (1)
4781#define CFG_ENABLE_AMPDUPS_FEATURE_DEFAULT (0)
4782
4783#define CFG_HT_ENABLE_SMPS_CAP_FEATURE "gEnableHtSMPS"
4784#define CFG_HT_ENABLE_SMPS_CAP_FEATURE_MIN (0)
4785#define CFG_HT_ENABLE_SMPS_CAP_FEATURE_MAX (1)
4786#define CFG_HT_ENABLE_SMPS_CAP_FEATURE_DEFAULT (0)
4787
4788#define CFG_HT_SMPS_CAP_FEATURE "gHtSMPS"
4789#define CFG_HT_SMPS_CAP_FEATURE_MIN (0)
4790#define CFG_HT_SMPS_CAP_FEATURE_MAX (3)
4791#define CFG_HT_SMPS_CAP_FEATURE_DEFAULT (3)
4792
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304793/*
4794 * <ini>
4795 * gDisableDFSChSwitch - Disable channel switch if radar is found
4796 * @Min: 0
4797 * @Max: 1
4798 * @Default: 0
4799 *
4800 * This ini is used to disable channel switch if radar is found
4801 * on that channel.
4802 * Related: NA.
4803 *
4804 * Supported Feature: DFS
4805 *
4806 * Usage: Internal
4807 *
4808 * </ini>
4809 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004810#define CFG_DISABLE_DFS_CH_SWITCH "gDisableDFSChSwitch"
4811#define CFG_DISABLE_DFS_CH_SWITCH_MIN (0)
4812#define CFG_DISABLE_DFS_CH_SWITCH_MAX (1)
4813#define CFG_DISABLE_DFS_CH_SWITCH_DEFAULT (0)
4814
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304815/*
4816 * <ini>
4817 * gEnableDFSMasterCap - Enable DFS master capability
4818 * @Min: 0
4819 * @Max: 1
4820 * @Default: 0
4821 *
4822 * This ini is used to enable/disable the DFS master capability.
4823 * Disabling it will cause driver to not advertise the spectrum
4824 * management capability
4825 * Related: NA.
4826 *
4827 * Supported Feature: DFS
4828 *
4829 * Usage: Internal/External
4830 *
4831 * </ini>
4832 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004833#define CFG_ENABLE_DFS_MASTER_CAPABILITY "gEnableDFSMasterCap"
4834#define CFG_ENABLE_DFS_MASTER_CAPABILITY_MIN (0)
4835#define CFG_ENABLE_DFS_MASTER_CAPABILITY_MAX (1)
4836#define CFG_ENABLE_DFS_MASTER_CAPABILITY_DEFAULT (0)
4837
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304838/*
4839 * <ini>
4840 * gSapPreferredChanLocation - Restrict channel switches between ondoor and
4841 * outdoor.
4842 * @Min: 0
4843 * @Max: 2
4844 * @Default: 0
4845 *
4846 * This ini is used for restricting channel switches between Indoor and outdoor
4847 * channels after radar detection.
4848 * 0- No preferred channel location
4849 * 1- Use indoor channels only
4850 * 2- Use outdoor channels only
4851 * Related: NA.
4852 *
4853 * Supported Feature: DFS
4854 *
4855 * Usage: Internal/External
4856 *
4857 * </ini>
4858 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004859#define CFG_SAP_PREFERRED_CHANNEL_LOCATION "gSapPreferredChanLocation"
4860#define CFG_SAP_PREFERRED_CHANNEL_LOCATION_MIN (0)
4861#define CFG_SAP_PREFERRED_CHANNEL_LOCATION_MAX (2)
4862#define CFG_SAP_PREFERRED_CHANNEL_LOCATION_DEFAULT (0)
4863
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304864/*
4865 * <ini>
4866 * gDisableDfsJapanW53 - Block W53 channels in random channel selection
4867 * @Min: 0
4868 * @Max: 1
4869 * @Default: 0
4870 *
4871 * This ini is used to block W53 Japan channel in random channel selection
4872 * Related: NA.
4873 *
4874 * Supported Feature: DFS
4875 *
4876 * Usage: Internal/External
4877 *
4878 * </ini>
4879 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004880#define CFG_DISABLE_DFS_JAPAN_W53 "gDisableDfsJapanW53"
4881#define CFG_DISABLE_DFS_JAPAN_W53_MIN (0)
4882#define CFG_DISABLE_DFS_JAPAN_W53_MAX (1)
4883#define CFG_DISABLE_DFS_JAPAN_W53_DEFAULT (0)
4884
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304885/*
4886 * <ini>
4887 * gDisableDfsJapanW53 - Enable dfs phyerror filtering offload in FW
4888 * @Min: 0
4889 * @Max: 1
4890 * @Default: 1
4891 *
4892 * This ini is used to to enable dfs phyerror filtering offload to firmware
4893 * Enabling it will cause basic phy error to be discarding in firmware.
4894 * Related: NA.
4895 *
4896 * Supported Feature: DFS
4897 *
4898 * Usage: Internal/External
4899 *
4900 * </ini>
4901 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004902#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_NAME "dfsPhyerrFilterOffload"
4903#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_MIN (0)
4904#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_MAX (1)
4905#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_DEFAULT (0)
4906
4907#define CFG_REPORT_MAX_LINK_SPEED "gReportMaxLinkSpeed"
4908#define CFG_REPORT_MAX_LINK_SPEED_MIN (eHDD_LINK_SPEED_REPORT_ACTUAL)
4909#define CFG_REPORT_MAX_LINK_SPEED_MAX (eHDD_LINK_SPEED_REPORT_MAX_SCALED)
4910#define CFG_REPORT_MAX_LINK_SPEED_DEFAULT (eHDD_LINK_SPEED_REPORT_MAX_SCALED)
4911
4912/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304913 * <ini>
4914 * gLinkSpeedRssiHigh - Report the max possible speed with RSSI scaling
4915 * @Min: 0
4916 * @Max: 1
4917 * @Default: 0
4918 *
4919 * This ini is used to set default eHDD_LINK_SPEED_REPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004920 * Used when eHDD_LINK_SPEED_REPORT_SCALED is selected
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304921 *
4922 * Related: None
4923 *
4924 * Supported Feature: STA
4925 *
4926 * Usage: Internal/External
4927 *
4928 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004929 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304930
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004931#define CFG_LINK_SPEED_RSSI_HIGH "gLinkSpeedRssiHigh"
4932#define CFG_LINK_SPEED_RSSI_HIGH_MIN (-127)
4933#define CFG_LINK_SPEED_RSSI_HIGH_MAX (0)
4934#define CFG_LINK_SPEED_RSSI_HIGH_DEFAULT (-55)
4935
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304936/*
4937 * <ini>
4938 * gLinkSpeedRssiMed - Used when eHDD_LINK_SPEED_REPORT_SCALED is selected
4939 * @Min: -127
4940 * @Max: 0
4941 * @Default: -65
4942 *
4943 * This ini is used to set medium rssi link speed
4944 *
4945 * Related: None
4946 *
4947 * Supported Feature: STA
4948 *
4949 * Usage: Internal/External
4950 *
4951 * </ini>
4952 */
4953
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004954#define CFG_LINK_SPEED_RSSI_MID "gLinkSpeedRssiMed"
4955#define CFG_LINK_SPEED_RSSI_MID_MIN (-127)
4956#define CFG_LINK_SPEED_RSSI_MID_MAX (0)
4957#define CFG_LINK_SPEED_RSSI_MID_DEFAULT (-65)
4958
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304959/*
4960 * <ini>
4961 * gLinkSpeedRssiLow - Used when eHDD_LINK_SPEED_REPORT_SCALED is selected
4962 * @Min: -127
4963 * @Max: 0
4964 * @Default: -80
4965 *
4966 * This ini is used to set low rssi link speed
4967 *
4968 * Related: None
4969 *
4970 * Supported Feature: STA
4971 *
4972 * Usage: Internal/External
4973 *
4974 * </ini>
4975 */
4976
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004977#define CFG_LINK_SPEED_RSSI_LOW "gLinkSpeedRssiLow"
4978#define CFG_LINK_SPEED_RSSI_LOW_MIN (-127)
4979#define CFG_LINK_SPEED_RSSI_LOW_MAX (0)
4980#define CFG_LINK_SPEED_RSSI_LOW_DEFAULT (-80)
4981
4982#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_NAME "isP2pDeviceAddrAdministrated"
4983#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MIN (0)
4984#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MAX (1)
4985#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_DEFAULT (1)
4986
4987#define CFG_ENABLE_SSR "gEnableSSR"
4988#define CFG_ENABLE_SSR_MIN (0)
4989#define CFG_ENABLE_SSR_MAX (1)
4990#define CFG_ENABLE_SSR_DEFAULT (1)
4991
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304992/*
4993 * <ini>
4994 * gEnableOverLapCh - Enables Overlap Channel. If set, allow overlapping
4995 * channels to be selected for the SoftAP
4996 * @Min: 0
4997 * @Max: 1
4998 * @Default: 0
4999 *
5000 * This ini is used to set Overlap Channel
5001 *
5002 * Related: None
5003 *
5004 * Supported Feature: STA
5005 *
5006 * Usage: Internal/External
5007 *
5008 * </ini>
5009 */
5010
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005011#define CFG_ENABLE_OVERLAP_CH "gEnableOverLapCh"
5012#define CFG_ENABLE_OVERLAP_CH_MIN (0)
5013#define CFG_ENABLE_OVERLAP_CH_MAX (1)
5014#define CFG_ENABLE_OVERLAP_CH_DEFAULT (0)
5015
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305016/*
5017 * <ini>
5018 * gEnable5gEBT - Enables/disables 5G early beacon termination. When enabled
5019 * terminate the reception of beacon if the TIM element is
5020 * clear for the power saving
5021 * @Min: 0
5022 * @Max: 1
5023 * @Default: 1
5024 *
5025 * This ini is used to set default 5G early beacon termination
5026 *
5027 * Related: None
5028 *
5029 * Supported Feature: STA
5030 *
5031 * Usage: Internal/External
5032 *
5033 * </ini>
5034 */
5035
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005036#define CFG_PPS_ENABLE_5G_EBT "gEnable5gEBT"
5037#define CFG_PPS_ENABLE_5G_EBT_FEATURE_MIN (0)
5038#define CFG_PPS_ENABLE_5G_EBT_FEATURE_MAX (1)
Jeff Johnson860e1242016-09-20 08:59:23 -07005039#define CFG_PPS_ENABLE_5G_EBT_FEATURE_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005040
5041#define CFG_ENABLE_MEMORY_DEEP_SLEEP "gEnableMemDeepSleep"
5042#define CFG_ENABLE_MEMORY_DEEP_SLEEP_MIN (0)
5043#define CFG_ENABLE_MEMORY_DEEP_SLEEP_MAX (1)
5044#define CFG_ENABLE_MEMORY_DEEP_SLEEP_DEFAULT (1)
5045
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305046/*
5047 * <ini>
Dustin Brown732ab9c2017-06-15 13:24:09 -07005048 *
5049 * gEnableCckTxFirOverride - Enable/disable CCK TxFIR Override
5050 * @Min: 0 (disabled)
5051 * @Max: 1 (enabled)
5052 * @Default: 0 (disabled)
5053 *
5054 * When operating in an 802.11b mode, this configuration item forces a 2x2 radio
5055 * configuration into 1x for Tx and 2x for Rx (ie 1x2) for regulatory compliance
5056 * reasons.
5057 *
5058 * Related: enable2x2
5059 *
5060 * Supported Feature: 802.11b, 2x2
5061 *
5062 * Usage: Internal/External
5063 *
5064 * </ini>
5065 */
5066#define CFG_ENABLE_CCK_TX_FIR_OVERRIDE_NAME "gEnableCckTxFirOverride"
5067#define CFG_ENABLE_CCK_TX_FIR_OVERRIDE_MIN (0)
5068#define CFG_ENABLE_CCK_TX_FIR_OVERRIDE_MAX (1)
5069#define CFG_ENABLE_CCK_TX_FIR_OVERRIDE_DEFAULT (0)
5070
5071/*
5072 * <ini>
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305073 * gDefaultRateIndex24Ghz -Set the rate index for 24Ghz
5074 * @Min: 1
5075 * @Max: 9
5076 * @Default: 1
5077 *
5078 * This ini is used to set default rate index
5079 * In cfg.dat 1=1MBPS, 2=2MBPS, 3=5_5MBPS, 4=11MBPS, 5=6MBPS, 6=9MBPS,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005080 * 7=12MBPS, 8=18MBPS, 9=24MBPS. But 6=9MBPS and 8=18MBPS are not basic
5081 * 11g rates and should not be set by gDefaultRateIndex24Ghz.
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305082 *
5083 * Related: None
5084 *
5085 * Supported Feature: STA
5086 *
5087 * Usage: Internal/External
5088 *
5089 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005090 */
5091
5092#define CFG_DEFAULT_RATE_INDEX_24GH "gDefaultRateIndex24Ghz"
5093#define CFG_DEFAULT_RATE_INDEX_24GH_MIN (1)
5094#define CFG_DEFAULT_RATE_INDEX_24GH_MAX (9)
5095#define CFG_DEFAULT_RATE_INDEX_24GH_DEFAULT (1)
5096
5097#define CFG_ENABLE_PACKET_LOG "gEnablePacketLog"
5098#define CFG_ENABLE_PACKET_LOG_MIN (0)
5099#define CFG_ENABLE_PACKET_LOG_MAX (1)
Poddar, Siddartheefe3482016-09-21 18:12:59 +05305100#ifdef FEATURE_PKTLOG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005101#define CFG_ENABLE_PACKET_LOG_DEFAULT (1)
Poddar, Siddartheefe3482016-09-21 18:12:59 +05305102#else
5103#define CFG_ENABLE_PACKET_LOG_DEFAULT (0)
5104#endif
5105
5106
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005107
5108/* gFwDebugLogType takes values from enum dbglog_process_t,
5109 * make default value as DBGLOG_PROCESS_NET_RAW to give the
5110 * logs to net link since cnss_diag service is started at boot
5111 * time by default.
5112 */
5113#define CFG_ENABLE_FW_LOG_TYPE "gFwDebugLogType"
5114#define CFG_ENABLE_FW_LOG_TYPE_MIN (0)
5115#define CFG_ENABLE_FW_LOG_TYPE_MAX (255)
5116#define CFG_ENABLE_FW_LOG_TYPE_DEFAULT (3)
5117
5118/* gFwDebugLogLevel takes values from enum DBGLOG_LOG_LVL,
5119 * make default value as DBGLOG_WARN to enable error and
5120 * warning logs by default.
5121 */
5122#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL "gFwDebugLogLevel"
5123#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL_MIN (0)
5124#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL_MAX (255)
Nishank Aggarwale239d962017-03-03 12:26:02 +05305125#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL_DEFAULT (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005126
5127/* For valid values of log levels check enum DBGLOG_LOG_LVL and
5128 * for valid values of module ids check enum WLAN_MODULE_ID.
5129 */
5130#define CFG_ENABLE_FW_MODULE_LOG_LEVEL "gFwDebugModuleLoglevel"
Nishank Aggarwal1bd0ae82017-04-07 17:32:56 +05305131#define CFG_ENABLE_FW_MODULE_LOG_DEFAULT "2,1,3,1,5,1,9,1,13,1,14,1,18,1,19,1,26,1,28,1,29,1,31,1,36,1,38,1,46,1,47,1,50,1,52,1,53,1,56,1,60,1,61,1,4,1"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005132
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +05305133/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305134 * <ini>
5135 * gEnableRTSProfiles - It will use configuring different RTS profiles
5136 * @Min: 0
5137 * @Max: 34
5138 * @Default: 33
5139 *
5140 * This ini used for configuring different RTS profiles
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +05305141 * to firmware.
5142 * Following are the valid values for the rtsprofile:
5143 * RTSCTS_DISABLED 0
5144 * RTSCTS_ENABLED_4_SECOND_RATESERIES 17
5145 * CTS2SELF_ENABLED_4_SECOND_RATESERIES 18
5146 * RTSCTS_ENABLED_4_SWRETRIES 33
5147 * CTS2SELF_ENABLED_4_SWRETRIES 34
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305148 *
5149 * Related: None
5150 *
5151 * Supported Feature: STA
5152 *
5153 * Usage: Internal/External
5154 *
5155 * </ini>
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +05305156 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305157
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +05305158#define CFG_ENABLE_FW_RTS_PROFILE "gEnableRTSProfiles"
5159#define CFG_ENABLE_FW_RTS_PROFILE_MIN (0)
5160#define CFG_ENABLE_FW_RTS_PROFILE_MAX (34)
5161#define CFG_ENABLE_FW_RTS_PROFILE_DEFAULT (33)
5162
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005163#ifdef FEATURE_GREEN_AP
5164#define CFG_ENABLE_GREEN_AP_FEATURE "gEnableGreenAp"
5165#define CFG_ENABLE_GREEN_AP_FEATURE_MIN (0)
5166#define CFG_ENABLE_GREEN_AP_FEATURE_MAX (1)
5167#define CFG_ENABLE_GREEN_AP_FEATURE_DEFAULT (1)
Ryan Hsucb118cf2015-11-09 16:03:53 -08005168
5169/* Enhanced Green AP (EGAP) flags/params */
5170#define CFG_ENABLE_EGAP_ENABLE_FEATURE "gEnableEGAP"
5171#define CFG_ENABLE_EGAP_ENABLE_FEATURE_MIN (0)
5172#define CFG_ENABLE_EGAP_ENABLE_FEATURE_MAX (1)
5173#define CFG_ENABLE_EGAP_ENABLE_FEATURE_DEFAULT (0)
5174
5175#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE "gEGAPInactTime"
5176#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE_MIN (0)
Kondabattini, Ganeshf3dca962016-08-10 20:03:46 +05305177#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE_MAX (300000)
Dustin Brown9a9437f2017-05-17 16:34:01 -07005178#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE_DEFAULT (2000)
Ryan Hsucb118cf2015-11-09 16:03:53 -08005179
5180#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE "gEGAPWaitTime"
5181#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE_MIN (0)
Kondabattini, Ganeshf3dca962016-08-10 20:03:46 +05305182#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE_MAX (300000)
Dustin Brown9a9437f2017-05-17 16:34:01 -07005183#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE_DEFAULT (150)
Ryan Hsucb118cf2015-11-09 16:03:53 -08005184
5185#define CFG_ENABLE_EGAP_FLAGS_FEATURE "gEGAPFeatures"
5186#define CFG_ENABLE_EGAP_FLAGS_FEATURE_MIN (0)
5187#define CFG_ENABLE_EGAP_FLAGS_FEATURE_MAX (15)
Dustin Brown9a9437f2017-05-17 16:34:01 -07005188#define CFG_ENABLE_EGAP_FLAGS_FEATURE_DEFAULT (3)
Ryan Hsucb118cf2015-11-09 16:03:53 -08005189/* end Enhanced Green AP flags/params */
5190
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005191#endif
5192
5193#ifdef FEATURE_WLAN_FORCE_SAP_SCC
Nitesh Shah03161d12016-12-06 18:30:12 +05305194/*
5195 * <ini>
5196 * gSapSccChanAvoidance - Channel avoidance for SAP in SCC.
5197 * @Min: 0
5198 * @Max: 1
5199 * @Default: 0
5200 *
5201 * This ini is used to enable/disable channel avoidance for SAP in SCC
5202 * scenario.
5203 *
5204 * Related: None.
5205 *
5206 * Supported Feature: Concurrency
5207 *
5208 * Usage: Internal/External
5209 *
5210 * </ini>
5211 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305212
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005213#define CFG_SAP_SCC_CHAN_AVOIDANCE "gSapSccChanAvoidance"
5214#define CFG_SAP_SCC_CHAN_AVOIDANCE_MIN (0)
5215#define CFG_SAP_SCC_CHAN_AVOIDANCE_MAX (1)
5216#define CFG_SAP_SCC_CHAN_AVOIDANCE_DEFAULT (0)
5217#endif /* FEATURE_WLAN_FORCE_SAP_SCC */
5218
5219/*
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05305220 * QDF Trace Enable Control
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005221 * Notes:
5222 * the MIN/MAX/DEFAULT values apply for all modules
5223 * the DEFAULT value is outside the valid range. if the DEFAULT
5224 * value is not overridden, then no change will be made to the
5225 * "built in" default values compiled into the code
5226 * values are a bitmap indicating which log levels are to enabled
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05305227 * (must match order of qdf_trace_level enumerations)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005228 * 00000001 FATAL
5229 * 00000010 ERROR
5230 * 00000100 WARN
5231 * 00001000 INFO
5232 * 00010000 INFO HIGH
5233 * 00100000 INFO MED
5234 * 01000000 INFO LOW
5235 * 10000000 DEBUG
5236 *
5237 * hence a value of 0xFF would set all bits (enable all logs)
5238 */
5239
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05305240#define CFG_QDF_TRACE_ENABLE_WDI_NAME "qdf_trace_enable_wdi"
5241#define CFG_QDF_TRACE_ENABLE_HDD_NAME "qdf_trace_enable_hdd"
5242#define CFG_QDF_TRACE_ENABLE_SME_NAME "qdf_trace_enable_sme"
5243#define CFG_QDF_TRACE_ENABLE_PE_NAME "qdf_trace_enable_pe"
5244#define CFG_QDF_TRACE_ENABLE_PMC_NAME "qdf_trace_enable_pmc"
5245#define CFG_QDF_TRACE_ENABLE_WMA_NAME "qdf_trace_enable_wma"
5246#define CFG_QDF_TRACE_ENABLE_SYS_NAME "qdf_trace_enable_sys"
5247#define CFG_QDF_TRACE_ENABLE_QDF_NAME "qdf_trace_enable_qdf"
5248#define CFG_QDF_TRACE_ENABLE_SAP_NAME "qdf_trace_enable_sap"
5249#define CFG_QDF_TRACE_ENABLE_HDD_SAP_NAME "qdf_trace_enable_hdd_sap"
5250#define CFG_QDF_TRACE_ENABLE_BMI_NAME "qdf_trace_enable_bmi"
5251#define CFG_QDF_TRACE_ENABLE_CFG_NAME "qdf_trace_enable_cfg"
5252#define CFG_QDF_TRACE_ENABLE_EPPING "qdf_trace_enable_epping"
5253#define CFG_QDF_TRACE_ENABLE_QDF_DEVICES "qdf_trace_enable_qdf_devices"
5254#define CFG_QDF_TRACE_ENABLE_TXRX_NAME "cfd_trace_enable_txrx"
5255#define CFG_QDF_TRACE_ENABLE_HTC_NAME "qdf_trace_enable_htc"
5256#define CFG_QDF_TRACE_ENABLE_HIF_NAME "qdf_trace_enable_hif"
5257#define CFG_CDR_TRACE_ENABLE_HDD_SAP_DATA_NAME "qdf_trace_enable_hdd_sap_data"
5258#define CFG_QDF_TRACE_ENABLE_HDD_DATA_NAME "qdf_trace_enable_hdd_data"
Naveen Rawat7df31862017-03-01 17:09:30 -08005259#define CFG_QDF_TRACE_ENABLE_WIFI_POS "qdf_trace_enable_wifi_pos"
Naveen Rawatf2b0dbd2017-03-27 10:00:15 -07005260#define CFG_QDF_TRACE_ENABLE_NAN "qdf_trace_enable_nan"
Kiran Kumar Lokere798de7e2017-03-30 14:01:12 -07005261#define CFG_QDF_TRACE_ENABLE_REGULATORY "qdf_trace_enable_regulatory"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005262
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05305263#define CFG_QDF_TRACE_ENABLE_MIN (0)
5264#define CFG_QDF_TRACE_ENABLE_MAX (0xff)
5265#define CFG_QDF_TRACE_ENABLE_DEFAULT (0xffff)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005266
5267#define HDD_MCASTBCASTFILTER_FILTER_NONE 0x00
5268#define HDD_MCASTBCASTFILTER_FILTER_ALL_MULTICAST 0x01
5269#define HDD_MCASTBCASTFILTER_FILTER_ALL_BROADCAST 0x02
5270#define HDD_MCASTBCASTFILTER_FILTER_ALL_MULTICAST_BROADCAST 0x03
5271#define HDD_MULTICAST_FILTER_LIST 0x04
5272#define HDD_MULTICAST_FILTER_LIST_CLEAR 0x05
5273
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005274/*
5275 * Enable Dynamic DTIM
5276 * Options
5277 * 0 -Disable DynamicDTIM
5278 * 1 to 5 - SLM will switch to DTIM specified here when host suspends and
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08005279 * switch DTIM1 when host resumes
5280 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005281#define CFG_ENABLE_DYNAMIC_DTIM_NAME "gEnableDynamicDTIM"
5282#define CFG_ENABLE_DYNAMIC_DTIM_MIN (0)
Rajeev Kumar Sirasanagandla4a716ad2016-10-18 18:16:33 +05305283#define CFG_ENABLE_DYNAMIC_DTIM_MAX (9)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005284#define CFG_ENABLE_DYNAMIC_DTIM_DEFAULT (0)
5285
5286/*
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005287 * Driver Force ACS is reintroduced for android SAP legacy configuration method.
5288 * If Driver force acs is enabled, channel/ hw config from hostapd is ignored.
5289 * Driver uses INI params dot11Mode, channel bonding mode and vht chan width
5290 * to derive ACS HW mode and operating BW.
5291 *
5292 * Non android platforms shall not use force ACS method and rely on hostapd
5293 * driven ACS method for concurrent SAP ACS configuration, OBSS etc.
5294 */
5295#define CFG_FORCE_SAP_ACS "gApAutoChannelSelection"
5296#define CFG_FORCE_SAP_ACS_MIN (0)
5297#define CFG_FORCE_SAP_ACS_MAX (1)
5298#define CFG_FORCE_SAP_ACS_DEFAULT (0)
5299
5300#define CFG_FORCE_SAP_ACS_START_CH "gAPChannelSelectStartChannel"
5301#define CFG_FORCE_SAP_ACS_START_CH_MIN (0)
5302#define CFG_FORCE_SAP_ACS_START_CH_MAX (0xFF)
5303#define CFG_FORCE_SAP_ACS_START_CH_DEFAULT (1)
5304
5305#define CFG_FORCE_SAP_ACS_END_CH "gAPChannelSelectEndChannel"
5306#define CFG_FORCE_SAP_ACS_END_CH_MIN (0)
5307#define CFG_FORCE_SAP_ACS_END_CH_MAX (0xFF)
5308#define CFG_FORCE_SAP_ACS_END_CH_DEFAULT (11)
5309
5310/*
5311 * Skip DFS Channel in case of P2P Search
5312 * Options
5313 * 0 - Don't Skip DFS Channel in case of P2P Search
5314 * 1 - Skip DFS Channel in case of P2P Search
5315 */
Kapil Gupta825f1ba2017-01-03 12:24:01 +05305316/*
5317 * <ini>
5318 * gSkipDfsChannelInP2pSearch - Skip DFS Channel in case of P2P Search
5319 * @Min: 0
5320 * @Max: 1
5321 * @Default: 1
5322 *
5323 * This ini is used to to disable(skip) dfs channel in p2p search.
5324 * Related: NA.
5325 *
5326 * Supported Feature: DFS P2P
5327 *
5328 * Usage: Internal/External
5329 *
5330 * </ini>
5331 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005332#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_NAME "gSkipDfsChannelInP2pSearch"
5333#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_MIN (0)
5334#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_MAX (1)
5335#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_DEFAULT (1)
5336
5337/*
5338 * Ignore Dynamic Dtim in case of P2P
5339 * Options
5340 * 0 - Consider Dynamic Dtim incase of P2P
5341 * 1 - Ignore Dynamic Dtim incase of P2P
5342 */
5343#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_NAME "gIgnoreDynamicDtimInP2pMode"
5344#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_MIN (0)
5345#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_MAX (1)
5346#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_DEFAULT (0)
5347
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305348/*
5349 * <ini>
5350 * gShortGI40Mhz - It will check gShortGI20Mhz and
5351 * gShortGI40Mhz from session entry
5352 * @Min: 0
5353 * @Max: 1
5354 * @Default: 1
5355 *
5356 * This ini is used to set default gShortGI40Mhz
5357 *
5358 * Related: None
5359 *
5360 * Supported Feature: STA
5361 *
5362 * Usage: Internal/External
5363 *
5364 * </ini>
5365 */
5366
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005367#define CFG_SHORT_GI_40MHZ_NAME "gShortGI40Mhz"
5368#define CFG_SHORT_GI_40MHZ_MIN 0
5369#define CFG_SHORT_GI_40MHZ_MAX 1
5370#define CFG_SHORT_GI_40MHZ_DEFAULT 1
5371
5372/*
Nitesh Shah03161d12016-12-06 18:30:12 +05305373 * <ini>
5374 * gEnableMCCMode - Enable/Disable MCC feature.
5375 * @Min: 0
5376 * @Max: 1
5377 * @Default: 1
5378 *
5379 * This ini is used to enable/disable MCC feature.
5380 *
5381 * Related: None.
5382 *
5383 * Supported Feature: Concurrency
5384 *
5385 * Usage: Internal/External
5386 *
5387 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005388 */
5389#define CFG_ENABLE_MCC_ENABLED_NAME "gEnableMCCMode"
5390#define CFG_ENABLE_MCC_ENABLED_MIN (0)
5391#define CFG_ENABLE_MCC_ENABLED_MAX (1)
5392#define CFG_ENABLE_MCC_ENABLED_DEFAULT (1)
5393
5394/*
Nitesh Shah03161d12016-12-06 18:30:12 +05305395 * <ini>
5396 * gAllowMCCGODiffBI - Allow GO in MCC mode to accept different beacon interval
5397 * than STA's.
5398 * @Min: 0
5399 * @Max: 4
5400 * @Default: 4
5401 *
5402 * This ini is used to allow GO in MCC mode to accept different beacon interval
5403 * than STA's.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005404 * Added for Wi-Fi Cert. 5.1.12
Nitesh Shah03161d12016-12-06 18:30:12 +05305405 * If gAllowMCCGODiffBI = 1
5406 * Set to 1 for WFA certification. GO Beacon interval is not changed.
5407 * MCC GO doesn't work well in optimized way. In worst scenario, it may
5408 * invite STA disconnection.
5409 * If gAllowMCCGODiffBI = 2
5410 * If set to 2 workaround 1 disassoc all the clients and update beacon
5411 * Interval.
5412 * If gAllowMCCGODiffBI = 3
5413 * If set to 3 tear down the P2P link in auto/Non-autonomous -GO case.
5414 * If gAllowMCCGODiffBI = 4
5415 * If set to 4 don't disconnect the P2P client in autonomous/Non-auto-
5416 * nomous -GO case update the BI dynamically
5417 *
5418 * Related: None.
5419 *
5420 * Supported Feature: Concurrency
5421 *
5422 * Usage: Internal/External
5423 *
5424 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005425 */
5426#define CFG_ALLOW_MCC_GO_DIFF_BI_NAME "gAllowMCCGODiffBI"
5427#define CFG_ALLOW_MCC_GO_DIFF_BI_MIN (0)
5428#define CFG_ALLOW_MCC_GO_DIFF_BI_MAX (4)
5429#define CFG_ALLOW_MCC_GO_DIFF_BI_DEFAULT (4)
5430
Poddar, Siddarthb61cf642016-04-28 16:02:39 +05305431#if defined(CONFIG_HL_SUPPORT) && defined(QCA_BAD_PEER_TX_FLOW_CL)
5432/*
5433 * Enable/Disable Bad Peer TX CTL feature
5434 * Default: Enable
5435 */
5436#define CFG_BAD_PEER_TX_CTL_ENABLE_NAME "gBadPeerTxCtlEnable"
5437#define CFG_BAD_PEER_TX_CTL_ENABLE_MIN (0)
5438#define CFG_BAD_PEER_TX_CTL_ENABLE_MAX (1)
5439#define CFG_BAD_PEER_TX_CTL_ENABLE_DEFAULT (1)
5440
5441#define CFG_BAD_PEER_TX_CTL_PERIOD_NAME "gBadPeerTxCtlPeriod"
5442#define CFG_BAD_PEER_TX_CTL_PERIOD_MIN (10)
5443#define CFG_BAD_PEER_TX_CTL_PERIOD_MAX (10000)
5444#define CFG_BAD_PEER_TX_CTL_PERIOD_DEFAULT (50)
5445
5446#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_NAME "gBadPeerTxCtlTxqLimit"
5447#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_MIN (1)
5448#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_MAX (5000)
5449#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_DEFAULT (100)
5450
5451#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_NAME "gBadPeerTxCtlTgtBackoffTime"
5452#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_MIN (1)
5453#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_MAX (5000)
5454#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_DEFAULT (20)
5455
5456#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_NAME "gBadPeerTxCtlTgtReportPeriod"
5457#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_MIN (1)
5458#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_MAX (5000)
5459#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_DEFAULT (500)
5460
5461#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_NAME "gBadPeerTxCtlCondLevelIeeeB"
5462#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_MIN (1)
5463#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_MAX (2)
5464#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_DEFAULT (2)
5465
5466#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_NAME "gBadPeerTxCtlDeltaLevelIeeeB"
5467#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_MIN (1)
5468#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_MAX (11)
5469#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_DEFAULT (2)
5470
5471#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_NAME "gBadPeerTxCtlPctLevelIeeeB"
5472#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_MIN (1)
5473#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_MAX (8)
5474#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_DEFAULT (1)
5475
5476#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_NAME "gBadPeerTxCtlTputLevelIeeeB"
5477#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_MIN (1)
5478#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_MAX (11)
5479#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_DEFAULT (2)
5480
5481#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_NAME "gBadPeerTxCtlTxLimitLevelIeeeB"
5482#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_MIN (0)
5483#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_MAX (50)
5484#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_DEFAULT (3)
5485
5486#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_NAME "gBadPeerTxCtlCondLevelIeeeAG"
5487#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_MIN (1)
5488#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_MAX (2)
5489#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_DEFAULT (2)
5490
5491#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_NAME "gBadPeerTxCtlDeltaLevelIeeeAG"
5492#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_MIN (6)
5493#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_MAX (54)
5494#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_DEFAULT (6)
5495
5496#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_NAME "gBadPeerTxCtlPctLevelIeeeAG"
5497#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_MIN (1)
5498#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_MAX (8)
5499#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_DEFAULT (1)
5500
5501#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_NAME "gBadPeerTxCtlTputLevelIeeeAG"
5502#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_MIN (6)
5503#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_MAX (54)
5504#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_DEFAULT (6)
5505
5506#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_NAME "gBadPeerTxCtlTxLimitLevelIeeeAG"
5507#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_MIN (0)
5508#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_MAX (50)
5509#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_DEFAULT (3)
5510
5511#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_NAME "gBadPeerTxCtlCondLevelIeeeN"
5512#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_MIN (1)
5513#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_MAX (2)
5514#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_DEFAULT (2)
5515
5516#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_NAME "gBadPeerTxCtlDeltaLevelIeeeN"
5517#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_MIN (6)
5518#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_MAX (72)
5519#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_DEFAULT (6)
5520
5521#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_NAME "gBadPeerTxCtlPctLevelIeeeN"
5522#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_MIN (1)
5523#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_MAX (8)
5524#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_DEFAULT (1)
5525
5526#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_NAME "gBadPeerTxCtlTputLevelIeeeN"
5527#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_MIN (6)
5528#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_MAX (72)
5529#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_DEFAULT (15)
5530
5531#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_NAME "gBadPeerTxCtlTxLimitLevelIeeeN"
5532#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_MIN (0)
5533#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_MAX (50)
5534#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_DEFAULT (3)
5535
5536#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_NAME "gBadPeerTxCtlCondLevelIeeeAC"
5537#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_MIN (1)
5538#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_MAX (2)
5539#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_DEFAULT (2)
5540
5541#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_NAME "gBadPeerTxCtlDeltaLevelIeeeAC"
5542#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_MIN (6)
5543#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_MAX (433)
5544#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_DEFAULT (6)
5545
5546#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_NAME "gBadPeerTxCtlPctLevelIeeeAC"
5547#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_MIN (1)
5548#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_MAX (8)
5549#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_DEFAULT (1)
5550
5551#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_NAME "gBadPeerTxCtlTputLevelIeeeAC"
5552#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_MIN (6)
5553#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_MAX (433)
5554#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_DEFAULT (15)
5555
5556#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_NAME "gBadPeerTxCtlTxLimitLevelIeeeAC"
5557#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_MIN (0)
5558#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_MAX (50)
5559#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_DEFAULT (3)
5560#endif
5561
5562
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005563/*
5564 * Enable/Disable Thermal Mitigation feature
5565 * Default: Enable
5566 */
5567#define CFG_THERMAL_MIGRATION_ENABLE_NAME "gThermalMitigationEnable"
5568#define CFG_THERMAL_MIGRATION_ENABLE_MIN (0)
5569#define CFG_THERMAL_MIGRATION_ENABLE_MAX (1)
Manjeet Singhbcd1cfd2017-01-11 15:15:14 +05305570#define CFG_THERMAL_MIGRATION_ENABLE_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005571
5572#define CFG_THROTTLE_PERIOD_NAME "gThrottlePeriod"
5573#define CFG_THROTTLE_PERIOD_MIN (10)
5574#define CFG_THROTTLE_PERIOD_MAX (10000)
5575#define CFG_THROTTLE_PERIOD_DEFAULT (4000)
5576
Poddar, Siddarth83905022016-04-16 17:56:08 -07005577/*
5578 * Configure Throttle Period Different Level Duty Cycle in percentage
5579 * When temperature measured is greater than threshold at particular level,
5580 * then throtling level will get increased by one level and
5581 * will reduce TX duty by the given percentage
5582 */
5583#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_NAME "gThrottleDutyCycleLevel0"
5584#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_MIN (0)
5585#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_MAX (0)
5586#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_DEFAULT (0)
5587
5588#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_NAME "gThrottleDutyCycleLevel1"
5589#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_MIN (0)
5590#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_MAX (100)
5591#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_DEFAULT (50)
5592
5593#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_NAME "gThrottleDutyCycleLevel2"
5594#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_MIN (0)
5595#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_MAX (100)
5596#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_DEFAULT (75)
5597
5598#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_NAME "gThrottleDutyCycleLevel3"
5599#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_MIN (0)
5600#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_MAX (100)
5601#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_DEFAULT (94)
5602
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005603#define CFG_THERMAL_TEMP_MIN_LEVEL0_NAME "gThermalTempMinLevel0"
5604#define CFG_THERMAL_TEMP_MIN_LEVEL0_MIN (0)
5605#define CFG_THERMAL_TEMP_MIN_LEVEL0_MAX (1000)
5606#define CFG_THERMAL_TEMP_MIN_LEVEL0_DEFAULT (0)
5607
5608#define CFG_THERMAL_TEMP_MAX_LEVEL0_NAME "gThermalTempMaxLevel0"
5609#define CFG_THERMAL_TEMP_MAX_LEVEL0_MIN (0)
5610#define CFG_THERMAL_TEMP_MAX_LEVEL0_MAX (1000)
5611#define CFG_THERMAL_TEMP_MAX_LEVEL0_DEFAULT (90)
5612
5613#define CFG_THERMAL_TEMP_MIN_LEVEL1_NAME "gThermalTempMinLevel1"
5614#define CFG_THERMAL_TEMP_MIN_LEVEL1_MIN (0)
5615#define CFG_THERMAL_TEMP_MIN_LEVEL1_MAX (1000)
5616#define CFG_THERMAL_TEMP_MIN_LEVEL1_DEFAULT (70)
5617
5618#define CFG_THERMAL_TEMP_MAX_LEVEL1_NAME "gThermalTempMaxLevel1"
5619#define CFG_THERMAL_TEMP_MAX_LEVEL1_MIN (0)
5620#define CFG_THERMAL_TEMP_MAX_LEVEL1_MAX (1000)
5621#define CFG_THERMAL_TEMP_MAX_LEVEL1_DEFAULT (110)
5622
5623#define CFG_THERMAL_TEMP_MIN_LEVEL2_NAME "gThermalTempMinLevel2"
5624#define CFG_THERMAL_TEMP_MIN_LEVEL2_MIN (0)
5625#define CFG_THERMAL_TEMP_MIN_LEVEL2_MAX (1000)
5626#define CFG_THERMAL_TEMP_MIN_LEVEL2_DEFAULT (90)
5627
5628#define CFG_THERMAL_TEMP_MAX_LEVEL2_NAME "gThermalTempMaxLevel2"
5629#define CFG_THERMAL_TEMP_MAX_LEVEL2_MIN (0)
5630#define CFG_THERMAL_TEMP_MAX_LEVEL2_MAX (1000)
5631#define CFG_THERMAL_TEMP_MAX_LEVEL2_DEFAULT (125)
5632
5633#define CFG_THERMAL_TEMP_MIN_LEVEL3_NAME "gThermalTempMinLevel3"
5634#define CFG_THERMAL_TEMP_MIN_LEVEL3_MIN (0)
5635#define CFG_THERMAL_TEMP_MIN_LEVEL3_MAX (1000)
5636#define CFG_THERMAL_TEMP_MIN_LEVEL3_DEFAULT (110)
5637
5638#define CFG_THERMAL_TEMP_MAX_LEVEL3_NAME "gThermalTempMaxLevel3"
5639#define CFG_THERMAL_TEMP_MAX_LEVEL3_MIN (0)
5640#define CFG_THERMAL_TEMP_MAX_LEVEL3_MAX (1000)
5641#define CFG_THERMAL_TEMP_MAX_LEVEL3_DEFAULT (0)
5642
5643/*
5644 * Enable/Disable Modulated DTIM feature
5645 * Default: Disable
5646 */
5647#define CFG_ENABLE_MODULATED_DTIM_NAME "gEnableModulatedDTIM"
5648#define CFG_ENABLE_MODULATED_DTIM_MIN (0)
5649#define CFG_ENABLE_MODULATED_DTIM_MAX (5)
5650#define CFG_ENABLE_MODULATED_DTIM_DEFAULT (0)
5651
5652/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305653 * <ini>
5654 * gMCAddrListEnable - Enable/Disable Multicast MAC Address List feature
5655 * @Min: 0
5656 * @Max: 1
5657 * @Default: 1
5658 *
5659 * This ini is used to set default MAC Address
Dustin Brownd03bf592016-09-08 14:40:51 -07005660 * Default: Enable
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305661 *
5662 * Related: None
5663 *
5664 * Supported Feature: STA
5665 *
5666 * Usage: Internal/External
5667 *
5668 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005669 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305670
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005671#define CFG_MC_ADDR_LIST_ENABLE_NAME "gMCAddrListEnable"
5672#define CFG_MC_ADDR_LIST_ENABLE_MIN (0)
5673#define CFG_MC_ADDR_LIST_ENABLE_MAX (1)
Dustin Brownd03bf592016-09-08 14:40:51 -07005674#define CFG_MC_ADDR_LIST_ENABLE_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005675
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305676/*
5677 * <ini>
5678 * gEnableRXSTBC - Enables/disables Rx STBC capability in STA mode
5679 * @Min: 0
5680 * @Max: 1
5681 * @Default: 1
5682 *
5683 * This ini is used to set default Rx STBC capability
5684 *
5685 * Related: None
5686 *
5687 * Supported Feature: STA
5688 *
5689 * Usage: Internal/External
5690 *
5691 * </ini>
5692 */
5693
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005694#define CFG_ENABLE_RX_STBC "gEnableRXSTBC"
5695#define CFG_ENABLE_RX_STBC_MIN (0)
5696#define CFG_ENABLE_RX_STBC_MAX (1)
5697#define CFG_ENABLE_RX_STBC_DEFAULT (1)
5698
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305699/*
5700 * <ini>
5701 * gEnableTXSTBC - Enables/disables Tx STBC capability in STA mode
5702 * @Min: 0
5703 * @Max: 1
5704 * @Default: 0
5705 *
5706 * This ini is used to set default Tx STBC capability
5707 *
5708 * Related: None
5709 *
5710 * Supported Feature: STA
5711 *
5712 * Usage: Internal/External
5713 *
5714 * </ini>
5715 */
5716
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005717#define CFG_ENABLE_TX_STBC "gEnableTXSTBC"
5718#define CFG_ENABLE_TX_STBC_MIN (0)
5719#define CFG_ENABLE_TX_STBC_MAX (1)
5720#define CFG_ENABLE_TX_STBC_DEFAULT (0)
5721
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305722/*
5723 * <ini>
Hong Shib707b052017-03-08 23:33:14 +08005724 * gMaxHTMCSForTxData - max HT mcs for TX
5725 * @Min: 0
5726 * @Max: 383
5727 * @Default: 0
5728 *
5729 * This ini is used to configure the max HT mcs
5730 * for tx data.
5731 *
5732 * Usage: External
5733 *
5734 * bits 0-15: max HT mcs
5735 * bits 16-31: zero to disable, otherwise enable.
5736 *
5737 * </ini>
5738 */
5739#define CFG_MAX_HT_MCS_FOR_TX_DATA "gMaxHTMCSForTxData"
5740#define CFG_MAX_HT_MCS_FOR_TX_DATA_MIN (WNI_CFG_MAX_HT_MCS_TX_DATA_STAMIN)
5741#define CFG_MAX_HT_MCS_FOR_TX_DATA_MAX (WNI_CFG_MAX_HT_MCS_TX_DATA_STAMAX)
5742#define CFG_MAX_HT_MCS_FOR_TX_DATA_DEFAULT (WNI_CFG_MAX_HT_MCS_TX_DATA_STADEF)
5743
5744/*
5745 * <ini>
5746 * gDisableABGRateForTxData - disable abg rate for tx data
5747 * @Min: 0
5748 * @Max: 1
5749 * @Default: 0
5750 *
5751 * This ini is used to disable abg rate for tx data.
5752 *
5753 * Usage: External
5754 *
5755 * </ini>
5756 */
5757#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA "gDisableABGRateForTxData"
5758#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA_MIN \
5759 (WNI_CFG_DISABLE_ABG_RATE_FOR_TX_DATA_STAMIN)
5760#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA_MAX \
5761 (WNI_CFG_DISABLE_ABG_RATE_FOR_TX_DATA_STAMAX)
5762#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA_DEFAULT \
5763 (WNI_CFG_DISABLE_ABG_RATE_FOR_TX_DATA_STADEF)
5764
5765/*
5766 * <ini>
5767 * gRateForTxMgmt - rate for tx mgmt frame
5768 * @Min: 0x0
5769 * @Max: 0xFF
5770 * @Default: 0xFF
5771 *
5772 * This ini is used to configure the rate for tx
5773 * mgmt frame. Default 0xFF means disable.
5774 *
5775 * Usage: External
5776 *
5777 * </ini>
5778 */
5779#define CFG_RATE_FOR_TX_MGMT "gRateForTxMgmt"
5780#define CFG_RATE_FOR_TX_MGMT_MIN (WNI_CFG_RATE_FOR_TX_MGMT_STAMIN)
5781#define CFG_RATE_FOR_TX_MGMT_MAX (WNI_CFG_RATE_FOR_TX_MGMT_STAMAX)
5782#define CFG_RATE_FOR_TX_MGMT_DEFAULT (WNI_CFG_RATE_FOR_TX_MGMT_STADEF)
5783
Hong Shi2d384fd2017-05-22 18:38:41 +08005784/*
5785 * <ini>
5786 * gRateForTxMgmt2G - rate for tx mgmt frame on 2G
5787 * @Min: 0x0
5788 * @Max: 0xFF
5789 * @Default: 0xFF
5790 *
5791 * This ini is used to configure the rate for tx
5792 * mgmt frame on 2G Band. Default 0xFF means disable.
5793 * It has higher priority and will overwrite gRateForTxMgmt
5794 * setting.
5795 *
5796 * Usage: External
5797 *
5798 * </ini>
5799 */
5800#define CFG_RATE_FOR_TX_MGMT_2G "gRateForTxMgmt2G"
5801#define CFG_RATE_FOR_TX_MGMT_2G_MIN (WNI_CFG_RATE_FOR_TX_MGMT_2G_STAMIN)
5802#define CFG_RATE_FOR_TX_MGMT_2G_MAX (WNI_CFG_RATE_FOR_TX_MGMT_2G_STAMAX)
5803#define CFG_RATE_FOR_TX_MGMT_2G_DEFAULT (WNI_CFG_RATE_FOR_TX_MGMT_2G_STADEF)
5804
5805/*
5806 * <ini>
5807 * gRateForTxMgmt5G - rate for tx mgmt frame on 5G
5808 * @Min: 0x0
5809 * @Max: 0xFF
5810 * @Default: 0xFF
5811 *
5812 * This ini is used to configure the rate for tx
5813 * mgmt frame on 5G Band. Default 0xFF means disable.
5814 * It has higher priority and will overwrite gRateForTxMgmt
5815 * setting.
5816 *
5817 * Usage: External
5818 *
5819 * </ini>
5820 */
5821#define CFG_RATE_FOR_TX_MGMT_5G "gRateForTxMgmt5G"
5822#define CFG_RATE_FOR_TX_MGMT_5G_MIN (WNI_CFG_RATE_FOR_TX_MGMT_5G_STAMIN)
5823#define CFG_RATE_FOR_TX_MGMT_5G_MAX (WNI_CFG_RATE_FOR_TX_MGMT_5G_STAMAX)
5824#define CFG_RATE_FOR_TX_MGMT_5G_DEFAULT (WNI_CFG_RATE_FOR_TX_MGMT_5G_STADEF)
5825
Dustin Brownfe7aa872017-06-26 10:52:08 -07005826/*
5827 * <ini>
5828 * gPreventLinkDown - Enable to prevent bus link from going down
5829 * @Min: 0
5830 * @Max: 1
5831 * @Default: 0
5832 *
5833 * Enable to prevent bus link from going down. Useful for platforms that do not
5834 * (yet) support link down suspend cases.
5835 *
5836 * Related: N/A
5837 *
5838 * Supported Feature: Suspend/Resume
5839 *
5840 * Usage: Internal
5841 *
5842 * </ini>
5843 */
5844#define CFG_PREVENT_LINK_DOWN_NAME "gPreventLinkDown"
5845#define CFG_PREVENT_LINK_DOWN_MIN (0)
5846#define CFG_PREVENT_LINK_DOWN_MAX (1)
5847#define CFG_PREVENT_LINK_DOWN_DEFAULT (0)
5848
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005849#ifdef FEATURE_WLAN_TDLS
Nitesh Shahbb405832016-12-08 12:43:10 +05305850/*
5851 * <ini>
5852 * gEnableTDLSSupport - Enable support for TDLS.
5853 * @Min: 0
5854 * @Max: 1
5855 * @Default: 0
5856 *
5857 * This ini is used to enable/disable TDLS support.
5858 *
5859 * Related: None.
5860 *
5861 * Supported Feature: TDLS
5862 *
5863 * Usage: Internal/External
5864 *
5865 * </ini>
5866 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005867#define CFG_TDLS_SUPPORT_ENABLE "gEnableTDLSSupport"
5868#define CFG_TDLS_SUPPORT_ENABLE_MIN (0)
5869#define CFG_TDLS_SUPPORT_ENABLE_MAX (1)
5870#define CFG_TDLS_SUPPORT_ENABLE_DEFAULT (0)
5871
Nitesh Shahbb405832016-12-08 12:43:10 +05305872/*
5873 * <ini>
5874 * gEnableTDLSImplicitTrigger - Enable Implicit TDLS.
5875 * @Min: 0
5876 * @Max: 1
5877 * @Default: 0
5878 *
5879 * This ini is used to enable/disable implicit TDLS.
5880 * CLD driver initiates TDLS Discovery towards a peer whenever TDLS Setup
5881 * criteria (throughput and RSSI thresholds) is met and then it tears down
5882 * TDLS when teardown criteria (idle packet count and RSSI) is met.
5883 *
5884 * Related: gEnableTDLSSupport.
5885 *
5886 * Supported Feature: TDLS
5887 *
5888 * Usage: Internal/External
5889 *
5890 * </ini>
5891 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005892#define CFG_TDLS_IMPLICIT_TRIGGER "gEnableTDLSImplicitTrigger"
5893#define CFG_TDLS_IMPLICIT_TRIGGER_MIN (0)
5894#define CFG_TDLS_IMPLICIT_TRIGGER_MAX (1)
5895#define CFG_TDLS_IMPLICIT_TRIGGER_DEFAULT (0)
5896
Nitesh Shahbb405832016-12-08 12:43:10 +05305897/*
5898 * <ini>
5899 * gTDLSTxStatsPeriod - TDLS TX statistics time period.
5900 * @Min: 1000
5901 * @Max: 4294967295
5902 * @Default: 2000
5903 *
5904 * This ini is used to configure the time period (in ms) to evaluate whether
5905 * the number of Tx/Rx packets exceeds TDLSTxPacketThreshold and triggers a
5906 * TDLS Discovery request.
5907 *
5908 * Related: gEnableTDLSSupport.
5909 *
5910 * Supported Feature: TDLS
5911 *
5912 * Usage: Internal/External
5913 *
5914 * </ini>
5915 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005916#define CFG_TDLS_TX_STATS_PERIOD "gTDLSTxStatsPeriod"
Nitesh Shah6259b1c2016-09-05 15:50:53 +05305917#define CFG_TDLS_TX_STATS_PERIOD_MIN (1000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005918#define CFG_TDLS_TX_STATS_PERIOD_MAX (4294967295UL)
Nitesh Shah6259b1c2016-09-05 15:50:53 +05305919#define CFG_TDLS_TX_STATS_PERIOD_DEFAULT (2000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005920
Nitesh Shahbb405832016-12-08 12:43:10 +05305921/*
5922 * <ini>
5923 * gTDLSTxPacketThreshold - Tx/Rx Packet threshold for initiating TDLS.
5924 * @Min: 0
5925 * @Max: 4294967295
5926 * @Default: 40
5927 *
5928 * This ini is used to configure the number of Tx/Rx packets during the
5929 * period of gTDLSTxStatsPeriod when exceeded, a TDLS Discovery request
5930 * is triggered.
5931 * Related: gEnableTDLSSupport.
5932 *
5933 * Supported Feature: TDLS
5934 *
5935 * Usage: Internal/External
5936 *
5937 * </ini>
5938 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005939#define CFG_TDLS_TX_PACKET_THRESHOLD "gTDLSTxPacketThreshold"
5940#define CFG_TDLS_TX_PACKET_THRESHOLD_MIN (0)
5941#define CFG_TDLS_TX_PACKET_THRESHOLD_MAX (4294967295UL)
Nitesh Shah6259b1c2016-09-05 15:50:53 +05305942#define CFG_TDLS_TX_PACKET_THRESHOLD_DEFAULT (40)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005943
Nitesh Shahbb405832016-12-08 12:43:10 +05305944/*
5945 * <ini>
5946 * gTDLSMaxDiscoveryAttempt - Attempts for sending TDLS discovery requests.
5947 * @Min: 1
5948 * @Max: 100
5949 * @Default: 5
5950 *
5951 * This ini is used to configure the number of failures of discover request,
5952 * when exceeded, the peer is assumed to be not TDLS capable and no further
5953 * TDLS Discovery request is made.
5954 *
5955 * Related: gEnableTDLSSupport.
5956 *
5957 * Supported Feature: TDLS
5958 *
5959 * Usage: Internal/External
5960 *
5961 * </ini>
5962 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005963#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT "gTDLSMaxDiscoveryAttempt"
5964#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT_MIN (1)
5965#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT_MAX (100)
5966#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT_DEFAULT (5)
5967
Nitesh Shahbb405832016-12-08 12:43:10 +05305968/*
5969 * <ini>
5970 * gTDLSIdleTimeout - Duration within which number of TX / RX frames meet the
5971 * criteria for TDLS teardown.
5972 * @Min: 500
5973 * @Max: 40000
5974 * @Default: 5000
5975 *
5976 * This ini is used to configure the time period (in ms) to evaluate whether
5977 * the number of Tx/Rx packets exceeds gTDLSIdlePacketThreshold and thus meets
5978 * criteria for TDLS teardown.
5979 * Teardown notification interval (gTDLSIdleTimeout) should be multiple of
5980 * setup notification (gTDLSTxStatsPeriod) interval.
5981 * e.g.
5982 * if setup notification (gTDLSTxStatsPeriod) interval = 500, then
5983 * teardown notification (gTDLSIdleTimeout) interval should be 1000,
5984 * 1500, 2000, 2500...
5985 *
5986 * Related: gEnableTDLSSupport.
5987 *
5988 * Supported Feature: TDLS
5989 *
5990 * Usage: Internal/External
5991 *
5992 * </ini>
Kabilan Kannanca670be2015-11-23 01:56:12 -08005993 */
5994#define CFG_TDLS_IDLE_TIMEOUT "gTDLSIdleTimeout"
5995#define CFG_TDLS_IDLE_TIMEOUT_MIN (500)
5996#define CFG_TDLS_IDLE_TIMEOUT_MAX (40000)
Kabilan Kannan2ccd9e62015-11-29 16:04:05 -08005997#define CFG_TDLS_IDLE_TIMEOUT_DEFAULT (5000)
Kabilan Kannanca670be2015-11-23 01:56:12 -08005998
5999
Nitesh Shahbb405832016-12-08 12:43:10 +05306000/*
6001 * <ini>
6002 * gTDLSIdlePacketThreshold - Number of idle packet.
6003 * @Min: 0
6004 * @Max: 40000
6005 * @Default: 3
6006 *
6007 * This ini is used to configure the number of Tx/Rx packet, below which
6008 * within last gTDLSTxStatsPeriod period is considered as idle condition.
6009 *
6010 * Related: gEnableTDLSSupport.
6011 *
6012 * Supported Feature: TDLS
6013 *
6014 * Usage: Internal/External
6015 *
6016 * </ini>
6017 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006018#define CFG_TDLS_IDLE_PACKET_THRESHOLD "gTDLSIdlePacketThreshold"
6019#define CFG_TDLS_IDLE_PACKET_THRESHOLD_MIN (0)
6020#define CFG_TDLS_IDLE_PACKET_THRESHOLD_MAX (40000)
Kabilan Kannan2ccd9e62015-11-29 16:04:05 -08006021#define CFG_TDLS_IDLE_PACKET_THRESHOLD_DEFAULT (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006022
Nitesh Shahbb405832016-12-08 12:43:10 +05306023/*
6024 * <ini>
6025 * gTDLSRSSITriggerThreshold - RSSI threshold for TDLS connection.
6026 * @Min: -120
6027 * @Max: 0
6028 * @Default: -75
6029 *
6030 * This ini is used to configure the absolute value (in dB) of the peer RSSI,
6031 * below which a TDLS setup request is triggered.
6032 *
6033 * Related: gEnableTDLSSupport.
6034 *
6035 * Supported Feature: TDLS
6036 *
6037 * Usage: Internal/External
6038 *
6039 * </ini>
6040 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006041#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD "gTDLSRSSITriggerThreshold"
6042#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD_MIN (-120)
6043#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD_MAX (0)
6044#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD_DEFAULT (-75)
6045
Nitesh Shahbb405832016-12-08 12:43:10 +05306046/*
6047 * <ini>
6048 * gTDLSRSSITeardownThreshold - RSSI threshold for TDLS teardown.
6049 * @Min: -120
6050 * @Max: 0
6051 * @Default: -75
6052 *
6053 * This ini is used to configure the absolute value (in dB) of the peer RSSI,
6054 * when exceed, a TDLS teardown is triggered.
6055 *
6056 * Related: gEnableTDLSSupport.
6057 *
6058 * Supported Feature: TDLS
6059 *
6060 * Usage: Internal/External
6061 *
6062 * </ini>
6063 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006064#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD "gTDLSRSSITeardownThreshold"
6065#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_MIN (-120)
6066#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_MAX (0)
6067#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_DEFAULT (-75)
6068
Nitesh Shahbb405832016-12-08 12:43:10 +05306069/*
6070 * <ini>
6071 * gTDLSRSSIDelta - Delta value for the peer RSSI that can trigger teardown.
6072 * @Min: -30
6073 * @Max: 0
6074 * @Default: -20
6075 *
6076 * This ini is used to .
6077 * This ini is used to configure delta for peer RSSI such that if Peer RSSI
6078 * is less than AP RSSI plus delta will trigger a teardown.
6079 *
6080 * Related: gEnableTDLSSupport.
6081 *
6082 * Supported Feature: TDLS
6083 *
6084 * Usage: Internal/External
6085 *
6086 * </ini>
6087 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006088#define CFG_TDLS_RSSI_DELTA "gTDLSRSSIDelta"
6089#define CFG_TDLS_RSSI_DELTA_MIN (-30)
6090#define CFG_TDLS_RSSI_DELTA_MAX (0)
6091#define CFG_TDLS_RSSI_DELTA_DEFAULT (-20)
6092
Nitesh Shahbb405832016-12-08 12:43:10 +05306093/*
6094 * <ini>
6095 * gTDLSUapsdMask - ACs to setup U-APSD for TDLS Sta.
6096 * @Min: 0
6097 * @Max: 0x0F
6098 * @Default: 0x0F
6099 *
6100 * This ini is used to configure the ACs for which mask needs to be enabled.
6101 * 0x1: Background 0x2: Best effort
6102 * 0x4: Video 0x8:Voice
6103 *
6104 * Related: gEnableTDLSSupport.
6105 *
6106 * Supported Feature: TDLS
6107 *
6108 * Usage: Internal/External
6109 *
6110 * </ini>
6111 */
6112#define CFG_TDLS_QOS_WMM_UAPSD_MASK_NAME "gTDLSUapsdMask"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006113#define CFG_TDLS_QOS_WMM_UAPSD_MASK_MIN (0)
6114#define CFG_TDLS_QOS_WMM_UAPSD_MASK_MAX (0x0F)
6115#define CFG_TDLS_QOS_WMM_UAPSD_MASK_DEFAULT (0x0F)
6116
Nitesh Shahbb405832016-12-08 12:43:10 +05306117/*
6118 * <ini>
6119 * gEnableTDLSBufferSta - Controls the TDLS buffer.
6120 * @Min: 0
6121 * @Max: 1
6122 * @Default: 1
6123 *
6124 * This ini is used to control the TDLS buffer.
6125 * Buffer STA is not enabled in CLD 2.0 yet.
6126 *
6127 * Related: gEnableTDLSSupport.
6128 *
6129 * Supported Feature: TDLS
6130 *
6131 * Usage: Internal/External
6132 *
6133 * </ini>
6134 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006135#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE "gEnableTDLSBufferSta"
6136#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_MIN (0)
6137#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_MAX (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006138#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_DEFAULT (1)
6139
Nitesh Shahbb405832016-12-08 12:43:10 +05306140/*
6141 * <ini>
6142 * gTDLSPuapsdInactivityTime - Peer UAPSD Inactivity time.
6143 * @Min: 0
6144 * @Max: 10
6145 * @Default: 0
6146 *
6147 * This ini is used to configure peer uapsd inactivity time.
6148 *
6149 * Related: gEnableTDLSSupport.
6150 *
6151 * Supported Feature: TDLS
6152 *
6153 * Usage: Internal/External
6154 *
6155 * </ini>
6156 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006157#define CFG_TDLS_PUAPSD_INACTIVITY_TIME "gTDLSPuapsdInactivityTime"
6158#define CFG_TDLS_PUAPSD_INACTIVITY_TIME_MIN (0)
6159#define CFG_TDLS_PUAPSD_INACTIVITY_TIME_MAX (10)
6160#define CFG_TDLS_PUAPSD_INACTIVITY_TIME_DEFAULT (0)
6161
Nitesh Shahbb405832016-12-08 12:43:10 +05306162/*
6163 * <ini>
6164 * gTDLSPuapsdRxFrameThreshold - Peer UAPSD Rx frame threshold.
6165 * @Min: 10
6166 * @Max: 20
6167 * @Default: 10
6168 *
6169 * This ini is used to configure maximum Rx frame during SP.
6170 *
6171 * Related: gEnableTDLSSupport.
6172 *
6173 * Supported Feature: TDLS
6174 *
6175 * Usage: Internal/External
6176 *
6177 * </ini>
6178 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006179#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD "gTDLSPuapsdRxFrameThreshold"
6180#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_MIN (10)
6181#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_MAX (20)
6182#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_DEFAULT (10)
6183
Nitesh Shahbb405832016-12-08 12:43:10 +05306184/*
6185 * <ini>
6186 * gTDLSPuapsdPTIWindow - This ini is used to configure peer traffic indication
6187 * window.
6188 * @Min: 1
6189 * @Max: 5
6190 * @Default: 2
6191 *
6192 * This ini is used to configure buffering time in number of beacon intervals.
6193 *
6194 * Related: gEnableTDLSSupport.
6195 *
6196 * Supported Feature: TDLS
6197 *
6198 * Usage: Internal/External
6199 *
6200 * </ini>
6201 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006202#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW "gTDLSPuapsdPTIWindow"
6203#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW_MIN (1)
6204#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW_MAX (5)
6205#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW_DEFAULT (2)
6206
Nitesh Shahbb405832016-12-08 12:43:10 +05306207/*
6208 * <ini>
6209 * gTDLSPuapsdPTRTimeout - Peer Traffic Response timer duration in ms.
6210 * @Min: 0
6211 * @Max: 10000
6212 * @Default: 5000
6213 *
6214 * This ini is used to configure the peer traffic response timer duration
6215 * in ms.
6216 *
6217 * Related: gEnableTDLSSupport.
6218 *
6219 * Supported Feature: TDLS
6220 *
6221 * Usage: Internal/External
6222 *
6223 * </ini>
6224 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006225#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT "gTDLSPuapsdPTRTimeout"
6226#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT_MIN (0)
6227#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT_MAX (10000)
6228#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT_DEFAULT (5000)
6229
Nitesh Shahbb405832016-12-08 12:43:10 +05306230/*
6231 * <ini>
6232 * gTDLSExternalControl - Enable external TDLS control.
6233 * @Min: 0
6234 * @Max: 1
6235 * @Default: 1
6236 *
6237 * This ini is used to enable/disable external TDLS control.
6238 * TDLS external control works with TDLS implicit trigger. TDLS external
6239 * control allows a user to add a MAC address of potential TDLS peers so
6240 * that the CLD driver can initiate implicit TDLS setup to only those peers
6241 * when criteria for TDLS setup (throughput and RSSI threshold) is met.
6242 *
6243 * Related: gEnableTDLSSupport, gEnableTDLSImplicitTrigger.
6244 *
6245 * Supported Feature: TDLS
6246 *
6247 * Usage: Internal/External
6248 *
6249 * </ini>
6250 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006251#define CFG_TDLS_EXTERNAL_CONTROL "gTDLSExternalControl"
6252#define CFG_TDLS_EXTERNAL_CONTROL_MIN (0)
6253#define CFG_TDLS_EXTERNAL_CONTROL_MAX (1)
Nishank Aggarwal3f898912016-10-13 17:36:16 +05306254#define CFG_TDLS_EXTERNAL_CONTROL_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006255
Nitesh Shahbb405832016-12-08 12:43:10 +05306256/*
6257 * <ini>
6258 * gEnableTDLSOffChannel - Enables off-channel support for TDLS link.
6259 * @Min: 0
6260 * @Max: 1
6261 * @Default: 0
6262 *
6263 * This ini is used to enable/disable off-channel support for TDLS link.
6264 *
6265 * Related: gEnableTDLSSupport.
6266 *
6267 * Supported Feature: TDLS
6268 *
6269 * Usage: Internal/External
6270 *
6271 * </ini>
6272 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006273#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE "gEnableTDLSOffChannel"
6274#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_MIN (0)
6275#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_MAX (1)
6276#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_DEFAULT (0)
6277
Nitesh Shahbb405832016-12-08 12:43:10 +05306278/*
6279 * <ini>
6280 * gEnableTDLSWmmMode - Enables WMM support over TDLS link.
6281 * @Min: 0
6282 * @Max: 1
6283 * @Default: 1
6284 *
6285 * This ini is used to enable/disable WMM support over TDLS link.
6286 * This is required to be set to 1 for any TDLS and uAPSD functionality.
6287 *
6288 * Related: gEnableTDLSSupport.
6289 *
6290 * Supported Feature: TDLS
6291 *
6292 * Usage: Internal/External
6293 *
6294 * </ini>
6295 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006296#define CFG_TDLS_WMM_MODE_ENABLE "gEnableTDLSWmmMode"
6297#define CFG_TDLS_WMM_MODE_ENABLE_MIN (0)
6298#define CFG_TDLS_WMM_MODE_ENABLE_MAX (1)
6299#define CFG_TDLS_WMM_MODE_ENABLE_DEFAULT (1)
6300
Nitesh Shahbb405832016-12-08 12:43:10 +05306301/*
6302 * <ini>
6303 * gTDLSPrefOffChanNum - Preferred TDLS channel number when off-channel support
6304 * is enabled.
6305 * @Min: 1
6306 * @Max: 165
6307 * @Default: 36
6308 *
6309 * This ini is used to configure preferred TDLS channel number when off-channel
6310 * support is enabled.
6311 *
6312 * Related: gEnableTDLSSupport, gEnableTDLSOffChannel.
6313 *
6314 * Supported Feature: TDLS
6315 *
6316 * Usage: Internal/External
6317 *
6318 * </ini>
6319 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006320#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM "gTDLSPrefOffChanNum"
6321#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM_MIN (1)
6322#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM_MAX (165)
6323#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM_DEFAULT (36)
6324
Nitesh Shahbb405832016-12-08 12:43:10 +05306325/*
6326 * <ini>
6327 * gTDLSPrefOffChanBandwidth - Preferred TDLS channel bandwidth when
6328 * off-channel support is enabled.
Kabilan Kannan4a6b5e72017-02-08 10:38:30 -08006329 * @Min: 0x01
Nitesh Shahbb405832016-12-08 12:43:10 +05306330 * @Max: 0x0F
6331 * @Default: 0x07
6332 *
6333 * This ini is used to configure preferred TDLS channel bandwidth when
6334 * off-channel support is enabled.
6335 * 0x1: 20 MHz 0x2: 40 MHz 0x4: 80 MHz 0x8: 160 MHz
6336 * When more than one bits are set then firmware starts from the highest and
6337 * selects one based on capability of peer.
6338 *
6339 * Related: gEnableTDLSSupport, gEnableTDLSOffChannel.
6340 *
6341 * Supported Feature: TDLS
6342 *
6343 * Usage: Internal/External
6344 *
6345 * </ini>
6346 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006347#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW "gTDLSPrefOffChanBandwidth"
Kabilan Kannan4a6b5e72017-02-08 10:38:30 -08006348#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW_MIN (0x01)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006349#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW_MAX (0x0F)
6350#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW_DEFAULT (0x07)
6351
Nitesh Shahbb405832016-12-08 12:43:10 +05306352/*
6353 * <ini>
6354 * gEnableTDLSScan - Allow scan and maintain TDLS link.
6355 * @Min: 0
6356 * @Max: 1
6357 * @Default: 0
6358 *
6359 * This ini is used to enable/disable TDLS scan.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006360 * 0: If peer is not buffer STA capable and device is not sleep STA
6361 * capable, then teardown TDLS link when scan is initiated. If peer
6362 * is buffer STA and we can be sleep STA then TDLS link is maintained
6363 * during scan.
6364 * 1: Maintain TDLS link and allow scan even if peer is not buffer STA
6365 * capable and device is not sleep STA capable. There will be loss of
6366 * Rx pkts since peer would not know when device moves away from tdls
6367 * channel. Tx on TDLS link would stop when device moves away from tdls
6368 * channel.
Nitesh Shahbb405832016-12-08 12:43:10 +05306369 *
6370 * Related: gEnableTDLSSupport.
6371 *
6372 * Supported Feature: TDLS
6373 *
6374 * Usage: Internal/External
6375 *
6376 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006377 */
6378#define CFG_TDLS_SCAN_ENABLE "gEnableTDLSScan"
6379#define CFG_TDLS_SCAN_ENABLE_MIN (0)
6380#define CFG_TDLS_SCAN_ENABLE_MAX (1)
6381#define CFG_TDLS_SCAN_ENABLE_DEFAULT (0)
Kabilan Kannan421714b2015-11-23 04:44:59 -08006382
Nitesh Shahbb405832016-12-08 12:43:10 +05306383/*
6384 * <ini>
6385 * gTDLSPeerKickoutThreshold - TDLS peer kickout threshold to firmware.
6386 * @Min: 10
6387 * @Max: 5000
6388 * @Default: 96
6389 *
6390 * This ini is used to configure TDLS peer kickout threshold to firmware.
Kabilan Kannan421714b2015-11-23 04:44:59 -08006391 * Firmware will use this value to determine, when to send TDLS
6392 * peer kick out event to host.
6393 * E.g.
6394 * if peer kick out threshold is 10, then firmware will wait for 10
6395 * consecutive packet failures and then send TDLS kickout
6396 * notification to host driver
Nitesh Shahbb405832016-12-08 12:43:10 +05306397 *
6398 * Related: gEnableTDLSSupport.
6399 *
6400 * Supported Feature: TDLS
6401 *
6402 * Usage: Internal/External
6403 *
6404 * </ini>
Kabilan Kannan421714b2015-11-23 04:44:59 -08006405 */
6406#define CFG_TDLS_PEER_KICKOUT_THRESHOLD "gTDLSPeerKickoutThreshold"
6407#define CFG_TDLS_PEER_KICKOUT_THRESHOLD_MIN (10)
6408#define CFG_TDLS_PEER_KICKOUT_THRESHOLD_MAX (5000)
6409#define CFG_TDLS_PEER_KICKOUT_THRESHOLD_DEFAULT (96)
6410
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006411#endif
6412
Nitesh Shah61c10d92016-10-19 19:29:15 +05306413/*
6414 * <ini>
6415 * gTDLSEnableDeferTime - Timer to defer for enabling TDLS on P2P listen.
Ganesh Kondabattiniacaf8a92017-07-19 11:53:09 +05306416 * @Min: 500
Nitesh Shah61c10d92016-10-19 19:29:15 +05306417 * @Max: 6000
Ganesh Kondabattiniacaf8a92017-07-19 11:53:09 +05306418 * @Default: 2000
Nitesh Shah61c10d92016-10-19 19:29:15 +05306419 *
6420 * This ini is used to set the timer to defer for enabling TDLS on P2P
6421 * listen (value in milliseconds).
6422 *
6423 * Related: gEnableTDLSSupport.
6424 *
6425 * Supported Feature: TDLS
6426 *
6427 * Usage: Internal/External
6428 *
6429 * </ini>
6430 */
6431#define CFG_TDLS_ENABLE_DEFER_TIMER "gTDLSEnableDeferTime"
Ganesh Kondabattiniacaf8a92017-07-19 11:53:09 +05306432#define CFG_TDLS_ENABLE_DEFER_TIMER_MIN (500)
Nitesh Shah61c10d92016-10-19 19:29:15 +05306433#define CFG_TDLS_ENABLE_DEFER_TIMER_MAX (6000)
Ganesh Kondabattiniacaf8a92017-07-19 11:53:09 +05306434#define CFG_TDLS_ENABLE_DEFER_TIMER_DEFAULT (2000)
Nitesh Shah61c10d92016-10-19 19:29:15 +05306435
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006436/* Enable/Disable LPWR Image(cMEM uBSP) Transition */
6437#define CFG_ENABLE_LPWR_IMG_TRANSITION_NAME "gEnableLpwrImgTransition"
6438#define CFG_ENABLE_LPWR_IMG_TRANSITION_MIN (0)
6439#define CFG_ENABLE_LPWR_IMG_TRANSITION_MAX (1)
6440#define CFG_ENABLE_LPWR_IMG_TRANSITION_DEFAULT (0)
6441
Krunal Sonia2c0e412017-05-04 14:12:41 +05306442/*
6443 * <ini>
6444 * gTxLdpcEnable - Config Param to enable Tx LDPC capability
6445 * @Min: 0
6446 * @Max: 3
6447 * @Default: 3
6448 *
6449 * This ini is used to enable/disable Tx LDPC capability
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006450 * 0 - disable
6451 * 1 - HT LDPC enable
6452 * 2 - VHT LDPC enable
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08006453 * 3 - HT & VHT LDPC enable
Krunal Sonia2c0e412017-05-04 14:12:41 +05306454 *
6455 * Related: STA/SAP/P2P/IBSS/NAN.
6456 *
6457 * Supported Feature: Concurrency/Standalone
6458 *
6459 * Usage: Internal/External
6460 *
6461 * </ini>
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08006462 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006463#define CFG_TX_LDPC_ENABLE_FEATURE "gTxLdpcEnable"
6464#define CFG_TX_LDPC_ENABLE_FEATURE_MIN (0)
6465#define CFG_TX_LDPC_ENABLE_FEATURE_MAX (3)
Kiran Kumar Lokere333a9952016-03-01 15:40:23 -08006466#define CFG_TX_LDPC_ENABLE_FEATURE_DEFAULT (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006467
6468/*
Nitesh Shah03161d12016-12-06 18:30:12 +05306469 * <ini>
Krunal Sonia2c0e412017-05-04 14:12:41 +05306470 * gEnableRXLDPC - Config Param to enable Rx LDPC capability
6471 * @Min: 0
6472 * @Max: 1
6473 * @Default: 0
6474 *
6475 * This ini is used to enable/disable Rx LDPC capability
6476 *
6477 * Related: STA/SAP/P2P/IBSS/NAN.
6478 *
6479 * Supported Feature: Concurrency/Standalone
6480 *
6481 * Usage: Internal/External
6482 *
6483 * </ini>
6484 */
6485
6486#define CFG_ENABLE_RX_LDPC "gEnableRXLDPC"
6487#define CFG_ENABLE_RX_LDPC_MIN (0)
6488#define CFG_ENABLE_RX_LDPC_MAX (1)
6489#define CFG_ENABLE_RX_LDPC_DEFAULT (0)
6490
6491/*
6492 * <ini>
Nitesh Shah03161d12016-12-06 18:30:12 +05306493 * gEnableMCCAdaptiveScheduler - MCC Adaptive Scheduler feature.
6494 * @Min: 0
6495 * @Max: 1
6496 * @Default: 1
6497 *
6498 * This ini is used to enable/disable MCC Adaptive Scheduler feature.
6499 *
6500 * Related: None.
6501 *
6502 * Supported Feature: Concurrency
6503 *
6504 * Usage: Internal/External
6505 *
6506 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006507 */
6508#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_NAME "gEnableMCCAdaptiveScheduler"
6509#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_MIN (0)
6510#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_MAX (1)
6511#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_DEFAULT (1)
6512
6513#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE "gTxBFEnable"
6514#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_MIN (WNI_CFG_VHT_SU_BEAMFORMEE_CAP_STAMIN)
6515#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_MAX (WNI_CFG_VHT_SU_BEAMFORMEE_CAP_STAMAX)
6516#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_DEFAULT (WNI_CFG_VHT_SU_BEAMFORMEE_CAP_STADEF)
6517
Kiran Kumar Lokere5302ab62015-12-16 16:03:16 -08006518/*
6519 * Enable / Disable Tx beamformee in SAP mode
6520 * Default: Disable
6521 */
6522#define CFG_VHT_ENABLE_TXBF_SAP_MODE "gEnableTxBFeeSAP"
6523#define CFG_VHT_ENABLE_TXBF_SAP_MODE_MIN (0)
6524#define CFG_VHT_ENABLE_TXBF_SAP_MODE_MAX (1)
6525#define CFG_VHT_ENABLE_TXBF_SAP_MODE_DEFAULT (0)
6526
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006527#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED "gTxBFCsnValue"
6528#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_MIN (WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_STAMIN)
6529#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_MAX (WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_STAMAX - 1)
Nachiket Kukade8b4bfd82017-05-25 18:34:48 +05306530#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_DEFAULT (WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_STADEF - 1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006531
6532#define CFG_VHT_ENABLE_TXBF_IN_20MHZ "gEnableTxBFin20MHz"
6533#define CFG_VHT_ENABLE_TXBF_IN_20MHZ_MIN (0)
6534#define CFG_VHT_ENABLE_TXBF_IN_20MHZ_MAX (1)
6535#define CFG_VHT_ENABLE_TXBF_IN_20MHZ_DEFAULT (0)
6536
Naveen Rawatefa01082015-12-01 12:08:45 -08006537#define CFG_VHT_ENABLE_TX_SU_BEAM_FORMER "gEnableTxSUBeamformer"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006538#define CFG_VHT_ENABLE_TX_SU_BEAM_FORMER_MIN (0)
6539#define CFG_VHT_ENABLE_TX_SU_BEAM_FORMER_MAX (1)
6540#define CFG_VHT_ENABLE_TX_SU_BEAM_FORMER_DEFAULT (0)
6541
6542/* Enable debug for remain on channel issues */
6543#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_NAME "gDebugP2pRemainOnChannel"
6544#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_DEFAULT (0)
6545#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_MIN (0)
6546#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_MAX (1)
6547
6548/*
6549 * SAP ALLOW All Channels
6550 */
6551#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_NAME "gSapAllowAllChannel"
6552#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_MIN (0)
6553#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_MAX (1)
6554#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_DEFAULT (0)
6555
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006556#define CFG_DISABLE_LDPC_WITH_TXBF_AP "gDisableLDPCWithTxbfAP"
6557#define CFG_DISABLE_LDPC_WITH_TXBF_AP_MIN (0)
6558#define CFG_DISABLE_LDPC_WITH_TXBF_AP_MAX (1)
6559#define CFG_DISABLE_LDPC_WITH_TXBF_AP_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006560
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006561/* Parameter to control VHT support in 2.4 GHz band */
6562#define CFG_ENABLE_VHT_FOR_24GHZ_NAME "gEnableVhtFor24GHzBand"
6563#define CFG_ENABLE_VHT_FOR_24GHZ_MIN (0)
6564#define CFG_ENABLE_VHT_FOR_24GHZ_MAX (1)
6565#define CFG_ENABLE_VHT_FOR_24GHZ_DEFAULT (0)
6566
Kapil Gupta4b2efbb2016-10-03 13:07:20 +05306567/*
6568 * Parameter to control VHT support based on vendor ie in 2.4 GHz band
6569 * This parameter will enable SAP to read VHT capability in vendor ie in Assoc
6570 * Req and send VHT caps in Resp to establish connection in VHT Mode.
6571 */
6572#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_NAME "gEnableVendorVhtFor24GHzBand"
6573#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_MIN (0)
6574#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_MAX (1)
6575#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_DEFAULT (1)
6576
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306577/*
6578 * <ini>
6579 * gMaxMediumTime - Set Maximum channel time
6580 * @Min: STAMIN
6581 * @Max: STAMAX
6582 * @Default: STADEF
6583 *
6584 * This ini is used to set default max channel time
6585 *
6586 * Related: None
6587 *
6588 * Supported Feature: STA
6589 *
6590 * Usage: Internal/External
6591 *
6592 * </ini>
6593 */
6594
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006595#define CFG_MAX_MEDIUM_TIME "gMaxMediumTime"
6596#define CFG_MAX_MEDIUM_TIME_STAMIN WNI_CFG_MAX_MEDIUM_TIME_STAMIN
6597#define CFG_MAX_MEDIUM_TIME_STAMAX WNI_CFG_MAX_MEDIUM_TIME_STAMAX
6598#define CFG_MAX_MEDIUM_TIME_STADEFAULT WNI_CFG_MAX_MEDIUM_TIME_STADEF
6599
6600/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306601 * <ini>
6602 * gEnableIbssHeartBeatOffload - Enable heart beat monitoring offload to FW
6603 * @Min: 0
6604 * @Max: 1
6605 * @Default: 1
6606 *
6607 * This ini is used to set default ibbs heartbeat offload
6608 *
6609 * Related: None
6610 *
6611 * Supported Feature: STA
6612 *
6613 * Usage: Internal/External
6614 *
6615 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006616 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306617
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006618#define CFG_ENABLE_HEART_BEAT_OFFLOAD "gEnableIbssHeartBeatOffload"
6619#define CFG_ENABLE_HEART_BEAT_OFFLOAD_MIN (0)
6620#define CFG_ENABLE_HEART_BEAT_OFFLOAD_MAX (1)
6621#define CFG_ENABLE_HEART_BEAT_OFFLOAD_DEFAULT (1)
6622
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306623/*
6624 * <ini>
6625 * gAntennaDiversity - It will use to set Antenna diversity
6626 * @Min: 0
6627 * @Max: 3
6628 * @Default: 0
6629 *
6630 * This ini is used to set default Antenna diversity
6631 *
6632 * Related: None
6633 *
6634 * Supported Feature: STA
6635 *
6636 * Usage: Internal/External
6637 *
6638 * </ini>
6639 */
6640
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006641#define CFG_ANTENNA_DIVERSITY_PARAM_NAME "gAntennaDiversity"
6642#define CFG_ANTENNA_DIVERSITY_PARAM_MIN (0)
6643#define CFG_ANTENNA_DIVERSITY_PARAM_MAX (3)
6644#define CFG_ANTENNA_DIVERSITY_PARAM_DEFAULT (0)
6645
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306646/*
6647 * <ini>
6648 * gEnableSNRMonitoring - Enables SNR Monitoring
6649 * @Min: 0
6650 * @Max: 1
6651 * @Default: 0
6652 *
6653 * This ini is used to set default snr monitor
6654 *
6655 * Related: None
6656 *
6657 * Supported Feature: STA
6658 *
6659 * Usage: Internal/External
6660 *
6661 * </ini>
6662 */
6663
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006664#define CFG_ENABLE_SNR_MONITORING_NAME "gEnableSNRMonitoring"
6665#define CFG_ENABLE_SNR_MONITORING_MIN (0)
6666#define CFG_ENABLE_SNR_MONITORING_MAX (1)
6667#define CFG_ENABLE_SNR_MONITORING_DEFAULT (0)
6668
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306669/*
6670 * <ini>
6671 * gEnableIpTcpUdpChecksumOffload - It enables IP, TCP and UDP checksum
6672 * offload in hardware
6673 * @Min: 0
6674 * @Max: 1
6675 * @Default: DEF
6676 *
6677 * This ini is used to enable IP, TCP and UDP checksum offload in hardware
6678 * and also advertise same to network stack
6679 *
6680 * Related: None
6681 *
6682 * Supported Feature: STA
6683 *
6684 * Usage: Internal/External
6685 *
6686 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006687 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306688
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006689#define CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD "gEnableIpTcpUdpChecksumOffload"
6690#define CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD_DISABLE (0)
6691#define CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD_ENABLE (1)
6692#define CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD_DEFAULT (CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD_ENABLE)
6693
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006694#ifdef WLAN_FEATURE_FASTPATH
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306695
6696/*
6697 * <ini>
6698 * gEnableFastPath - Control to enable fastpath feature
6699 *
6700 * @Min: 0
6701 * @Max: 1
6702 * @Default: 0
6703 *
6704 * This ini is used to enable fastpath feature
6705 *
6706 * Supported Feature: Wlan Fastpath Feature
6707 *
6708 * Usage: Internal
6709 *
6710 * </ini>
6711 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006712#define CFG_ENABLE_FASTPATH "gEnableFastPath"
6713#define CFG_ENABLE_FASTPATH_MIN (0)
6714#define CFG_ENABLE_FASTPATH_MAX (1)
6715#define CFG_ENABLE_FASTPATH_DEFAULT (CFG_ENABLE_FASTPATH_MIN)
6716#endif /* WLAN_FEATURE_FASTPATH */
6717
6718/*
6719 * IPA Offload configuration - Each bit enables a feature
6720 * bit0 - IPA Enable
6721 * bit1 - IPA Pre filter enable
6722 * bit2 - IPv6 enable
6723 * bit3 - IPA Resource Manager (RM) enable
6724 * bit4 - IPA Clock scaling enable
6725 */
6726#define CFG_IPA_OFFLOAD_CONFIG_NAME "gIPAConfig"
6727#define CFG_IPA_OFFLOAD_CONFIG_MIN (0)
6728#define CFG_IPA_OFFLOAD_CONFIG_MAX (0xFFFFFFFF)
6729#define CFG_IPA_OFFLOAD_CONFIG_DEFAULT (CFG_IPA_OFFLOAD_CONFIG_MIN)
6730
6731/*
6732 * IPA DESC SIZE
6733 */
6734#define CFG_IPA_DESC_SIZE_NAME "gIPADescSize"
6735#define CFG_IPA_DESC_SIZE_MIN (800)
6736#define CFG_IPA_DESC_SIZE_MAX (8000)
6737#define CFG_IPA_DESC_SIZE_DEFAULT (800)
6738
6739#define CFG_IPA_HIGH_BANDWIDTH_MBPS "gIPAHighBandwidthMbps"
6740#define CFG_IPA_HIGH_BANDWIDTH_MBPS_MIN (200)
6741#define CFG_IPA_HIGH_BANDWIDTH_MBPS_MAX (1000)
6742#define CFG_IPA_HIGH_BANDWIDTH_MBPS_DEFAULT (400)
6743
6744#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS "gIPAMediumBandwidthMbps"
6745#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS_MIN (100)
6746#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS_MAX (400)
6747#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS_DEFAULT (200)
6748
6749#define CFG_IPA_LOW_BANDWIDTH_MBPS "gIPALowBandwidthMbps"
6750#define CFG_IPA_LOW_BANDWIDTH_MBPS_MIN (0)
6751#define CFG_IPA_LOW_BANDWIDTH_MBPS_MAX (100)
6752#define CFG_IPA_LOW_BANDWIDTH_MBPS_DEFAULT (100)
6753
6754/*
6755 * Firmware uart print
6756 */
6757#define CFG_ENABLE_FW_UART_PRINT_NAME "gEnablefwprint"
6758#define CFG_ENABLE_FW_UART_PRINT_DISABLE (0)
6759#define CFG_ENABLE_FW_UART_PRINT_ENABLE (1)
6760#define CFG_ENABLE_FW_UART_PRINT_DEFAULT (CFG_ENABLE_FW_UART_PRINT_DISABLE)
6761
6762/*
6763 * Firmware log
6764 */
6765#define CFG_ENABLE_FW_LOG_NAME "gEnablefwlog"
6766#define CFG_ENABLE_FW_LOG_DISABLE (0)
Yuanyuan Liu7a97b8f2017-01-27 10:42:52 -08006767#define CFG_ENABLE_FW_LOG_WMI (1)
6768#define CFG_ENABLE_FW_LOG_DIAG (2)
Ashish Kumar Dhanotiyaf998a582017-02-20 12:20:41 +05306769#define CFG_ENABLE_FW_LOG_MIN (CFG_ENABLE_FW_LOG_DISABLE)
Yuanyuan Liu7a97b8f2017-01-27 10:42:52 -08006770#define CFG_ENABLE_FW_LOG_MAX (CFG_ENABLE_FW_LOG_DIAG)
Yuanyuan Liu7a97b8f2017-01-27 10:42:52 -08006771#define CFG_ENABLE_FW_LOG_DEFAULT (CFG_ENABLE_FW_LOG_WMI)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006772
6773/*
6774 * Enable/Disable SSR for USB
6775 */
6776#define CFG_ENABLE_FW_SELF_RECOVERY_NAME "gEnableFwSelfRecovery"
6777#define CFG_ENABLE_FW_SELF_RECOVERY_DISABLE (0)
6778#define CFG_ENABLE_FW_SELF_RECOVERY_ENABLE (1)
6779#define CFG_ENABLE_FW_SELF_RECOVERY_DEFAULT (CFG_ENABLE_FW_SELF_RECOVERY_DISABLE)
6780
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006781/* Macro to handle maximum receive AMPDU size configuration */
6782#define CFG_VHT_AMPDU_LEN_EXPONENT_NAME "gVhtAmpduLenExponent"
6783#define CFG_VHT_AMPDU_LEN_EXPONENT_MIN (0)
6784#define CFG_VHT_AMPDU_LEN_EXPONENT_MAX (7)
6785#define CFG_VHT_AMPDU_LEN_EXPONENT_DEFAULT (3)
6786
6787#define CFG_VHT_MPDU_LEN_NAME "gVhtMpduLen"
6788#define CFG_VHT_MPDU_LEN_MIN (0)
6789#define CFG_VHT_MPDU_LEN_MAX (2)
6790#define CFG_VHT_MPDU_LEN_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006791
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006792#define CFG_SAP_MAX_NO_PEERS "gSoftApMaxPeers"
6793#define CFG_SAP_MAX_NO_PEERS_MIN (1)
6794#define CFG_SAP_MAX_NO_PEERS_MAX (32)
6795#define CFG_SAP_MAX_NO_PEERS_DEFAULT (32)
6796
6797/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306798 * <ini>
6799 * gEnableDebugLog - Enable/Disable the Connection related logs
6800 * @Min: 0
6801 * @Max: 0xFF
6802 * @Default: 0x0F
6803 *
6804 * This ini is used to enable/disable the connection related logs
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +05306805 * 0x1 - Enable mgmt pkt logs (excpet probe req/rsp, beacons).
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006806 * 0x2 - Enable EAPOL pkt logs.
6807 * 0x4 - Enable DHCP pkt logs.
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +05306808 * 0x8 - Enable mgmt action frames logs.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006809 * 0x0 - Disable all the above connection related logs.
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306810 * The default value of 0x0F will enable all the above logs
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +05306811 *
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306812 * Related: None
6813 *
6814 * Supported Feature: STA
6815 *
6816 * Usage: Internal/External
6817 *
6818 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006819 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306820
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006821#define CFG_ENABLE_DEBUG_CONNECT_ISSUE "gEnableDebugLog"
6822#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_MIN (0)
6823#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_MAX (0xFF)
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +05306824#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_DEFAULT (0x0F)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006825
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006826/* SAR Thermal limit values for 2g and 5g */
6827
6828#define CFG_SET_TXPOWER_LIMIT2G_NAME "TxPower2g"
6829#define CFG_SET_TXPOWER_LIMIT2G_MIN (0)
6830#define CFG_SET_TXPOWER_LIMIT2G_MAX (30)
Hanumanth Reddy Pothula366fa8e2016-09-07 15:05:17 +05306831#define CFG_SET_TXPOWER_LIMIT2G_DEFAULT (30)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006832
6833#define CFG_SET_TXPOWER_LIMIT5G_NAME "TxPower5g"
6834#define CFG_SET_TXPOWER_LIMIT5G_MIN (0)
6835#define CFG_SET_TXPOWER_LIMIT5G_MAX (30)
Hanumanth Reddy Pothula366fa8e2016-09-07 15:05:17 +05306836#define CFG_SET_TXPOWER_LIMIT5G_DEFAULT (30)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006837
6838#ifdef QCA_LL_LEGACY_TX_FLOW_CONTROL
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306839
6840/*
6841 * <ini>
6842 * TxFlowLowWaterMark - Low watermark for pausing network queues
6843 *
6844 * @Min: 0
6845 * @Max: 1000
6846 * @Default: 300
6847 *
6848 * This ini specifies the low watermark of data packets transmitted
6849 * before pausing netif queues in tx flow path. It is only applicable
6850 * where legacy flow control is used i.e.for Rome.
6851 *
6852 * Related: TxFlowHighWaterMarkOffset, TxFlowMaxQueueDepth,
6853 * TxLbwFlowLowWaterMark, TxLbwFlowHighWaterMarkOffset,
6854 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6855 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6856 *
6857 * Supported Feature: Dynamic Flow Control
6858 *
6859 * Usage: Internal
6860 *
6861 * </ini>
6862 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006863#define CFG_LL_TX_FLOW_LWM "TxFlowLowWaterMark"
6864#define CFG_LL_TX_FLOW_LWM_MIN (0)
6865#define CFG_LL_TX_FLOW_LWM_MAX (1000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006866#define CFG_LL_TX_FLOW_LWM_DEFAULT (300)
6867
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306868/*
6869 * <ini>
6870 * TxFlowHighWaterMarkOffset - High Watermark offset to unpause Netif queues
6871 * @Min: 0
6872 * @Max: 300
6873 * @Default: 94
6874 *
6875 * This ini specifies the offset to upause the netif queues
6876 * when they are paused due to insufficient descriptors as guided by
6877 * ini TxFlowLowWaterMark. It is only applicable where legacy flow control
6878 * is used i.e.for Rome.
6879 *
6880 * Related: TxFlowLowWaterMark, TxFlowMaxQueueDepth,
6881 * TxLbwFlowLowWaterMark, TxLbwFlowHighWaterMarkOffset,
6882 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6883 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6884 *
6885 * Supported Feature: Dynamic Flow Control
6886 *
6887 * Usage: Internal
6888 *
6889 * </ini>
6890 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006891#define CFG_LL_TX_FLOW_HWM_OFFSET "TxFlowHighWaterMarkOffset"
6892#define CFG_LL_TX_FLOW_HWM_OFFSET_MIN (0)
6893#define CFG_LL_TX_FLOW_HWM_OFFSET_MAX (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006894#define CFG_LL_TX_FLOW_HWM_OFFSET_DEFAULT (94)
6895
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306896/*
6897 * <ini>
6898 * TxFlowMaxQueueDepth - Max pause queue depth.
6899 *
6900 * @Min: 400
6901 * @Max: 3500
6902 * @Default: 1500
6903 *
6904 * This ini specifies the max queue pause depth.It is only applicable
6905 * where legacy flow control is used i.e.for Rome.
6906 *
6907 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6908 * TxLbwFlowLowWaterMark, TxLbwFlowHighWaterMarkOffset,
6909 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6910 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6911 *
6912 * Supported Feature: Dynamic Flow Control
6913 *
6914 * Usage: Internal
6915 *
6916 * </ini>
6917 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006918#define CFG_LL_TX_FLOW_MAX_Q_DEPTH "TxFlowMaxQueueDepth"
6919#define CFG_LL_TX_FLOW_MAX_Q_DEPTH_MIN (400)
6920#define CFG_LL_TX_FLOW_MAX_Q_DEPTH_MAX (3500)
6921#define CFG_LL_TX_FLOW_MAX_Q_DEPTH_DEFAULT (1500)
6922
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306923/*
6924 * <ini>
6925 * TxLbwFlowLowWaterMark - Low watermark for pausing network queues
6926 * in low bandwidth band
6927 * @Min: 0
6928 * @Max: 1000
6929 * @Default: 450
6930 *
6931 * This ini specifies the low watermark of data packets transmitted
6932 * before pausing netif queues in tx flow path in low bandwidth band.
6933 * It is only applicable where legacy flow control is used i.e.for Rome.
6934 *
6935 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6936 * TxFlowMaxQueueDepth, TxLbwFlowHighWaterMarkOffset,
6937 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6938 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6939 *
6940 * Supported Feature: Dynamic Flow Control
6941 *
6942 * Usage: Internal
6943 *
6944 * </ini>
6945 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006946#define CFG_LL_TX_LBW_FLOW_LWM "TxLbwFlowLowWaterMark"
6947#define CFG_LL_TX_LBW_FLOW_LWM_MIN (0)
6948#define CFG_LL_TX_LBW_FLOW_LWM_MAX (1000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006949#define CFG_LL_TX_LBW_FLOW_LWM_DEFAULT (450)
6950
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306951/*
6952 * <ini>
6953 * TxLbwFlowHighWaterMarkOffset - High Watermark offset to unpause Netif queues
6954 * in low bandwidth band.
6955 * @Min: 0
6956 * @Max: 300
6957 * @Default: 50
6958 *
6959 * This ini specifies the offset to upause the netif queues
6960 * when they are paused due to insufficient descriptors as guided by
6961 * ini TxLbwFlowLowWaterMark in low bandwidth band. It is only applicable
6962 * where legacy flow control is used i.e.for Rome.
6963 *
6964 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6965 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
6966 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6967 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6968 *
6969 * Supported Feature: Dynamic Flow Control
6970 *
6971 * Usage: Internal
6972 *
6973 * </ini>
6974 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006975#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET "TxLbwFlowHighWaterMarkOffset"
6976#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET_MIN (0)
6977#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET_MAX (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006978#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET_DEFAULT (50)
6979
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306980/*
6981 * <ini>
6982 * TxLbwFlowMaxQueueDepth - Max pause queue depth in low bandwidth band
6983 *
6984 * @Min: 400
6985 * @Max: 3500
6986 * @Default: 750
6987 *
6988 * This ini specifies the max queue pause depth in low bandwidth band.
6989 * It is only applicable where legacy flow control is used i.e.for Rome.
6990 *
6991 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6992 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
6993 * TxLbwFlowHighWaterMarkOffset, TxHbwFlowLowWaterMark,
6994 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6995 *
6996 * Supported Feature: Dynamic Flow Control
6997 *
6998 * Usage: Internal
6999 *
7000 * </ini>
7001 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007002#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH "TxLbwFlowMaxQueueDepth"
7003#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH_MIN (400)
7004#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH_MAX (3500)
7005#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH_DEFAULT (750)
7006
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307007/*
7008 * <ini>
7009 * TxHbwFlowLowWaterMark - Low watermark for pausing network queues
7010 * in high bandwidth band
7011 * @Min: 0
7012 * @Max: 1000
7013 * @Default: 406
7014 *
7015 * This ini specifies the threshold of data packets transmitted
7016 * before pausing netif queues.It is only applicable where
7017 * legacy flow control is used i.e.for Rome.
7018 *
7019 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
7020 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
7021 * TxLbwFlowHighWaterMarkOffset, TxLbwFlowMaxQueueDepth,
7022 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
7023 *
7024 * Supported Feature: Dynamic Flow Control
7025 *
7026 * Usage: Internal
7027 *
7028 * </ini>
7029 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007030#define CFG_LL_TX_HBW_FLOW_LWM "TxHbwFlowLowWaterMark"
7031#define CFG_LL_TX_HBW_FLOW_LWM_MIN (0)
7032#define CFG_LL_TX_HBW_FLOW_LWM_MAX (1000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007033#define CFG_LL_TX_HBW_FLOW_LWM_DEFAULT (406)
7034
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307035/*
7036 * <ini>
7037 * TxHbwFlowHighWaterMarkOffset - High Watermark offset to unpause Netif queues
7038 * in high bandwidth band.
7039 * @Min: 0
7040 * @Max: 300
7041 * @Default: 94
7042 *
7043 * This ini specifies the offset to upause the netif queues
7044 * when they are paused due to insufficient descriptors as guided by
7045 * ini TxHbwFlowLowWaterMark in high bandwidth band. It is only applicable
7046 * where legacy flow control is used i.e.for Rome.
7047 *
7048 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
7049 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
7050 * TxLbwFlowHighWaterMarkOffset, TxLbwFlowMaxQueueDepth,
7051 * TxHbwFlowLowWaterMark, TxHbwFlowMaxQueueDepth
7052 *
7053 * Supported Feature: Dynamic Flow Control
7054 *
7055 * Usage: Internal
7056 *
7057 * </ini>
7058 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007059#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET "TxHbwFlowHighWaterMarkOffset"
7060#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET_MIN (0)
7061#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET_MAX (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007062#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET_DEFAULT (94)
7063
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307064/*
7065 * <ini>
7066 * TxHbwFlowMaxQueueDepth - Max pause queue depth in high bandwidth band
7067 * @Min: 4000
7068 * @Max: 3500
7069 * @Default: 1500
7070 *
7071 * This ini specifies the max queue pause depth in high bandwidth band.
7072 * It is only applicable where legacy flow control is used i.e.for Rome.
7073 *
7074 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
7075 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
7076 * TxLbwFlowHighWaterMarkOffset, TxLbwFlowMaxQueueDepth,
7077 * TxHbwFlowLowWaterMark, TxHbwFlowHighWaterMarkOffset
7078 *
7079 * Supported Feature: Dynamic Flow Control
7080 *
7081 * Usage: Internal
7082 *
7083 * </ini>
7084 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007085#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH "TxHbwFlowMaxQueueDepth"
7086#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH_MIN (400)
7087#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH_MAX (3500)
7088#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH_DEFAULT (1500)
7089#endif /* QCA_LL_LEGACY_TX_FLOW_CONTROL */
7090
7091#ifdef QCA_LL_TX_FLOW_CONTROL_V2
7092
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307093/*
7094 * <ini>
7095 * TxFlowStopQueueThreshold - Stop queue Threshold to pause
7096 * Netif queues when it reaches
7097 * @Min: 0
7098 * @Max: 50
7099 * @Default: 15
7100 *
7101 * This ini specifies the threshold of data packets transmitted
7102 * before pausing netif queues.
7103 *
7104 * Related: TxFlowStartQueueOffset
7105 *
7106 * Supported Feature: Dynamic Flow Control
7107 *
7108 * Usage: Internal
7109 *
7110 * </ini>
7111 */
7112#define CFG_LL_TX_FLOW_STOP_QUEUE_TH "TxFlowStopQueueThreshold"
7113#define CFG_LL_TX_FLOW_STOP_QUEUE_TH_DEFAULT (15)
7114#define CFG_LL_TX_FLOW_STOP_QUEUE_TH_MIN (0)
7115#define CFG_LL_TX_FLOW_STOP_QUEUE_TH_MAX (50)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007116
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307117/*
7118 * <ini>
7119 * TxFlowStartQueueOffset - Start queue offset to unpause
7120 * Netif queues
7121 * @Min: 0
7122 * @Max: 30
7123 * @Default: 11
7124 *
7125 * This ini specifies the offset to upause the netif queues
7126 * when they are paused due to insufficient descriptors as guided by
7127 * ini TxFlowStopQueueThreshold.
7128 *
7129 * Related: TxFlowStopQueueThreshold
7130 *
7131 * Supported Feature: Dynamic Flow Control
7132 *
7133 * Usage: Internal
7134 *
7135 * </ini>
7136 */
7137#define CFG_LL_TX_FLOW_START_QUEUE_OFFSET "TxFlowStartQueueOffset"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007138#define CFG_LL_TX_FLOW_START_QUEUE_OFFSET_DEFAULT (10)
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307139#define CFG_LL_TX_FLOW_START_QUEUE_OFFSET_MIN (0)
7140#define CFG_LL_TX_FLOW_START_QUEUE_OFFSET_MAX (30)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007141
7142#endif /* QCA_LL_TX_FLOW_CONTROL_V2 */
7143
7144#define CFG_SAP_MAX_OFFLOAD_PEERS "gMaxOffloadPeers"
7145#define CFG_SAP_MAX_OFFLOAD_PEERS_MIN (2)
7146#define CFG_SAP_MAX_OFFLOAD_PEERS_MAX (5)
7147#define CFG_SAP_MAX_OFFLOAD_PEERS_DEFAULT (2)
7148
7149#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS "gMaxOffloadReorderBuffs"
7150#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS_MIN (0)
7151#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS_MAX (3)
7152#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS_DEFAULT (2)
7153
7154#ifdef FEATURE_WLAN_RA_FILTERING
7155#define CFG_RA_FILTER_ENABLE_NAME "gRAFilterEnable"
7156#define CFG_RA_FILTER_ENABLE_MIN (0)
7157#define CFG_RA_FILTER_ENABLE_MAX (1)
Dustin Brown87c44282016-10-06 10:17:13 -07007158#define CFG_RA_FILTER_ENABLE_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007159
7160#define CFG_RA_RATE_LIMIT_INTERVAL_NAME "gRArateLimitInterval"
7161#define CFG_RA_RATE_LIMIT_INTERVAL_MIN (60)
7162#define CFG_RA_RATE_LIMIT_INTERVAL_MAX (3600)
7163#define CFG_RA_RATE_LIMIT_INTERVAL_DEFAULT (60) /*60 SEC */
7164#endif
7165
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307166/*
7167 * <ini>
7168 * gIgnorePeerErpInfo - Used for ignore peer infrormation
7169 * @Min: 0
7170 * @Max: 1
7171 * @Default: 0
7172 *
7173 * This ini is used to ignore default peer info
7174 *
7175 * Related: None
7176 *
7177 * Supported Feature: STA
7178 *
7179 * Usage: Internal/External
7180 *
7181 * </ini>
7182 */
7183
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007184#define CFG_IGNORE_PEER_ERP_INFO_NAME "gIgnorePeerErpInfo"
7185#define CFG_IGNORE_PEER_ERP_INFO_MIN (0)
7186#define CFG_IGNORE_PEER_ERP_INFO_MAX (1)
7187#define CFG_IGNORE_PEER_ERP_INFO_DEFAULT (0)
7188
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307189/*
7190 * <ini>
7191 * gEnableMemoryDebug - Enables the memory debug
7192 * @Min: 0
7193 * @Max: 1
7194 * @Default: 1
7195 *
7196 * This ini is used to enable default memory debug
7197 *
7198 * Related: None
7199 *
7200 * Supported Feature: STA
7201 *
7202 * Usage: Internal/External
7203 *
7204 * </ini>
7205 */
7206
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007207#ifdef MEMORY_DEBUG
7208#define CFG_ENABLE_MEMORY_DEBUG_NAME "gEnableMemoryDebug"
7209#define CFG_ENABLE_MEMORY_DEBUG_MIN (0)
7210#define CFG_ENABLE_MEMORY_DEBUG_MAX (1)
7211#define CFG_ENABLE_MEMORY_DEBUG_DEFAULT (1)
7212#endif
7213
Ravi Kumar Bokka05c14e52017-03-27 14:48:23 +05307214/*
7215 * <ini>
7216 * g_auto_detect_power_failure_mode - auto detect power save failure mode
7217 * @Min: 0 : Recovery
7218 * @Max: 1 : WMI
7219 * @Default: 0
7220 *
7221 * This ini specifies the behavior of FW in case of
7222 * CHIP_POWER_SAVE_FAIL_DETECTED event
7223 *
7224 * Usage: External
7225 *
7226 * </ini>
7227 */
7228#define CFG_AUTO_DETECT_POWER_FAIL_MODE_NAME "g_auto_detect_power_failure_mode"
7229#define CFG_AUTO_DETECT_POWER_FAIL_MODE_DEFAULT (0)
7230#define CFG_AUTO_DETECT_POWER_FAIL_MODE_MIN (0)
7231#define CFG_AUTO_DETECT_POWER_FAIL_MODE_MAX (1)
Deepak Dhamdhere612392c2016-08-28 02:56:51 -07007232/*
7233 * <ini>
7234 * gMaxAmsduNum - Max number of MSDU's in aggregate
7235 * @Min: 0
7236 * @Max: 3
7237 * @Default: 1
7238 * gMaxAmsduNum is the number of MSDU's transmitted in the 11n aggregate
7239 * frame. Setting it to a value larger than 1 enables transmit aggregation.
7240 * It is a PHY parameter that applies to all vdev's in firmware.
7241 *
7242 * Supported Feature: 11n aggregation
7243 *
7244 * Usage: Internal
7245 *
7246 * </ini>
7247 */
7248#define CFG_MAX_AMSDU_NUM_NAME "gMaxAmsduNum"
7249#define CFG_MAX_AMSDU_NUM_MIN (0)
7250#define CFG_MAX_AMSDU_NUM_MAX (3)
7251#define CFG_MAX_AMSDU_NUM_DEFAULT (1)
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307252
7253/*
7254 * <ini>
7255 * gInitialDwellTime - Used to set initial dwell time
7256 * @Min: 0
7257 * @Max: 0
7258 * @Default: 100
7259 *
7260 * This ini is used to set default initial dwell time
7261 *
7262 * Related: None
7263 *
7264 * Supported Feature: STA
7265 *
7266 * Usage: Internal/External
7267 *
7268 * </ini>
7269 */
7270
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007271#define CFG_INITIAL_DWELL_TIME_NAME "gInitialDwellTime"
7272#define CFG_INITIAL_DWELL_TIME_DEFAULT (0)
7273#define CFG_INITIAL_DWELL_TIME_MIN (0)
7274#define CFG_INITIAL_DWELL_TIME_MAX (100)
7275
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307276/*
7277 * <ini>
7278 * gInitialScanNoDFSChnl - WLAN skips scanning the DFS channels
7279 * @Min: 0
7280 * @Max: 0
7281 * @Default: 1
7282 *
7283 * This ini is used to set for the first scan after driver
7284 *
7285 * Related: None
7286 *
7287 * Supported Feature: STA
7288 *
7289 * Usage: Internal/External
7290 *
7291 * </ini>
7292 */
7293
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007294#define CFG_INITIAL_SCAN_NO_DFS_CHNL_NAME "gInitialScanNoDFSChnl"
7295#define CFG_INITIAL_SCAN_NO_DFS_CHNL_DEFAULT (0)
7296#define CFG_INITIAL_SCAN_NO_DFS_CHNL_MIN (0)
7297#define CFG_INITIAL_SCAN_NO_DFS_CHNL_MAX (1)
7298
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307299/*
7300 * <ini>
7301 * gAllowDFSChannelRoam - Allow dfs channel in roam
7302 * @Min: 0
7303 * @Max: 1
7304 * @Default: 2
7305 *
7306 * This ini is used to set default dfs channel
7307 *
7308 * Related: None
7309 *
7310 * Supported Feature: STA
7311 *
7312 * Usage: Internal/External
7313 *
7314 * </ini>
7315 */
7316
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007317#define CFG_ROAMING_DFS_CHANNEL_NAME "gAllowDFSChannelRoam"
7318#define CFG_ROAMING_DFS_CHANNEL_DISABLED (0)
7319#define CFG_ROAMING_DFS_CHANNEL_ENABLED_NORMAL (1)
7320#define CFG_ROAMING_DFS_CHANNEL_ENABLED_ACTIVE (2)
7321#define CFG_ROAMING_DFS_CHANNEL_MIN (CFG_ROAMING_DFS_CHANNEL_DISABLED)
7322#define CFG_ROAMING_DFS_CHANNEL_MAX (CFG_ROAMING_DFS_CHANNEL_ENABLED_ACTIVE)
7323#define CFG_ROAMING_DFS_CHANNEL_DEFAULT (CFG_ROAMING_DFS_CHANNEL_DISABLED)
7324
7325#ifdef MSM_PLATFORM
7326#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD "gBusBandwidthHighThreshold"
7327#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD_DEFAULT (2000)
7328#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD_MIN (0)
7329#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD_MAX (4294967295UL)
7330
7331#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD "gBusBandwidthMediumThreshold"
7332#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD_DEFAULT (500)
7333#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD_MIN (0)
7334#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD_MAX (4294967295UL)
7335
7336#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD "gBusBandwidthLowThreshold"
7337#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD_DEFAULT (150)
7338#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD_MIN (0)
7339#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD_MAX (4294967295UL)
7340
7341#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL "gBusBandwidthComputeInterval"
7342#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL_DEFAULT (100)
7343#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL_MIN (0)
7344#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL_MAX (10000)
7345
Ravi Joshie2331e82015-07-01 18:18:54 -07007346/*
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307347 * <ini>
7348 * gTcpDelAckEnable - Control to enable Dynamic Configuration of Tcp Delayed Ack
7349 * @Min: 0
7350 * @Max: 1
7351 * @Default: 1
7352 *
7353 * This ini is used to enable Dynamic Configuration of Tcp Delayed Ack
7354 *
7355 * Related: gTcpDelAckThresholdHigh, gTcpDelAckThresholdLow,
7356 * gTcpDelAckTimerCount
7357 *
7358 * Supported Feature: Tcp Delayed Ack
7359 *
7360 * Usage: Internal
7361 *
7362 * </ini>
Ravi Joshie2331e82015-07-01 18:18:54 -07007363 */
7364#define CFG_ENABLE_TCP_DELACK "gTcpDelAckEnable"
7365#define CFG_ENABLE_TCP_DELACK_DEFAULT (1)
7366#define CFG_ENABLE_TCP_DELACK_MIN (0)
7367#define CFG_ENABLE_TCP_DELACK_MAX (1)
7368
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307369
7370/*
7371 * <ini>
7372 * gTcpDelAckThresholdHigh - High Threshold inorder to trigger TCP Del Ack
7373 * indication
7374 * @Min: 0
7375 * @Max: 16000
7376 * @Default: 500
7377 *
7378 * This ini is used to mention the High Threshold inorder to trigger TCP Del Ack
7379 * indication i.e the threshold of packets received over a period of 100 ms.
7380 * i.e to have a low RX throughput requirement
7381 * Related: gTcpDelAckEnable, gTcpDelAckThresholdLow, gTcpDelAckTimerCount
7382 *
7383 * Supported Feature: Tcp Delayed Ack
7384 *
7385 * Usage: Internal
7386 *
7387 * </ini>
7388 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007389#define CFG_TCP_DELACK_THRESHOLD_HIGH "gTcpDelAckThresholdHigh"
7390#define CFG_TCP_DELACK_THRESHOLD_HIGH_DEFAULT (500)
7391#define CFG_TCP_DELACK_THRESHOLD_HIGH_MIN (0)
7392#define CFG_TCP_DELACK_THRESHOLD_HIGH_MAX (16000)
7393
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307394/*
7395 * <ini>
7396 * gTcpDelAckThresholdLow - Low Threshold inorder to trigger TCP Del Ack
7397 * indication
7398 * @Min: 0
7399 * @Max: 10000
7400 * @Default: 1000
7401 *
7402 * This ini is used to mention the Low Threshold inorder to trigger TCP Del Ack
7403 * indication i.e the threshold of packets received over a period of 100 ms.
7404 * i.e to have a low RX throughput requirement
7405 *
7406 * Related: gTcpDelAckEnable, gTcpDelAckThresholdHigh, gTcpDelAckTimerCount
7407 *
7408 * Supported Feature: Tcp Delayed Ack
7409 *
7410 * Usage: Internal
7411 *
7412 * </ini>
7413 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007414#define CFG_TCP_DELACK_THRESHOLD_LOW "gTcpDelAckThresholdLow"
7415#define CFG_TCP_DELACK_THRESHOLD_LOW_DEFAULT (1000)
7416#define CFG_TCP_DELACK_THRESHOLD_LOW_MIN (0)
7417#define CFG_TCP_DELACK_THRESHOLD_LOW_MAX (10000)
Mohit Khannae71e2262015-11-10 09:37:24 -08007418
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307419/*
7420 * <ini>
7421 * gTcpDelAckTimerCount - Del Ack Timer Count inorder to trigger TCP Del Ack
7422 * indication
7423 * @Min: 1
7424 * @Max: 1000
7425 * @Default: 30
7426 *
7427 * This ini is used to mention the Del Ack Timer Count inorder to
7428 * trigger TCP Del Ack indication i.e number of 100 ms periods
7429 *
7430 * Related: gTcpDelAckEnable, gTcpDelAckThresholdHigh, gTcpDelAckThresholdLow
7431 *
7432 * Supported Feature: Tcp Delayed Ack
7433 *
7434 * Usage: Internal
7435 *
7436 * </ini>
7437 */
Ravi Joshib89e7f72016-09-07 13:43:15 -07007438#define CFG_TCP_DELACK_TIMER_COUNT "gTcpDelAckTimerCount"
7439#define CFG_TCP_DELACK_TIMER_COUNT_DEFAULT (30)
7440#define CFG_TCP_DELACK_TIMER_COUNT_MIN (1)
7441#define CFG_TCP_DELACK_TIMER_COUNT_MAX (1000)
7442
7443
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307444/*
7445 * <ini>
7446 * gTcpTxHighTputThreshold - High Threshold inorder to trigger High
7447 * Tx Throughput requirement.
7448 * @Min: 0
7449 * @Max: 16000
7450 * @Default: 500
7451 *
7452 * This ini specifies the threshold of packets transmitted
Mohit Khannae71e2262015-11-10 09:37:24 -08007453 * over a period of 100 ms beyond which TCP can be considered to have a high
7454 * TX throughput requirement. The driver uses this condition to tweak TCP TX
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307455 * specific parameters (via cnss-daemon)
7456 *
7457 * Supported Feature: To tweak TCP TX n/w parameters
7458 *
7459 * Usage: Internal
7460 *
7461 * </ini>
Mohit Khannae71e2262015-11-10 09:37:24 -08007462 */
7463#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_NAME "gTcpTxHighTputThreshold"
7464#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_DEFAULT (500)
7465#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_MIN (0)
7466#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_MAX (16000)
7467
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007468#endif /* MSM_PLATFORM */
7469
7470#ifdef WLAN_FEATURE_11W
Abhishek Singh2f810492016-12-01 11:39:39 +05307471/*
7472 * <ini>
7473 * pmfSaQueryMaxRetries - Control PMF SA query retries for SAP
7474 * @Min: 0
7475 * @Max: 20
7476 * @Default: 5
7477 *
7478 * This ini to set the number of PMF SA query retries for SAP
7479 *
7480 * Related: None.
7481 *
7482 * Supported Feature: PMF(11W)
7483 *
7484 * Usage: Internal/External
7485 *
7486 * </ini>
7487 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007488#define CFG_PMF_SA_QUERY_MAX_RETRIES_NAME "pmfSaQueryMaxRetries"
7489#define CFG_PMF_SA_QUERY_MAX_RETRIES_DEFAULT (5)
7490#define CFG_PMF_SA_QUERY_MAX_RETRIES_MIN (0)
7491#define CFG_PMF_SA_QUERY_MAX_RETRIES_MAX (20)
7492
Abhishek Singh2f810492016-12-01 11:39:39 +05307493/*
7494 * <ini>
7495 * pmfSaQueryRetryInterval - Control PMF SA query retry interval
7496 * for SAP in ms
7497 * @Min: 0
7498 * @Max: 2000
7499 * @Default: 200
7500 *
7501 * This ini to set the PMF SA query retry interval for SAP in ms
7502 *
7503 * Related: None.
7504 *
7505 * Supported Feature: PMF(11W)
7506 *
7507 * Usage: Internal/External
7508 *
7509 * </ini>
7510 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007511#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_NAME "pmfSaQueryRetryInterval"
7512#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_DEFAULT (200)
7513#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_MIN (0)
7514#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_MAX (2000)
7515#endif
7516
Nitesh Shah03161d12016-12-06 18:30:12 +05307517/*
7518 * <ini>
7519 * gMaxConcurrentActiveSessions - Maximum number of concurrent connections.
7520 * @Min: 1
7521 * @Max: 4
7522 * @Default: 3
7523 *
7524 * This ini is used to configure the maximum number of concurrent connections.
7525 *
7526 * Related: None.
7527 *
7528 * Supported Feature: Concurrency
7529 *
7530 * Usage: Internal/External
7531 *
7532 * </ini>
7533 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007534#define CFG_MAX_CONCURRENT_CONNECTIONS_NAME "gMaxConcurrentActiveSessions"
Tushnim Bhattacharyyae67bfc72016-01-27 11:47:37 -08007535#define CFG_MAX_CONCURRENT_CONNECTIONS_DEFAULT (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007536#define CFG_MAX_CONCURRENT_CONNECTIONS_MIN (1)
7537#define CFG_MAX_CONCURRENT_CONNECTIONS_MAX (4)
7538
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307539/*
7540 * <ini>
7541 * gIgnoreCAC - Used to ignore CAC
7542 * @Min: 0
7543 * @Max: 1
7544 * @Default: 0
7545 *
7546 * This ini is used to set default CAC
7547 *
7548 * Related: None
7549 *
7550 * Supported Feature: STA
7551 *
7552 * Usage: Internal/External
7553 *
7554 * </ini>
7555 */
7556
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007557#define CFG_IGNORE_CAC_NAME "gIgnoreCAC"
7558#define CFG_IGNORE_CAC_MIN (0)
7559#define CFG_IGNORE_CAC_MAX (1)
7560#define CFG_IGNORE_CAC_DEFAULT (0)
7561
7562#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_NAME "gEnableSAPDfsChSifsBurst"
7563#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_MIN (0)
7564#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_MAX (1)
7565#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_DEFAULT (1)
7566
7567#define CFG_DFS_RADAR_PRI_MULTIPLIER_NAME "gDFSradarMappingPriMultiplier"
7568#define CFG_DFS_RADAR_PRI_MULTIPLIER_DEFAULT (4)
7569#define CFG_DFS_RADAR_PRI_MULTIPLIER_MIN (0)
7570#define CFG_DFS_RADAR_PRI_MULTIPLIER_MAX (10)
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307571
7572/*
7573 * <ini>
7574 * gReorderOffloadSupported - Packet reordering offload to firmware
7575 * @Min: 0
7576 * @Max: 1
7577 * @Default: 0
7578 *
7579 * This ini is used to set default Packet reordering
7580 *
7581 * Related: None
7582 *
7583 * Supported Feature: STA
7584 *
7585 * Usage: Internal/External
7586 *
7587 * </ini>
7588 */
7589
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007590#define CFG_REORDER_OFFLOAD_SUPPORT_NAME "gReorderOffloadSupported"
7591#define CFG_REORDER_OFFLOAD_SUPPORT_MIN (0)
7592#define CFG_REORDER_OFFLOAD_SUPPORT_MAX (1)
Kiran Kumar Lokere52d8dc32016-12-05 19:20:40 -08007593#define CFG_REORDER_OFFLOAD_SUPPORT_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007594
Yun Parkde380782016-08-17 16:26:54 -07007595/* IpaUcTxBufCount should be power of 2 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007596#define CFG_IPA_UC_TX_BUF_COUNT_NAME "IpaUcTxBufCount"
7597#define CFG_IPA_UC_TX_BUF_COUNT_MIN (0)
7598#define CFG_IPA_UC_TX_BUF_COUNT_MAX (2048)
7599#define CFG_IPA_UC_TX_BUF_COUNT_DEFAULT (512)
7600
7601#define CFG_IPA_UC_TX_BUF_SIZE_NAME "IpaUcTxBufSize"
7602#define CFG_IPA_UC_TX_BUF_SIZE_MIN (0)
7603#define CFG_IPA_UC_TX_BUF_SIZE_MAX (4096)
7604#define CFG_IPA_UC_TX_BUF_SIZE_DEFAULT (2048)
7605
Yun Parkde380782016-08-17 16:26:54 -07007606/* IpaUcRxIndRingCount should be power of 2 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007607#define CFG_IPA_UC_RX_IND_RING_COUNT_NAME "IpaUcRxIndRingCount"
7608#define CFG_IPA_UC_RX_IND_RING_COUNT_MIN (0)
7609#define CFG_IPA_UC_RX_IND_RING_COUNT_MAX (2048)
7610#define CFG_IPA_UC_RX_IND_RING_COUNT_DEFAULT (1024)
7611
7612#define CFG_IPA_UC_TX_PARTITION_BASE_NAME "IpaUcTxPartitionBase"
7613#define CFG_IPA_UC_TX_PARTITION_BASE_MIN (0)
7614#define CFG_IPA_UC_TX_PARTITION_BASE_MAX (9000)
7615#define CFG_IPA_UC_TX_PARTITION_BASE_DEFAULT (3000)
7616
7617#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
7618/* Enable WLAN Logging to app space */
7619#define CFG_WLAN_LOGGING_SUPPORT_NAME "wlanLoggingEnable"
7620#define CFG_WLAN_LOGGING_SUPPORT_ENABLE (1)
7621#define CFG_WLAN_LOGGING_SUPPORT_DISABLE (0)
7622#define CFG_WLAN_LOGGING_SUPPORT_DEFAULT (1)
7623
Srinivas Girigowda8187e792017-03-03 11:50:59 -08007624/* Enable forwarding the driver logs to kmsg console */
7625#define CFG_WLAN_LOGGING_CONSOLE_SUPPORT_NAME "wlanLoggingToConsole"
7626#define CFG_WLAN_LOGGING_CONSOLE_SUPPORT_ENABLE (1)
7627#define CFG_WLAN_LOGGING_CONSOLE_SUPPORT_DISABLE (0)
7628#define CFG_WLAN_LOGGING_CONSOLE_SUPPORT_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007629
7630/* Number of buffers to be used for WLAN logging */
7631#define CFG_WLAN_LOGGING_NUM_BUF_NAME "wlanLoggingNumBuf"
7632#define CFG_WLAN_LOGGING_NUM_BUF_MIN (4)
7633#define CFG_WLAN_LOGGING_NUM_BUF_MAX (512)
7634#define CFG_WLAN_LOGGING_NUM_BUF_DEFAULT (256)
7635#endif /* WLAN_LOGGING_SOCK_SVC_ENABLE */
7636
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307637/*
7638 * <ini>
7639 * gEnableSifsBurst - Enables Sifs Burst
7640 * @Min: 0
Dustin Brown0a4cfeb2017-03-10 15:22:28 -08007641 * @Max: 3
7642 * @Default: 0
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307643 *
Dustin Brown0a4cfeb2017-03-10 15:22:28 -08007644 * Sifs burst mode configuration
7645 * 0) disabled
7646 * 1) enabled, but disabled for legacy mode
7647 * 3) enabled
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307648 *
7649 * Related: None
7650 *
7651 * Supported Feature: STA
7652 *
7653 * Usage: Internal/External
7654 *
7655 * </ini>
7656 */
7657
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007658#define CFG_ENABLE_SIFS_BURST "gEnableSifsBurst"
7659#define CFG_ENABLE_SIFS_BURST_MIN (0)
Dustin Brown0a4cfeb2017-03-10 15:22:28 -08007660#define CFG_ENABLE_SIFS_BURST_MAX (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007661#define CFG_ENABLE_SIFS_BURST_DEFAULT (0)
7662
7663#ifdef WLAN_FEATURE_LPSS
7664#define CFG_ENABLE_LPASS_SUPPORT "gEnableLpassSupport"
7665#define CFG_ENABLE_LPASS_SUPPORT_DEFAULT (0)
7666#define CFG_ENABLE_LPASS_SUPPORT_MIN (0)
7667#define CFG_ENABLE_LPASS_SUPPORT_MAX (1)
7668#endif
7669
7670/*
7671 * NaN feature support configuration
7672 * gEnableNanSupport = 0 means NaN is not supported
7673 * gEnableNanSupport = 1 means NaN is supported
7674 */
7675#ifdef WLAN_FEATURE_NAN
7676#define CFG_ENABLE_NAN_SUPPORT "gEnableNanSupport"
7677#define CFG_ENABLE_NAN_SUPPORT_DEFAULT (0)
7678#define CFG_ENABLE_NAN_SUPPORT_MIN (0)
7679#define CFG_ENABLE_NAN_SUPPORT_MAX (1)
7680#endif
7681
7682#define CFG_ENABLE_SELF_RECOVERY "gEnableSelfRecovery"
7683#define CFG_ENABLE_SELF_RECOVERY_MIN (0)
7684#define CFG_ENABLE_SELF_RECOVERY_MAX (1)
7685#define CFG_ENABLE_SELF_RECOVERY_DEFAULT (0)
7686
7687#define CFG_ENABLE_SAP_SUSPEND "gEnableSapSuspend"
7688#define CFG_ENABLE_SAP_SUSPEND_MIN (0)
7689#define CFG_ENABLE_SAP_SUSPEND_MAX (1)
7690#define CFG_ENABLE_SAP_SUSPEND_DEFAULT (1)
7691
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307692/*
7693 * <ini>
7694 * gEnableDeauthToDisassocMap - Enables deauth to disassoc map
7695 * @Min: 0
7696 * @Max: 1
7697 * @Default: 0
7698 *
7699 * This ini is used to set default disassoc map
7700 *
7701 * Related: None
7702 *
7703 * Supported Feature: STA
7704 *
7705 * Usage: Internal/External
7706 *
7707 * </ini>
7708 */
7709
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007710#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_NAME "gEnableDeauthToDisassocMap"
7711#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_MIN (0)
7712#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_MAX (1)
7713#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_DEFAULT (0)
7714
7715#ifdef DHCP_SERVER_OFFLOAD
7716#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_NAME "gDHCPServerOffloadEnable"
7717#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_MIN (0)
7718#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_MAX (1)
7719#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_DEFAULT (CFG_DHCP_SERVER_OFFLOAD_SUPPORT_MIN)
7720
7721#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_NAME "gDHCPMaxNumClients"
7722#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_MIN (1)
7723#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_MAX (8)
7724#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_DEFAULT (CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_MAX)
7725
7726#define CFG_DHCP_SERVER_IP_NAME "gDHCPServerIP"
7727#define CFG_DHCP_SERVER_IP_DEFAULT ""
7728#endif /* DHCP_SERVER_OFFLOAD */
7729
7730/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307731 * <ini>
7732 * gSendDeauthBeforeCon - It will send deauth before connection
7733 * @Min: 0
7734 * @Max: 1
7735 * @Default: 0
7736 *
7737 * This ini is used to set default DeauthBeforeCon
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007738 * If last disconnection was due to HB failure and we reconnect
7739 * to same AP next time, send Deauth before starting connection
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307740 *
7741 * Related: None
7742 *
7743 * Supported Feature: STA
7744 *
7745 * Usage: Internal/External
7746 *
7747 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007748 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307749
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007750#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION "gSendDeauthBeforeCon"
7751#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_MIN (0)
7752#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_MAX (1)
7753#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_DEFAULT (0)
7754
7755/*
Nitesh Shah03161d12016-12-06 18:30:12 +05307756 * <ini>
7757 * gEnableCustomConcRule1 - Enable custom concurrency rule1.
7758 * @Min: 0
7759 * @Max: 1
7760 * @Default: 0
7761 *
7762 * This ini is used to enable/disable custom concurrency rule1.
7763 * If SAP comes up first and STA comes up later then SAP needs to follow STA's
7764 * channel.
7765 *
7766 * Related: None.
7767 *
7768 * Supported Feature: Concurrency
7769 *
7770 * Usage: Internal/External
7771 *
7772 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007773 */
7774#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME "gEnableCustomConcRule1"
7775#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME_MIN (0)
7776#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME_MAX (1)
7777#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME_DEFAULT (0)
7778
Nitesh Shah03161d12016-12-06 18:30:12 +05307779/*
7780 * <ini>
7781 * gEnableCustomConcRule2 - Enable custom concurrency rule2.
7782 * @Min: 0
7783 * @Max: 1
7784 * @Default: 0
7785 *
7786 * This ini is used to enable/disable custom concurrency rule2.
7787 * If P2PGO comes up first and STA comes up later then P2PGO need to follow
7788 * STA's channel in 5Ghz. In following if condition we are just adding sanity
7789 * check to make sure that by this time P2PGO's channel is same as STA's
7790 * channel.
7791 *
7792 * Related: None.
7793 *
7794 * Supported Feature: Concurrency
7795 *
7796 * Usage: Internal/External
7797 *
7798 * </ini>
7799 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007800#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME "gEnableCustomConcRule2"
7801#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME_MIN (0)
7802#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME_MAX (1)
7803#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME_DEFAULT (0)
7804
7805#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ "gEnableStaConnectionIn5Ghz"
7806#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ_MIN (0)
7807#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ_MAX (1)
7808#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ_DEFAULT (1)
7809
7810#define CFG_ENABLE_MAC_ADDR_SPOOFING "gEnableMacAddrSpoof"
7811#define CFG_ENABLE_MAC_ADDR_SPOOFING_MIN (0)
7812#define CFG_ENABLE_MAC_ADDR_SPOOFING_MAX (1)
7813#define CFG_ENABLE_MAC_ADDR_SPOOFING_DEFAULT (1)
7814
7815#define CFG_P2P_LISTEN_DEFER_INTERVAL_NAME "gP2PListenDeferInterval"
7816#define CFG_P2P_LISTEN_DEFER_INTERVAL_MIN (100)
7817#define CFG_P2P_LISTEN_DEFER_INTERVAL_MAX (200)
7818#define CFG_P2P_LISTEN_DEFER_INTERVAL_DEFAULT (100)
7819
Nitesh Shah03161d12016-12-06 18:30:12 +05307820/*
7821 * <ini>
7822 * gStaMiracastMccRestTimeVal - Rest time when Miracast is running.
7823 * @Min: 100
7824 * @Max: 500
7825 * @Default: 400
7826 *
7827 * This ini is used to set rest time for home channel for Miracast before
7828 * going for scan.
7829 *
7830 * Related: None.
7831 *
7832 * Supported Feature: Concurrency
7833 *
7834 * Usage: Internal/External
7835 *
7836 * </ini>
7837 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007838#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL "gStaMiracastMccRestTimeVal"
7839#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL_MIN (100)
7840#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL_MAX (500)
7841#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL_DEFAULT (400)
7842
7843#ifdef FEATURE_AP_MCC_CH_AVOIDANCE
Nitesh Shah03161d12016-12-06 18:30:12 +05307844/*
7845 * <ini>
7846 * gSapChannelAvoidance - SAP MCC channel avoidance.
7847 * @Min: 0
7848 * @Max: 1
7849 * @Default: 0
7850 *
7851 * This ini is used to sets sap mcc channel avoidance.
7852 *
7853 * Related: None.
7854 *
7855 * Supported Feature: Concurrency
7856 *
7857 * Usage: Internal/External
7858 *
7859 * </ini>
7860 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007861#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_NAME "gSapChannelAvoidance"
7862#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_MIN (0)
7863#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_MAX (1)
7864#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_DEFAULT (0)
7865#endif /* FEATURE_AP_MCC_CH_AVOIDANCE */
7866
7867#define CFG_SAP_P2P_11AC_OVERRIDE_NAME "gAP11ACOverride"
7868#define CFG_SAP_P2P_11AC_OVERRIDE_MIN (0)
7869#define CFG_SAP_P2P_11AC_OVERRIDE_MAX (1)
7870#define CFG_SAP_P2P_11AC_OVERRIDE_DEFAULT (1)
7871
7872#define CFG_SAP_DOT11MC "gSapDot11mc"
7873#define CFG_SAP_DOT11MC_MIN (0)
7874#define CFG_SAP_DOT11MC_MAX (1)
7875#define CFG_SAP_DOT11MC_DEFAULT (0)
7876
7877#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR "gPreferNonDfsChanOnRadar"
7878#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR_MIN (0)
7879#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR_MAX (1)
7880#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR_DEFAULT (0)
7881
7882#define CFG_MULTICAST_HOST_FW_MSGS "gMulticastHostFwMsgs"
7883#define CFG_MULTICAST_HOST_FW_MSGS_MIN (0)
7884#define CFG_MULTICAST_HOST_FW_MSGS_MAX (1)
7885#define CFG_MULTICAST_HOST_FW_MSGS_DEFAULT (1)
7886
7887/*
Nitesh Shah428e70d2016-12-06 18:39:58 +05307888 * <ini>
7889 * gSystemPref - Configure wlan system preference for PCL.
7890 * @Min: 0
7891 * @Max: 2
7892 * @Default: 0
7893 *
7894 * This ini is used to configure wlan system preference option to help
7895 * policy manager decide on Preferred Channel List for a new connection.
7896 * For possible values refer to enum hdd_conc_priority_mode
7897 *
7898 * Related: None.
7899 *
7900 * Supported Feature: DBS
7901 *
7902 * Usage: Internal/External
7903 *
7904 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007905 */
7906#define CFG_CONC_SYSTEM_PREF "gSystemPref"
7907#define CFG_CONC_SYSTEM_PREF_MIN (0)
7908#define CFG_CONC_SYSTEM_PREF_MAX (2)
7909#define CFG_CONC_SYSTEM_PREF_DEFAULT (0)
7910
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307911/*
7912 * <ini>
7913 * TSOEnable - Control to enable tso feature
7914 *
7915 * @Min: 0
7916 * @Max: 1
7917 * @Default: 0
7918 *
7919 * This ini is used to enable TSO feature
7920 *
7921 * Supported Feature: TSO Feature
7922 *
7923 * Usage: Internal
7924 *
7925 * </ini>
7926 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007927#define CFG_TSO_ENABLED_NAME "TSOEnable"
7928#define CFG_TSO_ENABLED_MIN (0)
7929#define CFG_TSO_ENABLED_MAX (1)
7930#define CFG_TSO_ENABLED_DEFAULT (0)
7931
7932/*
Himanshu Agarwalf0481722016-12-06 12:46:24 +05307933 * <ini>
7934 * LROEnable - Control to enable lro feature
7935 *
7936 * @Min: 0
7937 * @Max: 1
7938 * @Default: 0
7939 *
7940 * This ini is used to enable LRO feature
7941 *
7942 * Supported Feature: LRO
7943 *
7944 * Usage: Internal
7945 *
7946 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007947 */
7948#define CFG_LRO_ENABLED_NAME "LROEnable"
7949#define CFG_LRO_ENABLED_MIN (0)
7950#define CFG_LRO_ENABLED_MAX (1)
7951#define CFG_LRO_ENABLED_DEFAULT (0)
7952
7953/*
Manjunathappa Prakashfff753c2016-09-01 19:34:56 -07007954 * Enable Rx traffic flow steering to enable Rx interrupts on multiple CEs based
7955 * on the flows. Different CEs<==>different IRQs<==>probably different CPUs.
7956 * Parallel Rx paths.
7957 * 1 - enable 0 - disable
7958 */
7959#define CFG_FLOW_STEERING_ENABLED_NAME "gEnableFlowSteering"
7960#define CFG_FLOW_STEERING_ENABLED_MIN (0)
7961#define CFG_FLOW_STEERING_ENABLED_MAX (1)
7962#define CFG_FLOW_STEERING_ENABLED_DEFAULT (0)
7963
7964/*
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007965 * In static display use case when APPS is in stand alone power save mode enable
7966 * active offload mode which helps FW to filter out MC/BC data packets to avoid
7967 * APPS wake up and save more power.
7968 *
7969 * By default enable active mode offload as it helps to save more power in
7970 * static display usecase(APPS stand alone power collapse).
7971 *
7972 * If active mode offload(gActiveModeOffload=1) is enabled then all applicable
7973 * data offload/filtering is enabled immediately in FW once config is available
7974 * in WLAN driver and FW caches this configuration accross suspend/resume
7975 *
7976 * If active mode offload is disabled(gActiveModeOffload=0) then all applicable
7977 * data offload/filtering is enabled during cfg80211 suspend and disabled
7978 * during cfg80211 resume
7979 *
Rajeev Kumar5324d752017-02-13 17:11:19 -08007980 * Active mode offload feature is bydefault enabled for all targets
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007981 */
7982
7983#define CFG_ACTIVE_MODE_OFFLOAD "gActiveModeOffload"
7984#define CFG_ACTIVE_MODE_OFFLOAD_MIN (0)
7985#define CFG_ACTIVE_MODE_OFFLOAD_MAX (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007986#define CFG_ACTIVE_MODE_OFFLOAD_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007987
7988/*
Rajeev Kumardd3bc602016-08-16 14:21:05 -07007989 * 0: Disable BPF packet filter
7990 * 1: Enable BPF packet filter
7991 */
7992#define CFG_BPF_PACKET_FILTER_OFFLOAD "gBpfFilterEnable"
7993#define CFG_BPF_PACKET_FILTER_OFFLOAD_MIN (0)
7994#define CFG_BPF_PACKET_FILTER_OFFLOAD_MAX (1)
7995#define CFG_BPF_PACKET_FILTER_OFFLOAD_DEFAULT (1)
7996
7997/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307998 * <ini>
7999 * gCckChainMaskEnable - Used to enable/disable Cck ChainMask
8000 * @Min: 0
8001 * @Max: 1
8002 * @Default: 0
8003 *
8004 * This ini is used to set default Cck ChainMask
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08008005 * 0: disable the cck tx chain mask (default)
8006 * 1: enable the cck tx chain mask
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308007 *
8008 * Related: None
8009 *
8010 * Supported Feature: STA
8011 *
8012 * Usage: Internal/External
8013 *
8014 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08008015 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308016
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08008017#define CFG_TX_CHAIN_MASK_CCK "gCckChainMaskEnable"
8018#define CFG_TX_CHAIN_MASK_CCK_MIN (0)
8019#define CFG_TX_CHAIN_MASK_CCK_MAX (1)
8020#define CFG_TX_CHAIN_MASK_CCK_DEFAULT (0)
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308021/*
8022 * <ini>
8023 * gTxChainMask1ss - Enables/disables tx chain Mask1ss
8024 * @Min: 0
8025 * @Max: 3
8026 * @Default: 1
8027 *
8028 * This ini is used to set default tx chain Mask1ss
8029 *
8030 * Related: None
8031 *
8032 * Supported Feature: STA
8033 *
8034 * Usage: Internal/External
8035 *
8036 * </ini>
8037 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08008038
8039#define CFG_TX_CHAIN_MASK_1SS "gTxChainMask1ss"
8040#define CFG_TX_CHAIN_MASK_1SS_MIN (0)
8041#define CFG_TX_CHAIN_MASK_1SS_MAX (3)
8042#define CFG_TX_CHAIN_MASK_1SS_DEFAULT (1)
8043
8044/*
Jeff Johnsona89e25d2017-02-24 12:25:07 -08008045 * <ini>
8046 * gEnableSmartChainmask - Enable Smart Chainmask
8047 * @Min: 0
8048 * @Max: 1
8049 * @Default: 0
8050 *
8051 * This ini is used to enable/disable the Smart Chainmask feature via
8052 * the WMI_PDEV_PARAM_SMART_CHAINMASK_SCHEME firmware parameter.
8053 *
8054 * Related: None
8055 *
8056 * Supported Feature: STA
8057 *
8058 * Usage: Internal/External
8059 *
8060 * </ini>
8061 */
8062#define CFG_ENABLE_SMART_CHAINMASK_NAME "gEnableSmartChainmask"
8063#define CFG_ENABLE_SMART_CHAINMASK_MIN (0)
8064#define CFG_ENABLE_SMART_CHAINMASK_MAX (1)
8065#define CFG_ENABLE_SMART_CHAINMASK_DEFAULT (0)
8066
8067/*
8068 * <ini>
8069 * gEnableAlternativeChainmask - Enable Co-Ex Alternative Chainmask
8070 * @Min: 0
8071 * @Max: 1
8072 * @Default: 0
8073 *
8074 * This ini is used to enable/disable the Co-ex Alternative Chainmask
8075 * feature via the WMI_PDEV_PARAM_ALTERNATIVE_CHAINMASK_SCHEME
8076 * firmware parameter.
8077 *
8078 * Related: None
8079 *
8080 * Supported Feature: STA
8081 *
8082 * Usage: Internal/External
8083 *
8084 * </ini>
8085 */
8086#define CFG_ENABLE_COEX_ALT_CHAINMASK_NAME "gEnableAlternativeChainmask"
8087#define CFG_ENABLE_COEX_ALT_CHAINMASK_MIN (0)
8088#define CFG_ENABLE_COEX_ALT_CHAINMASK_MAX (1)
8089#define CFG_ENABLE_COEX_ALT_CHAINMASK_DEFAULT (0)
8090
8091/*
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08008092 * set the self gen power value from
8093 * 0 to 0xffff
8094 */
8095#define CFG_SELF_GEN_FRM_PWR "gSelfGenFrmPwr"
8096#define CFG_SELF_GEN_FRM_PWR_MIN (0)
8097#define CFG_SELF_GEN_FRM_PWR_MAX (0xffff)
8098#define CFG_SELF_GEN_FRM_PWR_DEFAULT (0)
8099
8100/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308101 * <ini>
8102 * gTxAggregationSize - Gives an option to configure Tx aggregation size
8103 * in no of MPDUs
8104 * @Min: 0
8105 * @Max: 64
8106 * @Default: 64
8107 *
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05308108 * gTxAggregationSize gives an option to configure Tx aggregation size
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308109 * in no of MPDUs.This can be useful in debugging throughput issues
8110 *
8111 * Related: None
8112 *
8113 * Supported Feature: STA
8114 *
8115 * Usage: Internal/External
8116 *
8117 * </ini>
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05308118 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308119
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05308120#define CFG_TX_AGGREGATION_SIZE "gTxAggregationSize"
8121#define CFG_TX_AGGREGATION_SIZE_MIN (0)
8122#define CFG_TX_AGGREGATION_SIZE_MAX (64)
8123#define CFG_TX_AGGREGATION_SIZE_DEFAULT (64)
8124
8125/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308126 * <ini>
8127 * gRxAggregationSize - Gives an option to configure Rx aggregation size
8128 * in no of MPDUs
8129 * @Min: 1
8130 * @Max: 64
8131 * @Default: 64
8132 *
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05308133 * gRxAggregationSize gives an option to configure Rx aggregation size
8134 * in no of MPDUs. This can be useful in debugging throughput issues
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308135 *
8136 * Related: None
8137 *
8138 * Supported Feature: STA
8139 *
8140 * Usage: Internal/External
8141 *
8142 * </ini>
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05308143 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308144
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05308145#define CFG_RX_AGGREGATION_SIZE "gRxAggregationSize"
8146#define CFG_RX_AGGREGATION_SIZE_MIN (1)
8147#define CFG_RX_AGGREGATION_SIZE_MAX (64)
8148#define CFG_RX_AGGREGATION_SIZE_DEFAULT (64)
8149
8150/*
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08008151 * fine timing measurement capability information
8152 *
8153 * <----- fine_time_meas_cap (in bits) ----->
8154 *+----------+-----+-----+------+------+-------+-------+-----+-----+
8155 *| 9-31 | 8 | 7 | 5 | 4 | 3 | 2 | 1 | 0 |
8156 *+----------+-----+-----+------+------+-------+-------+-----+-----+
8157 *| reserved | SAP | SAP |P2P-GO|P2P-GO|P2P-CLI|P2P-CLI| STA | STA |
8158 *| |resp |init |resp |init |resp |init |resp |init |
8159 *+----------+-----+-----+------+------+-------+-------+-----+-----+
8160 *
8161 * resp - responder role; init- initiator role
8162 *
8163 * CFG_FINE_TIME_MEAS_CAPABILITY_MAX computed based on the table
8164 * +-----------------+-----------------+-----------+
8165 * | Device Role | Initiator | Responder |
8166 * +-----------------+-----------------+-----------+
8167 * | Station | Y | N |
8168 * | P2P-CLI | Y | Y |
8169 * | P2P-GO | Y | Y |
8170 * | SAP | N | Y |
8171 * +-----------------+-----------------+-----------+
8172 */
8173#define CFG_FINE_TIME_MEAS_CAPABILITY "gfine_time_meas_cap"
8174#define CFG_FINE_TIME_MEAS_CAPABILITY_MIN (0x0000)
8175#define CFG_FINE_TIME_MEAS_CAPABILITY_MAX (0x00BD)
8176#define CFG_FINE_TIME_MEAS_CAPABILITY_DEFAULT (0x000D)
8177
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08008178/**
8179 * enum dot11p_mode - The 802.11p mode of operation
8180 * @WLAN_HDD_11P_DISABLED: 802.11p mode is disabled
8181 * @WLAN_HDD_11P_STANDALONE: 802.11p-only operation
8182 * @WLAN_HDD_11P_CONCURRENT: 802.11p and WLAN operate concurrently
8183 */
8184enum dot11p_mode {
8185 WLAN_HDD_11P_DISABLED = 0,
8186 WLAN_HDD_11P_STANDALONE,
8187 WLAN_HDD_11P_CONCURRENT,
8188};
8189
8190#define CFG_DOT11P_MODE_NAME "gDot11PMode"
8191#define CFG_DOT11P_MODE_DEFAULT (WLAN_HDD_11P_DISABLED)
8192#define CFG_DOT11P_MODE_MIN (WLAN_HDD_11P_DISABLED)
8193#define CFG_DOT11P_MODE_MAX (WLAN_HDD_11P_CONCURRENT)
8194
Agrawal Ashishb2d1a452016-05-05 12:23:58 +05308195/* When gEnable_go_cts2self_for_sta is
8196 * enabled then if a legacy client connects to P2P GO,
8197 * Host will send a WMI VDEV command to FW to stop using NOA for P2P GO
8198 * and start using CTS2SELF.
8199 */
8200#define CFG_ENABLE_GO_CTS2SELF_FOR_STA "gEnable_go_cts2self_for_sta"
8201#define CFG_ENABLE_GO_CTS2SELF_FOR_STA_DEFAULT (0)
8202#define CFG_ENABLE_GO_CTS2SELF_FOR_STA_MIN (0)
8203#define CFG_ENABLE_GO_CTS2SELF_FOR_STA_MAX (1)
8204
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08008205#define CFG_CE_CLASSIFY_ENABLE_NAME "gCEClassifyEnable"
8206#define CFG_CE_CLASSIFY_ENABLE_MIN (0)
8207#define CFG_CE_CLASSIFY_ENABLE_MAX (1)
Prakash Manjunathappa6eae0cd2016-02-08 10:27:21 -08008208#define CFG_CE_CLASSIFY_ENABLE_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08008209
Nitesh Shah5651b1e2017-02-02 17:59:52 +05308210/*
8211 *
8212 * <ini>
8213 * gDualMacFeatureDisable - Disable Dual MAC feature.
8214 * @Min: 0
8215 * @Max: 1
8216 * @Default: 0
8217 *
8218 * This ini is used to enable/disable dual MAC feature.
8219 * 0 - enable DBS 1 - disable DBS
8220 *
8221 * Related: None.
8222 *
8223 * Supported Feature: DBS
8224 *
8225 * Usage: Internal/External
8226 *
8227 * </ini>
8228 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08008229#define CFG_DUAL_MAC_FEATURE_DISABLE "gDualMacFeatureDisable"
8230#define CFG_DUAL_MAC_FEATURE_DISABLE_MIN (0)
8231#define CFG_DUAL_MAC_FEATURE_DISABLE_MAX (1)
8232#define CFG_DUAL_MAC_FEATURE_DISABLE_DEFAULT (0)
8233
Varun Reddy Yeturub43fda12015-09-10 18:16:21 -07008234/*
Nitesh Shah50a3de12017-04-03 19:37:19 +05308235 * <ini>
8236 * gdbs_scan_selection - DBS Scan Selection.
8237 * @Default: 5,2,2,16,2,2
8238 *
8239 * This ini is used to enable DBS scan selection.
8240 * 1st argument is module_id, 2nd argument is number of DBS scan,
8241 * 3rd argument is number of non-DBS scan,
8242 * and other arguments follows.
8243 * 5,2,2,16,2,2 means:
8244 * 5 is module id, 2 is num of DBS scan, 2 is num of non-DBS scan.
8245 * 16 is module id, 2 is num of DBS scan, 2 is num of non-DBS scan.
8246 *
8247 * Related: None.
8248 *
8249 * Supported Feature: DBS Scan
8250 *
8251 * Usage: Internal/External
8252 *
8253 * </ini>
8254 */
8255#define CFG_DBS_SCAN_SELECTION_NAME "gdbs_scan_selection"
8256#define CFG_DBS_SCAN_SELECTION_DEFAULT "5,2,2,16,2,2"
8257
8258/*
Varun Reddy Yeturub43fda12015-09-10 18:16:21 -07008259 * gPNOChannelPrediction will allow user to enable/disable the
8260 * PNO channel prediction feature.
8261 * In current PNO implementation, scan is always done until all configured
8262 * channels are scanned. If we can determine DUT is stationary based on
8263 * scanning a subset of channels, we may cancel the remaining channels.
8264 * Hence, we can save additional power consumption.
8265 */
8266#define CFG_PNO_CHANNEL_PREDICTION_NAME "gPNOChannelPrediction"
8267#define CFG_PNO_CHANNEL_PREDICTION_MIN (0)
8268#define CFG_PNO_CHANNEL_PREDICTION_MAX (1)
8269#define CFG_PNO_CHANNEL_PREDICTION_DEFAULT (0)
8270/*
8271 * The top K number of channels are used for tanimoto distance
8272 * calculation. These are the top channels on which the probability
8273 * of finding the AP's is extremely high. This number is intended
8274 * for tweaking the internal algorithm for experiments. This should
8275 * not be changed externally.
8276 */
8277#define CFG_TOP_K_NUM_OF_CHANNELS_NAME "gTopKNumOfChannels"
8278#define CFG_TOP_K_NUM_OF_CHANNELS_MIN (1)
8279#define CFG_TOP_K_NUM_OF_CHANNELS_MAX (5)
8280#define CFG_TOP_K_NUM_OF_CHANNELS_DEFAULT (3)
8281/*
8282 * This is the threshold value to determine that the STA is
8283 * stationary. If the tanimoto distance is less than this
8284 * value, then the device is considered to be stationary.
8285 * This parameter is intended to tweak the internal algorithm
8286 * for experiments. This should not be changed externally.
8287 */
8288#define CFG_STATIONARY_THRESHOLD_NAME "gStationaryThreshold"
8289#define CFG_STATIONARY_THRESHOLD_MIN (0)
8290#define CFG_STATIONARY_THRESHOLD_MAX (100)
8291#define CFG_STATIONARY_THRESHOLD_DEFAULT (10)
Varun Reddy Yeturu044bda22015-11-21 22:03:40 -08008292
Deepak Dhamdhere68929ec2015-08-05 15:16:35 -07008293/* Option to report rssi in cfg80211_inform_bss_frame()
8294 * 0 = use rssi value based on noise floor = -96 dBm
8295 * 1 = use rssi value based on actual noise floor in hardware
8296 */
8297#define CFG_INFORM_BSS_RSSI_RAW_NAME "gInformBssRssiRaw"
8298#define CFG_INFORM_BSS_RSSI_RAW_MIN (0)
8299#define CFG_INFORM_BSS_RSSI_RAW_MAX (1)
8300#define CFG_INFORM_BSS_RSSI_RAW_DEFAULT (1)
Ravi Joshi742495d2015-11-09 18:56:53 -08008301
Manikandan Mohan976e7562016-03-15 16:33:31 -07008302/* GPIO pin to toggle when capture tsf */
8303#define CFG_SET_TSF_GPIO_PIN_NAME "gtsf_gpio_pin"
8304#define CFG_SET_TSF_GPIO_PIN_MIN (0)
Manikandan Mohan296d4b52016-03-15 16:39:31 -07008305#define CFG_SET_TSF_GPIO_PIN_MAX (254)
8306#define TSF_GPIO_PIN_INVALID (255)
8307#define CFG_SET_TSF_GPIO_PIN_DEFAULT (TSF_GPIO_PIN_INVALID)
Sandeep Puligilla93a29ec2016-02-12 16:10:56 -08008308
8309/*
Gupta, Kapilc68ad462016-02-01 19:17:23 +05308310 * Dense traffic threshold
8311 * traffic threshold required for dense roam scan
Kapil Gupta7bad4312016-08-19 14:35:06 +05308312 * Measured in kbps
Gupta, Kapilc68ad462016-02-01 19:17:23 +05308313 */
8314#define CFG_ROAM_DENSE_TRAFFIC_THRESHOLD "gtraffic_threshold"
8315#define CFG_ROAM_DENSE_TRAFFIC_THRESHOLD_MIN (0)
Kapil Gupta7bad4312016-08-19 14:35:06 +05308316#define CFG_ROAM_DENSE_TRAFFIC_THRESHOLD_MAX (0xffffffff)
8317#define CFG_ROAM_DENSE_TRAFFIC_THRESHOLD_DEFAULT (400)
Gupta, Kapilc68ad462016-02-01 19:17:23 +05308318
8319/*
Kapil Gupta8878ad92017-02-13 11:56:04 +05308320 * <ini>
8321 * gvendor_acs_support - vendor based channel selection manager
8322 * @Min: 0
8323 * @Max: 1
8324 * @Default: 0
8325 *
8326 * Enabling this parameter will force driver to use user application based
8327 * channel selection algo instead of driver based auto channel selection
8328 * logic.
8329 *
8330 * Supported Feature: ACS
8331 *
8332 * Usage: External/Internal
8333 *
8334 * </ini>
8335 */
8336#define CFG_USER_AUTO_CHANNEL_SELECTION "gvendor_acs_support"
8337#define CFG_USER_AUTO_CHANNEL_SELECTION_DISABLE (0)
8338#define CFG_USER_AUTO_CHANNEL_SELECTION_ENABLE (1)
8339#define CFG_USER_AUTO_CHANNEL_SELECTION_DEFAULT (0)
8340
8341/*
8342 * <ini>
8343 * gacs_support_for_dfs_lte_coex - acs support for lte coex and dfs event
8344 * @Min: 0
8345 * @Max: 1
8346 * @Default: 0
8347 *
8348 * Enabling this parameter will force driver to use user application based
8349 * channel selection algo for channel selection in case of dfs and lte
8350 * coex event.
8351 *
8352 * Supported Feature: ACS
8353 *
8354 * Usage: Internal
8355 *
8356 * </ini>
8357 */
8358#define CFG_USER_ACS_DFS_LTE "gacs_support_for_dfs_lte_coex"
8359#define CFG_USER_ACS_DFS_LTE_DISABLE (0)
8360#define CFG_USER_ACS_DFS_LTE_ENABLE (1)
8361#define CFG_USER_ACS_DFS_LTE_DEFAULT (0)
8362
8363/*
Abhishek Singh165bc602016-03-21 12:43:00 +05308364 * Enabling gignore_peer_ht_opmode will enable 11g
8365 * protection only when there is a 11g AP in vicinity.
8366 */
8367#define CFG_IGNORE_PEER_HT_MODE_NAME "gignore_peer_ht_opmode"
8368#define CFG_IGNORE_PEER_HT_MODE_MIN (0)
8369#define CFG_IGNORE_PEER_HT_MODE_MAX (1)
8370#define CFG_IGNORE_PEER_HT_MODE_DEFAULT (0)
8371
Deepak Dhamdhere3385d752016-05-25 20:36:47 -07008372#ifdef WLAN_FEATURE_NAN_DATAPATH
8373/*
8374 * Enable NaN data path feature. NaN data path enables
8375 * NaN supported devices to exchange data over traditional
8376 * TCP/UDP network stack.
8377 */
8378#define CFG_ENABLE_NAN_DATAPATH_NAME "genable_nan_datapath"
8379#define CFG_ENABLE_NAN_DATAPATH_MIN (0)
8380#define CFG_ENABLE_NAN_DATAPATH_MAX (1)
8381#define CFG_ENABLE_NAN_DATAPATH_DEFAULT (0)
8382
8383/*
8384 * NAN channel on which NAN data interface to start
8385 */
8386#define CFG_ENABLE_NAN_NDI_CHANNEL_NAME "gnan_datapath_ndi_channel"
8387#define CFG_ENABLE_NAN_NDI_CHANNEL_MIN (6)
8388#define CFG_ENABLE_NAN_NDI_CHANNEL_MAX (149)
8389#define CFG_ENABLE_NAN_NDI_CHANNEL_DEFAULT (6)
8390#endif
8391
Abhishek Singh165bc602016-03-21 12:43:00 +05308392/*
Abhishek Singh5ea86532016-04-27 14:10:53 +05308393 * Enable/Disable to initiate BUG report in case of fatal event
8394 * Default: Enable
8395 */
8396#define CFG_ENABLE_FATAL_EVENT_TRIGGER "gEnableFatalEvent"
8397#define CFG_ENABLE_FATAL_EVENT_TRIGGER_MIN (0)
8398#define CFG_ENABLE_FATAL_EVENT_TRIGGER_MAX (1)
8399#define CFG_ENABLE_FATAL_EVENT_TRIGGER_DEFAULT (1)
8400
Abhishek Singh10ecf582016-05-04 17:48:59 +05308401/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308402 * <ini>
8403 * gEnableEdcaParams - Enable edca parameter
8404 * @Min: 0
8405 * @Max: 1
8406 * @Default: 0
8407 *
8408 * This ini is used if gEnableEdcaParams is set to 1, params gEdcaVoCwmin,
Abhishek Singh10ecf582016-05-04 17:48:59 +05308409 * gEdcaViCwmin, gEdcaBkCwmin, gEdcaBeCwmin, gEdcaVoCwmax,
8410 * gEdcaViCwmax, gEdcaBkCwmax, gEdcaBeCwmax, gEdcaVoAifs,
8411 * gEdcaViAifs, gEdcaBkAifs and gEdcaBeAifs values are used
8412 * to overwrite the values received from AP
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308413 *
8414 * Related: None
8415 *
8416 * Supported Feature: STA
8417 *
8418 * Usage: Internal/External
8419 *
8420 * </ini>
Abhishek Singh10ecf582016-05-04 17:48:59 +05308421 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308422
Abhishek Singh10ecf582016-05-04 17:48:59 +05308423#define CFG_ENABLE_EDCA_INI_NAME "gEnableEdcaParams"
8424#define CFG_ENABLE_EDCA_INI_MIN (0)
8425#define CFG_ENABLE_EDCA_INI_MAX (1)
8426#define CFG_ENABLE_EDCA_INI_DEFAULT (0)
8427
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308428/*
8429 * <ini>
8430 * gEdcaVoCwmin - Set Cwmin value for EDCA_AC_VO
8431 * @Min: 0
8432 * @Max: 0x15
8433 * @Default: 2
8434 *
8435 * This ini is used to set default Cwmin value for EDCA_AC_VO
8436 * Cwmin value for EDCA_AC_VO. CWVomin = 2^gEdcaVoCwmin -1
8437 *
8438 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin etc
8439 * are aplicable
8440 *
8441 * Supported Feature: STA
8442 *
8443 * Usage: Internal/External
8444 *
8445 * </ini>
8446 */
8447
Abhishek Singh10ecf582016-05-04 17:48:59 +05308448#define CFG_EDCA_VO_CWMIN_VALUE_NAME "gEdcaVoCwmin"
8449#define CFG_EDCA_VO_CWMIN_VALUE_MIN (0x0)
8450#define CFG_EDCA_VO_CWMIN_VALUE_MAX (15)
8451#define CFG_EDCA_VO_CWMIN_VALUE_DEFAULT (2)
8452
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308453/*
8454 * <ini>
8455 * gEdcaViCwmin - Set Cwmin value for EDCA_AC_VI
8456 * @Min: 0x0
8457 * @Max: 15
8458 * @Default: 3
8459 *
8460 * This ini is used to set default value for EDCA_AC_VI
8461 * Cwmin value for EDCA_AC_VI. CWVimin = 2^gEdcaViCwmin -1
8462 *
8463 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8464 * etc are aplicable
8465 *
8466 * Supported Feature: STA
8467 *
8468 * Usage: Internal/External
8469 *
8470 * </ini>
8471 */
8472
Abhishek Singh10ecf582016-05-04 17:48:59 +05308473#define CFG_EDCA_VI_CWMIN_VALUE_NAME "gEdcaViCwmin"
8474#define CFG_EDCA_VI_CWMIN_VALUE_MIN (0x0)
8475#define CFG_EDCA_VI_CWMIN_VALUE_MAX (15)
8476#define CFG_EDCA_VI_CWMIN_VALUE_DEFAULT (3)
8477
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308478/*
8479 * <ini>
8480 * gEdcaBkCwmin - Set Cwmin value for EDCA_AC_BK
8481 * @Min: 0x0
8482 * @Max: 15
8483 * @Default: 4
8484 *
8485 * This ini is used to set default Cwmin value for EDCA_AC_BK
8486 * Cwmin value for EDCA_AC_BK. CWBkmin = 2^gEdcaBkCwmin -1
8487 *
8488 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8489 * etc are aplicable
8490 *
8491 * Supported Feature: STA
8492 *
8493 * Usage: Internal/External
8494 * </ini>
8495 */
8496
Abhishek Singh10ecf582016-05-04 17:48:59 +05308497#define CFG_EDCA_BK_CWMIN_VALUE_NAME "gEdcaBkCwmin"
8498#define CFG_EDCA_BK_CWMIN_VALUE_MIN (0x0)
8499#define CFG_EDCA_BK_CWMIN_VALUE_MAX (15)
8500#define CFG_EDCA_BK_CWMIN_VALUE_DEFAULT (4)
8501
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308502/*
8503 * <ini>
8504 * gEdcaBeCwmin - Set Cwmin value for EDCA_AC_BE
8505 * @Min: 0x0
8506 * @Max: 15
8507 * @Default: 4
8508 *
8509 * This ini is used to set default Cwmin value for EDCA_AC_BE
8510 * Cwmin value for EDCA_AC_BE. CWBemin = 2^gEdcaBeCwmin
8511 *
8512 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8513 * etc are aplicable
8514 *
8515 * Supported Feature: STA
8516 *
8517 * Usage: Internal/External
8518 *
8519 * </ini>
8520 */
8521
Abhishek Singh10ecf582016-05-04 17:48:59 +05308522#define CFG_EDCA_BE_CWMIN_VALUE_NAME "gEdcaBeCwmin"
8523#define CFG_EDCA_BE_CWMIN_VALUE_MIN (0x0)
8524#define CFG_EDCA_BE_CWMIN_VALUE_MAX (15)
8525#define CFG_EDCA_BE_CWMIN_VALUE_DEFAULT (4)
8526
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308527/*
8528 * <ini>
8529 * gEdcaVoCwmax - Set Cwmax value for EDCA_AC_VO
8530 * @Min: 0
8531 * @Max: 15
8532 * @Default: 3
8533 *
8534 * This ini is used to set default Cwmax value for EDCA_AC_VO
8535 * Cwmax value for EDCA_AC_VO. CWVomax = 2^gEdcaVoCwmax -1
8536 *
8537 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8538 * etc are aplicable
8539 *
8540 * Supported Feature: STA
8541 *
8542 * Usage: Internal/External
8543 *
8544 * </ini>
8545 */
8546
Abhishek Singh10ecf582016-05-04 17:48:59 +05308547#define CFG_EDCA_VO_CWMAX_VALUE_NAME "gEdcaVoCwmax"
8548#define CFG_EDCA_VO_CWMAX_VALUE_MIN (0)
8549#define CFG_EDCA_VO_CWMAX_VALUE_MAX (15)
8550#define CFG_EDCA_VO_CWMAX_VALUE_DEFAULT (3)
8551
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308552/*
8553 * <ini>
8554 * gEdcaViCwmax - Set Cwmax value for EDCA_AC_VI
8555 * @Min: 0
8556 * @Max: 15
8557 * @Default: 4
8558 *
8559 * This ini is used to set default Cwmax value for EDCA_AC_VI
8560 * Cwmax value for EDCA_AC_VI. CWVimax = 2^gEdcaViCwmax -1
8561 *
8562 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8563 * etc are aplicable
8564 *
8565 * Supported Feature: STA
8566 *
8567 * Usage: Internal/External
8568 *
8569 * </ini>
8570 */
Abhishek Singh10ecf582016-05-04 17:48:59 +05308571#define CFG_EDCA_VI_CWMAX_VALUE_NAME "gEdcaViCwmax"
8572#define CFG_EDCA_VI_CWMAX_VALUE_MIN (0)
8573#define CFG_EDCA_VI_CWMAX_VALUE_MAX (15)
8574#define CFG_EDCA_VI_CWMAX_VALUE_DEFAULT (4)
8575
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308576/*
8577 * <ini>
8578 * gEdcaBkCwmax - Set Cwmax value for EDCA_AC_BK
8579 * @Min: 0
8580 * @Max: 15
8581 * @Default: 10
8582 *
8583 * This ini is used to set default Cwmax value for EDCA_AC_BK
8584 * Cwmax value for EDCA_AC_BK. CWBkmax = 2^gEdcaBkCwmax -1
8585 *
8586 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8587 * etc are aplicable
8588 *
8589 * Supported Feature: STA
8590 *
8591 * Usage: Internal/External
8592 *
8593 * </ini>
8594 */
8595
Abhishek Singh10ecf582016-05-04 17:48:59 +05308596#define CFG_EDCA_BK_CWMAX_VALUE_NAME "gEdcaBkCwmax"
8597#define CFG_EDCA_BK_CWMAX_VALUE_MIN (0)
8598#define CFG_EDCA_BK_CWMAX_VALUE_MAX (15)
8599#define CFG_EDCA_BK_CWMAX_VALUE_DEFAULT (10)
8600
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308601/*
8602 * <ini>
8603 * gEdcaBeCwmax - Set Cwmax value for EDCA_AC_BE
8604 * @Min: 0
8605 * @Max: 15
8606 * @Default: 10
8607 *
8608 * This ini is used to set default Cwmax value for EDCA_AC_BE
8609 * Cwmax value for EDCA_AC_BE. CWBemax = 2^gEdcaBeCwmax -1
8610 *
8611 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8612 * etc are aplicable
8613 *
8614 * Supported Feature: STA
8615 *
8616 * Usage: Internal/External
8617 *
8618 * </ini>
8619 */
8620
Abhishek Singh10ecf582016-05-04 17:48:59 +05308621#define CFG_EDCA_BE_CWMAX_VALUE_NAME "gEdcaBeCwmax"
8622#define CFG_EDCA_BE_CWMAX_VALUE_MIN (0)
8623#define CFG_EDCA_BE_CWMAX_VALUE_MAX (15)
8624#define CFG_EDCA_BE_CWMAX_VALUE_DEFAULT (10)
8625
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308626/*
8627 * <ini>
8628 * gEdcaVoAifs - Set Aifs value for EDCA_AC_VO
8629 * @Min: 0
8630 * @Max: 15
8631 * @Default: 2
8632 *
8633 * This ini is used to set default Aifs value for EDCA_AC_VO
8634 *
8635 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8636 * etc are aplicable
8637 *
8638 * Supported Feature: STA
8639 *
8640 * Usage: Internal/External
8641 *
8642 * </ini>
8643 */
8644
Abhishek Singh10ecf582016-05-04 17:48:59 +05308645#define CFG_EDCA_VO_AIFS_VALUE_NAME "gEdcaVoAifs"
8646#define CFG_EDCA_VO_AIFS_VALUE_MIN (0)
8647#define CFG_EDCA_VO_AIFS_VALUE_MAX (15)
8648#define CFG_EDCA_VO_AIFS_VALUE_DEFAULT (2)
8649
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308650/*
8651 * <ini>
8652 * gEdcaViAifs - Set Aifs value for EDCA_AC_VI
8653 * @Min: 0
8654 * @Max: 15
8655 * @Default: 2
8656 *
8657 * This ini is used to set default Aifs value for EDCA_AC_VI
8658 *
8659 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8660 * etc are aplicable
8661 *
8662 * Supported Feature: STA
8663 *
8664 * Usage: Internal/External
8665 *
8666 * </ini>
8667 */
8668
Abhishek Singh10ecf582016-05-04 17:48:59 +05308669#define CFG_EDCA_VI_AIFS_VALUE_NAME "gEdcaViAifs"
8670#define CFG_EDCA_VI_AIFS_VALUE_MIN (0)
8671#define CFG_EDCA_VI_AIFS_VALUE_MAX (15)
8672#define CFG_EDCA_VI_AIFS_VALUE_DEFAULT (2)
8673
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308674/*
8675 * <ini>
8676 * gEdcaBkAifs - Set Aifs value for EDCA_AC_BK
8677 * @Min: 0
8678 * @Max: 15
8679 * @Default: 7
8680 *
8681 * This ini is used to set default Aifs value for EDCA_AC_BK
8682 *
8683 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8684 * etc are aplicable
8685 *
8686 * Supported Feature: STA
8687 *
8688 * Usage: Internal/External
8689 *
8690 * </ini>
8691 */
8692
Abhishek Singh10ecf582016-05-04 17:48:59 +05308693#define CFG_EDCA_BK_AIFS_VALUE_NAME "gEdcaBkAifs"
8694#define CFG_EDCA_BK_AIFS_VALUE_MIN (0)
8695#define CFG_EDCA_BK_AIFS_VALUE_MAX (15)
8696#define CFG_EDCA_BK_AIFS_VALUE_DEFAULT (7)
8697
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308698/*
8699 * <ini>
8700 * gEdcaBeAifs - Set Aifs value for EDCA_AC_BE
8701 * @Min: 0
8702 * @Max: 15
8703 * @Default: 3
8704 *
8705 * This ini is used to set default Aifs value for EDCA_AC_BE
8706 *
8707 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8708 * etc are aplicable
8709 *
8710 * Supported Feature: STA
8711 *
8712 * Usage: Internal/External
8713 *
8714 * </ini>
8715 */
8716
Abhishek Singh10ecf582016-05-04 17:48:59 +05308717#define CFG_EDCA_BE_AIFS_VALUE_NAME "gEdcaBeAifs"
8718#define CFG_EDCA_BE_AIFS_VALUE_MIN (0)
8719#define CFG_EDCA_BE_AIFS_VALUE_MAX (15)
8720#define CFG_EDCA_BE_AIFS_VALUE_DEFAULT (3)
8721
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05308722/*
gbian62edd7e2017-03-07 13:12:13 +08008723 * <ini>
8724 * gEnableTxSchedWrrVO - Set TX sched parameters for VO
8725 * @Default:
8726 *
8727 * This key is mapping to VO defined in data path module through
8728 * OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
8729 * WRR TX sched parameters such as skip, credit, limit, credit, disc for VO.
8730 * e.g., gEnableTxSchedWrrVO = 10, 9, 8, 1, 8
8731 */
8732#define CFG_ENABLE_TX_SCHED_WRR_VO_NAME "gEnableTxSchedWrrVO"
8733#define CFG_ENABLE_TX_SCHED_WRR_VO_DEFAULT ""
8734
8735/*
8736 * <ini>
8737 * gEnableTxSchedWrrVI - Set TX sched parameters for VI
8738 * @Default:
8739 *
8740 * This key is mapping to VI defined in data path module through
8741 * OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
8742 * WRR TX sched parameters such as skip, credit, limit, credit, disc for VI.
8743 * e.g., gEnableTxSchedWrrVI = 10, 9, 8, 1, 8
8744 */
8745#define CFG_ENABLE_TX_SCHED_WRR_VI_NAME "gEnableTxSchedWrrVI"
8746#define CFG_ENABLE_TX_SCHED_WRR_VI_DEFAULT ""
8747
8748/*
8749 * <ini>
8750 * gEnableTxSchedWrrBE - Set TX sched parameters for BE
8751 * @Default:
8752 *
8753 * This key is mapping to BE defined in data path module through
8754 * OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
8755 * WRR TX sched parameters such as skip, credit, limit, credit, disc for BE.
8756 * e.g., gEnableTxSchedWrrBE = 10, 9, 8, 1, 8
8757 */
8758#define CFG_ENABLE_TX_SCHED_WRR_BE_NAME "gEnableTxSchedWrrBE"
8759#define CFG_ENABLE_TX_SCHED_WRR_BE_DEFAULT ""
8760
8761/*
8762 * <ini>
8763 * gEnableTxSchedWrrBK - Set TX sched parameters for BK
8764 * @Default:
8765 *
8766 * This key is mapping to BK defined in data path module through
8767 * OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
8768 * WRR TX sched parameters such as skip, credit, limit, credit, disc for BK.
8769 * e.g., gEnableTxSchedWrrBK = 10, 9, 8, 1, 8
8770 */
8771#define CFG_ENABLE_TX_SCHED_WRR_BK_NAME "gEnableTxSchedWrrBK"
8772#define CFG_ENABLE_TX_SCHED_WRR_BK_DEFAULT ""
8773
8774/*
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05308775 * Enable/disable DPTRACE
8776 * Enabling this might have performace impact.
8777 */
8778#define CFG_ENABLE_DP_TRACE "enable_dp_trace"
8779#define CFG_ENABLE_DP_TRACE_MIN (0)
8780#define CFG_ENABLE_DP_TRACE_MAX (1)
Nirav Shah1da77682016-05-03 20:16:39 +05308781#define CFG_ENABLE_DP_TRACE_DEFAULT (1)
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05308782
Gupta, Kapil96c7f2f2016-04-25 19:13:41 +05308783/*
Gupta, Kapil96c7f2f2016-04-25 19:13:41 +05308784 * This parameter will set the weight to calculate the average low pass
8785 * filter for channel congestion.
8786 * Acceptable values for this: 0-100 (In %)
8787 */
8788#define CFG_ADAPT_DWELL_LPF_WEIGHT_NAME "adapt_dwell_lpf_weight"
8789#define CFG_ADAPT_DWELL_LPF_WEIGHT_MIN (0)
8790#define CFG_ADAPT_DWELL_LPF_WEIGHT_MAX (100)
8791#define CFG_ADAPT_DWELL_LPF_WEIGHT_DEFAULT (80)
8792
8793/*
8794 * This parameter will set interval to monitor wifi activity
8795 * in passive scan in msec.
8796 * Acceptable values for this: 0-25
8797 */
8798#define CFG_ADAPT_DWELL_PASMON_INTVAL_NAME "adapt_dwell_passive_mon_intval"
8799#define CFG_ADAPT_DWELL_PASMON_INTVAL_MIN (0)
Kapil Gupta6eb83c02017-03-03 11:07:52 +05308800#define CFG_ADAPT_DWELL_PASMON_INTVAL_MAX (25)
8801#define CFG_ADAPT_DWELL_PASMON_INTVAL_DEFAULT (10)
Gupta, Kapil96c7f2f2016-04-25 19:13:41 +05308802
8803/*
8804 * This parameter will set % of wifi activity used in passive scan 0-100.
8805 * Acceptable values for this: 0-100 (in %)
8806 */
8807#define CFG_ADAPT_DWELL_WIFI_THRESH_NAME "adapt_dwell_wifi_act_threshold"
8808#define CFG_ADAPT_DWELL_WIFI_THRESH_MIN (0)
8809#define CFG_ADAPT_DWELL_WIFI_THRESH_MAX (100)
8810#define CFG_ADAPT_DWELL_WIFI_THRESH_DEFAULT (10)
8811
8812/*
Mukul Sharmaf7d62e12016-09-03 15:16:22 +05308813 * This parameter will help to debug ssr reinit failure issues
8814 * by raising vos bug so dumps can be collected. If OEM
8815 * wants to avoid this crash, just disable this parameter.
8816 * wlan driver will only recover after driver unload and load.
8817 * Default: Enable
8818 */
8819#define CFG_BUG_ON_REINIT_FAILURE_NAME "g_bug_on_reinit_failure"
8820#define CFG_BUG_ON_REINIT_FAILURE_MIN (0)
8821#define CFG_BUG_ON_REINIT_FAILURE_MAX (1)
8822#define CFG_BUG_ON_REINIT_FAILURE_DEFAULT (1)
8823
8824/*
Abhishek Singh76587c32016-12-01 11:47:44 +05308825 * <ini>
8826 * gSub20ChannelWidth - Control sub 20 channel width (5/10 Mhz)
8827 * @Min: 0
8828 * @Max: 2
8829 * @Default: 0
8830 *
8831 * This ini is used to set the sub 20 channel width.
Naveen Rawat64e477e2016-05-20 10:34:56 -07008832 * gSub20ChannelWidth=0: indicates do not use Sub 20 MHz bandwidth
8833 * gSub20ChannelWidth=1: Bring up SAP/STA in 5 MHz bandwidth
8834 * gSub20ChannelWidth=2: Bring up SAP/STA in 10 MHz bandwidth
Abhishek Singh76587c32016-12-01 11:47:44 +05308835 *
8836 * Related: None
8837 *
8838 * Supported Feature: 5/10 Mhz channel width support
8839 *
8840 * Usage: Internal/External
8841 *
8842 * </ini>
Naveen Rawat64e477e2016-05-20 10:34:56 -07008843 */
8844#define CFG_SUB_20_CHANNEL_WIDTH_NAME "gSub20ChannelWidth"
8845#define CFG_SUB_20_CHANNEL_WIDTH_MIN (WLAN_SUB_20_CH_WIDTH_NONE)
8846#define CFG_SUB_20_CHANNEL_WIDTH_MAX (WLAN_SUB_20_CH_WIDTH_10)
8847#define CFG_SUB_20_CHANNEL_WIDTH_DEFAULT (WLAN_SUB_20_CH_WIDTH_NONE)
Nirav Shahbd36b062016-07-18 11:12:59 +05308848
Rajeev Kumar Sirasanagandlaaf474742016-09-06 17:54:50 +05308849#define CFG_TGT_GTX_USR_CFG_NAME "tgt_gtx_usr_cfg"
8850#define CFG_TGT_GTX_USR_CFG_MIN (0)
8851#define CFG_TGT_GTX_USR_CFG_MAX (32)
8852#define CFG_TGT_GTX_USR_CFG_DEFAULT (32)
8853
Arun Khandavallicc544b32017-01-30 19:52:16 +05308854#define CFG_SAP_INTERNAL_RESTART_NAME "gEnableSapInternalRestart"
8855#define CFG_SAP_INTERNAL_RESTART_MIN (0)
8856#define CFG_SAP_INTERNAL_RESTART_MAX (1)
8857#define CFG_SAP_INTERNAL_RESTART_DEFAULT (1)
8858
Nirav Shahbd36b062016-07-18 11:12:59 +05308859/*
Hanumanth Reddy Pothula9c161dd2017-03-23 19:03:08 +05308860 * <ini>
Hanumanth Reddy Pothulaffc2d482017-07-04 11:32:44 +05308861 * restart_beaconing_on_chan_avoid_event - control the beaconing entity to move
8862 * away from active LTE channels
Hanumanth Reddy Pothula9c161dd2017-03-23 19:03:08 +05308863 * @Min: 0
8864 * @Max: 1
8865 * @Default: 1
8866 *
Hanumanth Reddy Pothulaffc2d482017-07-04 11:32:44 +05308867 * This ini is used to control the beaconing entity (SAP/GO) to move away from
8868 * active LTE channels when channel avoidance event is received
8869 * restart_beaconing_on_chan_avoid_event=0: Don't allow beaconing entity move
8870 * from active LTE channels
8871 * restart_beaconing_on_chan_avoid_event=1: Allow beaconing entity move from
8872 * active LTE channels
Hanumanth Reddy Pothula9c161dd2017-03-23 19:03:08 +05308873 *
8874 * Related: None
8875 *
8876 * Supported Feature: channel avoidance
8877 *
8878 * Usage: Internal/External
8879 *
8880 * </ini>
8881 */
Hanumanth Reddy Pothulaffc2d482017-07-04 11:32:44 +05308882#define CFG_RESTART_BEACONING_ON_CH_AVOID_NAME "restart_beaconing_on_chan_avoid_event"
8883#define CFG_RESTART_BEACONING_ON_CH_AVOID_MIN (0)
8884#define CFG_RESTART_BEACONING_ON_CH_AVOID_MAX (1)
8885#define CFG_RESTART_BEACONING_ON_CH_AVOID_DEFAULT (1)
Hanumanth Reddy Pothula9c161dd2017-03-23 19:03:08 +05308886/*
Agrawal, Ashish4e5fa1c2016-09-21 19:03:43 +05308887 * This parameter will avoid updating ap_sta_inactivity from hostapd.conf
8888 * file. If a station does not send anything in ap_max_inactivity seconds, an
8889 * empty data frame is sent to it in order to verify whether it is
8890 * still in range. If this frame is not ACKed, the station will be
8891 * disassociated and then deauthenticated. This feature is used to
8892 * clear station table of old entries when the STAs move out of the
8893 * range.
8894 * Default : Disable
8895 */
8896#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_NAME "gSapMaxInactivityOverride"
8897#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_MIN (0)
8898#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_MAX (1)
8899#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_DEFAULT (0)
8900
8901/*
Himanshu Agarwalf0481722016-12-06 12:46:24 +05308902 * <ini>
8903 * rx_mode - Control to decide rx mode
8904 *
8905 * @Min: 0
8906 * @Max: (CFG_ENABLE_RX_THREAD | CFG_ENABLE_RPS | CFG_ENABLE_NAPI)
8907 * @Default: MDM_PLATFORM - 0
8908 * HELIUMPLUS - CFG_ENABLE_NAPI
8909 * Other cases - (CFG_ENABLE_RX_THREAD | CFG_ENABLE_NAPI)
8910 *
8911 * This ini is used to decide mode for the rx path
8912 *
8913 * Supported Feature: NAPI
8914 *
8915 * Usage: Internal
8916 *
8917 * </ini>
Nirav Shahbd36b062016-07-18 11:12:59 +05308918 */
8919#define CFG_RX_MODE_NAME "rx_mode"
8920#define CFG_RX_MODE_MIN (0)
8921#define CFG_RX_MODE_MAX (CFG_ENABLE_RX_THREAD | CFG_ENABLE_RPS | \
8922 CFG_ENABLE_NAPI)
8923#ifdef MDM_PLATFORM
8924#define CFG_RX_MODE_DEFAULT (0)
Manjunathappa Prakash2721f942016-08-24 16:08:23 -07008925#elif defined(HELIUMPLUS)
8926#define CFG_RX_MODE_DEFAULT CFG_ENABLE_NAPI
Nirav Shahbd36b062016-07-18 11:12:59 +05308927#else
8928#define CFG_RX_MODE_DEFAULT (CFG_ENABLE_RX_THREAD | CFG_ENABLE_NAPI)
8929#endif
8930
8931/* List of RPS CPU maps for different rx queues registered by WLAN driver
8932 * Ref - Kernel/Documentation/networking/scaling.txt
8933 * RPS CPU map for a particular RX queue, selects CPU(s) for bottom half
8934 * processing of RX packets. For example, for a system with 4 CPUs,
8935 * 0xe: Use CPU1 - CPU3 and donot use CPU0.
8936 * 0x0: RPS is disabled, packets are processed on the interrupting CPU.
8937.*
8938 * WLAN driver registers NUM_TX_QUEUES queues for tx and rx each during
8939 * alloc_netdev_mq. Hence, we need to have a cpu mask for each of the rx queues.
8940 *
8941 * For example, if the NUM_TX_QUEUES is 4, a sample WLAN ini entry may look like
8942 * rpsRxQueueCpuMapList=a b c d
8943 * For a 4 CPU system (CPU0 - CPU3), this implies:
8944 * 0xa - (1010) use CPU1, CPU3 for rx queue 0
8945 * 0xb - (1011) use CPU0, CPU1 and CPU3 for rx queue 1
8946 * 0xc - (1100) use CPU2, CPU3 for rx queue 2
8947 * 0xd - (1101) use CPU0, CPU2 and CPU3 for rx queue 3
8948
8949 * In practice, we may want to avoid the cores which are heavily loaded.
8950 */
8951
8952/* Name of the ini file entry to specify RPS map for different RX queus */
8953#define CFG_RPS_RX_QUEUE_CPU_MAP_LIST_NAME "rpsRxQueueCpuMapList"
8954
8955/* Default value of rpsRxQueueCpuMapList. Different platforms may have
8956 * different configurations for NUM_TX_QUEUES and # of cpus, and will need to
8957 * configure an appropriate value via ini file. Setting default value to 'e' to
8958 * avoid use of CPU0 (since its heavily used by other system processes) by rx
8959 * queue 0, which is currently being used for rx packet processing.
8960 */
8961#define CFG_RPS_RX_QUEUE_CPU_MAP_LIST_DEFAULT "e"
8962
8963/* Maximum length of string used to hold a list of cpu maps for various rx
8964 * queues. Considering a 16 core system with 5 rx queues, a RPS CPU map
8965 * list may look like -
8966 * rpsRxQueueCpuMapList = ffff ffff ffff ffff ffff
8967 * (all 5 rx queues can be processed on all 16 cores)
8968 * max string len = 24 + 1(for '\0'). Considering 30 to be on safe side.
8969 */
8970#define CFG_RPS_RX_QUEUE_CPU_MAP_LIST_LEN 30
8971
Yingying Tang95409972016-10-20 15:16:15 +08008972#ifdef WLAN_FEATURE_WOW_PULSE
8973/*
8974 * Enable/Disable WOW PULSE feature
8975 * Set the wakeup pulse which FW use to wake up HOST
8976 * Default : Disable
8977 */
8978#define CFG_WOW_PULSE_SUPPORT_NAME "gwow_pulse_support"
8979#define CFG_WOW_PULSE_SUPPORT_MIN (0)
8980#define CFG_WOW_PULSE_SUPPORT_MAX (1)
8981#define CFG_WOW_PULSE_SUPPORT_DEFAULT (CFG_WOW_PULSE_SUPPORT_MIN)
8982
8983/*
8984 * GPIO PIN for Pulse
8985 * Which PIN to send the Pulse
8986 */
8987#define CFG_WOW_PULSE_PIN_NAME "gwow_pulse_pin"
8988#define CFG_WOW_PULSE_PIN_MIN (CFG_SET_TSF_GPIO_PIN_MIN)
8989#define CFG_WOW_PULSE_PIN_MAX (CFG_SET_TSF_GPIO_PIN_MAX)
8990#define CFG_WOW_PULSE_PIN_DEFAULT (35)
8991
8992/*
8993 * Pulse interval low
8994 * The interval of low level in the pulse
8995 * The value which defined by customer should between 160 and 480
8996 */
8997#define CFG_WOW_PULSE_INTERVAL_LOW_NAME "gwow_pulse_interval_low"
8998#define CFG_WOW_PULSE_INTERVAL_LOW_MIN (160)
8999#define CFG_WOW_PULSE_INTERVAL_LOW_MAX (480)
9000#define CFG_WOW_PULSE_INTERVAL_LOW_DEFAULT (180)
9001
9002/*
9003 * Pulse interval high
9004 * The interval of high level in the pulse
9005 * The value which defined by customer should between 20 and 40
9006 */
9007#define CFG_WOW_PULSE_INTERVAL_HIGH_NAME "gwow_pulse_interval_high"
9008#define CFG_WOW_PULSE_INTERVAL_HIGH_MIN (20)
9009#define CFG_WOW_PULSE_INTERVAL_HIGH_MAX (40)
9010#define CFG_WOW_PULSE_INTERVAL_HIGH_DEFAULT (20)
9011#endif
9012
Amar Singhal18517882016-08-08 12:26:20 -07009013/*
9014 * Support to start sap in indoor channel
9015 * Customer can config this item to enable/disable sap in indoor channel
9016 * Default: Disable
9017 */
9018#define CFG_INDOOR_CHANNEL_SUPPORT_NAME "gindoor_channel_support"
9019#define CFG_INDOOR_CHANNEL_SUPPORT_MIN (0)
9020#define CFG_INDOOR_CHANNEL_SUPPORT_MAX (1)
9021#define CFG_INDOOR_CHANNEL_SUPPORT_DEFAULT (0)
Nirav Shahbd36b062016-07-18 11:12:59 +05309022
Ravi Joshibb8d4512016-08-22 10:14:52 -07009023/*
Rajeev Kumar Sirasanagandlab79b5462016-09-06 18:33:17 +05309024 * Force softap to 11n, when gSapForce11NFor11AC is set to 1 from ini
9025 * despite of hostapd.conf request for 11ac
9026 */
9027#define CFG_SAP_FORCE_11N_FOR_11AC_NAME "gSapForce11NFor11AC"
9028#define CFG_SAP_FORCE_11N_FOR_11AC_MIN (0)
9029#define CFG_SAP_FORCE_11N_FOR_11AC_MAX (1)
9030#define CFG_SAP_FORCE_11N_FOR_11AC_DEFAULT (0)
9031
9032/*
Yingying Tangb4832f72016-10-20 13:44:55 +08009033 * sap tx leakage threshold
9034 * customer can set this value from 100 to 1000 which means
9035 * sap tx leakage threshold is -10db to -100db
9036 */
9037#define CFG_SAP_TX_LEAKAGE_THRESHOLD_NAME "gsap_tx_leakage_threshold"
9038#define CFG_SAP_TX_LEAKAGE_THRESHOLD_MIN (100)
9039#define CFG_SAP_TX_LEAKAGE_THRESHOLD_MAX (1000)
9040#define CFG_SAP_TX_LEAKAGE_THRESHOLD_DEFAULT (310)
9041
9042
9043/*
Ravi Joshibb8d4512016-08-22 10:14:52 -07009044 * Enable filtering of replayed multicast packets
9045 * In a typical infrastructure setup, it is quite normal to receive
9046 * replayed multicast packets. These packets may cause more harm than
9047 * help if not handled properly. Providing a configuration option
9048 * to enable filtering of such packets
9049 */
9050#define CFG_FILTER_MULTICAST_REPLAY_NAME "enable_multicast_replay_filter"
9051#define CFG_FILTER_MULTICAST_REPLAY_MIN (0)
9052#define CFG_FILTER_MULTICAST_REPLAY_MAX (1)
9053#define CFG_FILTER_MULTICAST_REPLAY_DEFAULT (1)
9054
Manjeet Singhe7ecb7c2016-09-03 12:34:53 +05309055/*
9056 * This parameter will control SIFS burst duration in FW from 0 to 12 ms.
9057 * Default value is set to 8ms.
9058 */
9059#define CFG_SIFS_BURST_DURATION_NAME "g_sifs_burst_duration"
9060#define CFG_SIFS_BURST_DURATION_MIN (0)
9061#define CFG_SIFS_BURST_DURATION_MAX (12)
9062#define CFG_SIFS_BURST_DURATION_DEFAULT (8)
9063
Selvaraj, Sridharebda0f22016-08-29 16:05:23 +05309064/* Optimize channel avoidance indication comming from firmware */
9065#define CFG_OPTIMIZE_CA_EVENT_NAME "goptimize_chan_avoid_event"
9066#define CFG_OPTIMIZE_CA_EVENT_DISABLE (0)
9067#define CFG_OPTIMIZE_CA_EVENT_ENABLE (1)
9068#define CFG_OPTIMIZE_CA_EVENT_DEFAULT (0)
Ravi Joshibb8d4512016-08-22 10:14:52 -07009069
Sandeep Puligillaafa52892016-10-26 19:03:16 -07009070/* Trigger BUG ON when firmware fails to send response */
9071#define CFG_CRASH_FW_TIMEOUT_NAME "fw_timeout_crash"
9072#define CFG_CRASH_FW_TIMEOUT_DISABLE (0)
9073#define CFG_CRASH_FW_TIMEOUT_ENABLE (1)
9074#define CFG_CRASH_FW_TIMEOUT_DEFAULT (0)
9075
Dustin Browncd756942016-11-23 12:25:33 -08009076/*
9077 * <ini>
9078 * rx_wakelock_timeout - Amount of time to hold wakelock for RX unicast packets
9079 * @Min: 0
9080 * @Max: 100
9081 * @Default: 50
9082 *
9083 * This ini item configures the amount of time, in milliseconds, that the driver
9084 * should prevent system power collapse after receiving an RX unicast packet.
9085 * A conigured value of 0 disables the RX Wakelock feature completely.
9086 *
9087 * Related: None.
9088 *
9089 * Supported Feature: RX Wakelock
9090 *
9091 * Usage: Internal/External
9092 *
9093 * </ini>
9094 */
9095#define CFG_RX_WAKELOCK_TIMEOUT_NAME "rx_wakelock_timeout"
9096#define CFG_RX_WAKELOCK_TIMEOUT_DEFAULT (50)
9097#define CFG_RX_WAKELOCK_TIMEOUT_MIN (0)
9098#define CFG_RX_WAKELOCK_TIMEOUT_MAX (100)
Sandeep Puligillaafa52892016-10-26 19:03:16 -07009099
Anurag Chouhan7c01cc42016-12-16 21:33:43 +05309100/*
9101 * <ini>
9102 * g_max_sched_scan_plan_int - pno sched max scan plan interval.
9103 * @Min: 1
9104 * @Max: 7200
9105 * @Default: 3600
9106 *
9107 * This ini is used to set max sched scan plan interval for pno scan
9108 * (value in seconds).
9109 *
9110 * Related: gPNOScanSupport
9111 *
9112 * Supported Feature: PNO scan
9113 *
9114 * Usage: External
9115 *
9116 * </ini>
9117 */
9118#define CFG_MAX_SCHED_SCAN_PLAN_INT_NAME "g_max_sched_scan_plan_int"
9119#define CFG_MAX_SCHED_SCAN_PLAN_INT_MIN (1)
9120#define CFG_MAX_SCHED_SCAN_PLAN_INT_MAX (7200)
9121#define CFG_MAX_SCHED_SCAN_PLAN_INT_DEFAULT (3600)
9122
9123/*
9124 * <ini>
9125 * g_max_sched_scan_plan_iterations - pno sched max scan plan iterations.
9126 * @Min: 1
9127 * @Max: 100
9128 * @Default: 10
9129 *
9130 * This ini is used to set max sched scan plan iterations for pno scan
9131 * (value in seconds).
9132 *
9133 * Related: gPNOScanSupport
9134 *
9135 * Supported Feature: PNO scan
9136 *
9137 * Usage: External
9138 *
9139 * </ini>
9140 */
9141#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_NAME "g_max_sched_scan_plan_iterations"
9142#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_MIN (1)
9143#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_MAX (100)
9144#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_DEFAULT (10)
9145
Jeff Johnson441e1f72017-02-07 08:50:49 -08009146/**
9147 * enum hdd_wext_control - knob for wireless extensions
9148 * @hdd_wext_disabled - interface is completely disabled. An access
9149 * control error log will be generated for each attempted use.
9150 * @hdd_wext_deprecated - interface is available but should not be
9151 * used. An access control warning log will be generated for each
9152 * use.
9153 * @hdd_wext_enabled - interface is available without restriction. No
9154 * access control logs will be generated.
9155 *
9156 * enum hdd_wext_control is used to enable coarse grained control on
9157 * wireless extensions ioctls. This control is used by configuration
9158 * items standard_wext_control and private_wext_control.
9159 *
9160 */
9161enum hdd_wext_control {
9162 hdd_wext_disabled = 0,
9163 hdd_wext_deprecated = 1,
9164 hdd_wext_enabled = 2,
9165};
9166
9167/*
9168 * <ini>
9169 * standard_wext_control - Standard wireless extensions control
9170 * @Min: 0
9171 * @Max: 2
9172 * @Default: 0
9173 *
9174 * Values are per enum hdd_wext_control.
9175 *
9176 * This ini is used to control access to standard wireless extensions
9177 * ioctls SIOCSIWCOMMIT (0x8B00) thru SIOCSIWPMKSA (0x8B36). The
9178 * functionality originally provided by these ioctls has been
9179 * completely superceeded by the functionality of cfg80211, and hence
9180 * by default support for these ioctls is disabled.
9181 *
9182 * Related: None
9183 *
9184 * Supported Feature: All
9185 *
9186 * Usage: Internal/External
9187 *
9188 * </ini>
9189 */
9190#define CFG_STANDARD_WEXT_CONTROL_NAME "standard_wext_control"
9191#define CFG_STANDARD_WEXT_CONTROL_MIN (hdd_wext_disabled)
9192#define CFG_STANDARD_WEXT_CONTROL_MAX (hdd_wext_enabled)
9193#define CFG_STANDARD_WEXT_CONTROL_DEFAULT (hdd_wext_disabled)
9194
9195/*
9196 * <ini>
9197 * private_wext_control - Private wireless extensions control
9198 * @Min: 0
9199 * @Max: 2
9200 * @Default: 1
9201 *
9202 * Values are per enum hdd_wext_control.
9203 *
9204 * This ini is used to control access to private wireless extensions
9205 * ioctls SIOCIWFIRSTPRIV (0x8BE0) thru SIOCIWLASTPRIV (0x8BFF). The
9206 * functionality provided by some of these ioctls has been superceeded
9207 * by cfg80211 (either standard commands or vendor commands), but many
9208 * of the private ioctls do not have a cfg80211-based equivalent, so
9209 * by default support for these ioctls is deprecated.
9210 *
9211 * Related: None
9212 *
9213 * Supported Feature: All
9214 *
9215 * Usage: Internal/External
9216 *
9217 * </ini>
9218 */
9219#define CFG_PRIVATE_WEXT_CONTROL_NAME "private_wext_control"
9220#define CFG_PRIVATE_WEXT_CONTROL_MIN (hdd_wext_disabled)
9221#define CFG_PRIVATE_WEXT_CONTROL_MAX (hdd_wext_enabled)
9222#define CFG_PRIVATE_WEXT_CONTROL_DEFAULT (hdd_wext_deprecated)
9223
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08009224/*
Selvaraj, Sridhar0a71e542017-01-10 10:21:06 +05309225 * <ini>
Kapil Gupta957827b2017-02-13 15:47:04 +05309226 * gper_roam_mon_time - Minimum time required in seconds to
9227 * be considered as valid scenario for PER based roam
9228 * @Min: 5
9229 * @Max: 25
9230 * @Default: 25
9231 *
9232 * This ini is used to define minimum time in seconds for which DUT has
9233 * collected the PER stats before it can consider the stats hysteresis to be
9234 * valid for PER based scan.
9235 * DUT collects following information during this period:
9236 * 1. % of packets below gper_roam_low_rate_th
9237 * 2. # packets above gper_roam_high_rate_th
9238 * if DUT gets (1) greater than gper_roam_th_percent and (2) is zero during
9239 * this period, it triggers PER based roam scan.
9240 *
9241 * Related: gper_roam_enabled, gper_roam_high_rate_th, gper_roam_low_rate_th,
9242 * gper_roam_th_percent, gper_roam_rest_time
9243 *
9244 * Supported Feature: LFR-3.0
9245 *
9246 * Usage: Internal
9247 *
9248 * </ini>
9249 */
9250#define CFG_PER_ROAM_MONITOR_TIME "gper_roam_mon_time"
9251#define CFG_PER_ROAM_MONITOR_TIME_MIN (5)
9252#define CFG_PER_ROAM_MONITOR_TIME_MAX (25)
9253#define CFG_PER_ROAM_MONTIOR_TIME_DEFAULT (25)
9254
9255/*
9256 * <ini>
Selvaraj, Sridhar0a71e542017-01-10 10:21:06 +05309257 * gPowerUsage - Preferred Power Usage
9258 * @Min: Min
9259 * @Max: Max
9260 * @Default: Mod
9261 *
9262 * This ini is used to set the preferred power usage
9263 *
9264 * Related: None
9265 *
9266 * Supported Feature: Power Save
9267 *
9268 * Usage: External
9269 *
9270 * </ini>
9271 */
9272#define CFG_POWER_USAGE_NAME "gPowerUsage"
9273#define CFG_POWER_USAGE_MIN "Min"
9274#define CFG_POWER_USAGE_MAX "Max"
9275#define CFG_POWER_USAGE_DEFAULT "Mod"
9276
9277/*
9278 * <ini>
9279 * gWowlPattern - WOW Pattern to used when PBM filtering is enabled
9280 * @Default:
9281 *
9282 * This ini is used to set the WOW Pattern to be used for PBM Filtering
9283 *
9284 * Related: gMaxWoWFilters
9285 *
9286 * Supported Feature: Power Save
9287 *
9288 * Usage: External
9289 *
9290 * </ini>
9291 */
9292#define CFG_WOWL_PATTERN_NAME "gWowlPattern"
9293#define CFG_WOWL_PATTERN_DEFAULT ""
9294
9295/*
9296 * <ini>
9297 * gMaxWoWFilters - Maximum WoW patterns that can be configured
9298 * @Min: 0
9299 * @Max: WOW_MAX_BITMAP_FILTERS(32)
9300 * @Default: WOW_MAX_BITMAP_FILTERS(32)
9301 *
9302 * This ini is used to set the maximum WoW patterns that can be configured
9303 *
9304 * Related: gWowlPattern
9305 *
9306 * Supported Feature: Power Save
9307 *
9308 * Usage: External
9309 *
9310 * </ini>
9311 */
9312#define CFG_MAX_WOW_FILTERS_NAME "gMaxWoWFilters"
9313#define CFG_MAX_WOW_FILTERS_MIN (0)
9314#define CFG_MAX_WOW_FILTERS_MAX (WOW_MAX_BITMAP_FILTERS)
9315#define CFG_MAX_WOW_FILTERS_DEFAULT (WOW_MAX_BITMAP_FILTERS)
9316
9317/*
9318 * <ini>
Selvaraj, Sridhar0641fab2017-05-17 16:02:00 +05309319 * gper_min_rssi_threshold_for_roam - Minimum roamable AP RSSI for
9320 * candidate selection for PER based roam
9321 * @Min: 0
9322 * @Max: 96
9323 * @Default: 83
9324 *
9325 * Minimum roamable AP RSSI for candidate selection for PER based roam
9326 *
9327 * Related: gper_roam_enabled, gper_roam_high_rate_th, gper_roam_low_rate_th,
9328 * gper_roam_th_percent, gper_roam_rest_time
9329 *
9330 * Supported Feature: LFR-3.0
9331 *
9332 * Usage: Internal
9333 *
9334 * </ini>
9335 */
9336#define CFG_PER_ROAM_MIN_CANDIDATE_RSSI "gper_min_rssi_threshold_for_roam"
9337#define CFG_PER_ROAM_MIN_CANDIDATE_RSSI_MIN (0)
9338#define CFG_PER_ROAM_MIN_CANDIDATE_RSSI_MAX (96)
9339#define CFG_PER_ROAM_MIN_CANDIDATE_RSSI_DEFAULT (83)
9340
9341
9342/*
9343 * <ini>
Selvaraj, Sridhar0a71e542017-01-10 10:21:06 +05309344 * gEnableImps - Enable/Disable IMPS
9345 * @Min: 0
9346 * @Max: 1
9347 * @Default: 1
9348 *
9349 * This ini is used to enable/Disable IMPS(IdleModePowerSave) Mode
9350 *
9351 * Related: None
9352 *
9353 * Supported Feature: Power Save
9354 *
9355 * Usage: External
9356 *
9357 * </ini>
9358 */
9359#define CFG_ENABLE_IMPS_NAME "gEnableImps"
9360#define CFG_ENABLE_IMPS_MIN (0)
9361#define CFG_ENABLE_IMPS_MAX (1)
9362#define CFG_ENABLE_IMPS_DEFAULT (1)
9363
9364/*
9365 * <ini>
9366 * gEnableBmps - Enable/Disable BMPS
9367 * @Min: 0
9368 * @Max: 1
9369 * @Default: 1
9370 *
9371 * This ini is used to enable/Disable BMPS(BeaconModePowerSave) Mode
9372 *
9373 * Related: None
9374 *
9375 * Supported Feature: Power Save
9376 *
9377 * Usage: External
9378 *
9379 * </ini>
9380 */
9381#define CFG_ENABLE_PS_NAME "gEnableBmps"
9382#define CFG_ENABLE_PS_MIN (0)
9383#define CFG_ENABLE_PS_MAX (1)
9384#define CFG_ENABLE_PS_DEFAULT (1)
9385
9386/*
9387 * <ini>
9388 * gAutoBmpsTimerValue - Set Auto BMPS Timer value
9389 * @Min: 0
9390 * @Max: 120
9391 * @Default: 0
9392 *
9393 * This ini is used to set Auto BMPS Timer value in seconds
9394 *
9395 * Related: gEnableBmps
9396 *
9397 * Supported Feature: Power Save
9398 *
9399 * Usage: External
9400 *
9401 * </ini>
9402 */
9403#define CFG_AUTO_PS_ENABLE_TIMER_NAME "gAutoBmpsTimerValue"
9404#define CFG_AUTO_PS_ENABLE_TIMER_MIN (0)
9405#define CFG_AUTO_PS_ENABLE_TIMER_MAX (120)
9406#define CFG_AUTO_PS_ENABLE_TIMER_DEFAULT (0)
9407
Zhu Jianmin04392c42017-05-12 16:34:53 +08009408#ifdef WLAN_ICMP_DISABLE_PS
9409/*
9410 * <ini>
9411 * gIcmpDisablePsValue - Set ICMP packet disable power save value
9412 * @Min: 0
9413 * @Max: 10000
9414 * @Default: 5000
9415 *
9416 * This ini is used to set ICMP packet disable power save value in
9417 * millisecond.
9418 *
9419 * Related: gEnableBmps
9420 *
9421 * Supported Feature: Power Save
9422 *
9423 * Usage: External
9424 *
9425 * </ini>
9426 */
9427#define CFG_ICMP_DISABLE_PS_NAME "gIcmpDisablePsValue"
9428#define CFG_ICMP_DISABLE_PS_MIN (0)
9429#define CFG_ICMP_DISABLE_PS_MAX (10000)
9430#define CFG_ICMP_DISABLE_PS_DEFAULT (5000)
9431#endif
9432
Selvaraj, Sridhar0a71e542017-01-10 10:21:06 +05309433/*
9434 * <ini>
9435 * gBmpsMinListenInterval - Set BMPS Minimum Listen Interval
9436 * @Min: 1
9437 * @Max: 65535
9438 * @Default: 1
9439 *
9440 * This ini is used to set BMPS Minimum Listen Interval. If gPowerUsage
9441 * is set "Min", this INI need to be set.
9442 *
9443 * Related: gEnableBmps, gPowerUsage
9444 *
9445 * Supported Feature: Power Save
9446 *
9447 * Usage: External
9448 *
9449 * </ini>
9450 */
9451#define CFG_BMPS_MINIMUM_LI_NAME "gBmpsMinListenInterval"
9452#define CFG_BMPS_MINIMUM_LI_MIN (1)
9453#define CFG_BMPS_MINIMUM_LI_MAX (65535)
9454#define CFG_BMPS_MINIMUM_LI_DEFAULT (1)
9455
9456/*
9457 * <ini>
9458 * gBmpsModListenInterval - Set BMPS Moderate Listen Interval
9459 * @Min: 1
9460 * @Max: 65535
9461 * @Default: 1
9462 *
9463 * This ini is used to set BMPS Moderate Listen Interval. If gPowerUsage
9464 * is set "Mod", this INI need to be set.
9465 *
9466 * Related: gEnableBmps, gPowerUsage
9467 *
9468 * Supported Feature: Power Save
9469 *
9470 * Usage: External
9471 *
9472 * </ini>
9473 */
9474#define CFG_BMPS_MODERATE_LI_NAME "gBmpsModListenInterval"
9475#define CFG_BMPS_MODERATE_LI_MIN (1)
9476#define CFG_BMPS_MODERATE_LI_MAX (65535)
9477#define CFG_BMPS_MODERATE_LI_DEFAULT (1)
9478
9479/*
9480 * <ini>
9481 * gBmpsMaxListenInterval - Set BMPS Maximum Listen Interval
9482 * @Min: 1
9483 * @Max: 65535
9484 * @Default: 1
9485 *
9486 * This ini is used to set BMPS Maximum Listen Interval. If gPowerUsage
9487 * is set "Max", this INI need to be set.
9488 *
9489 * Related: gEnableBmps, gPowerUsage
9490 *
9491 * Supported Feature: Power Save
9492 *
9493 * Usage: External
9494 *
9495 * </ini>
9496 */
9497#define CFG_BMPS_MAXIMUM_LI_NAME "gBmpsMaxListenInterval"
9498#define CFG_BMPS_MAXIMUM_LI_MIN (1)
9499#define CFG_BMPS_MAXIMUM_LI_MAX (65535)
9500#define CFG_BMPS_MAXIMUM_LI_DEFAULT (1)
9501
9502#ifdef FEATURE_RUNTIME_PM
9503/*
9504 * <ini>
9505 * gRuntimePM - enable runtime suspend
9506 * @Min: 0
9507 * @Max: 1
9508 * @Default: 0
9509 *
9510 * This ini is used to enable runtime_suspend
9511 *
9512 * Related: None
9513 *
9514 * Supported Feature: Power Save
9515 *
9516 * Usage: External
9517 *
9518 * </ini>
9519 */
9520#define CFG_ENABLE_RUNTIME_PM "gRuntimePM"
9521#define CFG_ENABLE_RUNTIME_PM_MIN (0)
9522#define CFG_ENABLE_RUNTIME_PM_MAX (1)
9523#define CFG_ENABLE_RUNTIME_PM_DEFAULT (0)
9524
9525/*
9526 * <ini>
9527 * gRuntimePMDelay - Set runtime pm's inactivity timer
9528 * @Min: 0
9529 * @Max: 1
9530 * @Default: 0
9531 *
9532 * This ini is used to set runtime pm's inactivity timer value.
9533 * the wlan driver will wait for this number of milliseconds of
9534 * inactivity before performing a runtime suspend.
9535 *
9536 * Related: gRuntimePM
9537 *
9538 * Supported Feature: Power Save
9539 *
9540 * Usage: External
9541 *
9542 * </ini>
9543 */
9544#define CFG_RUNTIME_PM_DELAY_NAME "gRuntimePMDelay"
9545#define CFG_RUNTIME_PM_DELAY_MIN (100)
9546#define CFG_RUNTIME_PM_DELAY_MAX (10000)
9547#define CFG_RUNTIME_PM_DELAY_DEFAULT (500)
9548#endif
9549
9550/*
9551 * <ini>
9552 * gEnablePowerSaveOffload - Enable Power Save Offload
9553 * @Min: 0
9554 * @Max: 5
9555 * @Default: 0
9556 *
9557 * This ini is used to set Power Save Offload configuration:
9558 * Current values of gEnablePowerSaveOffload:
9559 * 0 -> Power save offload is disabled
9560 * 1 -> Legacy Power save enabled + Deep sleep Disabled
9561 * 2 -> QPower enabled + Deep sleep Disabled
9562 * 3 -> Legacy Power save enabled + Deep sleep Enabled
9563 * 4 -> QPower enabled + Deep sleep Enabled
9564 * 5 -> Duty cycling QPower enabled
9565 *
9566 * Related: None
9567 *
9568 * Supported Feature: Power Save
9569 *
9570 * Usage: External
9571 *
9572 * </ini>
9573 */
9574#define CFG_POWERSAVE_OFFLOAD_NAME "gEnablePowerSaveOffload"
9575#define CFG_POWERSAVE_OFFLOAD_MIN (0)
9576#define CFG_POWERSAVE_OFFLOAD_MAX (PS_DUTY_CYCLING_QPOWER)
9577#define CFG_POWERSAVE_OFFLOAD_DEFAULT (CFG_POWERSAVE_OFFLOAD_MIN)
9578
9579/*
9580 * <ini>
9581 * gEnableWoW - Enable/Disable WoW
9582 * @Min: 0
9583 * @Max: 3
9584 * @Default: 3
9585 *
9586 * This ini is used to enable/disable WoW. Configurations are as follows:
9587 * 0 - Disable both magic pattern match and pattern byte match.
9588 * 1 - Enable magic pattern match on all interfaces.
9589 * 2 - Enable pattern byte match on all interfaces.
9590 * 3 - Enable both magic patter and pattern byte match on all interfaces.
9591 *
9592 * Related: None
9593 *
9594 * Supported Feature: Power Save
9595 *
9596 * Usage: External
9597 *
9598 * </ini>
9599 */
9600#define CFG_WOW_STATUS_NAME "gEnableWoW"
9601#define CFG_WOW_ENABLE_MIN (0)
9602#define CFG_WOW_ENABLE_MAX (3)
9603#define CFG_WOW_STATUS_DEFAULT (3)
9604
9605#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
9606/*
9607 * <ini>
9608 * gExtWoWgotoSuspend - Enable/Disable Extended WoW
9609 * @Min: 0
9610 * @Max: 1
9611 * @Default: 1
9612 *
9613 * This ini is used to enable/disable Extended WoW.
9614 *
9615 * Related: None
9616 *
9617 * Supported Feature: Power Save
9618 *
9619 * Usage: External
9620 *
9621 * </ini>
9622 */
9623#define CFG_EXTWOW_GO_TO_SUSPEND "gExtWoWgotoSuspend"
9624#define CFG_EXTWOW_GO_TO_SUSPEND_MIN (0)
9625#define CFG_EXTWOW_GO_TO_SUSPEND_MAX (1)
9626#define CFG_EXTWOW_GO_TO_SUSPEND_DEFAULT (1)
9627
9628/*
9629 * <ini>
9630 * gExtWowApp1WakeupPinNumber - Set wakeup1 PIN number
9631 * @Min: 0
9632 * @Max: 255
9633 * @Default: 12
9634 *
9635 * This ini is used to set EXT WOW APP1 wakeup PIN number
9636 *
9637 * Related: None
9638 *
9639 * Supported Feature: Power Save
9640 *
9641 * Usage: External
9642 *
9643 * </ini>
9644 */
9645#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER "gExtWowApp1WakeupPinNumber"
9646#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER_MIN (0)
9647#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER_MAX (255)
9648#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER_DEFAULT (12)
9649
9650/*
9651 * <ini>
9652 * gExtWowApp2WakeupPinNumber - Set wakeup2 PIN number
9653 * @Min: 0
9654 * @Max: 255
9655 * @Default: 16
9656 *
9657 * This ini is used to set EXT WOW APP2 wakeup PIN number
9658 *
9659 * Related: None
9660 *
9661 * Supported Feature: Power Save
9662 *
9663 * Usage: External
9664 *
9665 * </ini>
9666 */
9667#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER "gExtWowApp2WakeupPinNumber"
9668#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER_MIN (0)
9669#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER_MAX (255)
9670#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER_DEFAULT (16)
9671
9672/*
9673 * <ini>
9674 * gExtWoWApp2KAInitPingInterval - Set Keep Alive Init Ping Interval
9675 * @Min: 0
9676 * @Max: 0xffffffff
9677 * @Default: 240
9678 *
9679 * This ini is used to set Keep Alive Init Ping Interval for EXT WOW
9680 *
9681 * Related: None
9682 *
9683 * Supported Feature: Power Save
9684 *
9685 * Usage: External
9686 *
9687 * </ini>
9688 */
9689#define CFG_EXTWOW_KA_INIT_PING_INTERVAL "gExtWoWApp2KAInitPingInterval"
9690#define CFG_EXTWOW_KA_INIT_PING_INTERVAL_MIN (0)
9691#define CFG_EXTWOW_KA_INIT_PING_INTERVAL_MAX (0xffffffff)
9692#define CFG_EXTWOW_KA_INIT_PING_INTERVAL_DEFAULT (240)
9693
9694/*
9695 * <ini>
9696 * gExtWoWApp2KAMinPingInterval - Set Keep Alive Minimum Ping Interval
9697 * @Min: 0
9698 * @Max: 0xffffffff
9699 * @Default: 240
9700 *
9701 * This ini is used to set Keep Alive Minimum Ping Interval for EXT WOW
9702 *
9703 * Related: None
9704 *
9705 * Supported Feature: Power Save
9706 *
9707 * Usage: External
9708 *
9709 * </ini>
9710 */
9711#define CFG_EXTWOW_KA_MIN_PING_INTERVAL "gExtWoWApp2KAMinPingInterval"
9712#define CFG_EXTWOW_KA_MIN_PING_INTERVAL_MIN (0)
9713#define CFG_EXTWOW_KA_MIN_PING_INTERVAL_MAX (0xffffffff)
9714#define CFG_EXTWOW_KA_MIN_PING_INTERVAL_DEFAULT (240)
9715
9716/*
9717 * <ini>
9718 * gExtWoWApp2KAMaxPingInterval - Set Keep Alive Maximum Ping Interval
9719 * @Min: 0
9720 * @Max: 0xffffffff
9721 * @Default: 1280
9722 *
9723 * This ini is used to set Keep Alive Maximum Ping Interval for EXT WOW
9724 *
9725 * Related: None
9726 *
9727 * Supported Feature: Power Save
9728 *
9729 * Usage: External
9730 *
9731 * </ini>
9732 */
9733#define CFG_EXTWOW_KA_MAX_PING_INTERVAL "gExtWoWApp2KAMaxPingInterval"
9734#define CFG_EXTWOW_KA_MAX_PING_INTERVAL_MIN (0)
9735#define CFG_EXTWOW_KA_MAX_PING_INTERVAL_MAX (0xffffffff)
9736#define CFG_EXTWOW_KA_MAX_PING_INTERVAL_DEFAULT (1280)
9737
9738/*
9739 * <ini>
9740 * gExtWoWApp2KAIncPingInterval - Set Keep Alive increment of Ping Interval
9741 * @Min: 0
9742 * @Max: 0xffffffff
9743 * @Default: 4
9744 *
9745 * This ini is used to set Keep Alive increment of Ping Interval for EXT WOW
9746 *
9747 * Related: None
9748 *
9749 * Supported Feature: Power Save
9750 *
9751 * Usage: External
9752 *
9753 * </ini>
9754 */
9755#define CFG_EXTWOW_KA_INC_PING_INTERVAL "gExtWoWApp2KAIncPingInterval"
9756#define CFG_EXTWOW_KA_INC_PING_INTERVAL_MIN (0)
9757#define CFG_EXTWOW_KA_INC_PING_INTERVAL_MAX (0xffffffff)
9758#define CFG_EXTWOW_KA_INC_PING_INTERVAL_DEFAULT (4)
9759
9760/*
9761 * <ini>
9762 * gExtWoWApp2KAIncPingInterval - Set TCP source port
9763 * @Min: 0
9764 * @Max: 65535
9765 * @Default: 5000
9766 *
9767 * This ini is used to set TCP source port when EXT WOW is enabled
9768 *
9769 * Related: None
9770 *
9771 * Supported Feature: Power Save
9772 *
9773 * Usage: External
9774 *
9775 * </ini>
9776 */
9777#define CFG_EXTWOW_TCP_SRC_PORT "gExtWoWApp2TcpSrcPort"
9778#define CFG_EXTWOW_TCP_SRC_PORT_MIN (0)
9779#define CFG_EXTWOW_TCP_SRC_PORT_MAX (65535)
9780#define CFG_EXTWOW_TCP_SRC_PORT_DEFAULT (5000)
9781
9782/*
9783 * <ini>
9784 * gExtWoWApp2TcpDstPort - Set TCP Destination port
9785 * @Min: 0
9786 * @Max: 65535
9787 * @Default: 5001
9788 *
9789 * This ini is used to set TCP Destination port when EXT WOW is enabled
9790 *
9791 * Related: None
9792 *
9793 * Supported Feature: Power Save
9794 *
9795 * Usage: External
9796 *
9797 * </ini>
9798 */
9799#define CFG_EXTWOW_TCP_DST_PORT "gExtWoWApp2TcpDstPort"
9800#define CFG_EXTWOW_TCP_DST_PORT_MIN (0)
9801#define CFG_EXTWOW_TCP_DST_PORT_MAX (65535)
9802#define CFG_EXTWOW_TCP_DST_PORT_DEFAULT (5001)
9803
9804/*
9805 * <ini>
9806 * gExtWoWApp2TcpTxTimeout - Set TCP tx timeout
9807 * @Min: 0
9808 * @Max: 0xffffffff
9809 * @Default: 200
9810 *
9811 * This ini is used to set TCP Tx timeout when EXT WOW is enabled
9812 *
9813 * Related: None
9814 *
9815 * Supported Feature: Power Save
9816 *
9817 * Usage: External
9818 *
9819 * </ini>
9820 */
9821#define CFG_EXTWOW_TCP_TX_TIMEOUT "gExtWoWApp2TcpTxTimeout"
9822#define CFG_EXTWOW_TCP_TX_TIMEOUT_MIN (0)
9823#define CFG_EXTWOW_TCP_TX_TIMEOUT_MAX (0xffffffff)
9824#define CFG_EXTWOW_TCP_TX_TIMEOUT_DEFAULT (200)
9825
9826/*
9827 * <ini>
9828 * gExtWoWApp2TcpRxTimeout - Set TCP rx timeout
9829 * @Min: 0
9830 * @Max: 0xffffffff
9831 * @Default: 200
9832 *
9833 * This ini is used to set TCP Rx timeout when EXT WOW is enabled
9834 *
9835 * Related: None
9836 *
9837 * Supported Feature: Power Save
9838 *
9839 * Usage: External
9840 *
9841 * </ini>
9842 */
9843#define CFG_EXTWOW_TCP_RX_TIMEOUT "gExtWoWApp2TcpRxTimeout"
9844#define CFG_EXTWOW_TCP_RX_TIMEOUT_MIN (0)
9845#define CFG_EXTWOW_TCP_RX_TIMEOUT_MAX (0xffffffff)
9846#define CFG_EXTWOW_TCP_RX_TIMEOUT_DEFAULT (200)
9847#endif
9848
9849/*
Kapil Gupta5cda2252016-12-29 18:44:26 +05309850 * <ini>
9851 * gper_roam_enabled - To enabled/disable PER based roaming in FW
9852 * @Min: 0
Kapil Gupta6e6c26b2017-01-20 18:59:43 +05309853 * @Max: 3
9854 * @Default: 0
Kapil Gupta5cda2252016-12-29 18:44:26 +05309855 *
9856 * This ini is used to enable/disable Packet error based roaming, enabling this
9857 * will cause DUT to monitor Tx and Rx traffic and roam to a better candidate
9858 * if current is not good enough.
9859 *
Kapil Gupta6e6c26b2017-01-20 18:59:43 +05309860 * Values supported:
9861 * 0: disabled
9862 * 1: enabled for Rx traffic
9863 * 2: enabled for Tx traffic
9864 * 3: enabled for Tx and Rx traffic
9865 *
Kapil Gupta5cda2252016-12-29 18:44:26 +05309866 * Related: gper_roam_high_rate_th, gper_roam_low_rate_th,
9867 * gper_roam_th_percent, gper_roam_rest_time
9868 *
9869 * Supported Feature: LFR-3.0
9870 *
9871 * Usage: Internal
9872 *
9873 * </ini>
9874 */
9875#define CFG_PER_ROAM_ENABLE_NAME "gper_roam_enabled"
9876#define CFG_PER_ROAM_ENABLE_MIN (0)
Kapil Gupta6e6c26b2017-01-20 18:59:43 +05309877#define CFG_PER_ROAM_ENABLE_MAX (3)
9878#define CFG_PER_ROAM_ENABLE_DEFAULT (0)
Kapil Gupta5cda2252016-12-29 18:44:26 +05309879
9880/*
9881 * <ini>
9882 * gper_roam_high_rate_th - Rate at which PER based roam will stop
9883 * @Min: 1 Mbps
9884 * @Max: 0xffffffff
9885 * @Default: 40 Mbps
9886 *
9887 * This ini is used to define the data rate in mbps*10 at which FW will stop
9888 * monitoring the traffic for PER based roam.
9889 *
9890 * Related: gper_roam_enabled, gper_roam_low_rate_th,
9891 * gper_roam_th_percent, gper_roam_rest_time
9892 *
9893 * Supported Feature: LFR-3.0
9894 *
9895 * Usage: Internal
9896 *
9897 * </ini>
9898 */
9899#define CFG_PER_ROAM_CONFIG_HIGH_RATE_TH_NAME "gper_roam_high_rate_th"
9900#define CFG_PER_ROAM_CONFIG_HIGH_RATE_TH_MIN (10)
9901#define CFG_PER_ROAM_CONFIG_HIGH_RATE_TH_MAX (0xffffffff)
9902#define CFG_PER_ROAM_CONFIG_HIGH_RATE_TH_DEFAULT (400)
9903
9904/*
9905 * <ini>
9906 * gper_roam_low_rate_th - Rate at which FW starts considering traffic for PER
9907 * based roam.
9908 *
9909 * @Min: 1 Mbps
9910 * @Max: 0xffffffff
9911 * @Default: 20 Mbps
9912 *
9913 * This ini is used to define the rate in mbps*10 at which FW starts considering
9914 * traffic for PER based roam, if gper_roam_th_percent of data is below this
9915 * rate, FW will issue a roam scan.
9916 *
9917 * Related: gper_roam_enabled, gper_roam_high_rate_th,
9918 * gper_roam_th_percent, gper_roam_rest_time
9919 *
9920 * Supported Feature: LFR-3.0
9921 *
9922 * Usage: Internal
9923 *
9924 * </ini>
9925 */
9926#define CFG_PER_ROAM_CONFIG_LOW_RATE_TH_NAME "gper_roam_low_rate_th"
9927#define CFG_PER_ROAM_CONFIG_LOW_RATE_TH_MIN (10)
9928#define CFG_PER_ROAM_CONFIG_LOW_RATE_TH_MAX (0xffffffff)
9929#define CFG_PER_ROAM_CONFIG_LOW_RATE_TH_DEFAULT (200)
9930
9931/*
9932 * <ini>
9933 * gper_roam_th_percent - Percentage at which FW will issue a roam scan if
9934 * traffic is below gper_roam_low_rate_th rate.
9935 *
9936 * @Min: 10%
9937 * @Max: 100%
9938 * @Default: 60%
9939 *
9940 * This ini is used to define the percentage at which FW will issue a roam scan
9941 * if traffic is below gper_roam_low_rate_th rate.
9942 *
9943 * Related: gper_roam_enabled, gper_roam_high_rate_th,
9944 * gper_roam_high_rate_th, gper_roam_rest_time
9945 *
9946 * Supported Feature: LFR-3.0
9947 *
9948 * Usage: Internal
9949 *
9950 * </ini>
9951 */
9952#define CFG_PER_ROAM_CONFIG_RATE_TH_PERCENT_NAME "gper_roam_th_percent"
9953#define CFG_PER_ROAM_CONFIG_RATE_TH_PERCENT_MIN (10)
9954#define CFG_PER_ROAM_CONFIG_RATE_TH_PERCENT_MAX (100)
9955#define CFG_PER_ROAM_CONFIG_RATE_TH_PERCENT_DEFAULT (60)
9956
9957/*
9958 * <ini>
9959 * gper_roam_rest_time - Time for which FW will wait once it issues a
9960 * roam scan.
9961 *
9962 * @Min: 10 seconds
9963 * @Max: 3600 seconds
9964 * @Default: 300 seconds
9965 *
9966 * This ini is used to define the time for which FW will wait once it issues a
9967 * PER based roam scan.
9968 *
9969 * Related: gper_roam_enabled, gper_roam_high_rate_th,
9970 * gper_roam_high_rate_th, gper_roam_th_percent
9971 *
9972 * Supported Feature: LFR-3.0
9973 *
9974 * Usage: Internal
9975 *
9976 * </ini>
9977 */
9978#define CFG_PER_ROAM_REST_TIME_NAME "gper_roam_rest_time"
9979#define CFG_PER_ROAM_REST_TIME_MIN (10)
9980#define CFG_PER_ROAM_REST_TIME_MAX (3600)
9981#define CFG_PER_ROAM_REST_TIME_DEFAULT (300)
9982
9983/*
Selvaraj, Sridhar4f684bb2017-01-19 15:59:23 +05309984 * <ini>
9985 * g_enable_bcast_probe_rsp - Enable Broadcast probe response.
9986 * @Min: 0
9987 * @Max: 1
Selvaraj, Sridharca03ad22017-04-28 11:59:55 +05309988 * @Default: 1
Selvaraj, Sridhar4f684bb2017-01-19 15:59:23 +05309989 *
9990 * This ini is used to enable/disable broadcast probe response
9991 *
9992 * Related: None
9993 *
9994 * Supported Feature: FILS
9995 *
9996 * Usage: External
9997 *
9998 * </ini>
9999 */
10000#define CFG_ENABLE_BCAST_PROBE_RESP_NAME "g_enable_bcast_probe_rsp"
10001#define CFG_ENABLE_BCAST_PROBE_RESP_MIN (0)
10002#define CFG_ENABLE_BCAST_PROBE_RESP_MAX (1)
Selvaraj, Sridharca03ad22017-04-28 11:59:55 +053010003#define CFG_ENABLE_BCAST_PROBE_RESP_DEFAULT (1)
Selvaraj, Sridhar4f684bb2017-01-19 15:59:23 +053010004
Srinivas Girigowda70e169a2017-03-07 23:55:57 -080010005/**
10006 * arp_ac_category - ARP access category
10007 * @Min: 0
10008 * @Max: 3
10009 * @Default: 3
10010 *
10011 * Firmware by default categorizes ARP packets with VOICE TID.
10012 * This ini shall be used to override the default configuration.
10013 * Access category enums are referenced in ieee80211_common.h
10014 * WME_AC_BE = 0 (Best effort)
10015 * WME_AC_BK = 1 (Background)
10016 * WME_AC_VI = 2 (Video)
10017 * WME_AC_VO = 3 (Voice)
10018 *
10019 * Related: none
10020 *
10021 * Usage: Internal/External
10022 *
10023 * </ini>
10024 */
10025#define CFG_ARP_AC_CATEGORY "arp_ac_category"
10026#define CFG_ARP_AC_CATEGORY_MIN (0)
10027#define CFG_ARP_AC_CATEGORY_MAX (3)
10028#define CFG_ARP_AC_CATEGORY_DEFAULT (3)
10029
Selvaraj, Sridhar4f684bb2017-01-19 15:59:23 +053010030/*
Dustin Brown13995f02017-01-12 15:38:42 -080010031 * <ini>
Hanumanth Reddy Pothulae87621b2017-04-12 20:53:35 +053010032 * gActiveUcBpfMode - Control UC active BPF mode
Dustin Brown13995f02017-01-12 15:38:42 -080010033 * @Min: 0 (disabled)
10034 * @Max: 2 (adaptive)
10035 * @Default: 0 (disabled)
10036 *
Hanumanth Reddy Pothulae87621b2017-04-12 20:53:35 +053010037 * This config item controls UC BPF in active mode. There are 3 modes:
Dustin Brown13995f02017-01-12 15:38:42 -080010038 * 0) disabled - BPF is disabled in active mode
10039 * 1) enabled - BPF is enabled for all packets in active mode
10040 * 2) adaptive - BPF is enabled for packets up to some throughput threshold
10041 *
Hanumanth Reddy Pothulae87621b2017-04-12 20:53:35 +053010042 * Related: gActiveMcBcBpfMode
Dustin Brown13995f02017-01-12 15:38:42 -080010043 *
10044 * Supported Feature: Active Mode BPF
10045 *
10046 * Usage: Internal/External
10047 * </ini>
10048 */
Hanumanth Reddy Pothulae87621b2017-04-12 20:53:35 +053010049#define CFG_ACTIVE_UC_BPF_MODE_NAME "gActiveUcBpfMode"
10050#define CFG_ACTIVE_UC_BPF_MODE_MIN (ACTIVE_BPF_DISABLED)
10051#define CFG_ACTIVE_UC_BPF_MODE_MAX (ACTIVE_BPF_MODE_COUNT - 1)
10052#define CFG_ACTIVE_UC_BPF_MODE_DEFAULT (ACTIVE_BPF_DISABLED)
10053
10054/*
10055 * <ini>
10056 * gActiveMcBcBpfMode - Control MC/BC active BPF mode
10057 * @Min: 0 (disabled)
10058 * @Max: 2 (adaptive)
10059 * @Default: 0 (disabled)
10060 *
10061 * This config item controls MC/BC BPF in active mode. There are 3 modes:
10062 * 0) disabled - BPF is disabled in active mode
10063 * 1) enabled - BPF is enabled for all packets in active mode
10064 * 2) adaptive - BPF is enabled for packets up to some throughput threshold
10065 *
10066 * Related: gActiveUcBpfMode
10067 *
10068 * Supported Feature: Active Mode BPF
10069 *
10070 * Usage: Internal/External
10071 * </ini>
10072 */
10073#define CFG_ACTIVE_MC_BC_BPF_MODE_NAME "gActiveMcBcBpfMode"
10074#define CFG_ACTIVE_MC_BC_BPF_MODE_MIN (ACTIVE_BPF_DISABLED)
10075#define CFG_ACTIVE_MC_BC_BPF_MODE_MAX (ACTIVE_BPF_MODE_COUNT - 1)
10076#define CFG_ACTIVE_MC_BC_BPF_MODE_DEFAULT (ACTIVE_BPF_DISABLED)
Dustin Brown13995f02017-01-12 15:38:42 -080010077
Krishna Kumaar Natarajan90bb6f12017-03-03 21:05:52 -080010078#ifdef WLAN_FEATURE_11AX
10079/* 11AX related INI configuration */
10080/*
10081 * <ini>
10082 * enable_ul_mimo- Enable UL MIMO.
10083 * @Min: 0
10084 * @Max: 1
10085 * @Default: 0
10086 *
10087 * This ini is used to enable or disable UL MIMO.
10088 *
10089 * Related: NA
10090 *
10091 * Supported Feature: 11AX
10092 *
10093 * Usage: External
10094 *
10095 * </ini>
10096 */
10097
10098#define CFG_ENABLE_UL_MIMO_NAME "enable_ul_mimo"
10099#define CFG_ENABLE_UL_MIMO_MIN (0)
10100#define CFG_ENABLE_UL_MIMO_MAX (1)
10101#define CFG_ENABLE_UL_MIMO_DEFAULT (0)
10102
10103/*
10104 * <ini>
10105 * enable_ul_ofdma- Enable UL OFDMA.
10106 * @Min: 0
10107 * @Max: 1
10108 * @Default: 0
10109 *
10110 * This ini is used to enable or disable UL OFDMA.
10111 *
10112 * Related: NA
10113 *
10114 * Supported Feature: 11AX
10115 *
10116 * Usage: External
10117 *
10118 * </ini>
10119 */
10120#define CFG_ENABLE_UL_OFDMA_NAME "enable_ul_ofdma"
10121#define CFG_ENABLE_UL_OFDMA_MIN (0)
10122#define CFG_ENABLE_UL_OFDMA_MAX (1)
10123#define CFG_ENABLE_UL_OFDMA_DEFAULT (0)
10124
Manikandan Mohan39accff2017-05-02 16:09:00 -070010125/*
10126 * <ini>
10127 * he_sta_obsspd- 11AX HE OBSS PD bit field
10128 * @Min: 0
10129 * @Max: uin32_t max
10130 * @Default: 0x15b8c2ae
10131 *
10132 * 4 Byte value with each byte representing a signed value for following params:
10133 * Param Bit position Default
10134 * OBSS_PD min (primary) 7:0 -82 (0xae)
10135 * OBSS_PD max (primary) 15:8 -62 (0xc2)
10136 * Secondary channel Ed 23:16 -72 (0xb8)
10137 * TX_PWR(ref) 31:24 21 (0x15)
10138 * This bit field value is directly applied to FW
10139 *
10140 * Related: NA
10141 *
10142 * Supported Feature: 11AX
10143 *
10144 * Usage: External
10145 *
10146 * </ini>
10147 */
10148#define CFG_HE_STA_OBSSPD_NAME "he_sta_obsspd"
10149#define CFG_HE_STA_OBSSPD_MIN (0)
10150#define CFG_HE_STA_OBSSPD_MAX (0xffffffff)
10151#define CFG_HE_STA_OBSSPD_DEFAULT (0x15b8c2ae)
10152
Krishna Kumaar Natarajan90bb6f12017-03-03 21:05:52 -080010153#endif /* WLAN_FEATURE_11AX */
10154
Dustin Brownab1364a2017-03-27 16:59:08 -070010155/**
10156 * enum l1ss_sleep_allowed - when L1ss Sleep is allowed on capable platforms
10157 * @L1SS_SLEEP_ALLOWED_NEVER: never allow L1ss Sleep
10158 * @L1SS_SLEEP_ALLOWED_STA_CONNECTED: allow in station mode (connected)
10159 * @L1SS_SLEEP_ALLOWED_STA_DISCONNECTED: allow in station mode (disconnected)
10160 * @L1SS_SLEEP_ALLOWED_ALWAYS: always allow L1ss Sleep
10161 */
10162enum l1ss_sleep_allowed {
10163 L1SS_SLEEP_ALLOWED_NEVER = 0,
10164 L1SS_SLEEP_ALLOWED_STA_CONNECTED = BIT(0),
10165 L1SS_SLEEP_ALLOWED_STA_DISCONNECTED = BIT(1),
10166 L1SS_SLEEP_ALLOWED_ALWAYS = 0xff
10167};
10168
10169/*
10170 * <ini>
10171 * gL1ssSleepAllowed - Control when L1ss Sleep is allowed on capable platforms
10172 * @Min: 0 (disabled)
10173 * @Max: 255 (always allow)
10174 * @Default: 1 (station mode - connected)
10175 *
10176 * This config item controls when L1ss Sleep is allowed on capable platforms.
10177 * The default is connected station mode to support DTIM power savings.
10178 * 0) never allow
10179 * 1) station mode (connected)
10180 * 2) station mode (disconnected)
10181 * 255) always allow
10182 *
10183 * Related: N/A
10184 *
10185 * Supported Feature: L1ss Sleep
10186 *
10187 * Usage: Internal/External
10188 * </ini>
10189 */
10190#define CFG_L1SS_SLEEP_ALLOWED_NAME "gL1ssSleepAllowed"
10191#define CFG_L1SS_SLEEP_ALLOWED_MIN (L1SS_SLEEP_ALLOWED_NEVER)
10192#define CFG_L1SS_SLEEP_ALLOWED_MAX (L1SS_SLEEP_ALLOWED_ALWAYS)
10193#define CFG_L1SS_SLEEP_ALLOWED_DEFAULT (L1SS_SLEEP_ALLOWED_STA_CONNECTED)
10194
Krishna Kumaar Natarajan90bb6f12017-03-03 21:05:52 -080010195/*
Jeff Johnson12a744b2017-04-04 08:19:37 -070010196 * <ini>
10197 * gEnableANI - Enable Adaptive Noise Immunity
10198 * @Min: 0
10199 * @Max: 1
10200 * @Default: 1
10201 *
10202 * This ini is used to enable or disable Adaptive Noise Immunity.
10203 *
10204 * Related: None
10205 *
10206 * Supported Feature: ANI
10207 *
10208 * Usage: External
10209 *
10210 * </ini>
10211 */
10212#define CFG_ENABLE_ANI_NAME "gEnableANI"
10213#define CFG_ENABLE_ANI_MIN (0)
10214#define CFG_ENABLE_ANI_MAX (1)
10215#define CFG_ENABLE_ANI_DEFAULT (1)
10216
10217/*
Selvaraj, Sridhara521aab2017-03-25 16:42:34 +053010218 * <ini>
10219 * g_qcn_ie_support - QCN IE Support
10220 * @Min: 0 (disabled)
10221 * @Max: 1 (enabled)
Selvaraj, Sridharca03ad22017-04-28 11:59:55 +053010222 * @Default: 1 (enabled)
Selvaraj, Sridhara521aab2017-03-25 16:42:34 +053010223 *
10224 * This config item is used to support QCN IE in probe/assoc/reassoc request
10225 * for STA mode. QCN IE support is not added for SAP mode.
10226 *
10227 * Related: N/A
10228 *
10229 * Supported Feature: N/A
10230 *
10231 * Usage: Internal/External
10232 *
10233 * </ini>
10234 */
10235#define CFG_QCN_IE_SUPPORT_NAME "g_qcn_ie_support"
10236#define CFG_QCN_IE_SUPPORT_MIN 0
10237#define CFG_QCN_IE_SUPPORT_MAX 1
Selvaraj, Sridharca03ad22017-04-28 11:59:55 +053010238#define CFG_QCN_IE_SUPPORT_DEFAULT 1
Selvaraj, Sridhara521aab2017-03-25 16:42:34 +053010239
Dustin Brown7f939932017-05-18 15:02:17 -070010240/*
10241 * <ini>
10242 * gTimerMultiplier - Scale QDF timers by this value
10243 * @Min: 1
10244 * @Max: 0xFFFFFFFF
10245 * @Default: 1 (100 for emulation)
10246 *
10247 * To assist in debugging emulation setups, scale QDF timers by this factor.
10248 *
10249 * @E.g.
10250 * # QDF timers expire in real time
10251 * gTimerMultiplier=1
10252 * # QDF timers expire after 100 times real time
10253 * gTimerMultiplier=100
10254 *
10255 * Related: N/A
10256 *
10257 * Usage: Internal
10258 *
10259 * </ini>
10260 */
10261#define CFG_TIMER_MULTIPLIER_NAME "gTimerMultiplier"
10262#define CFG_TIMER_MULTIPLIER_MIN (1)
10263#define CFG_TIMER_MULTIPLIER_MAX (0xFFFFFFFF)
10264#ifdef QCA_WIFI_NAPIER_EMULATION
10265#define CFG_TIMER_MULTIPLIER_DEFAULT (100)
10266#else
10267#define CFG_TIMER_MULTIPLIER_DEFAULT (1)
10268#endif
10269
Amar Singhal5cccafe2017-02-15 12:42:58 -080010270/* enable_reg_offload - enable regulatory offload
10271 * @Min: 0
10272 * @Max: 1
10273 * @Default: 1
10274 *
10275 * This ini is used to enable or disable reg offload
10276 *
10277 * Related: None
10278 *
10279 * Supported Feature: reg offload
10280 *
10281 * Usage: External
10282 *
10283 * </ini>
10284 */
10285#define CFG_ENABLE_REG_OFFLOAD_NAME "enable_reg_offload"
10286#define CFG_ENABLE_REG_OFFLOAD_MIN (0)
10287#define CFG_ENABLE_REG_OFFLOAD_MAX (1)
Kiran Kumar Lokerea3de2262017-04-12 12:15:04 -070010288#define CFG_ENABLE_REG_OFFLOAD_DEFAULT (1)
Amar Singhal5cccafe2017-02-15 12:42:58 -080010289
Selvaraj, Sridhara521aab2017-03-25 16:42:34 +053010290/*
Selvaraj, Sridhar97ce6582017-01-20 17:06:34 +053010291 * <ini>
10292 * g_fils_max_chan_guard_time - Set maximum channel guard time(ms)
10293 * @Min: 0
10294 * @Max: 10
10295 * @Default: 0
10296 *
10297 * This ini is used to set maximum channel guard time in milli seconds
10298 *
10299 * Related: None
10300 *
10301 * Supported Feature: FILS
10302 *
10303 * Usage: External
10304 *
10305 * </ini>
10306 */
10307#define CFG_FILS_MAX_CHAN_GUARD_TIME_NAME "g_fils_max_chan_guard_time"
10308#define CFG_FILS_MAX_CHAN_GUARD_TIME_MIN (0)
10309#define CFG_FILS_MAX_CHAN_GUARD_TIME_MAX (10)
10310#define CFG_FILS_MAX_CHAN_GUARD_TIME_DEFAULT (0)
10311
lifeng959a04c2017-05-10 14:21:28 +080010312/**
10313 * gSetRTSForSIFSBursting - set rts for sifs bursting
10314 * @Min: 0
10315 * @Max: 1
10316 * @Default: 0
10317 *
10318 * This ini set rts for sifs bursting
10319 *
10320 * Usage: External
10321 *
10322 * </ini>
10323 */
10324#define CFG_SET_RTS_FOR_SIFS_BURSTING "gSetRTSForSIFSBursting"
10325#define CFG_SET_RTS_FOR_SIFS_BURSTING_MIN (0)
10326#define CFG_SET_RTS_FOR_SIFS_BURSTING_MAX (1)
10327#define CFG_SET_RTS_FOR_SIFS_BURSTING_DEFAULT (0)
10328
10329/**
10330 * <ini>
10331 * gMaxMPDUsInAMPDU - max mpdus in ampdu
10332 * @Min: 0
10333 * @Max: 64
10334 * @Default: 0
10335 *
10336 * This ini configure max mpdus in ampdu
10337 *
10338 * Usage: External
10339 *
10340 * </ini>
10341 */
10342#define CFG_MAX_MPDUS_IN_AMPDU "gMaxMPDUsInAMPDU"
10343#define CFG_MAX_MPDUS_IN_AMPDU_MIN (0)
10344#define CFG_MAX_MPDUS_IN_AMPDU_MAX (64)
10345#define CFG_MAX_MPDUS_IN_AMPDU_DEFAULT (0)
10346
Selvaraj, Sridhar97ce6582017-01-20 17:06:34 +053010347/*
Dustin Brown20b6fcf2017-05-17 15:35:17 -070010348 * <ini>
10349 * gScanBackoffMultiplier - For NLO/PNO, multiply fast scan period by this every
10350 * max cycles
10351 * @Min: 0
10352 * @Max: 255
10353 * @Default: 0
10354 *
10355 * For Network Listen Offload and Perfered Network Offload, multiply the fast
10356 * scan period by this value after max cycles have occurred. Setting this to 0
10357 * disables the feature.
10358 *
10359 * @E.g.
10360 * # Disable scan backoff multiplier
10361 * gScanBackoffMultiplier=0
10362 * # Effectively the same
10363 * gScanBackoffMultiplier=1
10364 * # Double the scan period after each max cycles have occurred
10365 * gScanBackoffMultiplier=2
10366 *
10367 * Related: NLO, PNO
10368 *
10369 * Usage: Internal/External
10370 *
10371 * </ini>
10372 */
10373#define CFG_SCAN_BACKOFF_MULTIPLIER_NAME "gScanBackoffMultiplier"
10374#define CFG_SCAN_BACKOFF_MULTIPLIER_MIN (0)
10375#define CFG_SCAN_BACKOFF_MULTIPLIER_MAX (255)
10376#define CFG_SCAN_BACKOFF_MULTIPLIER_DEFAULT (0)
10377
10378/*
Jayachandran Sreekumaran68c952c2017-04-24 12:42:03 +053010379 * enum hdd_external_acs_policy - External ACS policy
10380 * @HDD_EXTERNAL_ACS_PCL_PREFERRED -Preferable for ACS to select a
10381 * channel with non-zero pcl weight.
10382 * @HDD_EXTERNAL_ACS_PCL_MANDATORY -Mandatory for ACS to select a
10383 * channel with non-zero pcl weight.
10384 *
10385 * enum hdd_external_acs_policy is used to select the ACS policy.
10386 *
10387 */
10388enum hdd_external_acs_policy {
10389 HDD_EXTERNAL_ACS_PCL_PREFERRED = 0,
10390 HDD_EXTERNAL_ACS_PCL_MANDATORY = 1,
10391};
10392
10393/*
10394 * <ini>
10395 * external_acs_policy - External ACS policy control
10396 * @Min: 0
10397 * @Max: 1
10398 * @Default: 0
10399 *
10400 * Values are per enum hdd_external_acs_policy.
10401 *
10402 * This ini is used to control the external ACS policy.
10403 *
10404 * Related: None
10405 *
10406 * Supported Feature: ACS
10407 *
10408 * Usage: Internal/External
10409 *
10410 * </ini>
10411 */
10412#define CFG_EXTERNAL_ACS_POLICY "acs_policy"
10413#define CFG_EXTERNAL_ACS_POLICY_MIN (HDD_EXTERNAL_ACS_PCL_PREFERRED)
10414#define CFG_EXTERNAL_ACS_POLICY_MAX (HDD_EXTERNAL_ACS_PCL_MANDATORY)
10415#define CFG_EXTERNAL_ACS_POLICY_DEFAULT (HDD_EXTERNAL_ACS_PCL_PREFERRED)
10416
10417/*
10418 * enum hdd_external_acs_policyl - Preferred freq band for external ACS
10419 * @HDD_EXTERNAL_ACS_FREQ_BAND_24GHZ -2.4GHz band
10420 * @HDD_EXTERNAL_ACS_FREQ_BAND_5GHZ -5GHz band
10421 *
10422 * enum hdd_external_acs_freq_band is used to select the freq band for ACS.
10423 *
10424 */
10425enum hdd_external_acs_freq_band {
10426 HDD_EXTERNAL_ACS_FREQ_BAND_24GHZ = 0,
10427 HDD_EXTERNAL_ACS_FREQ_BAND_5GHZ = 1,
10428};
10429
10430/*
10431 * <ini>
10432 * external_acs_freq_band - External ACS freq band
10433 * @Min: 0
10434 * @Max: 1
10435 * @Default: 0
10436 *
10437 * Values are per enum hdd_external_acs_freq_band.
10438 *
10439 * This ini is used to select the ACS freq band. Currently
10440 * the external ACS module doesn't support channels from
10441 * both the bands. Once multiple band support is added in
10442 * ICM, this ini can be removed
10443 *
10444 * Related: None
10445 *
10446 * Supported Feature: ACS
10447 *
10448 * Usage: Internal/External
10449 *
10450 * </ini>
10451 */
10452#define CFG_EXTERNAL_ACS_FREQ_BAND "acs_freq_band"
10453#define CFG_EXTERNAL_ACS_FREQ_BAND_MIN (HDD_EXTERNAL_ACS_FREQ_BAND_24GHZ)
10454#define CFG_EXTERNAL_ACS_FREQ_BAND_MAX (HDD_EXTERNAL_ACS_FREQ_BAND_5GHZ)
10455#define CFG_EXTERNAL_ACS_FREQ_BAND_DEFAULT (HDD_EXTERNAL_ACS_FREQ_BAND_24GHZ)
10456
10457/*
lifeng13a89d72017-05-10 14:49:29 +080010458 * gSapMaxMCSForTxData - sap 11n max mcs
10459 * @Min: 0
10460 * @Max: 383
10461 * @Default: 0
10462 *
10463 * This ini configure SAP 11n max mcs
10464 *
10465 * Usage: External
10466 *
10467 * </ini>
10468 */
10469#define CFG_SAP_MAX_MCS_FOR_TX_DATA "gSapMaxMCSForTxData"
10470#define CFG_SAP_MAX_MCS_FOR_TX_DATA_MIN (0)
10471#define CFG_SAP_MAX_MCS_FOR_TX_DATA_MAX (383)
10472#define CFG_SAP_MAX_MCS_FOR_TX_DATA_DEFAULT (0)
10473
10474/*
Manjunathappa Prakashdab74fa2017-06-19 12:11:03 -070010475 * <ini>
10476 * gEnableTxOrphan- Enable/Disable orphaning of Tx packets
10477 * @Min: 0
10478 * @Max: 1
10479 * @Default: 0
10480 *
10481 * This ini is used to enable/disable orphaning of Tx packets.
10482 *
10483 * Related: None
10484 *
10485 * Usage: External
10486 *
10487 * </ini>
10488 */
10489#define CFG_TX_ORPHAN_ENABLE_NAME "gEnableTxOrphan"
10490#define CFG_TX_ORPHAN_ENABLE_DEFAULT (0)
10491#define CFG_TX_ORPHAN_ENABLE_MIN (0)
10492#define CFG_TX_ORPHAN_ENABLE_MAX (1)
Ashish Kumar Dhanotiya9335d812017-06-30 16:57:20 +053010493/*
10494 * <ini>
10495 * gItoRepeatCount - sets ito repeated count
10496 * @Min: 0
10497 * @Max: 5
10498 * @Default: 0
10499 *
10500 * This ini sets the ito count in FW
10501 *
10502 * Usage: External
10503 *
10504 * </ini>
10505 */
Manjunathappa Prakashdab74fa2017-06-19 12:11:03 -070010506
Ashish Kumar Dhanotiya9335d812017-06-30 16:57:20 +053010507#define CFG_ITO_REPEAT_COUNT_NAME "gItoRepeatCount"
10508#define CFG_ITO_REPEAT_COUNT_MIN (0)
10509#define CFG_ITO_REPEAT_COUNT_MAX (5)
10510#define CFG_ITO_REPEAT_COUNT_DEFAULT (0)
yeshwanth sriram guntuka1413dfb2017-06-23 14:09:48 +053010511
10512/*
10513 * <ini>
10514 * oce_sta_enable - Enable/disable oce feature for STA
10515 * @Min: 0
10516 * @Max: 1
10517 * @Default: 1
10518 *
10519 * This ini is used to enable/disable oce feature for STA
10520 *
10521 * Related: None
10522 *
10523 * Supported Feature: OCE
10524 *
10525 * Usage: External
10526 *
10527 * </ini>
10528 */
10529#define CFG_OCE_ENABLE_STA_NAME "oce_sta_enable"
10530#define CFG_OCE_ENABLE_STA_MIN (0)
10531#define CFG_OCE_ENABLE_STA_MAX (1)
10532#define CFG_OCE_ENABLE_STA_DEFAULT (1)
10533
10534/*
10535 * <ini>
10536 * oce_sap_enable - Enable/disable oce feature for SAP
10537 * @Min: 0
10538 * @Max: 1
10539 * @Default: 1
10540 *
10541 * This ini is used to enable/disable oce feature for SAP
10542 *
10543 * Related: None
10544 *
10545 * Supported Feature: OCE
10546 *
10547 * Usage: External
10548 *
10549 * </ini>
10550 */
10551#define CFG_OCE_ENABLE_SAP_NAME "oce_sap_enable"
10552#define CFG_OCE_ENABLE_SAP_MIN (0)
10553#define CFG_OCE_ENABLE_SAP_MAX (1)
10554#define CFG_OCE_ENABLE_SAP_DEFAULT (1)
10555
Manjunathappa Prakashdab74fa2017-06-19 12:11:03 -070010556/*
Selvaraj, Sridhar57ce4df2017-05-29 18:30:49 +053010557 * <ini>
10558 * groam_disallow_duration -disallow duration before roaming
10559 * @Min: 0
10560 * @Max: 3600
10561 * @Default: 30
10562 *
10563 * This ini is used to configure how long LCA[Last Connected AP] AP will
10564 * be disallowed before it can be a roaming candidate again, in units of
10565 * seconds.
10566 *
10567 * Related: LFR
10568 *
10569 * Usage: Internal
10570 *
10571 * </ini>
10572 */
10573#define CFG_ROAM_DISALLOW_DURATION_NAME "groam_disallow_duration"
10574#define CFG_ROAM_DISALLOW_DURATION_MIN (0)
10575#define CFG_ROAM_DISALLOW_DURATION_MAX (3600)
10576#define CFG_ROAM_DISALLOW_DURATION_DEFAULT (30)
10577
10578/*
10579 * <ini>
10580 * grssi_channel_penalization - RSSI penalization
10581 * @Min: 0
10582 * @Max: 15
10583 * @Default: 5
10584 *
10585 * This ini is used to configure RSSI that will be penalized if candidate(s)
10586 * are found to be in the same channel as disallowed AP's, in units of db.
10587 *
10588 * Related: LFR
10589 *
10590 * Usage: Internal
10591 *
10592 * </ini>
10593 */
10594#define CFG_ROAM_RSSI_CHANNEL_PENALIZATION_NAME "grssi_channel_penalization"
10595#define CFG_ROAM_RSSI_CHANNEL_PENALIZATION_MIN (0)
10596#define CFG_ROAM_RSSI_CHANNEL_PENALIZATION_MAX (15)
10597#define CFG_ROAM_RSSI_CHANNEL_PENALIZATION_DEFAULT (5)
10598
10599/*
10600 * <ini>
10601 * groam_num_disallowed_aps - Max number of AP's to maintain in LCA list
10602 * @Min: 0
10603 * @Max: 8
10604 * @Default: 3
10605 *
10606 * This ini is used to set the maximum number of AP's to be maintained
10607 * in LCA [Last Connected AP] list.
10608 *
10609 * Related: LFR
10610 *
10611 * Usage: Internal
10612 *
10613 * </ini>
10614 */
10615#define CFG_ROAM_NUM_DISALLOWED_APS_NAME "groam_num_disallowed_aps"
10616#define CFG_ROAM_NUM_DISALLOWED_APS_MIN (0)
10617#define CFG_ROAM_NUM_DISALLOWED_APS_MAX (8)
10618#define CFG_ROAM_NUM_DISALLOWED_APS_DEFAULT (3)
10619
10620/*
Krishna Kumaar Natarajan90bb6f12017-03-03 21:05:52 -080010621 * Type declarations
10622 */
Ashish Kumar Dhanotiya9335d812017-06-30 16:57:20 +053010623
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010624struct hdd_config {
10625 /* Bitmap to track what is explicitly configured */
10626 DECLARE_BITMAP(bExplicitCfg, MAX_CFG_INI_ITEMS);
10627
10628 /* Config parameters */
Ashish Kumar Dhanotiya470af292017-05-31 20:46:00 +053010629 bool enable_connected_scan;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010630 uint32_t RTSThreshold;
10631 uint32_t FragmentationThreshold;
10632 uint8_t OperatingChannel;
10633 bool ShortSlotTimeEnabled;
10634 bool Is11dSupportEnabled;
10635 bool Is11hSupportEnabled;
10636 bool fSupplicantCountryCodeHasPriority;
10637 uint32_t HeartbeatThresh24;
10638 char PowerUsageControl[4];
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010639 bool fIsImpsEnabled;
10640 bool is_ps_enabled;
Kiran Kumar Lokere0ac679c2016-11-17 17:43:36 -080010641 uint32_t auto_bmps_timer_val;
Zhu Jianmin04392c42017-05-12 16:34:53 +080010642 uint32_t icmp_disable_ps_val;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010643 uint32_t nBmpsModListenInterval;
10644 uint32_t nBmpsMaxListenInterval;
10645 uint32_t nBmpsMinListenInterval;
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010646 enum hdd_dot11_mode dot11Mode;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010647 uint32_t nChannelBondingMode24GHz;
10648 uint32_t nChannelBondingMode5GHz;
10649 uint32_t MaxRxAmpduFactor;
10650 uint16_t TxRate;
10651 uint32_t ShortGI20MhzEnable;
10652 uint32_t ScanResultAgeCount;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010653 uint8_t nRssiCatGap;
10654 bool fIsShortPreamble;
Anurag Chouhan6d760662016-02-20 16:05:43 +053010655 struct qdf_mac_addr IbssBssid;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010656 uint32_t AdHocChannel5G;
10657 uint32_t AdHocChannel24G;
10658 uint8_t intfAddrMask;
Anurag Chouhan6d760662016-02-20 16:05:43 +053010659 struct qdf_mac_addr intfMacAddr[QDF_MAX_CONCURRENCY_PERSONA];
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010660
10661 bool apUapsdEnabled;
10662 bool apRandomBssidEnabled;
10663 bool apProtEnabled;
10664 uint16_t apProtection;
10665 bool apOBSSProtEnabled;
10666 bool apDisableIntraBssFwd;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010667 uint32_t nAPAutoShutOff;
10668 uint8_t enableLTECoex;
10669 uint32_t apKeepAlivePeriod;
10670 uint32_t goKeepAlivePeriod;
Dustin Brownb6b0f182017-03-08 13:08:27 -080010671 enum station_keepalive_method sta_keepalive_method;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010672 uint32_t apLinkMonitorPeriod;
10673 uint32_t goLinkMonitorPeriod;
10674 uint32_t nBeaconInterval;
10675 uint8_t nTxPowerCap; /* In dBm */
Padma, Santhosh Kumar29df3622016-08-16 19:15:16 +053010676 bool allow_tpc_from_ap;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010677 bool fIsLowGainOverride;
10678 uint8_t disablePacketFilter;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010679 bool fRrmEnable;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010680 uint16_t nRrmRandnIntvl;
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -080010681 /* length includes separator */
10682 char rm_capability[3 * DOT11F_IE_RRMENABLEDCAP_MAX_LEN];
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010683
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010684 /* Vowifi 11r params */
10685 bool fFTResourceReqSupported;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010686
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010687 uint16_t nNeighborScanPeriod;
Sridhar Selvaraj1b2330c2017-07-21 15:16:42 +053010688 uint16_t neighbor_scan_min_period;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010689 uint8_t nNeighborLookupRssiThreshold;
10690 uint8_t delay_before_vdev_stop;
10691 uint8_t nOpportunisticThresholdDiff;
10692 uint8_t nRoamRescanRssiDiff;
10693 uint8_t neighborScanChanList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
10694 uint16_t nNeighborScanMinChanTime;
10695 uint16_t nNeighborScanMaxChanTime;
10696 uint16_t nMaxNeighborReqTries;
10697 uint16_t nNeighborResultsRefreshPeriod;
10698 uint16_t nEmptyScanRefreshPeriod;
10699 uint8_t nRoamBmissFirstBcnt;
10700 uint8_t nRoamBmissFinalBcnt;
10701 uint8_t nRoamBeaconRssiWeight;
10702 uint32_t nhi_rssi_scan_max_count;
10703 uint32_t nhi_rssi_scan_rssi_delta;
10704 uint32_t nhi_rssi_scan_delay;
10705 int32_t nhi_rssi_scan_rssi_ub;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010706
10707 /* Additional Handoff params */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010708 uint16_t nVccRssiTrigger;
10709 uint32_t nVccUlMacLossThreshold;
10710
10711 uint32_t nPassiveMinChnTime; /* in units of milliseconds */
10712 uint32_t nPassiveMaxChnTime; /* in units of milliseconds */
10713 uint32_t nActiveMinChnTime; /* in units of milliseconds */
10714 uint32_t nActiveMaxChnTime; /* in units of milliseconds */
10715
10716 uint32_t nInitialDwellTime; /* in units of milliseconds */
10717 bool initial_scan_no_dfs_chnl;
10718
10719#ifdef WLAN_AP_STA_CONCURRENCY
10720 uint32_t nPassiveMinChnTimeConc; /* in units of milliseconds */
10721 uint32_t nPassiveMaxChnTimeConc; /* in units of milliseconds */
10722 uint32_t nActiveMinChnTimeConc; /* in units of milliseconds */
10723 uint32_t nActiveMaxChnTimeConc; /* in units of milliseconds */
10724 uint32_t nRestTimeConc; /* in units of milliseconds */
Agrawal Ashish17bb3902016-05-05 13:29:40 +053010725 /* In units of milliseconds */
10726 uint32_t min_rest_time_conc;
10727 /* In units of milliseconds */
10728 uint32_t idle_time_conc;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010729#endif
10730
10731 uint8_t nMaxPsPoll;
10732
10733 uint8_t nRssiFilterPeriod;
10734 bool fIgnoreDtim;
10735 uint8_t fMaxLIModulatedDTIM;
10736
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010737 uint8_t fEnableFwHeartBeatMonitoring;
10738 uint8_t fEnableFwBeaconFiltering;
10739 bool fEnableFwRssiMonitoring;
10740 bool mcc_rts_cts_prot_enable;
10741 bool mcc_bcast_prob_resp_enable;
10742 uint8_t nDataInactivityTimeout;
Mukul Sharmaed92f2f2017-04-20 00:06:28 +053010743 uint8_t wow_data_inactivity_timeout;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010744
10745 /* WMM QoS Configuration */
Srinivas Girigowdaea32d6a2017-03-25 00:03:12 -070010746 enum hdd_wmm_user_mode WmmMode;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010747 bool b80211eIsEnabled;
10748 uint8_t UapsdMask; /* what ACs to setup U-APSD for at assoc */
10749 uint32_t InfraUapsdVoSrvIntv;
10750 uint32_t InfraUapsdVoSuspIntv;
10751 uint32_t InfraUapsdViSrvIntv;
10752 uint32_t InfraUapsdViSuspIntv;
10753 uint32_t InfraUapsdBeSrvIntv;
10754 uint32_t InfraUapsdBeSuspIntv;
10755 uint32_t InfraUapsdBkSrvIntv;
10756 uint32_t InfraUapsdBkSuspIntv;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010757 bool isFastRoamIniFeatureEnabled;
10758 bool MAWCEnabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010759#ifdef FEATURE_WLAN_ESE
10760 uint32_t InfraInactivityInterval;
10761 bool isEseIniFeatureEnabled;
10762#endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010763 bool isFastTransitionEnabled;
10764 uint8_t RoamRssiDiff;
10765 bool isWESModeEnabled;
Deepak Dhamdhere828f1892017-02-09 11:51:19 -080010766 uint32_t pmkid_modes;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010767 bool isRoamOffloadScanEnabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010768 bool bImplicitQosEnabled;
10769
10770 /* default TSPEC parameters for AC_VO */
10771 sme_QosWmmDirType InfraDirAcVo;
10772 uint16_t InfraNomMsduSizeAcVo;
10773 uint32_t InfraMeanDataRateAcVo;
10774 uint32_t InfraMinPhyRateAcVo;
10775 uint16_t InfraSbaAcVo;
10776
10777 /* default TSPEC parameters for AC_VI */
10778 sme_QosWmmDirType InfraDirAcVi;
10779 uint16_t InfraNomMsduSizeAcVi;
10780 uint32_t InfraMeanDataRateAcVi;
10781 uint32_t InfraMinPhyRateAcVi;
10782 uint16_t InfraSbaAcVi;
10783
10784 /* default TSPEC parameters for AC_BE */
10785 sme_QosWmmDirType InfraDirAcBe;
10786 uint16_t InfraNomMsduSizeAcBe;
10787 uint32_t InfraMeanDataRateAcBe;
10788 uint32_t InfraMinPhyRateAcBe;
10789 uint16_t InfraSbaAcBe;
10790
10791 /* default TSPEC parameters for AC_BK */
10792 sme_QosWmmDirType InfraDirAcBk;
10793 uint16_t InfraNomMsduSizeAcBk;
10794 uint32_t InfraMeanDataRateAcBk;
10795 uint32_t InfraMinPhyRateAcBk;
10796 uint16_t InfraSbaAcBk;
10797
10798 uint32_t DelayedTriggerFrmInt;
10799
10800 /* Wowl pattern */
10801 char wowlPattern[1024];
10802
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010803 /* Control for Replay counetr. value 1 means
10804 * single replay counter for all TID
Jeff Johnsondcd2cf92017-01-12 10:44:23 -080010805 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010806 bool bSingleTidRc;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010807 bool fhostArpOffload;
Dustin Brown1224e212017-05-12 14:02:12 -070010808 enum pmo_hw_filter_mode hw_filter_mode;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010809 bool ssdp;
Houston Hoffmanc7c69f02016-03-24 22:45:52 -070010810
10811#ifdef FEATURE_RUNTIME_PM
10812 bool runtime_pm;
10813 uint32_t runtime_pm_delay;
10814#endif
10815
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010816#ifdef FEATURE_WLAN_RA_FILTERING
10817 bool IsRArateLimitEnabled;
10818 uint16_t RArateLimitInterval;
10819#endif
10820#ifdef FEATURE_WLAN_SCAN_PNO
10821 bool PnoOffload;
10822#endif
10823 bool fhostNSOffload;
10824 bool burstSizeDefinition;
10825 uint8_t tsInfoAckPolicy;
10826
10827 /* RF Settling Time Clock */
10828 uint32_t rfSettlingTimeUs;
10829
10830 uint8_t dynamicPsPollValue;
10831 bool AddTSWhenACMIsOff;
10832 bool fValidateScanList;
10833
10834 uint32_t infraStaKeepAlivePeriod;
10835 uint8_t nNullDataApRespTimeout;
10836 uint8_t nBandCapability;
10837
10838 uint32_t apDataAvailPollPeriodInMs;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010839 bool teleBcnWakeupEn;
10840
Anurag Chouhanf04e84f2016-03-03 10:12:12 +053010841/* QDF Trace Control*/
10842 uint16_t qdf_trace_enable_wdi;
10843 uint16_t qdf_trace_enable_hdd;
10844 uint16_t qdf_trace_enable_sme;
10845 uint16_t qdf_trace_enable_pe;
10846 uint16_t qdf_trace_enable_pmc;
10847 uint16_t qdf_trace_enable_wma;
10848 uint16_t qdf_trace_enable_sys;
10849 uint16_t qdf_trace_enable_qdf;
10850 uint16_t qdf_trace_enable_sap;
10851 uint16_t qdf_trace_enable_hdd_sap;
10852 uint16_t qdf_trace_enable_bmi;
10853 uint16_t qdf_trace_enable_cfg;
Bhargav Shah480a90f2015-06-24 15:10:14 +053010854 uint16_t cfd_trace_enable_txrx;
Anurag Chouhanf04e84f2016-03-03 10:12:12 +053010855 uint16_t qdf_trace_enable_htc;
10856 uint16_t qdf_trace_enable_hif;
10857 uint16_t qdf_trace_enable_hdd_sap_data;
10858 uint16_t qdf_trace_enable_hdd_data;
10859 uint16_t qdf_trace_enable_epping;
10860 uint16_t qdf_trace_enable_qdf_devices;
Naveen Rawat7df31862017-03-01 17:09:30 -080010861 uint16_t qdf_trace_enable_wifi_pos;
Naveen Rawatf2b0dbd2017-03-27 10:00:15 -070010862 uint16_t qdf_trace_enable_nan;
Kiran Kumar Lokere798de7e2017-03-30 14:01:12 -070010863 uint16_t qdf_trace_enable_regulatory;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010864
10865 uint16_t nTeleBcnTransListenInterval;
10866 uint16_t nTeleBcnMaxListenInterval;
10867 uint16_t nTeleBcnTransLiNumIdleBeacons;
10868 uint16_t nTeleBcnMaxLiNumIdleBeacons;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010869 uint8_t enableBypass11d;
10870 uint8_t enableDFSChnlScan;
10871 uint8_t enable_dfs_pno_chnl_scan;
10872 uint8_t enableDynamicDTIM;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010873 uint8_t ShortGI40MhzEnable;
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010874 enum hdd_link_speed_rpt_type reportMaxLinkSpeed;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010875 int32_t linkSpeedRssiHigh;
10876 int32_t linkSpeedRssiMid;
10877 int32_t linkSpeedRssiLow;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010878 bool nRoamPrefer5GHz;
10879 bool nRoamIntraBand;
10880 uint8_t nProbes;
10881 uint16_t nRoamScanHomeAwayTime;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010882 uint8_t enableMCC;
10883 uint8_t allowMCCGODiffBI;
10884 bool isP2pDeviceAddrAdministrated;
10885 uint8_t thermalMitigationEnable;
10886 uint32_t throttlePeriod;
Poddar, Siddarth83905022016-04-16 17:56:08 -070010887 uint32_t throttle_dutycycle_level0;
10888 uint32_t throttle_dutycycle_level1;
10889 uint32_t throttle_dutycycle_level2;
10890 uint32_t throttle_dutycycle_level3;
Poddar, Siddarthb61cf642016-04-28 16:02:39 +053010891#if defined(CONFIG_HL_SUPPORT) && defined(QCA_BAD_PEER_TX_FLOW_CL)
10892 bool bad_peer_txctl_enable;
10893 uint32_t bad_peer_txctl_prd;
10894 uint32_t bad_peer_txctl_txq_lmt;
10895 uint32_t bad_peer_tgt_backoff;
10896 uint32_t bad_peer_tgt_report_prd;
10897 uint32_t bad_peer_cond_ieee80211b;
10898 uint32_t bad_peer_delta_ieee80211b;
10899 uint32_t bad_peer_pct_ieee80211b;
10900 uint32_t bad_peer_tput_ieee80211b;
10901 uint32_t bad_peer_limit_ieee80211b;
10902 uint32_t bad_peer_cond_ieee80211ag;
10903 uint32_t bad_peer_delta_ieee80211ag;
10904 uint32_t bad_peer_pct_ieee80211ag;
10905 uint32_t bad_peer_tput_ieee80211ag;
10906 uint32_t bad_peer_limit_ieee80211ag;
10907 uint32_t bad_peer_cond_ieee80211n;
10908 uint32_t bad_peer_delta_ieee80211n;
10909 uint32_t bad_peer_pct_ieee80211n;
10910 uint32_t bad_peer_tput_ieee80211n;
10911 uint32_t bad_peer_limit_ieee80211n;
10912 uint32_t bad_peer_cond_ieee80211ac;
10913 uint32_t bad_peer_delta_ieee80211ac;
10914 uint32_t bad_peer_pct_ieee80211ac;
10915 uint32_t bad_peer_tput_ieee80211ac;
10916 uint32_t bad_peer_limit_ieee80211ac;
10917#endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010918 uint8_t vhtChannelWidth;
10919 uint8_t vhtRxMCS;
10920 uint8_t vhtTxMCS;
10921 bool enableTxBF;
Kiran Kumar Lokere5302ab62015-12-16 16:03:16 -080010922 bool enable_txbf_sap_mode;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010923 uint8_t txBFCsnValue;
10924 bool enable_su_tx_bformer;
10925 uint8_t vhtRxMCS2x2;
10926 uint8_t vhtTxMCS2x2;
10927 bool enable2x2;
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -070010928 uint32_t vdev_type_nss_2g;
10929 uint32_t vdev_type_nss_5g;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010930 bool txchainmask1x1;
10931 bool rxchainmask1x1;
10932 bool enableMuBformee;
10933 bool enableVhtpAid;
10934 bool enableVhtGid;
10935 bool enableTxBFin20MHz;
10936 uint8_t enableAmpduPs;
10937 uint8_t enableHtSmps;
10938 uint8_t htSmps;
10939 uint8_t enableModulatedDTIM;
10940 uint32_t fEnableMCAddrList;
10941 bool enableFirstScan2GOnly;
10942 bool skipDfsChnlInP2pSearch;
10943 bool ignoreDynamicDtimInP2pMode;
10944 bool enableRxSTBC;
10945 bool enableTxSTBC;
Krunal Sonia2c0e412017-05-04 14:12:41 +053010946 uint8_t enable_tx_ldpc;
10947 uint8_t enable_rx_ldpc;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010948 bool enable5gEBT;
Dustin Brownfe7aa872017-06-26 10:52:08 -070010949 bool prevent_link_down;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010950#ifdef FEATURE_WLAN_TDLS
10951 bool fEnableTDLSSupport;
10952 bool fEnableTDLSImplicitTrigger;
10953 uint32_t fTDLSTxStatsPeriod;
10954 uint32_t fTDLSTxPacketThreshold;
10955 uint32_t fTDLSMaxDiscoveryAttempt;
Kabilan Kannanca670be2015-11-23 01:56:12 -080010956 uint32_t tdls_idle_timeout;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010957 uint32_t fTDLSIdlePacketThreshold;
10958 int32_t fTDLSRSSITriggerThreshold;
10959 int32_t fTDLSRSSITeardownThreshold;
10960 int32_t fTDLSRSSIDelta;
10961 uint32_t fTDLSUapsdMask; /* what ACs to setup U-APSD for TDLS */
10962 uint32_t fEnableTDLSBufferSta;
10963 uint32_t fEnableTDLSSleepSta;
10964 uint32_t fTDLSPuapsdInactivityTimer;
10965 uint32_t fTDLSRxFrameThreshold;
10966 uint32_t fTDLSPuapsdPTIWindow;
10967 uint32_t fTDLSPuapsdPTRTimeout;
10968 bool fTDLSExternalControl;
10969 uint32_t fEnableTDLSOffChannel;
10970 uint32_t fEnableTDLSWmmMode;
10971 uint8_t fTDLSPrefOffChanNum;
10972 uint8_t fTDLSPrefOffChanBandwidth;
10973 uint8_t enable_tdls_scan;
Kabilan Kannan421714b2015-11-23 04:44:59 -080010974 uint32_t tdls_peer_kickout_threshold;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010975#endif
10976#ifdef WLAN_SOFTAP_VSTA_FEATURE
10977 bool fEnableVSTASupport;
10978#endif
10979 uint32_t enableLpwrImgTransition;
10980 uint8_t scanAgingTimeout;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010981 uint8_t disableLDPCWithTxbfAP;
10982 uint8_t enableMCCAdaptiveScheduler;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010983 bool sapAllowAllChannel;
10984 uint8_t retryLimitZero;
10985 uint8_t retryLimitOne;
10986 uint8_t retryLimitTwo;
10987 bool enableSSR;
10988 uint32_t cfgMaxMediumTime;
10989 bool enableVhtFor24GHzBand;
Kapil Gupta4b2efbb2016-10-03 13:07:20 +053010990 bool enable_sap_vendor_vht;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010991 bool bFastRoamInConIniFeatureEnabled;
10992 bool fEnableAdaptRxDrain;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010993 bool enableIbssHeartBeatOffload;
10994 uint32_t antennaDiversity;
10995 bool fEnableSNRMonitoring;
10996 /*PNO related parameters */
10997#ifdef FEATURE_WLAN_SCAN_PNO
10998 bool configPNOScanSupport;
10999 uint32_t configPNOScanTimerRepeatValue;
Srinivas Girigowdabdc98162015-09-17 11:06:07 -070011000 uint32_t pno_slow_scan_multiplier;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011001#endif
Deepak Dhamdhere612392c2016-08-28 02:56:51 -070011002 uint8_t max_amsdu_num;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011003 uint8_t nSelect5GHzMargin;
11004 uint8_t isCoalesingInIBSSAllowed;
11005
11006 /* IBSS Power Save related parameters */
11007 uint32_t ibssATIMWinSize;
11008 uint8_t isIbssPowerSaveAllowed;
11009 uint8_t isIbssPowerCollapseAllowed;
11010 uint8_t isIbssAwakeOnTxRx;
11011 uint32_t ibssInactivityCount;
11012 uint32_t ibssTxSpEndInactivityTime;
11013 uint32_t ibssPsWarmupTime;
11014 uint32_t ibssPs1RxChainInAtimEnable;
11015
11016 bool enable_ip_tcp_udp_checksum_offload;
Ashish Kumar Dhanotiyabb22e0d2017-04-03 10:44:14 +053011017 uint8_t enablePowersaveOffload;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011018 bool enablefwprint;
Yuanyuan Liu7a97b8f2017-01-27 10:42:52 -080011019 uint8_t enable_fw_log;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011020 uint8_t fVhtAmpduLenExponent;
11021 uint32_t vhtMpduLen;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011022 uint32_t IpaConfig;
11023 bool IpaClkScalingEnable;
11024 uint32_t IpaDescSize;
11025 uint32_t IpaHighBandwidthMbps;
11026 uint32_t IpaMediumBandwidthMbps;
11027 uint32_t IpaLowBandwidthMbps;
11028#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
11029 uint32_t WlanMccToSccSwitchMode;
11030#endif
11031#ifdef FEATURE_WLAN_AUTO_SHUTDOWN
11032 uint32_t WlanAutoShutdown;
11033#endif
11034 uint8_t maxWoWFilters;
11035 uint8_t wowEnable;
11036 uint8_t maxNumberOfPeers;
11037 uint8_t disableDFSChSwitch;
11038 uint8_t enableDFSMasterCap;
11039 uint16_t thermalTempMinLevel0;
11040 uint16_t thermalTempMaxLevel0;
11041 uint16_t thermalTempMinLevel1;
11042 uint16_t thermalTempMaxLevel1;
11043 uint16_t thermalTempMinLevel2;
11044 uint16_t thermalTempMaxLevel2;
11045 uint16_t thermalTempMinLevel3;
11046 uint16_t thermalTempMaxLevel3;
11047 uint32_t TxPower2g;
11048 uint32_t TxPower5g;
11049 uint32_t gEnableDebugLog;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011050 bool fDfsPhyerrFilterOffload;
11051 uint8_t gSapPreferredChanLocation;
11052 uint8_t gDisableDfsJapanW53;
11053 bool gEnableOverLapCh;
11054 bool fRegChangeDefCountry;
Hong Shi417824f2017-01-12 02:31:14 +080011055 uint16_t max_ht_mcs_txdata;
Hong Shia9ef8712017-02-19 21:54:02 +080011056 bool disable_abg_rate_txdata;
Hong Shib90718f2017-02-20 00:57:22 +080011057 uint8_t rate_for_tx_mgmt;
Hong Shi2d384fd2017-05-22 18:38:41 +080011058 uint8_t rate_for_tx_mgmt_2g;
11059 uint8_t rate_for_tx_mgmt_5g;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011060#ifdef QCA_LL_LEGACY_TX_FLOW_CONTROL
11061 uint32_t TxFlowLowWaterMark;
11062 uint32_t TxFlowHighWaterMarkOffset;
11063 uint32_t TxFlowMaxQueueDepth;
11064 uint32_t TxLbwFlowLowWaterMark;
11065 uint32_t TxLbwFlowHighWaterMarkOffset;
11066 uint32_t TxLbwFlowMaxQueueDepth;
11067 uint32_t TxHbwFlowLowWaterMark;
11068 uint32_t TxHbwFlowHighWaterMarkOffset;
11069 uint32_t TxHbwFlowMaxQueueDepth;
11070#endif /* QCA_LL_LEGACY_TX_FLOW_CONTROL */
11071#ifdef QCA_LL_TX_FLOW_CONTROL_V2
11072 uint32_t TxFlowStopQueueThreshold;
11073 uint32_t TxFlowStartQueueOffset;
11074#endif
11075 uint8_t apMaxOffloadPeers;
11076 uint8_t apMaxOffloadReorderBuffs;
11077 bool advertiseConcurrentOperation;
11078 bool enableMemDeepSleep;
Dustin Brown732ab9c2017-06-15 13:24:09 -070011079 bool enable_cck_tx_fir_override;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011080
11081 uint32_t defaultRateIndex24Ghz;
11082#ifdef MEMORY_DEBUG
11083 bool IsMemoryDebugSupportEnabled;
11084#endif
11085
11086 uint8_t allowDFSChannelRoam;
11087
11088 bool debugP2pRemainOnChannel;
11089
11090 bool enablePacketLog;
11091#ifdef MSM_PLATFORM
11092 uint32_t busBandwidthHighThreshold;
11093 uint32_t busBandwidthMediumThreshold;
11094 uint32_t busBandwidthLowThreshold;
11095 uint32_t busBandwidthComputeInterval;
Ravi Joshie2331e82015-07-01 18:18:54 -070011096 uint32_t enable_tcp_delack;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011097 uint32_t tcpDelackThresholdHigh;
11098 uint32_t tcpDelackThresholdLow;
Mohit Khannae71e2262015-11-10 09:37:24 -080011099 uint32_t tcp_tx_high_tput_thres;
Ravi Joshib89e7f72016-09-07 13:43:15 -070011100 uint32_t tcp_delack_timer_count;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011101#endif /* MSM_PLATFORM */
11102
11103 /* FW debug log parameters */
11104 uint32_t enableFwLogType;
11105 uint32_t enableFwLogLevel;
11106 uint8_t enableFwModuleLogLevel[FW_MODULE_LOG_LEVEL_STRING_LENGTH];
11107
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +053011108 /* RTS profile parameter */
11109 uint32_t rts_profile;
11110
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011111#ifdef WLAN_FEATURE_11W
11112 uint32_t pmfSaQueryMaxRetries;
11113 uint32_t pmfSaQueryRetryInterval;
11114#endif
11115
11116 uint8_t gMaxConcurrentActiveSessions;
11117
11118 uint8_t ignoreCAC;
11119 bool IsSapDfsChSifsBurstEnabled;
11120
11121#ifdef FEATURE_GREEN_AP
11122 bool enableGreenAP;
Ryan Hsucb118cf2015-11-09 16:03:53 -080011123 bool enable_egap;
11124 uint32_t egap_feature_flag;
11125 uint32_t egap_inact_time;
11126 uint32_t egap_wait_time;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011127#endif
11128 uint8_t force_sap_acs;
11129 uint8_t force_sap_acs_st_ch;
11130 uint8_t force_sap_acs_end_ch;
11131
11132 int32_t dfsRadarPriMultiplier;
11133 uint8_t reorderOffloadSupport;
11134
11135#ifdef WLAN_FEATURE_ROAM_OFFLOAD
11136 bool isRoamOffloadEnabled;
11137#endif
11138
11139 uint32_t IpaUcTxBufCount;
11140 uint32_t IpaUcTxBufSize;
11141 uint32_t IpaUcRxIndRingCount;
11142 uint32_t IpaUcTxPartitionBase;
11143#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
11144 /* WLAN Logging */
11145 uint32_t wlanLoggingEnable;
Srinivas Girigowda8187e792017-03-03 11:50:59 -080011146 uint32_t wlanLoggingToConsole;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011147 uint32_t wlanLoggingNumBuf;
11148#endif /* WLAN_LOGGING_SOCK_SVC_ENABLE */
11149
Dustin Brown0a4cfeb2017-03-10 15:22:28 -080011150 uint8_t enableSifsBurst;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011151
11152#ifdef WLAN_FEATURE_LPSS
Komal Seelamc11bb222016-01-27 18:57:10 +053011153 bool enable_lpass_support;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011154#endif
11155#ifdef WLAN_FEATURE_NAN
11156 bool enable_nan_support;
11157#endif
11158 bool enableSelfRecovery;
11159#ifdef FEATURE_WLAN_FORCE_SAP_SCC
11160 uint8_t SapSccChanAvoidance;
11161#endif /* FEATURE_WLAN_FORCE_SAP_SCC */
11162
11163 bool enableSapSuspend;
11164
11165#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
11166 uint8_t extWowGotoSuspend;
11167 uint8_t extWowApp1WakeupPinNumber;
11168 uint8_t extWowApp2WakeupPinNumber;
11169 uint32_t extWowApp2KAInitPingInterval;
11170 uint32_t extWowApp2KAMinPingInterval;
11171 uint32_t extWowApp2KAMaxPingInterval;
11172 uint32_t extWowApp2KAIncPingInterval;
11173 uint16_t extWowApp2TcpSrcPort;
11174 uint16_t extWowApp2TcpDstPort;
11175 uint32_t extWowApp2TcpTxTimeout;
11176 uint32_t extWowApp2TcpRxTimeout;
11177#endif
11178 bool gEnableDeauthToDisassocMap;
11179#ifdef DHCP_SERVER_OFFLOAD
11180 bool enableDHCPServerOffload;
11181 uint32_t dhcpMaxNumClients;
11182 uint8_t dhcpServerIP[IPADDR_STRING_LENGTH];
11183#endif /* DHCP_SERVER_OFFLOAD */
11184 bool enable_mac_spoofing;
11185 uint8_t conc_custom_rule1;
11186 uint8_t conc_custom_rule2;
11187 uint8_t is_sta_connection_in_5gz_enabled;
11188 uint16_t p2p_listen_defer_interval;
11189 uint32_t sta_miracast_mcc_rest_time_val;
11190 bool is_ramdump_enabled;
11191#ifdef FEATURE_AP_MCC_CH_AVOIDANCE
11192 bool sap_channel_avoidance;
11193#endif /* FEATURE_AP_MCC_CH_AVOIDANCE */
11194 uint8_t sap_p2p_11ac_override;
11195 uint8_t sap_dot11mc;
11196 uint8_t prefer_non_dfs_on_radar;
11197 bool ignore_peer_erp_info;
11198 uint8_t multicast_host_fw_msgs;
11199 uint8_t conc_system_pref;
11200 bool sendDeauthBeforeCon;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011201 bool tso_enable;
11202 bool lro_enable;
Manjunathappa Prakashfff753c2016-09-01 19:34:56 -070011203 bool flow_steering_enable;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011204 bool active_mode_offload;
Rajeev Kumardd3bc602016-08-16 14:21:05 -070011205 bool bpf_packet_filter_enable;
Nitesh Shah61c10d92016-10-19 19:29:15 +053011206 /* parameter for defer timer for enabling TDLS on p2p listen */
11207 uint16_t tdls_enable_defer_time;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011208 uint32_t fine_time_meas_cap;
11209 uint8_t max_scan_count;
11210#ifdef WLAN_FEATURE_FASTPATH
11211 bool fastpath_enable;
11212#endif
11213 uint8_t dot11p_mode;
Nirav Shahbd36b062016-07-18 11:12:59 +053011214 uint8_t rx_mode;
11215 uint8_t cpu_map_list[CFG_RPS_RX_QUEUE_CPU_MAP_LIST_LEN];
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011216#ifdef FEATURE_WLAN_EXTSCAN
Manjeet Singh0f2ce5c2016-09-01 12:08:57 +053011217 bool extscan_enabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011218 uint32_t extscan_passive_max_chn_time;
11219 uint32_t extscan_passive_min_chn_time;
11220 uint32_t extscan_active_max_chn_time;
11221 uint32_t extscan_active_min_chn_time;
11222#endif
11223 bool ce_classify_enabled;
11224 uint32_t dual_mac_feature_disable;
Nitesh Shah50a3de12017-04-03 19:37:19 +053011225 uint8_t dbs_scan_selection[CFG_DBS_SCAN_PARAM_LENGTH];
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011226 bool tx_chain_mask_cck;
11227 uint8_t tx_chain_mask_1ss;
Jeff Johnsona89e25d2017-02-24 12:25:07 -080011228 bool smart_chainmask_enabled;
11229 bool alternative_chainmask_enabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011230 uint16_t self_gen_frm_pwr;
Varun Reddy Yeturub43fda12015-09-10 18:16:21 -070011231#ifdef FEATURE_WLAN_SCAN_PNO
11232 bool pno_channel_prediction;
11233 uint8_t top_k_num_of_channels;
11234 uint8_t stationary_thresh;
11235 uint32_t channel_prediction_full_scan;
11236#endif
Varun Reddy Yeturu05186292015-09-28 17:12:33 -070011237 bool early_stop_scan_enable;
11238 int8_t early_stop_scan_min_threshold;
11239 int8_t early_stop_scan_max_threshold;
Varun Reddy Yeturu044bda22015-11-21 22:03:40 -080011240 int8_t first_scan_bucket_threshold;
Krishna Kumaar Natarajan22b59a72015-11-23 18:54:58 -080011241 uint8_t ht_mpdu_density;
Ravi Joshi742495d2015-11-09 18:56:53 -080011242#ifdef FEATURE_LFR_SUBNET_DETECTION
11243 bool enable_lfr_subnet_detection;
11244#endif
Sandeep Puligilla93a29ec2016-02-12 16:10:56 -080011245 uint16_t obss_active_dwelltime;
11246 uint16_t obss_passive_dwelltime;
11247 uint16_t obss_width_trigger_interval;
Deepak Dhamdhere68929ec2015-08-05 15:16:35 -070011248 uint8_t inform_bss_rssi_raw;
Jeff Johnson89c66ff2016-04-22 15:21:37 -070011249#ifdef WLAN_FEATURE_TSF
Manikandan Mohan976e7562016-03-15 16:33:31 -070011250 uint32_t tsf_gpio_pin;
Jeff Johnson89c66ff2016-04-22 15:21:37 -070011251#endif
Gupta, Kapilc68ad462016-02-01 19:17:23 +053011252 uint32_t roam_dense_traffic_thresh;
11253 uint32_t roam_dense_rssi_thresh_offset;
Abhishek Singh165bc602016-03-21 12:43:00 +053011254 bool ignore_peer_ht_opmode;
Gupta, Kapilc68ad462016-02-01 19:17:23 +053011255 uint32_t roam_dense_min_aps;
Abhishek Singh10ecf582016-05-04 17:48:59 +053011256 bool enable_edca_params;
11257 uint32_t edca_vo_cwmin;
11258 uint32_t edca_vi_cwmin;
11259 uint32_t edca_bk_cwmin;
11260 uint32_t edca_be_cwmin;
11261 uint32_t edca_vo_cwmax;
11262 uint32_t edca_vi_cwmax;
11263 uint32_t edca_bk_cwmax;
11264 uint32_t edca_be_cwmax;
11265 uint32_t edca_vo_aifs;
11266 uint32_t edca_vi_aifs;
11267 uint32_t edca_bk_aifs;
11268 uint32_t edca_be_aifs;
gbian62edd7e2017-03-07 13:12:13 +080011269
11270 /* Tuning TX sched parameters for VO (skip credit limit credit disc) */
11271 uint8_t tx_sched_wrr_vo[TX_SCHED_WRR_PARAM_STRING_LENGTH];
11272 /* Tuning TX sched parameters for VI (skip credit limit credit disc) */
11273 uint8_t tx_sched_wrr_vi[TX_SCHED_WRR_PARAM_STRING_LENGTH];
11274 /* Tuning TX sched parameters for BE (skip credit limit credit disc) */
11275 uint8_t tx_sched_wrr_be[TX_SCHED_WRR_PARAM_STRING_LENGTH];
11276 /* Tuning TX sched parameters for BK (skip credit limit credit disc) */
11277 uint8_t tx_sched_wrr_bk[TX_SCHED_WRR_PARAM_STRING_LENGTH];
11278
Abhishek Singh5ea86532016-04-27 14:10:53 +053011279 bool enable_fatal_event;
Arun Khandavalli2476ef52016-04-26 20:19:43 +053011280 bool bpf_enabled;
Nirav Shahcc1f1ae2016-04-26 11:41:29 +053011281 bool enable_dp_trace;
Gupta, Kapil96c7f2f2016-04-25 19:13:41 +053011282 bool adaptive_dwell_mode_enabled;
11283 enum wmi_dwelltime_adaptive_mode scan_adaptive_dwell_mode;
11284 enum wmi_dwelltime_adaptive_mode roamscan_adaptive_dwell_mode;
11285 enum wmi_dwelltime_adaptive_mode extscan_adaptive_dwell_mode;
11286 enum wmi_dwelltime_adaptive_mode pnoscan_adaptive_dwell_mode;
11287 enum wmi_dwelltime_adaptive_mode global_adapt_dwelltime_mode;
11288 uint8_t adapt_dwell_lpf_weight;
11289 uint8_t adapt_dwell_passive_mon_intval;
11290 uint8_t adapt_dwell_wifi_act_threshold;
Kapil Gupta8878ad92017-02-13 11:56:04 +053011291 bool vendor_acs_support;
11292 bool acs_support_for_dfs_ltecoex;
Kapil Gupta0ed58dc2016-04-22 15:35:26 +053011293 bool bug_report_for_no_scan_results;
Mukul Sharmaf7d62e12016-09-03 15:16:22 +053011294 bool bug_on_reinit_failure;
Deepak Dhamdhere3385d752016-05-25 20:36:47 -070011295#ifdef WLAN_FEATURE_NAN_DATAPATH
11296 bool enable_nan_datapath;
11297 uint8_t nan_datapath_ndi_channel;
11298#endif
Arun Khandavallifae92942016-08-01 13:31:08 +053011299 uint32_t iface_change_wait_time;
Rajeev Kumar Sirasanagandlaaf474742016-09-06 17:54:50 +053011300 /* parameter to control GTX */
11301 uint32_t tgt_gtx_usr_cfg;
Naveen Rawat64e477e2016-05-20 10:34:56 -070011302 enum cfg_sub_20_channel_width enable_sub_20_channel_width;
Amar Singhal18517882016-08-08 12:26:20 -070011303 bool indoor_channel_support;
Rajeev Kumar Sirasanagandlab79b5462016-09-06 18:33:17 +053011304 /* parameter to force sap into 11n */
11305 bool sap_force_11n_for_11ac;
Yingying Tangb4832f72016-10-20 13:44:55 +080011306 uint16_t sap_tx_leakage_threshold;
Ravi Joshibb8d4512016-08-22 10:14:52 -070011307 bool multicast_replay_filter;
Manjeet Singhe7ecb7c2016-09-03 12:34:53 +053011308 /* parameter for indicating sifs burst duration to fw */
11309 uint8_t sifs_burst_duration;
Selvaraj, Sridharebda0f22016-08-29 16:05:23 +053011310 bool goptimize_chan_avoid_event;
Agrawal Ashishb2d1a452016-05-05 12:23:58 +053011311 bool enable_go_cts2self_for_sta;
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +053011312 uint32_t tx_aggregation_size;
11313 uint32_t rx_aggregation_size;
Kiran Kumar Lokere1aa9c9a2016-10-05 18:50:59 -070011314 bool sta_prefer_80MHz_over_160MHz;
Agrawal, Ashish4e5fa1c2016-09-21 19:03:43 +053011315 uint8_t sap_max_inactivity_override;
Sandeep Puligillaafa52892016-10-26 19:03:16 -070011316 bool fw_timeout_crash;
Dustin Browncd756942016-11-23 12:25:33 -080011317 uint32_t rx_wakelock_timeout;
Anurag Chouhan7c01cc42016-12-16 21:33:43 +053011318 uint32_t max_sched_scan_plan_interval;
11319 uint32_t max_sched_scan_plan_iterations;
Yingying Tang95409972016-10-20 15:16:15 +080011320#ifdef WLAN_FEATURE_WOW_PULSE
11321 bool wow_pulse_support;
11322 uint8_t wow_pulse_pin;
11323 uint16_t wow_pulse_interval_high;
11324 uint16_t wow_pulse_interval_low;
11325#endif
Jeff Johnson441e1f72017-02-07 08:50:49 -080011326 enum hdd_wext_control standard_wext_control;
11327 enum hdd_wext_control private_wext_control;
Arun Khandavallicc544b32017-01-30 19:52:16 +053011328 bool sap_internal_restart;
Hanumanth Reddy Pothulaffc2d482017-07-04 11:32:44 +053011329 bool restart_beaconing_on_chan_avoid_event;
Kapil Gupta6e6c26b2017-01-20 18:59:43 +053011330 uint8_t is_per_roam_enabled;
Kapil Gupta5cda2252016-12-29 18:44:26 +053011331 uint32_t per_roam_high_rate_threshold;
11332 uint32_t per_roam_low_rate_threshold;
11333 uint32_t per_roam_th_percent;
11334 uint32_t per_roam_rest_time;
Kapil Gupta957827b2017-02-13 15:47:04 +053011335 uint32_t per_roam_mon_time;
Selvaraj, Sridhar0641fab2017-05-17 16:02:00 +053011336 uint32_t min_candidate_rssi;
Hanumanth Reddy Pothulae87621b2017-04-12 20:53:35 +053011337 enum active_bpf_mode active_uc_bpf_mode;
11338 enum active_bpf_mode active_mc_bc_bpf_mode;
Selvaraj, Sridhar4f684bb2017-01-19 15:59:23 +053011339 bool enable_bcast_probe_rsp;
Krishna Kumaar Natarajan90bb6f12017-03-03 21:05:52 -080011340#ifdef WLAN_FEATURE_11AX
11341 bool enable_ul_mimo;
11342 bool enable_ul_ofdma;
Manikandan Mohan39accff2017-05-02 16:09:00 -070011343 uint32_t he_sta_obsspd;
Krishna Kumaar Natarajan90bb6f12017-03-03 21:05:52 -080011344#endif
Dustin Brownab1364a2017-03-27 16:59:08 -070011345 enum l1ss_sleep_allowed l1ss_sleep_allowed;
Srinivas Girigowda70e169a2017-03-07 23:55:57 -080011346 uint32_t arp_ac_category;
Jeff Johnson12a744b2017-04-04 08:19:37 -070011347 bool ani_enabled;
Selvaraj, Sridhara521aab2017-03-25 16:42:34 +053011348 bool qcn_ie_support;
Amar Singhal5cccafe2017-02-15 12:42:58 -080011349 bool reg_offload_enabled;
Manjunathappa Prakashdab74fa2017-06-19 12:11:03 -070011350 bool tx_orphan_enable;
Dustin Brown7f939932017-05-18 15:02:17 -070011351 uint32_t timer_multiplier;
Selvaraj, Sridhar97ce6582017-01-20 17:06:34 +053011352 uint8_t fils_max_chan_guard_time;
Dustin Brown20b6fcf2017-05-17 15:35:17 -070011353 uint8_t scan_backoff_multiplier;
Jayachandran Sreekumaran68c952c2017-04-24 12:42:03 +053011354 enum hdd_external_acs_policy external_acs_policy;
11355 enum hdd_external_acs_freq_band external_acs_freq_band;
Naveen Rawat2b6e3c92017-03-20 13:59:07 -070011356 /* threshold of packet drops at which FW initiates disconnect */
11357 uint16_t pkt_err_disconn_th;
Naveen Rawatb2fc4132017-05-10 20:42:05 -070011358 bool is_force_1x1;
lifeng959a04c2017-05-10 14:21:28 +080011359 uint8_t enable_rts_sifsbursting;
11360 uint8_t max_mpdus_inampdu;
lifeng13a89d72017-05-10 14:49:29 +080011361 uint16_t sap_max_mcs_txdata;
Ravi Kumar Bokka05c14e52017-03-27 14:48:23 +053011362 uint8_t auto_pwr_save_fail_mode;
Naveen Rawat247a8682017-06-05 15:00:31 -070011363 uint16_t num_11b_tx_chains;
11364 uint16_t num_11ag_tx_chains;
Ashish Kumar Dhanotiya9335d812017-06-30 16:57:20 +053011365 uint8_t ito_repeat_count;
Selvaraj, Sridhar57ce4df2017-05-29 18:30:49 +053011366
11367 /* LCA(Last connected AP) disallow configs */
11368 uint32_t disallow_duration;
11369 uint32_t rssi_channel_penalization;
11370 uint32_t num_disallowed_aps;
yeshwanth sriram guntuka1413dfb2017-06-23 14:09:48 +053011371 bool oce_sta_enabled;
11372 bool oce_sap_enabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011373};
11374
11375#define VAR_OFFSET(_Struct, _Var) (offsetof(_Struct, _Var))
11376#define VAR_SIZE(_Struct, _Var) (sizeof(((_Struct *)0)->_Var))
11377
11378#define VAR_FLAGS_NONE (0)
11379
11380/* bit 0 is Required or Optional */
11381#define VAR_FLAGS_REQUIRED (1 << 0)
11382#define VAR_FLAGS_OPTIONAL (0 << 0)
11383
11384/*
11385 * bit 1 tells if range checking is required.
11386 * If less than MIN, assume MIN.
11387 * If greater than MAX, assume MAX.
11388 */
11389#define VAR_FLAGS_RANGE_CHECK (1 << 1)
11390#define VAR_FLAGS_RANGE_CHECK_ASSUME_MINMAX (VAR_FLAGS_RANGE_CHECK)
11391
11392/*
11393 * bit 2 is range checking that assumes the DEFAULT value
11394 * If less than MIN, assume DEFAULT,
11395 * If greater than MAX, assume DEFAULT.
11396 */
11397#define VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT (1 << 2)
11398
11399/*
11400 * Bit 3 indicates that the config item can be modified dynamicially
11401 * on a running system
11402 */
11403#define VAR_FLAGS_DYNAMIC_CFG (1 << 3)
11404
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070011405enum wlan_parameter_type {
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011406 WLAN_PARAM_Integer,
11407 WLAN_PARAM_SignedInteger,
11408 WLAN_PARAM_HexInteger,
11409 WLAN_PARAM_String,
11410 WLAN_PARAM_MacAddr,
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070011411};
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011412
11413#define REG_VARIABLE(_Name, _Type, _Struct, _VarName, \
11414 _Flags, _Default, _Min, _Max) \
11415 { \
11416 (_Name), \
11417 (_Type), \
11418 (_Flags), \
11419 VAR_OFFSET(_Struct, _VarName), \
11420 VAR_SIZE(_Struct, _VarName), \
11421 (_Default), \
11422 (_Min), \
11423 (_Max), \
11424 NULL, \
11425 0 \
11426 }
11427
11428#define REG_DYNAMIC_VARIABLE(_Name, _Type, _Struct, _VarName, \
11429 _Flags, _Default, _Min, _Max, \
11430 _CBFunc, _CBParam) \
11431 { \
11432 (_Name), \
11433 (_Type), \
11434 (VAR_FLAGS_DYNAMIC_CFG | (_Flags)), \
11435 VAR_OFFSET(_Struct, _VarName), \
11436 VAR_SIZE(_Struct, _VarName), \
11437 (_Default), \
11438 (_Min), \
11439 (_Max), \
11440 (_CBFunc), \
11441 (_CBParam) \
11442 }
11443
11444#define REG_VARIABLE_STRING(_Name, _Type, _Struct, _VarName, \
11445 _Flags, _Default) \
11446 { \
11447 (_Name), \
11448 (_Type), \
11449 (_Flags), \
11450 VAR_OFFSET(_Struct, _VarName), \
11451 VAR_SIZE(_Struct, _VarName), \
11452 (unsigned long)(_Default), \
11453 0, \
11454 0, \
11455 NULL, \
11456 0 \
11457 }
11458
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070011459struct reg_table_entry {
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011460 char *RegName; /* variable name in the qcom_cfg.ini file */
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070011461 enum wlan_parameter_type RegType; /* variable type in hdd_config struct */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011462 unsigned long Flags; /* Specify optional parms and if RangeCheck is performed */
11463 unsigned short VarOffset; /* offset to field from the base address of the structure */
11464 unsigned short VarSize; /* size (in bytes) of the field */
11465 unsigned long VarDefault; /* default value to use */
11466 unsigned long VarMin; /* minimum value, for range checking */
11467 unsigned long VarMax; /* maximum value, for range checking */
11468 /* Dynamic modification notifier */
11469 void (*pfnDynamicnotify)(hdd_context_t *pHddCtx,
11470 unsigned long notifyId);
11471 unsigned long notifyId; /* Dynamic modification identifier */
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070011472};
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011473
11474/* Function declarations and documenation */
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053011475QDF_STATUS hdd_parse_config_ini(hdd_context_t *pHddCtx);
11476QDF_STATUS hdd_update_mac_config(hdd_context_t *pHddCtx);
11477QDF_STATUS hdd_set_sme_config(hdd_context_t *pHddCtx);
Tushnim Bhattacharyyaba8ee932017-03-23 09:27:40 -070011478QDF_STATUS hdd_set_policy_mgr_user_cfg(hdd_context_t *pHddCtx);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053011479QDF_STATUS hdd_set_sme_chan_list(hdd_context_t *hdd_ctx);
Krunal Sonidf0f8742016-09-26 14:56:31 -070011480bool hdd_update_config_cfg(hdd_context_t *pHddCtx);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053011481QDF_STATUS hdd_cfg_get_global_config(hdd_context_t *pHddCtx, char *pBuf,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011482 int buflen);
11483
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070011484eCsrPhyMode hdd_cfg_xlate_to_csr_phy_mode(enum hdd_dot11_mode dot11Mode);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053011485QDF_STATUS hdd_execute_global_config_command(hdd_context_t *pHddCtx,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011486 char *command);
11487
11488bool hdd_is_okc_mode_enabled(hdd_context_t *pHddCtx);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053011489QDF_STATUS hdd_set_idle_ps_config(hdd_context_t *pHddCtx, uint32_t val);
Deepak Dhamdhere828f1892017-02-09 11:51:19 -080011490void hdd_get_pmkid_modes(hdd_context_t *pHddCtx,
11491 struct pmkid_mode_bits *pmkid_modes);
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011492
11493void hdd_update_tgt_cfg(void *context, void *param);
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011494
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053011495QDF_STATUS hdd_string_to_u8_array(char *str, uint8_t *intArray, uint8_t *len,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011496 uint8_t intArrayMaxLen);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053011497QDF_STATUS hdd_hex_string_to_u16_array(char *str, uint16_t *int_array,
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -080011498 uint8_t *len, uint8_t int_array_max_len);
11499
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011500void hdd_cfg_print(hdd_context_t *pHddCtx);
11501
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053011502QDF_STATUS hdd_update_nss(hdd_context_t *hdd_ctx, uint8_t nss);
Arif Hussaincd151632017-02-11 16:57:19 -080011503
11504/**
11505 * hdd_dfs_indicate_radar() - Block tx as radar found on the channel
11506 * @hdd_ctxt: HDD context pointer
11507 *
11508 * This function is invoked in atomic context when a radar
11509 * is found on the SAP current operating channel and Data Tx
11510 * from netif has to be stopped to honor the DFS regulations.
11511 * Actions: Stop the netif Tx queues,Indicate Radar present
11512 * in HDD context for future usage.
11513 *
11514 * Return: true on success, else false
11515 */
11516bool hdd_dfs_indicate_radar(hdd_context_t *hdd_ctx);
11517
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080011518#endif