blob: 663547e1752b3bb1a9999a39fe5c2870c3bba949 [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>
48
49#define FW_MODULE_LOG_LEVEL_STRING_LENGTH (255)
gbian62edd7e2017-03-07 13:12:13 +080050#define TX_SCHED_WRR_PARAM_STRING_LENGTH (50)
51#define TX_SCHED_WRR_PARAMS_NUM (5)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080052
Nirav Shahbd36b062016-07-18 11:12:59 +053053#define CFG_ENABLE_RX_THREAD (1 << 0)
54#define CFG_ENABLE_RPS (1 << 1)
55#define CFG_ENABLE_NAPI (1 << 2)
56
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080057#ifdef DHCP_SERVER_OFFLOAD
58#define IPADDR_NUM_ENTRIES (4)
59#define IPADDR_STRING_LENGTH (16)
60#endif
61
62/* Number of items that can be configured */
Srinivas Girigowdaba3091c2015-11-16 17:18:40 -080063#define MAX_CFG_INI_ITEMS 1024
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080064
65/* Defines for all of the things we read from the configuration (registry). */
66
Sen, Devendra9ca8c432017-02-23 15:10:26 +053067/*
68 * <ini>
69 * RTSThreshold - Will provide RTSThreshold
70 * @Min: 0
71 * @Max: 1048576
72 * @Default: 2347
73 *
74 * This ini is used to set default RTSThreshold
75 * If minimum value 0 is selectd then it will use always RTS
76 *
77 * Related: None
78 *
79 * Supported Feature: STA
80 *
81 * Usage: Internal/External
82 *
83 * </ini>
84 */
85
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080086#define CFG_RTS_THRESHOLD_NAME "RTSThreshold"
87#define CFG_RTS_THRESHOLD_MIN WNI_CFG_RTS_THRESHOLD_STAMIN /* min is 0, meaning always use RTS. */
88#define CFG_RTS_THRESHOLD_MAX WNI_CFG_RTS_THRESHOLD_STAMAX /* max is the max frame size */
89#define CFG_RTS_THRESHOLD_DEFAULT WNI_CFG_RTS_THRESHOLD_STADEF
90
Sen, Devendra9ca8c432017-02-23 15:10:26 +053091/*
92 * <ini>
93 * gFragmentationThreshold - It will set fragmentation threshold
94 * @Min: 256
95 * @Max: 8000
96 * @Default: 8000
97 *
98 * This ini is used to indicate default fragmentation threshold
99 *
100 * Related: None
101 *
102 * Supported Feature: STA
103 *
104 * Usage: Internal/External
105 *
106 * </ini>
107 */
108
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800109#define CFG_FRAG_THRESHOLD_NAME "gFragmentationThreshold"
110#define CFG_FRAG_THRESHOLD_MIN WNI_CFG_FRAGMENTATION_THRESHOLD_STAMIN
111#define CFG_FRAG_THRESHOLD_MAX WNI_CFG_FRAGMENTATION_THRESHOLD_STAMAX
112#define CFG_FRAG_THRESHOLD_DEFAULT WNI_CFG_FRAGMENTATION_THRESHOLD_STADEF
113
114#define CFG_OPERATING_CHANNEL_NAME "gOperatingChannel"
115#define CFG_OPERATING_CHANNEL_MIN (0)
116#define CFG_OPERATING_CHANNEL_MAX (14)
117#define CFG_OPERATING_CHANNEL_DEFAULT (1)
118
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530119/*
120 * <ini>
121 * gShortSlotTimeEnabled - It will set slot timing slot.
122 * @Min: 0
123 * @Max: 1
124 * @Default: 1
125 *
126 * This ini is used to set default timing slot.
127 *
128 * Related: None
129 *
130 * Supported Feature: STA
131 *
132 * Usage: Internal/External
133 *
134 * </ini>
135 */
136
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800137#define CFG_SHORT_SLOT_TIME_ENABLED_NAME "gShortSlotTimeEnabled"
138#define CFG_SHORT_SLOT_TIME_ENABLED_MIN WNI_CFG_SHORT_SLOT_TIME_STAMIN
139#define CFG_SHORT_SLOT_TIME_ENABLED_MAX WNI_CFG_SHORT_SLOT_TIME_STAMAX
140#define CFG_SHORT_SLOT_TIME_ENABLED_DEFAULT WNI_CFG_SHORT_SLOT_TIME_STADEF
141
142#define CFG_11D_SUPPORT_ENABLED_NAME "g11dSupportEnabled"
143#define CFG_11D_SUPPORT_ENABLED_MIN WNI_CFG_11D_ENABLED_STAMIN
144#define CFG_11D_SUPPORT_ENABLED_MAX WNI_CFG_11D_ENABLED_STAMAX
145#define CFG_11D_SUPPORT_ENABLED_DEFAULT WNI_CFG_11D_ENABLED_STADEF /* Default is ON */
146
147#define CFG_11H_SUPPORT_ENABLED_NAME "g11hSupportEnabled"
148#define CFG_11H_SUPPORT_ENABLED_MIN (0)
149#define CFG_11H_SUPPORT_ENABLED_MAX (1)
150#define CFG_11H_SUPPORT_ENABLED_DEFAULT (1) /* Default is ON */
151
152/* COUNTRY Code Priority */
153#define CFG_COUNTRY_CODE_PRIORITY_NAME "gCountryCodePriority"
154#define CFG_COUNTRY_CODE_PRIORITY_MIN (0)
155#define CFG_COUNTRY_CODE_PRIORITY_MAX (1)
156#define CFG_COUNTRY_CODE_PRIORITY_DEFAULT (0)
157
158#define CFG_HEARTBEAT_THRESH_24_NAME "gHeartbeat24"
159#define CFG_HEARTBEAT_THRESH_24_MIN WNI_CFG_HEART_BEAT_THRESHOLD_STAMIN
160#define CFG_HEARTBEAT_THRESH_24_MAX WNI_CFG_HEART_BEAT_THRESHOLD_STAMAX
161#define CFG_HEARTBEAT_THRESH_24_DEFAULT WNI_CFG_HEART_BEAT_THRESHOLD_STADEF
162
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530163/*
164 * <ini>
165 * gMaxRxAmpduFactor - Provide the maximum ampdu factor.
166 * @Min: 0
167 * @Max: 3
168 * @Default: 3
169 *
170 * This ini is used to set default maxampdu factor
171 *
172 * Related: None
173 *
174 * Supported Feature: STA
175 *
176 * Usage: Internal/External
177 *
178 * </ini>
179 */
180
181#define CFG_MAX_RX_AMPDU_FACTOR_NAME "gMaxRxAmpduFactor"
182#define CFG_MAX_RX_AMPDU_FACTOR_MIN WNI_CFG_MAX_RX_AMPDU_FACTOR_STAMIN
183#define CFG_MAX_RX_AMPDU_FACTOR_MAX WNI_CFG_MAX_RX_AMPDU_FACTOR_STAMAX
184#define CFG_MAX_RX_AMPDU_FACTOR_DEFAULT WNI_CFG_MAX_RX_AMPDU_FACTOR_STADEF
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800185
Krishna Kumaar Natarajan22b59a72015-11-23 18:54:58 -0800186/* Configuration option for HT MPDU density (Table 8-125 802.11-2012)
187 * 0 for no restriction
188 * 1 for 1/4 micro sec
189 * 2 for 1/2 micro sec
190 * 3 for 1 micro sec
191 * 4 for 2 micro sec
192 * 5 for 4 micro sec
193 * 6 for 8 micro sec
194 * 7 for 16 micro sec
195 */
196#define CFG_HT_MPDU_DENSITY_NAME "ght_mpdu_density"
197#define CFG_HT_MPDU_DENSITY_MIN WNI_CFG_MPDU_DENSITY_STAMIN
198#define CFG_HT_MPDU_DENSITY_MAX WNI_CFG_MPDU_DENSITY_STAMAX
199#define CFG_HT_MPDU_DENSITY_DEFAULT WNI_CFG_MPDU_DENSITY_STADEF
200
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530201/*
202 * <ini>
203 * gEnableAdaptRxDrain - It will enable adapt received drain.
204 * @Min: 0
205 * @Max: 1
206 * @Default: 1
207 *
208 * This ini is used to Configuration added to enable/disable CTS2SELF in
209 * Adaptive RX drain feature.
210 *
211 * Related: None
212 *
213 * Supported Feature: STA
214 *
215 * Usage: Internal/External
216 *
217 * </ini>
218 */
219
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800220#define CFG_ENABLE_ADAPT_RX_DRAIN_NAME "gEnableAdaptRxDrain"
221#define CFG_ENABLE_ADAPT_RX_DRAIN_MIN WNI_CFG_ENABLE_ADAPT_RX_DRAIN_STAMIN
222#define CFG_ENABLE_ADAPT_RX_DRAIN_MAX WNI_CFG_ENABLE_ADAPT_RX_DRAIN_STAMAX
223#define CFG_ENABLE_ADAPT_RX_DRAIN_DEFAULT WNI_CFG_ENABLE_ADAPT_RX_DRAIN_STADEF
224
225#define CFG_REG_CHANGE_DEF_COUNTRY_NAME "gRegulatoryChangeCountry"
226#define CFG_REG_CHANGE_DEF_COUNTRY_DEFAULT (0)
227#define CFG_REG_CHANGE_DEF_COUNTRY_MIN (0)
228#define CFG_REG_CHANGE_DEF_COUNTRY_MAX (1)
229
230#define CFG_ADVERTISE_CONCURRENT_OPERATION_NAME "gAdvertiseConcurrentOperation"
231#define CFG_ADVERTISE_CONCURRENT_OPERATION_DEFAULT (1)
232#define CFG_ADVERTISE_CONCURRENT_OPERATION_MIN (0)
233#define CFG_ADVERTISE_CONCURRENT_OPERATION_MAX (1)
234
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -0700235enum hdd_dot11_mode {
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800236 eHDD_DOT11_MODE_AUTO = 0, /* covers all things we support */
237 eHDD_DOT11_MODE_abg, /* 11a/b/g only, no HT, no proprietary */
238 eHDD_DOT11_MODE_11b,
239 eHDD_DOT11_MODE_11g,
240 eHDD_DOT11_MODE_11n,
241 eHDD_DOT11_MODE_11g_ONLY,
242 eHDD_DOT11_MODE_11n_ONLY,
243 eHDD_DOT11_MODE_11b_ONLY,
244 eHDD_DOT11_MODE_11ac_ONLY,
245 eHDD_DOT11_MODE_11ac,
246 eHDD_DOT11_MODE_11a,
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -0800247 eHDD_DOT11_MODE_11ax_ONLY,
248 eHDD_DOT11_MODE_11ax,
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -0700249};
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800250
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530251/*
252 * <ini>
253 * gChannelBondingMode24GHz - Configures Channel Bonding in 24 GHz
254 * @Min: 0
255 * @Max: 10
256 * @Default: 0
257 *
258 * This ini is used to set default channel bonding mode 24GHZ
259 *
260 * Related: None
261 *
262 * Supported Feature: STA
263 *
264 * Usage: Internal/External
265 *
266 * </ini>
267 */
268
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800269#define CFG_CHANNEL_BONDING_MODE_24GHZ_NAME "gChannelBondingMode24GHz"
270#define CFG_CHANNEL_BONDING_MODE_MIN WNI_CFG_CHANNEL_BONDING_MODE_STAMIN
271#define CFG_CHANNEL_BONDING_MODE_MAX WNI_CFG_CHANNEL_BONDING_MODE_STAMAX
272#define CFG_CHANNEL_BONDING_MODE_DEFAULT WNI_CFG_CHANNEL_BONDING_MODE_STADEF
273
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530274/*
275 * <ini>
276 * gChannelBondingMode5GHz - Configures Channel Bonding in 5 GHz
277 * @Min: 0
278 * @Max: 10
279 * @Default: 0
280 *
281 * This ini is used to set default channel bonding mode 5GHZ
282 *
283 * Related: None
284 *
285 * Supported Feature: STA
286 *
287 * Usage: Internal/External
288 *
289 * </ini>
290 */
291
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800292#define CFG_CHANNEL_BONDING_MODE_5GHZ_NAME "gChannelBondingMode5GHz"
293#define CFG_CHANNEL_BONDING_MODE_MIN WNI_CFG_CHANNEL_BONDING_MODE_STAMIN
294#define CFG_CHANNEL_BONDING_MODE_MAX WNI_CFG_CHANNEL_BONDING_MODE_STAMAX
295#define CFG_CHANNEL_BONDING_MODE_DEFAULT WNI_CFG_CHANNEL_BONDING_MODE_STADEF
296
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530297/*
298 * <ini>
299 * gFixedRate - It will provide fixed rate
300 * @Min: 0
301 * @Max: 44
302 * @Default: 0
303 *
304 * This ini is used to set default fixed rate
305 *
306 * Related: None
307 *
308 * Supported Feature: STA
309 *
310 * Usage: Internal/External
311 *
312 * </ini>
313 */
314
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800315#define CFG_FIXED_RATE_NAME "gFixedRate"
316#define CFG_FIXED_RATE_MIN WNI_CFG_FIXED_RATE_STAMIN
317#define CFG_FIXED_RATE_MAX WNI_CFG_FIXED_RATE_STAMAX
318#define CFG_FIXED_RATE_DEFAULT WNI_CFG_FIXED_RATE_STADEF
319
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530320/*
321 * <ini>
322 * gShortGI20Mhz - Short Guard Interval for HT20
323 * @Min: 0
324 * @Max: 1
325 * @Default: 1
326 *
327 * This ini is used to set default short interval for HT20
328 *
329 * Related: None
330 *
331 * Supported Feature: STA
332 *
333 * Usage: Internal/External
334 *
335 * </ini>
336 */
337
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800338#define CFG_SHORT_GI_20MHZ_NAME "gShortGI20Mhz"
339#define CFG_SHORT_GI_20MHZ_MIN WNI_CFG_SHORT_GI_20MHZ_STAMIN
340#define CFG_SHORT_GI_20MHZ_MAX WNI_CFG_SHORT_GI_20MHZ_STAMAX
341#define CFG_SHORT_GI_20MHZ_DEFAULT WNI_CFG_SHORT_GI_20MHZ_STADEF
342
yeshwanth sriram guntukabdfe4352017-02-16 14:44:31 +0530343/*
344 * <ini>
345 * gScanResultAgeCount - Set scan result age count
346 * @Min: 1
347 * @Max: 100
348 * @Default: 1
349 *
350 * This ini parameter is the number of times a scan
351 * doesn't find it before it is removed from results.
352 *
353 * Related: None
354 *
355 * Supported Feature: Scan
356 *
357 * Usage: External
358 *
359 * </ini>
360 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800361#define CFG_SCAN_RESULT_AGE_COUNT_NAME "gScanResultAgeCount"
362#define CFG_SCAN_RESULT_AGE_COUNT_MIN (1)
363#define CFG_SCAN_RESULT_AGE_COUNT_MAX (100)
Jeff Johnsoncb331d92016-09-22 12:43:49 -0700364#define CFG_SCAN_RESULT_AGE_COUNT_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800365
yeshwanth sriram guntukabdfe4352017-02-16 14:44:31 +0530366/*
367 * <ini>
yeshwanth sriram guntukabdfe4352017-02-16 14:44:31 +0530368 * gNeighborScanTimerPeriod - Set neighbor scan timer period
369 * @Min: 3
370 * @Max: 300
371 * @Default: 200
372 *
373 * This ini is used to set the timer period in secs after
374 * which neighbor scan is trigerred.
375 *
376 * Related: None
377 *
378 * Supported Feature: LFR Scan
379 *
380 * Usage: External
381 *
382 * </ini>
383 */
384#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_NAME "gNeighborScanTimerPeriod"
385#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_MIN (3)
386#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_MAX (300)
387#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_DEFAULT (200)
388
389/*
390 * <ini>
391 * gOpportunisticThresholdDiff - Set oppurtunistic threshold diff
392 * @Min: 0
393 * @Max: 127
394 * @Default: 0
395 *
396 * This ini is used to set opportunistic threshold diff.
397 * This parameter is the RSSI diff above neighbor lookup
398 * threshold, when opportunistic scan should be triggered.
399 * MAX value is choosen so that this type of scan can be
400 * always enabled by user.
401 * MIN value will cause opportunistic scan to be triggered
402 * in neighbor lookup RSSI range.
403 *
404 * Related: None
405 *
406 * Supported Feature: LFR Scan
407 *
408 * Usage: External
409 *
410 * </ini>
411 */
412#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_NAME "gOpportunisticThresholdDiff"
413#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_MIN (0)
414#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_MAX (127)
415#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_DEFAULT (0)
416
417/*
418 * <ini>
419 * gNeighborScanChannelList - Set channels to be scanned
420 * by firmware for LFR scan
421 * @Default: ""
422 *
423 * This ini is used to set the channels to be scanned
424 * by firmware for LFR scan.
425 *
426 * Related: None
427 *
428 * Supported Feature: LFR Scan
429 *
430 * Usage: External
431 *
432 * </ini>
433 */
434#define CFG_NEIGHBOR_SCAN_CHAN_LIST_NAME "gNeighborScanChannelList"
435#define CFG_NEIGHBOR_SCAN_CHAN_LIST_DEFAULT ""
436
437/*
438 * <ini>
439 * gNeighborScanChannelMinTime - Set neighbor scan channel min time
440 * @Min: 10
441 * @Max: 40
442 * @Default: 20
443 *
444 * This ini is used to set the minimum time in secs spent on each
445 * channel in LFR scan inside firmware.
446 *
447 * Related: None
448 *
449 * Supported Feature: LFR Scan
450 *
451 * Usage: External
452 *
453 * </ini>
454 */
455#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_NAME "gNeighborScanChannelMinTime"
456#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_MIN (10)
457#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_MAX (40)
458#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_DEFAULT (20)
459
460/*
461 * <ini>
462 * gNeighborScanChannelMaxTime - Set neighbor scan channel max time
463 * @Min: 3
464 * @Max: 300
465 * @Default: 30
466 *
467 * This ini is used to set the maximum time in secs spent on each
468 * channel in LFR scan inside firmware.
469 *
470 * Related: None
471 *
472 * Supported Feature: LFR Scan
473 *
474 * Usage: External
475 *
476 * </ini>
477 */
478#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_NAME "gNeighborScanChannelMaxTime"
479#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_MIN (3)
480#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_MAX (300)
481#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_DEFAULT (30)
482
483/*
484 * <ini>
485 * gNeighborScanRefreshPeriod - Set neighbor scan refresh period
486 * @Min: 1000
487 * @Max: 60000
488 * @Default: 20000
489 *
490 * This ini is used by firmware to set scan refresh period
491 * in msecs for lfr scan.
492 *
493 * Related: None
494 *
495 * Supported Feature: LFR Scan
496 *
497 * Usage: External
498 *
499 * </ini>
500 */
501#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_NAME "gNeighborScanRefreshPeriod"
502#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_MIN (1000)
503#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_MAX (60000)
504#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_DEFAULT (20000)
505
506/*
507 * <ini>
508 * gEmptyScanRefreshPeriod - Set empty scan refresh period
509 * @Min: 0
510 * @Max: 60000
511 * @Default: 0
512 *
513 * This ini is used by firmware to set scan period in msecs
514 * following empty scan results.
515 *
516 * Related: None
517 *
518 * Supported Feature: LFR Scan
519 *
520 * Usage: External
521 *
522 * </ini>
523 */
524#define CFG_EMPTY_SCAN_REFRESH_PERIOD_NAME "gEmptyScanRefreshPeriod"
525#define CFG_EMPTY_SCAN_REFRESH_PERIOD_MIN (0)
526#define CFG_EMPTY_SCAN_REFRESH_PERIOD_MAX (60000)
527#define CFG_EMPTY_SCAN_REFRESH_PERIOD_DEFAULT (0)
528
529/*
530 * <ini>
531 * gEnableDFSChnlScan - Enable DFS channel scan
532 * @Min: 0
533 * @Max: 1
534 * @Default: 1
535 *
536 * This ini is used to enable or disable DFS channel
537 * scan
538 *
539 * Related: None
540 *
541 * Supported Feature: Scan
542 *
543 * Usage: External
544 *
545 * </ini>
546 */
547#define CFG_ENABLE_DFS_CHNL_SCAN_NAME "gEnableDFSChnlScan"
548#define CFG_ENABLE_DFS_CHNL_SCAN_MIN (0)
549#define CFG_ENABLE_DFS_CHNL_SCAN_MAX (1)
550#define CFG_ENABLE_DFS_CHNL_SCAN_DEFAULT (1)
551
552/*
553 * <ini>
554 * gEnableDFSPnoChnlScan - Enable DFS PNO channel scan
555 * @Min: 0
556 * @Max: 1
557 * @Default: 1
558 *
559 * This ini is used to enable or disable DFS channel
560 * for PNO scan
561 *
562 * Related: None
563 *
564 * Supported Feature: Scan
565 *
566 * Usage: External
567 *
568 * </ini>
569 */
570#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_NAME "gEnableDFSPnoChnlScan"
571#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_MIN (0)
572#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_MAX (1)
573#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_DEFAULT (1)
574
575/*
576 * <ini>
577 * gEnableFirstScan2GOnly - Enable first scan 2G only
578 * @Min: 0
579 * @Max: 1
580 * @Default: 0
581 *
582 * This ini is used to scan 2G channels only in first scan.
583 *
584 * Related: None
585 *
586 * Supported Feature: Scan
587 *
588 * Usage: External
589 *
590 * </ini>
591 */
592#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_NAME "gEnableFirstScan2GOnly"
593#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_MIN (0)
594#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_MAX (1)
595#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_DEFAULT (0)
596
597/*
598 * <ini>
599 * gScanAgingTime - Set scan aging time
600 * @Min: 0
601 * @Max: 200
602 * @Default: 30
603 *
604 * This ini is used to set scan aging timeout value
605 * in secs. For example after 30 secs the bss results
606 * greater than 30secs age will be flushed.
607 *
608 * Related: None
609 *
610 * Supported Feature: Scan
611 *
612 * Usage: External
613 *
614 * </ini>
615 */
616#define CFG_SCAN_AGING_PARAM_NAME "gScanAgingTime"
617#define CFG_SCAN_AGING_PARAM_MIN (0)
618#define CFG_SCAN_AGING_PARAM_MAX (200)
619#define CFG_SCAN_AGING_PARAM_DEFAULT (30)
620
621#ifdef FEATURE_WLAN_SCAN_PNO
622/*
623 * <ini>
624 * gPNOScanSupport - Enable or Disable PNO scan
625 * @Min: 1
626 * @Max: 0
627 * @Default: 1
628 *
629 * This ini is used to Enable or Disable PNO scan
630 *
631 * Related: None
632 *
633 * Supported Feature: Scan
634 *
635 * Usage: External
636 *
637 * </ini>
638 */
639#define CFG_PNO_SCAN_SUPPORT "gPNOScanSupport"
640#define CFG_PNO_SCAN_SUPPORT_ENABLE (1)
641#define CFG_PNO_SCAN_SUPPORT_DISABLE (0)
642#define CFG_PNO_SCAN_SUPPORT_DEFAULT (1)
643
644/*
645 * <ini>
646 * gPNOScanTimerRepeatValue - Set PNO scan timer repeat value
647 * @Min: 30
648 * @Max: 0
649 * @Default: 0xffffffff
650 *
651 * This ini is used by firmware to set fast scan max cycles
652 * equal to gPNOScanTimerRepeatValue. Taking power consumption
653 * into account firmware after gPNOScanTimerRepeatValue times
654 * fast_scan_period switches to slow_scan_period.
655 *
656 * Related: None
657 *
658 * Supported Feature: Scan
659 *
660 * Usage: External
661 *
662 * </ini>
663 */
664#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE "gPNOScanTimerRepeatValue"
665#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE_DEFAULT (30)
666#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE_MIN (0)
667#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE_MAX (0xffffffff)
668
669/*
670 * <ini>
671 * gPNOSlowScanMultiplier - Set PNO slow scan multiplier
672 * @Min: 6
673 * @Max: 0
674 * @Default: 30
675 *
676 * This ini is used by firmware to set slow scan period
677 * as gPNOSlowScanMultiplier times fast_scan_period.
678 *
679 * Related: None
680 *
681 * Supported Feature: Scan
682 *
683 * Usage: External
684 *
685 * </ini>
686 */
687#define CFG_PNO_SLOW_SCAN_MULTIPLIER "gPNOSlowScanMultiplier"
688#define CFG_PNO_SLOW_SCAN_MULTIPLIER_DEFAULT (6)
689#define CFG_PNO_SLOW_SCAN_MULTIPLIER_MIN (0)
690#define CFG_PNO_SLOW_SCAN_MULTIPLIER_MAX (30)
691#endif
692
693/*
694 * <ini>
695 * max_scan_count - Set maximum number of scans
696 * @Min: 1
697 * @Max: 8
698 * @Default: 4
699 *
700 * This ini is used to set the maximum number of
701 * scans that host can queue at firmware.
702 * Rome firmware support 8 scan queue size and 4
703 * are reserved for internal scan requests like
704 * roaming. So host can send 4 scan requests.
705 * In iHelium, there is no constraint in number of
706 * scan queue size at firmware but the current use
707 * cases needs support of maximum of 4 scan request
708 * from host.
709 *
710 * Related: None
711 *
712 * Supported Feature: Scan
713 *
714 * Usage: External
715 *
716 * </ini>
717 */
718#define CFG_MAX_SCAN_COUNT_NAME "max_scan_count"
719#define CFG_MAX_SCAN_COUNT_MIN (1)
720#define CFG_MAX_SCAN_COUNT_MAX (8)
721#define CFG_MAX_SCAN_COUNT_DEFAULT (4)
722
723/*
724 * <ini>
725 * gPassiveMaxChannelTime - Set max channel time for passive scan
726 * @Min: 0
727 * @Max: 10000
728 * @Default: 110
729 *
730 * This ini is used to set maximum channel time in secs spent in
731 * passive scan
732 *
733 * Related: None
734 *
735 * Supported Feature: Scan
736 *
737 * Usage: External
738 *
739 * </ini>
740 */
741#define CFG_PASSIVE_MAX_CHANNEL_TIME_NAME "gPassiveMaxChannelTime"
742#define CFG_PASSIVE_MAX_CHANNEL_TIME_MIN (0)
743#define CFG_PASSIVE_MAX_CHANNEL_TIME_MAX (10000)
744#define CFG_PASSIVE_MAX_CHANNEL_TIME_DEFAULT (110)
745
746/*
747 * <ini>
748 * gPassiveMinChannelTime - Set min channel time for passive scan
749 * @Min: 0
750 * @Max: 10000
751 * @Default: 60
752 *
753 * This ini is used to set minimum channel time in secs spent in
754 * passive scan
755 *
756 * Related: None
757 *
758 * Supported Feature: Scan
759 *
760 * Usage: External
761 *
762 * </ini>
763 */
764#define CFG_PASSIVE_MIN_CHANNEL_TIME_NAME "gPassiveMinChannelTime"
765#define CFG_PASSIVE_MIN_CHANNEL_TIME_MIN (0)
766#define CFG_PASSIVE_MIN_CHANNEL_TIME_MAX (10000)
767#define CFG_PASSIVE_MIN_CHANNEL_TIME_DEFAULT (60)
768
769/*
770 * <ini>
771 * gActiveMaxChannelTime - Set max channel time for active scan
772 * @Min: 0
773 * @Max: 10000
774 * @Default: 40
775 *
776 * This ini is used to set maximum channel time in secs spent in
777 * active scan
778 *
779 * Related: None
780 *
781 * Supported Feature: Scan
782 *
783 * Usage: External
784 *
785 * </ini>
786 */
787#define CFG_ACTIVE_MAX_CHANNEL_TIME_NAME "gActiveMaxChannelTime"
788#define CFG_ACTIVE_MAX_CHANNEL_TIME_MIN (0)
789#define CFG_ACTIVE_MAX_CHANNEL_TIME_MAX (10000)
790#define CFG_ACTIVE_MAX_CHANNEL_TIME_DEFAULT (40)
791
792/*
793 * <ini>
794 * gActiveMinChannelTime - Set min channel time for active scan
795 * @Min: 0
796 * @Max: 10000
797 * @Default: 20
798 *
799 * This ini is used to set minimum channel time in secs spent in
800 * active scan
801 *
802 * Related: None
803 *
804 * Supported Feature: Scan
805 *
806 * Usage: External
807 *
808 * </ini>
809 */
810#define CFG_ACTIVE_MIN_CHANNEL_TIME_NAME "gActiveMinChannelTime"
811#define CFG_ACTIVE_MIN_CHANNEL_TIME_MIN (0)
812#define CFG_ACTIVE_MIN_CHANNEL_TIME_MAX (10000)
813#define CFG_ACTIVE_MIN_CHANNEL_TIME_DEFAULT (20)
814
815#ifdef FEATURE_WLAN_EXTSCAN
816/*
817 * <ini>
818 * gExtScanEnable - Enable external scan
819 * @Min: 0
820 * @Max: 1
821 * @Default: 1
822 *
823 * This ini is used to control enabling of external scan
824 * feature.
825 *
826 * Related: None
827 *
828 * Supported Feature: Scan
829 *
830 * Usage: External
831 *
832 * </ini>
833 */
834#define CFG_EXTSCAN_ALLOWED_NAME "gExtScanEnable"
835#define CFG_EXTSCAN_ALLOWED_MIN (0)
836#define CFG_EXTSCAN_ALLOWED_MAX (1)
837#define CFG_EXTSCAN_ALLOWED_DEF (1)
838
839/*
840 * <ini>
841 * gExtScanPassiveMaxChannelTime - Set max channel time for external
842 * passive scan
843 * @Min: 0
844 * @Max: 500
845 * @Default: 110
846 *
847 * This ini is used to set maximum channel time in secs spent in
848 * external passive scan
849 *
850 * Related: None
851 *
852 * Supported Feature: Scan
853 *
854 * Usage: External
855 *
856 * </ini>
857 */
858#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_NAME "gExtScanPassiveMaxChannelTime"
859#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_MIN (0)
860#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_MAX (500)
861#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_DEFAULT (110)
862
863/*
864 * <ini>
865 * gExtScanPassiveMinChannelTime - Set min channel time for external
866 * passive scan
867 * @Min: 0
868 * @Max: 500
869 * @Default: 60
870 *
871 * This ini is used to set minimum channel time in secs spent in
872 * external passive scan
873 *
874 * Related: None
875 *
876 * Supported Feature: Scan
877 *
878 * Usage: External
879 *
880 * </ini>
881 */
882#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_NAME "gExtScanPassiveMinChannelTime"
883#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_MIN (0)
884#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_MAX (500)
885#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_DEFAULT (60)
886
887/*
888 * <ini>
889 * gExtScanActiveMaxChannelTime - Set min channel time for external
890 * active scan
891 * @Min: 0
892 * @Max: 110
893 * @Default: 40
894 *
895 * This ini is used to set maximum channel time in secs spent in
896 * external active scan
897 *
898 * Related: None
899 *
900 * Supported Feature: Scan
901 *
902 * Usage: External
903 *
904 * </ini>
905 */
906#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_NAME "gExtScanActiveMaxChannelTime"
907#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_MIN (0)
908#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_MAX (110)
909#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_DEFAULT (40)
910
911/*
912 * <ini>
913 * gExtScanActiveMinChannelTime - Set min channel time for external
914 * active scan
915 * @Min: 0
916 * @Max: 110
917 * @Default: 20
918 *
919 * This ini is used to set minimum channel time in secs spent in
920 * external active scan
921 *
922 * Related: None
923 *
924 * Supported Feature: Scan
925 *
926 * Usage: External
927 *
928 * </ini>
929 */
930#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_NAME "gExtScanActiveMinChannelTime"
931#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_MIN (0)
932#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_MAX (110)
933#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_DEFAULT (20)
934#endif
935
936/*
937 * <ini>
938 * gChPredictionFullScanMs - Set periodic timer for channel
939 * prediction
940 * @Min: 3000
941 * @Max: 0x7fffffff
942 * @Default: 60000
943 *
944 * This ini is used to set the periodic timer upon which
945 * a full scan needs to be triggered when PNO channel
946 * prediction feature is enabled. This parameter is intended
947 * to tweak the internal algortihm for experiments.
948 *
949 * Related: None
950 *
951 * Supported Feature: Scan
952 *
953 * Usage: Internal
954 *
955 * </ini>
956 */
957#define CFG_CHANNEL_PREDICTION_FULL_SCAN_MS_NAME "gChPredictionFullScanMs"
958#define CFG_CHANNEL_PREDICTION_FULL_SCAN_MS_MIN (30000)
959#define CFG_CHANNEL_PREDICTION_FULL_SCAN_MS_MAX (0x7fffffff)
960#define CFG_CHANNEL_PREDICTION_FULL_SCAN_MS_DEFAULT (60000)
961
962/*
963 * <ini>
964 * gEnableEarlyStopScan - Set early stop scan
965 * @Min: 0
966 * @Max: 1
967 * @Default: 1
968 *
969 * This ini is used to set early stop scan. Early stop
970 * scan is a feature for roaming to stop the scans at
971 * an early stage as soon as we find a better AP to roam.
972 * This would make the roaming happen quickly.
973 *
974 * Related: None
975 *
976 * Supported Feature: LFR Scan
977 *
978 * Usage: External
979 *
980 * </ini>
981 */
982#define CFG_EARLY_STOP_SCAN_ENABLE "gEnableEarlyStopScan"
983#define CFG_EARLY_STOP_SCAN_ENABLE_MIN (0)
984#define CFG_EARLY_STOP_SCAN_ENABLE_MAX (1)
985#define CFG_EARLY_STOP_SCAN_ENABLE_DEFAULT (1)
986
987/*
988 * <ini>
989 * gEarlyStopScanMinThreshold - Set early stop scan min
990 * threshold
991 * @Min: -80
992 * @Max: -70
993 * @Default: -73
994 *
995 * This ini is used to set the early stop scan minimum
996 * threshold. Early stop scan minimum threshold is the
997 * minimum threshold to be considered for stopping the
998 * scan. The algorithm starts with a scan on the greedy
999 * channel list with the maximum threshold and steps down
1000 * the threshold by 20% for each further channel. It can
1001 * step down on each channel but cannot go lower than the
1002 * minimum threshold.
1003 *
1004 * Related: None
1005 *
1006 * Supported Feature: Scan
1007 *
1008 * Usage: External
1009 *
1010 * </ini>
1011 */
1012#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD "gEarlyStopScanMinThreshold"
1013#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_MIN (-80)
1014#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_MAX (-70)
1015#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_DEFAULT (-73)
1016
1017/*
1018 * <ini>
1019 * gEarlyStopScanMaxThreshold - Set early stop scan max
1020 * threshold
1021 * @Min: -60
1022 * @Max: -40
1023 * @Default: -43
1024 *
1025 * This ini is used to set the the early stop scan maximum
1026 * threshold at which the candidate AP should be to be
1027 * qualified as a potential roam candidate and good enough
1028 * to stop the roaming scan.
1029 *
1030 * Related: None
1031 *
1032 * Supported Feature: Scan
1033 *
1034 * Usage: External
1035 *
1036 * </ini>
1037 */
1038#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD "gEarlyStopScanMaxThreshold"
1039#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_MIN (-60)
1040#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_MAX (-40)
1041#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_DEFAULT (-43)
1042
1043/*
1044 * <ini>
1045 * gFirstScanBucketThreshold - Set first scan bucket
1046 * threshold
1047 * @Min: -50
1048 * @Max: -30
1049 * @Default: -30
1050 *
1051 * This ini will configure the first scan bucket
1052 * threshold to the mentioned value and all the AP's which
1053 * have RSSI under this threshold will fall under this
1054 * bucket. This configuration item used to tweak and
1055 * test the input for internal algorithm.
1056 *
1057 * Related: None
1058 *
1059 * Supported Feature: Scan
1060 *
1061 * Usage: Internal
1062 *
1063 * </ini>
1064 */
1065#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_NAME "gFirstScanBucketThreshold"
1066#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_MIN (-50)
1067#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_MAX (-30)
1068#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_DEFAULT (-30)
1069
1070/*
1071 * <ini>
1072 * obss_active_dwelltime - Set obss active dwelltime
1073 * @Min: 5
1074 * @Max: 1000
1075 * @Default: 10
1076 *
1077 * This ini is used to set dwell time in secs for active
1078 * obss scan
1079 *
1080 * Related: None
1081 *
1082 * Supported Feature: Scan
1083 *
1084 * Usage: External
1085 *
1086 * </ini>
1087 */
1088#define CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_NAME "obss_active_dwelltime"
1089#define CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_MIN (5)
1090#define CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_MAX (1000)
1091#define CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_DEFAULT (10)
1092
1093/*
1094 * <ini>
1095 * obss_passive_dwelltime - Set obss passive dwelltime
1096 * @Min: 10
1097 * @Max: 1000
1098 * @Default: 20
1099 *
1100 * This ini is used to set dwell time in secs for passive
1101 * obss scan
1102 *
1103 * Related: None
1104 *
1105 * Supported Feature: Scan
1106 *
1107 * Usage: External
1108 *
1109 * </ini>
1110 */
1111#define CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_NAME "obss_passive_dwelltime"
1112#define CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_MIN (10)
1113#define CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_MAX (1000)
1114#define CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_DEFAULT (20)
1115
1116/*
1117 * <ini>
1118 * obss_width_trigger_interval - Set obss trigger interval
1119 * @Min: 10
1120 * @Max: 900
1121 * @Default: 200
1122 *
1123 * This ini is used during an OBSS scan operation,
1124 * where each channel in the set is scanned at least
1125 * once per configured trigger interval time.
1126 *
1127 * Related: None
1128 *
1129 * Supported Feature: Scan
1130 *
1131 * Usage: External
1132 *
1133 * </ini>
1134 */
1135#define CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_NAME "obss_width_trigger_interval"
1136#define CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_MIN (10)
1137#define CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_MAX (900)
1138#define CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_DEFAULT (200)
1139
1140/*
1141 * <ini>
1142 * gbug_report_for_scan_results - Enable bug report
1143 * @Min: 0
1144 * @Max: 1
1145 * @Default: 0
1146 *
1147 * This ini is used to create bug report in
1148 * case of nil scan results.
1149 *
1150 * Related: None
1151 *
1152 * Supported Feature: Scan
1153 *
1154 * Usage: External
1155 *
1156 * </ini>
1157 */
1158#define CFG_CREATE_BUG_REPORT_FOR_SCAN "gbug_report_for_scan_results"
1159#define CFG_CREATE_BUG_REPORT_FOR_SCAN_DISABLE (0)
1160#define CFG_CREATE_BUG_REPORT_FOR_SCAN_ENABLE (1)
1161#define CFG_CREATE_BUG_REPORT_FOR_SCAN_DEFAULT (0)
1162
1163/*
1164 * <ini>
1165 * hostscan_adaptive_dwell_mode - Enable adaptive dwell mode
1166 * during host scan
1167 * @Min: 0
1168 * @Max: 4
1169 * @Default: 0
1170 *
1171 * This ini will set the algo used in dwell time optimization
1172 * during host scan. see enum wmi_dwelltime_adaptive_mode.
1173 * Acceptable values for this:
1174 * 0: Default (Use firmware default mode)
1175 * 1: Conservative optimization
1176 * 2: Moderate optimization
1177 * 3: Aggressive optimization
1178 * 4: Static
1179 *
1180 * Related: None
1181 *
1182 * Supported Feature: Scan
1183 *
1184 * Usage: External
1185 *
1186 * </ini>
1187 */
1188#define CFG_ADAPTIVE_SCAN_DWELL_MODE_NAME "hostscan_adaptive_dwell_mode"
1189#define CFG_ADAPTIVE_SCAN_DWELL_MODE_MIN (0)
1190#define CFG_ADAPTIVE_SCAN_DWELL_MODE_MAX (4)
1191#define CFG_ADAPTIVE_SCAN_DWELL_MODE_DEFAULT (0)
1192
1193/*
1194 * <ini>
1195 * extscan_adaptive_dwell_mode - Enable adaptive dwell mode
1196 * during ext scan
1197 * @Min: 0
1198 * @Max: 4
1199 * @Default: 0
1200 *
1201 * This ini will set the algo used in dwell time optimization
1202 * during ext scan. see enum wmi_dwelltime_adaptive_mode.
1203 * Acceptable values for this:
1204 * 0: Default (Use firmware default mode)
1205 * 1: Conservative optimization
1206 * 2: Moderate optimization
1207 * 3: Aggressive optimization
1208 * 4: Static
1209 *
1210 * Related: None
1211 *
1212 * Supported Feature: Scan
1213 *
1214 * Usage: External
1215 *
1216 * </ini>
1217 */
1218#define CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_NAME "extscan_adaptive_dwell_mode"
1219#define CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_MIN (0)
1220#define CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_MAX (4)
1221#define CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_DEFAULT (0)
1222
1223/*
1224 * <ini>
1225 * pnoscan_adaptive_dwell_mode - Enable adaptive dwell mode
1226 * during pno scan
1227 * @Min: 0
1228 * @Max: 4
1229 * @Default: 0
1230 *
1231 * This ini will set the algo used in dwell time optimization
1232 * during pno scan. see enum wmi_dwelltime_adaptive_mode.
1233 * Acceptable values for this:
1234 * 0: Default (Use firmware default mode)
1235 * 1: Conservative optimization
1236 * 2: Moderate optimization
1237 * 3: Aggressive optimization
1238 * 4: Static
1239 *
1240 * Related: None
1241 *
1242 * Supported Feature: Scan
1243 *
1244 * Usage: External
1245 *
1246 * </ini>
1247 */
1248#define CFG_ADAPTIVE_PNOSCAN_DWELL_MODE_NAME "pnoscan_adaptive_dwell_mode"
1249#define CFG_ADAPTIVE_PNOSCAN_DWELL_MODE_MIN (0)
1250#define CFG_ADAPTIVE_PNOSCAN_DWELL_MODE_MAX (4)
1251#define CFG_ADAPTIVE_PNOSCAN_DWELL_MODE_DEFAULT (0)
1252
1253/*
1254 * <ini>
1255 * adaptive_dwell_mode_enabled - Enable adaptive dwell mode
1256 * @Min: 0
1257 * @Max: 1
1258 * @Default: 1
1259 *
1260 * This parameter will globally disable/enable the adaptive dwell config.
1261 * Following parameters will set different values of attributes for dwell
1262 * time optimization thus reducing total scan time.
1263 * Acceptable values for this:
1264 * 0: Config is disabled
1265 * 1: Config is enabled
1266 *
1267 * Related: None
1268 *
1269 * Supported Feature: Scan
1270 *
1271 * Usage: External
1272 *
1273 * </ini>
1274 */
1275#define CFG_ADAPTIVE_DWELL_MODE_ENABLED_NAME "adaptive_dwell_mode_enabled"
1276#define CFG_ADAPTIVE_DWELL_MODE_ENABLED_MIN (0)
1277#define CFG_ADAPTIVE_DWELL_MODE_ENABLED_MAX (1)
1278#define CFG_ADAPTIVE_DWELL_MODE_ENABLED_DEFAULT (1)
1279
1280/*
1281 * <ini>
1282 * global_adapt_dwelltime_mode - Set default adaptive mode
1283 * @Min: 0
1284 * @Max: 4
1285 * @Default: 1
1286 *
1287 * This parameter will set default adaptive mode, will be used if any of the
1288 * scan dwell mode is set to default.
1289 * For uses : see enum wmi_dwelltime_adaptive_mode
1290 *
1291 * Related: None
1292 *
1293 * Supported Feature: Scan
1294 *
1295 * Usage: External
1296 *
1297 * </ini>
1298 */
1299#define CFG_GLOBAL_ADAPTIVE_DWELL_MODE_NAME "global_adapt_dwelltime_mode"
1300#define CFG_GLOBAL_ADAPTIVE_DWELL_MODE_MIN (0)
1301#define CFG_GLOBAL_ADAPTIVE_DWELL_MODE_MAX (4)
1302#define CFG_GLOBAL_ADAPTIVE_DWELL_MODE_DEFAULT (1)
1303
Sen, Devendra9ca8c432017-02-23 15:10:26 +05301304/*
1305 * <ini>
1306 * gRssiCatGap - Set Rssi CatGap
1307 * @Min: 5
1308 * @Max: 100
1309 * @Default: 5
1310 *
1311 * This ini is used to set default RssiCatGap
1312 *
1313 * Related: None
1314 *
1315 * Supported Feature: STA
1316 *
1317 * Usage: Internal/External
1318 *
1319 * </ini>
1320 */
1321
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001322#define CFG_RSSI_CATEGORY_GAP_NAME "gRssiCatGap"
1323#define CFG_RSSI_CATEGORY_GAP_MIN (5)
1324#define CFG_RSSI_CATEGORY_GAP_MAX (100)
1325#define CFG_RSSI_CATEGORY_GAP_DEFAULT (5)
1326
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001327#define CFG_ROAM_PREFER_5GHZ "gRoamPrefer5GHz"
1328#define CFG_ROAM_PREFER_5GHZ_MIN (0)
1329#define CFG_ROAM_PREFER_5GHZ_MAX (1)
1330#define CFG_ROAM_PREFER_5GHZ_DEFAULT (1)
1331
1332/*
Arun Khandavallifae92942016-08-01 13:31:08 +05301333 * Timer waiting for interface up from the upper layer. If
1334 * this timer expires all the cds modules shall be closed.
1335 * Time Units: ms
1336 */
1337#define CFG_INTERFACE_CHANGE_WAIT_NAME "gInterfaceChangeWait"
1338#define CFG_INTERFACE_CHANGE_WAIT_MIN (10)
Arunk Khandavallib0b940b2017-01-23 14:08:02 +05301339#define CFG_INTERFACE_CHANGE_WAIT_MAX (500000)
Ashish Kumar Dhanotiya147860e2017-03-15 14:28:49 +05301340#define CFG_INTERFACE_CHANGE_WAIT_DEFAULT (15000)
Arun Khandavallifae92942016-08-01 13:31:08 +05301341
1342/*
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08001343 * To enable, set gRoamIntraBand=1 (Roaming within band)
1344 * To disable, set gRoamIntraBand=0 (Roaming across band)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001345 */
1346#define CFG_ROAM_INTRA_BAND "gRoamIntraBand"
1347#define CFG_ROAM_INTRA_BAND_MIN (0)
1348#define CFG_ROAM_INTRA_BAND_MAX (1)
1349#define CFG_ROAM_INTRA_BAND_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001350
Sen, Devendra9ca8c432017-02-23 15:10:26 +05301351/*
1352 * <ini>
1353 * gShortPreamble - Set Short Preamble
1354 * @Min: 0
1355 * @Max: 1
1356 * @Default: 1
1357 *
1358 * This ini is used to set default short Preamble
1359 *
1360 * Related: None
1361 *
1362 * Supported Feature: STA
1363 *
1364 * Usage: Internal/External
1365 *
1366 * </ini>
1367 */
1368
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001369#define CFG_SHORT_PREAMBLE_NAME "gShortPreamble"
1370#define CFG_SHORT_PREAMBLE_MIN WNI_CFG_SHORT_PREAMBLE_STAMIN
1371#define CFG_SHORT_PREAMBLE_MAX WNI_CFG_SHORT_PREAMBLE_STAMAX
1372#define CFG_SHORT_PREAMBLE_DEFAULT WNI_CFG_SHORT_PREAMBLE_STADEF
1373
Abhishek Singh49b654e2016-12-01 16:11:17 +05301374/*
1375 * <ini>
1376 * gIbssBssid - Default IBSS BSSID if BSSID is not provided by supplicant
1377 * @Min: "000000000000"
1378 * @Max: "ffffffffffff"
1379 * @Default: "000AF5040506"
1380 *
1381 * This ini is used to set Default IBSS BSSID if BSSID
1382 * is not provided by supplicant and Coalesing is disabled
1383 *
1384 * Related: Only applicable if gCoalesingInIBSS is 0
1385 *
1386 * Supported Feature: IBSS
1387 *
1388 * Usage: Internal/External
1389 *
1390 * </ini>
1391 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001392#define CFG_IBSS_BSSID_NAME "gIbssBssid"
1393#define CFG_IBSS_BSSID_MIN "000000000000"
1394#define CFG_IBSS_BSSID_MAX "ffffffffffff"
1395#define CFG_IBSS_BSSID_DEFAULT "000AF5040506"
1396
Abhishek Singh49b654e2016-12-01 16:11:17 +05301397/*
1398 * <ini>
1399 * gAdHocChannel5G - Default 5Ghz IBSS channel if channel is not
1400 * provided by supplicant.
1401 * @Min: 36
1402 * @Max: 165
1403 * @Default: 44
1404 *
1405 * This ini is used to set default 5Ghz IBSS channel
1406 * if channel is not provided by supplicant and band is 5Ghz
1407 *
1408 * Related: None
1409 *
1410 * Supported Feature: IBSS
1411 *
1412 * Usage: Internal/External
1413 *
1414 * </ini>
1415 */
1416#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_NAME "gAdHocChannel5G"
1417#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_MIN (36)
1418#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_MAX (165)
1419#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_DEFAULT (44)
1420
1421/*
1422 * <ini>
1423 * gAdHocChannel24G - Default 2.4Ghz IBSS channel if channel is not
1424 * provided by supplicant.
1425 * @Min: 1
1426 * @Max: 14
1427 * @Default: 6
1428 *
1429 * This ini is used to set default 2.4Ghz IBSS channel
1430 * if channel is not provided by supplicant and band is 2.4Ghz
1431 *
1432 * Related: None
1433 *
1434 * Supported Feature: IBSS
1435 *
1436 * Usage: Internal/External
1437 *
1438 * </ini>
1439 */
1440#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_NAME "gAdHocChannel24G"
1441#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_MIN (1)
1442#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_MAX (14)
1443#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_DEFAULT (6)
1444
1445/*
1446 * <ini>
1447 * gCoalesingInIBSS - If IBSS coalesing is enabled.
1448 * @Min: 0
1449 * @Max: 1
1450 * @Default: 0
1451 *
1452 * This ini is used to set IBSS coalesing
1453 *
1454 * Related: None
1455 *
1456 * Supported Feature: IBSS
1457 *
1458 * Usage: Internal/External
1459 *
1460 * </ini>
1461 */
1462#define CFG_COALESING_IN_IBSS_NAME "gCoalesingInIBSS"
1463#define CFG_COALESING_IN_IBSS_MIN (0)
1464#define CFG_COALESING_IN_IBSS_MAX (1)
1465#define CFG_COALESING_IN_IBSS_DEFAULT (0) /* disabled */
1466
1467/*
1468 * <ini>
1469 * gIbssATIMWinSize - Set IBSS ATIM window size
1470 * @Min: 0
1471 * @Max: 50
1472 * @Default: 0
1473 *
1474 * This ini is used to set IBSS ATIM window size
1475 *
1476 * Related: None
1477 *
1478 * Supported Feature: IBSS
1479 *
1480 * Usage: Internal/External
1481 *
1482 * </ini>
1483 */
1484#define CFG_IBSS_ATIM_WIN_SIZE_NAME "gIbssATIMWinSize"
1485#define CFG_IBSS_ATIM_WIN_SIZE_MIN (0)
1486#define CFG_IBSS_ATIM_WIN_SIZE_MAX (50)
1487#define CFG_IBSS_ATIM_WIN_SIZE_DEFAULT (0)
1488
1489
1490/*
1491 * <ini>
1492 * gIbssIsPowerSaveAllowed - Indicates if IBSS Power Save is
1493 * supported or not
1494 * @Min: 0
1495 * @Max: 1
1496 * @Default: 1
1497 *
1498 * This ini is used to Indicates if IBSS Power Save is
1499 * supported or not. When not allowed,IBSS station has
1500 * to stay awake all the time and should never set PM=1
1501 * in its transmitted frames.
1502 *
1503 * Related: valid only when gIbssATIMWinSize is non-zero
1504 *
1505 * Supported Feature: IBSS
1506 *
1507 * Usage: Internal/External
1508 *
1509 * </ini>
1510 */
1511#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_NAME "gIbssIsPowerSaveAllowed"
1512#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_MIN (0)
1513#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_MAX (1)
1514#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_DEFAULT (1)
1515
1516/*
1517 * <ini>
1518 * gIbssIsPowerCollapseAllowed - Indicates if IBSS Power Collapse
1519 * is allowed
1520 * @Min: 0
1521 * @Max: 1
1522 * @Default: 1
1523 *
1524 * This ini is used to indicates if IBSS Power Collapse
1525 * is allowed
1526 *
1527 * Related: None
1528 *
1529 * Supported Feature: IBSS
1530 *
1531 * Usage: Internal/External
1532 *
1533 * </ini>
1534 */
1535#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_NAME "gIbssIsPowerCollapseAllowed"
1536#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_MIN (0)
1537#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_MAX (1)
1538#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_DEFAULT (1)
1539
1540/*
1541 * <ini>
1542 * gIbssAwakeOnTxRx - Indicates whether IBSS station
1543 * can exit power save mode and enter power active
1544 * state whenever there is a TX/RX activity.
1545 *
1546 * @Min: 0
1547 * @Max: 1
1548 * @Default: 0
1549 *
1550 * This ini is used to ndicates whether IBSS station
1551 * can exit power save mode and enter power active
1552 * state whenever there is a TX/RX activity.
1553 *
1554 * Related: None
1555 *
1556 * Supported Feature: IBSS
1557 *
1558 * Usage: Internal/External
1559 *
1560 * </ini>
1561 */
1562#define CFG_IBSS_AWAKE_ON_TX_RX_NAME "gIbssAwakeOnTxRx"
1563#define CFG_IBSS_AWAKE_ON_TX_RX_MIN (0)
1564#define CFG_IBSS_AWAKE_ON_TX_RX_MAX (1)
1565#define CFG_IBSS_AWAKE_ON_TX_RX_DEFAULT (0)
1566
1567/*
1568 * <ini>
1569 * gIbssInactivityTime - Indicates the data
1570 * inactivity time in number of beacon intervals
1571 * after which IBSS station re-inters power save
1572 *
1573 * @Min: 1
1574 * @Max: 10
1575 * @Default: 1
1576 *
1577 * In IBSS mode if Awake on TX/RX activity is enabled
1578 * Ibss Inactivity parameter indicates the data
1579 * inactivity time in number of beacon intervals
1580 * after which IBSS station re-inters power save
1581 * by sending Null frame with PM=1
1582 *
1583 * Related: Aplicable if gIbssAwakeOnTxRx is enabled
1584 *
1585 * Supported Feature: IBSS
1586 *
1587 * Usage: Internal/External
1588 *
1589 * </ini>
1590 */
1591#define CFG_IBSS_INACTIVITY_TIME_NAME "gIbssInactivityTime"
1592#define CFG_IBSS_INACTIVITY_TIME_MIN (1)
1593#define CFG_IBSS_INACTIVITY_TIME_MAX (10)
1594#define CFG_IBSS_INACTIVITY_TIME_DEFAULT (1)
1595
1596/*
1597 * <ini>
1598 * gIbssTxSpEndInactivityTime - Indicates the time after
1599 * which TX Service Period is terminated by
1600 * sending a Qos Null frame with EOSP.
1601 *
1602 * @Min: 0
1603 * @Max: 100
1604 * @Default: 0
1605 *
1606 * In IBSS mode Tx Service Period Inactivity
1607 * time in msecs indicates the time after
1608 * which TX Service Period is terminated by
1609 * sending a Qos Null frame with EOSP.
1610 * If value is 0, TX SP is terminated with the
1611 * last buffered packet itself instead of waiting
1612 * for the inactivity.
1613 *
1614 * Related: None
1615 *
1616 * Supported Feature: IBSS
1617 *
1618 * Usage: Internal/External
1619 *
1620 * </ini>
1621 */
1622#define CFG_IBSS_TXSP_END_INACTIVITY_NAME "gIbssTxSpEndInactivityTime"
1623#define CFG_IBSS_TXSP_END_INACTIVITY_MIN (0)
1624#define CFG_IBSS_TXSP_END_INACTIVITY_MAX (100)
1625#define CFG_IBSS_TXSP_END_INACTIVITY_DEFAULT (0)
1626
1627/*
1628 * <ini>
1629 * gIbssPsWarmupTime - PS-supporting device
1630 * does not enter protocol sleep state during first
1631 * gIbssPsWarmupTime seconds.
1632 *
1633 * @Min: 0
1634 * @Max: 65535
1635 * @Default: 0
1636 *
1637 * When IBSS network is initialized, PS-supporting device
1638 * does not enter protocol sleep state during first
1639 * gIbssPsWarmupTime seconds.
1640 *
1641 * Related: valid if gIbssIsPowerSaveAllowed is set
1642 *
1643 * Supported Feature: IBSS
1644 *
1645 * Usage: Internal/External
1646 *
1647 * </ini>
1648 */
1649#define CFG_IBSS_PS_WARMUP_TIME_NAME "gIbssPsWarmupTime"
1650#define CFG_IBSS_PS_WARMUP_TIME_MIN (0)
1651/* Allow unsigned Int Max for now */
1652#define CFG_IBSS_PS_WARMUP_TIME_MAX (65535)
1653#define CFG_IBSS_PS_WARMUP_TIME_DEFAULT (0)
1654
1655/*
1656 * <ini>
Sen, Devendrac441b212017-02-23 15:40:42 +05301657 * gIbssPs1RxChainInAtim - IBSS Power Save Enable/Disable 1 RX
Abhishek Singh49b654e2016-12-01 16:11:17 +05301658 * chain usage during the ATIM window
1659 *
1660 * @Min: 0
1661 * @Max: 1
1662 * @Default: 0
1663 *
1664 * IBSS Power Save Enable/Disable 1 RX
1665 * chain usage during the ATIM window
1666 *
1667 * Related: Depend on gIbssIsPowerSaveAllowed
1668 *
1669 * Supported Feature: IBSS
1670 *
1671 * Usage: Internal/External
1672 *
1673 * </ini>
1674 */
1675#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_NAME "gIbssPs1RxChainInAtim"
1676#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_MIN (0)
1677#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_MAX (1)
1678#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_DEFAULT (0)
1679
1680
1681
1682
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001683#define CFG_INTF0_MAC_ADDR_NAME "Intf0MacAddress"
1684#define CFG_INTF0_MAC_ADDR_MIN "000000000000"
1685#define CFG_INTF0_MAC_ADDR_MAX "ffffffffffff"
Jeff Johnson9e6ff212016-09-02 10:26:32 -07001686#define CFG_INTF0_MAC_ADDR_DEFAULT "000AF58989FF"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001687
1688#define CFG_INTF1_MAC_ADDR_NAME "Intf1MacAddress"
1689#define CFG_INTF1_MAC_ADDR_MIN "000000000000"
1690#define CFG_INTF1_MAC_ADDR_MAX "ffffffffffff"
Jeff Johnson9e6ff212016-09-02 10:26:32 -07001691#define CFG_INTF1_MAC_ADDR_DEFAULT "000AF58989FE"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001692
1693#define CFG_INTF2_MAC_ADDR_NAME "Intf2MacAddress"
1694#define CFG_INTF2_MAC_ADDR_MIN "000000000000"
1695#define CFG_INTF2_MAC_ADDR_MAX "ffffffffffff"
Jeff Johnson9e6ff212016-09-02 10:26:32 -07001696#define CFG_INTF2_MAC_ADDR_DEFAULT "000AF58989FD"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001697
1698#define CFG_INTF3_MAC_ADDR_NAME "Intf3MacAddress"
1699#define CFG_INTF3_MAC_ADDR_MIN "000000000000"
1700#define CFG_INTF3_MAC_ADDR_MAX "ffffffffffff"
Jeff Johnson9e6ff212016-09-02 10:26:32 -07001701#define CFG_INTF3_MAC_ADDR_DEFAULT "000AF58989FC"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001702
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05301703/*
1704 * <ini>
1705 * gDot11Mode - SAP phy mode
1706 * @Min: 0
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -08001707 * @Max: 12 (11ax)
1708 * @Default: 12 (11ax)
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05301709 *
1710 * This ini is used to set Phy Mode (auto, b, g, n, etc/) Valid values are
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -08001711 * 0-12, with 0 = Auto, 12 = 11ax.
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05301712 *
1713 * Related: None.
1714 *
1715 * Supported Feature: SAP
1716 *
1717 * Usage: Internal/External
1718 *
1719 * </ini>
1720 */
1721#define CFG_DOT11_MODE_NAME "gDot11Mode"
1722#define CFG_DOT11_MODE_MIN eHDD_DOT11_MODE_AUTO
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -08001723#define CFG_DOT11_MODE_DEFAULT eHDD_DOT11_MODE_11ax
1724#define CFG_DOT11_MODE_MAX eHDD_DOT11_MODE_11ax
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05301725
1726/*
1727 * <ini>
1728 * gEnableApUapsd - Enable/disable UAPSD for SoftAP
1729 * @Min: 0
1730 * @Max: 1
1731 * @Default: 1
1732 *
1733 * This ini is used to setup setup U-APSD for Acs at association
1734 *
1735 * Related: None.
1736 *
1737 * Supported Feature: SAP
1738 *
1739 * Usage: Internal/External
1740 *
1741 * </ini>
1742 */
1743#define CFG_AP_QOS_UAPSD_MODE_NAME "gEnableApUapsd"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001744#define CFG_AP_QOS_UAPSD_MODE_MIN (0)
1745#define CFG_AP_QOS_UAPSD_MODE_MAX (1)
1746#define CFG_AP_QOS_UAPSD_MODE_DEFAULT (1)
1747
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05301748/*
1749 * <ini>
1750 * gEnableApRandomBssid - Create ramdom BSSID
1751 * @Min: 0
1752 * @Max: 1
1753 * @Default: 0
1754 *
1755 * This ini is used to create a random BSSID in SoftAP mode to meet
1756 * the Android requirement.
1757 *
1758 * Related: None.
1759 *
1760 * Supported Feature: SAP
1761 *
1762 * Usage: Internal/External
1763 *
1764 * </ini>
1765 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001766#define CFG_AP_ENABLE_RANDOM_BSSID_NAME "gEnableApRandomBssid"
1767#define CFG_AP_ENABLE_RANDOM_BSSID_MIN (0)
1768#define CFG_AP_ENABLE_RANDOM_BSSID_MAX (1)
1769#define CFG_AP_ENABLE_RANDOM_BSSID_DEFAULT (0)
1770
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05301771/*
1772 * <ini>
1773 * gEnableApProt - Enable/Disable AP protection
1774 * @Min: 0
1775 * @Max: 1
1776 * @Default: 1
1777 *
1778 * This ini is used to enable/disable AP protection
1779 *
1780 * Related: None.
1781 *
1782 * Supported Feature: SAP
1783 *
1784 * Usage: Internal/External
1785 *
1786 * </ini>
1787 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001788#define CFG_AP_ENABLE_PROTECTION_MODE_NAME "gEnableApProt"
1789#define CFG_AP_ENABLE_PROTECTION_MODE_MIN (0)
1790#define CFG_AP_ENABLE_PROTECTION_MODE_MAX (1)
1791#define CFG_AP_ENABLE_PROTECTION_MODE_DEFAULT (1)
1792
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05301793/*
1794 * <ini>
1795 * gApProtection - Set AP protection parameter
1796 * @Min: 0x0
1797 * @Max: 0xFFFF
1798 * @Default: 0xBFFF
1799 *
1800 * This ini is used to set AP protection parameter
1801 * Bit map for CFG_AP_PROTECTION_MODE_DEFAULT
1802 * LOWER byte for associated stations
1803 * UPPER byte for overlapping stations
1804 * each byte will have the following info
1805 * bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8
1806 * OBSS RIFS LSIG_TXOP NON_GF HT20 FROM_11G FROM_11B FROM_11A
1807 * bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
1808 * OBSS RIFS LSIG_TXOP NON_GF HT_20 FROM_11G FROM_11B FROM_11A
1809 *
1810 * Related: None.
1811 *
1812 * Supported Feature: SAP
1813 *
1814 * Usage: Internal/External
1815 *
1816 * </ini>
1817 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001818#define CFG_AP_PROTECTION_MODE_NAME "gApProtection"
1819#define CFG_AP_PROTECTION_MODE_MIN (0x0)
1820#define CFG_AP_PROTECTION_MODE_MAX (0xFFFF)
1821#define CFG_AP_PROTECTION_MODE_DEFAULT (0xBFFF)
1822
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05301823/*
1824 * <ini>
1825 * gEnableApOBSSProt - Enable/Disable AP OBSS protection
1826 * @Min: 0
1827 * @Max: 1
1828 * @Default: 0
1829 *
1830 * This ini is used to enable/disable AP OBSS protection
1831 *
1832 * Related: None.
1833 *
1834 * Supported Feature: SAP
1835 *
1836 * Usage: Internal/External
1837 *
1838 * </ini>
1839 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001840#define CFG_AP_OBSS_PROTECTION_MODE_NAME "gEnableApOBSSProt"
1841#define CFG_AP_OBSS_PROTECTION_MODE_MIN (0)
1842#define CFG_AP_OBSS_PROTECTION_MODE_MAX (1)
1843#define CFG_AP_OBSS_PROTECTION_MODE_DEFAULT (0)
1844
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05301845/*
1846 * <ini>
1847 * gDisableIntraBssFwd - Disable intrs BSS Rx packets
1848 * @Min: 0
1849 * @Max: 1
1850 * @Default: 0
1851 *
1852 * This ini is used to disbale to forward Intra-BSS Rx packets when
1853 * ap_isolate=1 in hostapd.conf
1854 *
1855 * Related: None.
1856 *
1857 * Supported Feature: SAP
1858 *
1859 * Usage: Internal/External
1860 *
1861 * </ini>
1862 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001863#define CFG_AP_STA_SECURITY_SEPERATION_NAME "gDisableIntraBssFwd"
1864#define CFG_AP_STA_SECURITY_SEPERATION_MIN (0)
1865#define CFG_AP_STA_SECURITY_SEPERATION_MAX (1)
1866#define CFG_AP_STA_SECURITY_SEPERATION_DEFAULT (0)
1867
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05301868/*
1869 * <ini>
1870 * gAPAutoShutOff - Auto shutdown when timer expires
1871 * @Min: 0
1872 * @Max: 4294967295UL
1873 * @Default: 0
1874 *
1875 * This ini is used to configure timer value to shutdown AP once timer expired
1876 *
1877 * Related: None.
1878 *
1879 * Supported Feature: SAP
1880 *
1881 * Usage: Internal/External
1882 *
1883 * </ini>
1884 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001885#define CFG_AP_AUTO_SHUT_OFF "gAPAutoShutOff"
1886#define CFG_AP_AUTO_SHUT_OFF_MIN (0)
1887#define CFG_AP_AUTO_SHUT_OFF_MAX (4294967295UL)
1888#define CFG_AP_AUTO_SHUT_OFF_DEFAULT (0)
1889
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05301890/*
1891 * <ini>
1892 * gApKeepAlivePeriod - AP keep alive period
1893 * @Min: 1
1894 * @Max: 65535
1895 * @Default: 20
1896 *
1897 * This ini is used to set keep alive period of AP
1898 *
1899 * Related: None.
1900 *
1901 * Supported Feature: SAP
1902 *
1903 * Usage: Internal/External
1904 *
1905 * </ini>
1906 */
1907#define CFG_AP_KEEP_ALIVE_PERIOD_NAME "gApKeepAlivePeriod"
1908#define CFG_AP_KEEP_ALIVE_PERIOD_MIN WNI_CFG_AP_KEEP_ALIVE_TIMEOUT_STAMIN
1909#define CFG_AP_KEEP_ALIVE_PERIOD_MAX WNI_CFG_AP_KEEP_ALIVE_TIMEOUT_STAMAX
1910#define CFG_AP_KEEP_ALIVE_PERIOD_DEFAULT WNI_CFG_AP_KEEP_ALIVE_TIMEOUT_STADEF
1911
1912/*
1913 * <ini>
1914 * gApLinkMonitorPeriod - AP keep alive period
1915 * @Min: 3
1916 * @Max: 50
1917 * @Default: 10
1918 *
1919 * This ini is used to configure AP link monitor timeout value
1920 *
1921 * Related: None.
1922 *
1923 * Supported Feature: SAP
1924 *
1925 * Usage: Internal/External
1926 *
1927 * </ini>
1928 */
1929#define CFG_AP_LINK_MONITOR_PERIOD_NAME "gApLinkMonitorPeriod"
1930#define CFG_AP_LINK_MONITOR_PERIOD_MIN (3)
1931#define CFG_AP_LINK_MONITOR_PERIOD_MAX (50)
1932#define CFG_AP_LINK_MONITOR_PERIOD_DEFAULT (10)
1933
1934/*
1935 * <ini>
1936 * gBeaconInterval - Beacon interval for SoftAP
1937 * @Min: 0
1938 * @Max: 65535
1939 * @Default: 100
1940 *
1941 * This ini is used to set beacon interval for SoftAP
1942 *
1943 * Related: None.
1944 *
1945 * Supported Feature: SAP
1946 *
1947 * Usage: Internal/External
1948 *
1949 * </ini>
1950 */
1951#define CFG_BEACON_INTERVAL_NAME "gBeaconInterval"
1952#define CFG_BEACON_INTERVAL_MIN WNI_CFG_BEACON_INTERVAL_STAMIN
1953#define CFG_BEACON_INTERVAL_MAX WNI_CFG_BEACON_INTERVAL_STAMAX
1954#define CFG_BEACON_INTERVAL_DEFAULT WNI_CFG_BEACON_INTERVAL_STADEF
1955
1956/*
1957 * <ini>
1958 * gEnableVSTASupport - Enable/disable VSTA support
1959 * @Min: 0
1960 * @Max: 1
1961 * @Default: 0
1962 *
1963 * This ini is used to enable/disable VSTA based on max assoc limit.
1964 * Enable to have maximum 32 STA (P2P GC) on DUT as P2P GO or SAP
1965 *
1966 * Related: None.
1967 *
1968 * Supported Feature: SAP
1969 *
1970 * Usage: Internal/External
1971 *
1972 * </ini>
1973 */
1974#ifdef WLAN_SOFTAP_VSTA_FEATURE
1975#define CFG_VSTA_SUPPORT_ENABLE "gEnableVSTASupport"
1976#define CFG_VSTA_SUPPORT_ENABLE_MIN (0)
1977#define CFG_VSTA_SUPPORT_ENABLE_MAX (1)
1978#define CFG_VSTA_SUPPORT_ENABLE_DEFAULT (0)
1979#endif
1980
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001981#ifdef FEATURE_WLAN_AUTO_SHUTDOWN
1982#define CFG_WLAN_AUTO_SHUTDOWN "gWlanAutoShutdown"
1983#define CFG_WLAN_AUTO_SHUTDOWN_MIN (0)
1984#define CFG_WLAN_AUTO_SHUTDOWN_MAX (86400) /* Max 1 day timeout */
1985#define CFG_WLAN_AUTO_SHUTDOWN_DEFAULT (0)
1986#endif
1987
1988#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
Nitesh Shah03161d12016-12-06 18:30:12 +05301989/*
1990 * <ini>
1991 * gWlanMccToSccSwitchMode - Control SAP channel.
1992 * @Min: 0
1993 * @Max: 2
1994 * @Default: 0
1995 *
1996 * This ini is used to override SAP channel.
1997 * If gWlanMccToSccSwitchMode = 0: disabled.
1998 * If gWlanMccToSccSwitchMode = 1: override to SCC if channel overlap in
1999 * same band.
2000 * If gWlanMccToSccSwitchMode = 2: force to SCC in same band.
2001 *
2002 * Related: None.
2003 *
2004 * Supported Feature: Concurrency
2005 *
2006 * Usage: Internal/External
2007 *
2008 * </ini>
2009 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002010#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE "gWlanMccToSccSwitchMode"
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05302011#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE_MIN (QDF_MCC_TO_SCC_SWITCH_DISABLE)
Manishekar Chandrasekaran1db3abe2016-06-24 03:27:07 +05302012#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE_MAX \
2013 (QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNEL)
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05302014#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE_DEFAULT (QDF_MCC_TO_SCC_SWITCH_DISABLE)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002015#endif
2016
2017#define CFG_DISABLE_PACKET_FILTER "gDisablePacketFilter"
2018#define CFG_DISABLE_PACKET_FILTER_MIN (0)
2019#define CFG_DISABLE_PACKET_FILTER_MAX (0x1)
2020#define CFG_DISABLE_PACKET_FILTER_DEFAULT (0)
2021
2022#define CFG_ENABLE_LTE_COEX "gEnableLTECoex"
2023#define CFG_ENABLE_LTE_COEX_MIN (0)
2024#define CFG_ENABLE_LTE_COEX_MAX (1)
2025#define CFG_ENABLE_LTE_COEX_DEFAULT (0)
2026
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002027#define CFG_GO_KEEP_ALIVE_PERIOD_NAME "gGoKeepAlivePeriod"
2028#define CFG_GO_KEEP_ALIVE_PERIOD_MIN WNI_CFG_GO_KEEP_ALIVE_TIMEOUT_STAMIN
2029#define CFG_GO_KEEP_ALIVE_PERIOD_MAX WNI_CFG_GO_KEEP_ALIVE_TIMEOUT_STAMAX
2030#define CFG_GO_KEEP_ALIVE_PERIOD_DEFAULT WNI_CFG_GO_KEEP_ALIVE_TIMEOUT_STADEF
2031
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002032/* gGoLinkMonitorPeriod is period where link is idle and where
2033 * we send NULL frame
2034 */
2035#define CFG_GO_LINK_MONITOR_PERIOD_NAME "gGoLinkMonitorPeriod"
2036#define CFG_GO_LINK_MONITOR_PERIOD_MIN (3)
2037#define CFG_GO_LINK_MONITOR_PERIOD_MAX (50)
2038#define CFG_GO_LINK_MONITOR_PERIOD_DEFAULT (10)
2039
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002040#define CFG_VCC_RSSI_TRIGGER_NAME "gVccRssiTrigger"
2041#define CFG_VCC_RSSI_TRIGGER_MIN (0)
2042#define CFG_VCC_RSSI_TRIGGER_MAX (80)
2043#define CFG_VCC_RSSI_TRIGGER_DEFAULT (80)
2044
2045#define CFG_VCC_UL_MAC_LOSS_THRESH_NAME "gVccUlMacLossThresh"
2046#define CFG_VCC_UL_MAC_LOSS_THRESH_MIN (0)
2047#define CFG_VCC_UL_MAC_LOSS_THRESH_MAX (9)
2048#define CFG_VCC_UL_MAC_LOSS_THRESH_DEFAULT (9)
2049
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002050#define CFG_RETRY_LIMIT_ZERO_NAME "gRetryLimitZero"
2051#define CFG_RETRY_LIMIT_ZERO_MIN (0)
2052#define CFG_RETRY_LIMIT_ZERO_MAX (15)
2053#define CFG_RETRY_LIMIT_ZERO_DEFAULT (5)
2054
2055#define CFG_RETRY_LIMIT_ONE_NAME "gRetryLimitOne"
2056#define CFG_RETRY_LIMIT_ONE_MIN (0)
2057#define CFG_RETRY_LIMIT_ONE_MAX (15)
2058#define CFG_RETRY_LIMIT_ONE_DEFAULT (10)
2059
2060#define CFG_RETRY_LIMIT_TWO_NAME "gRetryLimitTwo"
2061#define CFG_RETRY_LIMIT_TWO_MIN (0)
2062#define CFG_RETRY_LIMIT_TWO_MAX (15)
2063#define CFG_RETRY_LIMIT_TWO_DEFAULT (15)
2064
2065#ifdef WLAN_AP_STA_CONCURRENCY
Nitesh Shah03161d12016-12-06 18:30:12 +05302066/*
2067 * <ini>
2068 * gPassiveMaxChannelTimeConc - Maximum passive scan time in milliseconds.
2069 * @Min: 0
2070 * @Max: 10000
2071 * @Default: 110
2072 *
2073 * This ini is used to set maximum passive scan time in STA+SAP concurrent
2074 * mode.
2075 *
2076 * Related: None.
2077 *
2078 * Supported Feature: Concurrency
2079 *
2080 * Usage: Internal/External
2081 *
2082 * </ini>
2083 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002084#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_NAME "gPassiveMaxChannelTimeConc"
2085#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_MIN (0)
2086#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_MAX (10000)
2087#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_DEFAULT (110)
2088
Nitesh Shah03161d12016-12-06 18:30:12 +05302089/*
2090 * <ini>
2091 * gPassiveMinChannelTimeConc - Minimum passive scan time in milliseconds.
2092 * @Min: 0
2093 * @Max: 10000
2094 * @Default: 60
2095 *
2096 * This ini is used to set minimum passive scan time in STA+SAP concurrent
2097 * mode.
2098 *
2099 * Related: None.
2100 *
2101 * Supported Feature: Concurrency
2102 *
2103 * Usage: Internal/External
2104 *
2105 * </ini>
2106 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002107#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_NAME "gPassiveMinChannelTimeConc"
2108#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_MIN (0)
2109#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_MAX (10000)
2110#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_DEFAULT (60)
2111
Nitesh Shah03161d12016-12-06 18:30:12 +05302112/*
2113 * <ini>
2114 * gActiveMaxChannelTimeConc - Maximum active scan time in milliseconds.
2115 * @Min: 0
2116 * @Max: 10000
2117 * @Default: 40
2118 *
2119 * This ini is used to set maximum active scan time in STA+SAP concurrent
2120 * mode.
2121 *
2122 * Related: None.
2123 *
2124 * Supported Feature: Concurrency
2125 *
2126 * Usage: Internal/External
2127 *
2128 * </ini>
2129 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002130#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_NAME "gActiveMaxChannelTimeConc"
2131#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_MIN (0)
2132#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_MAX (10000)
2133#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_DEFAULT (40)
2134
Nitesh Shah03161d12016-12-06 18:30:12 +05302135/*
2136 * <ini>
2137 * gActiveMinChannelTimeConc - Minimum active scan time in milliseconds..
2138 * @Min: 0
2139 * @Max: 10000
2140 * @Default: 20
2141 *
2142 * This ini is used to set minimum active scan time in STA+SAP concurrent
2143 * mode.
2144 *
2145 * Related: None.
2146 *
2147 * Supported Feature: Concurrency
2148 *
2149 * Usage: Internal/External
2150 *
2151 * </ini>
2152 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002153#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_NAME "gActiveMinChannelTimeConc"
2154#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_MIN (0)
2155#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_MAX (10000)
2156#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_DEFAULT (20)
2157
Nitesh Shah03161d12016-12-06 18:30:12 +05302158/*
2159 * <ini>
2160 * gRestTimeConc - Rest time before moving to a new channel to scan.
2161 * @Min: 0
2162 * @Max: 10000
2163 * @Default: 100
2164 *
2165 * This ini is used to configure rest time.
2166 *
2167 * Related: None.
2168 *
2169 * Supported Feature: Concurrency
2170 *
2171 * Usage: Internal/External
2172 *
2173 * </ini>
2174 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002175#define CFG_REST_TIME_CONC_NAME "gRestTimeConc"
2176#define CFG_REST_TIME_CONC_MIN (0)
2177#define CFG_REST_TIME_CONC_MAX (10000)
2178#define CFG_REST_TIME_CONC_DEFAULT (100)
2179
Nitesh Shah03161d12016-12-06 18:30:12 +05302180/*
2181 * <ini>
2182 * gMinRestTimeConc - Mininum time spent on home channel before moving to a
2183 * new channel to scan.
2184 * @Min: 0
2185 * @Max: 50
2186 * @Default: 50
2187 *
2188 * This ini is used to configure minimum time spent on home channel before
2189 * moving to a new channel to scan.
2190 *
2191 * Related: None.
2192 *
2193 * Supported Feature: Concurrency
2194 *
2195 * Usage: Internal/External
2196 *
2197 * </ini>
2198 */
Agrawal Ashish17bb3902016-05-05 13:29:40 +05302199#define CFG_MIN_REST_TIME_NAME "gMinRestTimeConc"
2200#define CFG_MIN_REST_TIME_MIN (0)
2201#define CFG_MIN_REST_TIME_MAX (50)
2202#define CFG_MIN_REST_TIME_DEFAULT (50)
2203
Nitesh Shah03161d12016-12-06 18:30:12 +05302204/*
2205 * <ini>
2206 * gIdleTimeConc - Data inactivity time in msec.
2207 * @Min: 0
2208 * @Max: 25
2209 * @Default: 25
2210 *
2211 * This ini is used to configure data inactivity time in msec on bss channel
2212 * that will be used by scan engine in firmware.
2213 * For example if this value is 25ms then firmware will check for data
2214 * inactivity every 25ms till gRestTimeConc is reached.
2215 * If inactive then scan engine will move from home channel to scan the next
2216 * frequency.
2217 *
2218 * Related: None.
2219 *
2220 * Supported Feature: Concurrency
2221 *
2222 * Usage: Internal/External
2223 *
2224 * </ini>
Agrawal Ashish17bb3902016-05-05 13:29:40 +05302225 */
2226#define CFG_IDLE_TIME_NAME "gIdleTimeConc"
2227#define CFG_IDLE_TIME_MIN (0)
2228#define CFG_IDLE_TIME_MAX (25)
2229#define CFG_IDLE_TIME_DEFAULT (25)
2230
2231
Nitesh Shah03161d12016-12-06 18:30:12 +05302232/*
2233 * <ini>
2234 * gNumStaChanCombinedConc - Number of channels combined for STA in each
2235 * split scan operation.
2236 * @Min: 1
2237 * @Max: 255
2238 * @Default: 3
2239 *
2240 * This ini is used to configure the number of channels combined for STA in
2241 * each split scan operation.
2242 *
2243 * Related: None.
2244 *
2245 * Supported Feature: Concurrency
2246 *
2247 * Usage: Internal/External
2248 *
2249 * </ini>
2250 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002251#define CFG_NUM_STA_CHAN_COMBINED_CONC_NAME "gNumStaChanCombinedConc"
2252#define CFG_NUM_STA_CHAN_COMBINED_CONC_MIN (1)
2253#define CFG_NUM_STA_CHAN_COMBINED_CONC_MAX (255)
2254#define CFG_NUM_STA_CHAN_COMBINED_CONC_DEFAULT (3)
2255
Nitesh Shah03161d12016-12-06 18:30:12 +05302256/*
2257 * <ini>
2258 * gNumP2PChanCombinedConc - Number of channels combined for P2P in each
2259 * split scan operation.
2260 * @Min: 1
2261 * @Max: 255
2262 * @Default: 1
2263 *
2264 * This ini is used to configure the number of channels combined for P2P in
2265 * each split scan operation.
2266 *
2267 * Related: None.
2268 *
2269 * Supported Feature: Concurrency
2270 *
2271 * Usage: Internal/External
2272 *
2273 * </ini>
2274 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002275#define CFG_NUM_P2P_CHAN_COMBINED_CONC_NAME "gNumP2PChanCombinedConc"
2276#define CFG_NUM_P2P_CHAN_COMBINED_CONC_MIN (1)
2277#define CFG_NUM_P2P_CHAN_COMBINED_CONC_MAX (255)
2278#define CFG_NUM_P2P_CHAN_COMBINED_CONC_DEFAULT (1)
2279#endif
2280
2281#define CFG_MAX_PS_POLL_NAME "gMaxPsPoll"
2282#define CFG_MAX_PS_POLL_MIN WNI_CFG_MAX_PS_POLL_STAMIN
2283#define CFG_MAX_PS_POLL_MAX WNI_CFG_MAX_PS_POLL_STAMAX
2284#define CFG_MAX_PS_POLL_DEFAULT WNI_CFG_MAX_PS_POLL_STADEF
2285
2286#define CFG_MAX_TX_POWER_NAME "gTxPowerCap"
2287#define CFG_MAX_TX_POWER_MIN WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMIN
2288#define CFG_MAX_TX_POWER_MAX WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMAX
2289/* Not to use CFG default because if no registry setting, this is ignored by SME. */
2290#define CFG_MAX_TX_POWER_DEFAULT WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMAX
2291
Padma, Santhosh Kumar29df3622016-08-16 19:15:16 +05302292/* This ini controls driver to honor/dishonor power constraint from AP */
2293#define CFG_TX_POWER_CTRL_NAME "gAllowTPCfromAP"
2294#define CFG_TX_POWER_CTRL_DEFAULT (1)
2295#define CFG_TX_POWER_CTRL_MIN (0)
2296#define CFG_TX_POWER_CTRL_MAX (1)
2297
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302298/*
2299 * <ini>
2300 * gLowGainOverride - Indicates Low Gain Override
2301 * @Min: 0
2302 * @Max: 1
2303 * @Default: 0
2304 *
2305 * This ini is used to set default Low Gain Override
2306 *
2307 * Related: None
2308 *
2309 * Supported Feature: STA
2310 *
2311 * Usage: Internal/External
2312 *
2313 * </ini>
2314 */
2315
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002316#define CFG_LOW_GAIN_OVERRIDE_NAME "gLowGainOverride"
2317#define CFG_LOW_GAIN_OVERRIDE_MIN WNI_CFG_LOW_GAIN_OVERRIDE_STAMIN
2318#define CFG_LOW_GAIN_OVERRIDE_MAX WNI_CFG_LOW_GAIN_OVERRIDE_STAMAX
2319#define CFG_LOW_GAIN_OVERRIDE_DEFAULT WNI_CFG_LOW_GAIN_OVERRIDE_STADEF
2320
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302321/*
2322 * <ini>
2323 * gRssiFilterPeriod - Enable gRssi Filter for RSSI Monitoring
2324 * @Min: STAMIN
2325 * @Max: STAMAX
2326 * @Default: STADEF
2327 *
2328 * This ini is used to Increased this value for Non-ESE AP this is cause FW
2329 * RSSI Monitoring the consumer of this value is ON by default. So to impact
2330 * power numbers we are setting this to a high value.
2331 *
2332 * Related: None
2333 *
2334 * Supported Feature: STA
2335 *
2336 * Usage: Internal/External
2337 *
2338 * </ini>
2339 */
2340
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002341#define CFG_RSSI_FILTER_PERIOD_NAME "gRssiFilterPeriod"
2342#define CFG_RSSI_FILTER_PERIOD_MIN WNI_CFG_RSSI_FILTER_PERIOD_STAMIN
2343#define CFG_RSSI_FILTER_PERIOD_MAX WNI_CFG_RSSI_FILTER_PERIOD_STAMAX
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002344#define CFG_RSSI_FILTER_PERIOD_DEFAULT WNI_CFG_RSSI_FILTER_PERIOD_STADEF
2345
2346#define CFG_IGNORE_DTIM_NAME "gIgnoreDtim"
2347#define CFG_IGNORE_DTIM_MIN WNI_CFG_IGNORE_DTIM_STAMIN
2348#define CFG_IGNORE_DTIM_MAX WNI_CFG_IGNORE_DTIM_STAMAX
2349#define CFG_IGNORE_DTIM_DEFAULT WNI_CFG_IGNORE_DTIM_STADEF
2350
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302351/*
2352 * <ini>
2353 * gMaxLIModulatedDTIM - Set MaxLIModulate Dtim
2354 * @Min: 1
2355 * @Max: 10
2356 * @Default: 10
2357 *
2358 * This ini is used to set default MaxLIModulatedDTIM
2359 *
2360 * Related: None
2361 *
2362 * Supported Feature: STA
2363 *
2364 * Usage: Internal/External
2365 *
2366 * </ini>
2367 */
2368
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002369#define CFG_MAX_LI_MODULATED_DTIM_NAME "gMaxLIModulatedDTIM"
2370#define CFG_MAX_LI_MODULATED_DTIM_MIN (1)
2371#define CFG_MAX_LI_MODULATED_DTIM_MAX (10)
2372#define CFG_MAX_LI_MODULATED_DTIM_DEFAULT (10)
2373
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302374/*
2375 * <ini>
2376 * gEnableFWHeartBeatMonitoring - Enable FWHeartBeat Monitor
2377 * @Min: 0
2378 * @Max: 1
2379 * @Default: 1
2380 *
2381 * This ini is used to set default FWHeartBeat Monitor
2382 *
2383 * Related: None
2384 *
2385 * Supported Feature: STA
2386 *
2387 * Usage: Internal/External
2388 *
2389 * </ini>
2390 */
2391
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002392#define CFG_FW_HEART_BEAT_MONITORING_NAME "gEnableFWHeartBeatMonitoring"
2393#define CFG_FW_HEART_BEAT_MONITORING_MIN (0)
2394#define CFG_FW_HEART_BEAT_MONITORING_MAX (1)
2395#define CFG_FW_HEART_BEAT_MONITORING_DEFAULT (1)
2396
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302397/*
2398 * <ini>
2399 * gEnableFWBeaconFiltering - Enable FWBeacon Filter
2400 * @Min: 0
2401 * @Max: 1
2402 * @Default: 1
2403 *
2404 * This ini is used to set default FWBeacon Filter
2405 *
2406 * Related: None
2407 *
2408 * Supported Feature: STA
2409 *
2410 * Usage: Internal/External
2411 *
2412 * </ini>
2413 */
2414
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002415#define CFG_FW_BEACON_FILTERING_NAME "gEnableFWBeaconFiltering"
2416#define CFG_FW_BEACON_FILTERING_MIN (0)
2417#define CFG_FW_BEACON_FILTERING_MAX (1)
2418#define CFG_FW_BEACON_FILTERING_DEFAULT (1)
2419
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302420/*
2421 * <ini>
2422 * gEnableFWRssiMonitoring - Enable FWRssi Monitor
2423 * @Min: 0
2424 * @Max: 1
2425 * @Default: 1
2426 *
2427 * This ini is used to set default FWRssi Monitor
2428 *
2429 * Related: None
2430 *
2431 * Supported Feature: STA
2432 *
2433 * Usage: Internal/External
2434 *
2435 * </ini>
2436 */
2437
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002438#define CFG_FW_RSSI_MONITORING_NAME "gEnableFWRssiMonitoring"
2439#define CFG_FW_RSSI_MONITORING_MIN (0)
2440#define CFG_FW_RSSI_MONITORING_MAX (1)
2441#define CFG_FW_RSSI_MONITORING_DEFAULT (1)
2442
Nitesh Shah03161d12016-12-06 18:30:12 +05302443/*
2444 * <ini>
2445 * gFWMccRtsCtsProtection - RTS-CTS protection in MCC.
2446 * @Min: 0
2447 * @Max: 1
2448 * @Default: 0
2449 *
2450 * This ini is used to enable/disable use of long duration RTS-CTS protection
2451 * when SAP goes off channel in MCC mode.
2452 *
2453 * Related: None.
2454 *
2455 * Supported Feature: Concurrency
2456 *
2457 * Usage: Internal/External
2458 *
2459 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002460 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302461
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002462#define CFG_FW_MCC_RTS_CTS_PROT_NAME "gFWMccRtsCtsProtection"
2463#define CFG_FW_MCC_RTS_CTS_PROT_MIN (0)
2464#define CFG_FW_MCC_RTS_CTS_PROT_MAX (1)
2465#define CFG_FW_MCC_RTS_CTS_PROT_DEFAULT (0)
2466
Nitesh Shah03161d12016-12-06 18:30:12 +05302467/*
2468 * <ini>
2469 * gFWMccBCastProbeResponse - Broadcast Probe Response in MCC.
2470 * @Min: 0
2471 * @Max: 1
2472 * @Default: 0
2473 *
2474 * This ini is used to enable/disable use of broadcast probe response to
2475 * increase the detectability of SAP in MCC mode.
2476 *
2477 * Related: None.
2478 *
2479 * Supported Feature: Concurrency
2480 *
2481 * Usage: Internal/External
2482 *
2483 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002484 */
2485#define CFG_FW_MCC_BCAST_PROB_RESP_NAME "gFWMccBCastProbeResponse"
2486#define CFG_FW_MCC_BCAST_PROB_RESP_MIN (0)
2487#define CFG_FW_MCC_BCAST_PROB_RESP_MAX (1)
2488#define CFG_FW_MCC_BCAST_PROB_RESP_DEFAULT (0)
2489
2490#define CFG_DATA_INACTIVITY_TIMEOUT_NAME "gDataInactivityTimeout"
2491#define CFG_DATA_INACTIVITY_TIMEOUT_MIN (1)
2492#define CFG_DATA_INACTIVITY_TIMEOUT_MAX (255)
Jeff Johnson9c9be712016-09-02 14:02:31 -07002493#define CFG_DATA_INACTIVITY_TIMEOUT_DEFAULT (200)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002494
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302495/*
2496 * <ini>
2497 * rfSettlingTimeUs - Settle the TimeUs
2498 * @Min: 0
2499 * @Max: 60000
2500 * @Default: 1500
2501 *
2502 * This ini is used to set default TimeUs
2503 *
2504 * Related: None
2505 *
2506 * Supported Feature: STA
2507 *
2508 * Usage: Internal/External
2509 *
2510 * </ini>
2511 */
2512
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002513#define CFG_RF_SETTLING_TIME_CLK_NAME "rfSettlingTimeUs"
2514#define CFG_RF_SETTLING_TIME_CLK_MIN (0)
2515#define CFG_RF_SETTLING_TIME_CLK_MAX (60000)
2516#define CFG_RF_SETTLING_TIME_CLK_DEFAULT (1500)
2517
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302518/*
2519 * <ini>
2520 * gStaKeepAlivePeriod - Sends NULL frame to AP periodically in
2521 * seconds to notify STA's existence
2522 * @Min: 0
2523 * @Max: 65535
2524 * @Default: 30
2525 *
2526 * This ini is used to send default NULL frame to AP
2527 *
2528 * Related: None
2529 *
2530 * Supported Feature: STA
2531 *
2532 * Usage: Internal/External
2533 *
2534 * </ini>
2535 */
2536
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002537#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_NAME "gStaKeepAlivePeriod"
2538#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_MIN (0)
2539#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_MAX (65535)
Dustin Brownf5108872017-02-01 10:51:50 -08002540#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_DEFAULT (90)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002541
Dustin Brownb6b0f182017-03-08 13:08:27 -08002542/**
2543 * enum station_keepalive_method - available keepalive methods for stations
2544 * @HDD_STA_KEEPALIVE_NULL_DATA: null data packet
2545 * @HDD_STA_KEEPALIVE_GRAT_ARP: gratuitous ARP packet
2546 * @HDD_STA_KEEPALIVE_COUNT: number of method options available
2547 */
2548enum station_keepalive_method {
2549 HDD_STA_KEEPALIVE_NULL_DATA,
2550 HDD_STA_KEEPALIVE_GRAT_ARP,
2551 /* keep at the end */
2552 HDD_STA_KEEPALIVE_COUNT
2553};
2554
2555/*
2556 * <ini>
2557 * gStaKeepAliveMethod - Which keepalive method to use
2558 * @Min: 0
2559 * @Max: 1
2560 * @Default: 1
2561 *
2562 * This ini determines which keepalive method to use for station interfaces
2563 * 1) Use null data packets
2564 * 2) Use gratuitous ARP packets
2565 *
2566 * Related: gStaKeepAlivePeriod, gApKeepAlivePeriod, gGoKeepAlivePeriod
2567 *
2568 * Supported Feature: STA, Keepalive
2569 *
2570 * Usage: Internal/External
2571 *
2572 * </ini>
2573 */
2574#define CFG_STA_KEEPALIVE_METHOD_NAME "gStaKeepAliveMethod"
2575#define CFG_STA_KEEPALIVE_METHOD_MIN (HDD_STA_KEEPALIVE_NULL_DATA)
2576#define CFG_STA_KEEPALIVE_METHOD_MAX (HDD_STA_KEEPALIVE_COUNT - 1)
2577#define CFG_STA_KEEPALIVE_METHOD_DEFAULT (HDD_STA_KEEPALIVE_GRAT_ARP)
2578
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002579/* WMM configuration */
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05302580/*
2581 * <ini>
2582 * WmmIsEnabled - Enable WMM feature
2583 * @Min: 0
2584 * @Max: 2
2585 * @Default: 0
2586 *
2587 * This ini is used to enable/disable WMM.
2588 *
2589 * Related: None.
2590 *
2591 * Supported Feature: WMM
2592 *
2593 * Usage: Internal/External
2594 *
2595 * </ini>
2596 */
2597#define CFG_QOS_WMM_MODE_NAME "WmmIsEnabled"
2598#define CFG_QOS_WMM_MODE_MIN (0)
2599#define CFG_QOS_WMM_MODE_MAX (2) /* HDD_WMM_NO_QOS */
2600#define CFG_QOS_WMM_MODE_DEFAULT (0) /* HDD_WMM_AUTO */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002601
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05302602/*
2603 * <ini>
2604 * 80211eIsEnabled - Enable 802.11e feature
2605 * @Min: 0
2606 * @Max: 1
2607 * @Default: 0
2608 *
2609 * This ini is used to enable/disable 802.11e.
2610 *
2611 * Related: None.
2612 *
2613 * Supported Feature: 802.11e
2614 *
2615 * Usage: Internal/External
2616 *
2617 * </ini>
2618 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002619#define CFG_QOS_WMM_80211E_ENABLED_NAME "80211eIsEnabled"
2620#define CFG_QOS_WMM_80211E_ENABLED_MIN (0)
2621#define CFG_QOS_WMM_80211E_ENABLED_MAX (1)
2622#define CFG_QOS_WMM_80211E_ENABLED_DEFAULT (0)
2623
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05302624/*
2625 * <ini>
2626 * UapsdMask - To setup U-APSD mask for ACs
2627 * @Min: 0x00
2628 * @Max: 0xFF
2629 * @Default: 0x00
2630 *
2631 * This ini is used to setup U-APSD mask for ACs.
2632 *
2633 * Related: None.
2634 *
2635 * Supported Feature: WMM
2636 *
2637 * Usage: Internal/External
2638 *
2639 * </ini>
2640 */
2641#define CFG_QOS_WMM_UAPSD_MASK_NAME "UapsdMask"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002642#define CFG_QOS_WMM_UAPSD_MASK_MIN (0x00)
2643#define CFG_QOS_WMM_UAPSD_MASK_MAX (0xFF)
2644#define CFG_QOS_WMM_UAPSD_MASK_DEFAULT (0x00)
2645
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05302646/*
2647 * <ini>
2648 * ImplicitQosIsEnabled - Enableimplicit QOS
2649 * @Min: 0
2650 * @Max: 1
2651 * @Default: 0
2652 *
2653 * This ini is used to enable/disable implicit QOS.
2654 *
2655 * Related: None.
2656 *
2657 * Supported Feature: WMM
2658 *
2659 * Usage: Internal/External
2660 *
2661 * </ini>
2662 */
2663#define CFG_QOS_IMPLICIT_SETUP_ENABLED_NAME "ImplicitQosIsEnabled"
2664#define CFG_QOS_IMPLICIT_SETUP_ENABLED_MIN (0)
2665#define CFG_QOS_IMPLICIT_SETUP_ENABLED_MAX (1)
2666#define CFG_QOS_IMPLICIT_SETUP_ENABLED_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002667
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05302668/*
2669 * <ini>
2670 * InfraUapsdVoSrvIntv - Set Uapsd service interval for voice
2671 * @Min: 0
2672 * @Max: 4294967295UL
2673 * @Default: 20
2674 *
2675 * This ini is used to set Uapsd service interval for voice.
2676 *
2677 * Related: None.
2678 *
2679 * Supported Feature: WMM
2680 *
2681 * Usage: Internal/External
2682 *
2683 * </ini>
2684 */
2685#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_NAME "InfraUapsdVoSrvIntv"
2686#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_MIN (0)
2687#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_MAX (4294967295UL)
2688#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_DEFAULT (20)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002689
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05302690/*
2691 * <ini>
2692 * InfraUapsdVoSuspIntv - Set Uapsd suspension interval for voice
2693 * @Min: 0
2694 * @Max: 4294967295UL
2695 * @Default: 2000
2696 *
2697 * This ini is used to set Uapsd suspension interval for voice.
2698 *
2699 * Related: None.
2700 *
2701 * Supported Feature: WMM
2702 *
2703 * Usage: Internal/External
2704 *
2705 * </ini>
2706 */
2707#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_NAME "InfraUapsdVoSuspIntv"
2708#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_MIN (0)
2709#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_MAX (4294967295UL)
2710#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_DEFAULT (2000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002711
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05302712/*
2713 * <ini>
2714 * InfraUapsdViSrvIntv - Set Uapsd service interval for video
2715 * @Min: 0
2716 * @Max: 4294967295UL
2717 * @Default: 300
2718 *
2719 * This ini is used to set Uapsd service interval for video.
2720 *
2721 * Related: None.
2722 *
2723 * Supported Feature: WMM
2724 *
2725 * Usage: Internal/External
2726 *
2727 * </ini>
2728 */
2729#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_NAME "InfraUapsdViSrvIntv"
2730#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_MIN (0)
2731#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_MAX (4294967295UL)
2732#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_DEFAULT (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002733
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05302734/*
2735 * <ini>
2736 * InfraUapsdViSuspIntv - Set Uapsd suspension interval for video
2737 * @Min: 0
2738 * @Max: 4294967295UL
2739 * @Default: 2000
2740 *
2741 * This ini is used to set Uapsd suspension interval for video
2742 *
2743 * Related: None.
2744 *
2745 * Supported Feature: WMM
2746 *
2747 * Usage: Internal/External
2748 *
2749 * </ini>
2750 */
2751#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_NAME "InfraUapsdViSuspIntv"
2752#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_MIN (0)
2753#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_MAX (4294967295UL)
2754#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_DEFAULT (2000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002755
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05302756/*
2757 * <ini>
2758 * InfraUapsdBeSrvIntv - Set Uapsd service interval for BE
2759 * @Min: 0
2760 * @Max: 4294967295UL
2761 * @Default: 300
2762 *
2763 * This ini is used to set Uapsd service interval for BE
2764 *
2765 * Related: None.
2766 *
2767 * Supported Feature: WMM
2768 *
2769 * Usage: Internal/External
2770 *
2771 * </ini>
2772 */
2773#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_NAME "InfraUapsdBeSrvIntv"
2774#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_MIN (0)
2775#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_MAX (4294967295UL)
2776#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_DEFAULT (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002777
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05302778/*
2779 * <ini>
2780 * InfraUapsdBeSuspIntv - Set Uapsd suspension interval for BE
2781 * @Min: 0
2782 * @Max: 4294967295UL
2783 * @Default: 2000
2784 *
2785 * This ini is used to set Uapsd suspension interval for BE
2786 *
2787 * Related: None.
2788 *
2789 * Supported Feature: WMM
2790 *
2791 * Usage: Internal/External
2792 *
2793 * </ini>
2794 */
2795#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_NAME "InfraUapsdBeSuspIntv"
2796#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_MIN (0)
2797#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_MAX (4294967295UL)
2798#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_DEFAULT (2000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002799
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05302800/*
2801 * <ini>
2802 * InfraUapsdBkSrvIntv - Set Uapsd service interval for BK
2803 * @Min: 0
2804 * @Max: 4294967295UL
2805 * @Default: 300
2806 *
2807 * This ini is used to set Uapsd service interval for BK
2808 *
2809 * Related: None.
2810 *
2811 * Supported Feature: WMM
2812 *
2813 * Usage: Internal/External
2814 *
2815 * </ini>
2816 */
2817#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_NAME "InfraUapsdBkSrvIntv"
2818#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_MIN (0)
2819#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_MAX (4294967295UL)
2820#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_DEFAULT (300)
2821
2822/*
2823 * <ini>
2824 * InfraUapsdBkSuspIntv - Set Uapsd suspension interval for BK
2825 * @Min: 0
2826 * @Max: 4294967295UL
2827 * @Default: 2000
2828 *
2829 * This ini is used to set Uapsd suspension interval for BK
2830 *
2831 * Related: None.
2832 *
2833 * Supported Feature: WMM
2834 *
2835 * Usage: Internal/External
2836 *
2837 * </ini>
2838 */
2839#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_NAME "InfraUapsdBkSuspIntv"
2840#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_MIN (0)
2841#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_MAX (4294967295UL)
2842#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_DEFAULT (2000)
2843
2844/* default TSPEC parameters for AC_VO */
2845/*
2846 * <ini>
2847 * InfraDirAcVo - Set TSPEC direction for VO
2848 * @Min: 0
2849 * @Max: 3
2850 * @Default: 3
2851 *
2852 * This ini is used to set TSPEC direction for VO
2853 *
2854 * Related: None.
2855 *
2856 * Supported Feature: WMM
2857 *
2858 * Usage: Internal/External
2859 *
2860 * </ini>
2861 */
2862#define CFG_QOS_WMM_INFRA_DIR_AC_VO_NAME "InfraDirAcVo"
2863#define CFG_QOS_WMM_INFRA_DIR_AC_VO_MIN (0)
2864#define CFG_QOS_WMM_INFRA_DIR_AC_VO_MAX (3)
2865#define CFG_QOS_WMM_INFRA_DIR_AC_VO_DEFAULT (3) /*WLAN_QCT_CUST_WMM_TSDIR_BOTH*/
2866
2867/*
2868 * <ini>
2869 * InfraNomMsduSizeAcVo - Set normal MSDU size for VO
2870 * @Min: 0x0
2871 * @Max: 0xFFFF
2872 * @Default: 0x80D0
2873 *
2874 * This ini is used to set normal MSDU size for VO
2875 *
2876 * Related: None.
2877 *
2878 * Supported Feature: WMM
2879 *
2880 * Usage: Internal/External
2881 *
2882 * </ini>
2883 */
2884#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_NAME "InfraNomMsduSizeAcVo"
2885#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_MIN (0x0)
2886#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_MAX (0xFFFF)
2887#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_DEFAULT (0x80D0)
2888
2889/*
2890 * <ini>
2891 * InfraMeanDataRateAcVo - Set mean data rate for VO
2892 * @Min: 0x0
2893 * @Max: 0xFFFFFFFF
2894 * @Default: 0x14500
2895 *
2896 * This ini is used to set mean data rate for VO
2897 *
2898 * Related: None.
2899 *
2900 * Supported Feature: WMM
2901 *
2902 * Usage: Internal/External
2903 *
2904 * </ini>
2905 */
2906#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_NAME "InfraMeanDataRateAcVo"
2907#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_MIN (0x0)
2908#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_MAX (0xFFFFFFFF)
2909#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_DEFAULT (0x14500)
2910
2911/*
2912 * <ini>
2913 * InfraMinPhyRateAcVo - Set min PHY rate for VO
2914 * @Min: 0x0
2915 * @Max: 0xFFFFFFFF
2916 * @Default: 0x5B8D80
2917 *
2918 * This ini is used to set min PHY rate for VO
2919 *
2920 * Related: None.
2921 *
2922 * Supported Feature: WMM
2923 *
2924 * Usage: Internal/External
2925 *
2926 * </ini>
2927 */
2928#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_NAME "InfraMinPhyRateAcVo"
2929#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_MIN (0x0)
2930#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_MAX (0xFFFFFFFF)
2931#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_DEFAULT (0x5B8D80)
2932/*
2933 * <ini>
2934 * InfraSbaAcVo - Set surplus bandwidth allowance for VO
2935 * @Min: 0x2001
2936 * @Max: 0xFFFF
2937 * @Default: 0x2001
2938 *
2939 * This ini is used to set surplus bandwidth allowance for VO
2940 *
2941 * Related: None.
2942 *
2943 * Supported Feature: WMM
2944 *
2945 * Usage: Internal/External
2946 *
2947 * </ini>
2948 */
2949 #define CFG_QOS_WMM_INFRA_SBA_AC_VO_NAME "InfraSbaAcVo"
2950 #define CFG_QOS_WMM_INFRA_SBA_AC_VO_MIN (0x2001)
2951 #define CFG_QOS_WMM_INFRA_SBA_AC_VO_MAX (0xFFFF)
2952 #define CFG_QOS_WMM_INFRA_SBA_AC_VO_DEFAULT (0x2001)
2953
2954 /* default TSPEC parameters for AC_VI */
2955/*
2956 * <ini>
2957 * InfraDirAcVi - Set TSPEC direction for VI
2958 * @Min: 0
2959 * @Max: 3
2960 * @Default: 3
2961 *
2962 * This ini is used to set TSPEC direction for VI
2963 *
2964 * Related: None.
2965 *
2966 * Supported Feature: WMM
2967 *
2968 * Usage: Internal/External
2969 *
2970 * </ini>
2971 */
2972#define CFG_QOS_WMM_INFRA_DIR_AC_VI_NAME "InfraDirAcVi"
2973#define CFG_QOS_WMM_INFRA_DIR_AC_VI_MIN (0)
2974#define CFG_QOS_WMM_INFRA_DIR_AC_VI_MAX (3)
2975#define CFG_QOS_WMM_INFRA_DIR_AC_VI_DEFAULT (3) /*WLAN_QCT_CUST_WMM_TSDIR_BOTH*/
2976
2977/*
2978 * <ini>
2979 * InfraNomMsduSizeAcVi - Set normal MSDU size for VI
2980 * @Min: 0x0
2981 * @Max: 0xFFFF
2982 * @Default: 0x85DC
2983 *
2984 * This ini is used to set normal MSDU size for VI
2985 *
2986 * Related: None.
2987 *
2988 * Supported Feature: WMM
2989 *
2990 * Usage: Internal/External
2991 *
2992 * </ini>
2993 */
2994#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_NAME "InfraNomMsduSizeAcVi"
2995#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_MIN (0x0)
2996#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_MAX (0xFFFF)
2997#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_DEFAULT (0x85DC)
2998
2999/*
3000 * <ini>
3001 * InfraMeanDataRateAcVi - Set mean data rate for VI
3002 * @Min: 0x0
3003 * @Max: 0xFFFFFFFF
3004 * @Default: 0x57E40
3005 *
3006 * This ini is used to set mean data rate for VI
3007 *
3008 * Related: None.
3009 *
3010 * Supported Feature: WMM
3011 *
3012 * Usage: Internal/External
3013 *
3014 * </ini>
3015 */
3016#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_NAME "InfraMeanDataRateAcVi"
3017#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_MIN (0x0)
3018#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_MAX (0xFFFFFFFF)
3019#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_DEFAULT (0x57E40)
3020
3021/*
3022 * <ini>
3023 * iInfraMinPhyRateAcVi - Set min PHY rate for VI
3024 * @Min: 0x0
3025 * @Max: 0xFFFFFFFF
3026 * @Default: 0x5B8D80
3027 *
3028 * This ini is used to set min PHY rate for VI
3029 *
3030 * Related: None.
3031 *
3032 * Supported Feature: WMM
3033 *
3034 * Usage: Internal/External
3035 *
3036 * </ini>
3037 */
3038#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_NAME "InfraMinPhyRateAcVi"
3039#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_MIN (0x0)
3040#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_MAX (0xFFFFFFFF)
3041#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_DEFAULT (0x5B8D80)
3042
3043/*
3044 * <ini>
3045 * InfraSbaAcVi - Set surplus bandwidth allowance for VI
3046 * @Min: 0x2001
3047 * @Max: 0xFFFF
3048 * @Default: 0x2001
3049 *
3050 * This ini is used to set surplus bandwidth allowance for VI
3051 *
3052 * Related: None.
3053 *
3054 * Supported Feature: WMM
3055 *
3056 * Usage: Internal/External
3057 *
3058 * </ini>
3059 */
3060 #define CFG_QOS_WMM_INFRA_SBA_AC_VI_NAME "InfraSbaAcVi"
3061 #define CFG_QOS_WMM_INFRA_SBA_AC_VI_MIN (0x2001)
3062 #define CFG_QOS_WMM_INFRA_SBA_AC_VI_MAX (0xFFFF)
3063 #define CFG_QOS_WMM_INFRA_SBA_AC_VI_DEFAULT (0x2001)
3064
3065 /* default TSPEC parameters for AC_BE*/
3066/*
3067 * <ini>
3068 * InfraDirAcBe - Set TSPEC direction for BE
3069 * @Min: 0
3070 * @Max: 3
3071 * @Default: 3
3072 *
3073 * This ini is used to set TSPEC direction for BE
3074 *
3075 * Related: None.
3076 *
3077 * Supported Feature: WMM
3078 *
3079 * Usage: Internal/External
3080 *
3081 * </ini>
3082 */
3083#define CFG_QOS_WMM_INFRA_DIR_AC_BE_NAME "InfraDirAcBe"
3084#define CFG_QOS_WMM_INFRA_DIR_AC_BE_MIN (0)
3085#define CFG_QOS_WMM_INFRA_DIR_AC_BE_MAX (3)
3086#define CFG_QOS_WMM_INFRA_DIR_AC_BE_DEFAULT (3) /*WLAN_QCT_CUST_WMM_TSDIR_BOTH*/
3087
3088/*
3089 * <ini>
3090 * InfraNomMsduSizeAcBe - Set normal MSDU size for BE
3091 * @Min: 0x0
3092 * @Max: 0xFFFF
3093 * @Default: 0x85DC
3094 *
3095 * This ini is used to set normal MSDU size for BE
3096 *
3097 * Related: None.
3098 *
3099 * Supported Feature: WMM
3100 *
3101 * Usage: Internal/External
3102 *
3103 * </ini>
3104 */
3105#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_NAME "InfraNomMsduSizeAcBe"
3106#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_MIN (0x0)
3107#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_MAX (0xFFFF)
3108#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_DEFAULT (0x85DC)
3109
3110/*
3111 * <ini>
3112 * InfraMeanDataRateAcBe - Set mean data rate for BE
3113 * @Min: 0x0
3114 * @Max: 0xFFFFFFFF
3115 * @Default: 0x493E0
3116 *
3117 * This ini is used to set mean data rate for BE
3118 *
3119 * Related: None.
3120 *
3121 * Supported Feature: WMM
3122 *
3123 * Usage: Internal/External
3124 *
3125 * </ini>
3126 */
3127#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_NAME "InfraMeanDataRateAcBe"
3128#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_MIN (0x0)
3129#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_MAX (0xFFFFFFFF)
3130#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_DEFAULT (0x493E0)
3131
3132/*
3133 * <ini>
3134 * InfraMinPhyRateAcBe - Set min PHY rate for BE
3135 * @Min: 0x0
3136 * @Max: 0xFFFFFFFF
3137 * @Default: 0x5B8D80
3138 *
3139 * This ini is used to set min PHY rate for BE
3140 *
3141 * Related: None.
3142 *
3143 * Supported Feature: WMM
3144 *
3145 * Usage: Internal/External
3146 *
3147 * </ini>
3148 */
3149#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_NAME "InfraMinPhyRateAcBe"
3150#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_MIN (0x0)
3151#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_MAX (0xFFFFFFFF)
3152#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_DEFAULT (0x5B8D80)
3153
3154/*
3155 * <ini>
3156 * InfraSbaAcBe - Set surplus bandwidth allowance for BE
3157 * @Min: 0x2001
3158 * @Max: 0xFFFF
3159 * @Default: 0x2001
3160 *
3161 * This ini is used to set surplus bandwidth allowance for BE
3162 *
3163 * Related: None.
3164 *
3165 * Supported Feature: WMM
3166 *
3167 * Usage: Internal/External
3168 *
3169 * </ini>
3170 */
3171 #define CFG_QOS_WMM_INFRA_SBA_AC_BE_NAME "InfraSbaAcBe"
3172 #define CFG_QOS_WMM_INFRA_SBA_AC_BE_MIN (0x2001)
3173 #define CFG_QOS_WMM_INFRA_SBA_AC_BE_MAX (0xFFFF)
3174 #define CFG_QOS_WMM_INFRA_SBA_AC_BE_DEFAULT (0x2001)
3175
3176 /* default TSPEC parameters for AC_Bk*/
3177/*
3178 * <ini>
3179 * InfraDirAcBk - Set TSPEC direction for BK
3180 * @Min: 0
3181 * @Max: 3
3182 * @Default: 3
3183 *
3184 * This ini is used to set TSPEC direction for BK
3185 *
3186 * Related: None.
3187 *
3188 * Supported Feature: WMM
3189 *
3190 * Usage: Internal/External
3191 *
3192 * </ini>
3193 */
3194#define CFG_QOS_WMM_INFRA_DIR_AC_BK_NAME "InfraDirAcBk"
3195#define CFG_QOS_WMM_INFRA_DIR_AC_BK_MIN (0)
3196#define CFG_QOS_WMM_INFRA_DIR_AC_BK_MAX (3)
3197#define CFG_QOS_WMM_INFRA_DIR_AC_BK_DEFAULT (3) /*WLAN_QCT_CUST_WMM_TSDIR_BOTH*/
3198
3199/*
3200 * <ini>
3201 * InfraNomMsduSizeAcBk - Set normal MSDU size for BK
3202 * @Min: 0x0
3203 * @Max: 0xFFFF
3204 * @Default: 0x85DC
3205 *
3206 * This ini is used to set normal MSDU size for BK
3207 *
3208 * Related: None.
3209 *
3210 * Supported Feature: WMM
3211 *
3212 * Usage: Internal/External
3213 *
3214 * </ini>
3215 */
3216#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_NAME "InfraNomMsduSizeAcBk"
3217#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_MIN (0x0)
3218#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_MAX (0xFFFF)
3219#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_DEFAULT (0x85DC)
3220
3221/*
3222 * <ini>
3223 * InfraMeanDataRateAcBk - Set mean data rate for BK
3224 * @Min: 0x0
3225 * @Max: 0xFFFFFFFF
3226 * @Default: 0x493E0
3227 *
3228 * This ini is used to set mean data rate for BK
3229 *
3230 * Related: None.
3231 *
3232 * Supported Feature: WMM
3233 *
3234 * Usage: Internal/External
3235 *
3236 * </ini>
3237 */
3238#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_NAME "InfraMeanDataRateAcBk"
3239#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_MIN (0x0)
3240#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_MAX (0xFFFFFFFF)
3241#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_DEFAULT (0x493E0)
3242
3243/*
3244 * <ini>
3245 * InfraMinPhyRateAcBke - Set min PHY rate for BK
3246 * @Min: 0x0
3247 * @Max: 0xFFFFFFFF
3248 * @Default: 0x5B8D80
3249 *
3250 * This ini is used to set min PHY rate for BK
3251 *
3252 * Related: None.
3253 *
3254 * Supported Feature: WMM
3255 *
3256 * Usage: Internal/External
3257 *
3258 * </ini>
3259 */
3260#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_NAME "InfraMinPhyRateAcBk"
3261#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_MIN (0x0)
3262#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_MAX (0xFFFFFFFF)
3263#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_DEFAULT (0x5B8D80)
3264
3265/*
3266 * <ini>
3267 * InfraSbaAcBk - Set surplus bandwidth allowance for BK
3268 * @Min: 0x2001
3269 * @Max: 0xFFFF
3270 * @Default: 0x2001
3271 *
3272 * This ini is used to set surplus bandwidth allowance for BK
3273 *
3274 * Related: None.
3275 *
3276 * Supported Feature: WMM
3277 *
3278 * Usage: Internal/External
3279 *
3280 * </ini>
3281 */
3282 #define CFG_QOS_WMM_INFRA_SBA_AC_BK_NAME "InfraSbaAcBk"
3283 #define CFG_QOS_WMM_INFRA_SBA_AC_BK_MIN (0x2001)
3284 #define CFG_QOS_WMM_INFRA_SBA_AC_BK_MAX (0xFFFF)
3285 #define CFG_QOS_WMM_INFRA_SBA_AC_BK_DEFAULT (0x2001)
3286
3287/*
3288 * <ini>
3289 * burstSizeDefinition - Set TS burst size
3290 * @Min: 0
3291 * @Max: 1
3292 * @Default: 0
3293 *
3294 * This ini is used to set TS burst size
3295 *
3296 * Related: None.
3297 *
3298 * Supported Feature: WMM
3299 *
3300 * Usage: Internal/External
3301 *
3302 * </ini>
3303 */
3304#define CFG_QOS_WMM_BURST_SIZE_DEFN_NAME "burstSizeDefinition"
3305#define CFG_QOS_WMM_BURST_SIZE_DEFN_MIN (0)
3306#define CFG_QOS_WMM_BURST_SIZE_DEFN_MAX (1)
3307#define CFG_QOS_WMM_BURST_SIZE_DEFN_DEFAULT (0)
3308
3309/*
3310 * <ini>
3311 * tsInfoAckPolicy - Set TS ack policy
3312 * @Min: 0x00
3313 * @Max: 0x01
3314 * @Default: 0x00
3315 *
3316 * This ini is used to set TS ack policy
3317 *
3318 * Related: None.
3319 *
3320 * Supported Feature: WMM
3321 *
3322 * Usage: Internal/External
3323 *
3324 * </ini>
3325 */
3326#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_NAME "tsInfoAckPolicy"
3327#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_MIN (0x00)
3328#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_MAX (0x01)
3329#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_DEFAULT (0x00)
3330
3331/*
3332 * <ini>
3333 * SingleTIDRC - Set replay counter for all TID's
3334 * @Min: 0
3335 * @Max: 1
3336 * @Default: 1
3337 *
3338 * This ini is used to set replay counter for all TID's
3339 *
3340 * Related: None.
3341 *
3342 * Supported Feature: WMM
3343 *
3344 * Usage: Internal/External
3345 *
3346 * </ini>
3347 */
3348#define CFG_SINGLE_TID_RC_NAME "SingleTIDRC"
3349#define CFG_SINGLE_TID_RC_MIN (0) /* Separate replay counter for all TID */
3350#define CFG_SINGLE_TID_RC_MAX (1) /* Single replay counter for all TID */
3351#define CFG_SINGLE_TID_RC_DEFAULT (1)
3352
3353/*
3354 * <ini>
3355 * gAddTSWhenACMIsOff - Set ACM value for AC
3356 * @Min: 0
3357 * @Max: 1
3358 * @Default: 0
3359 *
3360 * This ini is used to set ACM value for AC
3361 *
3362 * Related: None.
3363 *
3364 * Supported Feature: WMM
3365 *
3366 * Usage: Internal/External
3367 *
3368 * </ini>
3369 */
3370#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_NAME "gAddTSWhenACMIsOff"
3371#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_MIN (0)
3372/* Send AddTs even when ACM is not set for the AC */
3373#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_MAX (1)
3374#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003375
3376#ifdef FEATURE_WLAN_ESE
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303377#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_NAME "InfraInactivityInterval"
3378#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_MIN (0)
3379#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_MAX (4294967295UL)
3380#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_DEFAULT (0) /* disabled */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003381
3382#define CFG_ESE_FEATURE_ENABLED_NAME "EseEnabled"
3383#define CFG_ESE_FEATURE_ENABLED_MIN (0)
3384#define CFG_ESE_FEATURE_ENABLED_MAX (1)
3385#define CFG_ESE_FEATURE_ENABLED_DEFAULT (0) /* disabled */
3386#endif /* FEATURE_WLAN_ESE */
3387
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003388#define CFG_LFR_FEATURE_ENABLED_NAME "FastRoamEnabled"
3389#define CFG_LFR_FEATURE_ENABLED_MIN (0)
3390#define CFG_LFR_FEATURE_ENABLED_MAX (1)
3391#define CFG_LFR_FEATURE_ENABLED_DEFAULT (0) /* disabled */
3392
3393#define CFG_LFR_MAWC_FEATURE_ENABLED_NAME "MAWCEnabled"
3394#define CFG_LFR_MAWC_FEATURE_ENABLED_MIN (0)
3395#define CFG_LFR_MAWC_FEATURE_ENABLED_MAX (1)
3396#define CFG_LFR_MAWC_FEATURE_ENABLED_DEFAULT (0) /* disabled */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003397
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003398/* This flag will control fasttransition in case of 11r and ese. */
3399/* Basically with this the whole neighbor roam, pre-auth, reassoc */
3400/* can be turned ON/OFF. */
3401/* With this turned OFF 11r will completely not work. */
3402/* For 11r this flag has to be ON. */
3403/* For ESE fastroam will not work. */
3404#define CFG_FAST_TRANSITION_ENABLED_NAME "FastTransitionEnabled"
3405#define CFG_FAST_TRANSITION_ENABLED_NAME_MIN (0)
3406#define CFG_FAST_TRANSITION_ENABLED_NAME_MAX (1)
3407#define CFG_FAST_TRANSITION_ENABLED_NAME_DEFAULT (1) /* Enabled */
3408
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08003409/* This parameter is used to decide whether to Roam or not. AP1 is
3410 * the currently associated AP and AP2 is chosen for roaming. The
3411 * Roaming will happen only if AP2 has better Signal Quality and it
3412 * has a RSSI better than AP1 in terms of RoamRssiDiff,and
3413 * RoamRssiDiff is the number of units (typically measured in dB) AP2
3414 * is better than AP1. This check is not done if the value is Zero
3415 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003416#define CFG_ROAM_RSSI_DIFF_NAME "RoamRssiDiff"
3417#define CFG_ROAM_RSSI_DIFF_MIN (0)
3418#define CFG_ROAM_RSSI_DIFF_MAX (30)
3419#define CFG_ROAM_RSSI_DIFF_DEFAULT (5)
3420
3421/*This parameter is used to set Wireless Extended Security Mode.*/
3422#define CFG_ENABLE_WES_MODE_NAME "gWESModeEnabled"
3423#define CFG_ENABLE_WES_MODE_NAME_MIN (0)
3424#define CFG_ENABLE_WES_MODE_NAME_MAX (1)
3425#define CFG_ENABLE_WES_MODE_NAME_DEFAULT (0)
3426
3427#define CFG_ROAM_SCAN_N_PROBES "gRoamScanNProbes"
3428#define CFG_ROAM_SCAN_N_PROBES_MIN (1)
3429#define CFG_ROAM_SCAN_N_PROBES_MAX (10)
3430#define CFG_ROAM_SCAN_N_PROBES_DEFAULT (2)
3431
3432#define CFG_ROAM_SCAN_HOME_AWAY_TIME "gRoamScanHomeAwayTime"
3433#define CFG_ROAM_SCAN_HOME_AWAY_TIME_MIN (0) /* 0 for disable */
3434#define CFG_ROAM_SCAN_HOME_AWAY_TIME_MAX (300)
3435#define CFG_ROAM_SCAN_HOME_AWAY_TIME_DEFAULT (CFG_ROAM_SCAN_HOME_AWAY_TIME_MIN)
3436/* disabled by default */
3437
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003438#define CFG_OKC_FEATURE_ENABLED_NAME "OkcEnabled"
3439#define CFG_OKC_FEATURE_ENABLED_MIN (0)
3440#define CFG_OKC_FEATURE_ENABLED_MAX (1)
3441#define CFG_OKC_FEATURE_ENABLED_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003442
3443#define CFG_ROAM_SCAN_OFFLOAD_ENABLED "gRoamScanOffloadEnabled"
3444#define CFG_ROAM_SCAN_OFFLOAD_ENABLED_MIN (0)
3445#define CFG_ROAM_SCAN_OFFLOAD_ENABLED_MAX (1)
3446#define CFG_ROAM_SCAN_OFFLOAD_ENABLED_DEFAULT (1)
3447
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003448#define CFG_TL_DELAYED_TRGR_FRM_INT_NAME "DelayedTriggerFrmInt"
3449#define CFG_TL_DELAYED_TRGR_FRM_INT_MIN 1
3450#define CFG_TL_DELAYED_TRGR_FRM_INT_MAX (4294967295UL)
3451#define CFG_TL_DELAYED_TRGR_FRM_INT_DEFAULT 3000
3452
Sreelakshmi Konamkided64d72017-02-23 10:39:26 +05303453/*
3454 * <ini>
3455 * gRrmEnable - Enable/Disable RRM
3456 * @Min: 0
3457 * @Max: 1
3458 * @Default: 0
3459 *
3460 * This ini is used to controls the capabilities (11 k) included
3461 * in the capabilities field.
3462 *
3463 * Related: None.
3464 *
3465 * Supported Feature: 11k
3466 *
3467 * Usage: Internal/External
3468 *
3469 * </ini>
3470 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003471#define CFG_RRM_ENABLE_NAME "gRrmEnable"
3472#define CFG_RRM_ENABLE_MIN (0)
3473#define CFG_RRM_ENABLE_MAX (1)
3474#define CFG_RRM_ENABLE_DEFAULT (0)
3475
Sreelakshmi Konamkided64d72017-02-23 10:39:26 +05303476/*
3477 * <ini>
3478 * gRrmRandnIntvl - Randomization interval
3479 * @Min: 10
3480 * @Max: 100
3481 * @Default: 100
3482 *
3483 * This ini is used to set randomization interval which is used to start a timer
3484 * of a random value within randomization interval. Next RRM Scan request
3485 * will be issued after the expiry of this random interval.
3486 *
3487 * Related: None.
3488 *
3489 * Supported Feature: 11k
3490 *
3491 * Usage: Internal/External
3492 *
3493 * </ini>
3494 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003495#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_NAME "gRrmRandnIntvl"
3496#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_MIN (10)
3497#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_MAX (100)
3498#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_DEFAULT (100)
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -08003499
Sreelakshmi Konamkided64d72017-02-23 10:39:26 +05303500/*
3501 * <ini>
3502 * rm_capability - Configure RM enabled capabilities IE
3503 * @Default: 73,10,91,00,04
3504 *
3505 * This ini is used to configure RM enabled capabilities IE.
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -08003506 * Using this INI, we can set/unset any of the bits in 5 bytes
3507 * (last 4bytes are reserved). Bit details are updated as per
3508 * Draft version of 11mc spec. (Draft P802.11REVmc_D4.2)
3509 *
Jeff Johnsond404d032016-09-08 14:51:43 -07003510 * Bitwise details are defined as bit mask in rrm_global.h
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -08003511 * Comma is used as a separator for each byte.
Sreelakshmi Konamkided64d72017-02-23 10:39:26 +05303512 *
3513 * Related: None.
3514 *
3515 * Supported Feature: 11k
3516 *
3517 * Usage: Internal/External
3518 *
3519 * </ini>
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -08003520 */
3521#define CFG_RM_CAPABILITY_NAME "rm_capability"
Jeff Johnsond404d032016-09-08 14:51:43 -07003522#define CFG_RM_CAPABILITY_DEFAULT "73,10,91,00,04"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003523
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003524#define CFG_FT_RESOURCE_REQ_NAME "gFTResourceReqSupported"
3525#define CFG_FT_RESOURCE_REQ_MIN (0)
3526#define CFG_FT_RESOURCE_REQ_MAX (1)
3527#define CFG_FT_RESOURCE_REQ_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003528
3529#define CFG_TELE_BCN_TRANS_LI_NAME "telescopicBeaconTransListenInterval"
3530#define CFG_TELE_BCN_TRANS_LI_MIN (0)
3531#define CFG_TELE_BCN_TRANS_LI_MAX (7)
3532#define CFG_TELE_BCN_TRANS_LI_DEFAULT (3)
3533
3534#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_NAME "telescopicBeaconTransListenIntervalNumIdleBcns"
3535#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_MIN (5)
3536#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_MAX (255)
3537#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_DEFAULT (10)
3538
3539#define CFG_TELE_BCN_MAX_LI_NAME "telescopicBeaconMaxListenInterval"
3540#define CFG_TELE_BCN_MAX_LI_MIN (0)
3541#define CFG_TELE_BCN_MAX_LI_MAX (7)
3542#define CFG_TELE_BCN_MAX_LI_DEFAULT (5)
3543
3544#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_NAME "telescopicBeaconMaxListenIntervalNumIdleBcns"
3545#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_MIN (5)
3546#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_MAX (255)
3547#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_DEFAULT (15)
3548
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003549#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_NAME "gNeighborLookupThreshold"
3550#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_MIN (10)
3551#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_MAX (120)
3552#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_DEFAULT (78)
3553
3554#define CFG_DELAY_BEFORE_VDEV_STOP_NAME "gDelayBeforeVdevStop"
3555#define CFG_DELAY_BEFORE_VDEV_STOP_MIN (2)
3556#define CFG_DELAY_BEFORE_VDEV_STOP_MAX (200)
3557#define CFG_DELAY_BEFORE_VDEV_STOP_DEFAULT (20)
3558
3559/*
3560 * This parameter is the drop in RSSI value that will trigger a precautionary
3561 * scan by firmware.
3562 * MAX value is choose so that this type of scan can be disabled by user.
3563 */
3564#define CFG_ROAM_RESCAN_RSSI_DIFF_NAME "gRoamRescanRssiDiff"
3565#define CFG_ROAM_RESCAN_RSSI_DIFF_MIN (0)
3566#define CFG_ROAM_RESCAN_RSSI_DIFF_MAX (100)
3567#define CFG_ROAM_RESCAN_RSSI_DIFF_DEFAULT (5)
3568
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003569#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_NAME "gMaxNeighborReqTries"
3570#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_MIN (1)
3571#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_MAX (4)
3572#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_DEFAULT (3)
3573
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003574#define CFG_ROAM_BMISS_FIRST_BCNT_NAME "gRoamBmissFirstBcnt"
3575#define CFG_ROAM_BMISS_FIRST_BCNT_MIN (5)
3576#define CFG_ROAM_BMISS_FIRST_BCNT_MAX (100)
3577#define CFG_ROAM_BMISS_FIRST_BCNT_DEFAULT (10)
3578
3579#define CFG_ROAM_BMISS_FINAL_BCNT_NAME "gRoamBmissFinalBcnt"
3580#define CFG_ROAM_BMISS_FINAL_BCNT_MIN (5)
3581#define CFG_ROAM_BMISS_FINAL_BCNT_MAX (100)
3582#define CFG_ROAM_BMISS_FINAL_BCNT_DEFAULT (10)
3583
3584#define CFG_ROAM_BEACON_RSSI_WEIGHT_NAME "gRoamBeaconRssiWeight"
3585#define CFG_ROAM_BEACON_RSSI_WEIGHT_MIN (0)
3586#define CFG_ROAM_BEACON_RSSI_WEIGHT_MAX (16)
3587#define CFG_ROAM_BEACON_RSSI_WEIGHT_DEFAULT (14)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003588
Sen, Devendra9ca8c432017-02-23 15:10:26 +05303589/*
3590 * <ini>
3591 * McastBcastFilter - Filters Mcast/Bcast Rx packets completely
3592 * @Min: 0
3593 * @Max: 3
3594 * @Default: 0
3595 *
3596 * This ini is used to send default NULL frame to AP
3597 *
3598 * Related: None
3599 *
3600 * Supported Feature: STA
3601 *
3602 * Usage: Internal/External
3603 *
3604 * </ini>
3605 */
3606
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003607#define CFG_MCAST_BCAST_FILTER_SETTING_NAME "McastBcastFilter"
3608#define CFG_MCAST_BCAST_FILTER_SETTING_MIN (0)
3609#define CFG_MCAST_BCAST_FILTER_SETTING_MAX (3)
3610#define CFG_MCAST_BCAST_FILTER_SETTING_DEFAULT (0)
3611
Sen, Devendra9ca8c432017-02-23 15:10:26 +05303612/*
3613 * <ini>
3614 * gDynamicPSPollvalue - Set dynamic PSpoll value
3615 * @Min: 0
3616 * @Max: 255
3617 * @Default: 0
3618 *
3619 * This ini is used to send default PSpoll value
3620 *
3621 * Related: None
3622 *
3623 * Supported Feature: STA
3624 *
3625 * Usage: Internal/External
3626 *
3627 * </ini>
3628 */
3629
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003630#define CFG_DYNAMIC_PSPOLL_VALUE_NAME "gDynamicPSPollvalue"
3631#define CFG_DYNAMIC_PSPOLL_VALUE_MIN (0)
3632#define CFG_DYNAMIC_PSPOLL_VALUE_MAX (255)
3633#define CFG_DYNAMIC_PSPOLL_VALUE_DEFAULT (0)
3634
Sen, Devendra9ca8c432017-02-23 15:10:26 +05303635/*
3636 * <ini>
3637 * gTelescopicBeaconWakeupEn - Set teles copic beacon wakeup
3638 * @Min: 0
3639 * @Max: 1
3640 * @Default: 0
3641 *
3642 * This ini is used to set default teles copic beacon wakeup
3643 *
3644 * Related: None
3645 *
3646 * Supported Feature: STA
3647 *
3648 * Usage: Internal/External
3649 *
3650 * </ini>
3651 */
3652
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003653#define CFG_TELE_BCN_WAKEUP_EN_NAME "gTelescopicBeaconWakeupEn"
3654#define CFG_TELE_BCN_WAKEUP_EN_MIN (0)
3655#define CFG_TELE_BCN_WAKEUP_EN_MAX (1)
3656#define CFG_TELE_BCN_WAKEUP_EN_DEFAULT (0)
3657
Sen, Devendra9ca8c432017-02-23 15:10:26 +05303658/*
3659 * <ini>
3660 * gValidateScanList - Set valid date scan list
3661 * @Min: 0
3662 * @Max: 65535
3663 * @Default: 30
3664 *
3665 * This ini is used to set default valid date scan list
3666 *
3667 * Related: None
3668 *
3669 * Supported Feature: STA
3670 *
3671 * Usage: Internal/External
3672 *
3673 * </ini>
3674 */
3675
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003676#define CFG_VALIDATE_SCAN_LIST_NAME "gValidateScanList"
3677#define CFG_VALIDATE_SCAN_LIST_MIN (0)
3678#define CFG_VALIDATE_SCAN_LIST_MAX (1)
3679#define CFG_VALIDATE_SCAN_LIST_DEFAULT (0)
3680
3681#define CFG_NULLDATA_AP_RESP_TIMEOUT_NAME "gNullDataApRespTimeout"
3682#define CFG_NULLDATA_AP_RESP_TIMEOUT_MIN (WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT_STAMIN)
3683#define CFG_NULLDATA_AP_RESP_TIMEOUT_MAX (WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT_STAMAX)
3684#define CFG_NULLDATA_AP_RESP_TIMEOUT_DEFAULT (WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT_STADEF)
3685
3686#define CFG_AP_DATA_AVAIL_POLL_PERIOD_NAME "gApDataAvailPollInterval"
3687#define CFG_AP_DATA_AVAIL_POLL_PERIOD_MIN (WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD_STAMIN)
3688#define CFG_AP_DATA_AVAIL_POLL_PERIOD_MAX (WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD_STAMAX)
3689#define CFG_AP_DATA_AVAIL_POLL_PERIOD_DEFAULT (WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD_STADEF)
3690
3691#define CFG_ENABLE_HOST_ARPOFFLOAD_NAME "hostArpOffload"
3692#define CFG_ENABLE_HOST_ARPOFFLOAD_MIN (0)
3693#define CFG_ENABLE_HOST_ARPOFFLOAD_MAX (1)
Manjeet Singhc5734182016-09-02 16:03:29 +05303694#define CFG_ENABLE_HOST_ARPOFFLOAD_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003695
3696#define CFG_ENABLE_HOST_SSDP_NAME "ssdp"
3697#define CFG_ENABLE_HOST_SSDP_MIN (0)
3698#define CFG_ENABLE_HOST_SSDP_MAX (1)
3699#define CFG_ENABLE_HOST_SSDP_DEFAULT (1)
3700
3701#define CFG_ENABLE_HOST_NSOFFLOAD_NAME "hostNSOffload"
3702#define CFG_ENABLE_HOST_NSOFFLOAD_MIN (0)
3703#define CFG_ENABLE_HOST_NSOFFLOAD_MAX (1)
Manjeet Singhc5734182016-09-02 16:03:29 +05303704#define CFG_ENABLE_HOST_NSOFFLOAD_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003705
Sen, Devendra9ca8c432017-02-23 15:10:26 +05303706/*
3707 * <ini>
3708 * BandCapability - Preferred band (0: Both, 1: 2.4G only, 2: 5G only)
3709 * @Min: 0
3710 * @Max: 2
3711 * @Default: 0
3712 *
3713 * This ini is used to set default band capability
3714 * (0: Both, 1: 2.4G only, 2: 5G only)
3715 *
3716 * Related: None
3717 *
3718 * Supported Feature: STA
3719 *
3720 * Usage: Internal/External
3721 *
3722 * </ini>
3723 */
3724
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003725#define CFG_BAND_CAPABILITY_NAME "BandCapability"
3726#define CFG_BAND_CAPABILITY_MIN (0)
3727#define CFG_BAND_CAPABILITY_MAX (2)
3728#define CFG_BAND_CAPABILITY_DEFAULT (0)
3729
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003730#define CFG_ENABLE_BYPASS_11D_NAME "gEnableBypass11d"
3731#define CFG_ENABLE_BYPASS_11D_MIN (0)
3732#define CFG_ENABLE_BYPASS_11D_MAX (1)
3733#define CFG_ENABLE_BYPASS_11D_DEFAULT (1)
3734
Sen, Devendra9ca8c432017-02-23 15:10:26 +05303735/*
Kapil Gupta825f1ba2017-01-03 12:24:01 +05303736 * gEnableDFSChnlScan - enable dfs channel scan.
3737 * @Min: 0
3738 * @Max: 1
3739 * @Default: 1
3740 *
3741 * This ini is used to enable/disable dfs channels in scan, enabling this
3742 * will enable driver to include dfs channels in its scan list.
3743 * Related: NA
3744 *
3745 * Supported Feature: DFS, Scan
3746 *
3747 * Usage: Internal/External
3748 *
3749 * </ini>
3750 */
3751#define CFG_ENABLE_DFS_CHNL_SCAN_NAME "gEnableDFSChnlScan"
3752#define CFG_ENABLE_DFS_CHNL_SCAN_MIN (0)
3753#define CFG_ENABLE_DFS_CHNL_SCAN_MAX (1)
3754#define CFG_ENABLE_DFS_CHNL_SCAN_DEFAULT (1)
3755
3756/*
3757 * <ini>
3758 * gEnableDFSPnoChnlScan - enable dfs channels in PNO scan
3759 * @Min: 0
3760 * @Max: 1
3761 * @Default: 1
3762 *
3763 * This ini is used to enable/disable dfs channels in PNO scan request,
3764 * enabling this ini enables driver to include dfs channels in its
3765 * PNO scan request
3766 * Related: NA
3767 *
3768 * Supported Feature: DFS, PNO
3769 *
3770 * Usage: Internal/External
3771 *
3772 * </ini>
3773 */
3774#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_NAME "gEnableDFSPnoChnlScan"
3775#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_MIN (0)
3776#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_MAX (1)
3777#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_DEFAULT (1)
3778
3779/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05303780 * <ini>
3781 * gEnableDumpCollect - It will use for collect the dumps
3782 * @Min: 0
3783 * @Max: 1
3784 * @Default: 1
3785 *
3786 * This ini is used to set collect default dump
3787 *
3788 * Related: None
3789 *
3790 * Supported Feature: STA
3791 *
3792 * Usage: Internal/External
3793 *
3794 * </ini>
3795 */
3796
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003797#define CFG_ENABLE_RAMDUMP_COLLECTION "gEnableDumpCollect"
3798#define CFG_ENABLE_RAMDUMP_COLLECTION_MIN (0)
3799#define CFG_ENABLE_RAMDUMP_COLLECTION_MAX (1)
3800#define CFG_ENABLE_RAMDUMP_COLLECTION_DEFAULT (1)
3801
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -07003802enum hdd_link_speed_rpt_type {
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003803 eHDD_LINK_SPEED_REPORT_ACTUAL = 0,
3804 eHDD_LINK_SPEED_REPORT_MAX = 1,
3805 eHDD_LINK_SPEED_REPORT_MAX_SCALED = 2,
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -07003806};
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05303807
3808/*
3809 * <ini>
3810 * gVhtChannelWidth - Channel width capability for 11ac
3811 * @Min: 0
3812 * @Max: 4
3813 * @Default: 3
3814 *
3815 * This ini is used to set channel width capability for 11AC.
3816 * eHT_CHANNEL_WIDTH_20MHZ = 0,
3817 * eHT_CHANNEL_WIDTH_40MHZ = 1,
3818 * eHT_CHANNEL_WIDTH_80MHZ = 2,
3819 * eHT_CHANNEL_WIDTH_160MHZ = 3,
3820 * eHT_CHANNEL_WIDTH_80P80MHZ = 4,
3821 *
3822 * Related: NA
3823 *
3824 * Supported Feature: 11AC
3825 *
3826 * Usage: External
3827 *
3828 * </ini>
3829 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003830#define CFG_VHT_CHANNEL_WIDTH "gVhtChannelWidth"
3831#define CFG_VHT_CHANNEL_WIDTH_MIN (0)
3832#define CFG_VHT_CHANNEL_WIDTH_MAX (4)
Kiran Kumar Lokere4bbbd0d2017-02-07 00:06:43 -08003833#define CFG_VHT_CHANNEL_WIDTH_DEFAULT (2)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003834
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05303835/*
3836* <ini>
3837* gVhtRxMCS - VHT Rx MCS capability for 1x1 mode
3838* @Min: 0
3839* @Max: 2
3840* @Default: 0
3841*
3842* This ini is used to set VHT Rx MCS capability for 1x1 mode.
3843* 0, MCS0-7
3844* 1, MCS0-8
3845* 2, MCS0-9
3846*
3847* Related: NA
3848*
3849* Supported Feature: 11AC
3850*
3851* Usage: Internal/External
3852*
3853* </ini>
3854*/
3855
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003856#define CFG_VHT_ENABLE_RX_MCS_8_9 "gVhtRxMCS"
3857#define CFG_VHT_ENABLE_RX_MCS_8_9_MIN (0)
3858#define CFG_VHT_ENABLE_RX_MCS_8_9_MAX (2)
3859#define CFG_VHT_ENABLE_RX_MCS_8_9_DEFAULT (0)
3860
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05303861/*
3862 * <ini>
3863 * gVhtTxMCS - VHT Tx MCS capability for 1x1 mode
3864 * @Min: 0
3865 * @Max: 2
3866 * @Default: 0
3867 *
3868 * This ini is used to set VHT Tx MCS capability for 1x1 mode.
3869 * 0, MCS0-7
3870 * 1, MCS0-8
3871 * 2, MCS0-9
3872 *
3873 * Related: NA
3874 *
3875 * Supported Feature: 11AC
3876 *
3877 * Usage: Internal/External
3878 *
3879 * </ini>
3880 */
3881
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003882#define CFG_VHT_ENABLE_TX_MCS_8_9 "gVhtTxMCS"
3883#define CFG_VHT_ENABLE_TX_MCS_8_9_MIN (0)
3884#define CFG_VHT_ENABLE_TX_MCS_8_9_MAX (2)
3885#define CFG_VHT_ENABLE_TX_MCS_8_9_DEFAULT (0)
3886
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05303887/*
3888 * <ini>
3889 * gVhtRxMCS2x2 - VHT Rx MCS capability for 2x2 mode
3890 * @Min: 0
3891 * @Max: 2
3892 * @Default: 0
3893 *
3894 * This ini is used to set VHT Rx MCS capability for 2x2 mode.
3895 * 0, MCS0-7
3896 * 1, MCS0-8
3897 * 2, MCS0-9
3898 *
3899 * Related: NA
3900 *
3901 * Supported Feature: 11AC
3902 *
3903 * Usage: External
3904 *
3905 * </ini>
3906 */
3907
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003908#define CFG_VHT_ENABLE_RX_MCS2x2_8_9 "gVhtRxMCS2x2"
3909#define CFG_VHT_ENABLE_RX_MCS2x2_8_9_MIN (0)
3910#define CFG_VHT_ENABLE_RX_MCS2x2_8_9_MAX (2)
3911#define CFG_VHT_ENABLE_RX_MCS2x2_8_9_DEFAULT (0)
3912
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05303913/*
3914 * <ini>
3915 * gVhtTxMCS2x2 - VHT Tx MCS capability for 2x2 mode
3916 * @Min: 0
3917 * @Max: 2
3918 * @Default: 0
3919 *
3920 * This ini is used to set VHT Tx MCS capability for 2x2 mode.
3921 * 0, MCS0-7
3922 * 1, MCS0-8
3923 * 2, MCS0-9
3924 *
3925 * Related: NA
3926 *
3927 * Supported Feature: 11AC
3928 *
3929 * Usage: External
3930 *
3931 * </ini>
3932 */
3933
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003934#define CFG_VHT_ENABLE_TX_MCS2x2_8_9 "gVhtTxMCS2x2"
3935#define CFG_VHT_ENABLE_TX_MCS2x2_8_9_MIN (0)
3936#define CFG_VHT_ENABLE_TX_MCS2x2_8_9_MAX (2)
3937#define CFG_VHT_ENABLE_TX_MCS2x2_8_9_DEFAULT (0)
3938
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05303939/*
3940 * <ini>
3941 * gEnable2x2 - Enables/disables VHT Tx/Rx MCS values for 2x2
3942 * @Min: 0
3943 * @Max: 1
3944 * @Default: 0
3945 *
3946 * This ini disables/enables 2x2 mode. If this is zero then DUT operates as 1x1
3947 *
3948 * 0, Disable
3949 * 1, Enable
3950 *
3951 * Related: NA
3952 *
3953 * Supported Feature: 11AC
3954 *
3955 * Usage: External
3956 *
3957 * </ini>
3958 */
3959
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003960#define CFG_VHT_ENABLE_2x2_CAP_FEATURE "gEnable2x2"
3961#define CFG_VHT_ENABLE_2x2_CAP_FEATURE_MIN (0)
3962#define CFG_VHT_ENABLE_2x2_CAP_FEATURE_MAX (1)
3963#define CFG_VHT_ENABLE_2x2_CAP_FEATURE_DEFAULT (0)
3964
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05303965/*
3966 * <ini>
3967 * gStaPrefer80MHzOver160MHz - set Sta perferance to connect in 80HZ/160HZ
3968 * @Min: 0
3969 * @Max: 1
3970 * @Default: 1
3971 *
3972 * This ini is used to set Sta perferance to connect in 80HZ/160HZ
3973 *
3974 * 0 - Connects in 160MHz 1x1 when AP is 160MHz 2x2
Kiran Kumar Lokere1aa9c9a2016-10-05 18:50:59 -07003975 * 1 - Connects in 80MHz 2x2 when AP is 160MHz 2x2
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05303976 *
3977 * Related: NA
3978 *
3979 * Supported Feature: 11AC
3980 *
3981 * Usage: External
3982 *
3983 * </ini>
Kiran Kumar Lokere1aa9c9a2016-10-05 18:50:59 -07003984 */
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05303985
Kiran Kumar Lokere1aa9c9a2016-10-05 18:50:59 -07003986#define CFG_STA_PREFER_80MHZ_OVER_160MHZ "gStaPrefer80MHzOver160MHz"
3987#define CFG_STA_PREFER_80MHZ_OVER_160MHZ_MIN (0)
3988#define CFG_STA_PREFER_80MHZ_OVER_160MHZ_MAX (1)
3989#define CFG_STA_PREFER_80MHZ_OVER_160MHZ_DEFAULT (1)
3990
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07003991/*
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05303992 * <ini>
3993 * gVdevTypeNss_2g - set Number of streams per VDEV for 2G band.
3994 * @Min: 0x5555
3995 * @Max: 0xAAAA
3996 * @Default: 0xAAAA
3997 *
3998 * This ini is used to set set Number of streams per VDEV for 2G band
3999 *
4000 * These Nss parameters will have 32-bit configuration value, 2 bits are
4001 * allocated for each vdev.
4002 * Valid values are:
4003 * Min value – 0x5555
4004 * Max value – 0xAAAA
4005 * Default value will be 0xAAAA for both the parameters.
4006 * Value 0x5555 will configure all vdevs in 1x1 mode in 2.4G band.
4007 * Value 0xAAAA will configure all vdevs in 2x2 mode in 2.4G band.
4008 *
4009 * The max value is defined based on the valid max Nss of the vdev, the valid
4010 * values for each vdev 2-bits are 0x1 and 0x2. 0x3 and 0x0 are not valid vdev
4011 * Nss values.
4012 *
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07004013 * NSS cfg bit definition.
4014 * STA BIT[0:1]
4015 * SAP BIT[2:3]
4016 * P2P_GO BIT[4:5]
4017 * P2P_CLIENT BIT[6:7]
4018 * IBSS BIT[8:9]
4019 * TDLS BIT[10:11]
4020 * P2P_DEVICE BIT[12:13]
4021 * OCB BIT[14:15]
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304022 *
4023 * Related: NA
4024 *
4025 * Supported Feature: Antenna Sharing
4026 *
4027 * Usage: External
4028 *
4029 * </ini>
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07004030 */
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304031
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07004032#define CFG_VDEV_TYPE_NSS_2G "gVdevTypeNss_2g"
4033#define CFG_VDEV_TYPE_NSS_2G_MIN (0x5555)
4034#define CFG_VDEV_TYPE_NSS_2G_MAX (0xAAAA)
4035#define CFG_VDEV_TYPE_NSS_2G_DEFAULT (0xAAAA)
4036
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304037/*
4038 * <ini>
4039 * gVdevTypeNss_5g - set Number of streams per VDEV for 5G band.
4040 * @Min: 0x5555
4041 * @Max: 0xAAAA
4042 * @Default: 0xAAAA
4043 *
4044 * This ini is used to set set Number of streams per VDEV for 2G band
4045 *
4046 * These Nss parameters will have 32-bit configuration value, 2 bits are
4047 * allocated for each vdev.
4048 * Valid values are:
4049 * Min value – 0x5555
4050 * Max value – 0xAAAA
4051 * Default value will be 0xAAAA for both the parameters.
4052 * Value 0x5555 will configure all vdevs in 1x1 mode in 5 band.
4053 * Value 0xAAAA will configure all vdevs in 2x2 mode in 5 band.
4054 *
4055 * The max value is defined based on the valid max Nss of the vdev, the valid
4056 * values for each vdev 2-bits are 0x1 and 0x2. 0x3 and 0x0 are not valid vdev
4057 * Nss values.
4058 *
4059 * NSS cfg bit definition.
4060 * STA BIT[0:1]
4061 * SAP BIT[2:3]
4062 * P2P_GO BIT[4:5]
4063 * P2P_CLIENT BIT[6:7]
4064 * IBSS BIT[8:9]
4065 * TDLS BIT[10:11]
4066 * P2P_DEVICE BIT[12:13]
4067 * OCB BIT[14:15]
4068 *
4069 * Related: NA
4070 *
4071 * Supported Feature: Antenna Sharing
4072 *
4073 * Usage: External
4074 *
4075 * </ini>
4076 */
4077
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07004078#define CFG_VDEV_TYPE_NSS_5G "gVdevTypeNss_5g"
4079#define CFG_VDEV_TYPE_NSS_5G_MIN (0x5555)
4080#define CFG_VDEV_TYPE_NSS_5G_MAX (0xAAAA)
4081#define CFG_VDEV_TYPE_NSS_5G_DEFAULT (0xAAAA)
4082
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304083/*
4084 * <ini>
4085 * gEnableMuBformee - Enables/disables multi-user (MU) beam formee capability
4086 * @Min: 0
4087 * @Max: 1
4088 * @Default: 0
4089 *
4090 * This ini enables/disables multi-user (MU) beam formee
4091 * capability
4092 *
4093 * Change MU Bformee only when gTxBFEnable is enabled.
4094 * When gTxBFEnable and gEnableMuBformee are set, MU beam formee capability is
4095 * enabled.
4096 * Related: gTxBFEnable
4097 *
4098 * Supported Feature: 11AC
4099 *
4100 * Usage: External
4101 *
4102 * </ini>
4103 */
4104
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004105#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE "gEnableMuBformee"
4106#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_MIN (0)
4107#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_MAX (1)
4108#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_DEFAULT (0)
4109
4110#define CFG_VHT_ENABLE_PAID_FEATURE "gEnablePAID"
4111#define CFG_VHT_ENABLE_PAID_FEATURE_MIN (0)
4112#define CFG_VHT_ENABLE_PAID_FEATURE_MAX (1)
4113#define CFG_VHT_ENABLE_PAID_FEATURE_DEFAULT (0)
4114
4115#define CFG_VHT_ENABLE_GID_FEATURE "gEnableGID"
4116#define CFG_VHT_ENABLE_GID_FEATURE_MIN (0)
4117#define CFG_VHT_ENABLE_GID_FEATURE_MAX (1)
4118#define CFG_VHT_ENABLE_GID_FEATURE_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004119
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304120/*
4121 * <ini>
4122 * gSetTxChainmask1x1 - Sets Transmit chain mask.
4123 * @Min: 1
4124 * @Max: 2
4125 * @Default: 1
4126 *
4127 * This ini Sets Transmit chain mask.
4128 *
4129 * If gEnable2x2 is disabled, gSetTxChainmask1x1 and gSetRxChainmask1x1 values
4130 * are taken into account. If chainmask value exceeds the maximum number of
4131 * chains supported by target, the max number of chains is used. By default,
4132 * chain0 is selected for both Tx and Rx.
4133 * gSetTxChainmask1x1=1 or gSetRxChainmask1x1=1 to select chain0.
4134 * gSetTxChainmask1x1=2 or gSetRxChainmask1x1=2 to select chain1.
4135 *
4136 * Supported Feature: 11AC
4137 *
4138 * Usage: External
4139 *
4140 * </ini>
4141 */
4142
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004143#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK "gSetTxChainmask1x1"
4144#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK_MIN (1)
4145#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK_MAX (2)
4146#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK_DEFAULT (1)
4147
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304148/*
4149 * <ini>
4150 * gSetRxChainmask1x1 - Sets Receive chain mask.
4151 * @Min: 1
4152 * @Max: 2
4153 * @Default: 1
4154 *
4155 * This ini is used to set Receive chain mask.
4156 *
4157 * If gEnable2x2 is disabled, gSetTxChainmask1x1 and gSetRxChainmask1x1 values
4158 * are taken into account. If chainmask value exceeds the maximum number of
4159 * chains supported by target, the max number of chains is used. By default,
4160 * chain0 is selected for both Tx and Rx.
4161 * gSetTxChainmask1x1=1 or gSetRxChainmask1x1=1 to select chain0.
4162 * gSetTxChainmask1x1=2 or gSetRxChainmask1x1=2 to select chain1.
4163 *
4164 * Supported Feature: 11AC
4165 *
4166 * Usage: External
4167 *
4168 * </ini>
4169 */
4170
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004171#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK "gSetRxChainmask1x1"
4172#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK_MIN (1)
4173#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK_MAX (2)
4174#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK_DEFAULT (1)
4175
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304176/*
4177 * <ini>
4178 * gEnableAMPDUPS - Enable the AMPDUPS
4179 * @Min: 0
4180 * @Max: 1
4181 * @Default: 0
4182 *
4183 * This ini is used to set default AMPDUPS
4184 *
4185 * Related: None
4186 *
4187 * Supported Feature: STA
4188 *
4189 * Usage: Internal/External
4190 *
4191 * </ini>
4192 */
4193
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004194#define CFG_ENABLE_AMPDUPS_FEATURE "gEnableAMPDUPS"
4195#define CFG_ENABLE_AMPDUPS_FEATURE_MIN (0)
4196#define CFG_ENABLE_AMPDUPS_FEATURE_MAX (1)
4197#define CFG_ENABLE_AMPDUPS_FEATURE_DEFAULT (0)
4198
4199#define CFG_HT_ENABLE_SMPS_CAP_FEATURE "gEnableHtSMPS"
4200#define CFG_HT_ENABLE_SMPS_CAP_FEATURE_MIN (0)
4201#define CFG_HT_ENABLE_SMPS_CAP_FEATURE_MAX (1)
4202#define CFG_HT_ENABLE_SMPS_CAP_FEATURE_DEFAULT (0)
4203
4204#define CFG_HT_SMPS_CAP_FEATURE "gHtSMPS"
4205#define CFG_HT_SMPS_CAP_FEATURE_MIN (0)
4206#define CFG_HT_SMPS_CAP_FEATURE_MAX (3)
4207#define CFG_HT_SMPS_CAP_FEATURE_DEFAULT (3)
4208
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304209/*
4210 * <ini>
4211 * gDisableDFSChSwitch - Disable channel switch if radar is found
4212 * @Min: 0
4213 * @Max: 1
4214 * @Default: 0
4215 *
4216 * This ini is used to disable channel switch if radar is found
4217 * on that channel.
4218 * Related: NA.
4219 *
4220 * Supported Feature: DFS
4221 *
4222 * Usage: Internal
4223 *
4224 * </ini>
4225 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004226#define CFG_DISABLE_DFS_CH_SWITCH "gDisableDFSChSwitch"
4227#define CFG_DISABLE_DFS_CH_SWITCH_MIN (0)
4228#define CFG_DISABLE_DFS_CH_SWITCH_MAX (1)
4229#define CFG_DISABLE_DFS_CH_SWITCH_DEFAULT (0)
4230
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304231/*
4232 * <ini>
4233 * gEnableDFSMasterCap - Enable DFS master capability
4234 * @Min: 0
4235 * @Max: 1
4236 * @Default: 0
4237 *
4238 * This ini is used to enable/disable the DFS master capability.
4239 * Disabling it will cause driver to not advertise the spectrum
4240 * management capability
4241 * Related: NA.
4242 *
4243 * Supported Feature: DFS
4244 *
4245 * Usage: Internal/External
4246 *
4247 * </ini>
4248 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004249#define CFG_ENABLE_DFS_MASTER_CAPABILITY "gEnableDFSMasterCap"
4250#define CFG_ENABLE_DFS_MASTER_CAPABILITY_MIN (0)
4251#define CFG_ENABLE_DFS_MASTER_CAPABILITY_MAX (1)
4252#define CFG_ENABLE_DFS_MASTER_CAPABILITY_DEFAULT (0)
4253
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304254/*
4255 * <ini>
4256 * gSapPreferredChanLocation - Restrict channel switches between ondoor and
4257 * outdoor.
4258 * @Min: 0
4259 * @Max: 2
4260 * @Default: 0
4261 *
4262 * This ini is used for restricting channel switches between Indoor and outdoor
4263 * channels after radar detection.
4264 * 0- No preferred channel location
4265 * 1- Use indoor channels only
4266 * 2- Use outdoor channels only
4267 * Related: NA.
4268 *
4269 * Supported Feature: DFS
4270 *
4271 * Usage: Internal/External
4272 *
4273 * </ini>
4274 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004275#define CFG_SAP_PREFERRED_CHANNEL_LOCATION "gSapPreferredChanLocation"
4276#define CFG_SAP_PREFERRED_CHANNEL_LOCATION_MIN (0)
4277#define CFG_SAP_PREFERRED_CHANNEL_LOCATION_MAX (2)
4278#define CFG_SAP_PREFERRED_CHANNEL_LOCATION_DEFAULT (0)
4279
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304280/*
4281 * <ini>
4282 * gDisableDfsJapanW53 - Block W53 channels in random channel selection
4283 * @Min: 0
4284 * @Max: 1
4285 * @Default: 0
4286 *
4287 * This ini is used to block W53 Japan channel in random channel selection
4288 * Related: NA.
4289 *
4290 * Supported Feature: DFS
4291 *
4292 * Usage: Internal/External
4293 *
4294 * </ini>
4295 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004296#define CFG_DISABLE_DFS_JAPAN_W53 "gDisableDfsJapanW53"
4297#define CFG_DISABLE_DFS_JAPAN_W53_MIN (0)
4298#define CFG_DISABLE_DFS_JAPAN_W53_MAX (1)
4299#define CFG_DISABLE_DFS_JAPAN_W53_DEFAULT (0)
4300
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304301/*
4302 * <ini>
4303 * gDisableDfsJapanW53 - Enable dfs phyerror filtering offload in FW
4304 * @Min: 0
4305 * @Max: 1
4306 * @Default: 1
4307 *
4308 * This ini is used to to enable dfs phyerror filtering offload to firmware
4309 * Enabling it will cause basic phy error to be discarding in firmware.
4310 * Related: NA.
4311 *
4312 * Supported Feature: DFS
4313 *
4314 * Usage: Internal/External
4315 *
4316 * </ini>
4317 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004318#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_NAME "dfsPhyerrFilterOffload"
4319#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_MIN (0)
4320#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_MAX (1)
4321#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_DEFAULT (0)
4322
4323#define CFG_REPORT_MAX_LINK_SPEED "gReportMaxLinkSpeed"
4324#define CFG_REPORT_MAX_LINK_SPEED_MIN (eHDD_LINK_SPEED_REPORT_ACTUAL)
4325#define CFG_REPORT_MAX_LINK_SPEED_MAX (eHDD_LINK_SPEED_REPORT_MAX_SCALED)
4326#define CFG_REPORT_MAX_LINK_SPEED_DEFAULT (eHDD_LINK_SPEED_REPORT_MAX_SCALED)
4327
4328/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304329 * <ini>
4330 * gLinkSpeedRssiHigh - Report the max possible speed with RSSI scaling
4331 * @Min: 0
4332 * @Max: 1
4333 * @Default: 0
4334 *
4335 * This ini is used to set default eHDD_LINK_SPEED_REPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004336 * Used when eHDD_LINK_SPEED_REPORT_SCALED is selected
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304337 *
4338 * Related: None
4339 *
4340 * Supported Feature: STA
4341 *
4342 * Usage: Internal/External
4343 *
4344 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004345 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304346
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004347#define CFG_LINK_SPEED_RSSI_HIGH "gLinkSpeedRssiHigh"
4348#define CFG_LINK_SPEED_RSSI_HIGH_MIN (-127)
4349#define CFG_LINK_SPEED_RSSI_HIGH_MAX (0)
4350#define CFG_LINK_SPEED_RSSI_HIGH_DEFAULT (-55)
4351
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304352/*
4353 * <ini>
4354 * gLinkSpeedRssiMed - Used when eHDD_LINK_SPEED_REPORT_SCALED is selected
4355 * @Min: -127
4356 * @Max: 0
4357 * @Default: -65
4358 *
4359 * This ini is used to set medium rssi link speed
4360 *
4361 * Related: None
4362 *
4363 * Supported Feature: STA
4364 *
4365 * Usage: Internal/External
4366 *
4367 * </ini>
4368 */
4369
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004370#define CFG_LINK_SPEED_RSSI_MID "gLinkSpeedRssiMed"
4371#define CFG_LINK_SPEED_RSSI_MID_MIN (-127)
4372#define CFG_LINK_SPEED_RSSI_MID_MAX (0)
4373#define CFG_LINK_SPEED_RSSI_MID_DEFAULT (-65)
4374
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304375/*
4376 * <ini>
4377 * gLinkSpeedRssiLow - Used when eHDD_LINK_SPEED_REPORT_SCALED is selected
4378 * @Min: -127
4379 * @Max: 0
4380 * @Default: -80
4381 *
4382 * This ini is used to set low rssi link speed
4383 *
4384 * Related: None
4385 *
4386 * Supported Feature: STA
4387 *
4388 * Usage: Internal/External
4389 *
4390 * </ini>
4391 */
4392
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004393#define CFG_LINK_SPEED_RSSI_LOW "gLinkSpeedRssiLow"
4394#define CFG_LINK_SPEED_RSSI_LOW_MIN (-127)
4395#define CFG_LINK_SPEED_RSSI_LOW_MAX (0)
4396#define CFG_LINK_SPEED_RSSI_LOW_DEFAULT (-80)
4397
4398#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_NAME "isP2pDeviceAddrAdministrated"
4399#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MIN (0)
4400#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MAX (1)
4401#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_DEFAULT (1)
4402
4403#define CFG_ENABLE_SSR "gEnableSSR"
4404#define CFG_ENABLE_SSR_MIN (0)
4405#define CFG_ENABLE_SSR_MAX (1)
4406#define CFG_ENABLE_SSR_DEFAULT (1)
4407
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304408/*
4409 * <ini>
4410 * gEnableOverLapCh - Enables Overlap Channel. If set, allow overlapping
4411 * channels to be selected for the SoftAP
4412 * @Min: 0
4413 * @Max: 1
4414 * @Default: 0
4415 *
4416 * This ini is used to set Overlap Channel
4417 *
4418 * Related: None
4419 *
4420 * Supported Feature: STA
4421 *
4422 * Usage: Internal/External
4423 *
4424 * </ini>
4425 */
4426
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004427#define CFG_ENABLE_OVERLAP_CH "gEnableOverLapCh"
4428#define CFG_ENABLE_OVERLAP_CH_MIN (0)
4429#define CFG_ENABLE_OVERLAP_CH_MAX (1)
4430#define CFG_ENABLE_OVERLAP_CH_DEFAULT (0)
4431
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304432/*
4433 * <ini>
4434 * gEnable5gEBT - Enables/disables 5G early beacon termination. When enabled
4435 * terminate the reception of beacon if the TIM element is
4436 * clear for the power saving
4437 * @Min: 0
4438 * @Max: 1
4439 * @Default: 1
4440 *
4441 * This ini is used to set default 5G early beacon termination
4442 *
4443 * Related: None
4444 *
4445 * Supported Feature: STA
4446 *
4447 * Usage: Internal/External
4448 *
4449 * </ini>
4450 */
4451
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004452#define CFG_PPS_ENABLE_5G_EBT "gEnable5gEBT"
4453#define CFG_PPS_ENABLE_5G_EBT_FEATURE_MIN (0)
4454#define CFG_PPS_ENABLE_5G_EBT_FEATURE_MAX (1)
Jeff Johnson860e1242016-09-20 08:59:23 -07004455#define CFG_PPS_ENABLE_5G_EBT_FEATURE_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004456
4457#define CFG_ENABLE_MEMORY_DEEP_SLEEP "gEnableMemDeepSleep"
4458#define CFG_ENABLE_MEMORY_DEEP_SLEEP_MIN (0)
4459#define CFG_ENABLE_MEMORY_DEEP_SLEEP_MAX (1)
4460#define CFG_ENABLE_MEMORY_DEEP_SLEEP_DEFAULT (1)
4461
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304462/*
4463 * <ini>
4464 * gDefaultRateIndex24Ghz -Set the rate index for 24Ghz
4465 * @Min: 1
4466 * @Max: 9
4467 * @Default: 1
4468 *
4469 * This ini is used to set default rate index
4470 * In cfg.dat 1=1MBPS, 2=2MBPS, 3=5_5MBPS, 4=11MBPS, 5=6MBPS, 6=9MBPS,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004471 * 7=12MBPS, 8=18MBPS, 9=24MBPS. But 6=9MBPS and 8=18MBPS are not basic
4472 * 11g rates and should not be set by gDefaultRateIndex24Ghz.
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304473 *
4474 * Related: None
4475 *
4476 * Supported Feature: STA
4477 *
4478 * Usage: Internal/External
4479 *
4480 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004481 */
4482
4483#define CFG_DEFAULT_RATE_INDEX_24GH "gDefaultRateIndex24Ghz"
4484#define CFG_DEFAULT_RATE_INDEX_24GH_MIN (1)
4485#define CFG_DEFAULT_RATE_INDEX_24GH_MAX (9)
4486#define CFG_DEFAULT_RATE_INDEX_24GH_DEFAULT (1)
4487
4488#define CFG_ENABLE_PACKET_LOG "gEnablePacketLog"
4489#define CFG_ENABLE_PACKET_LOG_MIN (0)
4490#define CFG_ENABLE_PACKET_LOG_MAX (1)
Poddar, Siddartheefe3482016-09-21 18:12:59 +05304491#ifdef FEATURE_PKTLOG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004492#define CFG_ENABLE_PACKET_LOG_DEFAULT (1)
Poddar, Siddartheefe3482016-09-21 18:12:59 +05304493#else
4494#define CFG_ENABLE_PACKET_LOG_DEFAULT (0)
4495#endif
4496
4497
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004498
4499/* gFwDebugLogType takes values from enum dbglog_process_t,
4500 * make default value as DBGLOG_PROCESS_NET_RAW to give the
4501 * logs to net link since cnss_diag service is started at boot
4502 * time by default.
4503 */
4504#define CFG_ENABLE_FW_LOG_TYPE "gFwDebugLogType"
4505#define CFG_ENABLE_FW_LOG_TYPE_MIN (0)
4506#define CFG_ENABLE_FW_LOG_TYPE_MAX (255)
4507#define CFG_ENABLE_FW_LOG_TYPE_DEFAULT (3)
4508
4509/* gFwDebugLogLevel takes values from enum DBGLOG_LOG_LVL,
4510 * make default value as DBGLOG_WARN to enable error and
4511 * warning logs by default.
4512 */
4513#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL "gFwDebugLogLevel"
4514#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL_MIN (0)
4515#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL_MAX (255)
Nishank Aggarwale239d962017-03-03 12:26:02 +05304516#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL_DEFAULT (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004517
4518/* For valid values of log levels check enum DBGLOG_LOG_LVL and
4519 * for valid values of module ids check enum WLAN_MODULE_ID.
4520 */
4521#define CFG_ENABLE_FW_MODULE_LOG_LEVEL "gFwDebugModuleLoglevel"
Dustin Browna13cf0d2017-03-08 15:18:28 -08004522#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"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004523
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +05304524/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304525 * <ini>
4526 * gEnableRTSProfiles - It will use configuring different RTS profiles
4527 * @Min: 0
4528 * @Max: 34
4529 * @Default: 33
4530 *
4531 * This ini used for configuring different RTS profiles
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +05304532 * to firmware.
4533 * Following are the valid values for the rtsprofile:
4534 * RTSCTS_DISABLED 0
4535 * RTSCTS_ENABLED_4_SECOND_RATESERIES 17
4536 * CTS2SELF_ENABLED_4_SECOND_RATESERIES 18
4537 * RTSCTS_ENABLED_4_SWRETRIES 33
4538 * CTS2SELF_ENABLED_4_SWRETRIES 34
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304539 *
4540 * Related: None
4541 *
4542 * Supported Feature: STA
4543 *
4544 * Usage: Internal/External
4545 *
4546 * </ini>
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +05304547 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304548
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +05304549#define CFG_ENABLE_FW_RTS_PROFILE "gEnableRTSProfiles"
4550#define CFG_ENABLE_FW_RTS_PROFILE_MIN (0)
4551#define CFG_ENABLE_FW_RTS_PROFILE_MAX (34)
4552#define CFG_ENABLE_FW_RTS_PROFILE_DEFAULT (33)
4553
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004554#ifdef FEATURE_GREEN_AP
4555#define CFG_ENABLE_GREEN_AP_FEATURE "gEnableGreenAp"
4556#define CFG_ENABLE_GREEN_AP_FEATURE_MIN (0)
4557#define CFG_ENABLE_GREEN_AP_FEATURE_MAX (1)
4558#define CFG_ENABLE_GREEN_AP_FEATURE_DEFAULT (1)
Ryan Hsucb118cf2015-11-09 16:03:53 -08004559
4560/* Enhanced Green AP (EGAP) flags/params */
4561#define CFG_ENABLE_EGAP_ENABLE_FEATURE "gEnableEGAP"
4562#define CFG_ENABLE_EGAP_ENABLE_FEATURE_MIN (0)
4563#define CFG_ENABLE_EGAP_ENABLE_FEATURE_MAX (1)
4564#define CFG_ENABLE_EGAP_ENABLE_FEATURE_DEFAULT (0)
4565
4566#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE "gEGAPInactTime"
4567#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE_MIN (0)
Kondabattini, Ganeshf3dca962016-08-10 20:03:46 +05304568#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE_MAX (300000)
Ryan Hsucb118cf2015-11-09 16:03:53 -08004569#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE_DEFAULT (1000)
4570
4571#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE "gEGAPWaitTime"
4572#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE_MIN (0)
Kondabattini, Ganeshf3dca962016-08-10 20:03:46 +05304573#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE_MAX (300000)
Ryan Hsucb118cf2015-11-09 16:03:53 -08004574#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE_DEFAULT (100)
4575
4576#define CFG_ENABLE_EGAP_FLAGS_FEATURE "gEGAPFeatures"
4577#define CFG_ENABLE_EGAP_FLAGS_FEATURE_MIN (0)
4578#define CFG_ENABLE_EGAP_FLAGS_FEATURE_MAX (15)
4579#define CFG_ENABLE_EGAP_FLAGS_FEATURE_DEFAULT (7)
4580/* end Enhanced Green AP flags/params */
4581
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004582#endif
4583
4584#ifdef FEATURE_WLAN_FORCE_SAP_SCC
Nitesh Shah03161d12016-12-06 18:30:12 +05304585/*
4586 * <ini>
4587 * gSapSccChanAvoidance - Channel avoidance for SAP in SCC.
4588 * @Min: 0
4589 * @Max: 1
4590 * @Default: 0
4591 *
4592 * This ini is used to enable/disable channel avoidance for SAP in SCC
4593 * scenario.
4594 *
4595 * Related: None.
4596 *
4597 * Supported Feature: Concurrency
4598 *
4599 * Usage: Internal/External
4600 *
4601 * </ini>
4602 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304603
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004604#define CFG_SAP_SCC_CHAN_AVOIDANCE "gSapSccChanAvoidance"
4605#define CFG_SAP_SCC_CHAN_AVOIDANCE_MIN (0)
4606#define CFG_SAP_SCC_CHAN_AVOIDANCE_MAX (1)
4607#define CFG_SAP_SCC_CHAN_AVOIDANCE_DEFAULT (0)
4608#endif /* FEATURE_WLAN_FORCE_SAP_SCC */
4609
4610/*
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05304611 * QDF Trace Enable Control
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004612 * Notes:
4613 * the MIN/MAX/DEFAULT values apply for all modules
4614 * the DEFAULT value is outside the valid range. if the DEFAULT
4615 * value is not overridden, then no change will be made to the
4616 * "built in" default values compiled into the code
4617 * values are a bitmap indicating which log levels are to enabled
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05304618 * (must match order of qdf_trace_level enumerations)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004619 * 00000001 FATAL
4620 * 00000010 ERROR
4621 * 00000100 WARN
4622 * 00001000 INFO
4623 * 00010000 INFO HIGH
4624 * 00100000 INFO MED
4625 * 01000000 INFO LOW
4626 * 10000000 DEBUG
4627 *
4628 * hence a value of 0xFF would set all bits (enable all logs)
4629 */
4630
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05304631#define CFG_QDF_TRACE_ENABLE_WDI_NAME "qdf_trace_enable_wdi"
4632#define CFG_QDF_TRACE_ENABLE_HDD_NAME "qdf_trace_enable_hdd"
4633#define CFG_QDF_TRACE_ENABLE_SME_NAME "qdf_trace_enable_sme"
4634#define CFG_QDF_TRACE_ENABLE_PE_NAME "qdf_trace_enable_pe"
4635#define CFG_QDF_TRACE_ENABLE_PMC_NAME "qdf_trace_enable_pmc"
4636#define CFG_QDF_TRACE_ENABLE_WMA_NAME "qdf_trace_enable_wma"
4637#define CFG_QDF_TRACE_ENABLE_SYS_NAME "qdf_trace_enable_sys"
4638#define CFG_QDF_TRACE_ENABLE_QDF_NAME "qdf_trace_enable_qdf"
4639#define CFG_QDF_TRACE_ENABLE_SAP_NAME "qdf_trace_enable_sap"
4640#define CFG_QDF_TRACE_ENABLE_HDD_SAP_NAME "qdf_trace_enable_hdd_sap"
4641#define CFG_QDF_TRACE_ENABLE_BMI_NAME "qdf_trace_enable_bmi"
4642#define CFG_QDF_TRACE_ENABLE_CFG_NAME "qdf_trace_enable_cfg"
4643#define CFG_QDF_TRACE_ENABLE_EPPING "qdf_trace_enable_epping"
4644#define CFG_QDF_TRACE_ENABLE_QDF_DEVICES "qdf_trace_enable_qdf_devices"
4645#define CFG_QDF_TRACE_ENABLE_TXRX_NAME "cfd_trace_enable_txrx"
4646#define CFG_QDF_TRACE_ENABLE_HTC_NAME "qdf_trace_enable_htc"
4647#define CFG_QDF_TRACE_ENABLE_HIF_NAME "qdf_trace_enable_hif"
4648#define CFG_CDR_TRACE_ENABLE_HDD_SAP_DATA_NAME "qdf_trace_enable_hdd_sap_data"
4649#define CFG_QDF_TRACE_ENABLE_HDD_DATA_NAME "qdf_trace_enable_hdd_data"
Naveen Rawat7df31862017-03-01 17:09:30 -08004650#define CFG_QDF_TRACE_ENABLE_WIFI_POS "qdf_trace_enable_wifi_pos"
Naveen Rawatf2b0dbd2017-03-27 10:00:15 -07004651#define CFG_QDF_TRACE_ENABLE_NAN "qdf_trace_enable_nan"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004652
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05304653#define CFG_QDF_TRACE_ENABLE_MIN (0)
4654#define CFG_QDF_TRACE_ENABLE_MAX (0xff)
4655#define CFG_QDF_TRACE_ENABLE_DEFAULT (0xffff)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004656
4657#define HDD_MCASTBCASTFILTER_FILTER_NONE 0x00
4658#define HDD_MCASTBCASTFILTER_FILTER_ALL_MULTICAST 0x01
4659#define HDD_MCASTBCASTFILTER_FILTER_ALL_BROADCAST 0x02
4660#define HDD_MCASTBCASTFILTER_FILTER_ALL_MULTICAST_BROADCAST 0x03
4661#define HDD_MULTICAST_FILTER_LIST 0x04
4662#define HDD_MULTICAST_FILTER_LIST_CLEAR 0x05
4663
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004664/*
4665 * Enable Dynamic DTIM
4666 * Options
4667 * 0 -Disable DynamicDTIM
4668 * 1 to 5 - SLM will switch to DTIM specified here when host suspends and
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08004669 * switch DTIM1 when host resumes
4670 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004671#define CFG_ENABLE_DYNAMIC_DTIM_NAME "gEnableDynamicDTIM"
4672#define CFG_ENABLE_DYNAMIC_DTIM_MIN (0)
Rajeev Kumar Sirasanagandla4a716ad2016-10-18 18:16:33 +05304673#define CFG_ENABLE_DYNAMIC_DTIM_MAX (9)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004674#define CFG_ENABLE_DYNAMIC_DTIM_DEFAULT (0)
4675
4676/*
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004677 * Driver Force ACS is reintroduced for android SAP legacy configuration method.
4678 * If Driver force acs is enabled, channel/ hw config from hostapd is ignored.
4679 * Driver uses INI params dot11Mode, channel bonding mode and vht chan width
4680 * to derive ACS HW mode and operating BW.
4681 *
4682 * Non android platforms shall not use force ACS method and rely on hostapd
4683 * driven ACS method for concurrent SAP ACS configuration, OBSS etc.
4684 */
4685#define CFG_FORCE_SAP_ACS "gApAutoChannelSelection"
4686#define CFG_FORCE_SAP_ACS_MIN (0)
4687#define CFG_FORCE_SAP_ACS_MAX (1)
4688#define CFG_FORCE_SAP_ACS_DEFAULT (0)
4689
4690#define CFG_FORCE_SAP_ACS_START_CH "gAPChannelSelectStartChannel"
4691#define CFG_FORCE_SAP_ACS_START_CH_MIN (0)
4692#define CFG_FORCE_SAP_ACS_START_CH_MAX (0xFF)
4693#define CFG_FORCE_SAP_ACS_START_CH_DEFAULT (1)
4694
4695#define CFG_FORCE_SAP_ACS_END_CH "gAPChannelSelectEndChannel"
4696#define CFG_FORCE_SAP_ACS_END_CH_MIN (0)
4697#define CFG_FORCE_SAP_ACS_END_CH_MAX (0xFF)
4698#define CFG_FORCE_SAP_ACS_END_CH_DEFAULT (11)
4699
4700/*
4701 * Skip DFS Channel in case of P2P Search
4702 * Options
4703 * 0 - Don't Skip DFS Channel in case of P2P Search
4704 * 1 - Skip DFS Channel in case of P2P Search
4705 */
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304706/*
4707 * <ini>
4708 * gSkipDfsChannelInP2pSearch - Skip DFS Channel in case of P2P Search
4709 * @Min: 0
4710 * @Max: 1
4711 * @Default: 1
4712 *
4713 * This ini is used to to disable(skip) dfs channel in p2p search.
4714 * Related: NA.
4715 *
4716 * Supported Feature: DFS P2P
4717 *
4718 * Usage: Internal/External
4719 *
4720 * </ini>
4721 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004722#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_NAME "gSkipDfsChannelInP2pSearch"
4723#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_MIN (0)
4724#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_MAX (1)
4725#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_DEFAULT (1)
4726
4727/*
4728 * Ignore Dynamic Dtim in case of P2P
4729 * Options
4730 * 0 - Consider Dynamic Dtim incase of P2P
4731 * 1 - Ignore Dynamic Dtim incase of P2P
4732 */
4733#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_NAME "gIgnoreDynamicDtimInP2pMode"
4734#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_MIN (0)
4735#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_MAX (1)
4736#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_DEFAULT (0)
4737
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304738/*
4739 * <ini>
4740 * gShortGI40Mhz - It will check gShortGI20Mhz and
4741 * gShortGI40Mhz from session entry
4742 * @Min: 0
4743 * @Max: 1
4744 * @Default: 1
4745 *
4746 * This ini is used to set default gShortGI40Mhz
4747 *
4748 * Related: None
4749 *
4750 * Supported Feature: STA
4751 *
4752 * Usage: Internal/External
4753 *
4754 * </ini>
4755 */
4756
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004757#define CFG_SHORT_GI_40MHZ_NAME "gShortGI40Mhz"
4758#define CFG_SHORT_GI_40MHZ_MIN 0
4759#define CFG_SHORT_GI_40MHZ_MAX 1
4760#define CFG_SHORT_GI_40MHZ_DEFAULT 1
4761
4762/*
Nitesh Shah03161d12016-12-06 18:30:12 +05304763 * <ini>
4764 * gEnableMCCMode - Enable/Disable MCC feature.
4765 * @Min: 0
4766 * @Max: 1
4767 * @Default: 1
4768 *
4769 * This ini is used to enable/disable MCC feature.
4770 *
4771 * Related: None.
4772 *
4773 * Supported Feature: Concurrency
4774 *
4775 * Usage: Internal/External
4776 *
4777 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004778 */
4779#define CFG_ENABLE_MCC_ENABLED_NAME "gEnableMCCMode"
4780#define CFG_ENABLE_MCC_ENABLED_MIN (0)
4781#define CFG_ENABLE_MCC_ENABLED_MAX (1)
4782#define CFG_ENABLE_MCC_ENABLED_DEFAULT (1)
4783
4784/*
Nitesh Shah03161d12016-12-06 18:30:12 +05304785 * <ini>
4786 * gAllowMCCGODiffBI - Allow GO in MCC mode to accept different beacon interval
4787 * than STA's.
4788 * @Min: 0
4789 * @Max: 4
4790 * @Default: 4
4791 *
4792 * This ini is used to allow GO in MCC mode to accept different beacon interval
4793 * than STA's.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004794 * Added for Wi-Fi Cert. 5.1.12
Nitesh Shah03161d12016-12-06 18:30:12 +05304795 * If gAllowMCCGODiffBI = 1
4796 * Set to 1 for WFA certification. GO Beacon interval is not changed.
4797 * MCC GO doesn't work well in optimized way. In worst scenario, it may
4798 * invite STA disconnection.
4799 * If gAllowMCCGODiffBI = 2
4800 * If set to 2 workaround 1 disassoc all the clients and update beacon
4801 * Interval.
4802 * If gAllowMCCGODiffBI = 3
4803 * If set to 3 tear down the P2P link in auto/Non-autonomous -GO case.
4804 * If gAllowMCCGODiffBI = 4
4805 * If set to 4 don't disconnect the P2P client in autonomous/Non-auto-
4806 * nomous -GO case update the BI dynamically
4807 *
4808 * Related: None.
4809 *
4810 * Supported Feature: Concurrency
4811 *
4812 * Usage: Internal/External
4813 *
4814 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004815 */
4816#define CFG_ALLOW_MCC_GO_DIFF_BI_NAME "gAllowMCCGODiffBI"
4817#define CFG_ALLOW_MCC_GO_DIFF_BI_MIN (0)
4818#define CFG_ALLOW_MCC_GO_DIFF_BI_MAX (4)
4819#define CFG_ALLOW_MCC_GO_DIFF_BI_DEFAULT (4)
4820
Poddar, Siddarthb61cf642016-04-28 16:02:39 +05304821#if defined(CONFIG_HL_SUPPORT) && defined(QCA_BAD_PEER_TX_FLOW_CL)
4822/*
4823 * Enable/Disable Bad Peer TX CTL feature
4824 * Default: Enable
4825 */
4826#define CFG_BAD_PEER_TX_CTL_ENABLE_NAME "gBadPeerTxCtlEnable"
4827#define CFG_BAD_PEER_TX_CTL_ENABLE_MIN (0)
4828#define CFG_BAD_PEER_TX_CTL_ENABLE_MAX (1)
4829#define CFG_BAD_PEER_TX_CTL_ENABLE_DEFAULT (1)
4830
4831#define CFG_BAD_PEER_TX_CTL_PERIOD_NAME "gBadPeerTxCtlPeriod"
4832#define CFG_BAD_PEER_TX_CTL_PERIOD_MIN (10)
4833#define CFG_BAD_PEER_TX_CTL_PERIOD_MAX (10000)
4834#define CFG_BAD_PEER_TX_CTL_PERIOD_DEFAULT (50)
4835
4836#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_NAME "gBadPeerTxCtlTxqLimit"
4837#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_MIN (1)
4838#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_MAX (5000)
4839#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_DEFAULT (100)
4840
4841#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_NAME "gBadPeerTxCtlTgtBackoffTime"
4842#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_MIN (1)
4843#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_MAX (5000)
4844#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_DEFAULT (20)
4845
4846#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_NAME "gBadPeerTxCtlTgtReportPeriod"
4847#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_MIN (1)
4848#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_MAX (5000)
4849#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_DEFAULT (500)
4850
4851#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_NAME "gBadPeerTxCtlCondLevelIeeeB"
4852#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_MIN (1)
4853#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_MAX (2)
4854#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_DEFAULT (2)
4855
4856#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_NAME "gBadPeerTxCtlDeltaLevelIeeeB"
4857#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_MIN (1)
4858#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_MAX (11)
4859#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_DEFAULT (2)
4860
4861#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_NAME "gBadPeerTxCtlPctLevelIeeeB"
4862#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_MIN (1)
4863#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_MAX (8)
4864#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_DEFAULT (1)
4865
4866#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_NAME "gBadPeerTxCtlTputLevelIeeeB"
4867#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_MIN (1)
4868#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_MAX (11)
4869#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_DEFAULT (2)
4870
4871#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_NAME "gBadPeerTxCtlTxLimitLevelIeeeB"
4872#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_MIN (0)
4873#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_MAX (50)
4874#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_DEFAULT (3)
4875
4876#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_NAME "gBadPeerTxCtlCondLevelIeeeAG"
4877#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_MIN (1)
4878#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_MAX (2)
4879#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_DEFAULT (2)
4880
4881#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_NAME "gBadPeerTxCtlDeltaLevelIeeeAG"
4882#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_MIN (6)
4883#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_MAX (54)
4884#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_DEFAULT (6)
4885
4886#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_NAME "gBadPeerTxCtlPctLevelIeeeAG"
4887#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_MIN (1)
4888#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_MAX (8)
4889#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_DEFAULT (1)
4890
4891#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_NAME "gBadPeerTxCtlTputLevelIeeeAG"
4892#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_MIN (6)
4893#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_MAX (54)
4894#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_DEFAULT (6)
4895
4896#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_NAME "gBadPeerTxCtlTxLimitLevelIeeeAG"
4897#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_MIN (0)
4898#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_MAX (50)
4899#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_DEFAULT (3)
4900
4901#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_NAME "gBadPeerTxCtlCondLevelIeeeN"
4902#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_MIN (1)
4903#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_MAX (2)
4904#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_DEFAULT (2)
4905
4906#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_NAME "gBadPeerTxCtlDeltaLevelIeeeN"
4907#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_MIN (6)
4908#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_MAX (72)
4909#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_DEFAULT (6)
4910
4911#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_NAME "gBadPeerTxCtlPctLevelIeeeN"
4912#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_MIN (1)
4913#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_MAX (8)
4914#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_DEFAULT (1)
4915
4916#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_NAME "gBadPeerTxCtlTputLevelIeeeN"
4917#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_MIN (6)
4918#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_MAX (72)
4919#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_DEFAULT (15)
4920
4921#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_NAME "gBadPeerTxCtlTxLimitLevelIeeeN"
4922#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_MIN (0)
4923#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_MAX (50)
4924#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_DEFAULT (3)
4925
4926#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_NAME "gBadPeerTxCtlCondLevelIeeeAC"
4927#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_MIN (1)
4928#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_MAX (2)
4929#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_DEFAULT (2)
4930
4931#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_NAME "gBadPeerTxCtlDeltaLevelIeeeAC"
4932#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_MIN (6)
4933#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_MAX (433)
4934#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_DEFAULT (6)
4935
4936#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_NAME "gBadPeerTxCtlPctLevelIeeeAC"
4937#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_MIN (1)
4938#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_MAX (8)
4939#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_DEFAULT (1)
4940
4941#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_NAME "gBadPeerTxCtlTputLevelIeeeAC"
4942#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_MIN (6)
4943#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_MAX (433)
4944#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_DEFAULT (15)
4945
4946#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_NAME "gBadPeerTxCtlTxLimitLevelIeeeAC"
4947#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_MIN (0)
4948#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_MAX (50)
4949#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_DEFAULT (3)
4950#endif
4951
4952
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004953/*
4954 * Enable/Disable Thermal Mitigation feature
4955 * Default: Enable
4956 */
4957#define CFG_THERMAL_MIGRATION_ENABLE_NAME "gThermalMitigationEnable"
4958#define CFG_THERMAL_MIGRATION_ENABLE_MIN (0)
4959#define CFG_THERMAL_MIGRATION_ENABLE_MAX (1)
Manjeet Singhbcd1cfd2017-01-11 15:15:14 +05304960#define CFG_THERMAL_MIGRATION_ENABLE_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004961
4962#define CFG_THROTTLE_PERIOD_NAME "gThrottlePeriod"
4963#define CFG_THROTTLE_PERIOD_MIN (10)
4964#define CFG_THROTTLE_PERIOD_MAX (10000)
4965#define CFG_THROTTLE_PERIOD_DEFAULT (4000)
4966
Poddar, Siddarth83905022016-04-16 17:56:08 -07004967/*
4968 * Configure Throttle Period Different Level Duty Cycle in percentage
4969 * When temperature measured is greater than threshold at particular level,
4970 * then throtling level will get increased by one level and
4971 * will reduce TX duty by the given percentage
4972 */
4973#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_NAME "gThrottleDutyCycleLevel0"
4974#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_MIN (0)
4975#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_MAX (0)
4976#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_DEFAULT (0)
4977
4978#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_NAME "gThrottleDutyCycleLevel1"
4979#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_MIN (0)
4980#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_MAX (100)
4981#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_DEFAULT (50)
4982
4983#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_NAME "gThrottleDutyCycleLevel2"
4984#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_MIN (0)
4985#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_MAX (100)
4986#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_DEFAULT (75)
4987
4988#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_NAME "gThrottleDutyCycleLevel3"
4989#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_MIN (0)
4990#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_MAX (100)
4991#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_DEFAULT (94)
4992
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004993#define CFG_THERMAL_TEMP_MIN_LEVEL0_NAME "gThermalTempMinLevel0"
4994#define CFG_THERMAL_TEMP_MIN_LEVEL0_MIN (0)
4995#define CFG_THERMAL_TEMP_MIN_LEVEL0_MAX (1000)
4996#define CFG_THERMAL_TEMP_MIN_LEVEL0_DEFAULT (0)
4997
4998#define CFG_THERMAL_TEMP_MAX_LEVEL0_NAME "gThermalTempMaxLevel0"
4999#define CFG_THERMAL_TEMP_MAX_LEVEL0_MIN (0)
5000#define CFG_THERMAL_TEMP_MAX_LEVEL0_MAX (1000)
5001#define CFG_THERMAL_TEMP_MAX_LEVEL0_DEFAULT (90)
5002
5003#define CFG_THERMAL_TEMP_MIN_LEVEL1_NAME "gThermalTempMinLevel1"
5004#define CFG_THERMAL_TEMP_MIN_LEVEL1_MIN (0)
5005#define CFG_THERMAL_TEMP_MIN_LEVEL1_MAX (1000)
5006#define CFG_THERMAL_TEMP_MIN_LEVEL1_DEFAULT (70)
5007
5008#define CFG_THERMAL_TEMP_MAX_LEVEL1_NAME "gThermalTempMaxLevel1"
5009#define CFG_THERMAL_TEMP_MAX_LEVEL1_MIN (0)
5010#define CFG_THERMAL_TEMP_MAX_LEVEL1_MAX (1000)
5011#define CFG_THERMAL_TEMP_MAX_LEVEL1_DEFAULT (110)
5012
5013#define CFG_THERMAL_TEMP_MIN_LEVEL2_NAME "gThermalTempMinLevel2"
5014#define CFG_THERMAL_TEMP_MIN_LEVEL2_MIN (0)
5015#define CFG_THERMAL_TEMP_MIN_LEVEL2_MAX (1000)
5016#define CFG_THERMAL_TEMP_MIN_LEVEL2_DEFAULT (90)
5017
5018#define CFG_THERMAL_TEMP_MAX_LEVEL2_NAME "gThermalTempMaxLevel2"
5019#define CFG_THERMAL_TEMP_MAX_LEVEL2_MIN (0)
5020#define CFG_THERMAL_TEMP_MAX_LEVEL2_MAX (1000)
5021#define CFG_THERMAL_TEMP_MAX_LEVEL2_DEFAULT (125)
5022
5023#define CFG_THERMAL_TEMP_MIN_LEVEL3_NAME "gThermalTempMinLevel3"
5024#define CFG_THERMAL_TEMP_MIN_LEVEL3_MIN (0)
5025#define CFG_THERMAL_TEMP_MIN_LEVEL3_MAX (1000)
5026#define CFG_THERMAL_TEMP_MIN_LEVEL3_DEFAULT (110)
5027
5028#define CFG_THERMAL_TEMP_MAX_LEVEL3_NAME "gThermalTempMaxLevel3"
5029#define CFG_THERMAL_TEMP_MAX_LEVEL3_MIN (0)
5030#define CFG_THERMAL_TEMP_MAX_LEVEL3_MAX (1000)
5031#define CFG_THERMAL_TEMP_MAX_LEVEL3_DEFAULT (0)
5032
5033/*
5034 * Enable/Disable Modulated DTIM feature
5035 * Default: Disable
5036 */
5037#define CFG_ENABLE_MODULATED_DTIM_NAME "gEnableModulatedDTIM"
5038#define CFG_ENABLE_MODULATED_DTIM_MIN (0)
5039#define CFG_ENABLE_MODULATED_DTIM_MAX (5)
5040#define CFG_ENABLE_MODULATED_DTIM_DEFAULT (0)
5041
5042/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305043 * <ini>
5044 * gMCAddrListEnable - Enable/Disable Multicast MAC Address List feature
5045 * @Min: 0
5046 * @Max: 1
5047 * @Default: 1
5048 *
5049 * This ini is used to set default MAC Address
Dustin Brownd03bf592016-09-08 14:40:51 -07005050 * Default: Enable
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305051 *
5052 * Related: None
5053 *
5054 * Supported Feature: STA
5055 *
5056 * Usage: Internal/External
5057 *
5058 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005059 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305060
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005061#define CFG_MC_ADDR_LIST_ENABLE_NAME "gMCAddrListEnable"
5062#define CFG_MC_ADDR_LIST_ENABLE_MIN (0)
5063#define CFG_MC_ADDR_LIST_ENABLE_MAX (1)
Dustin Brownd03bf592016-09-08 14:40:51 -07005064#define CFG_MC_ADDR_LIST_ENABLE_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005065
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305066/*
5067 * <ini>
5068 * gEnableRXSTBC - Enables/disables Rx STBC capability in STA mode
5069 * @Min: 0
5070 * @Max: 1
5071 * @Default: 1
5072 *
5073 * This ini is used to set default Rx STBC capability
5074 *
5075 * Related: None
5076 *
5077 * Supported Feature: STA
5078 *
5079 * Usage: Internal/External
5080 *
5081 * </ini>
5082 */
5083
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005084#define CFG_ENABLE_RX_STBC "gEnableRXSTBC"
5085#define CFG_ENABLE_RX_STBC_MIN (0)
5086#define CFG_ENABLE_RX_STBC_MAX (1)
5087#define CFG_ENABLE_RX_STBC_DEFAULT (1)
5088
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305089/*
5090 * <ini>
5091 * gEnableTXSTBC - Enables/disables Tx STBC capability in STA mode
5092 * @Min: 0
5093 * @Max: 1
5094 * @Default: 0
5095 *
5096 * This ini is used to set default Tx STBC capability
5097 *
5098 * Related: None
5099 *
5100 * Supported Feature: STA
5101 *
5102 * Usage: Internal/External
5103 *
5104 * </ini>
5105 */
5106
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005107#define CFG_ENABLE_TX_STBC "gEnableTXSTBC"
5108#define CFG_ENABLE_TX_STBC_MIN (0)
5109#define CFG_ENABLE_TX_STBC_MAX (1)
5110#define CFG_ENABLE_TX_STBC_DEFAULT (0)
5111
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305112/*
5113 * <ini>
5114 * gEnableRXLDPC - Enables/disables Rx LDPC capability in STA mode
5115 * @Min: 0
5116 * @Max: 1
5117 * @Default: 0
5118 *
5119 * This ini is used to set default Rx LDPC capability
5120 *
5121 * Related: None
5122 *
5123 * Supported Feature: STA
5124 *
5125 * Usage: Internal/External
5126 *
5127 * </ini>
5128 */
5129
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005130#define CFG_ENABLE_RX_LDPC "gEnableRXLDPC"
5131#define CFG_ENABLE_RX_LDPC_MIN (0)
5132#define CFG_ENABLE_RX_LDPC_MAX (1)
5133#define CFG_ENABLE_RX_LDPC_DEFAULT (0)
5134
Hong Shib707b052017-03-08 23:33:14 +08005135/*
5136 * <ini>
5137 * gMaxHTMCSForTxData - max HT mcs for TX
5138 * @Min: 0
5139 * @Max: 383
5140 * @Default: 0
5141 *
5142 * This ini is used to configure the max HT mcs
5143 * for tx data.
5144 *
5145 * Usage: External
5146 *
5147 * bits 0-15: max HT mcs
5148 * bits 16-31: zero to disable, otherwise enable.
5149 *
5150 * </ini>
5151 */
5152#define CFG_MAX_HT_MCS_FOR_TX_DATA "gMaxHTMCSForTxData"
5153#define CFG_MAX_HT_MCS_FOR_TX_DATA_MIN (WNI_CFG_MAX_HT_MCS_TX_DATA_STAMIN)
5154#define CFG_MAX_HT_MCS_FOR_TX_DATA_MAX (WNI_CFG_MAX_HT_MCS_TX_DATA_STAMAX)
5155#define CFG_MAX_HT_MCS_FOR_TX_DATA_DEFAULT (WNI_CFG_MAX_HT_MCS_TX_DATA_STADEF)
5156
5157/*
5158 * <ini>
5159 * gDisableABGRateForTxData - disable abg rate for tx data
5160 * @Min: 0
5161 * @Max: 1
5162 * @Default: 0
5163 *
5164 * This ini is used to disable abg rate for tx data.
5165 *
5166 * Usage: External
5167 *
5168 * </ini>
5169 */
5170#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA "gDisableABGRateForTxData"
5171#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA_MIN \
5172 (WNI_CFG_DISABLE_ABG_RATE_FOR_TX_DATA_STAMIN)
5173#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA_MAX \
5174 (WNI_CFG_DISABLE_ABG_RATE_FOR_TX_DATA_STAMAX)
5175#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA_DEFAULT \
5176 (WNI_CFG_DISABLE_ABG_RATE_FOR_TX_DATA_STADEF)
5177
5178/*
5179 * <ini>
5180 * gRateForTxMgmt - rate for tx mgmt frame
5181 * @Min: 0x0
5182 * @Max: 0xFF
5183 * @Default: 0xFF
5184 *
5185 * This ini is used to configure the rate for tx
5186 * mgmt frame. Default 0xFF means disable.
5187 *
5188 * Usage: External
5189 *
5190 * </ini>
5191 */
5192#define CFG_RATE_FOR_TX_MGMT "gRateForTxMgmt"
5193#define CFG_RATE_FOR_TX_MGMT_MIN (WNI_CFG_RATE_FOR_TX_MGMT_STAMIN)
5194#define CFG_RATE_FOR_TX_MGMT_MAX (WNI_CFG_RATE_FOR_TX_MGMT_STAMAX)
5195#define CFG_RATE_FOR_TX_MGMT_DEFAULT (WNI_CFG_RATE_FOR_TX_MGMT_STADEF)
5196
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005197#ifdef FEATURE_WLAN_TDLS
Nitesh Shahbb405832016-12-08 12:43:10 +05305198/*
5199 * <ini>
5200 * gEnableTDLSSupport - Enable support for TDLS.
5201 * @Min: 0
5202 * @Max: 1
5203 * @Default: 0
5204 *
5205 * This ini is used to enable/disable TDLS support.
5206 *
5207 * Related: None.
5208 *
5209 * Supported Feature: TDLS
5210 *
5211 * Usage: Internal/External
5212 *
5213 * </ini>
5214 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005215#define CFG_TDLS_SUPPORT_ENABLE "gEnableTDLSSupport"
5216#define CFG_TDLS_SUPPORT_ENABLE_MIN (0)
5217#define CFG_TDLS_SUPPORT_ENABLE_MAX (1)
5218#define CFG_TDLS_SUPPORT_ENABLE_DEFAULT (0)
5219
Nitesh Shahbb405832016-12-08 12:43:10 +05305220/*
5221 * <ini>
5222 * gEnableTDLSImplicitTrigger - Enable Implicit TDLS.
5223 * @Min: 0
5224 * @Max: 1
5225 * @Default: 0
5226 *
5227 * This ini is used to enable/disable implicit TDLS.
5228 * CLD driver initiates TDLS Discovery towards a peer whenever TDLS Setup
5229 * criteria (throughput and RSSI thresholds) is met and then it tears down
5230 * TDLS when teardown criteria (idle packet count and RSSI) is met.
5231 *
5232 * Related: gEnableTDLSSupport.
5233 *
5234 * Supported Feature: TDLS
5235 *
5236 * Usage: Internal/External
5237 *
5238 * </ini>
5239 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005240#define CFG_TDLS_IMPLICIT_TRIGGER "gEnableTDLSImplicitTrigger"
5241#define CFG_TDLS_IMPLICIT_TRIGGER_MIN (0)
5242#define CFG_TDLS_IMPLICIT_TRIGGER_MAX (1)
5243#define CFG_TDLS_IMPLICIT_TRIGGER_DEFAULT (0)
5244
Nitesh Shahbb405832016-12-08 12:43:10 +05305245/*
5246 * <ini>
5247 * gTDLSTxStatsPeriod - TDLS TX statistics time period.
5248 * @Min: 1000
5249 * @Max: 4294967295
5250 * @Default: 2000
5251 *
5252 * This ini is used to configure the time period (in ms) to evaluate whether
5253 * the number of Tx/Rx packets exceeds TDLSTxPacketThreshold and triggers a
5254 * TDLS Discovery request.
5255 *
5256 * Related: gEnableTDLSSupport.
5257 *
5258 * Supported Feature: TDLS
5259 *
5260 * Usage: Internal/External
5261 *
5262 * </ini>
5263 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005264#define CFG_TDLS_TX_STATS_PERIOD "gTDLSTxStatsPeriod"
Nitesh Shah6259b1c2016-09-05 15:50:53 +05305265#define CFG_TDLS_TX_STATS_PERIOD_MIN (1000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005266#define CFG_TDLS_TX_STATS_PERIOD_MAX (4294967295UL)
Nitesh Shah6259b1c2016-09-05 15:50:53 +05305267#define CFG_TDLS_TX_STATS_PERIOD_DEFAULT (2000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005268
Nitesh Shahbb405832016-12-08 12:43:10 +05305269/*
5270 * <ini>
5271 * gTDLSTxPacketThreshold - Tx/Rx Packet threshold for initiating TDLS.
5272 * @Min: 0
5273 * @Max: 4294967295
5274 * @Default: 40
5275 *
5276 * This ini is used to configure the number of Tx/Rx packets during the
5277 * period of gTDLSTxStatsPeriod when exceeded, a TDLS Discovery request
5278 * is triggered.
5279 * Related: gEnableTDLSSupport.
5280 *
5281 * Supported Feature: TDLS
5282 *
5283 * Usage: Internal/External
5284 *
5285 * </ini>
5286 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005287#define CFG_TDLS_TX_PACKET_THRESHOLD "gTDLSTxPacketThreshold"
5288#define CFG_TDLS_TX_PACKET_THRESHOLD_MIN (0)
5289#define CFG_TDLS_TX_PACKET_THRESHOLD_MAX (4294967295UL)
Nitesh Shah6259b1c2016-09-05 15:50:53 +05305290#define CFG_TDLS_TX_PACKET_THRESHOLD_DEFAULT (40)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005291
Nitesh Shahbb405832016-12-08 12:43:10 +05305292/*
5293 * <ini>
5294 * gTDLSMaxDiscoveryAttempt - Attempts for sending TDLS discovery requests.
5295 * @Min: 1
5296 * @Max: 100
5297 * @Default: 5
5298 *
5299 * This ini is used to configure the number of failures of discover request,
5300 * when exceeded, the peer is assumed to be not TDLS capable and no further
5301 * TDLS Discovery request is made.
5302 *
5303 * Related: gEnableTDLSSupport.
5304 *
5305 * Supported Feature: TDLS
5306 *
5307 * Usage: Internal/External
5308 *
5309 * </ini>
5310 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005311#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT "gTDLSMaxDiscoveryAttempt"
5312#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT_MIN (1)
5313#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT_MAX (100)
5314#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT_DEFAULT (5)
5315
Nitesh Shahbb405832016-12-08 12:43:10 +05305316/*
5317 * <ini>
5318 * gTDLSIdleTimeout - Duration within which number of TX / RX frames meet the
5319 * criteria for TDLS teardown.
5320 * @Min: 500
5321 * @Max: 40000
5322 * @Default: 5000
5323 *
5324 * This ini is used to configure the time period (in ms) to evaluate whether
5325 * the number of Tx/Rx packets exceeds gTDLSIdlePacketThreshold and thus meets
5326 * criteria for TDLS teardown.
5327 * Teardown notification interval (gTDLSIdleTimeout) should be multiple of
5328 * setup notification (gTDLSTxStatsPeriod) interval.
5329 * e.g.
5330 * if setup notification (gTDLSTxStatsPeriod) interval = 500, then
5331 * teardown notification (gTDLSIdleTimeout) interval should be 1000,
5332 * 1500, 2000, 2500...
5333 *
5334 * Related: gEnableTDLSSupport.
5335 *
5336 * Supported Feature: TDLS
5337 *
5338 * Usage: Internal/External
5339 *
5340 * </ini>
Kabilan Kannanca670be2015-11-23 01:56:12 -08005341 */
5342#define CFG_TDLS_IDLE_TIMEOUT "gTDLSIdleTimeout"
5343#define CFG_TDLS_IDLE_TIMEOUT_MIN (500)
5344#define CFG_TDLS_IDLE_TIMEOUT_MAX (40000)
Kabilan Kannan2ccd9e62015-11-29 16:04:05 -08005345#define CFG_TDLS_IDLE_TIMEOUT_DEFAULT (5000)
Kabilan Kannanca670be2015-11-23 01:56:12 -08005346
5347
Nitesh Shahbb405832016-12-08 12:43:10 +05305348/*
5349 * <ini>
5350 * gTDLSIdlePacketThreshold - Number of idle packet.
5351 * @Min: 0
5352 * @Max: 40000
5353 * @Default: 3
5354 *
5355 * This ini is used to configure the number of Tx/Rx packet, below which
5356 * within last gTDLSTxStatsPeriod period is considered as idle condition.
5357 *
5358 * Related: gEnableTDLSSupport.
5359 *
5360 * Supported Feature: TDLS
5361 *
5362 * Usage: Internal/External
5363 *
5364 * </ini>
5365 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005366#define CFG_TDLS_IDLE_PACKET_THRESHOLD "gTDLSIdlePacketThreshold"
5367#define CFG_TDLS_IDLE_PACKET_THRESHOLD_MIN (0)
5368#define CFG_TDLS_IDLE_PACKET_THRESHOLD_MAX (40000)
Kabilan Kannan2ccd9e62015-11-29 16:04:05 -08005369#define CFG_TDLS_IDLE_PACKET_THRESHOLD_DEFAULT (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005370
Nitesh Shahbb405832016-12-08 12:43:10 +05305371/*
5372 * <ini>
5373 * gTDLSRSSITriggerThreshold - RSSI threshold for TDLS connection.
5374 * @Min: -120
5375 * @Max: 0
5376 * @Default: -75
5377 *
5378 * This ini is used to configure the absolute value (in dB) of the peer RSSI,
5379 * below which a TDLS setup request is triggered.
5380 *
5381 * Related: gEnableTDLSSupport.
5382 *
5383 * Supported Feature: TDLS
5384 *
5385 * Usage: Internal/External
5386 *
5387 * </ini>
5388 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005389#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD "gTDLSRSSITriggerThreshold"
5390#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD_MIN (-120)
5391#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD_MAX (0)
5392#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD_DEFAULT (-75)
5393
Nitesh Shahbb405832016-12-08 12:43:10 +05305394/*
5395 * <ini>
5396 * gTDLSRSSITeardownThreshold - RSSI threshold for TDLS teardown.
5397 * @Min: -120
5398 * @Max: 0
5399 * @Default: -75
5400 *
5401 * This ini is used to configure the absolute value (in dB) of the peer RSSI,
5402 * when exceed, a TDLS teardown is triggered.
5403 *
5404 * Related: gEnableTDLSSupport.
5405 *
5406 * Supported Feature: TDLS
5407 *
5408 * Usage: Internal/External
5409 *
5410 * </ini>
5411 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005412#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD "gTDLSRSSITeardownThreshold"
5413#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_MIN (-120)
5414#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_MAX (0)
5415#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_DEFAULT (-75)
5416
Nitesh Shahbb405832016-12-08 12:43:10 +05305417/*
5418 * <ini>
5419 * gTDLSRSSIDelta - Delta value for the peer RSSI that can trigger teardown.
5420 * @Min: -30
5421 * @Max: 0
5422 * @Default: -20
5423 *
5424 * This ini is used to .
5425 * This ini is used to configure delta for peer RSSI such that if Peer RSSI
5426 * is less than AP RSSI plus delta will trigger a teardown.
5427 *
5428 * Related: gEnableTDLSSupport.
5429 *
5430 * Supported Feature: TDLS
5431 *
5432 * Usage: Internal/External
5433 *
5434 * </ini>
5435 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005436#define CFG_TDLS_RSSI_DELTA "gTDLSRSSIDelta"
5437#define CFG_TDLS_RSSI_DELTA_MIN (-30)
5438#define CFG_TDLS_RSSI_DELTA_MAX (0)
5439#define CFG_TDLS_RSSI_DELTA_DEFAULT (-20)
5440
Nitesh Shahbb405832016-12-08 12:43:10 +05305441/*
5442 * <ini>
5443 * gTDLSUapsdMask - ACs to setup U-APSD for TDLS Sta.
5444 * @Min: 0
5445 * @Max: 0x0F
5446 * @Default: 0x0F
5447 *
5448 * This ini is used to configure the ACs for which mask needs to be enabled.
5449 * 0x1: Background 0x2: Best effort
5450 * 0x4: Video 0x8:Voice
5451 *
5452 * Related: gEnableTDLSSupport.
5453 *
5454 * Supported Feature: TDLS
5455 *
5456 * Usage: Internal/External
5457 *
5458 * </ini>
5459 */
5460#define CFG_TDLS_QOS_WMM_UAPSD_MASK_NAME "gTDLSUapsdMask"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005461#define CFG_TDLS_QOS_WMM_UAPSD_MASK_MIN (0)
5462#define CFG_TDLS_QOS_WMM_UAPSD_MASK_MAX (0x0F)
5463#define CFG_TDLS_QOS_WMM_UAPSD_MASK_DEFAULT (0x0F)
5464
Nitesh Shahbb405832016-12-08 12:43:10 +05305465/*
5466 * <ini>
5467 * gEnableTDLSBufferSta - Controls the TDLS buffer.
5468 * @Min: 0
5469 * @Max: 1
5470 * @Default: 1
5471 *
5472 * This ini is used to control the TDLS buffer.
5473 * Buffer STA is not enabled in CLD 2.0 yet.
5474 *
5475 * Related: gEnableTDLSSupport.
5476 *
5477 * Supported Feature: TDLS
5478 *
5479 * Usage: Internal/External
5480 *
5481 * </ini>
5482 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005483#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE "gEnableTDLSBufferSta"
5484#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_MIN (0)
5485#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_MAX (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005486#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_DEFAULT (1)
5487
Nitesh Shahbb405832016-12-08 12:43:10 +05305488/*
5489 * <ini>
5490 * gTDLSPuapsdInactivityTime - Peer UAPSD Inactivity time.
5491 * @Min: 0
5492 * @Max: 10
5493 * @Default: 0
5494 *
5495 * This ini is used to configure peer uapsd inactivity time.
5496 *
5497 * Related: gEnableTDLSSupport.
5498 *
5499 * Supported Feature: TDLS
5500 *
5501 * Usage: Internal/External
5502 *
5503 * </ini>
5504 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005505#define CFG_TDLS_PUAPSD_INACTIVITY_TIME "gTDLSPuapsdInactivityTime"
5506#define CFG_TDLS_PUAPSD_INACTIVITY_TIME_MIN (0)
5507#define CFG_TDLS_PUAPSD_INACTIVITY_TIME_MAX (10)
5508#define CFG_TDLS_PUAPSD_INACTIVITY_TIME_DEFAULT (0)
5509
Nitesh Shahbb405832016-12-08 12:43:10 +05305510/*
5511 * <ini>
5512 * gTDLSPuapsdRxFrameThreshold - Peer UAPSD Rx frame threshold.
5513 * @Min: 10
5514 * @Max: 20
5515 * @Default: 10
5516 *
5517 * This ini is used to configure maximum Rx frame during SP.
5518 *
5519 * Related: gEnableTDLSSupport.
5520 *
5521 * Supported Feature: TDLS
5522 *
5523 * Usage: Internal/External
5524 *
5525 * </ini>
5526 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005527#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD "gTDLSPuapsdRxFrameThreshold"
5528#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_MIN (10)
5529#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_MAX (20)
5530#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_DEFAULT (10)
5531
Nitesh Shahbb405832016-12-08 12:43:10 +05305532/*
5533 * <ini>
5534 * gTDLSPuapsdPTIWindow - This ini is used to configure peer traffic indication
5535 * window.
5536 * @Min: 1
5537 * @Max: 5
5538 * @Default: 2
5539 *
5540 * This ini is used to configure buffering time in number of beacon intervals.
5541 *
5542 * Related: gEnableTDLSSupport.
5543 *
5544 * Supported Feature: TDLS
5545 *
5546 * Usage: Internal/External
5547 *
5548 * </ini>
5549 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005550#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW "gTDLSPuapsdPTIWindow"
5551#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW_MIN (1)
5552#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW_MAX (5)
5553#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW_DEFAULT (2)
5554
Nitesh Shahbb405832016-12-08 12:43:10 +05305555/*
5556 * <ini>
5557 * gTDLSPuapsdPTRTimeout - Peer Traffic Response timer duration in ms.
5558 * @Min: 0
5559 * @Max: 10000
5560 * @Default: 5000
5561 *
5562 * This ini is used to configure the peer traffic response timer duration
5563 * in ms.
5564 *
5565 * Related: gEnableTDLSSupport.
5566 *
5567 * Supported Feature: TDLS
5568 *
5569 * Usage: Internal/External
5570 *
5571 * </ini>
5572 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005573#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT "gTDLSPuapsdPTRTimeout"
5574#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT_MIN (0)
5575#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT_MAX (10000)
5576#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT_DEFAULT (5000)
5577
Nitesh Shahbb405832016-12-08 12:43:10 +05305578/*
5579 * <ini>
5580 * gTDLSExternalControl - Enable external TDLS control.
5581 * @Min: 0
5582 * @Max: 1
5583 * @Default: 1
5584 *
5585 * This ini is used to enable/disable external TDLS control.
5586 * TDLS external control works with TDLS implicit trigger. TDLS external
5587 * control allows a user to add a MAC address of potential TDLS peers so
5588 * that the CLD driver can initiate implicit TDLS setup to only those peers
5589 * when criteria for TDLS setup (throughput and RSSI threshold) is met.
5590 *
5591 * Related: gEnableTDLSSupport, gEnableTDLSImplicitTrigger.
5592 *
5593 * Supported Feature: TDLS
5594 *
5595 * Usage: Internal/External
5596 *
5597 * </ini>
5598 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005599#define CFG_TDLS_EXTERNAL_CONTROL "gTDLSExternalControl"
5600#define CFG_TDLS_EXTERNAL_CONTROL_MIN (0)
5601#define CFG_TDLS_EXTERNAL_CONTROL_MAX (1)
Nishank Aggarwal3f898912016-10-13 17:36:16 +05305602#define CFG_TDLS_EXTERNAL_CONTROL_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005603
Nitesh Shahbb405832016-12-08 12:43:10 +05305604/*
5605 * <ini>
5606 * gEnableTDLSOffChannel - Enables off-channel support for TDLS link.
5607 * @Min: 0
5608 * @Max: 1
5609 * @Default: 0
5610 *
5611 * This ini is used to enable/disable off-channel support for TDLS link.
5612 *
5613 * Related: gEnableTDLSSupport.
5614 *
5615 * Supported Feature: TDLS
5616 *
5617 * Usage: Internal/External
5618 *
5619 * </ini>
5620 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005621#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE "gEnableTDLSOffChannel"
5622#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_MIN (0)
5623#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_MAX (1)
5624#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_DEFAULT (0)
5625
Nitesh Shahbb405832016-12-08 12:43:10 +05305626/*
5627 * <ini>
5628 * gEnableTDLSWmmMode - Enables WMM support over TDLS link.
5629 * @Min: 0
5630 * @Max: 1
5631 * @Default: 1
5632 *
5633 * This ini is used to enable/disable WMM support over TDLS link.
5634 * This is required to be set to 1 for any TDLS and uAPSD functionality.
5635 *
5636 * Related: gEnableTDLSSupport.
5637 *
5638 * Supported Feature: TDLS
5639 *
5640 * Usage: Internal/External
5641 *
5642 * </ini>
5643 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005644#define CFG_TDLS_WMM_MODE_ENABLE "gEnableTDLSWmmMode"
5645#define CFG_TDLS_WMM_MODE_ENABLE_MIN (0)
5646#define CFG_TDLS_WMM_MODE_ENABLE_MAX (1)
5647#define CFG_TDLS_WMM_MODE_ENABLE_DEFAULT (1)
5648
Nitesh Shahbb405832016-12-08 12:43:10 +05305649/*
5650 * <ini>
5651 * gTDLSPrefOffChanNum - Preferred TDLS channel number when off-channel support
5652 * is enabled.
5653 * @Min: 1
5654 * @Max: 165
5655 * @Default: 36
5656 *
5657 * This ini is used to configure preferred TDLS channel number when off-channel
5658 * support is enabled.
5659 *
5660 * Related: gEnableTDLSSupport, gEnableTDLSOffChannel.
5661 *
5662 * Supported Feature: TDLS
5663 *
5664 * Usage: Internal/External
5665 *
5666 * </ini>
5667 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005668#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM "gTDLSPrefOffChanNum"
5669#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM_MIN (1)
5670#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM_MAX (165)
5671#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM_DEFAULT (36)
5672
Nitesh Shahbb405832016-12-08 12:43:10 +05305673/*
5674 * <ini>
5675 * gTDLSPrefOffChanBandwidth - Preferred TDLS channel bandwidth when
5676 * off-channel support is enabled.
Kabilan Kannan4a6b5e72017-02-08 10:38:30 -08005677 * @Min: 0x01
Nitesh Shahbb405832016-12-08 12:43:10 +05305678 * @Max: 0x0F
5679 * @Default: 0x07
5680 *
5681 * This ini is used to configure preferred TDLS channel bandwidth when
5682 * off-channel support is enabled.
5683 * 0x1: 20 MHz 0x2: 40 MHz 0x4: 80 MHz 0x8: 160 MHz
5684 * When more than one bits are set then firmware starts from the highest and
5685 * selects one based on capability of peer.
5686 *
5687 * Related: gEnableTDLSSupport, gEnableTDLSOffChannel.
5688 *
5689 * Supported Feature: TDLS
5690 *
5691 * Usage: Internal/External
5692 *
5693 * </ini>
5694 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005695#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW "gTDLSPrefOffChanBandwidth"
Kabilan Kannan4a6b5e72017-02-08 10:38:30 -08005696#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW_MIN (0x01)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005697#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW_MAX (0x0F)
5698#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW_DEFAULT (0x07)
5699
Nitesh Shahbb405832016-12-08 12:43:10 +05305700/*
5701 * <ini>
5702 * gEnableTDLSScan - Allow scan and maintain TDLS link.
5703 * @Min: 0
5704 * @Max: 1
5705 * @Default: 0
5706 *
5707 * This ini is used to enable/disable TDLS scan.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005708 * 0: If peer is not buffer STA capable and device is not sleep STA
5709 * capable, then teardown TDLS link when scan is initiated. If peer
5710 * is buffer STA and we can be sleep STA then TDLS link is maintained
5711 * during scan.
5712 * 1: Maintain TDLS link and allow scan even if peer is not buffer STA
5713 * capable and device is not sleep STA capable. There will be loss of
5714 * Rx pkts since peer would not know when device moves away from tdls
5715 * channel. Tx on TDLS link would stop when device moves away from tdls
5716 * channel.
Nitesh Shahbb405832016-12-08 12:43:10 +05305717 *
5718 * Related: gEnableTDLSSupport.
5719 *
5720 * Supported Feature: TDLS
5721 *
5722 * Usage: Internal/External
5723 *
5724 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005725 */
5726#define CFG_TDLS_SCAN_ENABLE "gEnableTDLSScan"
5727#define CFG_TDLS_SCAN_ENABLE_MIN (0)
5728#define CFG_TDLS_SCAN_ENABLE_MAX (1)
5729#define CFG_TDLS_SCAN_ENABLE_DEFAULT (0)
Kabilan Kannan421714b2015-11-23 04:44:59 -08005730
Nitesh Shahbb405832016-12-08 12:43:10 +05305731/*
5732 * <ini>
5733 * gTDLSPeerKickoutThreshold - TDLS peer kickout threshold to firmware.
5734 * @Min: 10
5735 * @Max: 5000
5736 * @Default: 96
5737 *
5738 * This ini is used to configure TDLS peer kickout threshold to firmware.
Kabilan Kannan421714b2015-11-23 04:44:59 -08005739 * Firmware will use this value to determine, when to send TDLS
5740 * peer kick out event to host.
5741 * E.g.
5742 * if peer kick out threshold is 10, then firmware will wait for 10
5743 * consecutive packet failures and then send TDLS kickout
5744 * notification to host driver
Nitesh Shahbb405832016-12-08 12:43:10 +05305745 *
5746 * Related: gEnableTDLSSupport.
5747 *
5748 * Supported Feature: TDLS
5749 *
5750 * Usage: Internal/External
5751 *
5752 * </ini>
Kabilan Kannan421714b2015-11-23 04:44:59 -08005753 */
5754#define CFG_TDLS_PEER_KICKOUT_THRESHOLD "gTDLSPeerKickoutThreshold"
5755#define CFG_TDLS_PEER_KICKOUT_THRESHOLD_MIN (10)
5756#define CFG_TDLS_PEER_KICKOUT_THRESHOLD_MAX (5000)
5757#define CFG_TDLS_PEER_KICKOUT_THRESHOLD_DEFAULT (96)
5758
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005759#endif
5760
Nitesh Shah61c10d92016-10-19 19:29:15 +05305761/*
5762 * <ini>
5763 * gTDLSEnableDeferTime - Timer to defer for enabling TDLS on P2P listen.
5764 * @Min: 2000
5765 * @Max: 6000
5766 * @Default: 5000
5767 *
5768 * This ini is used to set the timer to defer for enabling TDLS on P2P
5769 * listen (value in milliseconds).
5770 *
5771 * Related: gEnableTDLSSupport.
5772 *
5773 * Supported Feature: TDLS
5774 *
5775 * Usage: Internal/External
5776 *
5777 * </ini>
5778 */
5779#define CFG_TDLS_ENABLE_DEFER_TIMER "gTDLSEnableDeferTime"
5780#define CFG_TDLS_ENABLE_DEFER_TIMER_MIN (2000)
5781#define CFG_TDLS_ENABLE_DEFER_TIMER_MAX (6000)
5782#define CFG_TDLS_ENABLE_DEFER_TIMER_DEFAULT (5000)
5783
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005784/* Enable/Disable LPWR Image(cMEM uBSP) Transition */
5785#define CFG_ENABLE_LPWR_IMG_TRANSITION_NAME "gEnableLpwrImgTransition"
5786#define CFG_ENABLE_LPWR_IMG_TRANSITION_MIN (0)
5787#define CFG_ENABLE_LPWR_IMG_TRANSITION_MAX (1)
5788#define CFG_ENABLE_LPWR_IMG_TRANSITION_DEFAULT (0)
5789
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005790/* Config Param to enable the txLdpc capability
5791 * 0 - disable
5792 * 1 - HT LDPC enable
5793 * 2 - VHT LDPC enable
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08005794 * 3 - HT & VHT LDPC enable
5795 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005796#define CFG_TX_LDPC_ENABLE_FEATURE "gTxLdpcEnable"
5797#define CFG_TX_LDPC_ENABLE_FEATURE_MIN (0)
5798#define CFG_TX_LDPC_ENABLE_FEATURE_MAX (3)
Kiran Kumar Lokere333a9952016-03-01 15:40:23 -08005799#define CFG_TX_LDPC_ENABLE_FEATURE_DEFAULT (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005800
5801/*
Nitesh Shah03161d12016-12-06 18:30:12 +05305802 * <ini>
5803 * gEnableMCCAdaptiveScheduler - MCC Adaptive Scheduler feature.
5804 * @Min: 0
5805 * @Max: 1
5806 * @Default: 1
5807 *
5808 * This ini is used to enable/disable MCC Adaptive Scheduler feature.
5809 *
5810 * Related: None.
5811 *
5812 * Supported Feature: Concurrency
5813 *
5814 * Usage: Internal/External
5815 *
5816 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005817 */
5818#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_NAME "gEnableMCCAdaptiveScheduler"
5819#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_MIN (0)
5820#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_MAX (1)
5821#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_DEFAULT (1)
5822
5823#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE "gTxBFEnable"
5824#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_MIN (WNI_CFG_VHT_SU_BEAMFORMEE_CAP_STAMIN)
5825#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_MAX (WNI_CFG_VHT_SU_BEAMFORMEE_CAP_STAMAX)
5826#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_DEFAULT (WNI_CFG_VHT_SU_BEAMFORMEE_CAP_STADEF)
5827
Kiran Kumar Lokere5302ab62015-12-16 16:03:16 -08005828/*
5829 * Enable / Disable Tx beamformee in SAP mode
5830 * Default: Disable
5831 */
5832#define CFG_VHT_ENABLE_TXBF_SAP_MODE "gEnableTxBFeeSAP"
5833#define CFG_VHT_ENABLE_TXBF_SAP_MODE_MIN (0)
5834#define CFG_VHT_ENABLE_TXBF_SAP_MODE_MAX (1)
5835#define CFG_VHT_ENABLE_TXBF_SAP_MODE_DEFAULT (0)
5836
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005837#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED "gTxBFCsnValue"
5838#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_MIN (WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_STAMIN)
5839#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_MAX (WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_STAMAX - 1)
5840#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_DEFAULT (WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_STAMAX - 1)
5841
5842#define CFG_VHT_ENABLE_TXBF_IN_20MHZ "gEnableTxBFin20MHz"
5843#define CFG_VHT_ENABLE_TXBF_IN_20MHZ_MIN (0)
5844#define CFG_VHT_ENABLE_TXBF_IN_20MHZ_MAX (1)
5845#define CFG_VHT_ENABLE_TXBF_IN_20MHZ_DEFAULT (0)
5846
Naveen Rawatefa01082015-12-01 12:08:45 -08005847#define CFG_VHT_ENABLE_TX_SU_BEAM_FORMER "gEnableTxSUBeamformer"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005848#define CFG_VHT_ENABLE_TX_SU_BEAM_FORMER_MIN (0)
5849#define CFG_VHT_ENABLE_TX_SU_BEAM_FORMER_MAX (1)
5850#define CFG_VHT_ENABLE_TX_SU_BEAM_FORMER_DEFAULT (0)
5851
5852/* Enable debug for remain on channel issues */
5853#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_NAME "gDebugP2pRemainOnChannel"
5854#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_DEFAULT (0)
5855#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_MIN (0)
5856#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_MAX (1)
5857
5858/*
5859 * SAP ALLOW All Channels
5860 */
5861#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_NAME "gSapAllowAllChannel"
5862#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_MIN (0)
5863#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_MAX (1)
5864#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_DEFAULT (0)
5865
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005866#define CFG_DISABLE_LDPC_WITH_TXBF_AP "gDisableLDPCWithTxbfAP"
5867#define CFG_DISABLE_LDPC_WITH_TXBF_AP_MIN (0)
5868#define CFG_DISABLE_LDPC_WITH_TXBF_AP_MAX (1)
5869#define CFG_DISABLE_LDPC_WITH_TXBF_AP_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005870
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005871/* Parameter to control VHT support in 2.4 GHz band */
5872#define CFG_ENABLE_VHT_FOR_24GHZ_NAME "gEnableVhtFor24GHzBand"
5873#define CFG_ENABLE_VHT_FOR_24GHZ_MIN (0)
5874#define CFG_ENABLE_VHT_FOR_24GHZ_MAX (1)
5875#define CFG_ENABLE_VHT_FOR_24GHZ_DEFAULT (0)
5876
Kapil Gupta4b2efbb2016-10-03 13:07:20 +05305877/*
5878 * Parameter to control VHT support based on vendor ie in 2.4 GHz band
5879 * This parameter will enable SAP to read VHT capability in vendor ie in Assoc
5880 * Req and send VHT caps in Resp to establish connection in VHT Mode.
5881 */
5882#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_NAME "gEnableVendorVhtFor24GHzBand"
5883#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_MIN (0)
5884#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_MAX (1)
5885#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_DEFAULT (1)
5886
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305887/*
5888 * <ini>
5889 * gMaxMediumTime - Set Maximum channel time
5890 * @Min: STAMIN
5891 * @Max: STAMAX
5892 * @Default: STADEF
5893 *
5894 * This ini is used to set default max channel time
5895 *
5896 * Related: None
5897 *
5898 * Supported Feature: STA
5899 *
5900 * Usage: Internal/External
5901 *
5902 * </ini>
5903 */
5904
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005905#define CFG_MAX_MEDIUM_TIME "gMaxMediumTime"
5906#define CFG_MAX_MEDIUM_TIME_STAMIN WNI_CFG_MAX_MEDIUM_TIME_STAMIN
5907#define CFG_MAX_MEDIUM_TIME_STAMAX WNI_CFG_MAX_MEDIUM_TIME_STAMAX
5908#define CFG_MAX_MEDIUM_TIME_STADEFAULT WNI_CFG_MAX_MEDIUM_TIME_STADEF
5909
5910/*
5911 * Enable legacy fast roaming (LFR) on STA link during concurrent sessions
5912 */
5913#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY "gEnableFastRoamInConcurrency"
5914#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_MIN (0)
5915#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_MAX (1)
5916#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_DEFAULT (1)
5917
5918/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305919 * <ini>
5920 * gEnableIbssHeartBeatOffload - Enable heart beat monitoring offload to FW
5921 * @Min: 0
5922 * @Max: 1
5923 * @Default: 1
5924 *
5925 * This ini is used to set default ibbs heartbeat offload
5926 *
5927 * Related: None
5928 *
5929 * Supported Feature: STA
5930 *
5931 * Usage: Internal/External
5932 *
5933 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005934 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305935
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005936#define CFG_ENABLE_HEART_BEAT_OFFLOAD "gEnableIbssHeartBeatOffload"
5937#define CFG_ENABLE_HEART_BEAT_OFFLOAD_MIN (0)
5938#define CFG_ENABLE_HEART_BEAT_OFFLOAD_MAX (1)
5939#define CFG_ENABLE_HEART_BEAT_OFFLOAD_DEFAULT (1)
5940
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305941/*
5942 * <ini>
5943 * gAntennaDiversity - It will use to set Antenna diversity
5944 * @Min: 0
5945 * @Max: 3
5946 * @Default: 0
5947 *
5948 * This ini is used to set default Antenna diversity
5949 *
5950 * Related: None
5951 *
5952 * Supported Feature: STA
5953 *
5954 * Usage: Internal/External
5955 *
5956 * </ini>
5957 */
5958
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005959#define CFG_ANTENNA_DIVERSITY_PARAM_NAME "gAntennaDiversity"
5960#define CFG_ANTENNA_DIVERSITY_PARAM_MIN (0)
5961#define CFG_ANTENNA_DIVERSITY_PARAM_MAX (3)
5962#define CFG_ANTENNA_DIVERSITY_PARAM_DEFAULT (0)
5963
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305964/*
5965 * <ini>
5966 * gEnableSNRMonitoring - Enables SNR Monitoring
5967 * @Min: 0
5968 * @Max: 1
5969 * @Default: 0
5970 *
5971 * This ini is used to set default snr monitor
5972 *
5973 * Related: None
5974 *
5975 * Supported Feature: STA
5976 *
5977 * Usage: Internal/External
5978 *
5979 * </ini>
5980 */
5981
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005982#define CFG_ENABLE_SNR_MONITORING_NAME "gEnableSNRMonitoring"
5983#define CFG_ENABLE_SNR_MONITORING_MIN (0)
5984#define CFG_ENABLE_SNR_MONITORING_MAX (1)
5985#define CFG_ENABLE_SNR_MONITORING_DEFAULT (0)
5986
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005987#define CFG_AMSDU_SUPPORT_IN_AMPDU_NAME "gAmsduSupportInAMPDU"
5988#define CFG_AMSDU_SUPPORT_IN_AMPDU_MIN (0)
5989#define CFG_AMSDU_SUPPORT_IN_AMPDU_MAX (1)
5990#define CFG_AMSDU_SUPPORT_IN_AMPDU_DEFAULT (0) /* disabled */
5991
5992/* Prefer connecting to 5G AP even if its RSSI is lower by
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08005993 * gSelect5GHzMargin dBm than 2.4G AP.
5994 * This feature requires the dependent cfg.ini "gRoamPrefer5GHz" set to 1
5995 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005996#define CFG_STRICT_5GHZ_PREF_BY_MARGIN "gSelect5GHzMargin"
5997#define CFG_STRICT_5GHZ_PREF_BY_MARGIN_MIN (0)
5998#define CFG_STRICT_5GHZ_PREF_BY_MARGIN_MAX (60)
5999#define CFG_STRICT_5GHZ_PREF_BY_MARGIN_DEFAULT (0) /* set 0 to disable */
6000
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306001/*
6002 * <ini>
6003 * gEnableIpTcpUdpChecksumOffload - It enables IP, TCP and UDP checksum
6004 * offload in hardware
6005 * @Min: 0
6006 * @Max: 1
6007 * @Default: DEF
6008 *
6009 * This ini is used to enable IP, TCP and UDP checksum offload in hardware
6010 * and also advertise same to network stack
6011 *
6012 * Related: None
6013 *
6014 * Supported Feature: STA
6015 *
6016 * Usage: Internal/External
6017 *
6018 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006019 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306020
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006021#define CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD "gEnableIpTcpUdpChecksumOffload"
6022#define CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD_DISABLE (0)
6023#define CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD_ENABLE (1)
6024#define CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD_DEFAULT (CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD_ENABLE)
6025
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006026#ifdef WLAN_FEATURE_FASTPATH
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306027
6028/*
6029 * <ini>
6030 * gEnableFastPath - Control to enable fastpath feature
6031 *
6032 * @Min: 0
6033 * @Max: 1
6034 * @Default: 0
6035 *
6036 * This ini is used to enable fastpath feature
6037 *
6038 * Supported Feature: Wlan Fastpath Feature
6039 *
6040 * Usage: Internal
6041 *
6042 * </ini>
6043 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006044#define CFG_ENABLE_FASTPATH "gEnableFastPath"
6045#define CFG_ENABLE_FASTPATH_MIN (0)
6046#define CFG_ENABLE_FASTPATH_MAX (1)
6047#define CFG_ENABLE_FASTPATH_DEFAULT (CFG_ENABLE_FASTPATH_MIN)
6048#endif /* WLAN_FEATURE_FASTPATH */
6049
6050/*
6051 * IPA Offload configuration - Each bit enables a feature
6052 * bit0 - IPA Enable
6053 * bit1 - IPA Pre filter enable
6054 * bit2 - IPv6 enable
6055 * bit3 - IPA Resource Manager (RM) enable
6056 * bit4 - IPA Clock scaling enable
6057 */
6058#define CFG_IPA_OFFLOAD_CONFIG_NAME "gIPAConfig"
6059#define CFG_IPA_OFFLOAD_CONFIG_MIN (0)
6060#define CFG_IPA_OFFLOAD_CONFIG_MAX (0xFFFFFFFF)
6061#define CFG_IPA_OFFLOAD_CONFIG_DEFAULT (CFG_IPA_OFFLOAD_CONFIG_MIN)
6062
6063/*
6064 * IPA DESC SIZE
6065 */
6066#define CFG_IPA_DESC_SIZE_NAME "gIPADescSize"
6067#define CFG_IPA_DESC_SIZE_MIN (800)
6068#define CFG_IPA_DESC_SIZE_MAX (8000)
6069#define CFG_IPA_DESC_SIZE_DEFAULT (800)
6070
6071#define CFG_IPA_HIGH_BANDWIDTH_MBPS "gIPAHighBandwidthMbps"
6072#define CFG_IPA_HIGH_BANDWIDTH_MBPS_MIN (200)
6073#define CFG_IPA_HIGH_BANDWIDTH_MBPS_MAX (1000)
6074#define CFG_IPA_HIGH_BANDWIDTH_MBPS_DEFAULT (400)
6075
6076#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS "gIPAMediumBandwidthMbps"
6077#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS_MIN (100)
6078#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS_MAX (400)
6079#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS_DEFAULT (200)
6080
6081#define CFG_IPA_LOW_BANDWIDTH_MBPS "gIPALowBandwidthMbps"
6082#define CFG_IPA_LOW_BANDWIDTH_MBPS_MIN (0)
6083#define CFG_IPA_LOW_BANDWIDTH_MBPS_MAX (100)
6084#define CFG_IPA_LOW_BANDWIDTH_MBPS_DEFAULT (100)
6085
6086/*
6087 * Firmware uart print
6088 */
6089#define CFG_ENABLE_FW_UART_PRINT_NAME "gEnablefwprint"
6090#define CFG_ENABLE_FW_UART_PRINT_DISABLE (0)
6091#define CFG_ENABLE_FW_UART_PRINT_ENABLE (1)
6092#define CFG_ENABLE_FW_UART_PRINT_DEFAULT (CFG_ENABLE_FW_UART_PRINT_DISABLE)
6093
6094/*
6095 * Firmware log
6096 */
6097#define CFG_ENABLE_FW_LOG_NAME "gEnablefwlog"
6098#define CFG_ENABLE_FW_LOG_DISABLE (0)
Yuanyuan Liu7a97b8f2017-01-27 10:42:52 -08006099#define CFG_ENABLE_FW_LOG_WMI (1)
6100#define CFG_ENABLE_FW_LOG_DIAG (2)
Ashish Kumar Dhanotiyaf998a582017-02-20 12:20:41 +05306101#define CFG_ENABLE_FW_LOG_MIN (CFG_ENABLE_FW_LOG_DISABLE)
Yuanyuan Liu7a97b8f2017-01-27 10:42:52 -08006102#define CFG_ENABLE_FW_LOG_MAX (CFG_ENABLE_FW_LOG_DIAG)
Yuanyuan Liu7a97b8f2017-01-27 10:42:52 -08006103#define CFG_ENABLE_FW_LOG_DEFAULT (CFG_ENABLE_FW_LOG_WMI)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006104
6105/*
6106 * Enable/Disable SSR for USB
6107 */
6108#define CFG_ENABLE_FW_SELF_RECOVERY_NAME "gEnableFwSelfRecovery"
6109#define CFG_ENABLE_FW_SELF_RECOVERY_DISABLE (0)
6110#define CFG_ENABLE_FW_SELF_RECOVERY_ENABLE (1)
6111#define CFG_ENABLE_FW_SELF_RECOVERY_DEFAULT (CFG_ENABLE_FW_SELF_RECOVERY_DISABLE)
6112
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006113/* Macro to handle maximum receive AMPDU size configuration */
6114#define CFG_VHT_AMPDU_LEN_EXPONENT_NAME "gVhtAmpduLenExponent"
6115#define CFG_VHT_AMPDU_LEN_EXPONENT_MIN (0)
6116#define CFG_VHT_AMPDU_LEN_EXPONENT_MAX (7)
6117#define CFG_VHT_AMPDU_LEN_EXPONENT_DEFAULT (3)
6118
6119#define CFG_VHT_MPDU_LEN_NAME "gVhtMpduLen"
6120#define CFG_VHT_MPDU_LEN_MIN (0)
6121#define CFG_VHT_MPDU_LEN_MAX (2)
6122#define CFG_VHT_MPDU_LEN_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006123
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006124#define CFG_SAP_MAX_NO_PEERS "gSoftApMaxPeers"
6125#define CFG_SAP_MAX_NO_PEERS_MIN (1)
6126#define CFG_SAP_MAX_NO_PEERS_MAX (32)
6127#define CFG_SAP_MAX_NO_PEERS_DEFAULT (32)
6128
6129/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306130 * <ini>
6131 * gEnableDebugLog - Enable/Disable the Connection related logs
6132 * @Min: 0
6133 * @Max: 0xFF
6134 * @Default: 0x0F
6135 *
6136 * This ini is used to enable/disable the connection related logs
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +05306137 * 0x1 - Enable mgmt pkt logs (excpet probe req/rsp, beacons).
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006138 * 0x2 - Enable EAPOL pkt logs.
6139 * 0x4 - Enable DHCP pkt logs.
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +05306140 * 0x8 - Enable mgmt action frames logs.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006141 * 0x0 - Disable all the above connection related logs.
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306142 * The default value of 0x0F will enable all the above logs
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +05306143 *
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306144 * Related: None
6145 *
6146 * Supported Feature: STA
6147 *
6148 * Usage: Internal/External
6149 *
6150 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006151 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306152
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006153#define CFG_ENABLE_DEBUG_CONNECT_ISSUE "gEnableDebugLog"
6154#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_MIN (0)
6155#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_MAX (0xFF)
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +05306156#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_DEFAULT (0x0F)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006157
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006158/* SAR Thermal limit values for 2g and 5g */
6159
6160#define CFG_SET_TXPOWER_LIMIT2G_NAME "TxPower2g"
6161#define CFG_SET_TXPOWER_LIMIT2G_MIN (0)
6162#define CFG_SET_TXPOWER_LIMIT2G_MAX (30)
Hanumanth Reddy Pothula366fa8e2016-09-07 15:05:17 +05306163#define CFG_SET_TXPOWER_LIMIT2G_DEFAULT (30)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006164
6165#define CFG_SET_TXPOWER_LIMIT5G_NAME "TxPower5g"
6166#define CFG_SET_TXPOWER_LIMIT5G_MIN (0)
6167#define CFG_SET_TXPOWER_LIMIT5G_MAX (30)
Hanumanth Reddy Pothula366fa8e2016-09-07 15:05:17 +05306168#define CFG_SET_TXPOWER_LIMIT5G_DEFAULT (30)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006169
6170#ifdef QCA_LL_LEGACY_TX_FLOW_CONTROL
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306171
6172/*
6173 * <ini>
6174 * TxFlowLowWaterMark - Low watermark for pausing network queues
6175 *
6176 * @Min: 0
6177 * @Max: 1000
6178 * @Default: 300
6179 *
6180 * This ini specifies the low watermark of data packets transmitted
6181 * before pausing netif queues in tx flow path. It is only applicable
6182 * where legacy flow control is used i.e.for Rome.
6183 *
6184 * Related: TxFlowHighWaterMarkOffset, TxFlowMaxQueueDepth,
6185 * TxLbwFlowLowWaterMark, TxLbwFlowHighWaterMarkOffset,
6186 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6187 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6188 *
6189 * Supported Feature: Dynamic Flow Control
6190 *
6191 * Usage: Internal
6192 *
6193 * </ini>
6194 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006195#define CFG_LL_TX_FLOW_LWM "TxFlowLowWaterMark"
6196#define CFG_LL_TX_FLOW_LWM_MIN (0)
6197#define CFG_LL_TX_FLOW_LWM_MAX (1000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006198#define CFG_LL_TX_FLOW_LWM_DEFAULT (300)
6199
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306200/*
6201 * <ini>
6202 * TxFlowHighWaterMarkOffset - High Watermark offset to unpause Netif queues
6203 * @Min: 0
6204 * @Max: 300
6205 * @Default: 94
6206 *
6207 * This ini specifies the offset to upause the netif queues
6208 * when they are paused due to insufficient descriptors as guided by
6209 * ini TxFlowLowWaterMark. It is only applicable where legacy flow control
6210 * is used i.e.for Rome.
6211 *
6212 * Related: TxFlowLowWaterMark, TxFlowMaxQueueDepth,
6213 * TxLbwFlowLowWaterMark, TxLbwFlowHighWaterMarkOffset,
6214 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6215 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6216 *
6217 * Supported Feature: Dynamic Flow Control
6218 *
6219 * Usage: Internal
6220 *
6221 * </ini>
6222 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006223#define CFG_LL_TX_FLOW_HWM_OFFSET "TxFlowHighWaterMarkOffset"
6224#define CFG_LL_TX_FLOW_HWM_OFFSET_MIN (0)
6225#define CFG_LL_TX_FLOW_HWM_OFFSET_MAX (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006226#define CFG_LL_TX_FLOW_HWM_OFFSET_DEFAULT (94)
6227
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306228/*
6229 * <ini>
6230 * TxFlowMaxQueueDepth - Max pause queue depth.
6231 *
6232 * @Min: 400
6233 * @Max: 3500
6234 * @Default: 1500
6235 *
6236 * This ini specifies the max queue pause depth.It is only applicable
6237 * where legacy flow control is used i.e.for Rome.
6238 *
6239 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6240 * TxLbwFlowLowWaterMark, TxLbwFlowHighWaterMarkOffset,
6241 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6242 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6243 *
6244 * Supported Feature: Dynamic Flow Control
6245 *
6246 * Usage: Internal
6247 *
6248 * </ini>
6249 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006250#define CFG_LL_TX_FLOW_MAX_Q_DEPTH "TxFlowMaxQueueDepth"
6251#define CFG_LL_TX_FLOW_MAX_Q_DEPTH_MIN (400)
6252#define CFG_LL_TX_FLOW_MAX_Q_DEPTH_MAX (3500)
6253#define CFG_LL_TX_FLOW_MAX_Q_DEPTH_DEFAULT (1500)
6254
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306255/*
6256 * <ini>
6257 * TxLbwFlowLowWaterMark - Low watermark for pausing network queues
6258 * in low bandwidth band
6259 * @Min: 0
6260 * @Max: 1000
6261 * @Default: 450
6262 *
6263 * This ini specifies the low watermark of data packets transmitted
6264 * before pausing netif queues in tx flow path in low bandwidth band.
6265 * It is only applicable where legacy flow control is used i.e.for Rome.
6266 *
6267 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6268 * TxFlowMaxQueueDepth, TxLbwFlowHighWaterMarkOffset,
6269 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6270 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6271 *
6272 * Supported Feature: Dynamic Flow Control
6273 *
6274 * Usage: Internal
6275 *
6276 * </ini>
6277 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006278#define CFG_LL_TX_LBW_FLOW_LWM "TxLbwFlowLowWaterMark"
6279#define CFG_LL_TX_LBW_FLOW_LWM_MIN (0)
6280#define CFG_LL_TX_LBW_FLOW_LWM_MAX (1000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006281#define CFG_LL_TX_LBW_FLOW_LWM_DEFAULT (450)
6282
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306283/*
6284 * <ini>
6285 * TxLbwFlowHighWaterMarkOffset - High Watermark offset to unpause Netif queues
6286 * in low bandwidth band.
6287 * @Min: 0
6288 * @Max: 300
6289 * @Default: 50
6290 *
6291 * This ini specifies the offset to upause the netif queues
6292 * when they are paused due to insufficient descriptors as guided by
6293 * ini TxLbwFlowLowWaterMark in low bandwidth band. It is only applicable
6294 * where legacy flow control is used i.e.for Rome.
6295 *
6296 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6297 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
6298 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6299 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6300 *
6301 * Supported Feature: Dynamic Flow Control
6302 *
6303 * Usage: Internal
6304 *
6305 * </ini>
6306 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006307#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET "TxLbwFlowHighWaterMarkOffset"
6308#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET_MIN (0)
6309#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET_MAX (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006310#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET_DEFAULT (50)
6311
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306312/*
6313 * <ini>
6314 * TxLbwFlowMaxQueueDepth - Max pause queue depth in low bandwidth band
6315 *
6316 * @Min: 400
6317 * @Max: 3500
6318 * @Default: 750
6319 *
6320 * This ini specifies the max queue pause depth in low bandwidth band.
6321 * It is only applicable where legacy flow control is used i.e.for Rome.
6322 *
6323 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6324 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
6325 * TxLbwFlowHighWaterMarkOffset, TxHbwFlowLowWaterMark,
6326 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6327 *
6328 * Supported Feature: Dynamic Flow Control
6329 *
6330 * Usage: Internal
6331 *
6332 * </ini>
6333 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006334#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH "TxLbwFlowMaxQueueDepth"
6335#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH_MIN (400)
6336#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH_MAX (3500)
6337#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH_DEFAULT (750)
6338
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306339/*
6340 * <ini>
6341 * TxHbwFlowLowWaterMark - Low watermark for pausing network queues
6342 * in high bandwidth band
6343 * @Min: 0
6344 * @Max: 1000
6345 * @Default: 406
6346 *
6347 * This ini specifies the threshold of data packets transmitted
6348 * before pausing netif queues.It is only applicable where
6349 * legacy flow control is used i.e.for Rome.
6350 *
6351 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6352 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
6353 * TxLbwFlowHighWaterMarkOffset, TxLbwFlowMaxQueueDepth,
6354 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6355 *
6356 * Supported Feature: Dynamic Flow Control
6357 *
6358 * Usage: Internal
6359 *
6360 * </ini>
6361 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006362#define CFG_LL_TX_HBW_FLOW_LWM "TxHbwFlowLowWaterMark"
6363#define CFG_LL_TX_HBW_FLOW_LWM_MIN (0)
6364#define CFG_LL_TX_HBW_FLOW_LWM_MAX (1000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006365#define CFG_LL_TX_HBW_FLOW_LWM_DEFAULT (406)
6366
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306367/*
6368 * <ini>
6369 * TxHbwFlowHighWaterMarkOffset - High Watermark offset to unpause Netif queues
6370 * in high bandwidth band.
6371 * @Min: 0
6372 * @Max: 300
6373 * @Default: 94
6374 *
6375 * This ini specifies the offset to upause the netif queues
6376 * when they are paused due to insufficient descriptors as guided by
6377 * ini TxHbwFlowLowWaterMark in high bandwidth band. It is only applicable
6378 * where legacy flow control is used i.e.for Rome.
6379 *
6380 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6381 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
6382 * TxLbwFlowHighWaterMarkOffset, TxLbwFlowMaxQueueDepth,
6383 * TxHbwFlowLowWaterMark, TxHbwFlowMaxQueueDepth
6384 *
6385 * Supported Feature: Dynamic Flow Control
6386 *
6387 * Usage: Internal
6388 *
6389 * </ini>
6390 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006391#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET "TxHbwFlowHighWaterMarkOffset"
6392#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET_MIN (0)
6393#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET_MAX (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006394#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET_DEFAULT (94)
6395
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306396/*
6397 * <ini>
6398 * TxHbwFlowMaxQueueDepth - Max pause queue depth in high bandwidth band
6399 * @Min: 4000
6400 * @Max: 3500
6401 * @Default: 1500
6402 *
6403 * This ini specifies the max queue pause depth in high bandwidth band.
6404 * It is only applicable where legacy flow control is used i.e.for Rome.
6405 *
6406 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6407 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
6408 * TxLbwFlowHighWaterMarkOffset, TxLbwFlowMaxQueueDepth,
6409 * TxHbwFlowLowWaterMark, TxHbwFlowHighWaterMarkOffset
6410 *
6411 * Supported Feature: Dynamic Flow Control
6412 *
6413 * Usage: Internal
6414 *
6415 * </ini>
6416 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006417#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH "TxHbwFlowMaxQueueDepth"
6418#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH_MIN (400)
6419#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH_MAX (3500)
6420#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH_DEFAULT (1500)
6421#endif /* QCA_LL_LEGACY_TX_FLOW_CONTROL */
6422
6423#ifdef QCA_LL_TX_FLOW_CONTROL_V2
6424
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306425/*
6426 * <ini>
6427 * TxFlowStopQueueThreshold - Stop queue Threshold to pause
6428 * Netif queues when it reaches
6429 * @Min: 0
6430 * @Max: 50
6431 * @Default: 15
6432 *
6433 * This ini specifies the threshold of data packets transmitted
6434 * before pausing netif queues.
6435 *
6436 * Related: TxFlowStartQueueOffset
6437 *
6438 * Supported Feature: Dynamic Flow Control
6439 *
6440 * Usage: Internal
6441 *
6442 * </ini>
6443 */
6444#define CFG_LL_TX_FLOW_STOP_QUEUE_TH "TxFlowStopQueueThreshold"
6445#define CFG_LL_TX_FLOW_STOP_QUEUE_TH_DEFAULT (15)
6446#define CFG_LL_TX_FLOW_STOP_QUEUE_TH_MIN (0)
6447#define CFG_LL_TX_FLOW_STOP_QUEUE_TH_MAX (50)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006448
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306449/*
6450 * <ini>
6451 * TxFlowStartQueueOffset - Start queue offset to unpause
6452 * Netif queues
6453 * @Min: 0
6454 * @Max: 30
6455 * @Default: 11
6456 *
6457 * This ini specifies the offset to upause the netif queues
6458 * when they are paused due to insufficient descriptors as guided by
6459 * ini TxFlowStopQueueThreshold.
6460 *
6461 * Related: TxFlowStopQueueThreshold
6462 *
6463 * Supported Feature: Dynamic Flow Control
6464 *
6465 * Usage: Internal
6466 *
6467 * </ini>
6468 */
6469#define CFG_LL_TX_FLOW_START_QUEUE_OFFSET "TxFlowStartQueueOffset"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006470#define CFG_LL_TX_FLOW_START_QUEUE_OFFSET_DEFAULT (10)
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306471#define CFG_LL_TX_FLOW_START_QUEUE_OFFSET_MIN (0)
6472#define CFG_LL_TX_FLOW_START_QUEUE_OFFSET_MAX (30)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006473
6474#endif /* QCA_LL_TX_FLOW_CONTROL_V2 */
6475
6476#define CFG_SAP_MAX_OFFLOAD_PEERS "gMaxOffloadPeers"
6477#define CFG_SAP_MAX_OFFLOAD_PEERS_MIN (2)
6478#define CFG_SAP_MAX_OFFLOAD_PEERS_MAX (5)
6479#define CFG_SAP_MAX_OFFLOAD_PEERS_DEFAULT (2)
6480
6481#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS "gMaxOffloadReorderBuffs"
6482#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS_MIN (0)
6483#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS_MAX (3)
6484#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS_DEFAULT (2)
6485
6486#ifdef FEATURE_WLAN_RA_FILTERING
6487#define CFG_RA_FILTER_ENABLE_NAME "gRAFilterEnable"
6488#define CFG_RA_FILTER_ENABLE_MIN (0)
6489#define CFG_RA_FILTER_ENABLE_MAX (1)
Dustin Brown87c44282016-10-06 10:17:13 -07006490#define CFG_RA_FILTER_ENABLE_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006491
6492#define CFG_RA_RATE_LIMIT_INTERVAL_NAME "gRArateLimitInterval"
6493#define CFG_RA_RATE_LIMIT_INTERVAL_MIN (60)
6494#define CFG_RA_RATE_LIMIT_INTERVAL_MAX (3600)
6495#define CFG_RA_RATE_LIMIT_INTERVAL_DEFAULT (60) /*60 SEC */
6496#endif
6497
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306498/*
6499 * <ini>
6500 * gIgnorePeerErpInfo - Used for ignore peer infrormation
6501 * @Min: 0
6502 * @Max: 1
6503 * @Default: 0
6504 *
6505 * This ini is used to ignore default peer info
6506 *
6507 * Related: None
6508 *
6509 * Supported Feature: STA
6510 *
6511 * Usage: Internal/External
6512 *
6513 * </ini>
6514 */
6515
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006516#define CFG_IGNORE_PEER_ERP_INFO_NAME "gIgnorePeerErpInfo"
6517#define CFG_IGNORE_PEER_ERP_INFO_MIN (0)
6518#define CFG_IGNORE_PEER_ERP_INFO_MAX (1)
6519#define CFG_IGNORE_PEER_ERP_INFO_DEFAULT (0)
6520
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306521/*
6522 * <ini>
6523 * gEnableMemoryDebug - Enables the memory debug
6524 * @Min: 0
6525 * @Max: 1
6526 * @Default: 1
6527 *
6528 * This ini is used to enable default memory debug
6529 *
6530 * Related: None
6531 *
6532 * Supported Feature: STA
6533 *
6534 * Usage: Internal/External
6535 *
6536 * </ini>
6537 */
6538
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006539#ifdef MEMORY_DEBUG
6540#define CFG_ENABLE_MEMORY_DEBUG_NAME "gEnableMemoryDebug"
6541#define CFG_ENABLE_MEMORY_DEBUG_MIN (0)
6542#define CFG_ENABLE_MEMORY_DEBUG_MAX (1)
6543#define CFG_ENABLE_MEMORY_DEBUG_DEFAULT (1)
6544#endif
6545
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306546
6547/*
6548 * <ini>
6549 * gInitialDwellTime - Used to set initial dwell time
6550 * @Min: 0
6551 * @Max: 0
6552 * @Default: 100
6553 *
6554 * This ini is used to set default initial dwell time
6555 *
6556 * Related: None
6557 *
6558 * Supported Feature: STA
6559 *
6560 * Usage: Internal/External
6561 *
6562 * </ini>
6563 */
6564
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006565#define CFG_INITIAL_DWELL_TIME_NAME "gInitialDwellTime"
6566#define CFG_INITIAL_DWELL_TIME_DEFAULT (0)
6567#define CFG_INITIAL_DWELL_TIME_MIN (0)
6568#define CFG_INITIAL_DWELL_TIME_MAX (100)
6569
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306570/*
6571 * <ini>
6572 * gInitialScanNoDFSChnl - WLAN skips scanning the DFS channels
6573 * @Min: 0
6574 * @Max: 0
6575 * @Default: 1
6576 *
6577 * This ini is used to set for the first scan after driver
6578 *
6579 * Related: None
6580 *
6581 * Supported Feature: STA
6582 *
6583 * Usage: Internal/External
6584 *
6585 * </ini>
6586 */
6587
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006588#define CFG_INITIAL_SCAN_NO_DFS_CHNL_NAME "gInitialScanNoDFSChnl"
6589#define CFG_INITIAL_SCAN_NO_DFS_CHNL_DEFAULT (0)
6590#define CFG_INITIAL_SCAN_NO_DFS_CHNL_MIN (0)
6591#define CFG_INITIAL_SCAN_NO_DFS_CHNL_MAX (1)
6592
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306593/*
6594 * <ini>
6595 * gAllowDFSChannelRoam - Allow dfs channel in roam
6596 * @Min: 0
6597 * @Max: 1
6598 * @Default: 2
6599 *
6600 * This ini is used to set default dfs channel
6601 *
6602 * Related: None
6603 *
6604 * Supported Feature: STA
6605 *
6606 * Usage: Internal/External
6607 *
6608 * </ini>
6609 */
6610
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006611#define CFG_ROAMING_DFS_CHANNEL_NAME "gAllowDFSChannelRoam"
6612#define CFG_ROAMING_DFS_CHANNEL_DISABLED (0)
6613#define CFG_ROAMING_DFS_CHANNEL_ENABLED_NORMAL (1)
6614#define CFG_ROAMING_DFS_CHANNEL_ENABLED_ACTIVE (2)
6615#define CFG_ROAMING_DFS_CHANNEL_MIN (CFG_ROAMING_DFS_CHANNEL_DISABLED)
6616#define CFG_ROAMING_DFS_CHANNEL_MAX (CFG_ROAMING_DFS_CHANNEL_ENABLED_ACTIVE)
6617#define CFG_ROAMING_DFS_CHANNEL_DEFAULT (CFG_ROAMING_DFS_CHANNEL_DISABLED)
6618
6619#ifdef MSM_PLATFORM
6620#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD "gBusBandwidthHighThreshold"
6621#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD_DEFAULT (2000)
6622#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD_MIN (0)
6623#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD_MAX (4294967295UL)
6624
6625#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD "gBusBandwidthMediumThreshold"
6626#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD_DEFAULT (500)
6627#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD_MIN (0)
6628#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD_MAX (4294967295UL)
6629
6630#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD "gBusBandwidthLowThreshold"
6631#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD_DEFAULT (150)
6632#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD_MIN (0)
6633#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD_MAX (4294967295UL)
6634
6635#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL "gBusBandwidthComputeInterval"
6636#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL_DEFAULT (100)
6637#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL_MIN (0)
6638#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL_MAX (10000)
6639
Ravi Joshie2331e82015-07-01 18:18:54 -07006640/*
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306641 * <ini>
6642 * gTcpDelAckEnable - Control to enable Dynamic Configuration of Tcp Delayed Ack
6643 * @Min: 0
6644 * @Max: 1
6645 * @Default: 1
6646 *
6647 * This ini is used to enable Dynamic Configuration of Tcp Delayed Ack
6648 *
6649 * Related: gTcpDelAckThresholdHigh, gTcpDelAckThresholdLow,
6650 * gTcpDelAckTimerCount
6651 *
6652 * Supported Feature: Tcp Delayed Ack
6653 *
6654 * Usage: Internal
6655 *
6656 * </ini>
Ravi Joshie2331e82015-07-01 18:18:54 -07006657 */
6658#define CFG_ENABLE_TCP_DELACK "gTcpDelAckEnable"
6659#define CFG_ENABLE_TCP_DELACK_DEFAULT (1)
6660#define CFG_ENABLE_TCP_DELACK_MIN (0)
6661#define CFG_ENABLE_TCP_DELACK_MAX (1)
6662
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306663
6664/*
6665 * <ini>
6666 * gTcpDelAckThresholdHigh - High Threshold inorder to trigger TCP Del Ack
6667 * indication
6668 * @Min: 0
6669 * @Max: 16000
6670 * @Default: 500
6671 *
6672 * This ini is used to mention the High Threshold inorder to trigger TCP Del Ack
6673 * indication i.e the threshold of packets received over a period of 100 ms.
6674 * i.e to have a low RX throughput requirement
6675 * Related: gTcpDelAckEnable, gTcpDelAckThresholdLow, gTcpDelAckTimerCount
6676 *
6677 * Supported Feature: Tcp Delayed Ack
6678 *
6679 * Usage: Internal
6680 *
6681 * </ini>
6682 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006683#define CFG_TCP_DELACK_THRESHOLD_HIGH "gTcpDelAckThresholdHigh"
6684#define CFG_TCP_DELACK_THRESHOLD_HIGH_DEFAULT (500)
6685#define CFG_TCP_DELACK_THRESHOLD_HIGH_MIN (0)
6686#define CFG_TCP_DELACK_THRESHOLD_HIGH_MAX (16000)
6687
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306688/*
6689 * <ini>
6690 * gTcpDelAckThresholdLow - Low Threshold inorder to trigger TCP Del Ack
6691 * indication
6692 * @Min: 0
6693 * @Max: 10000
6694 * @Default: 1000
6695 *
6696 * This ini is used to mention the Low Threshold inorder to trigger TCP Del Ack
6697 * indication i.e the threshold of packets received over a period of 100 ms.
6698 * i.e to have a low RX throughput requirement
6699 *
6700 * Related: gTcpDelAckEnable, gTcpDelAckThresholdHigh, gTcpDelAckTimerCount
6701 *
6702 * Supported Feature: Tcp Delayed Ack
6703 *
6704 * Usage: Internal
6705 *
6706 * </ini>
6707 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006708#define CFG_TCP_DELACK_THRESHOLD_LOW "gTcpDelAckThresholdLow"
6709#define CFG_TCP_DELACK_THRESHOLD_LOW_DEFAULT (1000)
6710#define CFG_TCP_DELACK_THRESHOLD_LOW_MIN (0)
6711#define CFG_TCP_DELACK_THRESHOLD_LOW_MAX (10000)
Mohit Khannae71e2262015-11-10 09:37:24 -08006712
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306713/*
6714 * <ini>
6715 * gTcpDelAckTimerCount - Del Ack Timer Count inorder to trigger TCP Del Ack
6716 * indication
6717 * @Min: 1
6718 * @Max: 1000
6719 * @Default: 30
6720 *
6721 * This ini is used to mention the Del Ack Timer Count inorder to
6722 * trigger TCP Del Ack indication i.e number of 100 ms periods
6723 *
6724 * Related: gTcpDelAckEnable, gTcpDelAckThresholdHigh, gTcpDelAckThresholdLow
6725 *
6726 * Supported Feature: Tcp Delayed Ack
6727 *
6728 * Usage: Internal
6729 *
6730 * </ini>
6731 */
Ravi Joshib89e7f72016-09-07 13:43:15 -07006732#define CFG_TCP_DELACK_TIMER_COUNT "gTcpDelAckTimerCount"
6733#define CFG_TCP_DELACK_TIMER_COUNT_DEFAULT (30)
6734#define CFG_TCP_DELACK_TIMER_COUNT_MIN (1)
6735#define CFG_TCP_DELACK_TIMER_COUNT_MAX (1000)
6736
6737
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306738/*
6739 * <ini>
6740 * gTcpTxHighTputThreshold - High Threshold inorder to trigger High
6741 * Tx Throughput requirement.
6742 * @Min: 0
6743 * @Max: 16000
6744 * @Default: 500
6745 *
6746 * This ini specifies the threshold of packets transmitted
Mohit Khannae71e2262015-11-10 09:37:24 -08006747 * over a period of 100 ms beyond which TCP can be considered to have a high
6748 * TX throughput requirement. The driver uses this condition to tweak TCP TX
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306749 * specific parameters (via cnss-daemon)
6750 *
6751 * Supported Feature: To tweak TCP TX n/w parameters
6752 *
6753 * Usage: Internal
6754 *
6755 * </ini>
Mohit Khannae71e2262015-11-10 09:37:24 -08006756 */
6757#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_NAME "gTcpTxHighTputThreshold"
6758#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_DEFAULT (500)
6759#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_MIN (0)
6760#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_MAX (16000)
6761
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006762#endif /* MSM_PLATFORM */
6763
6764#ifdef WLAN_FEATURE_11W
Abhishek Singh2f810492016-12-01 11:39:39 +05306765/*
6766 * <ini>
6767 * pmfSaQueryMaxRetries - Control PMF SA query retries for SAP
6768 * @Min: 0
6769 * @Max: 20
6770 * @Default: 5
6771 *
6772 * This ini to set the number of PMF SA query retries for SAP
6773 *
6774 * Related: None.
6775 *
6776 * Supported Feature: PMF(11W)
6777 *
6778 * Usage: Internal/External
6779 *
6780 * </ini>
6781 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006782#define CFG_PMF_SA_QUERY_MAX_RETRIES_NAME "pmfSaQueryMaxRetries"
6783#define CFG_PMF_SA_QUERY_MAX_RETRIES_DEFAULT (5)
6784#define CFG_PMF_SA_QUERY_MAX_RETRIES_MIN (0)
6785#define CFG_PMF_SA_QUERY_MAX_RETRIES_MAX (20)
6786
Abhishek Singh2f810492016-12-01 11:39:39 +05306787/*
6788 * <ini>
6789 * pmfSaQueryRetryInterval - Control PMF SA query retry interval
6790 * for SAP in ms
6791 * @Min: 0
6792 * @Max: 2000
6793 * @Default: 200
6794 *
6795 * This ini to set the PMF SA query retry interval for SAP in ms
6796 *
6797 * Related: None.
6798 *
6799 * Supported Feature: PMF(11W)
6800 *
6801 * Usage: Internal/External
6802 *
6803 * </ini>
6804 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006805#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_NAME "pmfSaQueryRetryInterval"
6806#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_DEFAULT (200)
6807#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_MIN (0)
6808#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_MAX (2000)
6809#endif
6810
Nitesh Shah03161d12016-12-06 18:30:12 +05306811/*
6812 * <ini>
6813 * gMaxConcurrentActiveSessions - Maximum number of concurrent connections.
6814 * @Min: 1
6815 * @Max: 4
6816 * @Default: 3
6817 *
6818 * This ini is used to configure the maximum number of concurrent connections.
6819 *
6820 * Related: None.
6821 *
6822 * Supported Feature: Concurrency
6823 *
6824 * Usage: Internal/External
6825 *
6826 * </ini>
6827 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006828#define CFG_MAX_CONCURRENT_CONNECTIONS_NAME "gMaxConcurrentActiveSessions"
Tushnim Bhattacharyyae67bfc72016-01-27 11:47:37 -08006829#define CFG_MAX_CONCURRENT_CONNECTIONS_DEFAULT (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006830#define CFG_MAX_CONCURRENT_CONNECTIONS_MIN (1)
6831#define CFG_MAX_CONCURRENT_CONNECTIONS_MAX (4)
6832
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306833/*
6834 * <ini>
6835 * gIgnoreCAC - Used to ignore CAC
6836 * @Min: 0
6837 * @Max: 1
6838 * @Default: 0
6839 *
6840 * This ini is used to set default CAC
6841 *
6842 * Related: None
6843 *
6844 * Supported Feature: STA
6845 *
6846 * Usage: Internal/External
6847 *
6848 * </ini>
6849 */
6850
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006851#define CFG_IGNORE_CAC_NAME "gIgnoreCAC"
6852#define CFG_IGNORE_CAC_MIN (0)
6853#define CFG_IGNORE_CAC_MAX (1)
6854#define CFG_IGNORE_CAC_DEFAULT (0)
6855
6856#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_NAME "gEnableSAPDfsChSifsBurst"
6857#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_MIN (0)
6858#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_MAX (1)
6859#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_DEFAULT (1)
6860
6861#define CFG_DFS_RADAR_PRI_MULTIPLIER_NAME "gDFSradarMappingPriMultiplier"
6862#define CFG_DFS_RADAR_PRI_MULTIPLIER_DEFAULT (4)
6863#define CFG_DFS_RADAR_PRI_MULTIPLIER_MIN (0)
6864#define CFG_DFS_RADAR_PRI_MULTIPLIER_MAX (10)
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306865
6866/*
6867 * <ini>
6868 * gReorderOffloadSupported - Packet reordering offload to firmware
6869 * @Min: 0
6870 * @Max: 1
6871 * @Default: 0
6872 *
6873 * This ini is used to set default Packet reordering
6874 *
6875 * Related: None
6876 *
6877 * Supported Feature: STA
6878 *
6879 * Usage: Internal/External
6880 *
6881 * </ini>
6882 */
6883
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006884#define CFG_REORDER_OFFLOAD_SUPPORT_NAME "gReorderOffloadSupported"
6885#define CFG_REORDER_OFFLOAD_SUPPORT_MIN (0)
6886#define CFG_REORDER_OFFLOAD_SUPPORT_MAX (1)
Kiran Kumar Lokere52d8dc32016-12-05 19:20:40 -08006887#define CFG_REORDER_OFFLOAD_SUPPORT_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006888
6889#ifdef WLAN_FEATURE_ROAM_OFFLOAD
6890#define CFG_ROAMING_OFFLOAD_NAME "gRoamOffloadEnabled"
6891#define CFG_ROAMING_OFFLOAD_MIN (0)
6892#define CFG_ROAMING_OFFLOAD_MAX (1)
Varun Reddy Yeturu215ef942016-03-17 16:57:45 -07006893#define CFG_ROAMING_OFFLOAD_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006894#endif
6895
Yun Parkde380782016-08-17 16:26:54 -07006896/* IpaUcTxBufCount should be power of 2 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006897#define CFG_IPA_UC_TX_BUF_COUNT_NAME "IpaUcTxBufCount"
6898#define CFG_IPA_UC_TX_BUF_COUNT_MIN (0)
6899#define CFG_IPA_UC_TX_BUF_COUNT_MAX (2048)
6900#define CFG_IPA_UC_TX_BUF_COUNT_DEFAULT (512)
6901
6902#define CFG_IPA_UC_TX_BUF_SIZE_NAME "IpaUcTxBufSize"
6903#define CFG_IPA_UC_TX_BUF_SIZE_MIN (0)
6904#define CFG_IPA_UC_TX_BUF_SIZE_MAX (4096)
6905#define CFG_IPA_UC_TX_BUF_SIZE_DEFAULT (2048)
6906
Yun Parkde380782016-08-17 16:26:54 -07006907/* IpaUcRxIndRingCount should be power of 2 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006908#define CFG_IPA_UC_RX_IND_RING_COUNT_NAME "IpaUcRxIndRingCount"
6909#define CFG_IPA_UC_RX_IND_RING_COUNT_MIN (0)
6910#define CFG_IPA_UC_RX_IND_RING_COUNT_MAX (2048)
6911#define CFG_IPA_UC_RX_IND_RING_COUNT_DEFAULT (1024)
6912
6913#define CFG_IPA_UC_TX_PARTITION_BASE_NAME "IpaUcTxPartitionBase"
6914#define CFG_IPA_UC_TX_PARTITION_BASE_MIN (0)
6915#define CFG_IPA_UC_TX_PARTITION_BASE_MAX (9000)
6916#define CFG_IPA_UC_TX_PARTITION_BASE_DEFAULT (3000)
6917
6918#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
6919/* Enable WLAN Logging to app space */
6920#define CFG_WLAN_LOGGING_SUPPORT_NAME "wlanLoggingEnable"
6921#define CFG_WLAN_LOGGING_SUPPORT_ENABLE (1)
6922#define CFG_WLAN_LOGGING_SUPPORT_DISABLE (0)
6923#define CFG_WLAN_LOGGING_SUPPORT_DEFAULT (1)
6924
Srinivas Girigowda8187e792017-03-03 11:50:59 -08006925/* Enable forwarding the driver logs to kmsg console */
6926#define CFG_WLAN_LOGGING_CONSOLE_SUPPORT_NAME "wlanLoggingToConsole"
6927#define CFG_WLAN_LOGGING_CONSOLE_SUPPORT_ENABLE (1)
6928#define CFG_WLAN_LOGGING_CONSOLE_SUPPORT_DISABLE (0)
6929#define CFG_WLAN_LOGGING_CONSOLE_SUPPORT_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006930
6931/* Number of buffers to be used for WLAN logging */
6932#define CFG_WLAN_LOGGING_NUM_BUF_NAME "wlanLoggingNumBuf"
6933#define CFG_WLAN_LOGGING_NUM_BUF_MIN (4)
6934#define CFG_WLAN_LOGGING_NUM_BUF_MAX (512)
6935#define CFG_WLAN_LOGGING_NUM_BUF_DEFAULT (256)
6936#endif /* WLAN_LOGGING_SOCK_SVC_ENABLE */
6937
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306938/*
6939 * <ini>
6940 * gEnableSifsBurst - Enables Sifs Burst
6941 * @Min: 0
Dustin Brown0a4cfeb2017-03-10 15:22:28 -08006942 * @Max: 3
6943 * @Default: 0
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306944 *
Dustin Brown0a4cfeb2017-03-10 15:22:28 -08006945 * Sifs burst mode configuration
6946 * 0) disabled
6947 * 1) enabled, but disabled for legacy mode
6948 * 3) enabled
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306949 *
6950 * Related: None
6951 *
6952 * Supported Feature: STA
6953 *
6954 * Usage: Internal/External
6955 *
6956 * </ini>
6957 */
6958
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006959#define CFG_ENABLE_SIFS_BURST "gEnableSifsBurst"
6960#define CFG_ENABLE_SIFS_BURST_MIN (0)
Dustin Brown0a4cfeb2017-03-10 15:22:28 -08006961#define CFG_ENABLE_SIFS_BURST_MAX (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006962#define CFG_ENABLE_SIFS_BURST_DEFAULT (0)
6963
6964#ifdef WLAN_FEATURE_LPSS
6965#define CFG_ENABLE_LPASS_SUPPORT "gEnableLpassSupport"
6966#define CFG_ENABLE_LPASS_SUPPORT_DEFAULT (0)
6967#define CFG_ENABLE_LPASS_SUPPORT_MIN (0)
6968#define CFG_ENABLE_LPASS_SUPPORT_MAX (1)
6969#endif
6970
6971/*
6972 * NaN feature support configuration
6973 * gEnableNanSupport = 0 means NaN is not supported
6974 * gEnableNanSupport = 1 means NaN is supported
6975 */
6976#ifdef WLAN_FEATURE_NAN
6977#define CFG_ENABLE_NAN_SUPPORT "gEnableNanSupport"
6978#define CFG_ENABLE_NAN_SUPPORT_DEFAULT (0)
6979#define CFG_ENABLE_NAN_SUPPORT_MIN (0)
6980#define CFG_ENABLE_NAN_SUPPORT_MAX (1)
6981#endif
6982
6983#define CFG_ENABLE_SELF_RECOVERY "gEnableSelfRecovery"
6984#define CFG_ENABLE_SELF_RECOVERY_MIN (0)
6985#define CFG_ENABLE_SELF_RECOVERY_MAX (1)
6986#define CFG_ENABLE_SELF_RECOVERY_DEFAULT (0)
6987
6988#define CFG_ENABLE_SAP_SUSPEND "gEnableSapSuspend"
6989#define CFG_ENABLE_SAP_SUSPEND_MIN (0)
6990#define CFG_ENABLE_SAP_SUSPEND_MAX (1)
6991#define CFG_ENABLE_SAP_SUSPEND_DEFAULT (1)
6992
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306993/*
6994 * <ini>
6995 * gEnableDeauthToDisassocMap - Enables deauth to disassoc map
6996 * @Min: 0
6997 * @Max: 1
6998 * @Default: 0
6999 *
7000 * This ini is used to set default disassoc map
7001 *
7002 * Related: None
7003 *
7004 * Supported Feature: STA
7005 *
7006 * Usage: Internal/External
7007 *
7008 * </ini>
7009 */
7010
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007011#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_NAME "gEnableDeauthToDisassocMap"
7012#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_MIN (0)
7013#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_MAX (1)
7014#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_DEFAULT (0)
7015
7016#ifdef DHCP_SERVER_OFFLOAD
7017#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_NAME "gDHCPServerOffloadEnable"
7018#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_MIN (0)
7019#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_MAX (1)
7020#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_DEFAULT (CFG_DHCP_SERVER_OFFLOAD_SUPPORT_MIN)
7021
7022#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_NAME "gDHCPMaxNumClients"
7023#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_MIN (1)
7024#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_MAX (8)
7025#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_DEFAULT (CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_MAX)
7026
7027#define CFG_DHCP_SERVER_IP_NAME "gDHCPServerIP"
7028#define CFG_DHCP_SERVER_IP_DEFAULT ""
7029#endif /* DHCP_SERVER_OFFLOAD */
7030
7031/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307032 * <ini>
7033 * gSendDeauthBeforeCon - It will send deauth before connection
7034 * @Min: 0
7035 * @Max: 1
7036 * @Default: 0
7037 *
7038 * This ini is used to set default DeauthBeforeCon
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007039 * If last disconnection was due to HB failure and we reconnect
7040 * to same AP next time, send Deauth before starting connection
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307041 *
7042 * Related: None
7043 *
7044 * Supported Feature: STA
7045 *
7046 * Usage: Internal/External
7047 *
7048 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007049 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307050
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007051#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION "gSendDeauthBeforeCon"
7052#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_MIN (0)
7053#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_MAX (1)
7054#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_DEFAULT (0)
7055
7056/*
Nitesh Shah03161d12016-12-06 18:30:12 +05307057 * <ini>
7058 * gEnableCustomConcRule1 - Enable custom concurrency rule1.
7059 * @Min: 0
7060 * @Max: 1
7061 * @Default: 0
7062 *
7063 * This ini is used to enable/disable custom concurrency rule1.
7064 * If SAP comes up first and STA comes up later then SAP needs to follow STA's
7065 * channel.
7066 *
7067 * Related: None.
7068 *
7069 * Supported Feature: Concurrency
7070 *
7071 * Usage: Internal/External
7072 *
7073 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007074 */
7075#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME "gEnableCustomConcRule1"
7076#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME_MIN (0)
7077#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME_MAX (1)
7078#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME_DEFAULT (0)
7079
Nitesh Shah03161d12016-12-06 18:30:12 +05307080/*
7081 * <ini>
7082 * gEnableCustomConcRule2 - Enable custom concurrency rule2.
7083 * @Min: 0
7084 * @Max: 1
7085 * @Default: 0
7086 *
7087 * This ini is used to enable/disable custom concurrency rule2.
7088 * If P2PGO comes up first and STA comes up later then P2PGO need to follow
7089 * STA's channel in 5Ghz. In following if condition we are just adding sanity
7090 * check to make sure that by this time P2PGO's channel is same as STA's
7091 * channel.
7092 *
7093 * Related: None.
7094 *
7095 * Supported Feature: Concurrency
7096 *
7097 * Usage: Internal/External
7098 *
7099 * </ini>
7100 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007101#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME "gEnableCustomConcRule2"
7102#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME_MIN (0)
7103#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME_MAX (1)
7104#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME_DEFAULT (0)
7105
7106#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ "gEnableStaConnectionIn5Ghz"
7107#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ_MIN (0)
7108#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ_MAX (1)
7109#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ_DEFAULT (1)
7110
7111#define CFG_ENABLE_MAC_ADDR_SPOOFING "gEnableMacAddrSpoof"
7112#define CFG_ENABLE_MAC_ADDR_SPOOFING_MIN (0)
7113#define CFG_ENABLE_MAC_ADDR_SPOOFING_MAX (1)
7114#define CFG_ENABLE_MAC_ADDR_SPOOFING_DEFAULT (1)
7115
7116#define CFG_P2P_LISTEN_DEFER_INTERVAL_NAME "gP2PListenDeferInterval"
7117#define CFG_P2P_LISTEN_DEFER_INTERVAL_MIN (100)
7118#define CFG_P2P_LISTEN_DEFER_INTERVAL_MAX (200)
7119#define CFG_P2P_LISTEN_DEFER_INTERVAL_DEFAULT (100)
7120
Nitesh Shah03161d12016-12-06 18:30:12 +05307121/*
7122 * <ini>
7123 * gStaMiracastMccRestTimeVal - Rest time when Miracast is running.
7124 * @Min: 100
7125 * @Max: 500
7126 * @Default: 400
7127 *
7128 * This ini is used to set rest time for home channel for Miracast before
7129 * going for scan.
7130 *
7131 * Related: None.
7132 *
7133 * Supported Feature: Concurrency
7134 *
7135 * Usage: Internal/External
7136 *
7137 * </ini>
7138 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007139#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL "gStaMiracastMccRestTimeVal"
7140#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL_MIN (100)
7141#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL_MAX (500)
7142#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL_DEFAULT (400)
7143
7144#ifdef FEATURE_AP_MCC_CH_AVOIDANCE
Nitesh Shah03161d12016-12-06 18:30:12 +05307145/*
7146 * <ini>
7147 * gSapChannelAvoidance - SAP MCC channel avoidance.
7148 * @Min: 0
7149 * @Max: 1
7150 * @Default: 0
7151 *
7152 * This ini is used to sets sap mcc channel avoidance.
7153 *
7154 * Related: None.
7155 *
7156 * Supported Feature: Concurrency
7157 *
7158 * Usage: Internal/External
7159 *
7160 * </ini>
7161 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007162#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_NAME "gSapChannelAvoidance"
7163#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_MIN (0)
7164#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_MAX (1)
7165#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_DEFAULT (0)
7166#endif /* FEATURE_AP_MCC_CH_AVOIDANCE */
7167
7168#define CFG_SAP_P2P_11AC_OVERRIDE_NAME "gAP11ACOverride"
7169#define CFG_SAP_P2P_11AC_OVERRIDE_MIN (0)
7170#define CFG_SAP_P2P_11AC_OVERRIDE_MAX (1)
7171#define CFG_SAP_P2P_11AC_OVERRIDE_DEFAULT (1)
7172
7173#define CFG_SAP_DOT11MC "gSapDot11mc"
7174#define CFG_SAP_DOT11MC_MIN (0)
7175#define CFG_SAP_DOT11MC_MAX (1)
7176#define CFG_SAP_DOT11MC_DEFAULT (0)
7177
7178#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR "gPreferNonDfsChanOnRadar"
7179#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR_MIN (0)
7180#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR_MAX (1)
7181#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR_DEFAULT (0)
7182
7183#define CFG_MULTICAST_HOST_FW_MSGS "gMulticastHostFwMsgs"
7184#define CFG_MULTICAST_HOST_FW_MSGS_MIN (0)
7185#define CFG_MULTICAST_HOST_FW_MSGS_MAX (1)
7186#define CFG_MULTICAST_HOST_FW_MSGS_DEFAULT (1)
7187
7188/*
Nitesh Shah428e70d2016-12-06 18:39:58 +05307189 * <ini>
7190 * gSystemPref - Configure wlan system preference for PCL.
7191 * @Min: 0
7192 * @Max: 2
7193 * @Default: 0
7194 *
7195 * This ini is used to configure wlan system preference option to help
7196 * policy manager decide on Preferred Channel List for a new connection.
7197 * For possible values refer to enum hdd_conc_priority_mode
7198 *
7199 * Related: None.
7200 *
7201 * Supported Feature: DBS
7202 *
7203 * Usage: Internal/External
7204 *
7205 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007206 */
7207#define CFG_CONC_SYSTEM_PREF "gSystemPref"
7208#define CFG_CONC_SYSTEM_PREF_MIN (0)
7209#define CFG_CONC_SYSTEM_PREF_MAX (2)
7210#define CFG_CONC_SYSTEM_PREF_DEFAULT (0)
7211
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307212/*
7213 * <ini>
7214 * TSOEnable - Control to enable tso feature
7215 *
7216 * @Min: 0
7217 * @Max: 1
7218 * @Default: 0
7219 *
7220 * This ini is used to enable TSO feature
7221 *
7222 * Supported Feature: TSO Feature
7223 *
7224 * Usage: Internal
7225 *
7226 * </ini>
7227 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007228#define CFG_TSO_ENABLED_NAME "TSOEnable"
7229#define CFG_TSO_ENABLED_MIN (0)
7230#define CFG_TSO_ENABLED_MAX (1)
7231#define CFG_TSO_ENABLED_DEFAULT (0)
7232
7233/*
Himanshu Agarwalf0481722016-12-06 12:46:24 +05307234 * <ini>
7235 * LROEnable - Control to enable lro feature
7236 *
7237 * @Min: 0
7238 * @Max: 1
7239 * @Default: 0
7240 *
7241 * This ini is used to enable LRO feature
7242 *
7243 * Supported Feature: LRO
7244 *
7245 * Usage: Internal
7246 *
7247 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007248 */
7249#define CFG_LRO_ENABLED_NAME "LROEnable"
7250#define CFG_LRO_ENABLED_MIN (0)
7251#define CFG_LRO_ENABLED_MAX (1)
7252#define CFG_LRO_ENABLED_DEFAULT (0)
7253
7254/*
Manjunathappa Prakashfff753c2016-09-01 19:34:56 -07007255 * Enable Rx traffic flow steering to enable Rx interrupts on multiple CEs based
7256 * on the flows. Different CEs<==>different IRQs<==>probably different CPUs.
7257 * Parallel Rx paths.
7258 * 1 - enable 0 - disable
7259 */
7260#define CFG_FLOW_STEERING_ENABLED_NAME "gEnableFlowSteering"
7261#define CFG_FLOW_STEERING_ENABLED_MIN (0)
7262#define CFG_FLOW_STEERING_ENABLED_MAX (1)
7263#define CFG_FLOW_STEERING_ENABLED_DEFAULT (0)
7264
7265/*
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007266 * In static display use case when APPS is in stand alone power save mode enable
7267 * active offload mode which helps FW to filter out MC/BC data packets to avoid
7268 * APPS wake up and save more power.
7269 *
7270 * By default enable active mode offload as it helps to save more power in
7271 * static display usecase(APPS stand alone power collapse).
7272 *
7273 * If active mode offload(gActiveModeOffload=1) is enabled then all applicable
7274 * data offload/filtering is enabled immediately in FW once config is available
7275 * in WLAN driver and FW caches this configuration accross suspend/resume
7276 *
7277 * If active mode offload is disabled(gActiveModeOffload=0) then all applicable
7278 * data offload/filtering is enabled during cfg80211 suspend and disabled
7279 * during cfg80211 resume
7280 *
Rajeev Kumar5324d752017-02-13 17:11:19 -08007281 * Active mode offload feature is bydefault enabled for all targets
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007282 */
7283
7284#define CFG_ACTIVE_MODE_OFFLOAD "gActiveModeOffload"
7285#define CFG_ACTIVE_MODE_OFFLOAD_MIN (0)
7286#define CFG_ACTIVE_MODE_OFFLOAD_MAX (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007287#define CFG_ACTIVE_MODE_OFFLOAD_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007288
7289/*
Rajeev Kumardd3bc602016-08-16 14:21:05 -07007290 * 0: Disable BPF packet filter
7291 * 1: Enable BPF packet filter
7292 */
7293#define CFG_BPF_PACKET_FILTER_OFFLOAD "gBpfFilterEnable"
7294#define CFG_BPF_PACKET_FILTER_OFFLOAD_MIN (0)
7295#define CFG_BPF_PACKET_FILTER_OFFLOAD_MAX (1)
7296#define CFG_BPF_PACKET_FILTER_OFFLOAD_DEFAULT (1)
7297
7298/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307299 * <ini>
7300 * gCckChainMaskEnable - Used to enable/disable Cck ChainMask
7301 * @Min: 0
7302 * @Max: 1
7303 * @Default: 0
7304 *
7305 * This ini is used to set default Cck ChainMask
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007306 * 0: disable the cck tx chain mask (default)
7307 * 1: enable the cck tx chain mask
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307308 *
7309 * Related: None
7310 *
7311 * Supported Feature: STA
7312 *
7313 * Usage: Internal/External
7314 *
7315 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007316 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307317
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007318#define CFG_TX_CHAIN_MASK_CCK "gCckChainMaskEnable"
7319#define CFG_TX_CHAIN_MASK_CCK_MIN (0)
7320#define CFG_TX_CHAIN_MASK_CCK_MAX (1)
7321#define CFG_TX_CHAIN_MASK_CCK_DEFAULT (0)
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307322/*
7323 * <ini>
7324 * gTxChainMask1ss - Enables/disables tx chain Mask1ss
7325 * @Min: 0
7326 * @Max: 3
7327 * @Default: 1
7328 *
7329 * This ini is used to set default tx chain Mask1ss
7330 *
7331 * Related: None
7332 *
7333 * Supported Feature: STA
7334 *
7335 * Usage: Internal/External
7336 *
7337 * </ini>
7338 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007339
7340#define CFG_TX_CHAIN_MASK_1SS "gTxChainMask1ss"
7341#define CFG_TX_CHAIN_MASK_1SS_MIN (0)
7342#define CFG_TX_CHAIN_MASK_1SS_MAX (3)
7343#define CFG_TX_CHAIN_MASK_1SS_DEFAULT (1)
7344
7345/*
Jeff Johnsona89e25d2017-02-24 12:25:07 -08007346 * <ini>
7347 * gEnableSmartChainmask - Enable Smart Chainmask
7348 * @Min: 0
7349 * @Max: 1
7350 * @Default: 0
7351 *
7352 * This ini is used to enable/disable the Smart Chainmask feature via
7353 * the WMI_PDEV_PARAM_SMART_CHAINMASK_SCHEME firmware parameter.
7354 *
7355 * Related: None
7356 *
7357 * Supported Feature: STA
7358 *
7359 * Usage: Internal/External
7360 *
7361 * </ini>
7362 */
7363#define CFG_ENABLE_SMART_CHAINMASK_NAME "gEnableSmartChainmask"
7364#define CFG_ENABLE_SMART_CHAINMASK_MIN (0)
7365#define CFG_ENABLE_SMART_CHAINMASK_MAX (1)
7366#define CFG_ENABLE_SMART_CHAINMASK_DEFAULT (0)
7367
7368/*
7369 * <ini>
7370 * gEnableAlternativeChainmask - Enable Co-Ex Alternative Chainmask
7371 * @Min: 0
7372 * @Max: 1
7373 * @Default: 0
7374 *
7375 * This ini is used to enable/disable the Co-ex Alternative Chainmask
7376 * feature via the WMI_PDEV_PARAM_ALTERNATIVE_CHAINMASK_SCHEME
7377 * firmware parameter.
7378 *
7379 * Related: None
7380 *
7381 * Supported Feature: STA
7382 *
7383 * Usage: Internal/External
7384 *
7385 * </ini>
7386 */
7387#define CFG_ENABLE_COEX_ALT_CHAINMASK_NAME "gEnableAlternativeChainmask"
7388#define CFG_ENABLE_COEX_ALT_CHAINMASK_MIN (0)
7389#define CFG_ENABLE_COEX_ALT_CHAINMASK_MAX (1)
7390#define CFG_ENABLE_COEX_ALT_CHAINMASK_DEFAULT (0)
7391
7392/*
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007393 * set the self gen power value from
7394 * 0 to 0xffff
7395 */
7396#define CFG_SELF_GEN_FRM_PWR "gSelfGenFrmPwr"
7397#define CFG_SELF_GEN_FRM_PWR_MIN (0)
7398#define CFG_SELF_GEN_FRM_PWR_MAX (0xffff)
7399#define CFG_SELF_GEN_FRM_PWR_DEFAULT (0)
7400
7401/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307402 * <ini>
7403 * gTxAggregationSize - Gives an option to configure Tx aggregation size
7404 * in no of MPDUs
7405 * @Min: 0
7406 * @Max: 64
7407 * @Default: 64
7408 *
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05307409 * gTxAggregationSize gives an option to configure Tx aggregation size
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307410 * in no of MPDUs.This can be useful in debugging throughput issues
7411 *
7412 * Related: None
7413 *
7414 * Supported Feature: STA
7415 *
7416 * Usage: Internal/External
7417 *
7418 * </ini>
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05307419 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307420
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05307421#define CFG_TX_AGGREGATION_SIZE "gTxAggregationSize"
7422#define CFG_TX_AGGREGATION_SIZE_MIN (0)
7423#define CFG_TX_AGGREGATION_SIZE_MAX (64)
7424#define CFG_TX_AGGREGATION_SIZE_DEFAULT (64)
7425
7426/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307427 * <ini>
7428 * gRxAggregationSize - Gives an option to configure Rx aggregation size
7429 * in no of MPDUs
7430 * @Min: 1
7431 * @Max: 64
7432 * @Default: 64
7433 *
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05307434 * gRxAggregationSize gives an option to configure Rx aggregation size
7435 * in no of MPDUs. This can be useful in debugging throughput issues
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307436 *
7437 * Related: None
7438 *
7439 * Supported Feature: STA
7440 *
7441 * Usage: Internal/External
7442 *
7443 * </ini>
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05307444 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307445
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05307446#define CFG_RX_AGGREGATION_SIZE "gRxAggregationSize"
7447#define CFG_RX_AGGREGATION_SIZE_MIN (1)
7448#define CFG_RX_AGGREGATION_SIZE_MAX (64)
7449#define CFG_RX_AGGREGATION_SIZE_DEFAULT (64)
7450
7451/*
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007452 * fine timing measurement capability information
7453 *
7454 * <----- fine_time_meas_cap (in bits) ----->
7455 *+----------+-----+-----+------+------+-------+-------+-----+-----+
7456 *| 9-31 | 8 | 7 | 5 | 4 | 3 | 2 | 1 | 0 |
7457 *+----------+-----+-----+------+------+-------+-------+-----+-----+
7458 *| reserved | SAP | SAP |P2P-GO|P2P-GO|P2P-CLI|P2P-CLI| STA | STA |
7459 *| |resp |init |resp |init |resp |init |resp |init |
7460 *+----------+-----+-----+------+------+-------+-------+-----+-----+
7461 *
7462 * resp - responder role; init- initiator role
7463 *
7464 * CFG_FINE_TIME_MEAS_CAPABILITY_MAX computed based on the table
7465 * +-----------------+-----------------+-----------+
7466 * | Device Role | Initiator | Responder |
7467 * +-----------------+-----------------+-----------+
7468 * | Station | Y | N |
7469 * | P2P-CLI | Y | Y |
7470 * | P2P-GO | Y | Y |
7471 * | SAP | N | Y |
7472 * +-----------------+-----------------+-----------+
7473 */
7474#define CFG_FINE_TIME_MEAS_CAPABILITY "gfine_time_meas_cap"
7475#define CFG_FINE_TIME_MEAS_CAPABILITY_MIN (0x0000)
7476#define CFG_FINE_TIME_MEAS_CAPABILITY_MAX (0x00BD)
7477#define CFG_FINE_TIME_MEAS_CAPABILITY_DEFAULT (0x000D)
7478
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007479/**
7480 * enum dot11p_mode - The 802.11p mode of operation
7481 * @WLAN_HDD_11P_DISABLED: 802.11p mode is disabled
7482 * @WLAN_HDD_11P_STANDALONE: 802.11p-only operation
7483 * @WLAN_HDD_11P_CONCURRENT: 802.11p and WLAN operate concurrently
7484 */
7485enum dot11p_mode {
7486 WLAN_HDD_11P_DISABLED = 0,
7487 WLAN_HDD_11P_STANDALONE,
7488 WLAN_HDD_11P_CONCURRENT,
7489};
7490
7491#define CFG_DOT11P_MODE_NAME "gDot11PMode"
7492#define CFG_DOT11P_MODE_DEFAULT (WLAN_HDD_11P_DISABLED)
7493#define CFG_DOT11P_MODE_MIN (WLAN_HDD_11P_DISABLED)
7494#define CFG_DOT11P_MODE_MAX (WLAN_HDD_11P_CONCURRENT)
7495
Agrawal Ashishb2d1a452016-05-05 12:23:58 +05307496/* When gEnable_go_cts2self_for_sta is
7497 * enabled then if a legacy client connects to P2P GO,
7498 * Host will send a WMI VDEV command to FW to stop using NOA for P2P GO
7499 * and start using CTS2SELF.
7500 */
7501#define CFG_ENABLE_GO_CTS2SELF_FOR_STA "gEnable_go_cts2self_for_sta"
7502#define CFG_ENABLE_GO_CTS2SELF_FOR_STA_DEFAULT (0)
7503#define CFG_ENABLE_GO_CTS2SELF_FOR_STA_MIN (0)
7504#define CFG_ENABLE_GO_CTS2SELF_FOR_STA_MAX (1)
7505
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007506#define CFG_CE_CLASSIFY_ENABLE_NAME "gCEClassifyEnable"
7507#define CFG_CE_CLASSIFY_ENABLE_MIN (0)
7508#define CFG_CE_CLASSIFY_ENABLE_MAX (1)
Prakash Manjunathappa6eae0cd2016-02-08 10:27:21 -08007509#define CFG_CE_CLASSIFY_ENABLE_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007510
Nitesh Shah5651b1e2017-02-02 17:59:52 +05307511/*
7512 *
7513 * <ini>
7514 * gDualMacFeatureDisable - Disable Dual MAC feature.
7515 * @Min: 0
7516 * @Max: 1
7517 * @Default: 0
7518 *
7519 * This ini is used to enable/disable dual MAC feature.
7520 * 0 - enable DBS 1 - disable DBS
7521 *
7522 * Related: None.
7523 *
7524 * Supported Feature: DBS
7525 *
7526 * Usage: Internal/External
7527 *
7528 * </ini>
7529 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007530#define CFG_DUAL_MAC_FEATURE_DISABLE "gDualMacFeatureDisable"
7531#define CFG_DUAL_MAC_FEATURE_DISABLE_MIN (0)
7532#define CFG_DUAL_MAC_FEATURE_DISABLE_MAX (1)
7533#define CFG_DUAL_MAC_FEATURE_DISABLE_DEFAULT (0)
7534
7535/* Parameters for roaming scans performed at high RSSI */
7536
7537/* Maximum number of scans after RSSI change */
7538#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_NAME "gRoamScanHiRssiMaxCount"
7539#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_MIN (0)
7540#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_MAX (10)
Varun Reddy Yeturu062dc742015-11-03 17:30:43 -08007541#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_DEFAULT (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007542
7543/* Change in RSSI at which scan is triggered */
7544#define CFG_ROAM_SCAN_HI_RSSI_DELTA_NAME "gRoamScanHiRssiDelta"
7545#define CFG_ROAM_SCAN_HI_RSSI_DELTA_MIN (0)
7546#define CFG_ROAM_SCAN_HI_RSSI_DELTA_MAX (16)
Varun Reddy Yeturu58414762015-11-03 17:10:30 -08007547#define CFG_ROAM_SCAN_HI_RSSI_DELTA_DEFAULT (10)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007548
7549/* Delay between consecutive scans in milliseconds */
7550#define CFG_ROAM_SCAN_HI_RSSI_DELAY_NAME "gRoamScanHiRssiDelay"
7551#define CFG_ROAM_SCAN_HI_RSSI_DELAY_MIN (5000)
Varun Reddy Yeturu062dc742015-11-03 17:30:43 -08007552#define CFG_ROAM_SCAN_HI_RSSI_DELAY_MAX (0x7fffffff)
7553#define CFG_ROAM_SCAN_HI_RSSI_DELAY_DEFAULT (15000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007554
7555/* Upper bound after which scan will not be performed */
7556#define CFG_ROAM_SCAN_HI_RSSI_UB_NAME "gRoamScanHiRssiUpperBound"
Varun Reddy Yeturu062dc742015-11-03 17:30:43 -08007557#define CFG_ROAM_SCAN_HI_RSSI_UB_MIN (-66)
7558#define CFG_ROAM_SCAN_HI_RSSI_UB_MAX (0)
7559#define CFG_ROAM_SCAN_HI_RSSI_UB_DEFAULT (-30)
Varun Reddy Yeturub43fda12015-09-10 18:16:21 -07007560/*
7561 * gPNOChannelPrediction will allow user to enable/disable the
7562 * PNO channel prediction feature.
7563 * In current PNO implementation, scan is always done until all configured
7564 * channels are scanned. If we can determine DUT is stationary based on
7565 * scanning a subset of channels, we may cancel the remaining channels.
7566 * Hence, we can save additional power consumption.
7567 */
7568#define CFG_PNO_CHANNEL_PREDICTION_NAME "gPNOChannelPrediction"
7569#define CFG_PNO_CHANNEL_PREDICTION_MIN (0)
7570#define CFG_PNO_CHANNEL_PREDICTION_MAX (1)
7571#define CFG_PNO_CHANNEL_PREDICTION_DEFAULT (0)
7572/*
7573 * The top K number of channels are used for tanimoto distance
7574 * calculation. These are the top channels on which the probability
7575 * of finding the AP's is extremely high. This number is intended
7576 * for tweaking the internal algorithm for experiments. This should
7577 * not be changed externally.
7578 */
7579#define CFG_TOP_K_NUM_OF_CHANNELS_NAME "gTopKNumOfChannels"
7580#define CFG_TOP_K_NUM_OF_CHANNELS_MIN (1)
7581#define CFG_TOP_K_NUM_OF_CHANNELS_MAX (5)
7582#define CFG_TOP_K_NUM_OF_CHANNELS_DEFAULT (3)
7583/*
7584 * This is the threshold value to determine that the STA is
7585 * stationary. If the tanimoto distance is less than this
7586 * value, then the device is considered to be stationary.
7587 * This parameter is intended to tweak the internal algorithm
7588 * for experiments. This should not be changed externally.
7589 */
7590#define CFG_STATIONARY_THRESHOLD_NAME "gStationaryThreshold"
7591#define CFG_STATIONARY_THRESHOLD_MIN (0)
7592#define CFG_STATIONARY_THRESHOLD_MAX (100)
7593#define CFG_STATIONARY_THRESHOLD_DEFAULT (10)
Varun Reddy Yeturu044bda22015-11-21 22:03:40 -08007594
Ravi Joshi742495d2015-11-09 18:56:53 -08007595#ifdef FEATURE_LFR_SUBNET_DETECTION
7596/*
7597 * Enable IP subnet detection during legacy fast roming version 3.
7598 * Legacy fast roaming could roam across IP subnets without host
7599 * processors' knowledge. This feature enables firmware to wake up
7600 * the host processor if it successfully determines change in the IP subnet.
7601 * Change in IP subnet could potentially cause disruption in IP connnectivity
7602 * if IP address is not refreshed.
7603 */
7604#define CFG_ENABLE_LFR_SUBNET_DETECTION "gLFRSubnetDetectionEnable"
7605#define CFG_ENABLE_LFR_SUBNET_MIN (0)
7606#define CFG_ENABLE_LFR_SUBNET_MAX (1)
7607#define CFG_ENABLE_LFR_SUBNET_DEFAULT (1)
7608#endif /* FEATURE_LFR_SUBNET_DETECTION */
Deepak Dhamdhere68929ec2015-08-05 15:16:35 -07007609/* Option to report rssi in cfg80211_inform_bss_frame()
7610 * 0 = use rssi value based on noise floor = -96 dBm
7611 * 1 = use rssi value based on actual noise floor in hardware
7612 */
7613#define CFG_INFORM_BSS_RSSI_RAW_NAME "gInformBssRssiRaw"
7614#define CFG_INFORM_BSS_RSSI_RAW_MIN (0)
7615#define CFG_INFORM_BSS_RSSI_RAW_MAX (1)
7616#define CFG_INFORM_BSS_RSSI_RAW_DEFAULT (1)
Ravi Joshi742495d2015-11-09 18:56:53 -08007617
Manikandan Mohan976e7562016-03-15 16:33:31 -07007618/* GPIO pin to toggle when capture tsf */
7619#define CFG_SET_TSF_GPIO_PIN_NAME "gtsf_gpio_pin"
7620#define CFG_SET_TSF_GPIO_PIN_MIN (0)
Manikandan Mohan296d4b52016-03-15 16:39:31 -07007621#define CFG_SET_TSF_GPIO_PIN_MAX (254)
7622#define TSF_GPIO_PIN_INVALID (255)
7623#define CFG_SET_TSF_GPIO_PIN_DEFAULT (TSF_GPIO_PIN_INVALID)
Sandeep Puligilla93a29ec2016-02-12 16:10:56 -08007624
7625/*
Gupta, Kapilc68ad462016-02-01 19:17:23 +05307626 * Dense traffic threshold
7627 * traffic threshold required for dense roam scan
Kapil Gupta7bad4312016-08-19 14:35:06 +05307628 * Measured in kbps
Gupta, Kapilc68ad462016-02-01 19:17:23 +05307629 */
7630#define CFG_ROAM_DENSE_TRAFFIC_THRESHOLD "gtraffic_threshold"
7631#define CFG_ROAM_DENSE_TRAFFIC_THRESHOLD_MIN (0)
Kapil Gupta7bad4312016-08-19 14:35:06 +05307632#define CFG_ROAM_DENSE_TRAFFIC_THRESHOLD_MAX (0xffffffff)
7633#define CFG_ROAM_DENSE_TRAFFIC_THRESHOLD_DEFAULT (400)
Gupta, Kapilc68ad462016-02-01 19:17:23 +05307634
7635/*
7636 * Dense Roam RSSI Threshold diff
7637 * offset value from normal RSSI threshold to dense RSSI threshold
7638 * Fw will optimize roaming based on new RSSI threshold once it detects
7639 * dense enviournment.
7640 */
7641#define CFG_ROAM_DENSE_RSSI_THRE_OFFSET "groam_dense_rssi_thresh_offset"
7642#define CFG_ROAM_DENSE_RSSI_THRE_OFFSET_MIN (0)
7643#define CFG_ROAM_DENSE_RSSI_THRE_OFFSET_MAX (20)
Varun Reddy Yeturu56054ec2016-07-20 10:38:17 -07007644#define CFG_ROAM_DENSE_RSSI_THRE_OFFSET_DEFAULT (10)
Gupta, Kapilc68ad462016-02-01 19:17:23 +05307645
7646/*
Kapil Gupta8878ad92017-02-13 11:56:04 +05307647 * <ini>
7648 * gvendor_acs_support - vendor based channel selection manager
7649 * @Min: 0
7650 * @Max: 1
7651 * @Default: 0
7652 *
7653 * Enabling this parameter will force driver to use user application based
7654 * channel selection algo instead of driver based auto channel selection
7655 * logic.
7656 *
7657 * Supported Feature: ACS
7658 *
7659 * Usage: External/Internal
7660 *
7661 * </ini>
7662 */
7663#define CFG_USER_AUTO_CHANNEL_SELECTION "gvendor_acs_support"
7664#define CFG_USER_AUTO_CHANNEL_SELECTION_DISABLE (0)
7665#define CFG_USER_AUTO_CHANNEL_SELECTION_ENABLE (1)
7666#define CFG_USER_AUTO_CHANNEL_SELECTION_DEFAULT (0)
7667
7668/*
7669 * <ini>
7670 * gacs_support_for_dfs_lte_coex - acs support for lte coex and dfs event
7671 * @Min: 0
7672 * @Max: 1
7673 * @Default: 0
7674 *
7675 * Enabling this parameter will force driver to use user application based
7676 * channel selection algo for channel selection in case of dfs and lte
7677 * coex event.
7678 *
7679 * Supported Feature: ACS
7680 *
7681 * Usage: Internal
7682 *
7683 * </ini>
7684 */
7685#define CFG_USER_ACS_DFS_LTE "gacs_support_for_dfs_lte_coex"
7686#define CFG_USER_ACS_DFS_LTE_DISABLE (0)
7687#define CFG_USER_ACS_DFS_LTE_ENABLE (1)
7688#define CFG_USER_ACS_DFS_LTE_DEFAULT (0)
7689
7690/*
Abhishek Singh165bc602016-03-21 12:43:00 +05307691 * Enabling gignore_peer_ht_opmode will enable 11g
7692 * protection only when there is a 11g AP in vicinity.
7693 */
7694#define CFG_IGNORE_PEER_HT_MODE_NAME "gignore_peer_ht_opmode"
7695#define CFG_IGNORE_PEER_HT_MODE_MIN (0)
7696#define CFG_IGNORE_PEER_HT_MODE_MAX (1)
7697#define CFG_IGNORE_PEER_HT_MODE_DEFAULT (0)
7698
Deepak Dhamdhere3385d752016-05-25 20:36:47 -07007699#ifdef WLAN_FEATURE_NAN_DATAPATH
7700/*
7701 * Enable NaN data path feature. NaN data path enables
7702 * NaN supported devices to exchange data over traditional
7703 * TCP/UDP network stack.
7704 */
7705#define CFG_ENABLE_NAN_DATAPATH_NAME "genable_nan_datapath"
7706#define CFG_ENABLE_NAN_DATAPATH_MIN (0)
7707#define CFG_ENABLE_NAN_DATAPATH_MAX (1)
7708#define CFG_ENABLE_NAN_DATAPATH_DEFAULT (0)
7709
7710/*
7711 * NAN channel on which NAN data interface to start
7712 */
7713#define CFG_ENABLE_NAN_NDI_CHANNEL_NAME "gnan_datapath_ndi_channel"
7714#define CFG_ENABLE_NAN_NDI_CHANNEL_MIN (6)
7715#define CFG_ENABLE_NAN_NDI_CHANNEL_MAX (149)
7716#define CFG_ENABLE_NAN_NDI_CHANNEL_DEFAULT (6)
7717#endif
7718
Abhishek Singh165bc602016-03-21 12:43:00 +05307719/*
Gupta, Kapilc68ad462016-02-01 19:17:23 +05307720 * Dense Roam Min APs
7721 * minimum number of AP required for dense roam
7722 * FW will consider environment as dense once it detects #APs
7723 * operating is more than CFG_ROAM_DENSE_MIN_APS.
7724 */
7725#define CFG_ROAM_DENSE_MIN_APS "groam_dense_min_aps"
7726#define CFG_ROAM_DENSE_MIN_APS_MIN (1)
7727#define CFG_ROAM_DENSE_MIN_APS_MAX (5)
Varun Reddy Yeturu56054ec2016-07-20 10:38:17 -07007728#define CFG_ROAM_DENSE_MIN_APS_DEFAULT (3)
Gupta, Kapilc68ad462016-02-01 19:17:23 +05307729
Abhishek Singh5ea86532016-04-27 14:10:53 +05307730/*
7731 * Enable/Disable to initiate BUG report in case of fatal event
7732 * Default: Enable
7733 */
7734#define CFG_ENABLE_FATAL_EVENT_TRIGGER "gEnableFatalEvent"
7735#define CFG_ENABLE_FATAL_EVENT_TRIGGER_MIN (0)
7736#define CFG_ENABLE_FATAL_EVENT_TRIGGER_MAX (1)
7737#define CFG_ENABLE_FATAL_EVENT_TRIGGER_DEFAULT (1)
7738
Abhishek Singh10ecf582016-05-04 17:48:59 +05307739/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307740 * <ini>
7741 * gEnableEdcaParams - Enable edca parameter
7742 * @Min: 0
7743 * @Max: 1
7744 * @Default: 0
7745 *
7746 * This ini is used if gEnableEdcaParams is set to 1, params gEdcaVoCwmin,
Abhishek Singh10ecf582016-05-04 17:48:59 +05307747 * gEdcaViCwmin, gEdcaBkCwmin, gEdcaBeCwmin, gEdcaVoCwmax,
7748 * gEdcaViCwmax, gEdcaBkCwmax, gEdcaBeCwmax, gEdcaVoAifs,
7749 * gEdcaViAifs, gEdcaBkAifs and gEdcaBeAifs values are used
7750 * to overwrite the values received from AP
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307751 *
7752 * Related: None
7753 *
7754 * Supported Feature: STA
7755 *
7756 * Usage: Internal/External
7757 *
7758 * </ini>
Abhishek Singh10ecf582016-05-04 17:48:59 +05307759 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307760
Abhishek Singh10ecf582016-05-04 17:48:59 +05307761#define CFG_ENABLE_EDCA_INI_NAME "gEnableEdcaParams"
7762#define CFG_ENABLE_EDCA_INI_MIN (0)
7763#define CFG_ENABLE_EDCA_INI_MAX (1)
7764#define CFG_ENABLE_EDCA_INI_DEFAULT (0)
7765
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307766/*
7767 * <ini>
7768 * gEdcaVoCwmin - Set Cwmin value for EDCA_AC_VO
7769 * @Min: 0
7770 * @Max: 0x15
7771 * @Default: 2
7772 *
7773 * This ini is used to set default Cwmin value for EDCA_AC_VO
7774 * Cwmin value for EDCA_AC_VO. CWVomin = 2^gEdcaVoCwmin -1
7775 *
7776 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin etc
7777 * are aplicable
7778 *
7779 * Supported Feature: STA
7780 *
7781 * Usage: Internal/External
7782 *
7783 * </ini>
7784 */
7785
Abhishek Singh10ecf582016-05-04 17:48:59 +05307786#define CFG_EDCA_VO_CWMIN_VALUE_NAME "gEdcaVoCwmin"
7787#define CFG_EDCA_VO_CWMIN_VALUE_MIN (0x0)
7788#define CFG_EDCA_VO_CWMIN_VALUE_MAX (15)
7789#define CFG_EDCA_VO_CWMIN_VALUE_DEFAULT (2)
7790
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307791/*
7792 * <ini>
7793 * gEdcaViCwmin - Set Cwmin value for EDCA_AC_VI
7794 * @Min: 0x0
7795 * @Max: 15
7796 * @Default: 3
7797 *
7798 * This ini is used to set default value for EDCA_AC_VI
7799 * Cwmin value for EDCA_AC_VI. CWVimin = 2^gEdcaViCwmin -1
7800 *
7801 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
7802 * etc are aplicable
7803 *
7804 * Supported Feature: STA
7805 *
7806 * Usage: Internal/External
7807 *
7808 * </ini>
7809 */
7810
Abhishek Singh10ecf582016-05-04 17:48:59 +05307811#define CFG_EDCA_VI_CWMIN_VALUE_NAME "gEdcaViCwmin"
7812#define CFG_EDCA_VI_CWMIN_VALUE_MIN (0x0)
7813#define CFG_EDCA_VI_CWMIN_VALUE_MAX (15)
7814#define CFG_EDCA_VI_CWMIN_VALUE_DEFAULT (3)
7815
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307816/*
7817 * <ini>
7818 * gEdcaBkCwmin - Set Cwmin value for EDCA_AC_BK
7819 * @Min: 0x0
7820 * @Max: 15
7821 * @Default: 4
7822 *
7823 * This ini is used to set default Cwmin value for EDCA_AC_BK
7824 * Cwmin value for EDCA_AC_BK. CWBkmin = 2^gEdcaBkCwmin -1
7825 *
7826 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
7827 * etc are aplicable
7828 *
7829 * Supported Feature: STA
7830 *
7831 * Usage: Internal/External
7832 * </ini>
7833 */
7834
Abhishek Singh10ecf582016-05-04 17:48:59 +05307835#define CFG_EDCA_BK_CWMIN_VALUE_NAME "gEdcaBkCwmin"
7836#define CFG_EDCA_BK_CWMIN_VALUE_MIN (0x0)
7837#define CFG_EDCA_BK_CWMIN_VALUE_MAX (15)
7838#define CFG_EDCA_BK_CWMIN_VALUE_DEFAULT (4)
7839
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307840/*
7841 * <ini>
7842 * gEdcaBeCwmin - Set Cwmin value for EDCA_AC_BE
7843 * @Min: 0x0
7844 * @Max: 15
7845 * @Default: 4
7846 *
7847 * This ini is used to set default Cwmin value for EDCA_AC_BE
7848 * Cwmin value for EDCA_AC_BE. CWBemin = 2^gEdcaBeCwmin
7849 *
7850 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
7851 * etc are aplicable
7852 *
7853 * Supported Feature: STA
7854 *
7855 * Usage: Internal/External
7856 *
7857 * </ini>
7858 */
7859
Abhishek Singh10ecf582016-05-04 17:48:59 +05307860#define CFG_EDCA_BE_CWMIN_VALUE_NAME "gEdcaBeCwmin"
7861#define CFG_EDCA_BE_CWMIN_VALUE_MIN (0x0)
7862#define CFG_EDCA_BE_CWMIN_VALUE_MAX (15)
7863#define CFG_EDCA_BE_CWMIN_VALUE_DEFAULT (4)
7864
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307865/*
7866 * <ini>
7867 * gEdcaVoCwmax - Set Cwmax value for EDCA_AC_VO
7868 * @Min: 0
7869 * @Max: 15
7870 * @Default: 3
7871 *
7872 * This ini is used to set default Cwmax value for EDCA_AC_VO
7873 * Cwmax value for EDCA_AC_VO. CWVomax = 2^gEdcaVoCwmax -1
7874 *
7875 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
7876 * etc are aplicable
7877 *
7878 * Supported Feature: STA
7879 *
7880 * Usage: Internal/External
7881 *
7882 * </ini>
7883 */
7884
Abhishek Singh10ecf582016-05-04 17:48:59 +05307885#define CFG_EDCA_VO_CWMAX_VALUE_NAME "gEdcaVoCwmax"
7886#define CFG_EDCA_VO_CWMAX_VALUE_MIN (0)
7887#define CFG_EDCA_VO_CWMAX_VALUE_MAX (15)
7888#define CFG_EDCA_VO_CWMAX_VALUE_DEFAULT (3)
7889
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307890/*
7891 * <ini>
7892 * gEdcaViCwmax - Set Cwmax value for EDCA_AC_VI
7893 * @Min: 0
7894 * @Max: 15
7895 * @Default: 4
7896 *
7897 * This ini is used to set default Cwmax value for EDCA_AC_VI
7898 * Cwmax value for EDCA_AC_VI. CWVimax = 2^gEdcaViCwmax -1
7899 *
7900 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
7901 * etc are aplicable
7902 *
7903 * Supported Feature: STA
7904 *
7905 * Usage: Internal/External
7906 *
7907 * </ini>
7908 */
Abhishek Singh10ecf582016-05-04 17:48:59 +05307909#define CFG_EDCA_VI_CWMAX_VALUE_NAME "gEdcaViCwmax"
7910#define CFG_EDCA_VI_CWMAX_VALUE_MIN (0)
7911#define CFG_EDCA_VI_CWMAX_VALUE_MAX (15)
7912#define CFG_EDCA_VI_CWMAX_VALUE_DEFAULT (4)
7913
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307914/*
7915 * <ini>
7916 * gEdcaBkCwmax - Set Cwmax value for EDCA_AC_BK
7917 * @Min: 0
7918 * @Max: 15
7919 * @Default: 10
7920 *
7921 * This ini is used to set default Cwmax value for EDCA_AC_BK
7922 * Cwmax value for EDCA_AC_BK. CWBkmax = 2^gEdcaBkCwmax -1
7923 *
7924 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
7925 * etc are aplicable
7926 *
7927 * Supported Feature: STA
7928 *
7929 * Usage: Internal/External
7930 *
7931 * </ini>
7932 */
7933
Abhishek Singh10ecf582016-05-04 17:48:59 +05307934#define CFG_EDCA_BK_CWMAX_VALUE_NAME "gEdcaBkCwmax"
7935#define CFG_EDCA_BK_CWMAX_VALUE_MIN (0)
7936#define CFG_EDCA_BK_CWMAX_VALUE_MAX (15)
7937#define CFG_EDCA_BK_CWMAX_VALUE_DEFAULT (10)
7938
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307939/*
7940 * <ini>
7941 * gEdcaBeCwmax - Set Cwmax value for EDCA_AC_BE
7942 * @Min: 0
7943 * @Max: 15
7944 * @Default: 10
7945 *
7946 * This ini is used to set default Cwmax value for EDCA_AC_BE
7947 * Cwmax value for EDCA_AC_BE. CWBemax = 2^gEdcaBeCwmax -1
7948 *
7949 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
7950 * etc are aplicable
7951 *
7952 * Supported Feature: STA
7953 *
7954 * Usage: Internal/External
7955 *
7956 * </ini>
7957 */
7958
Abhishek Singh10ecf582016-05-04 17:48:59 +05307959#define CFG_EDCA_BE_CWMAX_VALUE_NAME "gEdcaBeCwmax"
7960#define CFG_EDCA_BE_CWMAX_VALUE_MIN (0)
7961#define CFG_EDCA_BE_CWMAX_VALUE_MAX (15)
7962#define CFG_EDCA_BE_CWMAX_VALUE_DEFAULT (10)
7963
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307964/*
7965 * <ini>
7966 * gEdcaVoAifs - Set Aifs value for EDCA_AC_VO
7967 * @Min: 0
7968 * @Max: 15
7969 * @Default: 2
7970 *
7971 * This ini is used to set default Aifs value for EDCA_AC_VO
7972 *
7973 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
7974 * etc are aplicable
7975 *
7976 * Supported Feature: STA
7977 *
7978 * Usage: Internal/External
7979 *
7980 * </ini>
7981 */
7982
Abhishek Singh10ecf582016-05-04 17:48:59 +05307983#define CFG_EDCA_VO_AIFS_VALUE_NAME "gEdcaVoAifs"
7984#define CFG_EDCA_VO_AIFS_VALUE_MIN (0)
7985#define CFG_EDCA_VO_AIFS_VALUE_MAX (15)
7986#define CFG_EDCA_VO_AIFS_VALUE_DEFAULT (2)
7987
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307988/*
7989 * <ini>
7990 * gEdcaViAifs - Set Aifs value for EDCA_AC_VI
7991 * @Min: 0
7992 * @Max: 15
7993 * @Default: 2
7994 *
7995 * This ini is used to set default Aifs value for EDCA_AC_VI
7996 *
7997 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
7998 * etc are aplicable
7999 *
8000 * Supported Feature: STA
8001 *
8002 * Usage: Internal/External
8003 *
8004 * </ini>
8005 */
8006
Abhishek Singh10ecf582016-05-04 17:48:59 +05308007#define CFG_EDCA_VI_AIFS_VALUE_NAME "gEdcaViAifs"
8008#define CFG_EDCA_VI_AIFS_VALUE_MIN (0)
8009#define CFG_EDCA_VI_AIFS_VALUE_MAX (15)
8010#define CFG_EDCA_VI_AIFS_VALUE_DEFAULT (2)
8011
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308012/*
8013 * <ini>
8014 * gEdcaBkAifs - Set Aifs value for EDCA_AC_BK
8015 * @Min: 0
8016 * @Max: 15
8017 * @Default: 7
8018 *
8019 * This ini is used to set default Aifs value for EDCA_AC_BK
8020 *
8021 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8022 * etc are aplicable
8023 *
8024 * Supported Feature: STA
8025 *
8026 * Usage: Internal/External
8027 *
8028 * </ini>
8029 */
8030
Abhishek Singh10ecf582016-05-04 17:48:59 +05308031#define CFG_EDCA_BK_AIFS_VALUE_NAME "gEdcaBkAifs"
8032#define CFG_EDCA_BK_AIFS_VALUE_MIN (0)
8033#define CFG_EDCA_BK_AIFS_VALUE_MAX (15)
8034#define CFG_EDCA_BK_AIFS_VALUE_DEFAULT (7)
8035
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308036/*
8037 * <ini>
8038 * gEdcaBeAifs - Set Aifs value for EDCA_AC_BE
8039 * @Min: 0
8040 * @Max: 15
8041 * @Default: 3
8042 *
8043 * This ini is used to set default Aifs value for EDCA_AC_BE
8044 *
8045 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8046 * etc are aplicable
8047 *
8048 * Supported Feature: STA
8049 *
8050 * Usage: Internal/External
8051 *
8052 * </ini>
8053 */
8054
Abhishek Singh10ecf582016-05-04 17:48:59 +05308055#define CFG_EDCA_BE_AIFS_VALUE_NAME "gEdcaBeAifs"
8056#define CFG_EDCA_BE_AIFS_VALUE_MIN (0)
8057#define CFG_EDCA_BE_AIFS_VALUE_MAX (15)
8058#define CFG_EDCA_BE_AIFS_VALUE_DEFAULT (3)
8059
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05308060/*
gbian62edd7e2017-03-07 13:12:13 +08008061 * <ini>
8062 * gEnableTxSchedWrrVO - Set TX sched parameters for VO
8063 * @Default:
8064 *
8065 * This key is mapping to VO defined in data path module through
8066 * OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
8067 * WRR TX sched parameters such as skip, credit, limit, credit, disc for VO.
8068 * e.g., gEnableTxSchedWrrVO = 10, 9, 8, 1, 8
8069 */
8070#define CFG_ENABLE_TX_SCHED_WRR_VO_NAME "gEnableTxSchedWrrVO"
8071#define CFG_ENABLE_TX_SCHED_WRR_VO_DEFAULT ""
8072
8073/*
8074 * <ini>
8075 * gEnableTxSchedWrrVI - Set TX sched parameters for VI
8076 * @Default:
8077 *
8078 * This key is mapping to VI defined in data path module through
8079 * OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
8080 * WRR TX sched parameters such as skip, credit, limit, credit, disc for VI.
8081 * e.g., gEnableTxSchedWrrVI = 10, 9, 8, 1, 8
8082 */
8083#define CFG_ENABLE_TX_SCHED_WRR_VI_NAME "gEnableTxSchedWrrVI"
8084#define CFG_ENABLE_TX_SCHED_WRR_VI_DEFAULT ""
8085
8086/*
8087 * <ini>
8088 * gEnableTxSchedWrrBE - Set TX sched parameters for BE
8089 * @Default:
8090 *
8091 * This key is mapping to BE defined in data path module through
8092 * OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
8093 * WRR TX sched parameters such as skip, credit, limit, credit, disc for BE.
8094 * e.g., gEnableTxSchedWrrBE = 10, 9, 8, 1, 8
8095 */
8096#define CFG_ENABLE_TX_SCHED_WRR_BE_NAME "gEnableTxSchedWrrBE"
8097#define CFG_ENABLE_TX_SCHED_WRR_BE_DEFAULT ""
8098
8099/*
8100 * <ini>
8101 * gEnableTxSchedWrrBK - Set TX sched parameters for BK
8102 * @Default:
8103 *
8104 * This key is mapping to BK defined in data path module through
8105 * OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
8106 * WRR TX sched parameters such as skip, credit, limit, credit, disc for BK.
8107 * e.g., gEnableTxSchedWrrBK = 10, 9, 8, 1, 8
8108 */
8109#define CFG_ENABLE_TX_SCHED_WRR_BK_NAME "gEnableTxSchedWrrBK"
8110#define CFG_ENABLE_TX_SCHED_WRR_BK_DEFAULT ""
8111
8112/*
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05308113 * Enable/disable DPTRACE
8114 * Enabling this might have performace impact.
8115 */
8116#define CFG_ENABLE_DP_TRACE "enable_dp_trace"
8117#define CFG_ENABLE_DP_TRACE_MIN (0)
8118#define CFG_ENABLE_DP_TRACE_MAX (1)
Nirav Shah1da77682016-05-03 20:16:39 +05308119#define CFG_ENABLE_DP_TRACE_DEFAULT (1)
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05308120
Gupta, Kapil96c7f2f2016-04-25 19:13:41 +05308121/*
Gupta, Kapil96c7f2f2016-04-25 19:13:41 +05308122 * This parameter will set the weight to calculate the average low pass
8123 * filter for channel congestion.
8124 * Acceptable values for this: 0-100 (In %)
8125 */
8126#define CFG_ADAPT_DWELL_LPF_WEIGHT_NAME "adapt_dwell_lpf_weight"
8127#define CFG_ADAPT_DWELL_LPF_WEIGHT_MIN (0)
8128#define CFG_ADAPT_DWELL_LPF_WEIGHT_MAX (100)
8129#define CFG_ADAPT_DWELL_LPF_WEIGHT_DEFAULT (80)
8130
8131/*
8132 * This parameter will set interval to monitor wifi activity
8133 * in passive scan in msec.
8134 * Acceptable values for this: 0-25
8135 */
8136#define CFG_ADAPT_DWELL_PASMON_INTVAL_NAME "adapt_dwell_passive_mon_intval"
8137#define CFG_ADAPT_DWELL_PASMON_INTVAL_MIN (0)
Kapil Gupta6eb83c02017-03-03 11:07:52 +05308138#define CFG_ADAPT_DWELL_PASMON_INTVAL_MAX (25)
8139#define CFG_ADAPT_DWELL_PASMON_INTVAL_DEFAULT (10)
Gupta, Kapil96c7f2f2016-04-25 19:13:41 +05308140
8141/*
8142 * This parameter will set % of wifi activity used in passive scan 0-100.
8143 * Acceptable values for this: 0-100 (in %)
8144 */
8145#define CFG_ADAPT_DWELL_WIFI_THRESH_NAME "adapt_dwell_wifi_act_threshold"
8146#define CFG_ADAPT_DWELL_WIFI_THRESH_MIN (0)
8147#define CFG_ADAPT_DWELL_WIFI_THRESH_MAX (100)
8148#define CFG_ADAPT_DWELL_WIFI_THRESH_DEFAULT (10)
8149
8150/*
8151 * This parameter will set the algo used in dwell time optimization during
Gupta, Kapil96c7f2f2016-04-25 19:13:41 +05308152 * roam scan. see enum wmi_dwelltime_adaptive_mode.
8153 * Acceptable values for this:
8154 * 0: Default (Use firmware default mode)
8155 * 1: Conservative optimization
8156 * 2: Moderate optimization
8157 * 3: Aggressive optimization
8158 * 4: Static
8159 */
8160#define CFG_ADAPTIVE_ROAMSCAN_DWELL_MODE_NAME "roamscan_adaptive_dwell_mode"
8161#define CFG_ADAPTIVE_ROAMSCAN_DWELL_MODE_MIN (0)
8162#define CFG_ADAPTIVE_ROAMSCAN_DWELL_MODE_MAX (4)
8163#define CFG_ADAPTIVE_ROAMSCAN_DWELL_MODE_DEFAULT (0)
8164
8165/*
Mukul Sharmaf7d62e12016-09-03 15:16:22 +05308166 * This parameter will help to debug ssr reinit failure issues
8167 * by raising vos bug so dumps can be collected. If OEM
8168 * wants to avoid this crash, just disable this parameter.
8169 * wlan driver will only recover after driver unload and load.
8170 * Default: Enable
8171 */
8172#define CFG_BUG_ON_REINIT_FAILURE_NAME "g_bug_on_reinit_failure"
8173#define CFG_BUG_ON_REINIT_FAILURE_MIN (0)
8174#define CFG_BUG_ON_REINIT_FAILURE_MAX (1)
8175#define CFG_BUG_ON_REINIT_FAILURE_DEFAULT (1)
8176
8177/*
Abhishek Singh76587c32016-12-01 11:47:44 +05308178 * <ini>
8179 * gSub20ChannelWidth - Control sub 20 channel width (5/10 Mhz)
8180 * @Min: 0
8181 * @Max: 2
8182 * @Default: 0
8183 *
8184 * This ini is used to set the sub 20 channel width.
Naveen Rawat64e477e2016-05-20 10:34:56 -07008185 * gSub20ChannelWidth=0: indicates do not use Sub 20 MHz bandwidth
8186 * gSub20ChannelWidth=1: Bring up SAP/STA in 5 MHz bandwidth
8187 * gSub20ChannelWidth=2: Bring up SAP/STA in 10 MHz bandwidth
Abhishek Singh76587c32016-12-01 11:47:44 +05308188 *
8189 * Related: None
8190 *
8191 * Supported Feature: 5/10 Mhz channel width support
8192 *
8193 * Usage: Internal/External
8194 *
8195 * </ini>
Naveen Rawat64e477e2016-05-20 10:34:56 -07008196 */
8197#define CFG_SUB_20_CHANNEL_WIDTH_NAME "gSub20ChannelWidth"
8198#define CFG_SUB_20_CHANNEL_WIDTH_MIN (WLAN_SUB_20_CH_WIDTH_NONE)
8199#define CFG_SUB_20_CHANNEL_WIDTH_MAX (WLAN_SUB_20_CH_WIDTH_10)
8200#define CFG_SUB_20_CHANNEL_WIDTH_DEFAULT (WLAN_SUB_20_CH_WIDTH_NONE)
Nirav Shahbd36b062016-07-18 11:12:59 +05308201
Rajeev Kumar Sirasanagandlaaf474742016-09-06 17:54:50 +05308202#define CFG_TGT_GTX_USR_CFG_NAME "tgt_gtx_usr_cfg"
8203#define CFG_TGT_GTX_USR_CFG_MIN (0)
8204#define CFG_TGT_GTX_USR_CFG_MAX (32)
8205#define CFG_TGT_GTX_USR_CFG_DEFAULT (32)
8206
Arun Khandavallicc544b32017-01-30 19:52:16 +05308207#define CFG_SAP_INTERNAL_RESTART_NAME "gEnableSapInternalRestart"
8208#define CFG_SAP_INTERNAL_RESTART_MIN (0)
8209#define CFG_SAP_INTERNAL_RESTART_MAX (1)
8210#define CFG_SAP_INTERNAL_RESTART_DEFAULT (1)
8211
Nirav Shahbd36b062016-07-18 11:12:59 +05308212/*
Agrawal, Ashish4e5fa1c2016-09-21 19:03:43 +05308213 * This parameter will avoid updating ap_sta_inactivity from hostapd.conf
8214 * file. If a station does not send anything in ap_max_inactivity seconds, an
8215 * empty data frame is sent to it in order to verify whether it is
8216 * still in range. If this frame is not ACKed, the station will be
8217 * disassociated and then deauthenticated. This feature is used to
8218 * clear station table of old entries when the STAs move out of the
8219 * range.
8220 * Default : Disable
8221 */
8222#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_NAME "gSapMaxInactivityOverride"
8223#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_MIN (0)
8224#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_MAX (1)
8225#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_DEFAULT (0)
8226
8227/*
Himanshu Agarwalf0481722016-12-06 12:46:24 +05308228 * <ini>
8229 * rx_mode - Control to decide rx mode
8230 *
8231 * @Min: 0
8232 * @Max: (CFG_ENABLE_RX_THREAD | CFG_ENABLE_RPS | CFG_ENABLE_NAPI)
8233 * @Default: MDM_PLATFORM - 0
8234 * HELIUMPLUS - CFG_ENABLE_NAPI
8235 * Other cases - (CFG_ENABLE_RX_THREAD | CFG_ENABLE_NAPI)
8236 *
8237 * This ini is used to decide mode for the rx path
8238 *
8239 * Supported Feature: NAPI
8240 *
8241 * Usage: Internal
8242 *
8243 * </ini>
Nirav Shahbd36b062016-07-18 11:12:59 +05308244 */
8245#define CFG_RX_MODE_NAME "rx_mode"
8246#define CFG_RX_MODE_MIN (0)
8247#define CFG_RX_MODE_MAX (CFG_ENABLE_RX_THREAD | CFG_ENABLE_RPS | \
8248 CFG_ENABLE_NAPI)
8249#ifdef MDM_PLATFORM
8250#define CFG_RX_MODE_DEFAULT (0)
Manjunathappa Prakash2721f942016-08-24 16:08:23 -07008251#elif defined(HELIUMPLUS)
8252#define CFG_RX_MODE_DEFAULT CFG_ENABLE_NAPI
Nirav Shahbd36b062016-07-18 11:12:59 +05308253#else
8254#define CFG_RX_MODE_DEFAULT (CFG_ENABLE_RX_THREAD | CFG_ENABLE_NAPI)
8255#endif
8256
8257/* List of RPS CPU maps for different rx queues registered by WLAN driver
8258 * Ref - Kernel/Documentation/networking/scaling.txt
8259 * RPS CPU map for a particular RX queue, selects CPU(s) for bottom half
8260 * processing of RX packets. For example, for a system with 4 CPUs,
8261 * 0xe: Use CPU1 - CPU3 and donot use CPU0.
8262 * 0x0: RPS is disabled, packets are processed on the interrupting CPU.
8263.*
8264 * WLAN driver registers NUM_TX_QUEUES queues for tx and rx each during
8265 * alloc_netdev_mq. Hence, we need to have a cpu mask for each of the rx queues.
8266 *
8267 * For example, if the NUM_TX_QUEUES is 4, a sample WLAN ini entry may look like
8268 * rpsRxQueueCpuMapList=a b c d
8269 * For a 4 CPU system (CPU0 - CPU3), this implies:
8270 * 0xa - (1010) use CPU1, CPU3 for rx queue 0
8271 * 0xb - (1011) use CPU0, CPU1 and CPU3 for rx queue 1
8272 * 0xc - (1100) use CPU2, CPU3 for rx queue 2
8273 * 0xd - (1101) use CPU0, CPU2 and CPU3 for rx queue 3
8274
8275 * In practice, we may want to avoid the cores which are heavily loaded.
8276 */
8277
8278/* Name of the ini file entry to specify RPS map for different RX queus */
8279#define CFG_RPS_RX_QUEUE_CPU_MAP_LIST_NAME "rpsRxQueueCpuMapList"
8280
8281/* Default value of rpsRxQueueCpuMapList. Different platforms may have
8282 * different configurations for NUM_TX_QUEUES and # of cpus, and will need to
8283 * configure an appropriate value via ini file. Setting default value to 'e' to
8284 * avoid use of CPU0 (since its heavily used by other system processes) by rx
8285 * queue 0, which is currently being used for rx packet processing.
8286 */
8287#define CFG_RPS_RX_QUEUE_CPU_MAP_LIST_DEFAULT "e"
8288
8289/* Maximum length of string used to hold a list of cpu maps for various rx
8290 * queues. Considering a 16 core system with 5 rx queues, a RPS CPU map
8291 * list may look like -
8292 * rpsRxQueueCpuMapList = ffff ffff ffff ffff ffff
8293 * (all 5 rx queues can be processed on all 16 cores)
8294 * max string len = 24 + 1(for '\0'). Considering 30 to be on safe side.
8295 */
8296#define CFG_RPS_RX_QUEUE_CPU_MAP_LIST_LEN 30
8297
Yingying Tang95409972016-10-20 15:16:15 +08008298#ifdef WLAN_FEATURE_WOW_PULSE
8299/*
8300 * Enable/Disable WOW PULSE feature
8301 * Set the wakeup pulse which FW use to wake up HOST
8302 * Default : Disable
8303 */
8304#define CFG_WOW_PULSE_SUPPORT_NAME "gwow_pulse_support"
8305#define CFG_WOW_PULSE_SUPPORT_MIN (0)
8306#define CFG_WOW_PULSE_SUPPORT_MAX (1)
8307#define CFG_WOW_PULSE_SUPPORT_DEFAULT (CFG_WOW_PULSE_SUPPORT_MIN)
8308
8309/*
8310 * GPIO PIN for Pulse
8311 * Which PIN to send the Pulse
8312 */
8313#define CFG_WOW_PULSE_PIN_NAME "gwow_pulse_pin"
8314#define CFG_WOW_PULSE_PIN_MIN (CFG_SET_TSF_GPIO_PIN_MIN)
8315#define CFG_WOW_PULSE_PIN_MAX (CFG_SET_TSF_GPIO_PIN_MAX)
8316#define CFG_WOW_PULSE_PIN_DEFAULT (35)
8317
8318/*
8319 * Pulse interval low
8320 * The interval of low level in the pulse
8321 * The value which defined by customer should between 160 and 480
8322 */
8323#define CFG_WOW_PULSE_INTERVAL_LOW_NAME "gwow_pulse_interval_low"
8324#define CFG_WOW_PULSE_INTERVAL_LOW_MIN (160)
8325#define CFG_WOW_PULSE_INTERVAL_LOW_MAX (480)
8326#define CFG_WOW_PULSE_INTERVAL_LOW_DEFAULT (180)
8327
8328/*
8329 * Pulse interval high
8330 * The interval of high level in the pulse
8331 * The value which defined by customer should between 20 and 40
8332 */
8333#define CFG_WOW_PULSE_INTERVAL_HIGH_NAME "gwow_pulse_interval_high"
8334#define CFG_WOW_PULSE_INTERVAL_HIGH_MIN (20)
8335#define CFG_WOW_PULSE_INTERVAL_HIGH_MAX (40)
8336#define CFG_WOW_PULSE_INTERVAL_HIGH_DEFAULT (20)
8337#endif
8338
Amar Singhal18517882016-08-08 12:26:20 -07008339/*
8340 * Support to start sap in indoor channel
8341 * Customer can config this item to enable/disable sap in indoor channel
8342 * Default: Disable
8343 */
8344#define CFG_INDOOR_CHANNEL_SUPPORT_NAME "gindoor_channel_support"
8345#define CFG_INDOOR_CHANNEL_SUPPORT_MIN (0)
8346#define CFG_INDOOR_CHANNEL_SUPPORT_MAX (1)
8347#define CFG_INDOOR_CHANNEL_SUPPORT_DEFAULT (0)
Nirav Shahbd36b062016-07-18 11:12:59 +05308348
Ravi Joshibb8d4512016-08-22 10:14:52 -07008349/*
Rajeev Kumar Sirasanagandlab79b5462016-09-06 18:33:17 +05308350 * Force softap to 11n, when gSapForce11NFor11AC is set to 1 from ini
8351 * despite of hostapd.conf request for 11ac
8352 */
8353#define CFG_SAP_FORCE_11N_FOR_11AC_NAME "gSapForce11NFor11AC"
8354#define CFG_SAP_FORCE_11N_FOR_11AC_MIN (0)
8355#define CFG_SAP_FORCE_11N_FOR_11AC_MAX (1)
8356#define CFG_SAP_FORCE_11N_FOR_11AC_DEFAULT (0)
8357
8358/*
Yingying Tangb4832f72016-10-20 13:44:55 +08008359 * sap tx leakage threshold
8360 * customer can set this value from 100 to 1000 which means
8361 * sap tx leakage threshold is -10db to -100db
8362 */
8363#define CFG_SAP_TX_LEAKAGE_THRESHOLD_NAME "gsap_tx_leakage_threshold"
8364#define CFG_SAP_TX_LEAKAGE_THRESHOLD_MIN (100)
8365#define CFG_SAP_TX_LEAKAGE_THRESHOLD_MAX (1000)
8366#define CFG_SAP_TX_LEAKAGE_THRESHOLD_DEFAULT (310)
8367
8368
8369/*
Ravi Joshibb8d4512016-08-22 10:14:52 -07008370 * Enable filtering of replayed multicast packets
8371 * In a typical infrastructure setup, it is quite normal to receive
8372 * replayed multicast packets. These packets may cause more harm than
8373 * help if not handled properly. Providing a configuration option
8374 * to enable filtering of such packets
8375 */
8376#define CFG_FILTER_MULTICAST_REPLAY_NAME "enable_multicast_replay_filter"
8377#define CFG_FILTER_MULTICAST_REPLAY_MIN (0)
8378#define CFG_FILTER_MULTICAST_REPLAY_MAX (1)
8379#define CFG_FILTER_MULTICAST_REPLAY_DEFAULT (1)
8380
Manjeet Singhe7ecb7c2016-09-03 12:34:53 +05308381/*
8382 * This parameter will control SIFS burst duration in FW from 0 to 12 ms.
8383 * Default value is set to 8ms.
8384 */
8385#define CFG_SIFS_BURST_DURATION_NAME "g_sifs_burst_duration"
8386#define CFG_SIFS_BURST_DURATION_MIN (0)
8387#define CFG_SIFS_BURST_DURATION_MAX (12)
8388#define CFG_SIFS_BURST_DURATION_DEFAULT (8)
8389
Selvaraj, Sridharebda0f22016-08-29 16:05:23 +05308390/* Optimize channel avoidance indication comming from firmware */
8391#define CFG_OPTIMIZE_CA_EVENT_NAME "goptimize_chan_avoid_event"
8392#define CFG_OPTIMIZE_CA_EVENT_DISABLE (0)
8393#define CFG_OPTIMIZE_CA_EVENT_ENABLE (1)
8394#define CFG_OPTIMIZE_CA_EVENT_DEFAULT (0)
Ravi Joshibb8d4512016-08-22 10:14:52 -07008395
Sandeep Puligillaafa52892016-10-26 19:03:16 -07008396/* Trigger BUG ON when firmware fails to send response */
8397#define CFG_CRASH_FW_TIMEOUT_NAME "fw_timeout_crash"
8398#define CFG_CRASH_FW_TIMEOUT_DISABLE (0)
8399#define CFG_CRASH_FW_TIMEOUT_ENABLE (1)
8400#define CFG_CRASH_FW_TIMEOUT_DEFAULT (0)
8401
Dustin Browncd756942016-11-23 12:25:33 -08008402/*
8403 * <ini>
8404 * rx_wakelock_timeout - Amount of time to hold wakelock for RX unicast packets
8405 * @Min: 0
8406 * @Max: 100
8407 * @Default: 50
8408 *
8409 * This ini item configures the amount of time, in milliseconds, that the driver
8410 * should prevent system power collapse after receiving an RX unicast packet.
8411 * A conigured value of 0 disables the RX Wakelock feature completely.
8412 *
8413 * Related: None.
8414 *
8415 * Supported Feature: RX Wakelock
8416 *
8417 * Usage: Internal/External
8418 *
8419 * </ini>
8420 */
8421#define CFG_RX_WAKELOCK_TIMEOUT_NAME "rx_wakelock_timeout"
8422#define CFG_RX_WAKELOCK_TIMEOUT_DEFAULT (50)
8423#define CFG_RX_WAKELOCK_TIMEOUT_MIN (0)
8424#define CFG_RX_WAKELOCK_TIMEOUT_MAX (100)
Sandeep Puligillaafa52892016-10-26 19:03:16 -07008425
Anurag Chouhan7c01cc42016-12-16 21:33:43 +05308426/*
8427 * <ini>
8428 * g_max_sched_scan_plan_int - pno sched max scan plan interval.
8429 * @Min: 1
8430 * @Max: 7200
8431 * @Default: 3600
8432 *
8433 * This ini is used to set max sched scan plan interval for pno scan
8434 * (value in seconds).
8435 *
8436 * Related: gPNOScanSupport
8437 *
8438 * Supported Feature: PNO scan
8439 *
8440 * Usage: External
8441 *
8442 * </ini>
8443 */
8444#define CFG_MAX_SCHED_SCAN_PLAN_INT_NAME "g_max_sched_scan_plan_int"
8445#define CFG_MAX_SCHED_SCAN_PLAN_INT_MIN (1)
8446#define CFG_MAX_SCHED_SCAN_PLAN_INT_MAX (7200)
8447#define CFG_MAX_SCHED_SCAN_PLAN_INT_DEFAULT (3600)
8448
8449/*
8450 * <ini>
8451 * g_max_sched_scan_plan_iterations - pno sched max scan plan iterations.
8452 * @Min: 1
8453 * @Max: 100
8454 * @Default: 10
8455 *
8456 * This ini is used to set max sched scan plan iterations for pno scan
8457 * (value in seconds).
8458 *
8459 * Related: gPNOScanSupport
8460 *
8461 * Supported Feature: PNO scan
8462 *
8463 * Usage: External
8464 *
8465 * </ini>
8466 */
8467#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_NAME "g_max_sched_scan_plan_iterations"
8468#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_MIN (1)
8469#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_MAX (100)
8470#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_DEFAULT (10)
8471
Jeff Johnson441e1f72017-02-07 08:50:49 -08008472/**
8473 * enum hdd_wext_control - knob for wireless extensions
8474 * @hdd_wext_disabled - interface is completely disabled. An access
8475 * control error log will be generated for each attempted use.
8476 * @hdd_wext_deprecated - interface is available but should not be
8477 * used. An access control warning log will be generated for each
8478 * use.
8479 * @hdd_wext_enabled - interface is available without restriction. No
8480 * access control logs will be generated.
8481 *
8482 * enum hdd_wext_control is used to enable coarse grained control on
8483 * wireless extensions ioctls. This control is used by configuration
8484 * items standard_wext_control and private_wext_control.
8485 *
8486 */
8487enum hdd_wext_control {
8488 hdd_wext_disabled = 0,
8489 hdd_wext_deprecated = 1,
8490 hdd_wext_enabled = 2,
8491};
8492
8493/*
8494 * <ini>
8495 * standard_wext_control - Standard wireless extensions control
8496 * @Min: 0
8497 * @Max: 2
8498 * @Default: 0
8499 *
8500 * Values are per enum hdd_wext_control.
8501 *
8502 * This ini is used to control access to standard wireless extensions
8503 * ioctls SIOCSIWCOMMIT (0x8B00) thru SIOCSIWPMKSA (0x8B36). The
8504 * functionality originally provided by these ioctls has been
8505 * completely superceeded by the functionality of cfg80211, and hence
8506 * by default support for these ioctls is disabled.
8507 *
8508 * Related: None
8509 *
8510 * Supported Feature: All
8511 *
8512 * Usage: Internal/External
8513 *
8514 * </ini>
8515 */
8516#define CFG_STANDARD_WEXT_CONTROL_NAME "standard_wext_control"
8517#define CFG_STANDARD_WEXT_CONTROL_MIN (hdd_wext_disabled)
8518#define CFG_STANDARD_WEXT_CONTROL_MAX (hdd_wext_enabled)
8519#define CFG_STANDARD_WEXT_CONTROL_DEFAULT (hdd_wext_disabled)
8520
8521/*
8522 * <ini>
8523 * private_wext_control - Private wireless extensions control
8524 * @Min: 0
8525 * @Max: 2
8526 * @Default: 1
8527 *
8528 * Values are per enum hdd_wext_control.
8529 *
8530 * This ini is used to control access to private wireless extensions
8531 * ioctls SIOCIWFIRSTPRIV (0x8BE0) thru SIOCIWLASTPRIV (0x8BFF). The
8532 * functionality provided by some of these ioctls has been superceeded
8533 * by cfg80211 (either standard commands or vendor commands), but many
8534 * of the private ioctls do not have a cfg80211-based equivalent, so
8535 * by default support for these ioctls is deprecated.
8536 *
8537 * Related: None
8538 *
8539 * Supported Feature: All
8540 *
8541 * Usage: Internal/External
8542 *
8543 * </ini>
8544 */
8545#define CFG_PRIVATE_WEXT_CONTROL_NAME "private_wext_control"
8546#define CFG_PRIVATE_WEXT_CONTROL_MIN (hdd_wext_disabled)
8547#define CFG_PRIVATE_WEXT_CONTROL_MAX (hdd_wext_enabled)
8548#define CFG_PRIVATE_WEXT_CONTROL_DEFAULT (hdd_wext_deprecated)
8549
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08008550/*
Selvaraj, Sridhar0a71e542017-01-10 10:21:06 +05308551 * <ini>
Kapil Gupta957827b2017-02-13 15:47:04 +05308552 * gper_roam_mon_time - Minimum time required in seconds to
8553 * be considered as valid scenario for PER based roam
8554 * @Min: 5
8555 * @Max: 25
8556 * @Default: 25
8557 *
8558 * This ini is used to define minimum time in seconds for which DUT has
8559 * collected the PER stats before it can consider the stats hysteresis to be
8560 * valid for PER based scan.
8561 * DUT collects following information during this period:
8562 * 1. % of packets below gper_roam_low_rate_th
8563 * 2. # packets above gper_roam_high_rate_th
8564 * if DUT gets (1) greater than gper_roam_th_percent and (2) is zero during
8565 * this period, it triggers PER based roam scan.
8566 *
8567 * Related: gper_roam_enabled, gper_roam_high_rate_th, gper_roam_low_rate_th,
8568 * gper_roam_th_percent, gper_roam_rest_time
8569 *
8570 * Supported Feature: LFR-3.0
8571 *
8572 * Usage: Internal
8573 *
8574 * </ini>
8575 */
8576#define CFG_PER_ROAM_MONITOR_TIME "gper_roam_mon_time"
8577#define CFG_PER_ROAM_MONITOR_TIME_MIN (5)
8578#define CFG_PER_ROAM_MONITOR_TIME_MAX (25)
8579#define CFG_PER_ROAM_MONTIOR_TIME_DEFAULT (25)
8580
8581/*
8582 * <ini>
Selvaraj, Sridhar0a71e542017-01-10 10:21:06 +05308583 * gPowerUsage - Preferred Power Usage
8584 * @Min: Min
8585 * @Max: Max
8586 * @Default: Mod
8587 *
8588 * This ini is used to set the preferred power usage
8589 *
8590 * Related: None
8591 *
8592 * Supported Feature: Power Save
8593 *
8594 * Usage: External
8595 *
8596 * </ini>
8597 */
8598#define CFG_POWER_USAGE_NAME "gPowerUsage"
8599#define CFG_POWER_USAGE_MIN "Min"
8600#define CFG_POWER_USAGE_MAX "Max"
8601#define CFG_POWER_USAGE_DEFAULT "Mod"
8602
8603/*
8604 * <ini>
8605 * gWowlPattern - WOW Pattern to used when PBM filtering is enabled
8606 * @Default:
8607 *
8608 * This ini is used to set the WOW Pattern to be used for PBM Filtering
8609 *
8610 * Related: gMaxWoWFilters
8611 *
8612 * Supported Feature: Power Save
8613 *
8614 * Usage: External
8615 *
8616 * </ini>
8617 */
8618#define CFG_WOWL_PATTERN_NAME "gWowlPattern"
8619#define CFG_WOWL_PATTERN_DEFAULT ""
8620
8621/*
8622 * <ini>
8623 * gMaxWoWFilters - Maximum WoW patterns that can be configured
8624 * @Min: 0
8625 * @Max: WOW_MAX_BITMAP_FILTERS(32)
8626 * @Default: WOW_MAX_BITMAP_FILTERS(32)
8627 *
8628 * This ini is used to set the maximum WoW patterns that can be configured
8629 *
8630 * Related: gWowlPattern
8631 *
8632 * Supported Feature: Power Save
8633 *
8634 * Usage: External
8635 *
8636 * </ini>
8637 */
8638#define CFG_MAX_WOW_FILTERS_NAME "gMaxWoWFilters"
8639#define CFG_MAX_WOW_FILTERS_MIN (0)
8640#define CFG_MAX_WOW_FILTERS_MAX (WOW_MAX_BITMAP_FILTERS)
8641#define CFG_MAX_WOW_FILTERS_DEFAULT (WOW_MAX_BITMAP_FILTERS)
8642
8643/*
8644 * <ini>
8645 * gEnableImps - Enable/Disable IMPS
8646 * @Min: 0
8647 * @Max: 1
8648 * @Default: 1
8649 *
8650 * This ini is used to enable/Disable IMPS(IdleModePowerSave) Mode
8651 *
8652 * Related: None
8653 *
8654 * Supported Feature: Power Save
8655 *
8656 * Usage: External
8657 *
8658 * </ini>
8659 */
8660#define CFG_ENABLE_IMPS_NAME "gEnableImps"
8661#define CFG_ENABLE_IMPS_MIN (0)
8662#define CFG_ENABLE_IMPS_MAX (1)
8663#define CFG_ENABLE_IMPS_DEFAULT (1)
8664
8665/*
8666 * <ini>
8667 * gEnableBmps - Enable/Disable BMPS
8668 * @Min: 0
8669 * @Max: 1
8670 * @Default: 1
8671 *
8672 * This ini is used to enable/Disable BMPS(BeaconModePowerSave) Mode
8673 *
8674 * Related: None
8675 *
8676 * Supported Feature: Power Save
8677 *
8678 * Usage: External
8679 *
8680 * </ini>
8681 */
8682#define CFG_ENABLE_PS_NAME "gEnableBmps"
8683#define CFG_ENABLE_PS_MIN (0)
8684#define CFG_ENABLE_PS_MAX (1)
8685#define CFG_ENABLE_PS_DEFAULT (1)
8686
8687/*
8688 * <ini>
8689 * gAutoBmpsTimerValue - Set Auto BMPS Timer value
8690 * @Min: 0
8691 * @Max: 120
8692 * @Default: 0
8693 *
8694 * This ini is used to set Auto BMPS Timer value in seconds
8695 *
8696 * Related: gEnableBmps
8697 *
8698 * Supported Feature: Power Save
8699 *
8700 * Usage: External
8701 *
8702 * </ini>
8703 */
8704#define CFG_AUTO_PS_ENABLE_TIMER_NAME "gAutoBmpsTimerValue"
8705#define CFG_AUTO_PS_ENABLE_TIMER_MIN (0)
8706#define CFG_AUTO_PS_ENABLE_TIMER_MAX (120)
8707#define CFG_AUTO_PS_ENABLE_TIMER_DEFAULT (0)
8708
8709/*
8710 * <ini>
8711 * gBmpsMinListenInterval - Set BMPS Minimum Listen Interval
8712 * @Min: 1
8713 * @Max: 65535
8714 * @Default: 1
8715 *
8716 * This ini is used to set BMPS Minimum Listen Interval. If gPowerUsage
8717 * is set "Min", this INI need to be set.
8718 *
8719 * Related: gEnableBmps, gPowerUsage
8720 *
8721 * Supported Feature: Power Save
8722 *
8723 * Usage: External
8724 *
8725 * </ini>
8726 */
8727#define CFG_BMPS_MINIMUM_LI_NAME "gBmpsMinListenInterval"
8728#define CFG_BMPS_MINIMUM_LI_MIN (1)
8729#define CFG_BMPS_MINIMUM_LI_MAX (65535)
8730#define CFG_BMPS_MINIMUM_LI_DEFAULT (1)
8731
8732/*
8733 * <ini>
8734 * gBmpsModListenInterval - Set BMPS Moderate Listen Interval
8735 * @Min: 1
8736 * @Max: 65535
8737 * @Default: 1
8738 *
8739 * This ini is used to set BMPS Moderate Listen Interval. If gPowerUsage
8740 * is set "Mod", this INI need to be set.
8741 *
8742 * Related: gEnableBmps, gPowerUsage
8743 *
8744 * Supported Feature: Power Save
8745 *
8746 * Usage: External
8747 *
8748 * </ini>
8749 */
8750#define CFG_BMPS_MODERATE_LI_NAME "gBmpsModListenInterval"
8751#define CFG_BMPS_MODERATE_LI_MIN (1)
8752#define CFG_BMPS_MODERATE_LI_MAX (65535)
8753#define CFG_BMPS_MODERATE_LI_DEFAULT (1)
8754
8755/*
8756 * <ini>
8757 * gBmpsMaxListenInterval - Set BMPS Maximum Listen Interval
8758 * @Min: 1
8759 * @Max: 65535
8760 * @Default: 1
8761 *
8762 * This ini is used to set BMPS Maximum Listen Interval. If gPowerUsage
8763 * is set "Max", this INI need to be set.
8764 *
8765 * Related: gEnableBmps, gPowerUsage
8766 *
8767 * Supported Feature: Power Save
8768 *
8769 * Usage: External
8770 *
8771 * </ini>
8772 */
8773#define CFG_BMPS_MAXIMUM_LI_NAME "gBmpsMaxListenInterval"
8774#define CFG_BMPS_MAXIMUM_LI_MIN (1)
8775#define CFG_BMPS_MAXIMUM_LI_MAX (65535)
8776#define CFG_BMPS_MAXIMUM_LI_DEFAULT (1)
8777
8778#ifdef FEATURE_RUNTIME_PM
8779/*
8780 * <ini>
8781 * gRuntimePM - enable runtime suspend
8782 * @Min: 0
8783 * @Max: 1
8784 * @Default: 0
8785 *
8786 * This ini is used to enable runtime_suspend
8787 *
8788 * Related: None
8789 *
8790 * Supported Feature: Power Save
8791 *
8792 * Usage: External
8793 *
8794 * </ini>
8795 */
8796#define CFG_ENABLE_RUNTIME_PM "gRuntimePM"
8797#define CFG_ENABLE_RUNTIME_PM_MIN (0)
8798#define CFG_ENABLE_RUNTIME_PM_MAX (1)
8799#define CFG_ENABLE_RUNTIME_PM_DEFAULT (0)
8800
8801/*
8802 * <ini>
8803 * gRuntimePMDelay - Set runtime pm's inactivity timer
8804 * @Min: 0
8805 * @Max: 1
8806 * @Default: 0
8807 *
8808 * This ini is used to set runtime pm's inactivity timer value.
8809 * the wlan driver will wait for this number of milliseconds of
8810 * inactivity before performing a runtime suspend.
8811 *
8812 * Related: gRuntimePM
8813 *
8814 * Supported Feature: Power Save
8815 *
8816 * Usage: External
8817 *
8818 * </ini>
8819 */
8820#define CFG_RUNTIME_PM_DELAY_NAME "gRuntimePMDelay"
8821#define CFG_RUNTIME_PM_DELAY_MIN (100)
8822#define CFG_RUNTIME_PM_DELAY_MAX (10000)
8823#define CFG_RUNTIME_PM_DELAY_DEFAULT (500)
8824#endif
8825
8826/*
8827 * <ini>
8828 * gEnablePowerSaveOffload - Enable Power Save Offload
8829 * @Min: 0
8830 * @Max: 5
8831 * @Default: 0
8832 *
8833 * This ini is used to set Power Save Offload configuration:
8834 * Current values of gEnablePowerSaveOffload:
8835 * 0 -> Power save offload is disabled
8836 * 1 -> Legacy Power save enabled + Deep sleep Disabled
8837 * 2 -> QPower enabled + Deep sleep Disabled
8838 * 3 -> Legacy Power save enabled + Deep sleep Enabled
8839 * 4 -> QPower enabled + Deep sleep Enabled
8840 * 5 -> Duty cycling QPower enabled
8841 *
8842 * Related: None
8843 *
8844 * Supported Feature: Power Save
8845 *
8846 * Usage: External
8847 *
8848 * </ini>
8849 */
8850#define CFG_POWERSAVE_OFFLOAD_NAME "gEnablePowerSaveOffload"
8851#define CFG_POWERSAVE_OFFLOAD_MIN (0)
8852#define CFG_POWERSAVE_OFFLOAD_MAX (PS_DUTY_CYCLING_QPOWER)
8853#define CFG_POWERSAVE_OFFLOAD_DEFAULT (CFG_POWERSAVE_OFFLOAD_MIN)
8854
8855/*
8856 * <ini>
8857 * gEnableWoW - Enable/Disable WoW
8858 * @Min: 0
8859 * @Max: 3
8860 * @Default: 3
8861 *
8862 * This ini is used to enable/disable WoW. Configurations are as follows:
8863 * 0 - Disable both magic pattern match and pattern byte match.
8864 * 1 - Enable magic pattern match on all interfaces.
8865 * 2 - Enable pattern byte match on all interfaces.
8866 * 3 - Enable both magic patter and pattern byte match on all interfaces.
8867 *
8868 * Related: None
8869 *
8870 * Supported Feature: Power Save
8871 *
8872 * Usage: External
8873 *
8874 * </ini>
8875 */
8876#define CFG_WOW_STATUS_NAME "gEnableWoW"
8877#define CFG_WOW_ENABLE_MIN (0)
8878#define CFG_WOW_ENABLE_MAX (3)
8879#define CFG_WOW_STATUS_DEFAULT (3)
8880
8881#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
8882/*
8883 * <ini>
8884 * gExtWoWgotoSuspend - Enable/Disable Extended WoW
8885 * @Min: 0
8886 * @Max: 1
8887 * @Default: 1
8888 *
8889 * This ini is used to enable/disable Extended WoW.
8890 *
8891 * Related: None
8892 *
8893 * Supported Feature: Power Save
8894 *
8895 * Usage: External
8896 *
8897 * </ini>
8898 */
8899#define CFG_EXTWOW_GO_TO_SUSPEND "gExtWoWgotoSuspend"
8900#define CFG_EXTWOW_GO_TO_SUSPEND_MIN (0)
8901#define CFG_EXTWOW_GO_TO_SUSPEND_MAX (1)
8902#define CFG_EXTWOW_GO_TO_SUSPEND_DEFAULT (1)
8903
8904/*
8905 * <ini>
8906 * gExtWowApp1WakeupPinNumber - Set wakeup1 PIN number
8907 * @Min: 0
8908 * @Max: 255
8909 * @Default: 12
8910 *
8911 * This ini is used to set EXT WOW APP1 wakeup PIN number
8912 *
8913 * Related: None
8914 *
8915 * Supported Feature: Power Save
8916 *
8917 * Usage: External
8918 *
8919 * </ini>
8920 */
8921#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER "gExtWowApp1WakeupPinNumber"
8922#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER_MIN (0)
8923#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER_MAX (255)
8924#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER_DEFAULT (12)
8925
8926/*
8927 * <ini>
8928 * gExtWowApp2WakeupPinNumber - Set wakeup2 PIN number
8929 * @Min: 0
8930 * @Max: 255
8931 * @Default: 16
8932 *
8933 * This ini is used to set EXT WOW APP2 wakeup PIN number
8934 *
8935 * Related: None
8936 *
8937 * Supported Feature: Power Save
8938 *
8939 * Usage: External
8940 *
8941 * </ini>
8942 */
8943#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER "gExtWowApp2WakeupPinNumber"
8944#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER_MIN (0)
8945#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER_MAX (255)
8946#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER_DEFAULT (16)
8947
8948/*
8949 * <ini>
8950 * gExtWoWApp2KAInitPingInterval - Set Keep Alive Init Ping Interval
8951 * @Min: 0
8952 * @Max: 0xffffffff
8953 * @Default: 240
8954 *
8955 * This ini is used to set Keep Alive Init Ping Interval for EXT WOW
8956 *
8957 * Related: None
8958 *
8959 * Supported Feature: Power Save
8960 *
8961 * Usage: External
8962 *
8963 * </ini>
8964 */
8965#define CFG_EXTWOW_KA_INIT_PING_INTERVAL "gExtWoWApp2KAInitPingInterval"
8966#define CFG_EXTWOW_KA_INIT_PING_INTERVAL_MIN (0)
8967#define CFG_EXTWOW_KA_INIT_PING_INTERVAL_MAX (0xffffffff)
8968#define CFG_EXTWOW_KA_INIT_PING_INTERVAL_DEFAULT (240)
8969
8970/*
8971 * <ini>
8972 * gExtWoWApp2KAMinPingInterval - Set Keep Alive Minimum Ping Interval
8973 * @Min: 0
8974 * @Max: 0xffffffff
8975 * @Default: 240
8976 *
8977 * This ini is used to set Keep Alive Minimum Ping Interval for EXT WOW
8978 *
8979 * Related: None
8980 *
8981 * Supported Feature: Power Save
8982 *
8983 * Usage: External
8984 *
8985 * </ini>
8986 */
8987#define CFG_EXTWOW_KA_MIN_PING_INTERVAL "gExtWoWApp2KAMinPingInterval"
8988#define CFG_EXTWOW_KA_MIN_PING_INTERVAL_MIN (0)
8989#define CFG_EXTWOW_KA_MIN_PING_INTERVAL_MAX (0xffffffff)
8990#define CFG_EXTWOW_KA_MIN_PING_INTERVAL_DEFAULT (240)
8991
8992/*
8993 * <ini>
8994 * gExtWoWApp2KAMaxPingInterval - Set Keep Alive Maximum Ping Interval
8995 * @Min: 0
8996 * @Max: 0xffffffff
8997 * @Default: 1280
8998 *
8999 * This ini is used to set Keep Alive Maximum Ping Interval for EXT WOW
9000 *
9001 * Related: None
9002 *
9003 * Supported Feature: Power Save
9004 *
9005 * Usage: External
9006 *
9007 * </ini>
9008 */
9009#define CFG_EXTWOW_KA_MAX_PING_INTERVAL "gExtWoWApp2KAMaxPingInterval"
9010#define CFG_EXTWOW_KA_MAX_PING_INTERVAL_MIN (0)
9011#define CFG_EXTWOW_KA_MAX_PING_INTERVAL_MAX (0xffffffff)
9012#define CFG_EXTWOW_KA_MAX_PING_INTERVAL_DEFAULT (1280)
9013
9014/*
9015 * <ini>
9016 * gExtWoWApp2KAIncPingInterval - Set Keep Alive increment of Ping Interval
9017 * @Min: 0
9018 * @Max: 0xffffffff
9019 * @Default: 4
9020 *
9021 * This ini is used to set Keep Alive increment of Ping Interval for EXT WOW
9022 *
9023 * Related: None
9024 *
9025 * Supported Feature: Power Save
9026 *
9027 * Usage: External
9028 *
9029 * </ini>
9030 */
9031#define CFG_EXTWOW_KA_INC_PING_INTERVAL "gExtWoWApp2KAIncPingInterval"
9032#define CFG_EXTWOW_KA_INC_PING_INTERVAL_MIN (0)
9033#define CFG_EXTWOW_KA_INC_PING_INTERVAL_MAX (0xffffffff)
9034#define CFG_EXTWOW_KA_INC_PING_INTERVAL_DEFAULT (4)
9035
9036/*
9037 * <ini>
9038 * gExtWoWApp2KAIncPingInterval - Set TCP source port
9039 * @Min: 0
9040 * @Max: 65535
9041 * @Default: 5000
9042 *
9043 * This ini is used to set TCP source port when EXT WOW is enabled
9044 *
9045 * Related: None
9046 *
9047 * Supported Feature: Power Save
9048 *
9049 * Usage: External
9050 *
9051 * </ini>
9052 */
9053#define CFG_EXTWOW_TCP_SRC_PORT "gExtWoWApp2TcpSrcPort"
9054#define CFG_EXTWOW_TCP_SRC_PORT_MIN (0)
9055#define CFG_EXTWOW_TCP_SRC_PORT_MAX (65535)
9056#define CFG_EXTWOW_TCP_SRC_PORT_DEFAULT (5000)
9057
9058/*
9059 * <ini>
9060 * gExtWoWApp2TcpDstPort - Set TCP Destination port
9061 * @Min: 0
9062 * @Max: 65535
9063 * @Default: 5001
9064 *
9065 * This ini is used to set TCP Destination port when EXT WOW is enabled
9066 *
9067 * Related: None
9068 *
9069 * Supported Feature: Power Save
9070 *
9071 * Usage: External
9072 *
9073 * </ini>
9074 */
9075#define CFG_EXTWOW_TCP_DST_PORT "gExtWoWApp2TcpDstPort"
9076#define CFG_EXTWOW_TCP_DST_PORT_MIN (0)
9077#define CFG_EXTWOW_TCP_DST_PORT_MAX (65535)
9078#define CFG_EXTWOW_TCP_DST_PORT_DEFAULT (5001)
9079
9080/*
9081 * <ini>
9082 * gExtWoWApp2TcpTxTimeout - Set TCP tx timeout
9083 * @Min: 0
9084 * @Max: 0xffffffff
9085 * @Default: 200
9086 *
9087 * This ini is used to set TCP Tx timeout when EXT WOW is enabled
9088 *
9089 * Related: None
9090 *
9091 * Supported Feature: Power Save
9092 *
9093 * Usage: External
9094 *
9095 * </ini>
9096 */
9097#define CFG_EXTWOW_TCP_TX_TIMEOUT "gExtWoWApp2TcpTxTimeout"
9098#define CFG_EXTWOW_TCP_TX_TIMEOUT_MIN (0)
9099#define CFG_EXTWOW_TCP_TX_TIMEOUT_MAX (0xffffffff)
9100#define CFG_EXTWOW_TCP_TX_TIMEOUT_DEFAULT (200)
9101
9102/*
9103 * <ini>
9104 * gExtWoWApp2TcpRxTimeout - Set TCP rx timeout
9105 * @Min: 0
9106 * @Max: 0xffffffff
9107 * @Default: 200
9108 *
9109 * This ini is used to set TCP Rx timeout when EXT WOW is enabled
9110 *
9111 * Related: None
9112 *
9113 * Supported Feature: Power Save
9114 *
9115 * Usage: External
9116 *
9117 * </ini>
9118 */
9119#define CFG_EXTWOW_TCP_RX_TIMEOUT "gExtWoWApp2TcpRxTimeout"
9120#define CFG_EXTWOW_TCP_RX_TIMEOUT_MIN (0)
9121#define CFG_EXTWOW_TCP_RX_TIMEOUT_MAX (0xffffffff)
9122#define CFG_EXTWOW_TCP_RX_TIMEOUT_DEFAULT (200)
9123#endif
9124
9125/*
Kapil Gupta5cda2252016-12-29 18:44:26 +05309126 * <ini>
9127 * gper_roam_enabled - To enabled/disable PER based roaming in FW
9128 * @Min: 0
Kapil Gupta6e6c26b2017-01-20 18:59:43 +05309129 * @Max: 3
9130 * @Default: 0
Kapil Gupta5cda2252016-12-29 18:44:26 +05309131 *
9132 * This ini is used to enable/disable Packet error based roaming, enabling this
9133 * will cause DUT to monitor Tx and Rx traffic and roam to a better candidate
9134 * if current is not good enough.
9135 *
Kapil Gupta6e6c26b2017-01-20 18:59:43 +05309136 * Values supported:
9137 * 0: disabled
9138 * 1: enabled for Rx traffic
9139 * 2: enabled for Tx traffic
9140 * 3: enabled for Tx and Rx traffic
9141 *
Kapil Gupta5cda2252016-12-29 18:44:26 +05309142 * Related: gper_roam_high_rate_th, gper_roam_low_rate_th,
9143 * gper_roam_th_percent, gper_roam_rest_time
9144 *
9145 * Supported Feature: LFR-3.0
9146 *
9147 * Usage: Internal
9148 *
9149 * </ini>
9150 */
9151#define CFG_PER_ROAM_ENABLE_NAME "gper_roam_enabled"
9152#define CFG_PER_ROAM_ENABLE_MIN (0)
Kapil Gupta6e6c26b2017-01-20 18:59:43 +05309153#define CFG_PER_ROAM_ENABLE_MAX (3)
9154#define CFG_PER_ROAM_ENABLE_DEFAULT (0)
Kapil Gupta5cda2252016-12-29 18:44:26 +05309155
9156/*
9157 * <ini>
9158 * gper_roam_high_rate_th - Rate at which PER based roam will stop
9159 * @Min: 1 Mbps
9160 * @Max: 0xffffffff
9161 * @Default: 40 Mbps
9162 *
9163 * This ini is used to define the data rate in mbps*10 at which FW will stop
9164 * monitoring the traffic for PER based roam.
9165 *
9166 * Related: gper_roam_enabled, gper_roam_low_rate_th,
9167 * gper_roam_th_percent, gper_roam_rest_time
9168 *
9169 * Supported Feature: LFR-3.0
9170 *
9171 * Usage: Internal
9172 *
9173 * </ini>
9174 */
9175#define CFG_PER_ROAM_CONFIG_HIGH_RATE_TH_NAME "gper_roam_high_rate_th"
9176#define CFG_PER_ROAM_CONFIG_HIGH_RATE_TH_MIN (10)
9177#define CFG_PER_ROAM_CONFIG_HIGH_RATE_TH_MAX (0xffffffff)
9178#define CFG_PER_ROAM_CONFIG_HIGH_RATE_TH_DEFAULT (400)
9179
9180/*
9181 * <ini>
9182 * gper_roam_low_rate_th - Rate at which FW starts considering traffic for PER
9183 * based roam.
9184 *
9185 * @Min: 1 Mbps
9186 * @Max: 0xffffffff
9187 * @Default: 20 Mbps
9188 *
9189 * This ini is used to define the rate in mbps*10 at which FW starts considering
9190 * traffic for PER based roam, if gper_roam_th_percent of data is below this
9191 * rate, FW will issue a roam scan.
9192 *
9193 * Related: gper_roam_enabled, gper_roam_high_rate_th,
9194 * gper_roam_th_percent, gper_roam_rest_time
9195 *
9196 * Supported Feature: LFR-3.0
9197 *
9198 * Usage: Internal
9199 *
9200 * </ini>
9201 */
9202#define CFG_PER_ROAM_CONFIG_LOW_RATE_TH_NAME "gper_roam_low_rate_th"
9203#define CFG_PER_ROAM_CONFIG_LOW_RATE_TH_MIN (10)
9204#define CFG_PER_ROAM_CONFIG_LOW_RATE_TH_MAX (0xffffffff)
9205#define CFG_PER_ROAM_CONFIG_LOW_RATE_TH_DEFAULT (200)
9206
9207/*
9208 * <ini>
9209 * gper_roam_th_percent - Percentage at which FW will issue a roam scan if
9210 * traffic is below gper_roam_low_rate_th rate.
9211 *
9212 * @Min: 10%
9213 * @Max: 100%
9214 * @Default: 60%
9215 *
9216 * This ini is used to define the percentage at which FW will issue a roam scan
9217 * if traffic is below gper_roam_low_rate_th rate.
9218 *
9219 * Related: gper_roam_enabled, gper_roam_high_rate_th,
9220 * gper_roam_high_rate_th, gper_roam_rest_time
9221 *
9222 * Supported Feature: LFR-3.0
9223 *
9224 * Usage: Internal
9225 *
9226 * </ini>
9227 */
9228#define CFG_PER_ROAM_CONFIG_RATE_TH_PERCENT_NAME "gper_roam_th_percent"
9229#define CFG_PER_ROAM_CONFIG_RATE_TH_PERCENT_MIN (10)
9230#define CFG_PER_ROAM_CONFIG_RATE_TH_PERCENT_MAX (100)
9231#define CFG_PER_ROAM_CONFIG_RATE_TH_PERCENT_DEFAULT (60)
9232
9233/*
9234 * <ini>
9235 * gper_roam_rest_time - Time for which FW will wait once it issues a
9236 * roam scan.
9237 *
9238 * @Min: 10 seconds
9239 * @Max: 3600 seconds
9240 * @Default: 300 seconds
9241 *
9242 * This ini is used to define the time for which FW will wait once it issues a
9243 * PER based roam scan.
9244 *
9245 * Related: gper_roam_enabled, gper_roam_high_rate_th,
9246 * gper_roam_high_rate_th, gper_roam_th_percent
9247 *
9248 * Supported Feature: LFR-3.0
9249 *
9250 * Usage: Internal
9251 *
9252 * </ini>
9253 */
9254#define CFG_PER_ROAM_REST_TIME_NAME "gper_roam_rest_time"
9255#define CFG_PER_ROAM_REST_TIME_MIN (10)
9256#define CFG_PER_ROAM_REST_TIME_MAX (3600)
9257#define CFG_PER_ROAM_REST_TIME_DEFAULT (300)
9258
9259/*
Selvaraj, Sridhar4f684bb2017-01-19 15:59:23 +05309260 * <ini>
9261 * g_enable_bcast_probe_rsp - Enable Broadcast probe response.
9262 * @Min: 0
9263 * @Max: 1
9264 * @Default: 0
9265 *
9266 * This ini is used to enable/disable broadcast probe response
9267 *
9268 * Related: None
9269 *
9270 * Supported Feature: FILS
9271 *
9272 * Usage: External
9273 *
9274 * </ini>
9275 */
9276#define CFG_ENABLE_BCAST_PROBE_RESP_NAME "g_enable_bcast_probe_rsp"
9277#define CFG_ENABLE_BCAST_PROBE_RESP_MIN (0)
9278#define CFG_ENABLE_BCAST_PROBE_RESP_MAX (1)
9279#define CFG_ENABLE_BCAST_PROBE_RESP_DEFAULT (0)
9280
Srinivas Girigowda70e169a2017-03-07 23:55:57 -08009281/**
9282 * arp_ac_category - ARP access category
9283 * @Min: 0
9284 * @Max: 3
9285 * @Default: 3
9286 *
9287 * Firmware by default categorizes ARP packets with VOICE TID.
9288 * This ini shall be used to override the default configuration.
9289 * Access category enums are referenced in ieee80211_common.h
9290 * WME_AC_BE = 0 (Best effort)
9291 * WME_AC_BK = 1 (Background)
9292 * WME_AC_VI = 2 (Video)
9293 * WME_AC_VO = 3 (Voice)
9294 *
9295 * Related: none
9296 *
9297 * Usage: Internal/External
9298 *
9299 * </ini>
9300 */
9301#define CFG_ARP_AC_CATEGORY "arp_ac_category"
9302#define CFG_ARP_AC_CATEGORY_MIN (0)
9303#define CFG_ARP_AC_CATEGORY_MAX (3)
9304#define CFG_ARP_AC_CATEGORY_DEFAULT (3)
9305
Selvaraj, Sridhar4f684bb2017-01-19 15:59:23 +05309306/*
Dustin Brown13995f02017-01-12 15:38:42 -08009307 * <ini>
9308 * gActiveBpfMode - Control active BPF mode
9309 * @Min: 0 (disabled)
9310 * @Max: 2 (adaptive)
9311 * @Default: 0 (disabled)
9312 *
9313 * This config item is used to control BPF in active mode. There are 3 modes:
9314 * 0) disabled - BPF is disabled in active mode
9315 * 1) enabled - BPF is enabled for all packets in active mode
9316 * 2) adaptive - BPF is enabled for packets up to some throughput threshold
9317 *
9318 * Related: N/A
9319 *
9320 * Supported Feature: Active Mode BPF
9321 *
9322 * Usage: Internal/External
9323 * </ini>
9324 */
9325#define CFG_ACTIVE_BPF_MODE_NAME "gActiveBpfMode"
9326#define CFG_ACTIVE_BPF_MODE_MIN (ACTIVE_BPF_DISABLED)
9327#define CFG_ACTIVE_BPF_MODE_MAX (ACTIVE_BPF_MODE_COUNT - 1)
9328#define CFG_ACTIVE_BPF_MODE_DEFAULT (ACTIVE_BPF_DISABLED)
9329
Krishna Kumaar Natarajan90bb6f12017-03-03 21:05:52 -08009330#ifdef WLAN_FEATURE_11AX
9331/* 11AX related INI configuration */
9332/*
9333 * <ini>
9334 * enable_ul_mimo- Enable UL MIMO.
9335 * @Min: 0
9336 * @Max: 1
9337 * @Default: 0
9338 *
9339 * This ini is used to enable or disable UL MIMO.
9340 *
9341 * Related: NA
9342 *
9343 * Supported Feature: 11AX
9344 *
9345 * Usage: External
9346 *
9347 * </ini>
9348 */
9349
9350#define CFG_ENABLE_UL_MIMO_NAME "enable_ul_mimo"
9351#define CFG_ENABLE_UL_MIMO_MIN (0)
9352#define CFG_ENABLE_UL_MIMO_MAX (1)
9353#define CFG_ENABLE_UL_MIMO_DEFAULT (0)
9354
9355/*
9356 * <ini>
9357 * enable_ul_ofdma- Enable UL OFDMA.
9358 * @Min: 0
9359 * @Max: 1
9360 * @Default: 0
9361 *
9362 * This ini is used to enable or disable UL OFDMA.
9363 *
9364 * Related: NA
9365 *
9366 * Supported Feature: 11AX
9367 *
9368 * Usage: External
9369 *
9370 * </ini>
9371 */
9372#define CFG_ENABLE_UL_OFDMA_NAME "enable_ul_ofdma"
9373#define CFG_ENABLE_UL_OFDMA_MIN (0)
9374#define CFG_ENABLE_UL_OFDMA_MAX (1)
9375#define CFG_ENABLE_UL_OFDMA_DEFAULT (0)
9376
9377#endif /* WLAN_FEATURE_11AX */
9378
Dustin Brownab1364a2017-03-27 16:59:08 -07009379/**
9380 * enum l1ss_sleep_allowed - when L1ss Sleep is allowed on capable platforms
9381 * @L1SS_SLEEP_ALLOWED_NEVER: never allow L1ss Sleep
9382 * @L1SS_SLEEP_ALLOWED_STA_CONNECTED: allow in station mode (connected)
9383 * @L1SS_SLEEP_ALLOWED_STA_DISCONNECTED: allow in station mode (disconnected)
9384 * @L1SS_SLEEP_ALLOWED_ALWAYS: always allow L1ss Sleep
9385 */
9386enum l1ss_sleep_allowed {
9387 L1SS_SLEEP_ALLOWED_NEVER = 0,
9388 L1SS_SLEEP_ALLOWED_STA_CONNECTED = BIT(0),
9389 L1SS_SLEEP_ALLOWED_STA_DISCONNECTED = BIT(1),
9390 L1SS_SLEEP_ALLOWED_ALWAYS = 0xff
9391};
9392
9393/*
9394 * <ini>
9395 * gL1ssSleepAllowed - Control when L1ss Sleep is allowed on capable platforms
9396 * @Min: 0 (disabled)
9397 * @Max: 255 (always allow)
9398 * @Default: 1 (station mode - connected)
9399 *
9400 * This config item controls when L1ss Sleep is allowed on capable platforms.
9401 * The default is connected station mode to support DTIM power savings.
9402 * 0) never allow
9403 * 1) station mode (connected)
9404 * 2) station mode (disconnected)
9405 * 255) always allow
9406 *
9407 * Related: N/A
9408 *
9409 * Supported Feature: L1ss Sleep
9410 *
9411 * Usage: Internal/External
9412 * </ini>
9413 */
9414#define CFG_L1SS_SLEEP_ALLOWED_NAME "gL1ssSleepAllowed"
9415#define CFG_L1SS_SLEEP_ALLOWED_MIN (L1SS_SLEEP_ALLOWED_NEVER)
9416#define CFG_L1SS_SLEEP_ALLOWED_MAX (L1SS_SLEEP_ALLOWED_ALWAYS)
9417#define CFG_L1SS_SLEEP_ALLOWED_DEFAULT (L1SS_SLEEP_ALLOWED_STA_CONNECTED)
9418
Krishna Kumaar Natarajan90bb6f12017-03-03 21:05:52 -08009419/*
Jeff Johnson12a744b2017-04-04 08:19:37 -07009420 * <ini>
9421 * gEnableANI - Enable Adaptive Noise Immunity
9422 * @Min: 0
9423 * @Max: 1
9424 * @Default: 1
9425 *
9426 * This ini is used to enable or disable Adaptive Noise Immunity.
9427 *
9428 * Related: None
9429 *
9430 * Supported Feature: ANI
9431 *
9432 * Usage: External
9433 *
9434 * </ini>
9435 */
9436#define CFG_ENABLE_ANI_NAME "gEnableANI"
9437#define CFG_ENABLE_ANI_MIN (0)
9438#define CFG_ENABLE_ANI_MAX (1)
9439#define CFG_ENABLE_ANI_DEFAULT (1)
9440
9441/*
Krishna Kumaar Natarajan90bb6f12017-03-03 21:05:52 -08009442 * Type declarations
9443 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009444struct hdd_config {
9445 /* Bitmap to track what is explicitly configured */
9446 DECLARE_BITMAP(bExplicitCfg, MAX_CFG_INI_ITEMS);
9447
9448 /* Config parameters */
9449 uint32_t RTSThreshold;
9450 uint32_t FragmentationThreshold;
9451 uint8_t OperatingChannel;
9452 bool ShortSlotTimeEnabled;
9453 bool Is11dSupportEnabled;
9454 bool Is11hSupportEnabled;
9455 bool fSupplicantCountryCodeHasPriority;
9456 uint32_t HeartbeatThresh24;
9457 char PowerUsageControl[4];
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009458 bool fIsImpsEnabled;
9459 bool is_ps_enabled;
Kiran Kumar Lokere0ac679c2016-11-17 17:43:36 -08009460 uint32_t auto_bmps_timer_val;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009461 uint32_t nBmpsModListenInterval;
9462 uint32_t nBmpsMaxListenInterval;
9463 uint32_t nBmpsMinListenInterval;
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -07009464 enum hdd_dot11_mode dot11Mode;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009465 uint32_t nChannelBondingMode24GHz;
9466 uint32_t nChannelBondingMode5GHz;
9467 uint32_t MaxRxAmpduFactor;
9468 uint16_t TxRate;
9469 uint32_t ShortGI20MhzEnable;
9470 uint32_t ScanResultAgeCount;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009471 uint8_t nRssiCatGap;
9472 bool fIsShortPreamble;
Anurag Chouhan6d760662016-02-20 16:05:43 +05309473 struct qdf_mac_addr IbssBssid;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009474 uint32_t AdHocChannel5G;
9475 uint32_t AdHocChannel24G;
9476 uint8_t intfAddrMask;
Anurag Chouhan6d760662016-02-20 16:05:43 +05309477 struct qdf_mac_addr intfMacAddr[QDF_MAX_CONCURRENCY_PERSONA];
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009478
9479 bool apUapsdEnabled;
9480 bool apRandomBssidEnabled;
9481 bool apProtEnabled;
9482 uint16_t apProtection;
9483 bool apOBSSProtEnabled;
9484 bool apDisableIntraBssFwd;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009485 uint32_t nAPAutoShutOff;
9486 uint8_t enableLTECoex;
9487 uint32_t apKeepAlivePeriod;
9488 uint32_t goKeepAlivePeriod;
Dustin Brownb6b0f182017-03-08 13:08:27 -08009489 enum station_keepalive_method sta_keepalive_method;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009490 uint32_t apLinkMonitorPeriod;
9491 uint32_t goLinkMonitorPeriod;
9492 uint32_t nBeaconInterval;
9493 uint8_t nTxPowerCap; /* In dBm */
Padma, Santhosh Kumar29df3622016-08-16 19:15:16 +05309494 bool allow_tpc_from_ap;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009495 bool fIsLowGainOverride;
9496 uint8_t disablePacketFilter;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009497 bool fRrmEnable;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009498 uint16_t nRrmRandnIntvl;
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -08009499 /* length includes separator */
9500 char rm_capability[3 * DOT11F_IE_RRMENABLEDCAP_MAX_LEN];
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009501
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009502 /* Vowifi 11r params */
9503 bool fFTResourceReqSupported;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009504
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009505 uint16_t nNeighborScanPeriod;
9506 uint8_t nNeighborLookupRssiThreshold;
9507 uint8_t delay_before_vdev_stop;
9508 uint8_t nOpportunisticThresholdDiff;
9509 uint8_t nRoamRescanRssiDiff;
9510 uint8_t neighborScanChanList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
9511 uint16_t nNeighborScanMinChanTime;
9512 uint16_t nNeighborScanMaxChanTime;
9513 uint16_t nMaxNeighborReqTries;
9514 uint16_t nNeighborResultsRefreshPeriod;
9515 uint16_t nEmptyScanRefreshPeriod;
9516 uint8_t nRoamBmissFirstBcnt;
9517 uint8_t nRoamBmissFinalBcnt;
9518 uint8_t nRoamBeaconRssiWeight;
9519 uint32_t nhi_rssi_scan_max_count;
9520 uint32_t nhi_rssi_scan_rssi_delta;
9521 uint32_t nhi_rssi_scan_delay;
9522 int32_t nhi_rssi_scan_rssi_ub;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009523
9524 /* Additional Handoff params */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009525 uint16_t nVccRssiTrigger;
9526 uint32_t nVccUlMacLossThreshold;
9527
9528 uint32_t nPassiveMinChnTime; /* in units of milliseconds */
9529 uint32_t nPassiveMaxChnTime; /* in units of milliseconds */
9530 uint32_t nActiveMinChnTime; /* in units of milliseconds */
9531 uint32_t nActiveMaxChnTime; /* in units of milliseconds */
9532
9533 uint32_t nInitialDwellTime; /* in units of milliseconds */
9534 bool initial_scan_no_dfs_chnl;
9535
9536#ifdef WLAN_AP_STA_CONCURRENCY
9537 uint32_t nPassiveMinChnTimeConc; /* in units of milliseconds */
9538 uint32_t nPassiveMaxChnTimeConc; /* in units of milliseconds */
9539 uint32_t nActiveMinChnTimeConc; /* in units of milliseconds */
9540 uint32_t nActiveMaxChnTimeConc; /* in units of milliseconds */
9541 uint32_t nRestTimeConc; /* in units of milliseconds */
Agrawal Ashish17bb3902016-05-05 13:29:40 +05309542 /* In units of milliseconds */
9543 uint32_t min_rest_time_conc;
9544 /* In units of milliseconds */
9545 uint32_t idle_time_conc;
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -07009546 uint8_t nNumStaChanCombinedConc;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009547 /* STA in each split scan operation */
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -07009548 uint8_t nNumP2PChanCombinedConc;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009549 /* P2P in each split scan operation */
9550#endif
9551
9552 uint8_t nMaxPsPoll;
9553
9554 uint8_t nRssiFilterPeriod;
9555 bool fIgnoreDtim;
9556 uint8_t fMaxLIModulatedDTIM;
9557
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009558 uint8_t fEnableFwHeartBeatMonitoring;
9559 uint8_t fEnableFwBeaconFiltering;
9560 bool fEnableFwRssiMonitoring;
9561 bool mcc_rts_cts_prot_enable;
9562 bool mcc_bcast_prob_resp_enable;
9563 uint8_t nDataInactivityTimeout;
9564
9565 /* WMM QoS Configuration */
Srinivas Girigowdaea32d6a2017-03-25 00:03:12 -07009566 enum hdd_wmm_user_mode WmmMode;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009567 bool b80211eIsEnabled;
9568 uint8_t UapsdMask; /* what ACs to setup U-APSD for at assoc */
9569 uint32_t InfraUapsdVoSrvIntv;
9570 uint32_t InfraUapsdVoSuspIntv;
9571 uint32_t InfraUapsdViSrvIntv;
9572 uint32_t InfraUapsdViSuspIntv;
9573 uint32_t InfraUapsdBeSrvIntv;
9574 uint32_t InfraUapsdBeSuspIntv;
9575 uint32_t InfraUapsdBkSrvIntv;
9576 uint32_t InfraUapsdBkSuspIntv;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009577 bool isFastRoamIniFeatureEnabled;
9578 bool MAWCEnabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009579#ifdef FEATURE_WLAN_ESE
9580 uint32_t InfraInactivityInterval;
9581 bool isEseIniFeatureEnabled;
9582#endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009583 bool isFastTransitionEnabled;
9584 uint8_t RoamRssiDiff;
9585 bool isWESModeEnabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009586 bool isOkcIniFeatureEnabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009587 bool isRoamOffloadScanEnabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009588 bool bImplicitQosEnabled;
9589
9590 /* default TSPEC parameters for AC_VO */
9591 sme_QosWmmDirType InfraDirAcVo;
9592 uint16_t InfraNomMsduSizeAcVo;
9593 uint32_t InfraMeanDataRateAcVo;
9594 uint32_t InfraMinPhyRateAcVo;
9595 uint16_t InfraSbaAcVo;
9596
9597 /* default TSPEC parameters for AC_VI */
9598 sme_QosWmmDirType InfraDirAcVi;
9599 uint16_t InfraNomMsduSizeAcVi;
9600 uint32_t InfraMeanDataRateAcVi;
9601 uint32_t InfraMinPhyRateAcVi;
9602 uint16_t InfraSbaAcVi;
9603
9604 /* default TSPEC parameters for AC_BE */
9605 sme_QosWmmDirType InfraDirAcBe;
9606 uint16_t InfraNomMsduSizeAcBe;
9607 uint32_t InfraMeanDataRateAcBe;
9608 uint32_t InfraMinPhyRateAcBe;
9609 uint16_t InfraSbaAcBe;
9610
9611 /* default TSPEC parameters for AC_BK */
9612 sme_QosWmmDirType InfraDirAcBk;
9613 uint16_t InfraNomMsduSizeAcBk;
9614 uint32_t InfraMeanDataRateAcBk;
9615 uint32_t InfraMinPhyRateAcBk;
9616 uint16_t InfraSbaAcBk;
9617
9618 uint32_t DelayedTriggerFrmInt;
9619
9620 /* Wowl pattern */
9621 char wowlPattern[1024];
9622
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -07009623 /* Control for Replay counetr. value 1 means
9624 * single replay counter for all TID
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08009625 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009626 bool bSingleTidRc;
9627 uint8_t mcastBcastFilterSetting;
9628 bool fhostArpOffload;
9629 bool ssdp;
Houston Hoffmanc7c69f02016-03-24 22:45:52 -07009630
9631#ifdef FEATURE_RUNTIME_PM
9632 bool runtime_pm;
9633 uint32_t runtime_pm_delay;
9634#endif
9635
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009636#ifdef FEATURE_WLAN_RA_FILTERING
9637 bool IsRArateLimitEnabled;
9638 uint16_t RArateLimitInterval;
9639#endif
9640#ifdef FEATURE_WLAN_SCAN_PNO
9641 bool PnoOffload;
9642#endif
9643 bool fhostNSOffload;
9644 bool burstSizeDefinition;
9645 uint8_t tsInfoAckPolicy;
9646
9647 /* RF Settling Time Clock */
9648 uint32_t rfSettlingTimeUs;
9649
9650 uint8_t dynamicPsPollValue;
9651 bool AddTSWhenACMIsOff;
9652 bool fValidateScanList;
9653
9654 uint32_t infraStaKeepAlivePeriod;
9655 uint8_t nNullDataApRespTimeout;
9656 uint8_t nBandCapability;
9657
9658 uint32_t apDataAvailPollPeriodInMs;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009659 bool teleBcnWakeupEn;
9660
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05309661/* QDF Trace Control*/
9662 uint16_t qdf_trace_enable_wdi;
9663 uint16_t qdf_trace_enable_hdd;
9664 uint16_t qdf_trace_enable_sme;
9665 uint16_t qdf_trace_enable_pe;
9666 uint16_t qdf_trace_enable_pmc;
9667 uint16_t qdf_trace_enable_wma;
9668 uint16_t qdf_trace_enable_sys;
9669 uint16_t qdf_trace_enable_qdf;
9670 uint16_t qdf_trace_enable_sap;
9671 uint16_t qdf_trace_enable_hdd_sap;
9672 uint16_t qdf_trace_enable_bmi;
9673 uint16_t qdf_trace_enable_cfg;
Bhargav Shah480a90f2015-06-24 15:10:14 +05309674 uint16_t cfd_trace_enable_txrx;
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05309675 uint16_t qdf_trace_enable_htc;
9676 uint16_t qdf_trace_enable_hif;
9677 uint16_t qdf_trace_enable_hdd_sap_data;
9678 uint16_t qdf_trace_enable_hdd_data;
9679 uint16_t qdf_trace_enable_epping;
9680 uint16_t qdf_trace_enable_qdf_devices;
Naveen Rawat7df31862017-03-01 17:09:30 -08009681 uint16_t qdf_trace_enable_wifi_pos;
Naveen Rawatf2b0dbd2017-03-27 10:00:15 -07009682 uint16_t qdf_trace_enable_nan;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009683
9684 uint16_t nTeleBcnTransListenInterval;
9685 uint16_t nTeleBcnMaxListenInterval;
9686 uint16_t nTeleBcnTransLiNumIdleBeacons;
9687 uint16_t nTeleBcnMaxLiNumIdleBeacons;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009688 uint8_t enableBypass11d;
9689 uint8_t enableDFSChnlScan;
9690 uint8_t enable_dfs_pno_chnl_scan;
9691 uint8_t enableDynamicDTIM;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009692 uint8_t ShortGI40MhzEnable;
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -07009693 enum hdd_link_speed_rpt_type reportMaxLinkSpeed;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009694 int32_t linkSpeedRssiHigh;
9695 int32_t linkSpeedRssiMid;
9696 int32_t linkSpeedRssiLow;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009697 bool nRoamPrefer5GHz;
9698 bool nRoamIntraBand;
9699 uint8_t nProbes;
9700 uint16_t nRoamScanHomeAwayTime;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009701 uint8_t enableMCC;
9702 uint8_t allowMCCGODiffBI;
9703 bool isP2pDeviceAddrAdministrated;
9704 uint8_t thermalMitigationEnable;
9705 uint32_t throttlePeriod;
Poddar, Siddarth83905022016-04-16 17:56:08 -07009706 uint32_t throttle_dutycycle_level0;
9707 uint32_t throttle_dutycycle_level1;
9708 uint32_t throttle_dutycycle_level2;
9709 uint32_t throttle_dutycycle_level3;
Poddar, Siddarthb61cf642016-04-28 16:02:39 +05309710#if defined(CONFIG_HL_SUPPORT) && defined(QCA_BAD_PEER_TX_FLOW_CL)
9711 bool bad_peer_txctl_enable;
9712 uint32_t bad_peer_txctl_prd;
9713 uint32_t bad_peer_txctl_txq_lmt;
9714 uint32_t bad_peer_tgt_backoff;
9715 uint32_t bad_peer_tgt_report_prd;
9716 uint32_t bad_peer_cond_ieee80211b;
9717 uint32_t bad_peer_delta_ieee80211b;
9718 uint32_t bad_peer_pct_ieee80211b;
9719 uint32_t bad_peer_tput_ieee80211b;
9720 uint32_t bad_peer_limit_ieee80211b;
9721 uint32_t bad_peer_cond_ieee80211ag;
9722 uint32_t bad_peer_delta_ieee80211ag;
9723 uint32_t bad_peer_pct_ieee80211ag;
9724 uint32_t bad_peer_tput_ieee80211ag;
9725 uint32_t bad_peer_limit_ieee80211ag;
9726 uint32_t bad_peer_cond_ieee80211n;
9727 uint32_t bad_peer_delta_ieee80211n;
9728 uint32_t bad_peer_pct_ieee80211n;
9729 uint32_t bad_peer_tput_ieee80211n;
9730 uint32_t bad_peer_limit_ieee80211n;
9731 uint32_t bad_peer_cond_ieee80211ac;
9732 uint32_t bad_peer_delta_ieee80211ac;
9733 uint32_t bad_peer_pct_ieee80211ac;
9734 uint32_t bad_peer_tput_ieee80211ac;
9735 uint32_t bad_peer_limit_ieee80211ac;
9736#endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009737 uint8_t vhtChannelWidth;
9738 uint8_t vhtRxMCS;
9739 uint8_t vhtTxMCS;
9740 bool enableTxBF;
Kiran Kumar Lokere5302ab62015-12-16 16:03:16 -08009741 bool enable_txbf_sap_mode;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009742 uint8_t txBFCsnValue;
9743 bool enable_su_tx_bformer;
9744 uint8_t vhtRxMCS2x2;
9745 uint8_t vhtTxMCS2x2;
9746 bool enable2x2;
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07009747 uint32_t vdev_type_nss_2g;
9748 uint32_t vdev_type_nss_5g;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009749 bool txchainmask1x1;
9750 bool rxchainmask1x1;
9751 bool enableMuBformee;
9752 bool enableVhtpAid;
9753 bool enableVhtGid;
9754 bool enableTxBFin20MHz;
9755 uint8_t enableAmpduPs;
9756 uint8_t enableHtSmps;
9757 uint8_t htSmps;
9758 uint8_t enableModulatedDTIM;
9759 uint32_t fEnableMCAddrList;
9760 bool enableFirstScan2GOnly;
9761 bool skipDfsChnlInP2pSearch;
9762 bool ignoreDynamicDtimInP2pMode;
9763 bool enableRxSTBC;
9764 bool enableTxSTBC;
9765 bool enableRxLDPC;
9766 bool enable5gEBT;
9767#ifdef FEATURE_WLAN_TDLS
9768 bool fEnableTDLSSupport;
9769 bool fEnableTDLSImplicitTrigger;
9770 uint32_t fTDLSTxStatsPeriod;
9771 uint32_t fTDLSTxPacketThreshold;
9772 uint32_t fTDLSMaxDiscoveryAttempt;
Kabilan Kannanca670be2015-11-23 01:56:12 -08009773 uint32_t tdls_idle_timeout;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009774 uint32_t fTDLSIdlePacketThreshold;
9775 int32_t fTDLSRSSITriggerThreshold;
9776 int32_t fTDLSRSSITeardownThreshold;
9777 int32_t fTDLSRSSIDelta;
9778 uint32_t fTDLSUapsdMask; /* what ACs to setup U-APSD for TDLS */
9779 uint32_t fEnableTDLSBufferSta;
9780 uint32_t fEnableTDLSSleepSta;
9781 uint32_t fTDLSPuapsdInactivityTimer;
9782 uint32_t fTDLSRxFrameThreshold;
9783 uint32_t fTDLSPuapsdPTIWindow;
9784 uint32_t fTDLSPuapsdPTRTimeout;
9785 bool fTDLSExternalControl;
9786 uint32_t fEnableTDLSOffChannel;
9787 uint32_t fEnableTDLSWmmMode;
9788 uint8_t fTDLSPrefOffChanNum;
9789 uint8_t fTDLSPrefOffChanBandwidth;
9790 uint8_t enable_tdls_scan;
Kabilan Kannan421714b2015-11-23 04:44:59 -08009791 uint32_t tdls_peer_kickout_threshold;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009792#endif
9793#ifdef WLAN_SOFTAP_VSTA_FEATURE
9794 bool fEnableVSTASupport;
9795#endif
9796 uint32_t enableLpwrImgTransition;
9797 uint8_t scanAgingTimeout;
9798 bool enableTxLdpc;
9799 uint8_t disableLDPCWithTxbfAP;
9800 uint8_t enableMCCAdaptiveScheduler;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009801 bool sapAllowAllChannel;
9802 uint8_t retryLimitZero;
9803 uint8_t retryLimitOne;
9804 uint8_t retryLimitTwo;
9805 bool enableSSR;
9806 uint32_t cfgMaxMediumTime;
9807 bool enableVhtFor24GHzBand;
Kapil Gupta4b2efbb2016-10-03 13:07:20 +05309808 bool enable_sap_vendor_vht;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009809 bool bFastRoamInConIniFeatureEnabled;
9810 bool fEnableAdaptRxDrain;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009811 bool enableIbssHeartBeatOffload;
9812 uint32_t antennaDiversity;
9813 bool fEnableSNRMonitoring;
9814 /*PNO related parameters */
9815#ifdef FEATURE_WLAN_SCAN_PNO
9816 bool configPNOScanSupport;
9817 uint32_t configPNOScanTimerRepeatValue;
Srinivas Girigowdabdc98162015-09-17 11:06:07 -07009818 uint32_t pno_slow_scan_multiplier;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009819#endif
9820 uint8_t isAmsduSupportInAMPDU;
9821 uint8_t nSelect5GHzMargin;
9822 uint8_t isCoalesingInIBSSAllowed;
9823
9824 /* IBSS Power Save related parameters */
9825 uint32_t ibssATIMWinSize;
9826 uint8_t isIbssPowerSaveAllowed;
9827 uint8_t isIbssPowerCollapseAllowed;
9828 uint8_t isIbssAwakeOnTxRx;
9829 uint32_t ibssInactivityCount;
9830 uint32_t ibssTxSpEndInactivityTime;
9831 uint32_t ibssPsWarmupTime;
9832 uint32_t ibssPs1RxChainInAtimEnable;
9833
9834 bool enable_ip_tcp_udp_checksum_offload;
Ashish Kumar Dhanotiyabb22e0d2017-04-03 10:44:14 +05309835 uint8_t enablePowersaveOffload;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009836 bool enablefwprint;
Yuanyuan Liu7a97b8f2017-01-27 10:42:52 -08009837 uint8_t enable_fw_log;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009838 uint8_t fVhtAmpduLenExponent;
9839 uint32_t vhtMpduLen;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009840 uint32_t IpaConfig;
9841 bool IpaClkScalingEnable;
9842 uint32_t IpaDescSize;
9843 uint32_t IpaHighBandwidthMbps;
9844 uint32_t IpaMediumBandwidthMbps;
9845 uint32_t IpaLowBandwidthMbps;
9846#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
9847 uint32_t WlanMccToSccSwitchMode;
9848#endif
9849#ifdef FEATURE_WLAN_AUTO_SHUTDOWN
9850 uint32_t WlanAutoShutdown;
9851#endif
9852 uint8_t maxWoWFilters;
9853 uint8_t wowEnable;
9854 uint8_t maxNumberOfPeers;
9855 uint8_t disableDFSChSwitch;
9856 uint8_t enableDFSMasterCap;
9857 uint16_t thermalTempMinLevel0;
9858 uint16_t thermalTempMaxLevel0;
9859 uint16_t thermalTempMinLevel1;
9860 uint16_t thermalTempMaxLevel1;
9861 uint16_t thermalTempMinLevel2;
9862 uint16_t thermalTempMaxLevel2;
9863 uint16_t thermalTempMinLevel3;
9864 uint16_t thermalTempMaxLevel3;
9865 uint32_t TxPower2g;
9866 uint32_t TxPower5g;
9867 uint32_t gEnableDebugLog;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009868 bool fDfsPhyerrFilterOffload;
9869 uint8_t gSapPreferredChanLocation;
9870 uint8_t gDisableDfsJapanW53;
9871 bool gEnableOverLapCh;
9872 bool fRegChangeDefCountry;
Hong Shi417824f2017-01-12 02:31:14 +08009873 uint16_t max_ht_mcs_txdata;
Hong Shia9ef8712017-02-19 21:54:02 +08009874 bool disable_abg_rate_txdata;
Hong Shib90718f2017-02-20 00:57:22 +08009875 uint8_t rate_for_tx_mgmt;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009876#ifdef QCA_LL_LEGACY_TX_FLOW_CONTROL
9877 uint32_t TxFlowLowWaterMark;
9878 uint32_t TxFlowHighWaterMarkOffset;
9879 uint32_t TxFlowMaxQueueDepth;
9880 uint32_t TxLbwFlowLowWaterMark;
9881 uint32_t TxLbwFlowHighWaterMarkOffset;
9882 uint32_t TxLbwFlowMaxQueueDepth;
9883 uint32_t TxHbwFlowLowWaterMark;
9884 uint32_t TxHbwFlowHighWaterMarkOffset;
9885 uint32_t TxHbwFlowMaxQueueDepth;
9886#endif /* QCA_LL_LEGACY_TX_FLOW_CONTROL */
9887#ifdef QCA_LL_TX_FLOW_CONTROL_V2
9888 uint32_t TxFlowStopQueueThreshold;
9889 uint32_t TxFlowStartQueueOffset;
9890#endif
9891 uint8_t apMaxOffloadPeers;
9892 uint8_t apMaxOffloadReorderBuffs;
9893 bool advertiseConcurrentOperation;
9894 bool enableMemDeepSleep;
9895
9896 uint32_t defaultRateIndex24Ghz;
9897#ifdef MEMORY_DEBUG
9898 bool IsMemoryDebugSupportEnabled;
9899#endif
9900
9901 uint8_t allowDFSChannelRoam;
9902
9903 bool debugP2pRemainOnChannel;
9904
9905 bool enablePacketLog;
9906#ifdef MSM_PLATFORM
9907 uint32_t busBandwidthHighThreshold;
9908 uint32_t busBandwidthMediumThreshold;
9909 uint32_t busBandwidthLowThreshold;
9910 uint32_t busBandwidthComputeInterval;
Ravi Joshie2331e82015-07-01 18:18:54 -07009911 uint32_t enable_tcp_delack;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009912 uint32_t tcpDelackThresholdHigh;
9913 uint32_t tcpDelackThresholdLow;
Mohit Khannae71e2262015-11-10 09:37:24 -08009914 uint32_t tcp_tx_high_tput_thres;
Ravi Joshib89e7f72016-09-07 13:43:15 -07009915 uint32_t tcp_delack_timer_count;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009916#endif /* MSM_PLATFORM */
9917
9918 /* FW debug log parameters */
9919 uint32_t enableFwLogType;
9920 uint32_t enableFwLogLevel;
9921 uint8_t enableFwModuleLogLevel[FW_MODULE_LOG_LEVEL_STRING_LENGTH];
9922
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +05309923 /* RTS profile parameter */
9924 uint32_t rts_profile;
9925
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009926#ifdef WLAN_FEATURE_11W
9927 uint32_t pmfSaQueryMaxRetries;
9928 uint32_t pmfSaQueryRetryInterval;
9929#endif
9930
9931 uint8_t gMaxConcurrentActiveSessions;
9932
9933 uint8_t ignoreCAC;
9934 bool IsSapDfsChSifsBurstEnabled;
9935
9936#ifdef FEATURE_GREEN_AP
9937 bool enableGreenAP;
Ryan Hsucb118cf2015-11-09 16:03:53 -08009938 bool enable_egap;
9939 uint32_t egap_feature_flag;
9940 uint32_t egap_inact_time;
9941 uint32_t egap_wait_time;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009942#endif
9943 uint8_t force_sap_acs;
9944 uint8_t force_sap_acs_st_ch;
9945 uint8_t force_sap_acs_end_ch;
9946
9947 int32_t dfsRadarPriMultiplier;
9948 uint8_t reorderOffloadSupport;
9949
9950#ifdef WLAN_FEATURE_ROAM_OFFLOAD
9951 bool isRoamOffloadEnabled;
9952#endif
9953
9954 uint32_t IpaUcTxBufCount;
9955 uint32_t IpaUcTxBufSize;
9956 uint32_t IpaUcRxIndRingCount;
9957 uint32_t IpaUcTxPartitionBase;
9958#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
9959 /* WLAN Logging */
9960 uint32_t wlanLoggingEnable;
Srinivas Girigowda8187e792017-03-03 11:50:59 -08009961 uint32_t wlanLoggingToConsole;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009962 uint32_t wlanLoggingNumBuf;
9963#endif /* WLAN_LOGGING_SOCK_SVC_ENABLE */
9964
Dustin Brown0a4cfeb2017-03-10 15:22:28 -08009965 uint8_t enableSifsBurst;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009966
9967#ifdef WLAN_FEATURE_LPSS
Komal Seelamc11bb222016-01-27 18:57:10 +05309968 bool enable_lpass_support;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08009969#endif
9970#ifdef WLAN_FEATURE_NAN
9971 bool enable_nan_support;
9972#endif
9973 bool enableSelfRecovery;
9974#ifdef FEATURE_WLAN_FORCE_SAP_SCC
9975 uint8_t SapSccChanAvoidance;
9976#endif /* FEATURE_WLAN_FORCE_SAP_SCC */
9977
9978 bool enableSapSuspend;
9979
9980#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
9981 uint8_t extWowGotoSuspend;
9982 uint8_t extWowApp1WakeupPinNumber;
9983 uint8_t extWowApp2WakeupPinNumber;
9984 uint32_t extWowApp2KAInitPingInterval;
9985 uint32_t extWowApp2KAMinPingInterval;
9986 uint32_t extWowApp2KAMaxPingInterval;
9987 uint32_t extWowApp2KAIncPingInterval;
9988 uint16_t extWowApp2TcpSrcPort;
9989 uint16_t extWowApp2TcpDstPort;
9990 uint32_t extWowApp2TcpTxTimeout;
9991 uint32_t extWowApp2TcpRxTimeout;
9992#endif
9993 bool gEnableDeauthToDisassocMap;
9994#ifdef DHCP_SERVER_OFFLOAD
9995 bool enableDHCPServerOffload;
9996 uint32_t dhcpMaxNumClients;
9997 uint8_t dhcpServerIP[IPADDR_STRING_LENGTH];
9998#endif /* DHCP_SERVER_OFFLOAD */
9999 bool enable_mac_spoofing;
10000 uint8_t conc_custom_rule1;
10001 uint8_t conc_custom_rule2;
10002 uint8_t is_sta_connection_in_5gz_enabled;
10003 uint16_t p2p_listen_defer_interval;
10004 uint32_t sta_miracast_mcc_rest_time_val;
10005 bool is_ramdump_enabled;
10006#ifdef FEATURE_AP_MCC_CH_AVOIDANCE
10007 bool sap_channel_avoidance;
10008#endif /* FEATURE_AP_MCC_CH_AVOIDANCE */
10009 uint8_t sap_p2p_11ac_override;
10010 uint8_t sap_dot11mc;
10011 uint8_t prefer_non_dfs_on_radar;
10012 bool ignore_peer_erp_info;
10013 uint8_t multicast_host_fw_msgs;
10014 uint8_t conc_system_pref;
10015 bool sendDeauthBeforeCon;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010016 bool tso_enable;
10017 bool lro_enable;
Manjunathappa Prakashfff753c2016-09-01 19:34:56 -070010018 bool flow_steering_enable;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010019 bool active_mode_offload;
Rajeev Kumardd3bc602016-08-16 14:21:05 -070010020 bool bpf_packet_filter_enable;
Nitesh Shah61c10d92016-10-19 19:29:15 +053010021 /* parameter for defer timer for enabling TDLS on p2p listen */
10022 uint16_t tdls_enable_defer_time;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010023 uint32_t fine_time_meas_cap;
10024 uint8_t max_scan_count;
10025#ifdef WLAN_FEATURE_FASTPATH
10026 bool fastpath_enable;
10027#endif
10028 uint8_t dot11p_mode;
Nirav Shahbd36b062016-07-18 11:12:59 +053010029 uint8_t rx_mode;
10030 uint8_t cpu_map_list[CFG_RPS_RX_QUEUE_CPU_MAP_LIST_LEN];
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010031#ifdef FEATURE_WLAN_EXTSCAN
Manjeet Singh0f2ce5c2016-09-01 12:08:57 +053010032 bool extscan_enabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010033 uint32_t extscan_passive_max_chn_time;
10034 uint32_t extscan_passive_min_chn_time;
10035 uint32_t extscan_active_max_chn_time;
10036 uint32_t extscan_active_min_chn_time;
10037#endif
10038 bool ce_classify_enabled;
10039 uint32_t dual_mac_feature_disable;
10040 bool tx_chain_mask_cck;
10041 uint8_t tx_chain_mask_1ss;
Jeff Johnsona89e25d2017-02-24 12:25:07 -080010042 bool smart_chainmask_enabled;
10043 bool alternative_chainmask_enabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010044 uint16_t self_gen_frm_pwr;
Varun Reddy Yeturub43fda12015-09-10 18:16:21 -070010045#ifdef FEATURE_WLAN_SCAN_PNO
10046 bool pno_channel_prediction;
10047 uint8_t top_k_num_of_channels;
10048 uint8_t stationary_thresh;
10049 uint32_t channel_prediction_full_scan;
10050#endif
Varun Reddy Yeturu05186292015-09-28 17:12:33 -070010051 bool early_stop_scan_enable;
10052 int8_t early_stop_scan_min_threshold;
10053 int8_t early_stop_scan_max_threshold;
Varun Reddy Yeturu044bda22015-11-21 22:03:40 -080010054 int8_t first_scan_bucket_threshold;
Krishna Kumaar Natarajan22b59a72015-11-23 18:54:58 -080010055 uint8_t ht_mpdu_density;
Ravi Joshi742495d2015-11-09 18:56:53 -080010056#ifdef FEATURE_LFR_SUBNET_DETECTION
10057 bool enable_lfr_subnet_detection;
10058#endif
Sandeep Puligilla93a29ec2016-02-12 16:10:56 -080010059 uint16_t obss_active_dwelltime;
10060 uint16_t obss_passive_dwelltime;
10061 uint16_t obss_width_trigger_interval;
Deepak Dhamdhere68929ec2015-08-05 15:16:35 -070010062 uint8_t inform_bss_rssi_raw;
Jeff Johnson89c66ff2016-04-22 15:21:37 -070010063#ifdef WLAN_FEATURE_TSF
Manikandan Mohan976e7562016-03-15 16:33:31 -070010064 uint32_t tsf_gpio_pin;
Jeff Johnson89c66ff2016-04-22 15:21:37 -070010065#endif
Gupta, Kapilc68ad462016-02-01 19:17:23 +053010066 uint32_t roam_dense_traffic_thresh;
10067 uint32_t roam_dense_rssi_thresh_offset;
Abhishek Singh165bc602016-03-21 12:43:00 +053010068 bool ignore_peer_ht_opmode;
Gupta, Kapilc68ad462016-02-01 19:17:23 +053010069 uint32_t roam_dense_min_aps;
Abhishek Singh10ecf582016-05-04 17:48:59 +053010070 bool enable_edca_params;
10071 uint32_t edca_vo_cwmin;
10072 uint32_t edca_vi_cwmin;
10073 uint32_t edca_bk_cwmin;
10074 uint32_t edca_be_cwmin;
10075 uint32_t edca_vo_cwmax;
10076 uint32_t edca_vi_cwmax;
10077 uint32_t edca_bk_cwmax;
10078 uint32_t edca_be_cwmax;
10079 uint32_t edca_vo_aifs;
10080 uint32_t edca_vi_aifs;
10081 uint32_t edca_bk_aifs;
10082 uint32_t edca_be_aifs;
gbian62edd7e2017-03-07 13:12:13 +080010083
10084 /* Tuning TX sched parameters for VO (skip credit limit credit disc) */
10085 uint8_t tx_sched_wrr_vo[TX_SCHED_WRR_PARAM_STRING_LENGTH];
10086 /* Tuning TX sched parameters for VI (skip credit limit credit disc) */
10087 uint8_t tx_sched_wrr_vi[TX_SCHED_WRR_PARAM_STRING_LENGTH];
10088 /* Tuning TX sched parameters for BE (skip credit limit credit disc) */
10089 uint8_t tx_sched_wrr_be[TX_SCHED_WRR_PARAM_STRING_LENGTH];
10090 /* Tuning TX sched parameters for BK (skip credit limit credit disc) */
10091 uint8_t tx_sched_wrr_bk[TX_SCHED_WRR_PARAM_STRING_LENGTH];
10092
Abhishek Singh5ea86532016-04-27 14:10:53 +053010093 bool enable_fatal_event;
Arun Khandavalli2476ef52016-04-26 20:19:43 +053010094 bool bpf_enabled;
Nirav Shahcc1f1ae2016-04-26 11:41:29 +053010095 bool enable_dp_trace;
Gupta, Kapil96c7f2f2016-04-25 19:13:41 +053010096 bool adaptive_dwell_mode_enabled;
10097 enum wmi_dwelltime_adaptive_mode scan_adaptive_dwell_mode;
10098 enum wmi_dwelltime_adaptive_mode roamscan_adaptive_dwell_mode;
10099 enum wmi_dwelltime_adaptive_mode extscan_adaptive_dwell_mode;
10100 enum wmi_dwelltime_adaptive_mode pnoscan_adaptive_dwell_mode;
10101 enum wmi_dwelltime_adaptive_mode global_adapt_dwelltime_mode;
10102 uint8_t adapt_dwell_lpf_weight;
10103 uint8_t adapt_dwell_passive_mon_intval;
10104 uint8_t adapt_dwell_wifi_act_threshold;
Kapil Gupta8878ad92017-02-13 11:56:04 +053010105 bool vendor_acs_support;
10106 bool acs_support_for_dfs_ltecoex;
Kapil Gupta0ed58dc2016-04-22 15:35:26 +053010107 bool bug_report_for_no_scan_results;
Mukul Sharmaf7d62e12016-09-03 15:16:22 +053010108 bool bug_on_reinit_failure;
Deepak Dhamdhere3385d752016-05-25 20:36:47 -070010109#ifdef WLAN_FEATURE_NAN_DATAPATH
10110 bool enable_nan_datapath;
10111 uint8_t nan_datapath_ndi_channel;
10112#endif
Arun Khandavallifae92942016-08-01 13:31:08 +053010113 uint32_t iface_change_wait_time;
Rajeev Kumar Sirasanagandlaaf474742016-09-06 17:54:50 +053010114 /* parameter to control GTX */
10115 uint32_t tgt_gtx_usr_cfg;
Naveen Rawat64e477e2016-05-20 10:34:56 -070010116 enum cfg_sub_20_channel_width enable_sub_20_channel_width;
Amar Singhal18517882016-08-08 12:26:20 -070010117 bool indoor_channel_support;
Rajeev Kumar Sirasanagandlab79b5462016-09-06 18:33:17 +053010118 /* parameter to force sap into 11n */
10119 bool sap_force_11n_for_11ac;
Yingying Tangb4832f72016-10-20 13:44:55 +080010120 uint16_t sap_tx_leakage_threshold;
Ravi Joshibb8d4512016-08-22 10:14:52 -070010121 bool multicast_replay_filter;
Manjeet Singhe7ecb7c2016-09-03 12:34:53 +053010122 /* parameter for indicating sifs burst duration to fw */
10123 uint8_t sifs_burst_duration;
Selvaraj, Sridharebda0f22016-08-29 16:05:23 +053010124 bool goptimize_chan_avoid_event;
Agrawal Ashishb2d1a452016-05-05 12:23:58 +053010125 bool enable_go_cts2self_for_sta;
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +053010126 uint32_t tx_aggregation_size;
10127 uint32_t rx_aggregation_size;
Kiran Kumar Lokere1aa9c9a2016-10-05 18:50:59 -070010128 bool sta_prefer_80MHz_over_160MHz;
Agrawal, Ashish4e5fa1c2016-09-21 19:03:43 +053010129 uint8_t sap_max_inactivity_override;
Sandeep Puligillaafa52892016-10-26 19:03:16 -070010130 bool fw_timeout_crash;
Dustin Browncd756942016-11-23 12:25:33 -080010131 uint32_t rx_wakelock_timeout;
Anurag Chouhan7c01cc42016-12-16 21:33:43 +053010132 uint32_t max_sched_scan_plan_interval;
10133 uint32_t max_sched_scan_plan_iterations;
Yingying Tang95409972016-10-20 15:16:15 +080010134#ifdef WLAN_FEATURE_WOW_PULSE
10135 bool wow_pulse_support;
10136 uint8_t wow_pulse_pin;
10137 uint16_t wow_pulse_interval_high;
10138 uint16_t wow_pulse_interval_low;
10139#endif
Jeff Johnson441e1f72017-02-07 08:50:49 -080010140 enum hdd_wext_control standard_wext_control;
10141 enum hdd_wext_control private_wext_control;
Arun Khandavallicc544b32017-01-30 19:52:16 +053010142 bool sap_internal_restart;
Kapil Gupta6e6c26b2017-01-20 18:59:43 +053010143 uint8_t is_per_roam_enabled;
Kapil Gupta5cda2252016-12-29 18:44:26 +053010144 uint32_t per_roam_high_rate_threshold;
10145 uint32_t per_roam_low_rate_threshold;
10146 uint32_t per_roam_th_percent;
10147 uint32_t per_roam_rest_time;
Kapil Gupta957827b2017-02-13 15:47:04 +053010148 uint32_t per_roam_mon_time;
Dustin Brown13995f02017-01-12 15:38:42 -080010149 enum active_bpf_mode active_bpf_mode;
Selvaraj, Sridhar4f684bb2017-01-19 15:59:23 +053010150 bool enable_bcast_probe_rsp;
Krishna Kumaar Natarajan90bb6f12017-03-03 21:05:52 -080010151#ifdef WLAN_FEATURE_11AX
10152 bool enable_ul_mimo;
10153 bool enable_ul_ofdma;
10154#endif
Dustin Brownab1364a2017-03-27 16:59:08 -070010155 enum l1ss_sleep_allowed l1ss_sleep_allowed;
Srinivas Girigowda70e169a2017-03-07 23:55:57 -080010156 uint32_t arp_ac_category;
Jeff Johnson12a744b2017-04-04 08:19:37 -070010157 bool ani_enabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010158};
10159
10160#define VAR_OFFSET(_Struct, _Var) (offsetof(_Struct, _Var))
10161#define VAR_SIZE(_Struct, _Var) (sizeof(((_Struct *)0)->_Var))
10162
10163#define VAR_FLAGS_NONE (0)
10164
10165/* bit 0 is Required or Optional */
10166#define VAR_FLAGS_REQUIRED (1 << 0)
10167#define VAR_FLAGS_OPTIONAL (0 << 0)
10168
10169/*
10170 * bit 1 tells if range checking is required.
10171 * If less than MIN, assume MIN.
10172 * If greater than MAX, assume MAX.
10173 */
10174#define VAR_FLAGS_RANGE_CHECK (1 << 1)
10175#define VAR_FLAGS_RANGE_CHECK_ASSUME_MINMAX (VAR_FLAGS_RANGE_CHECK)
10176
10177/*
10178 * bit 2 is range checking that assumes the DEFAULT value
10179 * If less than MIN, assume DEFAULT,
10180 * If greater than MAX, assume DEFAULT.
10181 */
10182#define VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT (1 << 2)
10183
10184/*
10185 * Bit 3 indicates that the config item can be modified dynamicially
10186 * on a running system
10187 */
10188#define VAR_FLAGS_DYNAMIC_CFG (1 << 3)
10189
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010190enum wlan_parameter_type {
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010191 WLAN_PARAM_Integer,
10192 WLAN_PARAM_SignedInteger,
10193 WLAN_PARAM_HexInteger,
10194 WLAN_PARAM_String,
10195 WLAN_PARAM_MacAddr,
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010196};
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010197
10198#define REG_VARIABLE(_Name, _Type, _Struct, _VarName, \
10199 _Flags, _Default, _Min, _Max) \
10200 { \
10201 (_Name), \
10202 (_Type), \
10203 (_Flags), \
10204 VAR_OFFSET(_Struct, _VarName), \
10205 VAR_SIZE(_Struct, _VarName), \
10206 (_Default), \
10207 (_Min), \
10208 (_Max), \
10209 NULL, \
10210 0 \
10211 }
10212
10213#define REG_DYNAMIC_VARIABLE(_Name, _Type, _Struct, _VarName, \
10214 _Flags, _Default, _Min, _Max, \
10215 _CBFunc, _CBParam) \
10216 { \
10217 (_Name), \
10218 (_Type), \
10219 (VAR_FLAGS_DYNAMIC_CFG | (_Flags)), \
10220 VAR_OFFSET(_Struct, _VarName), \
10221 VAR_SIZE(_Struct, _VarName), \
10222 (_Default), \
10223 (_Min), \
10224 (_Max), \
10225 (_CBFunc), \
10226 (_CBParam) \
10227 }
10228
10229#define REG_VARIABLE_STRING(_Name, _Type, _Struct, _VarName, \
10230 _Flags, _Default) \
10231 { \
10232 (_Name), \
10233 (_Type), \
10234 (_Flags), \
10235 VAR_OFFSET(_Struct, _VarName), \
10236 VAR_SIZE(_Struct, _VarName), \
10237 (unsigned long)(_Default), \
10238 0, \
10239 0, \
10240 NULL, \
10241 0 \
10242 }
10243
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010244struct reg_table_entry {
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010245 char *RegName; /* variable name in the qcom_cfg.ini file */
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010246 enum wlan_parameter_type RegType; /* variable type in hdd_config struct */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010247 unsigned long Flags; /* Specify optional parms and if RangeCheck is performed */
10248 unsigned short VarOffset; /* offset to field from the base address of the structure */
10249 unsigned short VarSize; /* size (in bytes) of the field */
10250 unsigned long VarDefault; /* default value to use */
10251 unsigned long VarMin; /* minimum value, for range checking */
10252 unsigned long VarMax; /* maximum value, for range checking */
10253 /* Dynamic modification notifier */
10254 void (*pfnDynamicnotify)(hdd_context_t *pHddCtx,
10255 unsigned long notifyId);
10256 unsigned long notifyId; /* Dynamic modification identifier */
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010257};
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010258
10259/* Function declarations and documenation */
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010260QDF_STATUS hdd_parse_config_ini(hdd_context_t *pHddCtx);
10261QDF_STATUS hdd_update_mac_config(hdd_context_t *pHddCtx);
10262QDF_STATUS hdd_set_sme_config(hdd_context_t *pHddCtx);
Tushnim Bhattacharyyaba8ee932017-03-23 09:27:40 -070010263QDF_STATUS hdd_set_policy_mgr_user_cfg(hdd_context_t *pHddCtx);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010264QDF_STATUS hdd_set_sme_chan_list(hdd_context_t *hdd_ctx);
Krunal Sonidf0f8742016-09-26 14:56:31 -070010265bool hdd_update_config_cfg(hdd_context_t *pHddCtx);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010266QDF_STATUS hdd_cfg_get_global_config(hdd_context_t *pHddCtx, char *pBuf,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010267 int buflen);
10268
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010269eCsrPhyMode hdd_cfg_xlate_to_csr_phy_mode(enum hdd_dot11_mode dot11Mode);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010270QDF_STATUS hdd_execute_global_config_command(hdd_context_t *pHddCtx,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010271 char *command);
10272
10273bool hdd_is_okc_mode_enabled(hdd_context_t *pHddCtx);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010274QDF_STATUS hdd_set_idle_ps_config(hdd_context_t *pHddCtx, uint32_t val);
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010275
10276void hdd_update_tgt_cfg(void *context, void *param);
Edhar, Mahesh Kumar695468e2015-10-19 12:06:20 +053010277bool hdd_dfs_indicate_radar(void *context, void *param);
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010278
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010279QDF_STATUS hdd_string_to_u8_array(char *str, uint8_t *intArray, uint8_t *len,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010280 uint8_t intArrayMaxLen);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010281QDF_STATUS hdd_hex_string_to_u16_array(char *str, uint16_t *int_array,
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -080010282 uint8_t *len, uint8_t int_array_max_len);
10283
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010284void hdd_cfg_print(hdd_context_t *pHddCtx);
10285
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010286QDF_STATUS hdd_update_nss(hdd_context_t *hdd_ctx, uint8_t nss);
Varun Reddy Yeturub43fda12015-09-10 18:16:21 -070010287#ifdef FEATURE_WLAN_SCAN_PNO
10288void hdd_set_pno_channel_prediction_config(
10289 tpSmeConfigParams sme_config, hdd_context_t *hdd_ctx);
10290#else
10291static inline void hdd_set_pno_channel_prediction_config(
10292 tpSmeConfigParams sme_config, hdd_context_t *hdd_ctx)
10293{}
10294#endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010295
10296#endif