blob: b019a58b4a054d34c488492d6bd2dbd64eeaac27 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
Anurag Chouhan7c01cc42016-12-16 21:33:43 +05302 * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
28#if !defined(HDD_CONFIG_H__)
29#define HDD_CONFIG_H__
30
31/**
32 *
33 * DOC: wlan_hdd_config.h
34 *
35 * WLAN Adapter Configuration functions
36 */
37
38/* $HEADER$ */
39
40/* Include files */
41#include <wlan_hdd_includes.h>
42#include <wlan_hdd_wmm.h>
Anurag Chouhan6d760662016-02-20 16:05:43 +053043#include <qdf_types.h>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080044#include <csr_api.h>
45#include <sap_api.h>
Govind Singh5b486202016-06-09 18:29:42 +053046#include "osapi_linux.h"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080047#include <wmi_unified.h>
Dustin Brown1224e212017-05-12 14:02:12 -070048#include "wlan_pmo_hw_filter_public_struct.h"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080049
50#define FW_MODULE_LOG_LEVEL_STRING_LENGTH (255)
gbian62edd7e2017-03-07 13:12:13 +080051#define TX_SCHED_WRR_PARAM_STRING_LENGTH (50)
52#define TX_SCHED_WRR_PARAMS_NUM (5)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080053
Nirav Shahbd36b062016-07-18 11:12:59 +053054#define CFG_ENABLE_RX_THREAD (1 << 0)
55#define CFG_ENABLE_RPS (1 << 1)
56#define CFG_ENABLE_NAPI (1 << 2)
57
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080058#ifdef DHCP_SERVER_OFFLOAD
59#define IPADDR_NUM_ENTRIES (4)
60#define IPADDR_STRING_LENGTH (16)
61#endif
62
Nitesh Shah50a3de12017-04-03 19:37:19 +053063#define CFG_DBS_SCAN_CLIENTS_MAX (7)
64#define CFG_DBS_SCAN_PARAM_PER_CLIENT (3)
65#define CFG_DBS_SCAN_PARAM_LENGTH (42)
66
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080067/* Number of items that can be configured */
Srinivas Girigowdaba3091c2015-11-16 17:18:40 -080068#define MAX_CFG_INI_ITEMS 1024
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080069
70/* Defines for all of the things we read from the configuration (registry). */
71
Sen, Devendra9ca8c432017-02-23 15:10:26 +053072/*
73 * <ini>
74 * RTSThreshold - Will provide RTSThreshold
75 * @Min: 0
76 * @Max: 1048576
77 * @Default: 2347
78 *
79 * This ini is used to set default RTSThreshold
80 * If minimum value 0 is selectd then it will use always RTS
81 *
82 * Related: None
83 *
84 * Supported Feature: STA
85 *
86 * Usage: Internal/External
87 *
88 * </ini>
89 */
90
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080091#define CFG_RTS_THRESHOLD_NAME "RTSThreshold"
92#define CFG_RTS_THRESHOLD_MIN WNI_CFG_RTS_THRESHOLD_STAMIN /* min is 0, meaning always use RTS. */
93#define CFG_RTS_THRESHOLD_MAX WNI_CFG_RTS_THRESHOLD_STAMAX /* max is the max frame size */
94#define CFG_RTS_THRESHOLD_DEFAULT WNI_CFG_RTS_THRESHOLD_STADEF
95
Sen, Devendra9ca8c432017-02-23 15:10:26 +053096/*
97 * <ini>
98 * gFragmentationThreshold - It will set fragmentation threshold
99 * @Min: 256
100 * @Max: 8000
101 * @Default: 8000
102 *
103 * This ini is used to indicate default fragmentation threshold
104 *
105 * Related: None
106 *
107 * Supported Feature: STA
108 *
109 * Usage: Internal/External
110 *
111 * </ini>
112 */
113
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800114#define CFG_FRAG_THRESHOLD_NAME "gFragmentationThreshold"
115#define CFG_FRAG_THRESHOLD_MIN WNI_CFG_FRAGMENTATION_THRESHOLD_STAMIN
116#define CFG_FRAG_THRESHOLD_MAX WNI_CFG_FRAGMENTATION_THRESHOLD_STAMAX
117#define CFG_FRAG_THRESHOLD_DEFAULT WNI_CFG_FRAGMENTATION_THRESHOLD_STADEF
118
119#define CFG_OPERATING_CHANNEL_NAME "gOperatingChannel"
120#define CFG_OPERATING_CHANNEL_MIN (0)
121#define CFG_OPERATING_CHANNEL_MAX (14)
122#define CFG_OPERATING_CHANNEL_DEFAULT (1)
123
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530124/*
125 * <ini>
126 * gShortSlotTimeEnabled - It will set slot timing slot.
127 * @Min: 0
128 * @Max: 1
129 * @Default: 1
130 *
131 * This ini is used to set default timing slot.
132 *
133 * Related: None
134 *
135 * Supported Feature: STA
136 *
137 * Usage: Internal/External
138 *
139 * </ini>
140 */
141
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800142#define CFG_SHORT_SLOT_TIME_ENABLED_NAME "gShortSlotTimeEnabled"
143#define CFG_SHORT_SLOT_TIME_ENABLED_MIN WNI_CFG_SHORT_SLOT_TIME_STAMIN
144#define CFG_SHORT_SLOT_TIME_ENABLED_MAX WNI_CFG_SHORT_SLOT_TIME_STAMAX
145#define CFG_SHORT_SLOT_TIME_ENABLED_DEFAULT WNI_CFG_SHORT_SLOT_TIME_STADEF
146
147#define CFG_11D_SUPPORT_ENABLED_NAME "g11dSupportEnabled"
148#define CFG_11D_SUPPORT_ENABLED_MIN WNI_CFG_11D_ENABLED_STAMIN
149#define CFG_11D_SUPPORT_ENABLED_MAX WNI_CFG_11D_ENABLED_STAMAX
150#define CFG_11D_SUPPORT_ENABLED_DEFAULT WNI_CFG_11D_ENABLED_STADEF /* Default is ON */
151
152#define CFG_11H_SUPPORT_ENABLED_NAME "g11hSupportEnabled"
153#define CFG_11H_SUPPORT_ENABLED_MIN (0)
154#define CFG_11H_SUPPORT_ENABLED_MAX (1)
155#define CFG_11H_SUPPORT_ENABLED_DEFAULT (1) /* Default is ON */
156
157/* COUNTRY Code Priority */
158#define CFG_COUNTRY_CODE_PRIORITY_NAME "gCountryCodePriority"
159#define CFG_COUNTRY_CODE_PRIORITY_MIN (0)
160#define CFG_COUNTRY_CODE_PRIORITY_MAX (1)
161#define CFG_COUNTRY_CODE_PRIORITY_DEFAULT (0)
162
163#define CFG_HEARTBEAT_THRESH_24_NAME "gHeartbeat24"
164#define CFG_HEARTBEAT_THRESH_24_MIN WNI_CFG_HEART_BEAT_THRESHOLD_STAMIN
165#define CFG_HEARTBEAT_THRESH_24_MAX WNI_CFG_HEART_BEAT_THRESHOLD_STAMAX
166#define CFG_HEARTBEAT_THRESH_24_DEFAULT WNI_CFG_HEART_BEAT_THRESHOLD_STADEF
167
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530168/*
169 * <ini>
170 * gMaxRxAmpduFactor - Provide the maximum ampdu factor.
171 * @Min: 0
172 * @Max: 3
173 * @Default: 3
174 *
175 * This ini is used to set default maxampdu factor
176 *
177 * Related: None
178 *
179 * Supported Feature: STA
180 *
181 * Usage: Internal/External
182 *
183 * </ini>
184 */
185
186#define CFG_MAX_RX_AMPDU_FACTOR_NAME "gMaxRxAmpduFactor"
187#define CFG_MAX_RX_AMPDU_FACTOR_MIN WNI_CFG_MAX_RX_AMPDU_FACTOR_STAMIN
188#define CFG_MAX_RX_AMPDU_FACTOR_MAX WNI_CFG_MAX_RX_AMPDU_FACTOR_STAMAX
189#define CFG_MAX_RX_AMPDU_FACTOR_DEFAULT WNI_CFG_MAX_RX_AMPDU_FACTOR_STADEF
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800190
Krishna Kumaar Natarajan22b59a72015-11-23 18:54:58 -0800191/* Configuration option for HT MPDU density (Table 8-125 802.11-2012)
192 * 0 for no restriction
193 * 1 for 1/4 micro sec
194 * 2 for 1/2 micro sec
195 * 3 for 1 micro sec
196 * 4 for 2 micro sec
197 * 5 for 4 micro sec
198 * 6 for 8 micro sec
199 * 7 for 16 micro sec
200 */
201#define CFG_HT_MPDU_DENSITY_NAME "ght_mpdu_density"
202#define CFG_HT_MPDU_DENSITY_MIN WNI_CFG_MPDU_DENSITY_STAMIN
203#define CFG_HT_MPDU_DENSITY_MAX WNI_CFG_MPDU_DENSITY_STAMAX
204#define CFG_HT_MPDU_DENSITY_DEFAULT WNI_CFG_MPDU_DENSITY_STADEF
205
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530206/*
207 * <ini>
208 * gEnableAdaptRxDrain - It will enable adapt received drain.
209 * @Min: 0
210 * @Max: 1
211 * @Default: 1
212 *
213 * This ini is used to Configuration added to enable/disable CTS2SELF in
214 * Adaptive RX drain feature.
215 *
216 * Related: None
217 *
218 * Supported Feature: STA
219 *
220 * Usage: Internal/External
221 *
222 * </ini>
223 */
224
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800225#define CFG_ENABLE_ADAPT_RX_DRAIN_NAME "gEnableAdaptRxDrain"
226#define CFG_ENABLE_ADAPT_RX_DRAIN_MIN WNI_CFG_ENABLE_ADAPT_RX_DRAIN_STAMIN
227#define CFG_ENABLE_ADAPT_RX_DRAIN_MAX WNI_CFG_ENABLE_ADAPT_RX_DRAIN_STAMAX
228#define CFG_ENABLE_ADAPT_RX_DRAIN_DEFAULT WNI_CFG_ENABLE_ADAPT_RX_DRAIN_STADEF
229
230#define CFG_REG_CHANGE_DEF_COUNTRY_NAME "gRegulatoryChangeCountry"
231#define CFG_REG_CHANGE_DEF_COUNTRY_DEFAULT (0)
232#define CFG_REG_CHANGE_DEF_COUNTRY_MIN (0)
233#define CFG_REG_CHANGE_DEF_COUNTRY_MAX (1)
234
235#define CFG_ADVERTISE_CONCURRENT_OPERATION_NAME "gAdvertiseConcurrentOperation"
236#define CFG_ADVERTISE_CONCURRENT_OPERATION_DEFAULT (1)
237#define CFG_ADVERTISE_CONCURRENT_OPERATION_MIN (0)
238#define CFG_ADVERTISE_CONCURRENT_OPERATION_MAX (1)
239
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -0700240enum hdd_dot11_mode {
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800241 eHDD_DOT11_MODE_AUTO = 0, /* covers all things we support */
242 eHDD_DOT11_MODE_abg, /* 11a/b/g only, no HT, no proprietary */
243 eHDD_DOT11_MODE_11b,
244 eHDD_DOT11_MODE_11g,
245 eHDD_DOT11_MODE_11n,
246 eHDD_DOT11_MODE_11g_ONLY,
247 eHDD_DOT11_MODE_11n_ONLY,
248 eHDD_DOT11_MODE_11b_ONLY,
249 eHDD_DOT11_MODE_11ac_ONLY,
250 eHDD_DOT11_MODE_11ac,
251 eHDD_DOT11_MODE_11a,
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -0800252 eHDD_DOT11_MODE_11ax_ONLY,
253 eHDD_DOT11_MODE_11ax,
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -0700254};
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800255
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530256/*
257 * <ini>
258 * gChannelBondingMode24GHz - Configures Channel Bonding in 24 GHz
259 * @Min: 0
260 * @Max: 10
261 * @Default: 0
262 *
263 * This ini is used to set default channel bonding mode 24GHZ
264 *
265 * Related: None
266 *
267 * Supported Feature: STA
268 *
269 * Usage: Internal/External
270 *
271 * </ini>
272 */
273
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800274#define CFG_CHANNEL_BONDING_MODE_24GHZ_NAME "gChannelBondingMode24GHz"
275#define CFG_CHANNEL_BONDING_MODE_MIN WNI_CFG_CHANNEL_BONDING_MODE_STAMIN
276#define CFG_CHANNEL_BONDING_MODE_MAX WNI_CFG_CHANNEL_BONDING_MODE_STAMAX
277#define CFG_CHANNEL_BONDING_MODE_DEFAULT WNI_CFG_CHANNEL_BONDING_MODE_STADEF
278
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530279/*
280 * <ini>
281 * gChannelBondingMode5GHz - Configures Channel Bonding in 5 GHz
282 * @Min: 0
283 * @Max: 10
284 * @Default: 0
285 *
286 * This ini is used to set default channel bonding mode 5GHZ
287 *
288 * Related: None
289 *
290 * Supported Feature: STA
291 *
292 * Usage: Internal/External
293 *
294 * </ini>
295 */
296
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800297#define CFG_CHANNEL_BONDING_MODE_5GHZ_NAME "gChannelBondingMode5GHz"
298#define CFG_CHANNEL_BONDING_MODE_MIN WNI_CFG_CHANNEL_BONDING_MODE_STAMIN
299#define CFG_CHANNEL_BONDING_MODE_MAX WNI_CFG_CHANNEL_BONDING_MODE_STAMAX
300#define CFG_CHANNEL_BONDING_MODE_DEFAULT WNI_CFG_CHANNEL_BONDING_MODE_STADEF
301
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530302/*
303 * <ini>
304 * gFixedRate - It will provide fixed rate
305 * @Min: 0
306 * @Max: 44
307 * @Default: 0
308 *
309 * This ini is used to set default fixed rate
310 *
311 * Related: None
312 *
313 * Supported Feature: STA
314 *
315 * Usage: Internal/External
316 *
317 * </ini>
318 */
319
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800320#define CFG_FIXED_RATE_NAME "gFixedRate"
321#define CFG_FIXED_RATE_MIN WNI_CFG_FIXED_RATE_STAMIN
322#define CFG_FIXED_RATE_MAX WNI_CFG_FIXED_RATE_STAMAX
323#define CFG_FIXED_RATE_DEFAULT WNI_CFG_FIXED_RATE_STADEF
324
Sen, Devendra9ca8c432017-02-23 15:10:26 +0530325/*
326 * <ini>
327 * gShortGI20Mhz - Short Guard Interval for HT20
328 * @Min: 0
329 * @Max: 1
330 * @Default: 1
331 *
332 * This ini is used to set default short interval for HT20
333 *
334 * Related: None
335 *
336 * Supported Feature: STA
337 *
338 * Usage: Internal/External
339 *
340 * </ini>
341 */
342
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800343#define CFG_SHORT_GI_20MHZ_NAME "gShortGI20Mhz"
344#define CFG_SHORT_GI_20MHZ_MIN WNI_CFG_SHORT_GI_20MHZ_STAMIN
345#define CFG_SHORT_GI_20MHZ_MAX WNI_CFG_SHORT_GI_20MHZ_STAMAX
346#define CFG_SHORT_GI_20MHZ_DEFAULT WNI_CFG_SHORT_GI_20MHZ_STADEF
347
yeshwanth sriram guntukabdfe4352017-02-16 14:44:31 +0530348/*
349 * <ini>
350 * gScanResultAgeCount - Set scan result age count
351 * @Min: 1
352 * @Max: 100
353 * @Default: 1
354 *
355 * This ini parameter is the number of times a scan
356 * doesn't find it before it is removed from results.
357 *
358 * Related: None
359 *
360 * Supported Feature: Scan
361 *
362 * Usage: External
363 *
364 * </ini>
365 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800366#define CFG_SCAN_RESULT_AGE_COUNT_NAME "gScanResultAgeCount"
367#define CFG_SCAN_RESULT_AGE_COUNT_MIN (1)
368#define CFG_SCAN_RESULT_AGE_COUNT_MAX (100)
Jeff Johnsoncb331d92016-09-22 12:43:49 -0700369#define CFG_SCAN_RESULT_AGE_COUNT_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -0800370
yeshwanth sriram guntukabdfe4352017-02-16 14:44:31 +0530371/*
372 * <ini>
yeshwanth sriram guntukabdfe4352017-02-16 14:44:31 +0530373 * gNeighborScanTimerPeriod - Set neighbor scan timer period
374 * @Min: 3
375 * @Max: 300
376 * @Default: 200
377 *
378 * This ini is used to set the timer period in secs after
379 * which neighbor scan is trigerred.
380 *
381 * Related: None
382 *
383 * Supported Feature: LFR Scan
384 *
385 * Usage: External
386 *
387 * </ini>
388 */
389#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_NAME "gNeighborScanTimerPeriod"
390#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_MIN (3)
391#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_MAX (300)
392#define CFG_NEIGHBOR_SCAN_TIMER_PERIOD_DEFAULT (200)
393
394/*
395 * <ini>
396 * gOpportunisticThresholdDiff - Set oppurtunistic threshold diff
397 * @Min: 0
398 * @Max: 127
399 * @Default: 0
400 *
401 * This ini is used to set opportunistic threshold diff.
402 * This parameter is the RSSI diff above neighbor lookup
403 * threshold, when opportunistic scan should be triggered.
404 * MAX value is choosen so that this type of scan can be
405 * always enabled by user.
406 * MIN value will cause opportunistic scan to be triggered
407 * in neighbor lookup RSSI range.
408 *
409 * Related: None
410 *
411 * Supported Feature: LFR Scan
412 *
413 * Usage: External
414 *
415 * </ini>
416 */
417#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_NAME "gOpportunisticThresholdDiff"
418#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_MIN (0)
419#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_MAX (127)
420#define CFG_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF_DEFAULT (0)
421
422/*
423 * <ini>
424 * gNeighborScanChannelList - Set channels to be scanned
425 * by firmware for LFR scan
426 * @Default: ""
427 *
428 * This ini is used to set the channels to be scanned
429 * by firmware for LFR scan.
430 *
431 * Related: None
432 *
433 * Supported Feature: LFR Scan
434 *
435 * Usage: External
436 *
437 * </ini>
438 */
439#define CFG_NEIGHBOR_SCAN_CHAN_LIST_NAME "gNeighborScanChannelList"
440#define CFG_NEIGHBOR_SCAN_CHAN_LIST_DEFAULT ""
441
442/*
443 * <ini>
444 * gNeighborScanChannelMinTime - Set neighbor scan channel min time
445 * @Min: 10
446 * @Max: 40
447 * @Default: 20
448 *
449 * This ini is used to set the minimum time in secs spent on each
450 * channel in LFR scan inside firmware.
451 *
452 * Related: None
453 *
454 * Supported Feature: LFR Scan
455 *
456 * Usage: External
457 *
458 * </ini>
459 */
460#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_NAME "gNeighborScanChannelMinTime"
461#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_MIN (10)
462#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_MAX (40)
463#define CFG_NEIGHBOR_SCAN_MIN_CHAN_TIME_DEFAULT (20)
464
465/*
466 * <ini>
467 * gNeighborScanChannelMaxTime - Set neighbor scan channel max time
468 * @Min: 3
469 * @Max: 300
470 * @Default: 30
471 *
472 * This ini is used to set the maximum time in secs spent on each
473 * channel in LFR scan inside firmware.
474 *
475 * Related: None
476 *
477 * Supported Feature: LFR Scan
478 *
479 * Usage: External
480 *
481 * </ini>
482 */
483#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_NAME "gNeighborScanChannelMaxTime"
484#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_MIN (3)
485#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_MAX (300)
486#define CFG_NEIGHBOR_SCAN_MAX_CHAN_TIME_DEFAULT (30)
487
488/*
489 * <ini>
490 * gNeighborScanRefreshPeriod - Set neighbor scan refresh period
491 * @Min: 1000
492 * @Max: 60000
493 * @Default: 20000
494 *
495 * This ini is used by firmware to set scan refresh period
496 * in msecs for lfr scan.
497 *
498 * Related: None
499 *
500 * Supported Feature: LFR Scan
501 *
502 * Usage: External
503 *
504 * </ini>
505 */
506#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_NAME "gNeighborScanRefreshPeriod"
507#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_MIN (1000)
508#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_MAX (60000)
509#define CFG_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD_DEFAULT (20000)
510
511/*
512 * <ini>
513 * gEmptyScanRefreshPeriod - Set empty scan refresh period
514 * @Min: 0
515 * @Max: 60000
516 * @Default: 0
517 *
518 * This ini is used by firmware to set scan period in msecs
519 * following empty scan results.
520 *
521 * Related: None
522 *
523 * Supported Feature: LFR Scan
524 *
525 * Usage: External
526 *
527 * </ini>
528 */
529#define CFG_EMPTY_SCAN_REFRESH_PERIOD_NAME "gEmptyScanRefreshPeriod"
530#define CFG_EMPTY_SCAN_REFRESH_PERIOD_MIN (0)
531#define CFG_EMPTY_SCAN_REFRESH_PERIOD_MAX (60000)
532#define CFG_EMPTY_SCAN_REFRESH_PERIOD_DEFAULT (0)
533
534/*
535 * <ini>
536 * gEnableDFSChnlScan - Enable DFS channel scan
537 * @Min: 0
538 * @Max: 1
539 * @Default: 1
540 *
541 * This ini is used to enable or disable DFS channel
542 * scan
543 *
544 * Related: None
545 *
546 * Supported Feature: Scan
547 *
548 * Usage: External
549 *
550 * </ini>
551 */
552#define CFG_ENABLE_DFS_CHNL_SCAN_NAME "gEnableDFSChnlScan"
553#define CFG_ENABLE_DFS_CHNL_SCAN_MIN (0)
554#define CFG_ENABLE_DFS_CHNL_SCAN_MAX (1)
555#define CFG_ENABLE_DFS_CHNL_SCAN_DEFAULT (1)
556
557/*
558 * <ini>
559 * gEnableDFSPnoChnlScan - Enable DFS PNO channel scan
560 * @Min: 0
561 * @Max: 1
562 * @Default: 1
563 *
564 * This ini is used to enable or disable DFS channel
565 * for PNO scan
566 *
567 * Related: None
568 *
569 * Supported Feature: Scan
570 *
571 * Usage: External
572 *
573 * </ini>
574 */
575#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_NAME "gEnableDFSPnoChnlScan"
576#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_MIN (0)
577#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_MAX (1)
578#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_DEFAULT (1)
579
580/*
581 * <ini>
582 * gEnableFirstScan2GOnly - Enable first scan 2G only
583 * @Min: 0
584 * @Max: 1
585 * @Default: 0
586 *
587 * This ini is used to scan 2G channels only in first scan.
588 *
589 * Related: None
590 *
591 * Supported Feature: Scan
592 *
593 * Usage: External
594 *
595 * </ini>
596 */
597#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_NAME "gEnableFirstScan2GOnly"
598#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_MIN (0)
599#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_MAX (1)
600#define CFG_ENABLE_FIRST_SCAN_2G_ONLY_DEFAULT (0)
601
602/*
603 * <ini>
604 * gScanAgingTime - Set scan aging time
605 * @Min: 0
606 * @Max: 200
607 * @Default: 30
608 *
609 * This ini is used to set scan aging timeout value
610 * in secs. For example after 30 secs the bss results
611 * greater than 30secs age will be flushed.
612 *
613 * Related: None
614 *
615 * Supported Feature: Scan
616 *
617 * Usage: External
618 *
619 * </ini>
620 */
621#define CFG_SCAN_AGING_PARAM_NAME "gScanAgingTime"
622#define CFG_SCAN_AGING_PARAM_MIN (0)
623#define CFG_SCAN_AGING_PARAM_MAX (200)
624#define CFG_SCAN_AGING_PARAM_DEFAULT (30)
625
626#ifdef FEATURE_WLAN_SCAN_PNO
627/*
628 * <ini>
629 * gPNOScanSupport - Enable or Disable PNO scan
630 * @Min: 1
631 * @Max: 0
632 * @Default: 1
633 *
634 * This ini is used to Enable or Disable PNO scan
635 *
636 * Related: None
637 *
638 * Supported Feature: Scan
639 *
640 * Usage: External
641 *
642 * </ini>
643 */
644#define CFG_PNO_SCAN_SUPPORT "gPNOScanSupport"
645#define CFG_PNO_SCAN_SUPPORT_ENABLE (1)
646#define CFG_PNO_SCAN_SUPPORT_DISABLE (0)
647#define CFG_PNO_SCAN_SUPPORT_DEFAULT (1)
648
649/*
650 * <ini>
651 * gPNOScanTimerRepeatValue - Set PNO scan timer repeat value
652 * @Min: 30
653 * @Max: 0
654 * @Default: 0xffffffff
655 *
656 * This ini is used by firmware to set fast scan max cycles
657 * equal to gPNOScanTimerRepeatValue. Taking power consumption
658 * into account firmware after gPNOScanTimerRepeatValue times
659 * fast_scan_period switches to slow_scan_period.
660 *
661 * Related: None
662 *
663 * Supported Feature: Scan
664 *
665 * Usage: External
666 *
667 * </ini>
668 */
669#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE "gPNOScanTimerRepeatValue"
670#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE_DEFAULT (30)
671#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE_MIN (0)
672#define CFG_PNO_SCAN_TIMER_REPEAT_VALUE_MAX (0xffffffff)
673
674/*
675 * <ini>
676 * gPNOSlowScanMultiplier - Set PNO slow scan multiplier
677 * @Min: 6
678 * @Max: 0
679 * @Default: 30
680 *
681 * This ini is used by firmware to set slow scan period
682 * as gPNOSlowScanMultiplier times fast_scan_period.
683 *
684 * Related: None
685 *
686 * Supported Feature: Scan
687 *
688 * Usage: External
689 *
690 * </ini>
691 */
692#define CFG_PNO_SLOW_SCAN_MULTIPLIER "gPNOSlowScanMultiplier"
693#define CFG_PNO_SLOW_SCAN_MULTIPLIER_DEFAULT (6)
694#define CFG_PNO_SLOW_SCAN_MULTIPLIER_MIN (0)
695#define CFG_PNO_SLOW_SCAN_MULTIPLIER_MAX (30)
696#endif
697
698/*
699 * <ini>
700 * max_scan_count - Set maximum number of scans
701 * @Min: 1
702 * @Max: 8
703 * @Default: 4
704 *
705 * This ini is used to set the maximum number of
706 * scans that host can queue at firmware.
707 * Rome firmware support 8 scan queue size and 4
708 * are reserved for internal scan requests like
709 * roaming. So host can send 4 scan requests.
710 * In iHelium, there is no constraint in number of
711 * scan queue size at firmware but the current use
712 * cases needs support of maximum of 4 scan request
713 * from host.
714 *
715 * Related: None
716 *
717 * Supported Feature: Scan
718 *
719 * Usage: External
720 *
721 * </ini>
722 */
723#define CFG_MAX_SCAN_COUNT_NAME "max_scan_count"
724#define CFG_MAX_SCAN_COUNT_MIN (1)
725#define CFG_MAX_SCAN_COUNT_MAX (8)
726#define CFG_MAX_SCAN_COUNT_DEFAULT (4)
727
728/*
729 * <ini>
730 * gPassiveMaxChannelTime - Set max channel time for passive scan
731 * @Min: 0
732 * @Max: 10000
733 * @Default: 110
734 *
735 * This ini is used to set maximum channel time in secs spent in
736 * passive scan
737 *
738 * Related: None
739 *
740 * Supported Feature: Scan
741 *
742 * Usage: External
743 *
744 * </ini>
745 */
746#define CFG_PASSIVE_MAX_CHANNEL_TIME_NAME "gPassiveMaxChannelTime"
747#define CFG_PASSIVE_MAX_CHANNEL_TIME_MIN (0)
748#define CFG_PASSIVE_MAX_CHANNEL_TIME_MAX (10000)
749#define CFG_PASSIVE_MAX_CHANNEL_TIME_DEFAULT (110)
750
751/*
752 * <ini>
753 * gPassiveMinChannelTime - Set min channel time for passive scan
754 * @Min: 0
755 * @Max: 10000
756 * @Default: 60
757 *
758 * This ini is used to set minimum channel time in secs spent in
759 * passive scan
760 *
761 * Related: None
762 *
763 * Supported Feature: Scan
764 *
765 * Usage: External
766 *
767 * </ini>
768 */
769#define CFG_PASSIVE_MIN_CHANNEL_TIME_NAME "gPassiveMinChannelTime"
770#define CFG_PASSIVE_MIN_CHANNEL_TIME_MIN (0)
771#define CFG_PASSIVE_MIN_CHANNEL_TIME_MAX (10000)
772#define CFG_PASSIVE_MIN_CHANNEL_TIME_DEFAULT (60)
773
774/*
775 * <ini>
776 * gActiveMaxChannelTime - Set max channel time for active scan
777 * @Min: 0
778 * @Max: 10000
779 * @Default: 40
780 *
781 * This ini is used to set maximum channel time in secs spent in
782 * active scan
783 *
784 * Related: None
785 *
786 * Supported Feature: Scan
787 *
788 * Usage: External
789 *
790 * </ini>
791 */
792#define CFG_ACTIVE_MAX_CHANNEL_TIME_NAME "gActiveMaxChannelTime"
793#define CFG_ACTIVE_MAX_CHANNEL_TIME_MIN (0)
794#define CFG_ACTIVE_MAX_CHANNEL_TIME_MAX (10000)
795#define CFG_ACTIVE_MAX_CHANNEL_TIME_DEFAULT (40)
796
797/*
798 * <ini>
799 * gActiveMinChannelTime - Set min channel time for active scan
800 * @Min: 0
801 * @Max: 10000
802 * @Default: 20
803 *
804 * This ini is used to set minimum channel time in secs spent in
805 * active scan
806 *
807 * Related: None
808 *
809 * Supported Feature: Scan
810 *
811 * Usage: External
812 *
813 * </ini>
814 */
815#define CFG_ACTIVE_MIN_CHANNEL_TIME_NAME "gActiveMinChannelTime"
816#define CFG_ACTIVE_MIN_CHANNEL_TIME_MIN (0)
817#define CFG_ACTIVE_MIN_CHANNEL_TIME_MAX (10000)
818#define CFG_ACTIVE_MIN_CHANNEL_TIME_DEFAULT (20)
819
820#ifdef FEATURE_WLAN_EXTSCAN
821/*
822 * <ini>
823 * gExtScanEnable - Enable external scan
824 * @Min: 0
825 * @Max: 1
826 * @Default: 1
827 *
828 * This ini is used to control enabling of external scan
829 * feature.
830 *
831 * Related: None
832 *
833 * Supported Feature: Scan
834 *
835 * Usage: External
836 *
837 * </ini>
838 */
839#define CFG_EXTSCAN_ALLOWED_NAME "gExtScanEnable"
840#define CFG_EXTSCAN_ALLOWED_MIN (0)
841#define CFG_EXTSCAN_ALLOWED_MAX (1)
842#define CFG_EXTSCAN_ALLOWED_DEF (1)
843
844/*
845 * <ini>
846 * gExtScanPassiveMaxChannelTime - Set max channel time for external
847 * passive scan
848 * @Min: 0
849 * @Max: 500
850 * @Default: 110
851 *
852 * This ini is used to set maximum channel time in secs spent in
853 * external passive scan
854 *
855 * Related: None
856 *
857 * Supported Feature: Scan
858 *
859 * Usage: External
860 *
861 * </ini>
862 */
863#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_NAME "gExtScanPassiveMaxChannelTime"
864#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_MIN (0)
865#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_MAX (500)
866#define CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME_DEFAULT (110)
867
868/*
869 * <ini>
870 * gExtScanPassiveMinChannelTime - Set min channel time for external
871 * passive scan
872 * @Min: 0
873 * @Max: 500
874 * @Default: 60
875 *
876 * This ini is used to set minimum channel time in secs spent in
877 * external passive scan
878 *
879 * Related: None
880 *
881 * Supported Feature: Scan
882 *
883 * Usage: External
884 *
885 * </ini>
886 */
887#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_NAME "gExtScanPassiveMinChannelTime"
888#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_MIN (0)
889#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_MAX (500)
890#define CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME_DEFAULT (60)
891
892/*
893 * <ini>
894 * gExtScanActiveMaxChannelTime - Set min channel time for external
895 * active scan
896 * @Min: 0
897 * @Max: 110
898 * @Default: 40
899 *
900 * This ini is used to set maximum channel time in secs spent in
901 * external active scan
902 *
903 * Related: None
904 *
905 * Supported Feature: Scan
906 *
907 * Usage: External
908 *
909 * </ini>
910 */
911#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_NAME "gExtScanActiveMaxChannelTime"
912#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_MIN (0)
913#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_MAX (110)
914#define CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME_DEFAULT (40)
915
916/*
917 * <ini>
918 * gExtScanActiveMinChannelTime - Set min channel time for external
919 * active scan
920 * @Min: 0
921 * @Max: 110
922 * @Default: 20
923 *
924 * This ini is used to set minimum channel time in secs spent in
925 * external active scan
926 *
927 * Related: None
928 *
929 * Supported Feature: Scan
930 *
931 * Usage: External
932 *
933 * </ini>
934 */
935#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_NAME "gExtScanActiveMinChannelTime"
936#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_MIN (0)
937#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_MAX (110)
938#define CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME_DEFAULT (20)
939#endif
940
941/*
942 * <ini>
943 * gChPredictionFullScanMs - Set periodic timer for channel
944 * prediction
945 * @Min: 3000
946 * @Max: 0x7fffffff
947 * @Default: 60000
948 *
949 * This ini is used to set the periodic timer upon which
950 * a full scan needs to be triggered when PNO channel
951 * prediction feature is enabled. This parameter is intended
952 * to tweak the internal algortihm for experiments.
953 *
954 * Related: None
955 *
956 * Supported Feature: Scan
957 *
958 * Usage: Internal
959 *
960 * </ini>
961 */
962#define CFG_CHANNEL_PREDICTION_FULL_SCAN_MS_NAME "gChPredictionFullScanMs"
963#define CFG_CHANNEL_PREDICTION_FULL_SCAN_MS_MIN (30000)
964#define CFG_CHANNEL_PREDICTION_FULL_SCAN_MS_MAX (0x7fffffff)
965#define CFG_CHANNEL_PREDICTION_FULL_SCAN_MS_DEFAULT (60000)
966
967/*
968 * <ini>
969 * gEnableEarlyStopScan - Set early stop scan
970 * @Min: 0
971 * @Max: 1
972 * @Default: 1
973 *
974 * This ini is used to set early stop scan. Early stop
975 * scan is a feature for roaming to stop the scans at
976 * an early stage as soon as we find a better AP to roam.
977 * This would make the roaming happen quickly.
978 *
979 * Related: None
980 *
981 * Supported Feature: LFR Scan
982 *
983 * Usage: External
984 *
985 * </ini>
986 */
987#define CFG_EARLY_STOP_SCAN_ENABLE "gEnableEarlyStopScan"
988#define CFG_EARLY_STOP_SCAN_ENABLE_MIN (0)
989#define CFG_EARLY_STOP_SCAN_ENABLE_MAX (1)
990#define CFG_EARLY_STOP_SCAN_ENABLE_DEFAULT (1)
991
992/*
993 * <ini>
994 * gEarlyStopScanMinThreshold - Set early stop scan min
995 * threshold
996 * @Min: -80
997 * @Max: -70
998 * @Default: -73
999 *
1000 * This ini is used to set the early stop scan minimum
1001 * threshold. Early stop scan minimum threshold is the
1002 * minimum threshold to be considered for stopping the
1003 * scan. The algorithm starts with a scan on the greedy
1004 * channel list with the maximum threshold and steps down
1005 * the threshold by 20% for each further channel. It can
1006 * step down on each channel but cannot go lower than the
1007 * minimum threshold.
1008 *
1009 * Related: None
1010 *
1011 * Supported Feature: Scan
1012 *
1013 * Usage: External
1014 *
1015 * </ini>
1016 */
1017#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD "gEarlyStopScanMinThreshold"
1018#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_MIN (-80)
1019#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_MAX (-70)
1020#define CFG_EARLY_STOP_SCAN_MIN_THRESHOLD_DEFAULT (-73)
1021
1022/*
1023 * <ini>
1024 * gEarlyStopScanMaxThreshold - Set early stop scan max
1025 * threshold
1026 * @Min: -60
1027 * @Max: -40
1028 * @Default: -43
1029 *
1030 * This ini is used to set the the early stop scan maximum
1031 * threshold at which the candidate AP should be to be
1032 * qualified as a potential roam candidate and good enough
1033 * to stop the roaming scan.
1034 *
1035 * Related: None
1036 *
1037 * Supported Feature: Scan
1038 *
1039 * Usage: External
1040 *
1041 * </ini>
1042 */
1043#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD "gEarlyStopScanMaxThreshold"
1044#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_MIN (-60)
1045#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_MAX (-40)
1046#define CFG_EARLY_STOP_SCAN_MAX_THRESHOLD_DEFAULT (-43)
1047
1048/*
1049 * <ini>
1050 * gFirstScanBucketThreshold - Set first scan bucket
1051 * threshold
1052 * @Min: -50
1053 * @Max: -30
1054 * @Default: -30
1055 *
1056 * This ini will configure the first scan bucket
1057 * threshold to the mentioned value and all the AP's which
1058 * have RSSI under this threshold will fall under this
1059 * bucket. This configuration item used to tweak and
1060 * test the input for internal algorithm.
1061 *
1062 * Related: None
1063 *
1064 * Supported Feature: Scan
1065 *
1066 * Usage: Internal
1067 *
1068 * </ini>
1069 */
1070#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_NAME "gFirstScanBucketThreshold"
1071#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_MIN (-50)
1072#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_MAX (-30)
1073#define CFG_FIRST_SCAN_BUCKET_THRESHOLD_DEFAULT (-30)
1074
1075/*
1076 * <ini>
1077 * obss_active_dwelltime - Set obss active dwelltime
1078 * @Min: 5
1079 * @Max: 1000
1080 * @Default: 10
1081 *
1082 * This ini is used to set dwell time in secs for active
1083 * obss scan
1084 *
1085 * Related: None
1086 *
1087 * Supported Feature: Scan
1088 *
1089 * Usage: External
1090 *
1091 * </ini>
1092 */
1093#define CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_NAME "obss_active_dwelltime"
1094#define CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_MIN (5)
1095#define CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_MAX (1000)
1096#define CFG_OBSS_HT40_SCAN_ACTIVE_DWELL_TIME_DEFAULT (10)
1097
1098/*
1099 * <ini>
1100 * obss_passive_dwelltime - Set obss passive dwelltime
1101 * @Min: 10
1102 * @Max: 1000
1103 * @Default: 20
1104 *
1105 * This ini is used to set dwell time in secs for passive
1106 * obss scan
1107 *
1108 * Related: None
1109 *
1110 * Supported Feature: Scan
1111 *
1112 * Usage: External
1113 *
1114 * </ini>
1115 */
1116#define CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_NAME "obss_passive_dwelltime"
1117#define CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_MIN (10)
1118#define CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_MAX (1000)
1119#define CFG_OBSS_HT40_SCAN_PASSIVE_DWELL_TIME_DEFAULT (20)
1120
1121/*
1122 * <ini>
1123 * obss_width_trigger_interval - Set obss trigger interval
1124 * @Min: 10
1125 * @Max: 900
1126 * @Default: 200
1127 *
1128 * This ini is used during an OBSS scan operation,
1129 * where each channel in the set is scanned at least
1130 * once per configured trigger interval time.
1131 *
1132 * Related: None
1133 *
1134 * Supported Feature: Scan
1135 *
1136 * Usage: External
1137 *
1138 * </ini>
1139 */
1140#define CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_NAME "obss_width_trigger_interval"
1141#define CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_MIN (10)
1142#define CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_MAX (900)
1143#define CFG_OBSS_HT40_SCAN_WIDTH_TRIGGER_INTERVAL_DEFAULT (200)
1144
1145/*
1146 * <ini>
1147 * gbug_report_for_scan_results - Enable bug report
1148 * @Min: 0
1149 * @Max: 1
1150 * @Default: 0
1151 *
1152 * This ini is used to create bug report in
1153 * case of nil scan results.
1154 *
1155 * Related: None
1156 *
1157 * Supported Feature: Scan
1158 *
1159 * Usage: External
1160 *
1161 * </ini>
1162 */
1163#define CFG_CREATE_BUG_REPORT_FOR_SCAN "gbug_report_for_scan_results"
1164#define CFG_CREATE_BUG_REPORT_FOR_SCAN_DISABLE (0)
1165#define CFG_CREATE_BUG_REPORT_FOR_SCAN_ENABLE (1)
1166#define CFG_CREATE_BUG_REPORT_FOR_SCAN_DEFAULT (0)
1167
1168/*
1169 * <ini>
1170 * hostscan_adaptive_dwell_mode - Enable adaptive dwell mode
1171 * during host scan
1172 * @Min: 0
1173 * @Max: 4
1174 * @Default: 0
1175 *
1176 * This ini will set the algo used in dwell time optimization
1177 * during host scan. see enum wmi_dwelltime_adaptive_mode.
1178 * Acceptable values for this:
1179 * 0: Default (Use firmware default mode)
1180 * 1: Conservative optimization
1181 * 2: Moderate optimization
1182 * 3: Aggressive optimization
1183 * 4: Static
1184 *
1185 * Related: None
1186 *
1187 * Supported Feature: Scan
1188 *
1189 * Usage: External
1190 *
1191 * </ini>
1192 */
1193#define CFG_ADAPTIVE_SCAN_DWELL_MODE_NAME "hostscan_adaptive_dwell_mode"
1194#define CFG_ADAPTIVE_SCAN_DWELL_MODE_MIN (0)
1195#define CFG_ADAPTIVE_SCAN_DWELL_MODE_MAX (4)
1196#define CFG_ADAPTIVE_SCAN_DWELL_MODE_DEFAULT (0)
1197
1198/*
1199 * <ini>
1200 * extscan_adaptive_dwell_mode - Enable adaptive dwell mode
1201 * during ext scan
1202 * @Min: 0
1203 * @Max: 4
1204 * @Default: 0
1205 *
1206 * This ini will set the algo used in dwell time optimization
1207 * during ext scan. see enum wmi_dwelltime_adaptive_mode.
1208 * Acceptable values for this:
1209 * 0: Default (Use firmware default mode)
1210 * 1: Conservative optimization
1211 * 2: Moderate optimization
1212 * 3: Aggressive optimization
1213 * 4: Static
1214 *
1215 * Related: None
1216 *
1217 * Supported Feature: Scan
1218 *
1219 * Usage: External
1220 *
1221 * </ini>
1222 */
1223#define CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_NAME "extscan_adaptive_dwell_mode"
1224#define CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_MIN (0)
1225#define CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_MAX (4)
1226#define CFG_ADAPTIVE_EXTSCAN_DWELL_MODE_DEFAULT (0)
1227
1228/*
1229 * <ini>
1230 * pnoscan_adaptive_dwell_mode - Enable adaptive dwell mode
1231 * during pno scan
1232 * @Min: 0
1233 * @Max: 4
1234 * @Default: 0
1235 *
1236 * This ini will set the algo used in dwell time optimization
1237 * during pno scan. see enum wmi_dwelltime_adaptive_mode.
1238 * Acceptable values for this:
1239 * 0: Default (Use firmware default mode)
1240 * 1: Conservative optimization
1241 * 2: Moderate optimization
1242 * 3: Aggressive optimization
1243 * 4: Static
1244 *
1245 * Related: None
1246 *
1247 * Supported Feature: Scan
1248 *
1249 * Usage: External
1250 *
1251 * </ini>
1252 */
1253#define CFG_ADAPTIVE_PNOSCAN_DWELL_MODE_NAME "pnoscan_adaptive_dwell_mode"
1254#define CFG_ADAPTIVE_PNOSCAN_DWELL_MODE_MIN (0)
1255#define CFG_ADAPTIVE_PNOSCAN_DWELL_MODE_MAX (4)
1256#define CFG_ADAPTIVE_PNOSCAN_DWELL_MODE_DEFAULT (0)
1257
1258/*
1259 * <ini>
1260 * adaptive_dwell_mode_enabled - Enable adaptive dwell mode
1261 * @Min: 0
1262 * @Max: 1
1263 * @Default: 1
1264 *
1265 * This parameter will globally disable/enable the adaptive dwell config.
1266 * Following parameters will set different values of attributes for dwell
1267 * time optimization thus reducing total scan time.
1268 * Acceptable values for this:
1269 * 0: Config is disabled
1270 * 1: Config is enabled
1271 *
1272 * Related: None
1273 *
1274 * Supported Feature: Scan
1275 *
1276 * Usage: External
1277 *
1278 * </ini>
1279 */
1280#define CFG_ADAPTIVE_DWELL_MODE_ENABLED_NAME "adaptive_dwell_mode_enabled"
1281#define CFG_ADAPTIVE_DWELL_MODE_ENABLED_MIN (0)
1282#define CFG_ADAPTIVE_DWELL_MODE_ENABLED_MAX (1)
1283#define CFG_ADAPTIVE_DWELL_MODE_ENABLED_DEFAULT (1)
1284
1285/*
1286 * <ini>
1287 * global_adapt_dwelltime_mode - Set default adaptive mode
1288 * @Min: 0
1289 * @Max: 4
1290 * @Default: 1
1291 *
1292 * This parameter will set default adaptive mode, will be used if any of the
1293 * scan dwell mode is set to default.
1294 * For uses : see enum wmi_dwelltime_adaptive_mode
1295 *
1296 * Related: None
1297 *
1298 * Supported Feature: Scan
1299 *
1300 * Usage: External
1301 *
1302 * </ini>
1303 */
1304#define CFG_GLOBAL_ADAPTIVE_DWELL_MODE_NAME "global_adapt_dwelltime_mode"
1305#define CFG_GLOBAL_ADAPTIVE_DWELL_MODE_MIN (0)
1306#define CFG_GLOBAL_ADAPTIVE_DWELL_MODE_MAX (4)
1307#define CFG_GLOBAL_ADAPTIVE_DWELL_MODE_DEFAULT (1)
1308
Sen, Devendra9ca8c432017-02-23 15:10:26 +05301309/*
1310 * <ini>
1311 * gRssiCatGap - Set Rssi CatGap
1312 * @Min: 5
1313 * @Max: 100
1314 * @Default: 5
1315 *
1316 * This ini is used to set default RssiCatGap
1317 *
1318 * Related: None
1319 *
1320 * Supported Feature: STA
1321 *
1322 * Usage: Internal/External
1323 *
1324 * </ini>
1325 */
1326
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001327#define CFG_RSSI_CATEGORY_GAP_NAME "gRssiCatGap"
1328#define CFG_RSSI_CATEGORY_GAP_MIN (5)
1329#define CFG_RSSI_CATEGORY_GAP_MAX (100)
1330#define CFG_RSSI_CATEGORY_GAP_DEFAULT (5)
1331
Selvaraj, Sridharf7939832017-03-25 16:59:50 +05301332/*
1333 * <ini>
1334 * gRoamPrefer5GHz - Prefer roaming to 5GHz Bss
1335 * @Min: 0
1336 * @Max: 1
1337 * @Default: 1
1338 *
1339 * This ini is used to inform FW to prefer roaming to 5GHz BSS
1340 *
1341 * Related: None
1342 *
1343 * Supported Feature: Roaming
1344 *
1345 * Usage: External
1346 *
1347 * </ini>
1348 */
1349#define CFG_ROAM_PREFER_5GHZ "gRoamPrefer5GHz"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001350#define CFG_ROAM_PREFER_5GHZ_MIN (0)
1351#define CFG_ROAM_PREFER_5GHZ_MAX (1)
1352#define CFG_ROAM_PREFER_5GHZ_DEFAULT (1)
1353
1354/*
Selvaraj, Sridharf7939832017-03-25 16:59:50 +05301355 * <ini>
1356 * gRoamIntraBand - Prefer roaming within Band
1357 * @Min: 0
1358 * @Max: 1
1359 * @Default: 0
1360 *
1361 * This ini is used to inform FW to prefer roaming within band
1362 *
1363 * Related: None
1364 *
1365 * Supported Feature: Roaming
1366 *
1367 * Usage: External
1368 *
1369 * </ini>
1370 */
1371#define CFG_ROAM_INTRA_BAND "gRoamIntraBand"
1372#define CFG_ROAM_INTRA_BAND_MIN (0)
1373#define CFG_ROAM_INTRA_BAND_MAX (1)
1374#define CFG_ROAM_INTRA_BAND_DEFAULT (0)
1375
1376/*
1377 * <ini>
1378 * FastRoamEnabled - Enable fast roaming
1379 * @Min: 0
1380 * @Max: 1
1381 * @Default: 0
1382 *
1383 * This ini is used to inform FW to enable fast roaming
1384 *
1385 * Related: None
1386 *
1387 * Supported Feature: Roaming
1388 *
1389 * Usage: External
1390 *
1391 * </ini>
1392 */
1393#define CFG_LFR_FEATURE_ENABLED_NAME "FastRoamEnabled"
1394#define CFG_LFR_FEATURE_ENABLED_MIN (0)
1395#define CFG_LFR_FEATURE_ENABLED_MAX (1)
1396#define CFG_LFR_FEATURE_ENABLED_DEFAULT (0)
1397
1398/*
1399 * <ini>
1400 * FastTransitionEnabled - Enable fast transition in case of 11r and ese.
1401 * @Min: 0
1402 * @Max: 1
1403 * @Default: 1
1404 *
1405 * This ini is used to turn ON/OFF the whole neighbor roam, pre-auth, reassoc.
1406 * With this turned OFF 11r will completely not work. For 11r this flag has to
1407 * be ON. For ESE fastroam will not work.
1408 *
1409 * Related: None
1410 *
1411 * Supported Feature: Roaming
1412 *
1413 * Usage: External
1414 *
1415 * </ini>
1416 */
1417#define CFG_FAST_TRANSITION_ENABLED_NAME "FastTransitionEnabled"
1418#define CFG_FAST_TRANSITION_ENABLED_NAME_MIN (0)
1419#define CFG_FAST_TRANSITION_ENABLED_NAME_MAX (1)
1420#define CFG_FAST_TRANSITION_ENABLED_NAME_DEFAULT (1)
1421
1422/*
1423 * <ini>
1424 * RoamRssiDiff - Enable roam based on rssi
1425 * @Min: 0
1426 * @Max: 30
1427 * @Default: 5
1428 *
1429 * This INI is used to decide whether to Roam or not based on RSSI. AP1 is the
1430 * currently associated AP and AP2 is chosen for roaming. The Roaming will
1431 * happen only if AP2 has better Signal Quality and it has a RSSI better than
1432 * AP2. RoamRssiDiff is the number of units (typically measured in dB) AP2
1433 * is better than AP1.
1434 *
1435 * Related: None
1436 *
1437 * Supported Feature: Roaming
1438 *
1439 * Usage: External
1440 *
1441 * </ini>
1442 */
1443#define CFG_ROAM_RSSI_DIFF_NAME "RoamRssiDiff"
1444#define CFG_ROAM_RSSI_DIFF_MIN (0)
1445#define CFG_ROAM_RSSI_DIFF_MAX (30)
1446#define CFG_ROAM_RSSI_DIFF_DEFAULT (5)
1447
1448/*
1449 * <ini>
1450 * gRoamScanNProbes - Sets the number of probes to be sent for firmware roaming
1451 * @Min: 1
1452 * @Max: 10
1453 * @Default: 2
1454 *
1455 * This INI is used to set the maximum number of probes the firmware can send
1456 * for firmware internal roaming cases.
1457 *
1458 * Related: None
1459 *
1460 * Supported Feature: Roaming
1461 *
1462 * Usage: External
1463 *
1464 * </ini>
1465 */
1466#define CFG_ROAM_SCAN_N_PROBES "gRoamScanNProbes"
1467#define CFG_ROAM_SCAN_N_PROBES_MIN (1)
1468#define CFG_ROAM_SCAN_N_PROBES_MAX (10)
1469#define CFG_ROAM_SCAN_N_PROBES_DEFAULT (2)
1470
1471/*
1472 * <ini>
1473 * gRoamScanHomeAwayTime - Sets the Home Away Time to firmware
1474 * @Min: 0
1475 * @Max: 300
1476 * @Default: 0
1477 *
1478 * Home Away Time should be at least equal to (gNeighborScanChannelMaxTime
1479 * + (2*RFS)), where RFS is the RF Switching time(3). It is twice RFS
1480 * to consider the time to go off channel and return to the home channel.
1481 *
1482 * Related: gNeighborScanChannelMaxTime
1483 *
1484 * Supported Feature: Roaming
1485 *
1486 * Usage: External
1487 *
1488 * </ini>
1489 */
1490#define CFG_ROAM_SCAN_HOME_AWAY_TIME "gRoamScanHomeAwayTime"
1491#define CFG_ROAM_SCAN_HOME_AWAY_TIME_MIN (0)
1492#define CFG_ROAM_SCAN_HOME_AWAY_TIME_MAX (300)
1493#define CFG_ROAM_SCAN_HOME_AWAY_TIME_DEFAULT (0)
1494
1495/*
1496 * <ini>
1497 * OkcEnabled - Enable OKC(Oppurtunistic Key Caching)
1498 * @Min: 0
1499 * @Max: 1
1500 * @Default: 1
1501 *
1502 * This INI is used to enable OKC feature
1503 *
1504 * Related: None
1505 *
1506 * Supported Feature: Roaming
1507 *
1508 * Usage: External
1509 *
1510 * </ini>
1511 */
1512#define CFG_OKC_FEATURE_ENABLED_NAME "OkcEnabled"
1513#define CFG_OKC_FEATURE_ENABLED_MIN (0)
1514#define CFG_OKC_FEATURE_ENABLED_MAX (1)
1515#define CFG_OKC_FEATURE_ENABLED_DEFAULT (1)
1516
1517/*
1518 * <ini>
1519 * gRoamScanOffloadEnabled - Enable Roam Scan Offload
1520 * @Min: 0
1521 * @Max: 1
1522 * @Default: 1
1523 *
1524 * This INI is used to enable Roam Scan Offload in firmware
1525 *
1526 * Related: None
1527 *
1528 * Supported Feature: Roaming
1529 *
1530 * Usage: External
1531 *
1532 * </ini>
1533 */
1534#define CFG_ROAM_SCAN_OFFLOAD_ENABLED "gRoamScanOffloadEnabled"
1535#define CFG_ROAM_SCAN_OFFLOAD_ENABLED_MIN (0)
1536#define CFG_ROAM_SCAN_OFFLOAD_ENABLED_MAX (1)
1537#define CFG_ROAM_SCAN_OFFLOAD_ENABLED_DEFAULT (1)
1538
1539/*
1540 * <ini>
1541 * gRoamRescanRssiDiff - Sets RSSI for Scan trigger in firmware
1542 * @Min: 0
1543 * @Max: 100
1544 * @Default: 5
1545 *
1546 * This INI is the drop in RSSI value that will trigger a precautionary
1547 * scan by firmware. Max value is chosen in such a way that this type
1548 * of scan can be disabled by user.
1549 *
1550 * Related: None
1551 *
1552 * Supported Feature: Roaming
1553 *
1554 * Usage: External
1555 *
1556 * </ini>
1557 */
1558#define CFG_ROAM_RESCAN_RSSI_DIFF_NAME "gRoamRescanRssiDiff"
1559#define CFG_ROAM_RESCAN_RSSI_DIFF_MIN (0)
1560#define CFG_ROAM_RESCAN_RSSI_DIFF_MAX (100)
1561#define CFG_ROAM_RESCAN_RSSI_DIFF_DEFAULT (5)
1562
1563/*
1564 * <ini>
Naveen Rawat2b6e3c92017-03-20 13:59:07 -07001565 * gDroppedPktDisconnectTh - Sets dropped packet threshold in firmware
1566 * @Min: 0
1567 * @Max: 512
1568 * @Default: 512
1569 *
1570 * This INI is the packet drop threshold will trigger disconnect from remote
1571 * peer.
1572 *
1573 * Related: None
1574 *
1575 * Supported Feature: connection
1576 *
1577 * Usage: External
1578 *
1579 * </ini>
1580 */
1581#define CFG_DROPPED_PKT_DISCONNECT_TH_NAME "gDroppedPktDisconnectTh"
1582#define CFG_DROPPED_PKT_DISCONNECT_TH_MIN (0)
1583#define CFG_DROPPED_PKT_DISCONNECT_TH_MAX (512)
1584#define CFG_DROPPED_PKT_DISCONNECT_TH_DEFAULT (512)
1585
1586/*
1587 * <ini>
Naveen Rawatb2fc4132017-05-10 20:42:05 -07001588 * gForce1x1Exception - force 1x1 when connecting to certain peer
1589 * @Min: 0
1590 * @Max: 1
1591 * @Default: 0
1592 *
1593 * This INI when enabled will force 1x1 connection with certain peer.
1594 *
1595 *
1596 * Related: None
1597 *
1598 * Supported Feature: connection
1599 *
1600 * Usage: External
1601 *
1602 * </ini>
1603 */
1604#define CFG_FORCE_1X1_NAME "gForce1x1Exception"
1605#define CFG_FORCE_1X1_MIN (0)
1606#define CFG_FORCE_1X1_MAX (1)
1607#define CFG_FORCE_1X1_DEFAULT (0)
1608
1609/*
1610 * <ini>
Selvaraj, Sridharf7939832017-03-25 16:59:50 +05301611 * gEnableFastRoamInConcurrency - Enable LFR roaming on STA during concurrency
1612 * @Min: 0
1613 * @Max: 1
1614 * @Default: 1
1615 *
1616 * This INI is used to enable Legacy fast roaming(LFR) on STA link during
1617 * concurrent sessions.
1618 *
1619 * Related: None
1620 *
1621 * Supported Feature: Roaming
1622 *
1623 * Usage: External
1624 *
1625 * </ini>
1626 */
1627#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY "gEnableFastRoamInConcurrency"
1628#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_MIN (0)
1629#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_MAX (1)
1630#define CFG_ENABLE_FAST_ROAM_IN_CONCURRENCY_DEFAULT (1)
1631
1632/*
1633 * <ini>
1634 * gSelect5GHzMargin - Sets RSSI preference for 5GHz over 2.4GHz AP.
1635 * @Min: 0
1636 * @Max: 60
1637 * @Default: 0
1638 *
1639 * Prefer connecting to 5G AP even if its RSSI is lower by gSelect5GHzMargin
1640 * dBm than 2.4G AP. This feature requires the dependent cfg.ini
1641 * "gRoamPrefer5GHz" set to 1
1642 *
1643 * Related: gRoamPrefer5GHz
1644 *
1645 * Supported Feature: Roaming
1646 *
1647 * Usage: External
1648 *
1649 * </ini>
1650 */
1651#define CFG_STRICT_5GHZ_PREF_BY_MARGIN "gSelect5GHzMargin"
1652#define CFG_STRICT_5GHZ_PREF_BY_MARGIN_MIN (0)
1653#define CFG_STRICT_5GHZ_PREF_BY_MARGIN_MAX (60)
1654#define CFG_STRICT_5GHZ_PREF_BY_MARGIN_DEFAULT (0)
1655
1656#ifdef WLAN_FEATURE_ROAM_OFFLOAD
1657/*
1658 * <ini>
1659 * gRoamOffloadEnabled - enable/disable roam offload feature
1660 * @Min: 0
1661 * @Max: 1
1662 * @Default: 1
1663 *
1664 * This INI is used to enable/disable roam offload feature
1665 *
1666 * Related: None
1667 *
1668 * Supported Feature: Roaming
1669 *
1670 * Usage: External
1671 *
1672 * </ini>
1673 */
1674#define CFG_ROAMING_OFFLOAD_NAME "gRoamOffloadEnabled"
1675#define CFG_ROAMING_OFFLOAD_MIN (0)
1676#define CFG_ROAMING_OFFLOAD_MAX (1)
1677#define CFG_ROAMING_OFFLOAD_DEFAULT (1)
1678#endif
1679
1680/*
1681 * <ini>
1682 * gRoamScanHiRssiMaxCount - Sets 5GHz maximum scan count
1683 * @Min: 0
1684 * @Max: 10
1685 * @Default: 3
1686 *
1687 * This INI is used to set maximum scan count in 5GHz
1688 *
1689 * Related: None
1690 *
1691 * Supported Feature: Roaming
1692 *
1693 * Usage: External
1694 *
1695 * </ini>
1696 */
1697#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_NAME "gRoamScanHiRssiMaxCount"
1698#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_MIN (0)
1699#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_MAX (10)
1700#define CFG_ROAM_SCAN_HI_RSSI_MAXCOUNT_DEFAULT (3)
1701
1702/*
1703 * <ini>
1704 * gRoamScanHiRssiDelta - Sets RSSI Delta for scan trigger
1705 * @Min: 0
1706 * @Max: 16
1707 * @Default: 10
1708 *
1709 * This INI is used to set change in RSSI at which scan is triggered
1710 * in 5GHz.
1711 *
1712 * Related: None
1713 *
1714 * Supported Feature: Roaming
1715 *
1716 * Usage: External
1717 *
1718 * </ini>
1719 */
1720#define CFG_ROAM_SCAN_HI_RSSI_DELTA_NAME "gRoamScanHiRssiDelta"
1721#define CFG_ROAM_SCAN_HI_RSSI_DELTA_MIN (0)
1722#define CFG_ROAM_SCAN_HI_RSSI_DELTA_MAX (16)
1723#define CFG_ROAM_SCAN_HI_RSSI_DELTA_DEFAULT (10)
1724
1725/*
1726 * <ini>
1727 * gRoamScanHiRssiDelay - Sets minimum delay between 5GHz scans
1728 * @Min: 5000
1729 * @Max: 0x7fffffff
1730 * @Default: 15000
1731 *
1732 * This INI is used to set the minimum delay between 5GHz scans.
1733 *
1734 * Related: None
1735 *
1736 * Supported Feature: Roaming
1737 *
1738 * Usage: External
1739 *
1740 * </ini>
1741 */
1742#define CFG_ROAM_SCAN_HI_RSSI_DELAY_NAME "gRoamScanHiRssiDelay"
1743#define CFG_ROAM_SCAN_HI_RSSI_DELAY_MIN (5000)
1744#define CFG_ROAM_SCAN_HI_RSSI_DELAY_MAX (0x7fffffff)
1745#define CFG_ROAM_SCAN_HI_RSSI_DELAY_DEFAULT (15000)
1746
1747/*
1748 * <ini>
1749 * gRoamScanHiRssiUpperBound - Sets upper bound after which 5GHz scan
1750 * @Min: -66
1751 * @Max: 0
1752 * @Default: -30
1753 *
1754 * This INI is used to set the RSSI upper bound above which the 5GHz scan
1755 * will not be performed.
1756 *
1757 * Related: None
1758 *
1759 * Supported Feature: Roaming
1760 *
1761 * Usage: External
1762 *
1763 * </ini>
1764 */
1765#define CFG_ROAM_SCAN_HI_RSSI_UB_NAME "gRoamScanHiRssiUpperBound"
1766#define CFG_ROAM_SCAN_HI_RSSI_UB_MIN (-66)
1767#define CFG_ROAM_SCAN_HI_RSSI_UB_MAX (0)
1768#define CFG_ROAM_SCAN_HI_RSSI_UB_DEFAULT (-30)
1769
1770#ifdef FEATURE_LFR_SUBNET_DETECTION
1771/*
1772 * <ini>
1773 * gLFRSubnetDetectionEnable - Enable LFR3 subnet detection
1774 * @Min: 0
1775 * @Max: 1
1776 * @Default: 1
1777 *
1778 * Enable IP subnet detection during legacy fast roming version 3. Legacy fast
1779 * roaming could roam across IP subnets without host processors' knowledge.
1780 * This feature enables firmware to wake up the host processor if it
1781 * successfully determines change in the IP subnet. Change in IP subnet could
1782 * potentially cause disruption in IP connnectivity if IP address is not
1783 * refreshed.
1784 *
1785 * Related: None
1786 *
1787 * Supported Feature: Roaming
1788 *
1789 * Usage: External
1790 *
1791 * </ini>
1792 */
1793#define CFG_ENABLE_LFR_SUBNET_DETECTION "gLFRSubnetDetectionEnable"
1794#define CFG_ENABLE_LFR_SUBNET_MIN (0)
1795#define CFG_ENABLE_LFR_SUBNET_MAX (1)
1796#define CFG_ENABLE_LFR_SUBNET_DEFAULT (1)
1797#endif /* FEATURE_LFR_SUBNET_DETECTION */
1798
1799/*
1800 * <ini>
1801 * groam_dense_rssi_thresh_offset - Sets dense roam RSSI threshold diff
1802 * @Min: 0
1803 * @Max: 20
1804 * @Default: 10
1805 *
1806 * This INI is used to set offset value from normal RSSI threshold to dense
1807 * RSSI threshold Fw will optimize roaming based on new RSSI threshold once
1808 * it detects dense enviournment.
1809 *
1810 * Related: None
1811 *
1812 * Supported Feature: Roaming
1813 *
1814 * Usage: External
1815 *
1816 * </ini>
1817 */
1818#define CFG_ROAM_DENSE_RSSI_THRE_OFFSET "groam_dense_rssi_thresh_offset"
1819#define CFG_ROAM_DENSE_RSSI_THRE_OFFSET_MIN (0)
1820#define CFG_ROAM_DENSE_RSSI_THRE_OFFSET_MAX (20)
1821#define CFG_ROAM_DENSE_RSSI_THRE_OFFSET_DEFAULT (10)
1822
1823/*
1824 * <ini>
1825 * groam_dense_min_aps - Sets minimum number of AP for dense roam
1826 * @Min: 1
1827 * @Max: 5
1828 * @Default: 3
1829 *
1830 * Minimum number of APs required for dense roam. FW will consider
1831 * environment as dense once it detects #APs operating is more than
1832 * groam_dense_min_aps.
1833 *
1834 * Related: None
1835 *
1836 * Supported Feature: Roaming
1837 *
1838 * Usage: External
1839 *
1840 * </ini>
1841 */
1842#define CFG_ROAM_DENSE_MIN_APS "groam_dense_min_aps"
1843#define CFG_ROAM_DENSE_MIN_APS_MIN (1)
1844#define CFG_ROAM_DENSE_MIN_APS_MAX (5)
1845#define CFG_ROAM_DENSE_MIN_APS_DEFAULT (3)
1846
1847/*
1848 * <ini>
1849 * roamscan_adaptive_dwell_mode - Sets dwell time adaptive mode
1850 * @Min: 0
1851 * @Max: 4
1852 * @Default: 0
1853 *
1854 * This parameter will set the algo used in dwell time optimization during
1855 * roam scan. see enum wmi_dwelltime_adaptive_mode.
1856 * Acceptable values for this:
1857 * 0: Default (Use firmware default mode)
1858 * 1: Conservative optimization
1859 * 2: Moderate optimization
1860 * 3: Aggressive optimization
1861 * 4: Static
1862 *
1863 * Related: None
1864 *
1865 * Supported Feature: Roaming
1866 *
1867 * Usage: External
1868 *
1869 * </ini>
1870 */
1871#define CFG_ADAPTIVE_ROAMSCAN_DWELL_MODE_NAME "roamscan_adaptive_dwell_mode"
1872#define CFG_ADAPTIVE_ROAMSCAN_DWELL_MODE_MIN (0)
1873#define CFG_ADAPTIVE_ROAMSCAN_DWELL_MODE_MAX (4)
1874#define CFG_ADAPTIVE_ROAMSCAN_DWELL_MODE_DEFAULT (0)
1875
1876/*
Arun Khandavallifae92942016-08-01 13:31:08 +05301877 * Timer waiting for interface up from the upper layer. If
1878 * this timer expires all the cds modules shall be closed.
1879 * Time Units: ms
1880 */
1881#define CFG_INTERFACE_CHANGE_WAIT_NAME "gInterfaceChangeWait"
1882#define CFG_INTERFACE_CHANGE_WAIT_MIN (10)
Arunk Khandavallib0b940b2017-01-23 14:08:02 +05301883#define CFG_INTERFACE_CHANGE_WAIT_MAX (500000)
Ashish Kumar Dhanotiya147860e2017-03-15 14:28:49 +05301884#define CFG_INTERFACE_CHANGE_WAIT_DEFAULT (15000)
Arun Khandavallifae92942016-08-01 13:31:08 +05301885
1886/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05301887 * <ini>
1888 * gShortPreamble - Set Short Preamble
1889 * @Min: 0
1890 * @Max: 1
1891 * @Default: 1
1892 *
1893 * This ini is used to set default short Preamble
1894 *
1895 * Related: None
1896 *
1897 * Supported Feature: STA
1898 *
1899 * Usage: Internal/External
1900 *
1901 * </ini>
1902 */
1903
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001904#define CFG_SHORT_PREAMBLE_NAME "gShortPreamble"
1905#define CFG_SHORT_PREAMBLE_MIN WNI_CFG_SHORT_PREAMBLE_STAMIN
1906#define CFG_SHORT_PREAMBLE_MAX WNI_CFG_SHORT_PREAMBLE_STAMAX
1907#define CFG_SHORT_PREAMBLE_DEFAULT WNI_CFG_SHORT_PREAMBLE_STADEF
1908
Abhishek Singh49b654e2016-12-01 16:11:17 +05301909/*
1910 * <ini>
1911 * gIbssBssid - Default IBSS BSSID if BSSID is not provided by supplicant
1912 * @Min: "000000000000"
1913 * @Max: "ffffffffffff"
1914 * @Default: "000AF5040506"
1915 *
1916 * This ini is used to set Default IBSS BSSID if BSSID
1917 * is not provided by supplicant and Coalesing is disabled
1918 *
1919 * Related: Only applicable if gCoalesingInIBSS is 0
1920 *
1921 * Supported Feature: IBSS
1922 *
1923 * Usage: Internal/External
1924 *
1925 * </ini>
1926 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001927#define CFG_IBSS_BSSID_NAME "gIbssBssid"
1928#define CFG_IBSS_BSSID_MIN "000000000000"
1929#define CFG_IBSS_BSSID_MAX "ffffffffffff"
1930#define CFG_IBSS_BSSID_DEFAULT "000AF5040506"
1931
Abhishek Singh49b654e2016-12-01 16:11:17 +05301932/*
1933 * <ini>
1934 * gAdHocChannel5G - Default 5Ghz IBSS channel if channel is not
1935 * provided by supplicant.
1936 * @Min: 36
1937 * @Max: 165
1938 * @Default: 44
1939 *
1940 * This ini is used to set default 5Ghz IBSS channel
1941 * if channel is not provided by supplicant and band is 5Ghz
1942 *
1943 * Related: None
1944 *
1945 * Supported Feature: IBSS
1946 *
1947 * Usage: Internal/External
1948 *
1949 * </ini>
1950 */
1951#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_NAME "gAdHocChannel5G"
1952#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_MIN (36)
1953#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_MAX (165)
1954#define CFG_IBSS_ADHOC_CHANNEL_5GHZ_DEFAULT (44)
1955
1956/*
1957 * <ini>
1958 * gAdHocChannel24G - Default 2.4Ghz IBSS channel if channel is not
1959 * provided by supplicant.
1960 * @Min: 1
1961 * @Max: 14
1962 * @Default: 6
1963 *
1964 * This ini is used to set default 2.4Ghz IBSS channel
1965 * if channel is not provided by supplicant and band is 2.4Ghz
1966 *
1967 * Related: None
1968 *
1969 * Supported Feature: IBSS
1970 *
1971 * Usage: Internal/External
1972 *
1973 * </ini>
1974 */
1975#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_NAME "gAdHocChannel24G"
1976#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_MIN (1)
1977#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_MAX (14)
1978#define CFG_IBSS_ADHOC_CHANNEL_24GHZ_DEFAULT (6)
1979
1980/*
1981 * <ini>
1982 * gCoalesingInIBSS - If IBSS coalesing is enabled.
1983 * @Min: 0
1984 * @Max: 1
1985 * @Default: 0
1986 *
1987 * This ini is used to set IBSS coalesing
1988 *
1989 * Related: None
1990 *
1991 * Supported Feature: IBSS
1992 *
1993 * Usage: Internal/External
1994 *
1995 * </ini>
1996 */
1997#define CFG_COALESING_IN_IBSS_NAME "gCoalesingInIBSS"
1998#define CFG_COALESING_IN_IBSS_MIN (0)
1999#define CFG_COALESING_IN_IBSS_MAX (1)
2000#define CFG_COALESING_IN_IBSS_DEFAULT (0) /* disabled */
2001
2002/*
2003 * <ini>
2004 * gIbssATIMWinSize - Set IBSS ATIM window size
2005 * @Min: 0
2006 * @Max: 50
2007 * @Default: 0
2008 *
2009 * This ini is used to set IBSS ATIM window size
2010 *
2011 * Related: None
2012 *
2013 * Supported Feature: IBSS
2014 *
2015 * Usage: Internal/External
2016 *
2017 * </ini>
2018 */
2019#define CFG_IBSS_ATIM_WIN_SIZE_NAME "gIbssATIMWinSize"
2020#define CFG_IBSS_ATIM_WIN_SIZE_MIN (0)
2021#define CFG_IBSS_ATIM_WIN_SIZE_MAX (50)
2022#define CFG_IBSS_ATIM_WIN_SIZE_DEFAULT (0)
2023
2024
2025/*
2026 * <ini>
2027 * gIbssIsPowerSaveAllowed - Indicates if IBSS Power Save is
2028 * supported or not
2029 * @Min: 0
2030 * @Max: 1
2031 * @Default: 1
2032 *
2033 * This ini is used to Indicates if IBSS Power Save is
2034 * supported or not. When not allowed,IBSS station has
2035 * to stay awake all the time and should never set PM=1
2036 * in its transmitted frames.
2037 *
2038 * Related: valid only when gIbssATIMWinSize is non-zero
2039 *
2040 * Supported Feature: IBSS
2041 *
2042 * Usage: Internal/External
2043 *
2044 * </ini>
2045 */
2046#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_NAME "gIbssIsPowerSaveAllowed"
2047#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_MIN (0)
2048#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_MAX (1)
2049#define CFG_IBSS_IS_POWER_SAVE_ALLOWED_DEFAULT (1)
2050
2051/*
2052 * <ini>
2053 * gIbssIsPowerCollapseAllowed - Indicates if IBSS Power Collapse
2054 * is allowed
2055 * @Min: 0
2056 * @Max: 1
2057 * @Default: 1
2058 *
2059 * This ini is used to indicates if IBSS Power Collapse
2060 * is allowed
2061 *
2062 * Related: None
2063 *
2064 * Supported Feature: IBSS
2065 *
2066 * Usage: Internal/External
2067 *
2068 * </ini>
2069 */
2070#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_NAME "gIbssIsPowerCollapseAllowed"
2071#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_MIN (0)
2072#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_MAX (1)
2073#define CFG_IBSS_IS_POWER_COLLAPSE_ALLOWED_DEFAULT (1)
2074
2075/*
2076 * <ini>
2077 * gIbssAwakeOnTxRx - Indicates whether IBSS station
2078 * can exit power save mode and enter power active
2079 * state whenever there is a TX/RX activity.
2080 *
2081 * @Min: 0
2082 * @Max: 1
2083 * @Default: 0
2084 *
2085 * This ini is used to ndicates whether IBSS station
2086 * can exit power save mode and enter power active
2087 * state whenever there is a TX/RX activity.
2088 *
2089 * Related: None
2090 *
2091 * Supported Feature: IBSS
2092 *
2093 * Usage: Internal/External
2094 *
2095 * </ini>
2096 */
2097#define CFG_IBSS_AWAKE_ON_TX_RX_NAME "gIbssAwakeOnTxRx"
2098#define CFG_IBSS_AWAKE_ON_TX_RX_MIN (0)
2099#define CFG_IBSS_AWAKE_ON_TX_RX_MAX (1)
2100#define CFG_IBSS_AWAKE_ON_TX_RX_DEFAULT (0)
2101
2102/*
2103 * <ini>
2104 * gIbssInactivityTime - Indicates the data
2105 * inactivity time in number of beacon intervals
2106 * after which IBSS station re-inters power save
2107 *
2108 * @Min: 1
2109 * @Max: 10
2110 * @Default: 1
2111 *
2112 * In IBSS mode if Awake on TX/RX activity is enabled
2113 * Ibss Inactivity parameter indicates the data
2114 * inactivity time in number of beacon intervals
2115 * after which IBSS station re-inters power save
2116 * by sending Null frame with PM=1
2117 *
2118 * Related: Aplicable if gIbssAwakeOnTxRx is enabled
2119 *
2120 * Supported Feature: IBSS
2121 *
2122 * Usage: Internal/External
2123 *
2124 * </ini>
2125 */
2126#define CFG_IBSS_INACTIVITY_TIME_NAME "gIbssInactivityTime"
2127#define CFG_IBSS_INACTIVITY_TIME_MIN (1)
2128#define CFG_IBSS_INACTIVITY_TIME_MAX (10)
2129#define CFG_IBSS_INACTIVITY_TIME_DEFAULT (1)
2130
2131/*
2132 * <ini>
2133 * gIbssTxSpEndInactivityTime - Indicates the time after
2134 * which TX Service Period is terminated by
2135 * sending a Qos Null frame with EOSP.
2136 *
2137 * @Min: 0
2138 * @Max: 100
2139 * @Default: 0
2140 *
2141 * In IBSS mode Tx Service Period Inactivity
2142 * time in msecs indicates the time after
2143 * which TX Service Period is terminated by
2144 * sending a Qos Null frame with EOSP.
2145 * If value is 0, TX SP is terminated with the
2146 * last buffered packet itself instead of waiting
2147 * for the inactivity.
2148 *
2149 * Related: None
2150 *
2151 * Supported Feature: IBSS
2152 *
2153 * Usage: Internal/External
2154 *
2155 * </ini>
2156 */
2157#define CFG_IBSS_TXSP_END_INACTIVITY_NAME "gIbssTxSpEndInactivityTime"
2158#define CFG_IBSS_TXSP_END_INACTIVITY_MIN (0)
2159#define CFG_IBSS_TXSP_END_INACTIVITY_MAX (100)
2160#define CFG_IBSS_TXSP_END_INACTIVITY_DEFAULT (0)
2161
2162/*
2163 * <ini>
2164 * gIbssPsWarmupTime - PS-supporting device
2165 * does not enter protocol sleep state during first
2166 * gIbssPsWarmupTime seconds.
2167 *
2168 * @Min: 0
2169 * @Max: 65535
2170 * @Default: 0
2171 *
2172 * When IBSS network is initialized, PS-supporting device
2173 * does not enter protocol sleep state during first
2174 * gIbssPsWarmupTime seconds.
2175 *
2176 * Related: valid if gIbssIsPowerSaveAllowed is set
2177 *
2178 * Supported Feature: IBSS
2179 *
2180 * Usage: Internal/External
2181 *
2182 * </ini>
2183 */
2184#define CFG_IBSS_PS_WARMUP_TIME_NAME "gIbssPsWarmupTime"
2185#define CFG_IBSS_PS_WARMUP_TIME_MIN (0)
2186/* Allow unsigned Int Max for now */
2187#define CFG_IBSS_PS_WARMUP_TIME_MAX (65535)
2188#define CFG_IBSS_PS_WARMUP_TIME_DEFAULT (0)
2189
2190/*
2191 * <ini>
Sen, Devendrac441b212017-02-23 15:40:42 +05302192 * gIbssPs1RxChainInAtim - IBSS Power Save Enable/Disable 1 RX
Abhishek Singh49b654e2016-12-01 16:11:17 +05302193 * chain usage during the ATIM window
2194 *
2195 * @Min: 0
2196 * @Max: 1
2197 * @Default: 0
2198 *
2199 * IBSS Power Save Enable/Disable 1 RX
2200 * chain usage during the ATIM window
2201 *
2202 * Related: Depend on gIbssIsPowerSaveAllowed
2203 *
2204 * Supported Feature: IBSS
2205 *
2206 * Usage: Internal/External
2207 *
2208 * </ini>
2209 */
2210#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_NAME "gIbssPs1RxChainInAtim"
2211#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_MIN (0)
2212#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_MAX (1)
2213#define CFG_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_DEFAULT (0)
2214
2215
2216
2217
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002218#define CFG_INTF0_MAC_ADDR_NAME "Intf0MacAddress"
2219#define CFG_INTF0_MAC_ADDR_MIN "000000000000"
2220#define CFG_INTF0_MAC_ADDR_MAX "ffffffffffff"
Jeff Johnson9e6ff212016-09-02 10:26:32 -07002221#define CFG_INTF0_MAC_ADDR_DEFAULT "000AF58989FF"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002222
2223#define CFG_INTF1_MAC_ADDR_NAME "Intf1MacAddress"
2224#define CFG_INTF1_MAC_ADDR_MIN "000000000000"
2225#define CFG_INTF1_MAC_ADDR_MAX "ffffffffffff"
Jeff Johnson9e6ff212016-09-02 10:26:32 -07002226#define CFG_INTF1_MAC_ADDR_DEFAULT "000AF58989FE"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002227
2228#define CFG_INTF2_MAC_ADDR_NAME "Intf2MacAddress"
2229#define CFG_INTF2_MAC_ADDR_MIN "000000000000"
2230#define CFG_INTF2_MAC_ADDR_MAX "ffffffffffff"
Jeff Johnson9e6ff212016-09-02 10:26:32 -07002231#define CFG_INTF2_MAC_ADDR_DEFAULT "000AF58989FD"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002232
2233#define CFG_INTF3_MAC_ADDR_NAME "Intf3MacAddress"
2234#define CFG_INTF3_MAC_ADDR_MIN "000000000000"
2235#define CFG_INTF3_MAC_ADDR_MAX "ffffffffffff"
Jeff Johnson9e6ff212016-09-02 10:26:32 -07002236#define CFG_INTF3_MAC_ADDR_DEFAULT "000AF58989FC"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002237
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302238/*
2239 * <ini>
2240 * gDot11Mode - SAP phy mode
2241 * @Min: 0
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -08002242 * @Max: 12 (11ax)
2243 * @Default: 12 (11ax)
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302244 *
2245 * This ini is used to set Phy Mode (auto, b, g, n, etc/) Valid values are
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -08002246 * 0-12, with 0 = Auto, 12 = 11ax.
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302247 *
2248 * Related: None.
2249 *
2250 * Supported Feature: SAP
2251 *
2252 * Usage: Internal/External
2253 *
2254 * </ini>
2255 */
2256#define CFG_DOT11_MODE_NAME "gDot11Mode"
2257#define CFG_DOT11_MODE_MIN eHDD_DOT11_MODE_AUTO
Krishna Kumaar Natarajan4f1d7722017-03-03 21:12:51 -08002258#define CFG_DOT11_MODE_DEFAULT eHDD_DOT11_MODE_11ax
2259#define CFG_DOT11_MODE_MAX eHDD_DOT11_MODE_11ax
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302260
2261/*
2262 * <ini>
2263 * gEnableApUapsd - Enable/disable UAPSD for SoftAP
2264 * @Min: 0
2265 * @Max: 1
2266 * @Default: 1
2267 *
2268 * This ini is used to setup setup U-APSD for Acs at association
2269 *
2270 * Related: None.
2271 *
2272 * Supported Feature: SAP
2273 *
2274 * Usage: Internal/External
2275 *
2276 * </ini>
2277 */
2278#define CFG_AP_QOS_UAPSD_MODE_NAME "gEnableApUapsd"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002279#define CFG_AP_QOS_UAPSD_MODE_MIN (0)
2280#define CFG_AP_QOS_UAPSD_MODE_MAX (1)
2281#define CFG_AP_QOS_UAPSD_MODE_DEFAULT (1)
2282
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302283/*
2284 * <ini>
2285 * gEnableApRandomBssid - Create ramdom BSSID
2286 * @Min: 0
2287 * @Max: 1
2288 * @Default: 0
2289 *
2290 * This ini is used to create a random BSSID in SoftAP mode to meet
2291 * the Android requirement.
2292 *
2293 * Related: None.
2294 *
2295 * Supported Feature: SAP
2296 *
2297 * Usage: Internal/External
2298 *
2299 * </ini>
2300 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002301#define CFG_AP_ENABLE_RANDOM_BSSID_NAME "gEnableApRandomBssid"
2302#define CFG_AP_ENABLE_RANDOM_BSSID_MIN (0)
2303#define CFG_AP_ENABLE_RANDOM_BSSID_MAX (1)
2304#define CFG_AP_ENABLE_RANDOM_BSSID_DEFAULT (0)
2305
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302306/*
2307 * <ini>
2308 * gEnableApProt - Enable/Disable AP protection
2309 * @Min: 0
2310 * @Max: 1
2311 * @Default: 1
2312 *
2313 * This ini is used to enable/disable AP protection
2314 *
2315 * Related: None.
2316 *
2317 * Supported Feature: SAP
2318 *
2319 * Usage: Internal/External
2320 *
2321 * </ini>
2322 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002323#define CFG_AP_ENABLE_PROTECTION_MODE_NAME "gEnableApProt"
2324#define CFG_AP_ENABLE_PROTECTION_MODE_MIN (0)
2325#define CFG_AP_ENABLE_PROTECTION_MODE_MAX (1)
2326#define CFG_AP_ENABLE_PROTECTION_MODE_DEFAULT (1)
2327
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302328/*
2329 * <ini>
2330 * gApProtection - Set AP protection parameter
2331 * @Min: 0x0
2332 * @Max: 0xFFFF
2333 * @Default: 0xBFFF
2334 *
2335 * This ini is used to set AP protection parameter
2336 * Bit map for CFG_AP_PROTECTION_MODE_DEFAULT
2337 * LOWER byte for associated stations
2338 * UPPER byte for overlapping stations
2339 * each byte will have the following info
2340 * bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8
2341 * OBSS RIFS LSIG_TXOP NON_GF HT20 FROM_11G FROM_11B FROM_11A
2342 * bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
2343 * OBSS RIFS LSIG_TXOP NON_GF HT_20 FROM_11G FROM_11B FROM_11A
2344 *
2345 * Related: None.
2346 *
2347 * Supported Feature: SAP
2348 *
2349 * Usage: Internal/External
2350 *
2351 * </ini>
2352 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002353#define CFG_AP_PROTECTION_MODE_NAME "gApProtection"
2354#define CFG_AP_PROTECTION_MODE_MIN (0x0)
2355#define CFG_AP_PROTECTION_MODE_MAX (0xFFFF)
2356#define CFG_AP_PROTECTION_MODE_DEFAULT (0xBFFF)
2357
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302358/*
2359 * <ini>
2360 * gEnableApOBSSProt - Enable/Disable AP OBSS protection
2361 * @Min: 0
2362 * @Max: 1
2363 * @Default: 0
2364 *
2365 * This ini is used to enable/disable AP OBSS protection
2366 *
2367 * Related: None.
2368 *
2369 * Supported Feature: SAP
2370 *
2371 * Usage: Internal/External
2372 *
2373 * </ini>
2374 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002375#define CFG_AP_OBSS_PROTECTION_MODE_NAME "gEnableApOBSSProt"
2376#define CFG_AP_OBSS_PROTECTION_MODE_MIN (0)
2377#define CFG_AP_OBSS_PROTECTION_MODE_MAX (1)
2378#define CFG_AP_OBSS_PROTECTION_MODE_DEFAULT (0)
2379
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302380/*
2381 * <ini>
2382 * gDisableIntraBssFwd - Disable intrs BSS Rx packets
2383 * @Min: 0
2384 * @Max: 1
2385 * @Default: 0
2386 *
2387 * This ini is used to disbale to forward Intra-BSS Rx packets when
2388 * ap_isolate=1 in hostapd.conf
2389 *
2390 * Related: None.
2391 *
2392 * Supported Feature: SAP
2393 *
2394 * Usage: Internal/External
2395 *
2396 * </ini>
2397 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002398#define CFG_AP_STA_SECURITY_SEPERATION_NAME "gDisableIntraBssFwd"
2399#define CFG_AP_STA_SECURITY_SEPERATION_MIN (0)
2400#define CFG_AP_STA_SECURITY_SEPERATION_MAX (1)
2401#define CFG_AP_STA_SECURITY_SEPERATION_DEFAULT (0)
2402
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302403/*
2404 * <ini>
2405 * gAPAutoShutOff - Auto shutdown when timer expires
2406 * @Min: 0
2407 * @Max: 4294967295UL
2408 * @Default: 0
2409 *
2410 * This ini is used to configure timer value to shutdown AP once timer expired
2411 *
2412 * Related: None.
2413 *
2414 * Supported Feature: SAP
2415 *
2416 * Usage: Internal/External
2417 *
2418 * </ini>
2419 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002420#define CFG_AP_AUTO_SHUT_OFF "gAPAutoShutOff"
2421#define CFG_AP_AUTO_SHUT_OFF_MIN (0)
2422#define CFG_AP_AUTO_SHUT_OFF_MAX (4294967295UL)
2423#define CFG_AP_AUTO_SHUT_OFF_DEFAULT (0)
2424
Sreelakshmi Konamki13b5ad52017-01-30 10:48:26 +05302425/*
2426 * <ini>
2427 * gApKeepAlivePeriod - AP keep alive period
2428 * @Min: 1
2429 * @Max: 65535
2430 * @Default: 20
2431 *
2432 * This ini is used to set keep alive period of AP
2433 *
2434 * Related: None.
2435 *
2436 * Supported Feature: SAP
2437 *
2438 * Usage: Internal/External
2439 *
2440 * </ini>
2441 */
2442#define CFG_AP_KEEP_ALIVE_PERIOD_NAME "gApKeepAlivePeriod"
2443#define CFG_AP_KEEP_ALIVE_PERIOD_MIN WNI_CFG_AP_KEEP_ALIVE_TIMEOUT_STAMIN
2444#define CFG_AP_KEEP_ALIVE_PERIOD_MAX WNI_CFG_AP_KEEP_ALIVE_TIMEOUT_STAMAX
2445#define CFG_AP_KEEP_ALIVE_PERIOD_DEFAULT WNI_CFG_AP_KEEP_ALIVE_TIMEOUT_STADEF
2446
2447/*
2448 * <ini>
2449 * gApLinkMonitorPeriod - AP keep alive period
2450 * @Min: 3
2451 * @Max: 50
2452 * @Default: 10
2453 *
2454 * This ini is used to configure AP link monitor timeout value
2455 *
2456 * Related: None.
2457 *
2458 * Supported Feature: SAP
2459 *
2460 * Usage: Internal/External
2461 *
2462 * </ini>
2463 */
2464#define CFG_AP_LINK_MONITOR_PERIOD_NAME "gApLinkMonitorPeriod"
2465#define CFG_AP_LINK_MONITOR_PERIOD_MIN (3)
2466#define CFG_AP_LINK_MONITOR_PERIOD_MAX (50)
2467#define CFG_AP_LINK_MONITOR_PERIOD_DEFAULT (10)
2468
2469/*
2470 * <ini>
2471 * gBeaconInterval - Beacon interval for SoftAP
2472 * @Min: 0
2473 * @Max: 65535
2474 * @Default: 100
2475 *
2476 * This ini is used to set beacon interval for SoftAP
2477 *
2478 * Related: None.
2479 *
2480 * Supported Feature: SAP
2481 *
2482 * Usage: Internal/External
2483 *
2484 * </ini>
2485 */
2486#define CFG_BEACON_INTERVAL_NAME "gBeaconInterval"
2487#define CFG_BEACON_INTERVAL_MIN WNI_CFG_BEACON_INTERVAL_STAMIN
2488#define CFG_BEACON_INTERVAL_MAX WNI_CFG_BEACON_INTERVAL_STAMAX
2489#define CFG_BEACON_INTERVAL_DEFAULT WNI_CFG_BEACON_INTERVAL_STADEF
2490
2491/*
2492 * <ini>
2493 * gEnableVSTASupport - Enable/disable VSTA support
2494 * @Min: 0
2495 * @Max: 1
2496 * @Default: 0
2497 *
2498 * This ini is used to enable/disable VSTA based on max assoc limit.
2499 * Enable to have maximum 32 STA (P2P GC) on DUT as P2P GO or SAP
2500 *
2501 * Related: None.
2502 *
2503 * Supported Feature: SAP
2504 *
2505 * Usage: Internal/External
2506 *
2507 * </ini>
2508 */
2509#ifdef WLAN_SOFTAP_VSTA_FEATURE
2510#define CFG_VSTA_SUPPORT_ENABLE "gEnableVSTASupport"
2511#define CFG_VSTA_SUPPORT_ENABLE_MIN (0)
2512#define CFG_VSTA_SUPPORT_ENABLE_MAX (1)
2513#define CFG_VSTA_SUPPORT_ENABLE_DEFAULT (0)
2514#endif
2515
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002516#ifdef FEATURE_WLAN_AUTO_SHUTDOWN
2517#define CFG_WLAN_AUTO_SHUTDOWN "gWlanAutoShutdown"
2518#define CFG_WLAN_AUTO_SHUTDOWN_MIN (0)
2519#define CFG_WLAN_AUTO_SHUTDOWN_MAX (86400) /* Max 1 day timeout */
2520#define CFG_WLAN_AUTO_SHUTDOWN_DEFAULT (0)
2521#endif
2522
2523#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
Nitesh Shah03161d12016-12-06 18:30:12 +05302524/*
2525 * <ini>
2526 * gWlanMccToSccSwitchMode - Control SAP channel.
2527 * @Min: 0
2528 * @Max: 2
2529 * @Default: 0
2530 *
2531 * This ini is used to override SAP channel.
2532 * If gWlanMccToSccSwitchMode = 0: disabled.
2533 * If gWlanMccToSccSwitchMode = 1: override to SCC if channel overlap in
2534 * same band.
2535 * If gWlanMccToSccSwitchMode = 2: force to SCC in same band.
2536 *
2537 * Related: None.
2538 *
2539 * Supported Feature: Concurrency
2540 *
2541 * Usage: Internal/External
2542 *
2543 * </ini>
2544 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002545#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE "gWlanMccToSccSwitchMode"
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05302546#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE_MIN (QDF_MCC_TO_SCC_SWITCH_DISABLE)
Manishekar Chandrasekaran1db3abe2016-06-24 03:27:07 +05302547#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE_MAX \
2548 (QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNEL)
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05302549#define CFG_WLAN_MCC_TO_SCC_SWITCH_MODE_DEFAULT (QDF_MCC_TO_SCC_SWITCH_DISABLE)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002550#endif
2551
2552#define CFG_DISABLE_PACKET_FILTER "gDisablePacketFilter"
2553#define CFG_DISABLE_PACKET_FILTER_MIN (0)
2554#define CFG_DISABLE_PACKET_FILTER_MAX (0x1)
2555#define CFG_DISABLE_PACKET_FILTER_DEFAULT (0)
2556
2557#define CFG_ENABLE_LTE_COEX "gEnableLTECoex"
2558#define CFG_ENABLE_LTE_COEX_MIN (0)
2559#define CFG_ENABLE_LTE_COEX_MAX (1)
2560#define CFG_ENABLE_LTE_COEX_DEFAULT (0)
2561
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002562#define CFG_GO_KEEP_ALIVE_PERIOD_NAME "gGoKeepAlivePeriod"
2563#define CFG_GO_KEEP_ALIVE_PERIOD_MIN WNI_CFG_GO_KEEP_ALIVE_TIMEOUT_STAMIN
2564#define CFG_GO_KEEP_ALIVE_PERIOD_MAX WNI_CFG_GO_KEEP_ALIVE_TIMEOUT_STAMAX
2565#define CFG_GO_KEEP_ALIVE_PERIOD_DEFAULT WNI_CFG_GO_KEEP_ALIVE_TIMEOUT_STADEF
2566
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002567/* gGoLinkMonitorPeriod is period where link is idle and where
2568 * we send NULL frame
2569 */
2570#define CFG_GO_LINK_MONITOR_PERIOD_NAME "gGoLinkMonitorPeriod"
2571#define CFG_GO_LINK_MONITOR_PERIOD_MIN (3)
2572#define CFG_GO_LINK_MONITOR_PERIOD_MAX (50)
2573#define CFG_GO_LINK_MONITOR_PERIOD_DEFAULT (10)
2574
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002575#define CFG_VCC_RSSI_TRIGGER_NAME "gVccRssiTrigger"
2576#define CFG_VCC_RSSI_TRIGGER_MIN (0)
2577#define CFG_VCC_RSSI_TRIGGER_MAX (80)
2578#define CFG_VCC_RSSI_TRIGGER_DEFAULT (80)
2579
2580#define CFG_VCC_UL_MAC_LOSS_THRESH_NAME "gVccUlMacLossThresh"
2581#define CFG_VCC_UL_MAC_LOSS_THRESH_MIN (0)
2582#define CFG_VCC_UL_MAC_LOSS_THRESH_MAX (9)
2583#define CFG_VCC_UL_MAC_LOSS_THRESH_DEFAULT (9)
2584
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002585#define CFG_RETRY_LIMIT_ZERO_NAME "gRetryLimitZero"
2586#define CFG_RETRY_LIMIT_ZERO_MIN (0)
2587#define CFG_RETRY_LIMIT_ZERO_MAX (15)
2588#define CFG_RETRY_LIMIT_ZERO_DEFAULT (5)
2589
2590#define CFG_RETRY_LIMIT_ONE_NAME "gRetryLimitOne"
2591#define CFG_RETRY_LIMIT_ONE_MIN (0)
2592#define CFG_RETRY_LIMIT_ONE_MAX (15)
2593#define CFG_RETRY_LIMIT_ONE_DEFAULT (10)
2594
2595#define CFG_RETRY_LIMIT_TWO_NAME "gRetryLimitTwo"
2596#define CFG_RETRY_LIMIT_TWO_MIN (0)
2597#define CFG_RETRY_LIMIT_TWO_MAX (15)
2598#define CFG_RETRY_LIMIT_TWO_DEFAULT (15)
2599
2600#ifdef WLAN_AP_STA_CONCURRENCY
Nitesh Shah03161d12016-12-06 18:30:12 +05302601/*
2602 * <ini>
2603 * gPassiveMaxChannelTimeConc - Maximum passive scan time in milliseconds.
2604 * @Min: 0
2605 * @Max: 10000
2606 * @Default: 110
2607 *
2608 * This ini is used to set maximum passive scan time in STA+SAP concurrent
2609 * mode.
2610 *
2611 * Related: None.
2612 *
2613 * Supported Feature: Concurrency
2614 *
2615 * Usage: Internal/External
2616 *
2617 * </ini>
2618 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002619#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_NAME "gPassiveMaxChannelTimeConc"
2620#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_MIN (0)
2621#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_MAX (10000)
2622#define CFG_PASSIVE_MAX_CHANNEL_TIME_CONC_DEFAULT (110)
2623
Nitesh Shah03161d12016-12-06 18:30:12 +05302624/*
2625 * <ini>
2626 * gPassiveMinChannelTimeConc - Minimum passive scan time in milliseconds.
2627 * @Min: 0
2628 * @Max: 10000
2629 * @Default: 60
2630 *
2631 * This ini is used to set minimum passive scan time in STA+SAP concurrent
2632 * mode.
2633 *
2634 * Related: None.
2635 *
2636 * Supported Feature: Concurrency
2637 *
2638 * Usage: Internal/External
2639 *
2640 * </ini>
2641 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002642#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_NAME "gPassiveMinChannelTimeConc"
2643#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_MIN (0)
2644#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_MAX (10000)
2645#define CFG_PASSIVE_MIN_CHANNEL_TIME_CONC_DEFAULT (60)
2646
Nitesh Shah03161d12016-12-06 18:30:12 +05302647/*
2648 * <ini>
2649 * gActiveMaxChannelTimeConc - Maximum active scan time in milliseconds.
2650 * @Min: 0
2651 * @Max: 10000
2652 * @Default: 40
2653 *
2654 * This ini is used to set maximum active scan time in STA+SAP concurrent
2655 * mode.
2656 *
2657 * Related: None.
2658 *
2659 * Supported Feature: Concurrency
2660 *
2661 * Usage: Internal/External
2662 *
2663 * </ini>
2664 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002665#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_NAME "gActiveMaxChannelTimeConc"
2666#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_MIN (0)
2667#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_MAX (10000)
2668#define CFG_ACTIVE_MAX_CHANNEL_TIME_CONC_DEFAULT (40)
2669
Nitesh Shah03161d12016-12-06 18:30:12 +05302670/*
2671 * <ini>
2672 * gActiveMinChannelTimeConc - Minimum active scan time in milliseconds..
2673 * @Min: 0
2674 * @Max: 10000
2675 * @Default: 20
2676 *
2677 * This ini is used to set minimum active scan time in STA+SAP concurrent
2678 * mode.
2679 *
2680 * Related: None.
2681 *
2682 * Supported Feature: Concurrency
2683 *
2684 * Usage: Internal/External
2685 *
2686 * </ini>
2687 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002688#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_NAME "gActiveMinChannelTimeConc"
2689#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_MIN (0)
2690#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_MAX (10000)
2691#define CFG_ACTIVE_MIN_CHANNEL_TIME_CONC_DEFAULT (20)
2692
Nitesh Shah03161d12016-12-06 18:30:12 +05302693/*
2694 * <ini>
2695 * gRestTimeConc - Rest time before moving to a new channel to scan.
2696 * @Min: 0
2697 * @Max: 10000
2698 * @Default: 100
2699 *
2700 * This ini is used to configure rest time.
2701 *
2702 * Related: None.
2703 *
2704 * Supported Feature: Concurrency
2705 *
2706 * Usage: Internal/External
2707 *
2708 * </ini>
2709 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002710#define CFG_REST_TIME_CONC_NAME "gRestTimeConc"
2711#define CFG_REST_TIME_CONC_MIN (0)
2712#define CFG_REST_TIME_CONC_MAX (10000)
2713#define CFG_REST_TIME_CONC_DEFAULT (100)
2714
Nitesh Shah03161d12016-12-06 18:30:12 +05302715/*
2716 * <ini>
2717 * gMinRestTimeConc - Mininum time spent on home channel before moving to a
2718 * new channel to scan.
2719 * @Min: 0
2720 * @Max: 50
2721 * @Default: 50
2722 *
2723 * This ini is used to configure minimum time spent on home channel before
2724 * moving to a new channel to scan.
2725 *
2726 * Related: None.
2727 *
2728 * Supported Feature: Concurrency
2729 *
2730 * Usage: Internal/External
2731 *
2732 * </ini>
2733 */
Agrawal Ashish17bb3902016-05-05 13:29:40 +05302734#define CFG_MIN_REST_TIME_NAME "gMinRestTimeConc"
2735#define CFG_MIN_REST_TIME_MIN (0)
2736#define CFG_MIN_REST_TIME_MAX (50)
2737#define CFG_MIN_REST_TIME_DEFAULT (50)
2738
Nitesh Shah03161d12016-12-06 18:30:12 +05302739/*
2740 * <ini>
2741 * gIdleTimeConc - Data inactivity time in msec.
2742 * @Min: 0
2743 * @Max: 25
2744 * @Default: 25
2745 *
2746 * This ini is used to configure data inactivity time in msec on bss channel
2747 * that will be used by scan engine in firmware.
2748 * For example if this value is 25ms then firmware will check for data
2749 * inactivity every 25ms till gRestTimeConc is reached.
2750 * If inactive then scan engine will move from home channel to scan the next
2751 * frequency.
2752 *
2753 * Related: None.
2754 *
2755 * Supported Feature: Concurrency
2756 *
2757 * Usage: Internal/External
2758 *
2759 * </ini>
Agrawal Ashish17bb3902016-05-05 13:29:40 +05302760 */
2761#define CFG_IDLE_TIME_NAME "gIdleTimeConc"
2762#define CFG_IDLE_TIME_MIN (0)
2763#define CFG_IDLE_TIME_MAX (25)
2764#define CFG_IDLE_TIME_DEFAULT (25)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002765#endif
2766
2767#define CFG_MAX_PS_POLL_NAME "gMaxPsPoll"
2768#define CFG_MAX_PS_POLL_MIN WNI_CFG_MAX_PS_POLL_STAMIN
2769#define CFG_MAX_PS_POLL_MAX WNI_CFG_MAX_PS_POLL_STAMAX
2770#define CFG_MAX_PS_POLL_DEFAULT WNI_CFG_MAX_PS_POLL_STADEF
2771
2772#define CFG_MAX_TX_POWER_NAME "gTxPowerCap"
2773#define CFG_MAX_TX_POWER_MIN WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMIN
2774#define CFG_MAX_TX_POWER_MAX WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMAX
2775/* Not to use CFG default because if no registry setting, this is ignored by SME. */
2776#define CFG_MAX_TX_POWER_DEFAULT WNI_CFG_CURRENT_TX_POWER_LEVEL_STAMAX
2777
Padma, Santhosh Kumar29df3622016-08-16 19:15:16 +05302778/* This ini controls driver to honor/dishonor power constraint from AP */
2779#define CFG_TX_POWER_CTRL_NAME "gAllowTPCfromAP"
2780#define CFG_TX_POWER_CTRL_DEFAULT (1)
2781#define CFG_TX_POWER_CTRL_MIN (0)
2782#define CFG_TX_POWER_CTRL_MAX (1)
2783
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302784/*
2785 * <ini>
2786 * gLowGainOverride - Indicates Low Gain Override
2787 * @Min: 0
2788 * @Max: 1
2789 * @Default: 0
2790 *
2791 * This ini is used to set default Low Gain Override
2792 *
2793 * Related: None
2794 *
2795 * Supported Feature: STA
2796 *
2797 * Usage: Internal/External
2798 *
2799 * </ini>
2800 */
2801
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002802#define CFG_LOW_GAIN_OVERRIDE_NAME "gLowGainOverride"
2803#define CFG_LOW_GAIN_OVERRIDE_MIN WNI_CFG_LOW_GAIN_OVERRIDE_STAMIN
2804#define CFG_LOW_GAIN_OVERRIDE_MAX WNI_CFG_LOW_GAIN_OVERRIDE_STAMAX
2805#define CFG_LOW_GAIN_OVERRIDE_DEFAULT WNI_CFG_LOW_GAIN_OVERRIDE_STADEF
2806
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302807/*
2808 * <ini>
2809 * gRssiFilterPeriod - Enable gRssi Filter for RSSI Monitoring
2810 * @Min: STAMIN
2811 * @Max: STAMAX
2812 * @Default: STADEF
2813 *
2814 * This ini is used to Increased this value for Non-ESE AP this is cause FW
2815 * RSSI Monitoring the consumer of this value is ON by default. So to impact
2816 * power numbers we are setting this to a high value.
2817 *
2818 * Related: None
2819 *
2820 * Supported Feature: STA
2821 *
2822 * Usage: Internal/External
2823 *
2824 * </ini>
2825 */
2826
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002827#define CFG_RSSI_FILTER_PERIOD_NAME "gRssiFilterPeriod"
2828#define CFG_RSSI_FILTER_PERIOD_MIN WNI_CFG_RSSI_FILTER_PERIOD_STAMIN
2829#define CFG_RSSI_FILTER_PERIOD_MAX WNI_CFG_RSSI_FILTER_PERIOD_STAMAX
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002830#define CFG_RSSI_FILTER_PERIOD_DEFAULT WNI_CFG_RSSI_FILTER_PERIOD_STADEF
2831
2832#define CFG_IGNORE_DTIM_NAME "gIgnoreDtim"
2833#define CFG_IGNORE_DTIM_MIN WNI_CFG_IGNORE_DTIM_STAMIN
2834#define CFG_IGNORE_DTIM_MAX WNI_CFG_IGNORE_DTIM_STAMAX
2835#define CFG_IGNORE_DTIM_DEFAULT WNI_CFG_IGNORE_DTIM_STADEF
2836
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302837/*
2838 * <ini>
2839 * gMaxLIModulatedDTIM - Set MaxLIModulate Dtim
2840 * @Min: 1
2841 * @Max: 10
2842 * @Default: 10
2843 *
2844 * This ini is used to set default MaxLIModulatedDTIM
2845 *
2846 * Related: None
2847 *
2848 * Supported Feature: STA
2849 *
2850 * Usage: Internal/External
2851 *
2852 * </ini>
2853 */
2854
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002855#define CFG_MAX_LI_MODULATED_DTIM_NAME "gMaxLIModulatedDTIM"
2856#define CFG_MAX_LI_MODULATED_DTIM_MIN (1)
2857#define CFG_MAX_LI_MODULATED_DTIM_MAX (10)
2858#define CFG_MAX_LI_MODULATED_DTIM_DEFAULT (10)
2859
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302860/*
2861 * <ini>
2862 * gEnableFWHeartBeatMonitoring - Enable FWHeartBeat Monitor
2863 * @Min: 0
2864 * @Max: 1
2865 * @Default: 1
2866 *
2867 * This ini is used to set default FWHeartBeat Monitor
2868 *
2869 * Related: None
2870 *
2871 * Supported Feature: STA
2872 *
2873 * Usage: Internal/External
2874 *
2875 * </ini>
2876 */
2877
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002878#define CFG_FW_HEART_BEAT_MONITORING_NAME "gEnableFWHeartBeatMonitoring"
2879#define CFG_FW_HEART_BEAT_MONITORING_MIN (0)
2880#define CFG_FW_HEART_BEAT_MONITORING_MAX (1)
2881#define CFG_FW_HEART_BEAT_MONITORING_DEFAULT (1)
2882
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302883/*
2884 * <ini>
2885 * gEnableFWBeaconFiltering - Enable FWBeacon Filter
2886 * @Min: 0
2887 * @Max: 1
2888 * @Default: 1
2889 *
2890 * This ini is used to set default FWBeacon Filter
2891 *
2892 * Related: None
2893 *
2894 * Supported Feature: STA
2895 *
2896 * Usage: Internal/External
2897 *
2898 * </ini>
2899 */
2900
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002901#define CFG_FW_BEACON_FILTERING_NAME "gEnableFWBeaconFiltering"
2902#define CFG_FW_BEACON_FILTERING_MIN (0)
2903#define CFG_FW_BEACON_FILTERING_MAX (1)
2904#define CFG_FW_BEACON_FILTERING_DEFAULT (1)
2905
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302906/*
2907 * <ini>
2908 * gEnableFWRssiMonitoring - Enable FWRssi Monitor
2909 * @Min: 0
2910 * @Max: 1
2911 * @Default: 1
2912 *
2913 * This ini is used to set default FWRssi Monitor
2914 *
2915 * Related: None
2916 *
2917 * Supported Feature: STA
2918 *
2919 * Usage: Internal/External
2920 *
2921 * </ini>
2922 */
2923
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002924#define CFG_FW_RSSI_MONITORING_NAME "gEnableFWRssiMonitoring"
2925#define CFG_FW_RSSI_MONITORING_MIN (0)
2926#define CFG_FW_RSSI_MONITORING_MAX (1)
2927#define CFG_FW_RSSI_MONITORING_DEFAULT (1)
2928
Nitesh Shah03161d12016-12-06 18:30:12 +05302929/*
2930 * <ini>
2931 * gFWMccRtsCtsProtection - RTS-CTS protection in MCC.
2932 * @Min: 0
2933 * @Max: 1
2934 * @Default: 0
2935 *
2936 * This ini is used to enable/disable use of long duration RTS-CTS protection
2937 * when SAP goes off channel in MCC mode.
2938 *
2939 * Related: None.
2940 *
2941 * Supported Feature: Concurrency
2942 *
2943 * Usage: Internal/External
2944 *
2945 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002946 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302947
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002948#define CFG_FW_MCC_RTS_CTS_PROT_NAME "gFWMccRtsCtsProtection"
2949#define CFG_FW_MCC_RTS_CTS_PROT_MIN (0)
2950#define CFG_FW_MCC_RTS_CTS_PROT_MAX (1)
2951#define CFG_FW_MCC_RTS_CTS_PROT_DEFAULT (0)
2952
Nitesh Shah03161d12016-12-06 18:30:12 +05302953/*
2954 * <ini>
2955 * gFWMccBCastProbeResponse - Broadcast Probe Response in MCC.
2956 * @Min: 0
2957 * @Max: 1
2958 * @Default: 0
2959 *
2960 * This ini is used to enable/disable use of broadcast probe response to
2961 * increase the detectability of SAP in MCC mode.
2962 *
2963 * Related: None.
2964 *
2965 * Supported Feature: Concurrency
2966 *
2967 * Usage: Internal/External
2968 *
2969 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002970 */
2971#define CFG_FW_MCC_BCAST_PROB_RESP_NAME "gFWMccBCastProbeResponse"
2972#define CFG_FW_MCC_BCAST_PROB_RESP_MIN (0)
2973#define CFG_FW_MCC_BCAST_PROB_RESP_MAX (1)
2974#define CFG_FW_MCC_BCAST_PROB_RESP_DEFAULT (0)
2975
Mukul Sharmaed92f2f2017-04-20 00:06:28 +05302976/*
2977 * <ini>
2978 * gDataInactivityTimeout - Data activity timeout for non wow mode.
2979 * @Min: 1
2980 * @Max: 255
2981 * @Default: 200
2982 *
2983 * This ini is used to set data inactivity timeout in non wow mode.
2984 *
2985 * Supported Feature: inactivity timeout in non wow mode
2986 *
2987 * Usage: External
2988 *
2989 * </ini>
2990 */
2991
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002992#define CFG_DATA_INACTIVITY_TIMEOUT_NAME "gDataInactivityTimeout"
2993#define CFG_DATA_INACTIVITY_TIMEOUT_MIN (1)
2994#define CFG_DATA_INACTIVITY_TIMEOUT_MAX (255)
Jeff Johnson9c9be712016-09-02 14:02:31 -07002995#define CFG_DATA_INACTIVITY_TIMEOUT_DEFAULT (200)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08002996
Sen, Devendra9ca8c432017-02-23 15:10:26 +05302997/*
2998 * <ini>
Mukul Sharmaed92f2f2017-04-20 00:06:28 +05302999 * g_wow_data_inactivity_timeout - Data activity timeout in wow mode.
3000 * @Min: 1
3001 * @Max: 255
3002 * @Default: 50
3003 *
3004 * This ini is used to set data inactivity timeout in wow mode.
3005 *
3006 * Supported Feature: inactivity timeout in wow mode
3007 *
3008 * Usage: External
3009 *
3010 * </ini>
3011 */
3012#define CFG_WOW_DATA_INACTIVITY_TIMEOUT_NAME "g_wow_data_inactivity_timeout"
3013#define CFG_WOW_DATA_INACTIVITY_TIMEOUT_MIN (1)
3014#define CFG_WOW_DATA_INACTIVITY_TIMEOUT_MAX (255)
3015#define CFG_WOW_DATA_INACTIVITY_TIMEOUT_DEFAULT (50)
3016
3017/*
3018 * <ini>
Sen, Devendra9ca8c432017-02-23 15:10:26 +05303019 * rfSettlingTimeUs - Settle the TimeUs
3020 * @Min: 0
3021 * @Max: 60000
3022 * @Default: 1500
3023 *
3024 * This ini is used to set default TimeUs
3025 *
3026 * Related: None
3027 *
3028 * Supported Feature: STA
3029 *
3030 * Usage: Internal/External
3031 *
3032 * </ini>
3033 */
3034
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003035#define CFG_RF_SETTLING_TIME_CLK_NAME "rfSettlingTimeUs"
3036#define CFG_RF_SETTLING_TIME_CLK_MIN (0)
3037#define CFG_RF_SETTLING_TIME_CLK_MAX (60000)
3038#define CFG_RF_SETTLING_TIME_CLK_DEFAULT (1500)
3039
Sen, Devendra9ca8c432017-02-23 15:10:26 +05303040/*
3041 * <ini>
3042 * gStaKeepAlivePeriod - Sends NULL frame to AP periodically in
3043 * seconds to notify STA's existence
3044 * @Min: 0
3045 * @Max: 65535
3046 * @Default: 30
3047 *
3048 * This ini is used to send default NULL frame to AP
3049 *
3050 * Related: None
3051 *
3052 * Supported Feature: STA
3053 *
3054 * Usage: Internal/External
3055 *
3056 * </ini>
3057 */
3058
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003059#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_NAME "gStaKeepAlivePeriod"
3060#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_MIN (0)
3061#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_MAX (65535)
Dustin Brownf5108872017-02-01 10:51:50 -08003062#define CFG_INFRA_STA_KEEP_ALIVE_PERIOD_DEFAULT (90)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003063
Dustin Brownb6b0f182017-03-08 13:08:27 -08003064/**
3065 * enum station_keepalive_method - available keepalive methods for stations
3066 * @HDD_STA_KEEPALIVE_NULL_DATA: null data packet
3067 * @HDD_STA_KEEPALIVE_GRAT_ARP: gratuitous ARP packet
3068 * @HDD_STA_KEEPALIVE_COUNT: number of method options available
3069 */
3070enum station_keepalive_method {
3071 HDD_STA_KEEPALIVE_NULL_DATA,
3072 HDD_STA_KEEPALIVE_GRAT_ARP,
3073 /* keep at the end */
3074 HDD_STA_KEEPALIVE_COUNT
3075};
3076
3077/*
3078 * <ini>
3079 * gStaKeepAliveMethod - Which keepalive method to use
3080 * @Min: 0
3081 * @Max: 1
3082 * @Default: 1
3083 *
3084 * This ini determines which keepalive method to use for station interfaces
3085 * 1) Use null data packets
3086 * 2) Use gratuitous ARP packets
3087 *
3088 * Related: gStaKeepAlivePeriod, gApKeepAlivePeriod, gGoKeepAlivePeriod
3089 *
3090 * Supported Feature: STA, Keepalive
3091 *
3092 * Usage: Internal/External
3093 *
3094 * </ini>
3095 */
3096#define CFG_STA_KEEPALIVE_METHOD_NAME "gStaKeepAliveMethod"
3097#define CFG_STA_KEEPALIVE_METHOD_MIN (HDD_STA_KEEPALIVE_NULL_DATA)
3098#define CFG_STA_KEEPALIVE_METHOD_MAX (HDD_STA_KEEPALIVE_COUNT - 1)
3099#define CFG_STA_KEEPALIVE_METHOD_DEFAULT (HDD_STA_KEEPALIVE_GRAT_ARP)
3100
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003101/* WMM configuration */
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303102/*
3103 * <ini>
3104 * WmmIsEnabled - Enable WMM feature
3105 * @Min: 0
3106 * @Max: 2
3107 * @Default: 0
3108 *
3109 * This ini is used to enable/disable WMM.
3110 *
3111 * Related: None.
3112 *
3113 * Supported Feature: WMM
3114 *
3115 * Usage: Internal/External
3116 *
3117 * </ini>
3118 */
3119#define CFG_QOS_WMM_MODE_NAME "WmmIsEnabled"
3120#define CFG_QOS_WMM_MODE_MIN (0)
3121#define CFG_QOS_WMM_MODE_MAX (2) /* HDD_WMM_NO_QOS */
3122#define CFG_QOS_WMM_MODE_DEFAULT (0) /* HDD_WMM_AUTO */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003123
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303124/*
3125 * <ini>
3126 * 80211eIsEnabled - Enable 802.11e feature
3127 * @Min: 0
3128 * @Max: 1
3129 * @Default: 0
3130 *
3131 * This ini is used to enable/disable 802.11e.
3132 *
3133 * Related: None.
3134 *
3135 * Supported Feature: 802.11e
3136 *
3137 * Usage: Internal/External
3138 *
3139 * </ini>
3140 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003141#define CFG_QOS_WMM_80211E_ENABLED_NAME "80211eIsEnabled"
3142#define CFG_QOS_WMM_80211E_ENABLED_MIN (0)
3143#define CFG_QOS_WMM_80211E_ENABLED_MAX (1)
3144#define CFG_QOS_WMM_80211E_ENABLED_DEFAULT (0)
3145
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303146/*
3147 * <ini>
3148 * UapsdMask - To setup U-APSD mask for ACs
3149 * @Min: 0x00
3150 * @Max: 0xFF
3151 * @Default: 0x00
3152 *
3153 * This ini is used to setup U-APSD mask for ACs.
3154 *
3155 * Related: None.
3156 *
3157 * Supported Feature: WMM
3158 *
3159 * Usage: Internal/External
3160 *
3161 * </ini>
3162 */
3163#define CFG_QOS_WMM_UAPSD_MASK_NAME "UapsdMask"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003164#define CFG_QOS_WMM_UAPSD_MASK_MIN (0x00)
3165#define CFG_QOS_WMM_UAPSD_MASK_MAX (0xFF)
3166#define CFG_QOS_WMM_UAPSD_MASK_DEFAULT (0x00)
3167
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303168/*
3169 * <ini>
3170 * ImplicitQosIsEnabled - Enableimplicit QOS
3171 * @Min: 0
3172 * @Max: 1
3173 * @Default: 0
3174 *
3175 * This ini is used to enable/disable implicit QOS.
3176 *
3177 * Related: None.
3178 *
3179 * Supported Feature: WMM
3180 *
3181 * Usage: Internal/External
3182 *
3183 * </ini>
3184 */
3185#define CFG_QOS_IMPLICIT_SETUP_ENABLED_NAME "ImplicitQosIsEnabled"
3186#define CFG_QOS_IMPLICIT_SETUP_ENABLED_MIN (0)
3187#define CFG_QOS_IMPLICIT_SETUP_ENABLED_MAX (1)
3188#define CFG_QOS_IMPLICIT_SETUP_ENABLED_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003189
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303190/*
3191 * <ini>
3192 * InfraUapsdVoSrvIntv - Set Uapsd service interval for voice
3193 * @Min: 0
3194 * @Max: 4294967295UL
3195 * @Default: 20
3196 *
3197 * This ini is used to set Uapsd service interval for voice.
3198 *
3199 * Related: None.
3200 *
3201 * Supported Feature: WMM
3202 *
3203 * Usage: Internal/External
3204 *
3205 * </ini>
3206 */
3207#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_NAME "InfraUapsdVoSrvIntv"
3208#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_MIN (0)
3209#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_MAX (4294967295UL)
3210#define CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_DEFAULT (20)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003211
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303212/*
3213 * <ini>
3214 * InfraUapsdVoSuspIntv - Set Uapsd suspension interval for voice
3215 * @Min: 0
3216 * @Max: 4294967295UL
3217 * @Default: 2000
3218 *
3219 * This ini is used to set Uapsd suspension interval for voice.
3220 *
3221 * Related: None.
3222 *
3223 * Supported Feature: WMM
3224 *
3225 * Usage: Internal/External
3226 *
3227 * </ini>
3228 */
3229#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_NAME "InfraUapsdVoSuspIntv"
3230#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_MIN (0)
3231#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_MAX (4294967295UL)
3232#define CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_DEFAULT (2000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003233
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303234/*
3235 * <ini>
3236 * InfraUapsdViSrvIntv - Set Uapsd service interval for video
3237 * @Min: 0
3238 * @Max: 4294967295UL
3239 * @Default: 300
3240 *
3241 * This ini is used to set Uapsd service interval for video.
3242 *
3243 * Related: None.
3244 *
3245 * Supported Feature: WMM
3246 *
3247 * Usage: Internal/External
3248 *
3249 * </ini>
3250 */
3251#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_NAME "InfraUapsdViSrvIntv"
3252#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_MIN (0)
3253#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_MAX (4294967295UL)
3254#define CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_DEFAULT (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003255
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303256/*
3257 * <ini>
3258 * InfraUapsdViSuspIntv - Set Uapsd suspension interval for video
3259 * @Min: 0
3260 * @Max: 4294967295UL
3261 * @Default: 2000
3262 *
3263 * This ini is used to set Uapsd suspension interval for video
3264 *
3265 * Related: None.
3266 *
3267 * Supported Feature: WMM
3268 *
3269 * Usage: Internal/External
3270 *
3271 * </ini>
3272 */
3273#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_NAME "InfraUapsdViSuspIntv"
3274#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_MIN (0)
3275#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_MAX (4294967295UL)
3276#define CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_DEFAULT (2000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003277
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303278/*
3279 * <ini>
3280 * InfraUapsdBeSrvIntv - Set Uapsd service interval for BE
3281 * @Min: 0
3282 * @Max: 4294967295UL
3283 * @Default: 300
3284 *
3285 * This ini is used to set Uapsd service interval for BE
3286 *
3287 * Related: None.
3288 *
3289 * Supported Feature: WMM
3290 *
3291 * Usage: Internal/External
3292 *
3293 * </ini>
3294 */
3295#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_NAME "InfraUapsdBeSrvIntv"
3296#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_MIN (0)
3297#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_MAX (4294967295UL)
3298#define CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_DEFAULT (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003299
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303300/*
3301 * <ini>
3302 * InfraUapsdBeSuspIntv - Set Uapsd suspension interval for BE
3303 * @Min: 0
3304 * @Max: 4294967295UL
3305 * @Default: 2000
3306 *
3307 * This ini is used to set Uapsd suspension interval for BE
3308 *
3309 * Related: None.
3310 *
3311 * Supported Feature: WMM
3312 *
3313 * Usage: Internal/External
3314 *
3315 * </ini>
3316 */
3317#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_NAME "InfraUapsdBeSuspIntv"
3318#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_MIN (0)
3319#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_MAX (4294967295UL)
3320#define CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_DEFAULT (2000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003321
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303322/*
3323 * <ini>
3324 * InfraUapsdBkSrvIntv - Set Uapsd service interval for BK
3325 * @Min: 0
3326 * @Max: 4294967295UL
3327 * @Default: 300
3328 *
3329 * This ini is used to set Uapsd service interval for BK
3330 *
3331 * Related: None.
3332 *
3333 * Supported Feature: WMM
3334 *
3335 * Usage: Internal/External
3336 *
3337 * </ini>
3338 */
3339#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_NAME "InfraUapsdBkSrvIntv"
3340#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_MIN (0)
3341#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_MAX (4294967295UL)
3342#define CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_DEFAULT (300)
3343
3344/*
3345 * <ini>
3346 * InfraUapsdBkSuspIntv - Set Uapsd suspension interval for BK
3347 * @Min: 0
3348 * @Max: 4294967295UL
3349 * @Default: 2000
3350 *
3351 * This ini is used to set Uapsd suspension interval for BK
3352 *
3353 * Related: None.
3354 *
3355 * Supported Feature: WMM
3356 *
3357 * Usage: Internal/External
3358 *
3359 * </ini>
3360 */
3361#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_NAME "InfraUapsdBkSuspIntv"
3362#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_MIN (0)
3363#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_MAX (4294967295UL)
3364#define CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_DEFAULT (2000)
3365
3366/* default TSPEC parameters for AC_VO */
3367/*
3368 * <ini>
3369 * InfraDirAcVo - Set TSPEC direction for VO
3370 * @Min: 0
3371 * @Max: 3
3372 * @Default: 3
3373 *
3374 * This ini is used to set TSPEC direction for VO
3375 *
3376 * Related: None.
3377 *
3378 * Supported Feature: WMM
3379 *
3380 * Usage: Internal/External
3381 *
3382 * </ini>
3383 */
3384#define CFG_QOS_WMM_INFRA_DIR_AC_VO_NAME "InfraDirAcVo"
3385#define CFG_QOS_WMM_INFRA_DIR_AC_VO_MIN (0)
3386#define CFG_QOS_WMM_INFRA_DIR_AC_VO_MAX (3)
3387#define CFG_QOS_WMM_INFRA_DIR_AC_VO_DEFAULT (3) /*WLAN_QCT_CUST_WMM_TSDIR_BOTH*/
3388
3389/*
3390 * <ini>
3391 * InfraNomMsduSizeAcVo - Set normal MSDU size for VO
3392 * @Min: 0x0
3393 * @Max: 0xFFFF
3394 * @Default: 0x80D0
3395 *
3396 * This ini is used to set normal MSDU size for VO
3397 *
3398 * Related: None.
3399 *
3400 * Supported Feature: WMM
3401 *
3402 * Usage: Internal/External
3403 *
3404 * </ini>
3405 */
3406#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_NAME "InfraNomMsduSizeAcVo"
3407#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_MIN (0x0)
3408#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_MAX (0xFFFF)
3409#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_DEFAULT (0x80D0)
3410
3411/*
3412 * <ini>
3413 * InfraMeanDataRateAcVo - Set mean data rate for VO
3414 * @Min: 0x0
3415 * @Max: 0xFFFFFFFF
3416 * @Default: 0x14500
3417 *
3418 * This ini is used to set mean data rate for VO
3419 *
3420 * Related: None.
3421 *
3422 * Supported Feature: WMM
3423 *
3424 * Usage: Internal/External
3425 *
3426 * </ini>
3427 */
3428#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_NAME "InfraMeanDataRateAcVo"
3429#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_MIN (0x0)
3430#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_MAX (0xFFFFFFFF)
3431#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_DEFAULT (0x14500)
3432
3433/*
3434 * <ini>
3435 * InfraMinPhyRateAcVo - Set min PHY rate for VO
3436 * @Min: 0x0
3437 * @Max: 0xFFFFFFFF
3438 * @Default: 0x5B8D80
3439 *
3440 * This ini is used to set min PHY rate for VO
3441 *
3442 * Related: None.
3443 *
3444 * Supported Feature: WMM
3445 *
3446 * Usage: Internal/External
3447 *
3448 * </ini>
3449 */
3450#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_NAME "InfraMinPhyRateAcVo"
3451#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_MIN (0x0)
3452#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_MAX (0xFFFFFFFF)
3453#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_DEFAULT (0x5B8D80)
3454/*
3455 * <ini>
3456 * InfraSbaAcVo - Set surplus bandwidth allowance for VO
3457 * @Min: 0x2001
3458 * @Max: 0xFFFF
3459 * @Default: 0x2001
3460 *
3461 * This ini is used to set surplus bandwidth allowance for VO
3462 *
3463 * Related: None.
3464 *
3465 * Supported Feature: WMM
3466 *
3467 * Usage: Internal/External
3468 *
3469 * </ini>
3470 */
3471 #define CFG_QOS_WMM_INFRA_SBA_AC_VO_NAME "InfraSbaAcVo"
3472 #define CFG_QOS_WMM_INFRA_SBA_AC_VO_MIN (0x2001)
3473 #define CFG_QOS_WMM_INFRA_SBA_AC_VO_MAX (0xFFFF)
3474 #define CFG_QOS_WMM_INFRA_SBA_AC_VO_DEFAULT (0x2001)
3475
3476 /* default TSPEC parameters for AC_VI */
3477/*
3478 * <ini>
3479 * InfraDirAcVi - Set TSPEC direction for VI
3480 * @Min: 0
3481 * @Max: 3
3482 * @Default: 3
3483 *
3484 * This ini is used to set TSPEC direction for VI
3485 *
3486 * Related: None.
3487 *
3488 * Supported Feature: WMM
3489 *
3490 * Usage: Internal/External
3491 *
3492 * </ini>
3493 */
3494#define CFG_QOS_WMM_INFRA_DIR_AC_VI_NAME "InfraDirAcVi"
3495#define CFG_QOS_WMM_INFRA_DIR_AC_VI_MIN (0)
3496#define CFG_QOS_WMM_INFRA_DIR_AC_VI_MAX (3)
3497#define CFG_QOS_WMM_INFRA_DIR_AC_VI_DEFAULT (3) /*WLAN_QCT_CUST_WMM_TSDIR_BOTH*/
3498
3499/*
3500 * <ini>
3501 * InfraNomMsduSizeAcVi - Set normal MSDU size for VI
3502 * @Min: 0x0
3503 * @Max: 0xFFFF
3504 * @Default: 0x85DC
3505 *
3506 * This ini is used to set normal MSDU size for VI
3507 *
3508 * Related: None.
3509 *
3510 * Supported Feature: WMM
3511 *
3512 * Usage: Internal/External
3513 *
3514 * </ini>
3515 */
3516#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_NAME "InfraNomMsduSizeAcVi"
3517#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_MIN (0x0)
3518#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_MAX (0xFFFF)
3519#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_DEFAULT (0x85DC)
3520
3521/*
3522 * <ini>
3523 * InfraMeanDataRateAcVi - Set mean data rate for VI
3524 * @Min: 0x0
3525 * @Max: 0xFFFFFFFF
3526 * @Default: 0x57E40
3527 *
3528 * This ini is used to set mean data rate for VI
3529 *
3530 * Related: None.
3531 *
3532 * Supported Feature: WMM
3533 *
3534 * Usage: Internal/External
3535 *
3536 * </ini>
3537 */
3538#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_NAME "InfraMeanDataRateAcVi"
3539#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_MIN (0x0)
3540#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_MAX (0xFFFFFFFF)
3541#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_DEFAULT (0x57E40)
3542
3543/*
3544 * <ini>
3545 * iInfraMinPhyRateAcVi - Set min PHY rate for VI
3546 * @Min: 0x0
3547 * @Max: 0xFFFFFFFF
3548 * @Default: 0x5B8D80
3549 *
3550 * This ini is used to set min PHY rate for VI
3551 *
3552 * Related: None.
3553 *
3554 * Supported Feature: WMM
3555 *
3556 * Usage: Internal/External
3557 *
3558 * </ini>
3559 */
3560#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_NAME "InfraMinPhyRateAcVi"
3561#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_MIN (0x0)
3562#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_MAX (0xFFFFFFFF)
3563#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_DEFAULT (0x5B8D80)
3564
3565/*
3566 * <ini>
3567 * InfraSbaAcVi - Set surplus bandwidth allowance for VI
3568 * @Min: 0x2001
3569 * @Max: 0xFFFF
3570 * @Default: 0x2001
3571 *
3572 * This ini is used to set surplus bandwidth allowance for VI
3573 *
3574 * Related: None.
3575 *
3576 * Supported Feature: WMM
3577 *
3578 * Usage: Internal/External
3579 *
3580 * </ini>
3581 */
3582 #define CFG_QOS_WMM_INFRA_SBA_AC_VI_NAME "InfraSbaAcVi"
3583 #define CFG_QOS_WMM_INFRA_SBA_AC_VI_MIN (0x2001)
3584 #define CFG_QOS_WMM_INFRA_SBA_AC_VI_MAX (0xFFFF)
3585 #define CFG_QOS_WMM_INFRA_SBA_AC_VI_DEFAULT (0x2001)
3586
3587 /* default TSPEC parameters for AC_BE*/
3588/*
3589 * <ini>
3590 * InfraDirAcBe - Set TSPEC direction for BE
3591 * @Min: 0
3592 * @Max: 3
3593 * @Default: 3
3594 *
3595 * This ini is used to set TSPEC direction for BE
3596 *
3597 * Related: None.
3598 *
3599 * Supported Feature: WMM
3600 *
3601 * Usage: Internal/External
3602 *
3603 * </ini>
3604 */
3605#define CFG_QOS_WMM_INFRA_DIR_AC_BE_NAME "InfraDirAcBe"
3606#define CFG_QOS_WMM_INFRA_DIR_AC_BE_MIN (0)
3607#define CFG_QOS_WMM_INFRA_DIR_AC_BE_MAX (3)
3608#define CFG_QOS_WMM_INFRA_DIR_AC_BE_DEFAULT (3) /*WLAN_QCT_CUST_WMM_TSDIR_BOTH*/
3609
3610/*
3611 * <ini>
3612 * InfraNomMsduSizeAcBe - Set normal MSDU size for BE
3613 * @Min: 0x0
3614 * @Max: 0xFFFF
3615 * @Default: 0x85DC
3616 *
3617 * This ini is used to set normal MSDU size for BE
3618 *
3619 * Related: None.
3620 *
3621 * Supported Feature: WMM
3622 *
3623 * Usage: Internal/External
3624 *
3625 * </ini>
3626 */
3627#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_NAME "InfraNomMsduSizeAcBe"
3628#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_MIN (0x0)
3629#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_MAX (0xFFFF)
3630#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_DEFAULT (0x85DC)
3631
3632/*
3633 * <ini>
3634 * InfraMeanDataRateAcBe - Set mean data rate for BE
3635 * @Min: 0x0
3636 * @Max: 0xFFFFFFFF
3637 * @Default: 0x493E0
3638 *
3639 * This ini is used to set mean data rate for BE
3640 *
3641 * Related: None.
3642 *
3643 * Supported Feature: WMM
3644 *
3645 * Usage: Internal/External
3646 *
3647 * </ini>
3648 */
3649#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_NAME "InfraMeanDataRateAcBe"
3650#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_MIN (0x0)
3651#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_MAX (0xFFFFFFFF)
3652#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_DEFAULT (0x493E0)
3653
3654/*
3655 * <ini>
3656 * InfraMinPhyRateAcBe - Set min PHY rate for BE
3657 * @Min: 0x0
3658 * @Max: 0xFFFFFFFF
3659 * @Default: 0x5B8D80
3660 *
3661 * This ini is used to set min PHY rate for BE
3662 *
3663 * Related: None.
3664 *
3665 * Supported Feature: WMM
3666 *
3667 * Usage: Internal/External
3668 *
3669 * </ini>
3670 */
3671#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_NAME "InfraMinPhyRateAcBe"
3672#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_MIN (0x0)
3673#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_MAX (0xFFFFFFFF)
3674#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_DEFAULT (0x5B8D80)
3675
3676/*
3677 * <ini>
3678 * InfraSbaAcBe - Set surplus bandwidth allowance for BE
3679 * @Min: 0x2001
3680 * @Max: 0xFFFF
3681 * @Default: 0x2001
3682 *
3683 * This ini is used to set surplus bandwidth allowance for BE
3684 *
3685 * Related: None.
3686 *
3687 * Supported Feature: WMM
3688 *
3689 * Usage: Internal/External
3690 *
3691 * </ini>
3692 */
3693 #define CFG_QOS_WMM_INFRA_SBA_AC_BE_NAME "InfraSbaAcBe"
3694 #define CFG_QOS_WMM_INFRA_SBA_AC_BE_MIN (0x2001)
3695 #define CFG_QOS_WMM_INFRA_SBA_AC_BE_MAX (0xFFFF)
3696 #define CFG_QOS_WMM_INFRA_SBA_AC_BE_DEFAULT (0x2001)
3697
3698 /* default TSPEC parameters for AC_Bk*/
3699/*
3700 * <ini>
3701 * InfraDirAcBk - Set TSPEC direction for BK
3702 * @Min: 0
3703 * @Max: 3
3704 * @Default: 3
3705 *
3706 * This ini is used to set TSPEC direction for BK
3707 *
3708 * Related: None.
3709 *
3710 * Supported Feature: WMM
3711 *
3712 * Usage: Internal/External
3713 *
3714 * </ini>
3715 */
3716#define CFG_QOS_WMM_INFRA_DIR_AC_BK_NAME "InfraDirAcBk"
3717#define CFG_QOS_WMM_INFRA_DIR_AC_BK_MIN (0)
3718#define CFG_QOS_WMM_INFRA_DIR_AC_BK_MAX (3)
3719#define CFG_QOS_WMM_INFRA_DIR_AC_BK_DEFAULT (3) /*WLAN_QCT_CUST_WMM_TSDIR_BOTH*/
3720
3721/*
3722 * <ini>
3723 * InfraNomMsduSizeAcBk - Set normal MSDU size for BK
3724 * @Min: 0x0
3725 * @Max: 0xFFFF
3726 * @Default: 0x85DC
3727 *
3728 * This ini is used to set normal MSDU size for BK
3729 *
3730 * Related: None.
3731 *
3732 * Supported Feature: WMM
3733 *
3734 * Usage: Internal/External
3735 *
3736 * </ini>
3737 */
3738#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_NAME "InfraNomMsduSizeAcBk"
3739#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_MIN (0x0)
3740#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_MAX (0xFFFF)
3741#define CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_DEFAULT (0x85DC)
3742
3743/*
3744 * <ini>
3745 * InfraMeanDataRateAcBk - Set mean data rate for BK
3746 * @Min: 0x0
3747 * @Max: 0xFFFFFFFF
3748 * @Default: 0x493E0
3749 *
3750 * This ini is used to set mean data rate for BK
3751 *
3752 * Related: None.
3753 *
3754 * Supported Feature: WMM
3755 *
3756 * Usage: Internal/External
3757 *
3758 * </ini>
3759 */
3760#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_NAME "InfraMeanDataRateAcBk"
3761#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_MIN (0x0)
3762#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_MAX (0xFFFFFFFF)
3763#define CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_DEFAULT (0x493E0)
3764
3765/*
3766 * <ini>
3767 * InfraMinPhyRateAcBke - Set min PHY rate for BK
3768 * @Min: 0x0
3769 * @Max: 0xFFFFFFFF
3770 * @Default: 0x5B8D80
3771 *
3772 * This ini is used to set min PHY rate for BK
3773 *
3774 * Related: None.
3775 *
3776 * Supported Feature: WMM
3777 *
3778 * Usage: Internal/External
3779 *
3780 * </ini>
3781 */
3782#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_NAME "InfraMinPhyRateAcBk"
3783#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_MIN (0x0)
3784#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_MAX (0xFFFFFFFF)
3785#define CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_DEFAULT (0x5B8D80)
3786
3787/*
3788 * <ini>
3789 * InfraSbaAcBk - Set surplus bandwidth allowance for BK
3790 * @Min: 0x2001
3791 * @Max: 0xFFFF
3792 * @Default: 0x2001
3793 *
3794 * This ini is used to set surplus bandwidth allowance for BK
3795 *
3796 * Related: None.
3797 *
3798 * Supported Feature: WMM
3799 *
3800 * Usage: Internal/External
3801 *
3802 * </ini>
3803 */
3804 #define CFG_QOS_WMM_INFRA_SBA_AC_BK_NAME "InfraSbaAcBk"
3805 #define CFG_QOS_WMM_INFRA_SBA_AC_BK_MIN (0x2001)
3806 #define CFG_QOS_WMM_INFRA_SBA_AC_BK_MAX (0xFFFF)
3807 #define CFG_QOS_WMM_INFRA_SBA_AC_BK_DEFAULT (0x2001)
3808
3809/*
3810 * <ini>
3811 * burstSizeDefinition - Set TS burst size
3812 * @Min: 0
3813 * @Max: 1
3814 * @Default: 0
3815 *
3816 * This ini is used to set TS burst size
3817 *
3818 * Related: None.
3819 *
3820 * Supported Feature: WMM
3821 *
3822 * Usage: Internal/External
3823 *
3824 * </ini>
3825 */
3826#define CFG_QOS_WMM_BURST_SIZE_DEFN_NAME "burstSizeDefinition"
3827#define CFG_QOS_WMM_BURST_SIZE_DEFN_MIN (0)
3828#define CFG_QOS_WMM_BURST_SIZE_DEFN_MAX (1)
3829#define CFG_QOS_WMM_BURST_SIZE_DEFN_DEFAULT (0)
3830
3831/*
3832 * <ini>
3833 * tsInfoAckPolicy - Set TS ack policy
3834 * @Min: 0x00
3835 * @Max: 0x01
3836 * @Default: 0x00
3837 *
3838 * This ini is used to set TS ack policy
3839 *
3840 * Related: None.
3841 *
3842 * Supported Feature: WMM
3843 *
3844 * Usage: Internal/External
3845 *
3846 * </ini>
3847 */
3848#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_NAME "tsInfoAckPolicy"
3849#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_MIN (0x00)
3850#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_MAX (0x01)
3851#define CFG_QOS_WMM_TS_INFO_ACK_POLICY_DEFAULT (0x00)
3852
3853/*
3854 * <ini>
3855 * SingleTIDRC - Set replay counter for all TID's
3856 * @Min: 0
3857 * @Max: 1
3858 * @Default: 1
3859 *
3860 * This ini is used to set replay counter for all TID's
3861 *
3862 * Related: None.
3863 *
3864 * Supported Feature: WMM
3865 *
3866 * Usage: Internal/External
3867 *
3868 * </ini>
3869 */
3870#define CFG_SINGLE_TID_RC_NAME "SingleTIDRC"
3871#define CFG_SINGLE_TID_RC_MIN (0) /* Separate replay counter for all TID */
3872#define CFG_SINGLE_TID_RC_MAX (1) /* Single replay counter for all TID */
3873#define CFG_SINGLE_TID_RC_DEFAULT (1)
3874
3875/*
3876 * <ini>
3877 * gAddTSWhenACMIsOff - Set ACM value for AC
3878 * @Min: 0
3879 * @Max: 1
3880 * @Default: 0
3881 *
3882 * This ini is used to set ACM value for AC
3883 *
3884 * Related: None.
3885 *
3886 * Supported Feature: WMM
3887 *
3888 * Usage: Internal/External
3889 *
3890 * </ini>
3891 */
3892#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_NAME "gAddTSWhenACMIsOff"
3893#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_MIN (0)
3894/* Send AddTs even when ACM is not set for the AC */
3895#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_MAX (1)
3896#define CFG_QOS_ADDTS_WHEN_ACM_IS_OFF_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003897
3898#ifdef FEATURE_WLAN_ESE
Sreelakshmi Konamki9be8d412017-03-01 10:29:08 +05303899#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_NAME "InfraInactivityInterval"
3900#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_MIN (0)
3901#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_MAX (4294967295UL)
3902#define CFG_QOS_WMM_INFRA_INACTIVITY_INTERVAL_DEFAULT (0) /* disabled */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003903
3904#define CFG_ESE_FEATURE_ENABLED_NAME "EseEnabled"
3905#define CFG_ESE_FEATURE_ENABLED_MIN (0)
3906#define CFG_ESE_FEATURE_ENABLED_MAX (1)
3907#define CFG_ESE_FEATURE_ENABLED_DEFAULT (0) /* disabled */
3908#endif /* FEATURE_WLAN_ESE */
3909
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003910#define CFG_LFR_MAWC_FEATURE_ENABLED_NAME "MAWCEnabled"
3911#define CFG_LFR_MAWC_FEATURE_ENABLED_MIN (0)
3912#define CFG_LFR_MAWC_FEATURE_ENABLED_MAX (1)
3913#define CFG_LFR_MAWC_FEATURE_ENABLED_DEFAULT (0) /* disabled */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003914
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003915/*This parameter is used to set Wireless Extended Security Mode.*/
3916#define CFG_ENABLE_WES_MODE_NAME "gWESModeEnabled"
3917#define CFG_ENABLE_WES_MODE_NAME_MIN (0)
3918#define CFG_ENABLE_WES_MODE_NAME_MAX (1)
3919#define CFG_ENABLE_WES_MODE_NAME_DEFAULT (0)
3920
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003921#define CFG_TL_DELAYED_TRGR_FRM_INT_NAME "DelayedTriggerFrmInt"
3922#define CFG_TL_DELAYED_TRGR_FRM_INT_MIN 1
3923#define CFG_TL_DELAYED_TRGR_FRM_INT_MAX (4294967295UL)
3924#define CFG_TL_DELAYED_TRGR_FRM_INT_DEFAULT 3000
3925
Sreelakshmi Konamkided64d72017-02-23 10:39:26 +05303926/*
3927 * <ini>
3928 * gRrmEnable - Enable/Disable RRM
3929 * @Min: 0
3930 * @Max: 1
3931 * @Default: 0
3932 *
3933 * This ini is used to controls the capabilities (11 k) included
3934 * in the capabilities field.
3935 *
3936 * Related: None.
3937 *
3938 * Supported Feature: 11k
3939 *
3940 * Usage: Internal/External
3941 *
3942 * </ini>
3943 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003944#define CFG_RRM_ENABLE_NAME "gRrmEnable"
3945#define CFG_RRM_ENABLE_MIN (0)
3946#define CFG_RRM_ENABLE_MAX (1)
3947#define CFG_RRM_ENABLE_DEFAULT (0)
3948
Sreelakshmi Konamkided64d72017-02-23 10:39:26 +05303949/*
3950 * <ini>
3951 * gRrmRandnIntvl - Randomization interval
3952 * @Min: 10
3953 * @Max: 100
3954 * @Default: 100
3955 *
3956 * This ini is used to set randomization interval which is used to start a timer
3957 * of a random value within randomization interval. Next RRM Scan request
3958 * will be issued after the expiry of this random interval.
3959 *
3960 * Related: None.
3961 *
3962 * Supported Feature: 11k
3963 *
3964 * Usage: Internal/External
3965 *
3966 * </ini>
3967 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003968#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_NAME "gRrmRandnIntvl"
3969#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_MIN (10)
3970#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_MAX (100)
3971#define CFG_RRM_MEAS_RANDOMIZATION_INTVL_DEFAULT (100)
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -08003972
Sreelakshmi Konamkided64d72017-02-23 10:39:26 +05303973/*
3974 * <ini>
3975 * rm_capability - Configure RM enabled capabilities IE
3976 * @Default: 73,10,91,00,04
3977 *
3978 * This ini is used to configure RM enabled capabilities IE.
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -08003979 * Using this INI, we can set/unset any of the bits in 5 bytes
3980 * (last 4bytes are reserved). Bit details are updated as per
3981 * Draft version of 11mc spec. (Draft P802.11REVmc_D4.2)
3982 *
Jeff Johnsond404d032016-09-08 14:51:43 -07003983 * Bitwise details are defined as bit mask in rrm_global.h
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -08003984 * Comma is used as a separator for each byte.
Sreelakshmi Konamkided64d72017-02-23 10:39:26 +05303985 *
3986 * Related: None.
3987 *
3988 * Supported Feature: 11k
3989 *
3990 * Usage: Internal/External
3991 *
3992 * </ini>
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -08003993 */
3994#define CFG_RM_CAPABILITY_NAME "rm_capability"
Jeff Johnsond404d032016-09-08 14:51:43 -07003995#define CFG_RM_CAPABILITY_DEFAULT "73,10,91,00,04"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003996
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08003997#define CFG_FT_RESOURCE_REQ_NAME "gFTResourceReqSupported"
3998#define CFG_FT_RESOURCE_REQ_MIN (0)
3999#define CFG_FT_RESOURCE_REQ_MAX (1)
4000#define CFG_FT_RESOURCE_REQ_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004001
4002#define CFG_TELE_BCN_TRANS_LI_NAME "telescopicBeaconTransListenInterval"
4003#define CFG_TELE_BCN_TRANS_LI_MIN (0)
4004#define CFG_TELE_BCN_TRANS_LI_MAX (7)
4005#define CFG_TELE_BCN_TRANS_LI_DEFAULT (3)
4006
4007#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_NAME "telescopicBeaconTransListenIntervalNumIdleBcns"
4008#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_MIN (5)
4009#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_MAX (255)
4010#define CFG_TELE_BCN_TRANS_LI_NUM_IDLE_BCNS_DEFAULT (10)
4011
4012#define CFG_TELE_BCN_MAX_LI_NAME "telescopicBeaconMaxListenInterval"
4013#define CFG_TELE_BCN_MAX_LI_MIN (0)
4014#define CFG_TELE_BCN_MAX_LI_MAX (7)
4015#define CFG_TELE_BCN_MAX_LI_DEFAULT (5)
4016
4017#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_NAME "telescopicBeaconMaxListenIntervalNumIdleBcns"
4018#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_MIN (5)
4019#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_MAX (255)
4020#define CFG_TELE_BCN_MAX_LI_NUM_IDLE_BCNS_DEFAULT (15)
4021
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004022#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_NAME "gNeighborLookupThreshold"
4023#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_MIN (10)
4024#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_MAX (120)
4025#define CFG_NEIGHBOR_LOOKUP_RSSI_THRESHOLD_DEFAULT (78)
4026
4027#define CFG_DELAY_BEFORE_VDEV_STOP_NAME "gDelayBeforeVdevStop"
4028#define CFG_DELAY_BEFORE_VDEV_STOP_MIN (2)
4029#define CFG_DELAY_BEFORE_VDEV_STOP_MAX (200)
4030#define CFG_DELAY_BEFORE_VDEV_STOP_DEFAULT (20)
4031
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004032#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_NAME "gMaxNeighborReqTries"
4033#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_MIN (1)
4034#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_MAX (4)
4035#define CFG_11R_NEIGHBOR_REQ_MAX_TRIES_DEFAULT (3)
4036
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004037#define CFG_ROAM_BMISS_FIRST_BCNT_NAME "gRoamBmissFirstBcnt"
4038#define CFG_ROAM_BMISS_FIRST_BCNT_MIN (5)
4039#define CFG_ROAM_BMISS_FIRST_BCNT_MAX (100)
4040#define CFG_ROAM_BMISS_FIRST_BCNT_DEFAULT (10)
4041
4042#define CFG_ROAM_BMISS_FINAL_BCNT_NAME "gRoamBmissFinalBcnt"
4043#define CFG_ROAM_BMISS_FINAL_BCNT_MIN (5)
4044#define CFG_ROAM_BMISS_FINAL_BCNT_MAX (100)
4045#define CFG_ROAM_BMISS_FINAL_BCNT_DEFAULT (10)
4046
4047#define CFG_ROAM_BEACON_RSSI_WEIGHT_NAME "gRoamBeaconRssiWeight"
4048#define CFG_ROAM_BEACON_RSSI_WEIGHT_MIN (0)
4049#define CFG_ROAM_BEACON_RSSI_WEIGHT_MAX (16)
4050#define CFG_ROAM_BEACON_RSSI_WEIGHT_DEFAULT (14)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004051
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304052/*
4053 * <ini>
4054 * McastBcastFilter - Filters Mcast/Bcast Rx packets completely
4055 * @Min: 0
4056 * @Max: 3
4057 * @Default: 0
4058 *
4059 * This ini is used to send default NULL frame to AP
4060 *
4061 * Related: None
4062 *
4063 * Supported Feature: STA
4064 *
4065 * Usage: Internal/External
4066 *
4067 * </ini>
4068 */
4069
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004070#define CFG_MCAST_BCAST_FILTER_SETTING_NAME "McastBcastFilter"
4071#define CFG_MCAST_BCAST_FILTER_SETTING_MIN (0)
4072#define CFG_MCAST_BCAST_FILTER_SETTING_MAX (3)
4073#define CFG_MCAST_BCAST_FILTER_SETTING_DEFAULT (0)
4074
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304075/*
4076 * <ini>
4077 * gDynamicPSPollvalue - Set dynamic PSpoll value
4078 * @Min: 0
4079 * @Max: 255
4080 * @Default: 0
4081 *
4082 * This ini is used to send default PSpoll value
4083 *
4084 * Related: None
4085 *
4086 * Supported Feature: STA
4087 *
4088 * Usage: Internal/External
4089 *
4090 * </ini>
4091 */
4092
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004093#define CFG_DYNAMIC_PSPOLL_VALUE_NAME "gDynamicPSPollvalue"
4094#define CFG_DYNAMIC_PSPOLL_VALUE_MIN (0)
4095#define CFG_DYNAMIC_PSPOLL_VALUE_MAX (255)
4096#define CFG_DYNAMIC_PSPOLL_VALUE_DEFAULT (0)
4097
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304098/*
4099 * <ini>
4100 * gTelescopicBeaconWakeupEn - Set teles copic beacon wakeup
4101 * @Min: 0
4102 * @Max: 1
4103 * @Default: 0
4104 *
4105 * This ini is used to set default teles copic beacon wakeup
4106 *
4107 * Related: None
4108 *
4109 * Supported Feature: STA
4110 *
4111 * Usage: Internal/External
4112 *
4113 * </ini>
4114 */
4115
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004116#define CFG_TELE_BCN_WAKEUP_EN_NAME "gTelescopicBeaconWakeupEn"
4117#define CFG_TELE_BCN_WAKEUP_EN_MIN (0)
4118#define CFG_TELE_BCN_WAKEUP_EN_MAX (1)
4119#define CFG_TELE_BCN_WAKEUP_EN_DEFAULT (0)
4120
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304121/*
4122 * <ini>
4123 * gValidateScanList - Set valid date scan list
4124 * @Min: 0
4125 * @Max: 65535
4126 * @Default: 30
4127 *
4128 * This ini is used to set default valid date scan list
4129 *
4130 * Related: None
4131 *
4132 * Supported Feature: STA
4133 *
4134 * Usage: Internal/External
4135 *
4136 * </ini>
4137 */
4138
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004139#define CFG_VALIDATE_SCAN_LIST_NAME "gValidateScanList"
4140#define CFG_VALIDATE_SCAN_LIST_MIN (0)
4141#define CFG_VALIDATE_SCAN_LIST_MAX (1)
4142#define CFG_VALIDATE_SCAN_LIST_DEFAULT (0)
4143
4144#define CFG_NULLDATA_AP_RESP_TIMEOUT_NAME "gNullDataApRespTimeout"
4145#define CFG_NULLDATA_AP_RESP_TIMEOUT_MIN (WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT_STAMIN)
4146#define CFG_NULLDATA_AP_RESP_TIMEOUT_MAX (WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT_STAMAX)
4147#define CFG_NULLDATA_AP_RESP_TIMEOUT_DEFAULT (WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT_STADEF)
4148
4149#define CFG_AP_DATA_AVAIL_POLL_PERIOD_NAME "gApDataAvailPollInterval"
4150#define CFG_AP_DATA_AVAIL_POLL_PERIOD_MIN (WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD_STAMIN)
4151#define CFG_AP_DATA_AVAIL_POLL_PERIOD_MAX (WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD_STAMAX)
4152#define CFG_AP_DATA_AVAIL_POLL_PERIOD_DEFAULT (WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD_STADEF)
4153
4154#define CFG_ENABLE_HOST_ARPOFFLOAD_NAME "hostArpOffload"
4155#define CFG_ENABLE_HOST_ARPOFFLOAD_MIN (0)
4156#define CFG_ENABLE_HOST_ARPOFFLOAD_MAX (1)
Manjeet Singhc5734182016-09-02 16:03:29 +05304157#define CFG_ENABLE_HOST_ARPOFFLOAD_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004158
4159#define CFG_ENABLE_HOST_SSDP_NAME "ssdp"
4160#define CFG_ENABLE_HOST_SSDP_MIN (0)
4161#define CFG_ENABLE_HOST_SSDP_MAX (1)
4162#define CFG_ENABLE_HOST_SSDP_DEFAULT (1)
4163
4164#define CFG_ENABLE_HOST_NSOFFLOAD_NAME "hostNSOffload"
4165#define CFG_ENABLE_HOST_NSOFFLOAD_MIN (0)
4166#define CFG_ENABLE_HOST_NSOFFLOAD_MAX (1)
Manjeet Singhc5734182016-09-02 16:03:29 +05304167#define CFG_ENABLE_HOST_NSOFFLOAD_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004168
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304169/*
4170 * <ini>
Dustin Brown1224e212017-05-12 14:02:12 -07004171 * gHwFilterMode - configure hardware filter for DTIM mode
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +05304172 * @Min: 0
Dustin Brown1224e212017-05-12 14:02:12 -07004173 * @Max: 3
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +05304174 * @Default: 0
4175 *
Dustin Brown1224e212017-05-12 14:02:12 -07004176 * The hardware filter is only effective in DTIM mode. Use this configuration
4177 * to blanket drop broadcast/multicast packets at the hardware level, without
4178 * waking up the firmware
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +05304179 *
Dustin Brown1224e212017-05-12 14:02:12 -07004180 * Takes a bitmap of frame types to drop
4181 * @E.g.
4182 * # disable feature (default)
4183 * gHwFilterMode=0
4184 * # drop all broadcast frames, except ARP
4185 * gHwFilterMode=1
4186 * # drop all multicast frames, except ICMPv6
4187 * gHwFilterMode=2
4188 * # drop all broadcast and multicast frames, except ARP and ICMPv6
4189 * gHwFilterMode=3
4190 *
4191 * Related: N/A
4192 *
4193 * Usage: Internal/External
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +05304194 *
4195 * </ini>
4196 */
Dustin Brown1224e212017-05-12 14:02:12 -07004197#define CFG_HW_FILTER_MODE_NAME "gHwFilterMode"
4198#define CFG_HW_FILTER_MODE_MIN (0)
4199#define CFG_HW_FILTER_MODE_MAX (3)
4200#define CFG_HW_FILTER_MODE_DEFAULT (0)
Ravi Kumar Bokka794fd712017-03-21 20:52:46 +05304201
4202/*
4203 * <ini>
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304204 * BandCapability - Preferred band (0: Both, 1: 2.4G only, 2: 5G only)
4205 * @Min: 0
4206 * @Max: 2
4207 * @Default: 0
4208 *
4209 * This ini is used to set default band capability
4210 * (0: Both, 1: 2.4G only, 2: 5G only)
4211 *
4212 * Related: None
4213 *
4214 * Supported Feature: STA
4215 *
4216 * Usage: Internal/External
4217 *
4218 * </ini>
4219 */
4220
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004221#define CFG_BAND_CAPABILITY_NAME "BandCapability"
4222#define CFG_BAND_CAPABILITY_MIN (0)
4223#define CFG_BAND_CAPABILITY_MAX (2)
4224#define CFG_BAND_CAPABILITY_DEFAULT (0)
4225
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004226#define CFG_ENABLE_BYPASS_11D_NAME "gEnableBypass11d"
4227#define CFG_ENABLE_BYPASS_11D_MIN (0)
4228#define CFG_ENABLE_BYPASS_11D_MAX (1)
4229#define CFG_ENABLE_BYPASS_11D_DEFAULT (1)
4230
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304231/*
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304232 * gEnableDFSChnlScan - enable dfs channel scan.
4233 * @Min: 0
4234 * @Max: 1
4235 * @Default: 1
4236 *
4237 * This ini is used to enable/disable dfs channels in scan, enabling this
4238 * will enable driver to include dfs channels in its scan list.
4239 * Related: NA
4240 *
4241 * Supported Feature: DFS, Scan
4242 *
4243 * Usage: Internal/External
4244 *
4245 * </ini>
4246 */
4247#define CFG_ENABLE_DFS_CHNL_SCAN_NAME "gEnableDFSChnlScan"
4248#define CFG_ENABLE_DFS_CHNL_SCAN_MIN (0)
4249#define CFG_ENABLE_DFS_CHNL_SCAN_MAX (1)
4250#define CFG_ENABLE_DFS_CHNL_SCAN_DEFAULT (1)
4251
4252/*
4253 * <ini>
4254 * gEnableDFSPnoChnlScan - enable dfs channels in PNO scan
4255 * @Min: 0
4256 * @Max: 1
4257 * @Default: 1
4258 *
4259 * This ini is used to enable/disable dfs channels in PNO scan request,
4260 * enabling this ini enables driver to include dfs channels in its
4261 * PNO scan request
4262 * Related: NA
4263 *
4264 * Supported Feature: DFS, PNO
4265 *
4266 * Usage: Internal/External
4267 *
4268 * </ini>
4269 */
4270#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_NAME "gEnableDFSPnoChnlScan"
4271#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_MIN (0)
4272#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_MAX (1)
4273#define CFG_ENABLE_DFS_PNO_CHNL_SCAN_DEFAULT (1)
4274
4275/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304276 * <ini>
4277 * gEnableDumpCollect - It will use for collect the dumps
4278 * @Min: 0
4279 * @Max: 1
4280 * @Default: 1
4281 *
4282 * This ini is used to set collect default dump
4283 *
4284 * Related: None
4285 *
4286 * Supported Feature: STA
4287 *
4288 * Usage: Internal/External
4289 *
4290 * </ini>
4291 */
4292
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004293#define CFG_ENABLE_RAMDUMP_COLLECTION "gEnableDumpCollect"
4294#define CFG_ENABLE_RAMDUMP_COLLECTION_MIN (0)
4295#define CFG_ENABLE_RAMDUMP_COLLECTION_MAX (1)
4296#define CFG_ENABLE_RAMDUMP_COLLECTION_DEFAULT (1)
4297
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -07004298enum hdd_link_speed_rpt_type {
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004299 eHDD_LINK_SPEED_REPORT_ACTUAL = 0,
4300 eHDD_LINK_SPEED_REPORT_MAX = 1,
4301 eHDD_LINK_SPEED_REPORT_MAX_SCALED = 2,
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -07004302};
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304303
4304/*
4305 * <ini>
4306 * gVhtChannelWidth - Channel width capability for 11ac
4307 * @Min: 0
4308 * @Max: 4
4309 * @Default: 3
4310 *
4311 * This ini is used to set channel width capability for 11AC.
4312 * eHT_CHANNEL_WIDTH_20MHZ = 0,
4313 * eHT_CHANNEL_WIDTH_40MHZ = 1,
4314 * eHT_CHANNEL_WIDTH_80MHZ = 2,
4315 * eHT_CHANNEL_WIDTH_160MHZ = 3,
4316 * eHT_CHANNEL_WIDTH_80P80MHZ = 4,
4317 *
4318 * Related: NA
4319 *
4320 * Supported Feature: 11AC
4321 *
4322 * Usage: External
4323 *
4324 * </ini>
4325 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004326#define CFG_VHT_CHANNEL_WIDTH "gVhtChannelWidth"
4327#define CFG_VHT_CHANNEL_WIDTH_MIN (0)
4328#define CFG_VHT_CHANNEL_WIDTH_MAX (4)
Kiran Kumar Lokere4bbbd0d2017-02-07 00:06:43 -08004329#define CFG_VHT_CHANNEL_WIDTH_DEFAULT (2)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004330
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304331/*
4332* <ini>
4333* gVhtRxMCS - VHT Rx MCS capability for 1x1 mode
4334* @Min: 0
4335* @Max: 2
4336* @Default: 0
4337*
4338* This ini is used to set VHT Rx MCS capability for 1x1 mode.
4339* 0, MCS0-7
4340* 1, MCS0-8
4341* 2, MCS0-9
4342*
4343* Related: NA
4344*
4345* Supported Feature: 11AC
4346*
4347* Usage: Internal/External
4348*
4349* </ini>
4350*/
4351
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004352#define CFG_VHT_ENABLE_RX_MCS_8_9 "gVhtRxMCS"
4353#define CFG_VHT_ENABLE_RX_MCS_8_9_MIN (0)
4354#define CFG_VHT_ENABLE_RX_MCS_8_9_MAX (2)
4355#define CFG_VHT_ENABLE_RX_MCS_8_9_DEFAULT (0)
4356
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304357/*
4358 * <ini>
4359 * gVhtTxMCS - VHT Tx MCS capability for 1x1 mode
4360 * @Min: 0
4361 * @Max: 2
4362 * @Default: 0
4363 *
4364 * This ini is used to set VHT Tx MCS capability for 1x1 mode.
4365 * 0, MCS0-7
4366 * 1, MCS0-8
4367 * 2, MCS0-9
4368 *
4369 * Related: NA
4370 *
4371 * Supported Feature: 11AC
4372 *
4373 * Usage: Internal/External
4374 *
4375 * </ini>
4376 */
4377
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004378#define CFG_VHT_ENABLE_TX_MCS_8_9 "gVhtTxMCS"
4379#define CFG_VHT_ENABLE_TX_MCS_8_9_MIN (0)
4380#define CFG_VHT_ENABLE_TX_MCS_8_9_MAX (2)
4381#define CFG_VHT_ENABLE_TX_MCS_8_9_DEFAULT (0)
4382
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304383/*
4384 * <ini>
4385 * gVhtRxMCS2x2 - VHT Rx MCS capability for 2x2 mode
4386 * @Min: 0
4387 * @Max: 2
4388 * @Default: 0
4389 *
4390 * This ini is used to set VHT Rx MCS capability for 2x2 mode.
4391 * 0, MCS0-7
4392 * 1, MCS0-8
4393 * 2, MCS0-9
4394 *
4395 * Related: NA
4396 *
4397 * Supported Feature: 11AC
4398 *
4399 * Usage: External
4400 *
4401 * </ini>
4402 */
4403
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004404#define CFG_VHT_ENABLE_RX_MCS2x2_8_9 "gVhtRxMCS2x2"
4405#define CFG_VHT_ENABLE_RX_MCS2x2_8_9_MIN (0)
4406#define CFG_VHT_ENABLE_RX_MCS2x2_8_9_MAX (2)
4407#define CFG_VHT_ENABLE_RX_MCS2x2_8_9_DEFAULT (0)
4408
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304409/*
4410 * <ini>
4411 * gVhtTxMCS2x2 - VHT Tx MCS capability for 2x2 mode
4412 * @Min: 0
4413 * @Max: 2
4414 * @Default: 0
4415 *
4416 * This ini is used to set VHT Tx MCS capability for 2x2 mode.
4417 * 0, MCS0-7
4418 * 1, MCS0-8
4419 * 2, MCS0-9
4420 *
4421 * Related: NA
4422 *
4423 * Supported Feature: 11AC
4424 *
4425 * Usage: External
4426 *
4427 * </ini>
4428 */
4429
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004430#define CFG_VHT_ENABLE_TX_MCS2x2_8_9 "gVhtTxMCS2x2"
4431#define CFG_VHT_ENABLE_TX_MCS2x2_8_9_MIN (0)
4432#define CFG_VHT_ENABLE_TX_MCS2x2_8_9_MAX (2)
4433#define CFG_VHT_ENABLE_TX_MCS2x2_8_9_DEFAULT (0)
4434
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304435/*
4436 * <ini>
4437 * gEnable2x2 - Enables/disables VHT Tx/Rx MCS values for 2x2
4438 * @Min: 0
4439 * @Max: 1
4440 * @Default: 0
4441 *
4442 * This ini disables/enables 2x2 mode. If this is zero then DUT operates as 1x1
4443 *
4444 * 0, Disable
4445 * 1, Enable
4446 *
4447 * Related: NA
4448 *
4449 * Supported Feature: 11AC
4450 *
4451 * Usage: External
4452 *
4453 * </ini>
4454 */
4455
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004456#define CFG_VHT_ENABLE_2x2_CAP_FEATURE "gEnable2x2"
4457#define CFG_VHT_ENABLE_2x2_CAP_FEATURE_MIN (0)
4458#define CFG_VHT_ENABLE_2x2_CAP_FEATURE_MAX (1)
4459#define CFG_VHT_ENABLE_2x2_CAP_FEATURE_DEFAULT (0)
4460
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304461/*
4462 * <ini>
4463 * gStaPrefer80MHzOver160MHz - set Sta perferance to connect in 80HZ/160HZ
4464 * @Min: 0
4465 * @Max: 1
4466 * @Default: 1
4467 *
4468 * This ini is used to set Sta perferance to connect in 80HZ/160HZ
4469 *
4470 * 0 - Connects in 160MHz 1x1 when AP is 160MHz 2x2
Kiran Kumar Lokere1aa9c9a2016-10-05 18:50:59 -07004471 * 1 - Connects in 80MHz 2x2 when AP is 160MHz 2x2
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304472 *
4473 * Related: NA
4474 *
4475 * Supported Feature: 11AC
4476 *
4477 * Usage: External
4478 *
4479 * </ini>
Kiran Kumar Lokere1aa9c9a2016-10-05 18:50:59 -07004480 */
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304481
Kiran Kumar Lokere1aa9c9a2016-10-05 18:50:59 -07004482#define CFG_STA_PREFER_80MHZ_OVER_160MHZ "gStaPrefer80MHzOver160MHz"
4483#define CFG_STA_PREFER_80MHZ_OVER_160MHZ_MIN (0)
4484#define CFG_STA_PREFER_80MHZ_OVER_160MHZ_MAX (1)
4485#define CFG_STA_PREFER_80MHZ_OVER_160MHZ_DEFAULT (1)
4486
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07004487/*
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304488 * <ini>
4489 * gVdevTypeNss_2g - set Number of streams per VDEV for 2G band.
4490 * @Min: 0x5555
4491 * @Max: 0xAAAA
4492 * @Default: 0xAAAA
4493 *
4494 * This ini is used to set set Number of streams per VDEV for 2G band
4495 *
4496 * These Nss parameters will have 32-bit configuration value, 2 bits are
4497 * allocated for each vdev.
4498 * Valid values are:
4499 * Min value – 0x5555
4500 * Max value – 0xAAAA
4501 * Default value will be 0xAAAA for both the parameters.
4502 * Value 0x5555 will configure all vdevs in 1x1 mode in 2.4G band.
4503 * Value 0xAAAA will configure all vdevs in 2x2 mode in 2.4G band.
4504 *
4505 * The max value is defined based on the valid max Nss of the vdev, the valid
4506 * values for each vdev 2-bits are 0x1 and 0x2. 0x3 and 0x0 are not valid vdev
4507 * Nss values.
4508 *
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07004509 * NSS cfg bit definition.
4510 * STA BIT[0:1]
4511 * SAP BIT[2:3]
4512 * P2P_GO BIT[4:5]
4513 * P2P_CLIENT BIT[6:7]
4514 * IBSS BIT[8:9]
4515 * TDLS BIT[10:11]
4516 * P2P_DEVICE BIT[12:13]
4517 * OCB BIT[14:15]
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304518 *
4519 * Related: NA
4520 *
4521 * Supported Feature: Antenna Sharing
4522 *
4523 * Usage: External
4524 *
4525 * </ini>
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07004526 */
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304527
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07004528#define CFG_VDEV_TYPE_NSS_2G "gVdevTypeNss_2g"
4529#define CFG_VDEV_TYPE_NSS_2G_MIN (0x5555)
4530#define CFG_VDEV_TYPE_NSS_2G_MAX (0xAAAA)
4531#define CFG_VDEV_TYPE_NSS_2G_DEFAULT (0xAAAA)
4532
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304533/*
4534 * <ini>
4535 * gVdevTypeNss_5g - set Number of streams per VDEV for 5G band.
4536 * @Min: 0x5555
4537 * @Max: 0xAAAA
4538 * @Default: 0xAAAA
4539 *
4540 * This ini is used to set set Number of streams per VDEV for 2G band
4541 *
4542 * These Nss parameters will have 32-bit configuration value, 2 bits are
4543 * allocated for each vdev.
4544 * Valid values are:
4545 * Min value – 0x5555
4546 * Max value – 0xAAAA
4547 * Default value will be 0xAAAA for both the parameters.
4548 * Value 0x5555 will configure all vdevs in 1x1 mode in 5 band.
4549 * Value 0xAAAA will configure all vdevs in 2x2 mode in 5 band.
4550 *
4551 * The max value is defined based on the valid max Nss of the vdev, the valid
4552 * values for each vdev 2-bits are 0x1 and 0x2. 0x3 and 0x0 are not valid vdev
4553 * Nss values.
4554 *
4555 * NSS cfg bit definition.
4556 * STA BIT[0:1]
4557 * SAP BIT[2:3]
4558 * P2P_GO BIT[4:5]
4559 * P2P_CLIENT BIT[6:7]
4560 * IBSS BIT[8:9]
4561 * TDLS BIT[10:11]
4562 * P2P_DEVICE BIT[12:13]
4563 * OCB BIT[14:15]
4564 *
4565 * Related: NA
4566 *
4567 * Supported Feature: Antenna Sharing
4568 *
4569 * Usage: External
4570 *
4571 * </ini>
4572 */
4573
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -07004574#define CFG_VDEV_TYPE_NSS_5G "gVdevTypeNss_5g"
4575#define CFG_VDEV_TYPE_NSS_5G_MIN (0x5555)
4576#define CFG_VDEV_TYPE_NSS_5G_MAX (0xAAAA)
4577#define CFG_VDEV_TYPE_NSS_5G_DEFAULT (0xAAAA)
4578
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304579/*
4580 * <ini>
4581 * gEnableMuBformee - Enables/disables multi-user (MU) beam formee capability
4582 * @Min: 0
4583 * @Max: 1
4584 * @Default: 0
4585 *
4586 * This ini enables/disables multi-user (MU) beam formee
4587 * capability
4588 *
4589 * Change MU Bformee only when gTxBFEnable is enabled.
4590 * When gTxBFEnable and gEnableMuBformee are set, MU beam formee capability is
4591 * enabled.
4592 * Related: gTxBFEnable
4593 *
4594 * Supported Feature: 11AC
4595 *
4596 * Usage: External
4597 *
4598 * </ini>
4599 */
4600
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004601#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE "gEnableMuBformee"
4602#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_MIN (0)
4603#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_MAX (1)
4604#define CFG_VHT_ENABLE_MU_BFORMEE_CAP_FEATURE_DEFAULT (0)
4605
4606#define CFG_VHT_ENABLE_PAID_FEATURE "gEnablePAID"
4607#define CFG_VHT_ENABLE_PAID_FEATURE_MIN (0)
4608#define CFG_VHT_ENABLE_PAID_FEATURE_MAX (1)
4609#define CFG_VHT_ENABLE_PAID_FEATURE_DEFAULT (0)
4610
4611#define CFG_VHT_ENABLE_GID_FEATURE "gEnableGID"
4612#define CFG_VHT_ENABLE_GID_FEATURE_MIN (0)
4613#define CFG_VHT_ENABLE_GID_FEATURE_MAX (1)
4614#define CFG_VHT_ENABLE_GID_FEATURE_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004615
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304616/*
4617 * <ini>
4618 * gSetTxChainmask1x1 - Sets Transmit chain mask.
4619 * @Min: 1
4620 * @Max: 2
4621 * @Default: 1
4622 *
4623 * This ini Sets Transmit chain mask.
4624 *
4625 * If gEnable2x2 is disabled, gSetTxChainmask1x1 and gSetRxChainmask1x1 values
4626 * are taken into account. If chainmask value exceeds the maximum number of
4627 * chains supported by target, the max number of chains is used. By default,
4628 * chain0 is selected for both Tx and Rx.
4629 * gSetTxChainmask1x1=1 or gSetRxChainmask1x1=1 to select chain0.
4630 * gSetTxChainmask1x1=2 or gSetRxChainmask1x1=2 to select chain1.
4631 *
4632 * Supported Feature: 11AC
4633 *
4634 * Usage: External
4635 *
4636 * </ini>
4637 */
4638
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004639#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK "gSetTxChainmask1x1"
4640#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK_MIN (1)
4641#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK_MAX (2)
4642#define CFG_VHT_ENABLE_1x1_TX_CHAINMASK_DEFAULT (1)
4643
Agrawal Ashishe2219bb2017-01-10 20:18:33 +05304644/*
4645 * <ini>
4646 * gSetRxChainmask1x1 - Sets Receive chain mask.
4647 * @Min: 1
4648 * @Max: 2
4649 * @Default: 1
4650 *
4651 * This ini is used to set Receive chain mask.
4652 *
4653 * If gEnable2x2 is disabled, gSetTxChainmask1x1 and gSetRxChainmask1x1 values
4654 * are taken into account. If chainmask value exceeds the maximum number of
4655 * chains supported by target, the max number of chains is used. By default,
4656 * chain0 is selected for both Tx and Rx.
4657 * gSetTxChainmask1x1=1 or gSetRxChainmask1x1=1 to select chain0.
4658 * gSetTxChainmask1x1=2 or gSetRxChainmask1x1=2 to select chain1.
4659 *
4660 * Supported Feature: 11AC
4661 *
4662 * Usage: External
4663 *
4664 * </ini>
4665 */
4666
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004667#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK "gSetRxChainmask1x1"
4668#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK_MIN (1)
4669#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK_MAX (2)
4670#define CFG_VHT_ENABLE_1x1_RX_CHAINMASK_DEFAULT (1)
4671
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304672/*
4673 * <ini>
4674 * gEnableAMPDUPS - Enable the AMPDUPS
4675 * @Min: 0
4676 * @Max: 1
4677 * @Default: 0
4678 *
4679 * This ini is used to set default AMPDUPS
4680 *
4681 * Related: None
4682 *
4683 * Supported Feature: STA
4684 *
4685 * Usage: Internal/External
4686 *
4687 * </ini>
4688 */
4689
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004690#define CFG_ENABLE_AMPDUPS_FEATURE "gEnableAMPDUPS"
4691#define CFG_ENABLE_AMPDUPS_FEATURE_MIN (0)
4692#define CFG_ENABLE_AMPDUPS_FEATURE_MAX (1)
4693#define CFG_ENABLE_AMPDUPS_FEATURE_DEFAULT (0)
4694
4695#define CFG_HT_ENABLE_SMPS_CAP_FEATURE "gEnableHtSMPS"
4696#define CFG_HT_ENABLE_SMPS_CAP_FEATURE_MIN (0)
4697#define CFG_HT_ENABLE_SMPS_CAP_FEATURE_MAX (1)
4698#define CFG_HT_ENABLE_SMPS_CAP_FEATURE_DEFAULT (0)
4699
4700#define CFG_HT_SMPS_CAP_FEATURE "gHtSMPS"
4701#define CFG_HT_SMPS_CAP_FEATURE_MIN (0)
4702#define CFG_HT_SMPS_CAP_FEATURE_MAX (3)
4703#define CFG_HT_SMPS_CAP_FEATURE_DEFAULT (3)
4704
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304705/*
4706 * <ini>
4707 * gDisableDFSChSwitch - Disable channel switch if radar is found
4708 * @Min: 0
4709 * @Max: 1
4710 * @Default: 0
4711 *
4712 * This ini is used to disable channel switch if radar is found
4713 * on that channel.
4714 * Related: NA.
4715 *
4716 * Supported Feature: DFS
4717 *
4718 * Usage: Internal
4719 *
4720 * </ini>
4721 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004722#define CFG_DISABLE_DFS_CH_SWITCH "gDisableDFSChSwitch"
4723#define CFG_DISABLE_DFS_CH_SWITCH_MIN (0)
4724#define CFG_DISABLE_DFS_CH_SWITCH_MAX (1)
4725#define CFG_DISABLE_DFS_CH_SWITCH_DEFAULT (0)
4726
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304727/*
4728 * <ini>
4729 * gEnableDFSMasterCap - Enable DFS master capability
4730 * @Min: 0
4731 * @Max: 1
4732 * @Default: 0
4733 *
4734 * This ini is used to enable/disable the DFS master capability.
4735 * Disabling it will cause driver to not advertise the spectrum
4736 * management capability
4737 * Related: NA.
4738 *
4739 * Supported Feature: DFS
4740 *
4741 * Usage: Internal/External
4742 *
4743 * </ini>
4744 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004745#define CFG_ENABLE_DFS_MASTER_CAPABILITY "gEnableDFSMasterCap"
4746#define CFG_ENABLE_DFS_MASTER_CAPABILITY_MIN (0)
4747#define CFG_ENABLE_DFS_MASTER_CAPABILITY_MAX (1)
4748#define CFG_ENABLE_DFS_MASTER_CAPABILITY_DEFAULT (0)
4749
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304750/*
4751 * <ini>
4752 * gSapPreferredChanLocation - Restrict channel switches between ondoor and
4753 * outdoor.
4754 * @Min: 0
4755 * @Max: 2
4756 * @Default: 0
4757 *
4758 * This ini is used for restricting channel switches between Indoor and outdoor
4759 * channels after radar detection.
4760 * 0- No preferred channel location
4761 * 1- Use indoor channels only
4762 * 2- Use outdoor channels only
4763 * Related: NA.
4764 *
4765 * Supported Feature: DFS
4766 *
4767 * Usage: Internal/External
4768 *
4769 * </ini>
4770 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004771#define CFG_SAP_PREFERRED_CHANNEL_LOCATION "gSapPreferredChanLocation"
4772#define CFG_SAP_PREFERRED_CHANNEL_LOCATION_MIN (0)
4773#define CFG_SAP_PREFERRED_CHANNEL_LOCATION_MAX (2)
4774#define CFG_SAP_PREFERRED_CHANNEL_LOCATION_DEFAULT (0)
4775
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304776/*
4777 * <ini>
4778 * gDisableDfsJapanW53 - Block W53 channels in random channel selection
4779 * @Min: 0
4780 * @Max: 1
4781 * @Default: 0
4782 *
4783 * This ini is used to block W53 Japan channel in random channel selection
4784 * Related: NA.
4785 *
4786 * Supported Feature: DFS
4787 *
4788 * Usage: Internal/External
4789 *
4790 * </ini>
4791 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004792#define CFG_DISABLE_DFS_JAPAN_W53 "gDisableDfsJapanW53"
4793#define CFG_DISABLE_DFS_JAPAN_W53_MIN (0)
4794#define CFG_DISABLE_DFS_JAPAN_W53_MAX (1)
4795#define CFG_DISABLE_DFS_JAPAN_W53_DEFAULT (0)
4796
Kapil Gupta825f1ba2017-01-03 12:24:01 +05304797/*
4798 * <ini>
4799 * gDisableDfsJapanW53 - Enable dfs phyerror filtering offload in FW
4800 * @Min: 0
4801 * @Max: 1
4802 * @Default: 1
4803 *
4804 * This ini is used to to enable dfs phyerror filtering offload to firmware
4805 * Enabling it will cause basic phy error to be discarding in firmware.
4806 * Related: NA.
4807 *
4808 * Supported Feature: DFS
4809 *
4810 * Usage: Internal/External
4811 *
4812 * </ini>
4813 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004814#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_NAME "dfsPhyerrFilterOffload"
4815#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_MIN (0)
4816#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_MAX (1)
4817#define CFG_ENABLE_DFS_PHYERR_FILTEROFFLOAD_DEFAULT (0)
4818
4819#define CFG_REPORT_MAX_LINK_SPEED "gReportMaxLinkSpeed"
4820#define CFG_REPORT_MAX_LINK_SPEED_MIN (eHDD_LINK_SPEED_REPORT_ACTUAL)
4821#define CFG_REPORT_MAX_LINK_SPEED_MAX (eHDD_LINK_SPEED_REPORT_MAX_SCALED)
4822#define CFG_REPORT_MAX_LINK_SPEED_DEFAULT (eHDD_LINK_SPEED_REPORT_MAX_SCALED)
4823
4824/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304825 * <ini>
4826 * gLinkSpeedRssiHigh - Report the max possible speed with RSSI scaling
4827 * @Min: 0
4828 * @Max: 1
4829 * @Default: 0
4830 *
4831 * This ini is used to set default eHDD_LINK_SPEED_REPORT
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004832 * Used when eHDD_LINK_SPEED_REPORT_SCALED is selected
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304833 *
4834 * Related: None
4835 *
4836 * Supported Feature: STA
4837 *
4838 * Usage: Internal/External
4839 *
4840 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004841 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304842
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004843#define CFG_LINK_SPEED_RSSI_HIGH "gLinkSpeedRssiHigh"
4844#define CFG_LINK_SPEED_RSSI_HIGH_MIN (-127)
4845#define CFG_LINK_SPEED_RSSI_HIGH_MAX (0)
4846#define CFG_LINK_SPEED_RSSI_HIGH_DEFAULT (-55)
4847
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304848/*
4849 * <ini>
4850 * gLinkSpeedRssiMed - Used when eHDD_LINK_SPEED_REPORT_SCALED is selected
4851 * @Min: -127
4852 * @Max: 0
4853 * @Default: -65
4854 *
4855 * This ini is used to set medium rssi link speed
4856 *
4857 * Related: None
4858 *
4859 * Supported Feature: STA
4860 *
4861 * Usage: Internal/External
4862 *
4863 * </ini>
4864 */
4865
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004866#define CFG_LINK_SPEED_RSSI_MID "gLinkSpeedRssiMed"
4867#define CFG_LINK_SPEED_RSSI_MID_MIN (-127)
4868#define CFG_LINK_SPEED_RSSI_MID_MAX (0)
4869#define CFG_LINK_SPEED_RSSI_MID_DEFAULT (-65)
4870
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304871/*
4872 * <ini>
4873 * gLinkSpeedRssiLow - Used when eHDD_LINK_SPEED_REPORT_SCALED is selected
4874 * @Min: -127
4875 * @Max: 0
4876 * @Default: -80
4877 *
4878 * This ini is used to set low rssi link speed
4879 *
4880 * Related: None
4881 *
4882 * Supported Feature: STA
4883 *
4884 * Usage: Internal/External
4885 *
4886 * </ini>
4887 */
4888
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004889#define CFG_LINK_SPEED_RSSI_LOW "gLinkSpeedRssiLow"
4890#define CFG_LINK_SPEED_RSSI_LOW_MIN (-127)
4891#define CFG_LINK_SPEED_RSSI_LOW_MAX (0)
4892#define CFG_LINK_SPEED_RSSI_LOW_DEFAULT (-80)
4893
4894#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_NAME "isP2pDeviceAddrAdministrated"
4895#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MIN (0)
4896#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MAX (1)
4897#define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_DEFAULT (1)
4898
4899#define CFG_ENABLE_SSR "gEnableSSR"
4900#define CFG_ENABLE_SSR_MIN (0)
4901#define CFG_ENABLE_SSR_MAX (1)
4902#define CFG_ENABLE_SSR_DEFAULT (1)
4903
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304904/*
4905 * <ini>
4906 * gEnableOverLapCh - Enables Overlap Channel. If set, allow overlapping
4907 * channels to be selected for the SoftAP
4908 * @Min: 0
4909 * @Max: 1
4910 * @Default: 0
4911 *
4912 * This ini is used to set Overlap Channel
4913 *
4914 * Related: None
4915 *
4916 * Supported Feature: STA
4917 *
4918 * Usage: Internal/External
4919 *
4920 * </ini>
4921 */
4922
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004923#define CFG_ENABLE_OVERLAP_CH "gEnableOverLapCh"
4924#define CFG_ENABLE_OVERLAP_CH_MIN (0)
4925#define CFG_ENABLE_OVERLAP_CH_MAX (1)
4926#define CFG_ENABLE_OVERLAP_CH_DEFAULT (0)
4927
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304928/*
4929 * <ini>
4930 * gEnable5gEBT - Enables/disables 5G early beacon termination. When enabled
4931 * terminate the reception of beacon if the TIM element is
4932 * clear for the power saving
4933 * @Min: 0
4934 * @Max: 1
4935 * @Default: 1
4936 *
4937 * This ini is used to set default 5G early beacon termination
4938 *
4939 * Related: None
4940 *
4941 * Supported Feature: STA
4942 *
4943 * Usage: Internal/External
4944 *
4945 * </ini>
4946 */
4947
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004948#define CFG_PPS_ENABLE_5G_EBT "gEnable5gEBT"
4949#define CFG_PPS_ENABLE_5G_EBT_FEATURE_MIN (0)
4950#define CFG_PPS_ENABLE_5G_EBT_FEATURE_MAX (1)
Jeff Johnson860e1242016-09-20 08:59:23 -07004951#define CFG_PPS_ENABLE_5G_EBT_FEATURE_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004952
4953#define CFG_ENABLE_MEMORY_DEEP_SLEEP "gEnableMemDeepSleep"
4954#define CFG_ENABLE_MEMORY_DEEP_SLEEP_MIN (0)
4955#define CFG_ENABLE_MEMORY_DEEP_SLEEP_MAX (1)
4956#define CFG_ENABLE_MEMORY_DEEP_SLEEP_DEFAULT (1)
4957
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304958/*
4959 * <ini>
4960 * gDefaultRateIndex24Ghz -Set the rate index for 24Ghz
4961 * @Min: 1
4962 * @Max: 9
4963 * @Default: 1
4964 *
4965 * This ini is used to set default rate index
4966 * In cfg.dat 1=1MBPS, 2=2MBPS, 3=5_5MBPS, 4=11MBPS, 5=6MBPS, 6=9MBPS,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004967 * 7=12MBPS, 8=18MBPS, 9=24MBPS. But 6=9MBPS and 8=18MBPS are not basic
4968 * 11g rates and should not be set by gDefaultRateIndex24Ghz.
Sen, Devendra9ca8c432017-02-23 15:10:26 +05304969 *
4970 * Related: None
4971 *
4972 * Supported Feature: STA
4973 *
4974 * Usage: Internal/External
4975 *
4976 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004977 */
4978
4979#define CFG_DEFAULT_RATE_INDEX_24GH "gDefaultRateIndex24Ghz"
4980#define CFG_DEFAULT_RATE_INDEX_24GH_MIN (1)
4981#define CFG_DEFAULT_RATE_INDEX_24GH_MAX (9)
4982#define CFG_DEFAULT_RATE_INDEX_24GH_DEFAULT (1)
4983
4984#define CFG_ENABLE_PACKET_LOG "gEnablePacketLog"
4985#define CFG_ENABLE_PACKET_LOG_MIN (0)
4986#define CFG_ENABLE_PACKET_LOG_MAX (1)
Poddar, Siddartheefe3482016-09-21 18:12:59 +05304987#ifdef FEATURE_PKTLOG
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004988#define CFG_ENABLE_PACKET_LOG_DEFAULT (1)
Poddar, Siddartheefe3482016-09-21 18:12:59 +05304989#else
4990#define CFG_ENABLE_PACKET_LOG_DEFAULT (0)
4991#endif
4992
4993
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08004994
4995/* gFwDebugLogType takes values from enum dbglog_process_t,
4996 * make default value as DBGLOG_PROCESS_NET_RAW to give the
4997 * logs to net link since cnss_diag service is started at boot
4998 * time by default.
4999 */
5000#define CFG_ENABLE_FW_LOG_TYPE "gFwDebugLogType"
5001#define CFG_ENABLE_FW_LOG_TYPE_MIN (0)
5002#define CFG_ENABLE_FW_LOG_TYPE_MAX (255)
5003#define CFG_ENABLE_FW_LOG_TYPE_DEFAULT (3)
5004
5005/* gFwDebugLogLevel takes values from enum DBGLOG_LOG_LVL,
5006 * make default value as DBGLOG_WARN to enable error and
5007 * warning logs by default.
5008 */
5009#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL "gFwDebugLogLevel"
5010#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL_MIN (0)
5011#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL_MAX (255)
Nishank Aggarwale239d962017-03-03 12:26:02 +05305012#define CFG_ENABLE_FW_DEBUG_LOG_LEVEL_DEFAULT (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005013
5014/* For valid values of log levels check enum DBGLOG_LOG_LVL and
5015 * for valid values of module ids check enum WLAN_MODULE_ID.
5016 */
5017#define CFG_ENABLE_FW_MODULE_LOG_LEVEL "gFwDebugModuleLoglevel"
Nishank Aggarwal1bd0ae82017-04-07 17:32:56 +05305018#define CFG_ENABLE_FW_MODULE_LOG_DEFAULT "2,1,3,1,5,1,9,1,13,1,14,1,18,1,19,1,26,1,28,1,29,1,31,1,36,1,38,1,46,1,47,1,50,1,52,1,53,1,56,1,60,1,61,1,4,1"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005019
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +05305020/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305021 * <ini>
5022 * gEnableRTSProfiles - It will use configuring different RTS profiles
5023 * @Min: 0
5024 * @Max: 34
5025 * @Default: 33
5026 *
5027 * This ini used for configuring different RTS profiles
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +05305028 * to firmware.
5029 * Following are the valid values for the rtsprofile:
5030 * RTSCTS_DISABLED 0
5031 * RTSCTS_ENABLED_4_SECOND_RATESERIES 17
5032 * CTS2SELF_ENABLED_4_SECOND_RATESERIES 18
5033 * RTSCTS_ENABLED_4_SWRETRIES 33
5034 * CTS2SELF_ENABLED_4_SWRETRIES 34
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305035 *
5036 * Related: None
5037 *
5038 * Supported Feature: STA
5039 *
5040 * Usage: Internal/External
5041 *
5042 * </ini>
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +05305043 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305044
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +05305045#define CFG_ENABLE_FW_RTS_PROFILE "gEnableRTSProfiles"
5046#define CFG_ENABLE_FW_RTS_PROFILE_MIN (0)
5047#define CFG_ENABLE_FW_RTS_PROFILE_MAX (34)
5048#define CFG_ENABLE_FW_RTS_PROFILE_DEFAULT (33)
5049
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005050#ifdef FEATURE_GREEN_AP
5051#define CFG_ENABLE_GREEN_AP_FEATURE "gEnableGreenAp"
5052#define CFG_ENABLE_GREEN_AP_FEATURE_MIN (0)
5053#define CFG_ENABLE_GREEN_AP_FEATURE_MAX (1)
5054#define CFG_ENABLE_GREEN_AP_FEATURE_DEFAULT (1)
Ryan Hsucb118cf2015-11-09 16:03:53 -08005055
5056/* Enhanced Green AP (EGAP) flags/params */
5057#define CFG_ENABLE_EGAP_ENABLE_FEATURE "gEnableEGAP"
5058#define CFG_ENABLE_EGAP_ENABLE_FEATURE_MIN (0)
5059#define CFG_ENABLE_EGAP_ENABLE_FEATURE_MAX (1)
5060#define CFG_ENABLE_EGAP_ENABLE_FEATURE_DEFAULT (0)
5061
5062#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE "gEGAPInactTime"
5063#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE_MIN (0)
Kondabattini, Ganeshf3dca962016-08-10 20:03:46 +05305064#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE_MAX (300000)
Dustin Brown9a9437f2017-05-17 16:34:01 -07005065#define CFG_ENABLE_EGAP_INACT_TIME_FEATURE_DEFAULT (2000)
Ryan Hsucb118cf2015-11-09 16:03:53 -08005066
5067#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE "gEGAPWaitTime"
5068#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE_MIN (0)
Kondabattini, Ganeshf3dca962016-08-10 20:03:46 +05305069#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE_MAX (300000)
Dustin Brown9a9437f2017-05-17 16:34:01 -07005070#define CFG_ENABLE_EGAP_WAIT_TIME_FEATURE_DEFAULT (150)
Ryan Hsucb118cf2015-11-09 16:03:53 -08005071
5072#define CFG_ENABLE_EGAP_FLAGS_FEATURE "gEGAPFeatures"
5073#define CFG_ENABLE_EGAP_FLAGS_FEATURE_MIN (0)
5074#define CFG_ENABLE_EGAP_FLAGS_FEATURE_MAX (15)
Dustin Brown9a9437f2017-05-17 16:34:01 -07005075#define CFG_ENABLE_EGAP_FLAGS_FEATURE_DEFAULT (3)
Ryan Hsucb118cf2015-11-09 16:03:53 -08005076/* end Enhanced Green AP flags/params */
5077
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005078#endif
5079
5080#ifdef FEATURE_WLAN_FORCE_SAP_SCC
Nitesh Shah03161d12016-12-06 18:30:12 +05305081/*
5082 * <ini>
5083 * gSapSccChanAvoidance - Channel avoidance for SAP in SCC.
5084 * @Min: 0
5085 * @Max: 1
5086 * @Default: 0
5087 *
5088 * This ini is used to enable/disable channel avoidance for SAP in SCC
5089 * scenario.
5090 *
5091 * Related: None.
5092 *
5093 * Supported Feature: Concurrency
5094 *
5095 * Usage: Internal/External
5096 *
5097 * </ini>
5098 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305099
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005100#define CFG_SAP_SCC_CHAN_AVOIDANCE "gSapSccChanAvoidance"
5101#define CFG_SAP_SCC_CHAN_AVOIDANCE_MIN (0)
5102#define CFG_SAP_SCC_CHAN_AVOIDANCE_MAX (1)
5103#define CFG_SAP_SCC_CHAN_AVOIDANCE_DEFAULT (0)
5104#endif /* FEATURE_WLAN_FORCE_SAP_SCC */
5105
5106/*
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05305107 * QDF Trace Enable Control
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005108 * Notes:
5109 * the MIN/MAX/DEFAULT values apply for all modules
5110 * the DEFAULT value is outside the valid range. if the DEFAULT
5111 * value is not overridden, then no change will be made to the
5112 * "built in" default values compiled into the code
5113 * values are a bitmap indicating which log levels are to enabled
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05305114 * (must match order of qdf_trace_level enumerations)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005115 * 00000001 FATAL
5116 * 00000010 ERROR
5117 * 00000100 WARN
5118 * 00001000 INFO
5119 * 00010000 INFO HIGH
5120 * 00100000 INFO MED
5121 * 01000000 INFO LOW
5122 * 10000000 DEBUG
5123 *
5124 * hence a value of 0xFF would set all bits (enable all logs)
5125 */
5126
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05305127#define CFG_QDF_TRACE_ENABLE_WDI_NAME "qdf_trace_enable_wdi"
5128#define CFG_QDF_TRACE_ENABLE_HDD_NAME "qdf_trace_enable_hdd"
5129#define CFG_QDF_TRACE_ENABLE_SME_NAME "qdf_trace_enable_sme"
5130#define CFG_QDF_TRACE_ENABLE_PE_NAME "qdf_trace_enable_pe"
5131#define CFG_QDF_TRACE_ENABLE_PMC_NAME "qdf_trace_enable_pmc"
5132#define CFG_QDF_TRACE_ENABLE_WMA_NAME "qdf_trace_enable_wma"
5133#define CFG_QDF_TRACE_ENABLE_SYS_NAME "qdf_trace_enable_sys"
5134#define CFG_QDF_TRACE_ENABLE_QDF_NAME "qdf_trace_enable_qdf"
5135#define CFG_QDF_TRACE_ENABLE_SAP_NAME "qdf_trace_enable_sap"
5136#define CFG_QDF_TRACE_ENABLE_HDD_SAP_NAME "qdf_trace_enable_hdd_sap"
5137#define CFG_QDF_TRACE_ENABLE_BMI_NAME "qdf_trace_enable_bmi"
5138#define CFG_QDF_TRACE_ENABLE_CFG_NAME "qdf_trace_enable_cfg"
5139#define CFG_QDF_TRACE_ENABLE_EPPING "qdf_trace_enable_epping"
5140#define CFG_QDF_TRACE_ENABLE_QDF_DEVICES "qdf_trace_enable_qdf_devices"
5141#define CFG_QDF_TRACE_ENABLE_TXRX_NAME "cfd_trace_enable_txrx"
5142#define CFG_QDF_TRACE_ENABLE_HTC_NAME "qdf_trace_enable_htc"
5143#define CFG_QDF_TRACE_ENABLE_HIF_NAME "qdf_trace_enable_hif"
5144#define CFG_CDR_TRACE_ENABLE_HDD_SAP_DATA_NAME "qdf_trace_enable_hdd_sap_data"
5145#define CFG_QDF_TRACE_ENABLE_HDD_DATA_NAME "qdf_trace_enable_hdd_data"
Naveen Rawat7df31862017-03-01 17:09:30 -08005146#define CFG_QDF_TRACE_ENABLE_WIFI_POS "qdf_trace_enable_wifi_pos"
Naveen Rawatf2b0dbd2017-03-27 10:00:15 -07005147#define CFG_QDF_TRACE_ENABLE_NAN "qdf_trace_enable_nan"
Kiran Kumar Lokere798de7e2017-03-30 14:01:12 -07005148#define CFG_QDF_TRACE_ENABLE_REGULATORY "qdf_trace_enable_regulatory"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005149
Anurag Chouhanf04e84f2016-03-03 10:12:12 +05305150#define CFG_QDF_TRACE_ENABLE_MIN (0)
5151#define CFG_QDF_TRACE_ENABLE_MAX (0xff)
5152#define CFG_QDF_TRACE_ENABLE_DEFAULT (0xffff)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005153
5154#define HDD_MCASTBCASTFILTER_FILTER_NONE 0x00
5155#define HDD_MCASTBCASTFILTER_FILTER_ALL_MULTICAST 0x01
5156#define HDD_MCASTBCASTFILTER_FILTER_ALL_BROADCAST 0x02
5157#define HDD_MCASTBCASTFILTER_FILTER_ALL_MULTICAST_BROADCAST 0x03
5158#define HDD_MULTICAST_FILTER_LIST 0x04
5159#define HDD_MULTICAST_FILTER_LIST_CLEAR 0x05
5160
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005161/*
5162 * Enable Dynamic DTIM
5163 * Options
5164 * 0 -Disable DynamicDTIM
5165 * 1 to 5 - SLM will switch to DTIM specified here when host suspends and
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08005166 * switch DTIM1 when host resumes
5167 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005168#define CFG_ENABLE_DYNAMIC_DTIM_NAME "gEnableDynamicDTIM"
5169#define CFG_ENABLE_DYNAMIC_DTIM_MIN (0)
Rajeev Kumar Sirasanagandla4a716ad2016-10-18 18:16:33 +05305170#define CFG_ENABLE_DYNAMIC_DTIM_MAX (9)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005171#define CFG_ENABLE_DYNAMIC_DTIM_DEFAULT (0)
5172
5173/*
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005174 * Driver Force ACS is reintroduced for android SAP legacy configuration method.
5175 * If Driver force acs is enabled, channel/ hw config from hostapd is ignored.
5176 * Driver uses INI params dot11Mode, channel bonding mode and vht chan width
5177 * to derive ACS HW mode and operating BW.
5178 *
5179 * Non android platforms shall not use force ACS method and rely on hostapd
5180 * driven ACS method for concurrent SAP ACS configuration, OBSS etc.
5181 */
5182#define CFG_FORCE_SAP_ACS "gApAutoChannelSelection"
5183#define CFG_FORCE_SAP_ACS_MIN (0)
5184#define CFG_FORCE_SAP_ACS_MAX (1)
5185#define CFG_FORCE_SAP_ACS_DEFAULT (0)
5186
5187#define CFG_FORCE_SAP_ACS_START_CH "gAPChannelSelectStartChannel"
5188#define CFG_FORCE_SAP_ACS_START_CH_MIN (0)
5189#define CFG_FORCE_SAP_ACS_START_CH_MAX (0xFF)
5190#define CFG_FORCE_SAP_ACS_START_CH_DEFAULT (1)
5191
5192#define CFG_FORCE_SAP_ACS_END_CH "gAPChannelSelectEndChannel"
5193#define CFG_FORCE_SAP_ACS_END_CH_MIN (0)
5194#define CFG_FORCE_SAP_ACS_END_CH_MAX (0xFF)
5195#define CFG_FORCE_SAP_ACS_END_CH_DEFAULT (11)
5196
5197/*
5198 * Skip DFS Channel in case of P2P Search
5199 * Options
5200 * 0 - Don't Skip DFS Channel in case of P2P Search
5201 * 1 - Skip DFS Channel in case of P2P Search
5202 */
Kapil Gupta825f1ba2017-01-03 12:24:01 +05305203/*
5204 * <ini>
5205 * gSkipDfsChannelInP2pSearch - Skip DFS Channel in case of P2P Search
5206 * @Min: 0
5207 * @Max: 1
5208 * @Default: 1
5209 *
5210 * This ini is used to to disable(skip) dfs channel in p2p search.
5211 * Related: NA.
5212 *
5213 * Supported Feature: DFS P2P
5214 *
5215 * Usage: Internal/External
5216 *
5217 * </ini>
5218 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005219#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_NAME "gSkipDfsChannelInP2pSearch"
5220#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_MIN (0)
5221#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_MAX (1)
5222#define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_DEFAULT (1)
5223
5224/*
5225 * Ignore Dynamic Dtim in case of P2P
5226 * Options
5227 * 0 - Consider Dynamic Dtim incase of P2P
5228 * 1 - Ignore Dynamic Dtim incase of P2P
5229 */
5230#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_NAME "gIgnoreDynamicDtimInP2pMode"
5231#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_MIN (0)
5232#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_MAX (1)
5233#define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_DEFAULT (0)
5234
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305235/*
5236 * <ini>
5237 * gShortGI40Mhz - It will check gShortGI20Mhz and
5238 * gShortGI40Mhz from session entry
5239 * @Min: 0
5240 * @Max: 1
5241 * @Default: 1
5242 *
5243 * This ini is used to set default gShortGI40Mhz
5244 *
5245 * Related: None
5246 *
5247 * Supported Feature: STA
5248 *
5249 * Usage: Internal/External
5250 *
5251 * </ini>
5252 */
5253
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005254#define CFG_SHORT_GI_40MHZ_NAME "gShortGI40Mhz"
5255#define CFG_SHORT_GI_40MHZ_MIN 0
5256#define CFG_SHORT_GI_40MHZ_MAX 1
5257#define CFG_SHORT_GI_40MHZ_DEFAULT 1
5258
5259/*
Nitesh Shah03161d12016-12-06 18:30:12 +05305260 * <ini>
5261 * gEnableMCCMode - Enable/Disable MCC feature.
5262 * @Min: 0
5263 * @Max: 1
5264 * @Default: 1
5265 *
5266 * This ini is used to enable/disable MCC feature.
5267 *
5268 * Related: None.
5269 *
5270 * Supported Feature: Concurrency
5271 *
5272 * Usage: Internal/External
5273 *
5274 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005275 */
5276#define CFG_ENABLE_MCC_ENABLED_NAME "gEnableMCCMode"
5277#define CFG_ENABLE_MCC_ENABLED_MIN (0)
5278#define CFG_ENABLE_MCC_ENABLED_MAX (1)
5279#define CFG_ENABLE_MCC_ENABLED_DEFAULT (1)
5280
5281/*
Nitesh Shah03161d12016-12-06 18:30:12 +05305282 * <ini>
5283 * gAllowMCCGODiffBI - Allow GO in MCC mode to accept different beacon interval
5284 * than STA's.
5285 * @Min: 0
5286 * @Max: 4
5287 * @Default: 4
5288 *
5289 * This ini is used to allow GO in MCC mode to accept different beacon interval
5290 * than STA's.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005291 * Added for Wi-Fi Cert. 5.1.12
Nitesh Shah03161d12016-12-06 18:30:12 +05305292 * If gAllowMCCGODiffBI = 1
5293 * Set to 1 for WFA certification. GO Beacon interval is not changed.
5294 * MCC GO doesn't work well in optimized way. In worst scenario, it may
5295 * invite STA disconnection.
5296 * If gAllowMCCGODiffBI = 2
5297 * If set to 2 workaround 1 disassoc all the clients and update beacon
5298 * Interval.
5299 * If gAllowMCCGODiffBI = 3
5300 * If set to 3 tear down the P2P link in auto/Non-autonomous -GO case.
5301 * If gAllowMCCGODiffBI = 4
5302 * If set to 4 don't disconnect the P2P client in autonomous/Non-auto-
5303 * nomous -GO case update the BI dynamically
5304 *
5305 * Related: None.
5306 *
5307 * Supported Feature: Concurrency
5308 *
5309 * Usage: Internal/External
5310 *
5311 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005312 */
5313#define CFG_ALLOW_MCC_GO_DIFF_BI_NAME "gAllowMCCGODiffBI"
5314#define CFG_ALLOW_MCC_GO_DIFF_BI_MIN (0)
5315#define CFG_ALLOW_MCC_GO_DIFF_BI_MAX (4)
5316#define CFG_ALLOW_MCC_GO_DIFF_BI_DEFAULT (4)
5317
Poddar, Siddarthb61cf642016-04-28 16:02:39 +05305318#if defined(CONFIG_HL_SUPPORT) && defined(QCA_BAD_PEER_TX_FLOW_CL)
5319/*
5320 * Enable/Disable Bad Peer TX CTL feature
5321 * Default: Enable
5322 */
5323#define CFG_BAD_PEER_TX_CTL_ENABLE_NAME "gBadPeerTxCtlEnable"
5324#define CFG_BAD_PEER_TX_CTL_ENABLE_MIN (0)
5325#define CFG_BAD_PEER_TX_CTL_ENABLE_MAX (1)
5326#define CFG_BAD_PEER_TX_CTL_ENABLE_DEFAULT (1)
5327
5328#define CFG_BAD_PEER_TX_CTL_PERIOD_NAME "gBadPeerTxCtlPeriod"
5329#define CFG_BAD_PEER_TX_CTL_PERIOD_MIN (10)
5330#define CFG_BAD_PEER_TX_CTL_PERIOD_MAX (10000)
5331#define CFG_BAD_PEER_TX_CTL_PERIOD_DEFAULT (50)
5332
5333#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_NAME "gBadPeerTxCtlTxqLimit"
5334#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_MIN (1)
5335#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_MAX (5000)
5336#define CFG_BAD_PEER_TX_CTL_TXQ_LIMIT_DEFAULT (100)
5337
5338#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_NAME "gBadPeerTxCtlTgtBackoffTime"
5339#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_MIN (1)
5340#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_MAX (5000)
5341#define CFG_BAD_PEER_TX_CTL_TGT_BACKOFF_T_DEFAULT (20)
5342
5343#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_NAME "gBadPeerTxCtlTgtReportPeriod"
5344#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_MIN (1)
5345#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_MAX (5000)
5346#define CFG_BAD_PEER_TX_CTL_TGT_REPORT_PRD_DEFAULT (500)
5347
5348#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_NAME "gBadPeerTxCtlCondLevelIeeeB"
5349#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_MIN (1)
5350#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_MAX (2)
5351#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEB_DEFAULT (2)
5352
5353#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_NAME "gBadPeerTxCtlDeltaLevelIeeeB"
5354#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_MIN (1)
5355#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_MAX (11)
5356#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEB_DEFAULT (2)
5357
5358#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_NAME "gBadPeerTxCtlPctLevelIeeeB"
5359#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_MIN (1)
5360#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_MAX (8)
5361#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEB_DEFAULT (1)
5362
5363#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_NAME "gBadPeerTxCtlTputLevelIeeeB"
5364#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_MIN (1)
5365#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_MAX (11)
5366#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEB_DEFAULT (2)
5367
5368#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_NAME "gBadPeerTxCtlTxLimitLevelIeeeB"
5369#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_MIN (0)
5370#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_MAX (50)
5371#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEB_DEFAULT (3)
5372
5373#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_NAME "gBadPeerTxCtlCondLevelIeeeAG"
5374#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_MIN (1)
5375#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_MAX (2)
5376#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAG_DEFAULT (2)
5377
5378#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_NAME "gBadPeerTxCtlDeltaLevelIeeeAG"
5379#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_MIN (6)
5380#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_MAX (54)
5381#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAG_DEFAULT (6)
5382
5383#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_NAME "gBadPeerTxCtlPctLevelIeeeAG"
5384#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_MIN (1)
5385#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_MAX (8)
5386#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAG_DEFAULT (1)
5387
5388#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_NAME "gBadPeerTxCtlTputLevelIeeeAG"
5389#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_MIN (6)
5390#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_MAX (54)
5391#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAG_DEFAULT (6)
5392
5393#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_NAME "gBadPeerTxCtlTxLimitLevelIeeeAG"
5394#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_MIN (0)
5395#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_MAX (50)
5396#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAG_DEFAULT (3)
5397
5398#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_NAME "gBadPeerTxCtlCondLevelIeeeN"
5399#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_MIN (1)
5400#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_MAX (2)
5401#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEN_DEFAULT (2)
5402
5403#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_NAME "gBadPeerTxCtlDeltaLevelIeeeN"
5404#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_MIN (6)
5405#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_MAX (72)
5406#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEN_DEFAULT (6)
5407
5408#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_NAME "gBadPeerTxCtlPctLevelIeeeN"
5409#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_MIN (1)
5410#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_MAX (8)
5411#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEN_DEFAULT (1)
5412
5413#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_NAME "gBadPeerTxCtlTputLevelIeeeN"
5414#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_MIN (6)
5415#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_MAX (72)
5416#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEN_DEFAULT (15)
5417
5418#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_NAME "gBadPeerTxCtlTxLimitLevelIeeeN"
5419#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_MIN (0)
5420#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_MAX (50)
5421#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEN_DEFAULT (3)
5422
5423#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_NAME "gBadPeerTxCtlCondLevelIeeeAC"
5424#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_MIN (1)
5425#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_MAX (2)
5426#define CFG_BAD_PEER_TX_CTL_COND_LEVEL_IEEEAC_DEFAULT (2)
5427
5428#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_NAME "gBadPeerTxCtlDeltaLevelIeeeAC"
5429#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_MIN (6)
5430#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_MAX (433)
5431#define CFG_BAD_PEER_TX_CTL_DELTA_LEVEL_IEEEAC_DEFAULT (6)
5432
5433#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_NAME "gBadPeerTxCtlPctLevelIeeeAC"
5434#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_MIN (1)
5435#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_MAX (8)
5436#define CFG_BAD_PEER_TX_CTL_PCT_LEVEL_IEEEAC_DEFAULT (1)
5437
5438#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_NAME "gBadPeerTxCtlTputLevelIeeeAC"
5439#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_MIN (6)
5440#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_MAX (433)
5441#define CFG_BAD_PEER_TX_CTL_TPUT_LEVEL_IEEEAC_DEFAULT (15)
5442
5443#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_NAME "gBadPeerTxCtlTxLimitLevelIeeeAC"
5444#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_MIN (0)
5445#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_MAX (50)
5446#define CFG_BAD_PEER_TX_CTL_TX_LIMIT_LEVEL_IEEEAC_DEFAULT (3)
5447#endif
5448
5449
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005450/*
5451 * Enable/Disable Thermal Mitigation feature
5452 * Default: Enable
5453 */
5454#define CFG_THERMAL_MIGRATION_ENABLE_NAME "gThermalMitigationEnable"
5455#define CFG_THERMAL_MIGRATION_ENABLE_MIN (0)
5456#define CFG_THERMAL_MIGRATION_ENABLE_MAX (1)
Manjeet Singhbcd1cfd2017-01-11 15:15:14 +05305457#define CFG_THERMAL_MIGRATION_ENABLE_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005458
5459#define CFG_THROTTLE_PERIOD_NAME "gThrottlePeriod"
5460#define CFG_THROTTLE_PERIOD_MIN (10)
5461#define CFG_THROTTLE_PERIOD_MAX (10000)
5462#define CFG_THROTTLE_PERIOD_DEFAULT (4000)
5463
Poddar, Siddarth83905022016-04-16 17:56:08 -07005464/*
5465 * Configure Throttle Period Different Level Duty Cycle in percentage
5466 * When temperature measured is greater than threshold at particular level,
5467 * then throtling level will get increased by one level and
5468 * will reduce TX duty by the given percentage
5469 */
5470#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_NAME "gThrottleDutyCycleLevel0"
5471#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_MIN (0)
5472#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_MAX (0)
5473#define CFG_THROTTLE_DUTY_CYCLE_LEVEL0_DEFAULT (0)
5474
5475#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_NAME "gThrottleDutyCycleLevel1"
5476#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_MIN (0)
5477#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_MAX (100)
5478#define CFG_THROTTLE_DUTY_CYCLE_LEVEL1_DEFAULT (50)
5479
5480#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_NAME "gThrottleDutyCycleLevel2"
5481#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_MIN (0)
5482#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_MAX (100)
5483#define CFG_THROTTLE_DUTY_CYCLE_LEVEL2_DEFAULT (75)
5484
5485#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_NAME "gThrottleDutyCycleLevel3"
5486#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_MIN (0)
5487#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_MAX (100)
5488#define CFG_THROTTLE_DUTY_CYCLE_LEVEL3_DEFAULT (94)
5489
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005490#define CFG_THERMAL_TEMP_MIN_LEVEL0_NAME "gThermalTempMinLevel0"
5491#define CFG_THERMAL_TEMP_MIN_LEVEL0_MIN (0)
5492#define CFG_THERMAL_TEMP_MIN_LEVEL0_MAX (1000)
5493#define CFG_THERMAL_TEMP_MIN_LEVEL0_DEFAULT (0)
5494
5495#define CFG_THERMAL_TEMP_MAX_LEVEL0_NAME "gThermalTempMaxLevel0"
5496#define CFG_THERMAL_TEMP_MAX_LEVEL0_MIN (0)
5497#define CFG_THERMAL_TEMP_MAX_LEVEL0_MAX (1000)
5498#define CFG_THERMAL_TEMP_MAX_LEVEL0_DEFAULT (90)
5499
5500#define CFG_THERMAL_TEMP_MIN_LEVEL1_NAME "gThermalTempMinLevel1"
5501#define CFG_THERMAL_TEMP_MIN_LEVEL1_MIN (0)
5502#define CFG_THERMAL_TEMP_MIN_LEVEL1_MAX (1000)
5503#define CFG_THERMAL_TEMP_MIN_LEVEL1_DEFAULT (70)
5504
5505#define CFG_THERMAL_TEMP_MAX_LEVEL1_NAME "gThermalTempMaxLevel1"
5506#define CFG_THERMAL_TEMP_MAX_LEVEL1_MIN (0)
5507#define CFG_THERMAL_TEMP_MAX_LEVEL1_MAX (1000)
5508#define CFG_THERMAL_TEMP_MAX_LEVEL1_DEFAULT (110)
5509
5510#define CFG_THERMAL_TEMP_MIN_LEVEL2_NAME "gThermalTempMinLevel2"
5511#define CFG_THERMAL_TEMP_MIN_LEVEL2_MIN (0)
5512#define CFG_THERMAL_TEMP_MIN_LEVEL2_MAX (1000)
5513#define CFG_THERMAL_TEMP_MIN_LEVEL2_DEFAULT (90)
5514
5515#define CFG_THERMAL_TEMP_MAX_LEVEL2_NAME "gThermalTempMaxLevel2"
5516#define CFG_THERMAL_TEMP_MAX_LEVEL2_MIN (0)
5517#define CFG_THERMAL_TEMP_MAX_LEVEL2_MAX (1000)
5518#define CFG_THERMAL_TEMP_MAX_LEVEL2_DEFAULT (125)
5519
5520#define CFG_THERMAL_TEMP_MIN_LEVEL3_NAME "gThermalTempMinLevel3"
5521#define CFG_THERMAL_TEMP_MIN_LEVEL3_MIN (0)
5522#define CFG_THERMAL_TEMP_MIN_LEVEL3_MAX (1000)
5523#define CFG_THERMAL_TEMP_MIN_LEVEL3_DEFAULT (110)
5524
5525#define CFG_THERMAL_TEMP_MAX_LEVEL3_NAME "gThermalTempMaxLevel3"
5526#define CFG_THERMAL_TEMP_MAX_LEVEL3_MIN (0)
5527#define CFG_THERMAL_TEMP_MAX_LEVEL3_MAX (1000)
5528#define CFG_THERMAL_TEMP_MAX_LEVEL3_DEFAULT (0)
5529
5530/*
5531 * Enable/Disable Modulated DTIM feature
5532 * Default: Disable
5533 */
5534#define CFG_ENABLE_MODULATED_DTIM_NAME "gEnableModulatedDTIM"
5535#define CFG_ENABLE_MODULATED_DTIM_MIN (0)
5536#define CFG_ENABLE_MODULATED_DTIM_MAX (5)
5537#define CFG_ENABLE_MODULATED_DTIM_DEFAULT (0)
5538
5539/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305540 * <ini>
5541 * gMCAddrListEnable - Enable/Disable Multicast MAC Address List feature
5542 * @Min: 0
5543 * @Max: 1
5544 * @Default: 1
5545 *
5546 * This ini is used to set default MAC Address
Dustin Brownd03bf592016-09-08 14:40:51 -07005547 * Default: Enable
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305548 *
5549 * Related: None
5550 *
5551 * Supported Feature: STA
5552 *
5553 * Usage: Internal/External
5554 *
5555 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005556 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305557
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005558#define CFG_MC_ADDR_LIST_ENABLE_NAME "gMCAddrListEnable"
5559#define CFG_MC_ADDR_LIST_ENABLE_MIN (0)
5560#define CFG_MC_ADDR_LIST_ENABLE_MAX (1)
Dustin Brownd03bf592016-09-08 14:40:51 -07005561#define CFG_MC_ADDR_LIST_ENABLE_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005562
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305563/*
5564 * <ini>
5565 * gEnableRXSTBC - Enables/disables Rx STBC capability in STA mode
5566 * @Min: 0
5567 * @Max: 1
5568 * @Default: 1
5569 *
5570 * This ini is used to set default Rx STBC capability
5571 *
5572 * Related: None
5573 *
5574 * Supported Feature: STA
5575 *
5576 * Usage: Internal/External
5577 *
5578 * </ini>
5579 */
5580
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005581#define CFG_ENABLE_RX_STBC "gEnableRXSTBC"
5582#define CFG_ENABLE_RX_STBC_MIN (0)
5583#define CFG_ENABLE_RX_STBC_MAX (1)
5584#define CFG_ENABLE_RX_STBC_DEFAULT (1)
5585
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305586/*
5587 * <ini>
5588 * gEnableTXSTBC - Enables/disables Tx STBC capability in STA mode
5589 * @Min: 0
5590 * @Max: 1
5591 * @Default: 0
5592 *
5593 * This ini is used to set default Tx STBC capability
5594 *
5595 * Related: None
5596 *
5597 * Supported Feature: STA
5598 *
5599 * Usage: Internal/External
5600 *
5601 * </ini>
5602 */
5603
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005604#define CFG_ENABLE_TX_STBC "gEnableTXSTBC"
5605#define CFG_ENABLE_TX_STBC_MIN (0)
5606#define CFG_ENABLE_TX_STBC_MAX (1)
5607#define CFG_ENABLE_TX_STBC_DEFAULT (0)
5608
Sen, Devendra9ca8c432017-02-23 15:10:26 +05305609/*
5610 * <ini>
Hong Shib707b052017-03-08 23:33:14 +08005611 * gMaxHTMCSForTxData - max HT mcs for TX
5612 * @Min: 0
5613 * @Max: 383
5614 * @Default: 0
5615 *
5616 * This ini is used to configure the max HT mcs
5617 * for tx data.
5618 *
5619 * Usage: External
5620 *
5621 * bits 0-15: max HT mcs
5622 * bits 16-31: zero to disable, otherwise enable.
5623 *
5624 * </ini>
5625 */
5626#define CFG_MAX_HT_MCS_FOR_TX_DATA "gMaxHTMCSForTxData"
5627#define CFG_MAX_HT_MCS_FOR_TX_DATA_MIN (WNI_CFG_MAX_HT_MCS_TX_DATA_STAMIN)
5628#define CFG_MAX_HT_MCS_FOR_TX_DATA_MAX (WNI_CFG_MAX_HT_MCS_TX_DATA_STAMAX)
5629#define CFG_MAX_HT_MCS_FOR_TX_DATA_DEFAULT (WNI_CFG_MAX_HT_MCS_TX_DATA_STADEF)
5630
5631/*
5632 * <ini>
5633 * gDisableABGRateForTxData - disable abg rate for tx data
5634 * @Min: 0
5635 * @Max: 1
5636 * @Default: 0
5637 *
5638 * This ini is used to disable abg rate for tx data.
5639 *
5640 * Usage: External
5641 *
5642 * </ini>
5643 */
5644#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA "gDisableABGRateForTxData"
5645#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA_MIN \
5646 (WNI_CFG_DISABLE_ABG_RATE_FOR_TX_DATA_STAMIN)
5647#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA_MAX \
5648 (WNI_CFG_DISABLE_ABG_RATE_FOR_TX_DATA_STAMAX)
5649#define CFG_DISABLE_ABG_RATE_FOR_TX_DATA_DEFAULT \
5650 (WNI_CFG_DISABLE_ABG_RATE_FOR_TX_DATA_STADEF)
5651
5652/*
5653 * <ini>
5654 * gRateForTxMgmt - rate for tx mgmt frame
5655 * @Min: 0x0
5656 * @Max: 0xFF
5657 * @Default: 0xFF
5658 *
5659 * This ini is used to configure the rate for tx
5660 * mgmt frame. Default 0xFF means disable.
5661 *
5662 * Usage: External
5663 *
5664 * </ini>
5665 */
5666#define CFG_RATE_FOR_TX_MGMT "gRateForTxMgmt"
5667#define CFG_RATE_FOR_TX_MGMT_MIN (WNI_CFG_RATE_FOR_TX_MGMT_STAMIN)
5668#define CFG_RATE_FOR_TX_MGMT_MAX (WNI_CFG_RATE_FOR_TX_MGMT_STAMAX)
5669#define CFG_RATE_FOR_TX_MGMT_DEFAULT (WNI_CFG_RATE_FOR_TX_MGMT_STADEF)
5670
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005671#ifdef FEATURE_WLAN_TDLS
Nitesh Shahbb405832016-12-08 12:43:10 +05305672/*
5673 * <ini>
5674 * gEnableTDLSSupport - Enable support for TDLS.
5675 * @Min: 0
5676 * @Max: 1
5677 * @Default: 0
5678 *
5679 * This ini is used to enable/disable TDLS support.
5680 *
5681 * Related: None.
5682 *
5683 * Supported Feature: TDLS
5684 *
5685 * Usage: Internal/External
5686 *
5687 * </ini>
5688 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005689#define CFG_TDLS_SUPPORT_ENABLE "gEnableTDLSSupport"
5690#define CFG_TDLS_SUPPORT_ENABLE_MIN (0)
5691#define CFG_TDLS_SUPPORT_ENABLE_MAX (1)
5692#define CFG_TDLS_SUPPORT_ENABLE_DEFAULT (0)
5693
Nitesh Shahbb405832016-12-08 12:43:10 +05305694/*
5695 * <ini>
5696 * gEnableTDLSImplicitTrigger - Enable Implicit TDLS.
5697 * @Min: 0
5698 * @Max: 1
5699 * @Default: 0
5700 *
5701 * This ini is used to enable/disable implicit TDLS.
5702 * CLD driver initiates TDLS Discovery towards a peer whenever TDLS Setup
5703 * criteria (throughput and RSSI thresholds) is met and then it tears down
5704 * TDLS when teardown criteria (idle packet count and RSSI) is met.
5705 *
5706 * Related: gEnableTDLSSupport.
5707 *
5708 * Supported Feature: TDLS
5709 *
5710 * Usage: Internal/External
5711 *
5712 * </ini>
5713 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005714#define CFG_TDLS_IMPLICIT_TRIGGER "gEnableTDLSImplicitTrigger"
5715#define CFG_TDLS_IMPLICIT_TRIGGER_MIN (0)
5716#define CFG_TDLS_IMPLICIT_TRIGGER_MAX (1)
5717#define CFG_TDLS_IMPLICIT_TRIGGER_DEFAULT (0)
5718
Nitesh Shahbb405832016-12-08 12:43:10 +05305719/*
5720 * <ini>
5721 * gTDLSTxStatsPeriod - TDLS TX statistics time period.
5722 * @Min: 1000
5723 * @Max: 4294967295
5724 * @Default: 2000
5725 *
5726 * This ini is used to configure the time period (in ms) to evaluate whether
5727 * the number of Tx/Rx packets exceeds TDLSTxPacketThreshold and triggers a
5728 * TDLS Discovery request.
5729 *
5730 * Related: gEnableTDLSSupport.
5731 *
5732 * Supported Feature: TDLS
5733 *
5734 * Usage: Internal/External
5735 *
5736 * </ini>
5737 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005738#define CFG_TDLS_TX_STATS_PERIOD "gTDLSTxStatsPeriod"
Nitesh Shah6259b1c2016-09-05 15:50:53 +05305739#define CFG_TDLS_TX_STATS_PERIOD_MIN (1000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005740#define CFG_TDLS_TX_STATS_PERIOD_MAX (4294967295UL)
Nitesh Shah6259b1c2016-09-05 15:50:53 +05305741#define CFG_TDLS_TX_STATS_PERIOD_DEFAULT (2000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005742
Nitesh Shahbb405832016-12-08 12:43:10 +05305743/*
5744 * <ini>
5745 * gTDLSTxPacketThreshold - Tx/Rx Packet threshold for initiating TDLS.
5746 * @Min: 0
5747 * @Max: 4294967295
5748 * @Default: 40
5749 *
5750 * This ini is used to configure the number of Tx/Rx packets during the
5751 * period of gTDLSTxStatsPeriod when exceeded, a TDLS Discovery request
5752 * is triggered.
5753 * Related: gEnableTDLSSupport.
5754 *
5755 * Supported Feature: TDLS
5756 *
5757 * Usage: Internal/External
5758 *
5759 * </ini>
5760 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005761#define CFG_TDLS_TX_PACKET_THRESHOLD "gTDLSTxPacketThreshold"
5762#define CFG_TDLS_TX_PACKET_THRESHOLD_MIN (0)
5763#define CFG_TDLS_TX_PACKET_THRESHOLD_MAX (4294967295UL)
Nitesh Shah6259b1c2016-09-05 15:50:53 +05305764#define CFG_TDLS_TX_PACKET_THRESHOLD_DEFAULT (40)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005765
Nitesh Shahbb405832016-12-08 12:43:10 +05305766/*
5767 * <ini>
5768 * gTDLSMaxDiscoveryAttempt - Attempts for sending TDLS discovery requests.
5769 * @Min: 1
5770 * @Max: 100
5771 * @Default: 5
5772 *
5773 * This ini is used to configure the number of failures of discover request,
5774 * when exceeded, the peer is assumed to be not TDLS capable and no further
5775 * TDLS Discovery request is made.
5776 *
5777 * Related: gEnableTDLSSupport.
5778 *
5779 * Supported Feature: TDLS
5780 *
5781 * Usage: Internal/External
5782 *
5783 * </ini>
5784 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005785#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT "gTDLSMaxDiscoveryAttempt"
5786#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT_MIN (1)
5787#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT_MAX (100)
5788#define CFG_TDLS_MAX_DISCOVERY_ATTEMPT_DEFAULT (5)
5789
Nitesh Shahbb405832016-12-08 12:43:10 +05305790/*
5791 * <ini>
5792 * gTDLSIdleTimeout - Duration within which number of TX / RX frames meet the
5793 * criteria for TDLS teardown.
5794 * @Min: 500
5795 * @Max: 40000
5796 * @Default: 5000
5797 *
5798 * This ini is used to configure the time period (in ms) to evaluate whether
5799 * the number of Tx/Rx packets exceeds gTDLSIdlePacketThreshold and thus meets
5800 * criteria for TDLS teardown.
5801 * Teardown notification interval (gTDLSIdleTimeout) should be multiple of
5802 * setup notification (gTDLSTxStatsPeriod) interval.
5803 * e.g.
5804 * if setup notification (gTDLSTxStatsPeriod) interval = 500, then
5805 * teardown notification (gTDLSIdleTimeout) interval should be 1000,
5806 * 1500, 2000, 2500...
5807 *
5808 * Related: gEnableTDLSSupport.
5809 *
5810 * Supported Feature: TDLS
5811 *
5812 * Usage: Internal/External
5813 *
5814 * </ini>
Kabilan Kannanca670be2015-11-23 01:56:12 -08005815 */
5816#define CFG_TDLS_IDLE_TIMEOUT "gTDLSIdleTimeout"
5817#define CFG_TDLS_IDLE_TIMEOUT_MIN (500)
5818#define CFG_TDLS_IDLE_TIMEOUT_MAX (40000)
Kabilan Kannan2ccd9e62015-11-29 16:04:05 -08005819#define CFG_TDLS_IDLE_TIMEOUT_DEFAULT (5000)
Kabilan Kannanca670be2015-11-23 01:56:12 -08005820
5821
Nitesh Shahbb405832016-12-08 12:43:10 +05305822/*
5823 * <ini>
5824 * gTDLSIdlePacketThreshold - Number of idle packet.
5825 * @Min: 0
5826 * @Max: 40000
5827 * @Default: 3
5828 *
5829 * This ini is used to configure the number of Tx/Rx packet, below which
5830 * within last gTDLSTxStatsPeriod period is considered as idle condition.
5831 *
5832 * Related: gEnableTDLSSupport.
5833 *
5834 * Supported Feature: TDLS
5835 *
5836 * Usage: Internal/External
5837 *
5838 * </ini>
5839 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005840#define CFG_TDLS_IDLE_PACKET_THRESHOLD "gTDLSIdlePacketThreshold"
5841#define CFG_TDLS_IDLE_PACKET_THRESHOLD_MIN (0)
5842#define CFG_TDLS_IDLE_PACKET_THRESHOLD_MAX (40000)
Kabilan Kannan2ccd9e62015-11-29 16:04:05 -08005843#define CFG_TDLS_IDLE_PACKET_THRESHOLD_DEFAULT (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005844
Nitesh Shahbb405832016-12-08 12:43:10 +05305845/*
5846 * <ini>
5847 * gTDLSRSSITriggerThreshold - RSSI threshold for TDLS connection.
5848 * @Min: -120
5849 * @Max: 0
5850 * @Default: -75
5851 *
5852 * This ini is used to configure the absolute value (in dB) of the peer RSSI,
5853 * below which a TDLS setup request is triggered.
5854 *
5855 * Related: gEnableTDLSSupport.
5856 *
5857 * Supported Feature: TDLS
5858 *
5859 * Usage: Internal/External
5860 *
5861 * </ini>
5862 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005863#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD "gTDLSRSSITriggerThreshold"
5864#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD_MIN (-120)
5865#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD_MAX (0)
5866#define CFG_TDLS_RSSI_TRIGGER_THRESHOLD_DEFAULT (-75)
5867
Nitesh Shahbb405832016-12-08 12:43:10 +05305868/*
5869 * <ini>
5870 * gTDLSRSSITeardownThreshold - RSSI threshold for TDLS teardown.
5871 * @Min: -120
5872 * @Max: 0
5873 * @Default: -75
5874 *
5875 * This ini is used to configure the absolute value (in dB) of the peer RSSI,
5876 * when exceed, a TDLS teardown is triggered.
5877 *
5878 * Related: gEnableTDLSSupport.
5879 *
5880 * Supported Feature: TDLS
5881 *
5882 * Usage: Internal/External
5883 *
5884 * </ini>
5885 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005886#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD "gTDLSRSSITeardownThreshold"
5887#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_MIN (-120)
5888#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_MAX (0)
5889#define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD_DEFAULT (-75)
5890
Nitesh Shahbb405832016-12-08 12:43:10 +05305891/*
5892 * <ini>
5893 * gTDLSRSSIDelta - Delta value for the peer RSSI that can trigger teardown.
5894 * @Min: -30
5895 * @Max: 0
5896 * @Default: -20
5897 *
5898 * This ini is used to .
5899 * This ini is used to configure delta for peer RSSI such that if Peer RSSI
5900 * is less than AP RSSI plus delta will trigger a teardown.
5901 *
5902 * Related: gEnableTDLSSupport.
5903 *
5904 * Supported Feature: TDLS
5905 *
5906 * Usage: Internal/External
5907 *
5908 * </ini>
5909 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005910#define CFG_TDLS_RSSI_DELTA "gTDLSRSSIDelta"
5911#define CFG_TDLS_RSSI_DELTA_MIN (-30)
5912#define CFG_TDLS_RSSI_DELTA_MAX (0)
5913#define CFG_TDLS_RSSI_DELTA_DEFAULT (-20)
5914
Nitesh Shahbb405832016-12-08 12:43:10 +05305915/*
5916 * <ini>
5917 * gTDLSUapsdMask - ACs to setup U-APSD for TDLS Sta.
5918 * @Min: 0
5919 * @Max: 0x0F
5920 * @Default: 0x0F
5921 *
5922 * This ini is used to configure the ACs for which mask needs to be enabled.
5923 * 0x1: Background 0x2: Best effort
5924 * 0x4: Video 0x8:Voice
5925 *
5926 * Related: gEnableTDLSSupport.
5927 *
5928 * Supported Feature: TDLS
5929 *
5930 * Usage: Internal/External
5931 *
5932 * </ini>
5933 */
5934#define CFG_TDLS_QOS_WMM_UAPSD_MASK_NAME "gTDLSUapsdMask"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005935#define CFG_TDLS_QOS_WMM_UAPSD_MASK_MIN (0)
5936#define CFG_TDLS_QOS_WMM_UAPSD_MASK_MAX (0x0F)
5937#define CFG_TDLS_QOS_WMM_UAPSD_MASK_DEFAULT (0x0F)
5938
Nitesh Shahbb405832016-12-08 12:43:10 +05305939/*
5940 * <ini>
5941 * gEnableTDLSBufferSta - Controls the TDLS buffer.
5942 * @Min: 0
5943 * @Max: 1
5944 * @Default: 1
5945 *
5946 * This ini is used to control the TDLS buffer.
5947 * Buffer STA is not enabled in CLD 2.0 yet.
5948 *
5949 * Related: gEnableTDLSSupport.
5950 *
5951 * Supported Feature: TDLS
5952 *
5953 * Usage: Internal/External
5954 *
5955 * </ini>
5956 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005957#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE "gEnableTDLSBufferSta"
5958#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_MIN (0)
5959#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_MAX (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005960#define CFG_TDLS_BUFFER_STA_SUPPORT_ENABLE_DEFAULT (1)
5961
Nitesh Shahbb405832016-12-08 12:43:10 +05305962/*
5963 * <ini>
5964 * gTDLSPuapsdInactivityTime - Peer UAPSD Inactivity time.
5965 * @Min: 0
5966 * @Max: 10
5967 * @Default: 0
5968 *
5969 * This ini is used to configure peer uapsd inactivity time.
5970 *
5971 * Related: gEnableTDLSSupport.
5972 *
5973 * Supported Feature: TDLS
5974 *
5975 * Usage: Internal/External
5976 *
5977 * </ini>
5978 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005979#define CFG_TDLS_PUAPSD_INACTIVITY_TIME "gTDLSPuapsdInactivityTime"
5980#define CFG_TDLS_PUAPSD_INACTIVITY_TIME_MIN (0)
5981#define CFG_TDLS_PUAPSD_INACTIVITY_TIME_MAX (10)
5982#define CFG_TDLS_PUAPSD_INACTIVITY_TIME_DEFAULT (0)
5983
Nitesh Shahbb405832016-12-08 12:43:10 +05305984/*
5985 * <ini>
5986 * gTDLSPuapsdRxFrameThreshold - Peer UAPSD Rx frame threshold.
5987 * @Min: 10
5988 * @Max: 20
5989 * @Default: 10
5990 *
5991 * This ini is used to configure maximum Rx frame during SP.
5992 *
5993 * Related: gEnableTDLSSupport.
5994 *
5995 * Supported Feature: TDLS
5996 *
5997 * Usage: Internal/External
5998 *
5999 * </ini>
6000 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006001#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD "gTDLSPuapsdRxFrameThreshold"
6002#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_MIN (10)
6003#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_MAX (20)
6004#define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD_DEFAULT (10)
6005
Nitesh Shahbb405832016-12-08 12:43:10 +05306006/*
6007 * <ini>
6008 * gTDLSPuapsdPTIWindow - This ini is used to configure peer traffic indication
6009 * window.
6010 * @Min: 1
6011 * @Max: 5
6012 * @Default: 2
6013 *
6014 * This ini is used to configure buffering time in number of beacon intervals.
6015 *
6016 * Related: gEnableTDLSSupport.
6017 *
6018 * Supported Feature: TDLS
6019 *
6020 * Usage: Internal/External
6021 *
6022 * </ini>
6023 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006024#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW "gTDLSPuapsdPTIWindow"
6025#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW_MIN (1)
6026#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW_MAX (5)
6027#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW_DEFAULT (2)
6028
Nitesh Shahbb405832016-12-08 12:43:10 +05306029/*
6030 * <ini>
6031 * gTDLSPuapsdPTRTimeout - Peer Traffic Response timer duration in ms.
6032 * @Min: 0
6033 * @Max: 10000
6034 * @Default: 5000
6035 *
6036 * This ini is used to configure the peer traffic response timer duration
6037 * in ms.
6038 *
6039 * Related: gEnableTDLSSupport.
6040 *
6041 * Supported Feature: TDLS
6042 *
6043 * Usage: Internal/External
6044 *
6045 * </ini>
6046 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006047#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT "gTDLSPuapsdPTRTimeout"
6048#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT_MIN (0)
6049#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT_MAX (10000)
6050#define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT_DEFAULT (5000)
6051
Nitesh Shahbb405832016-12-08 12:43:10 +05306052/*
6053 * <ini>
6054 * gTDLSExternalControl - Enable external TDLS control.
6055 * @Min: 0
6056 * @Max: 1
6057 * @Default: 1
6058 *
6059 * This ini is used to enable/disable external TDLS control.
6060 * TDLS external control works with TDLS implicit trigger. TDLS external
6061 * control allows a user to add a MAC address of potential TDLS peers so
6062 * that the CLD driver can initiate implicit TDLS setup to only those peers
6063 * when criteria for TDLS setup (throughput and RSSI threshold) is met.
6064 *
6065 * Related: gEnableTDLSSupport, gEnableTDLSImplicitTrigger.
6066 *
6067 * Supported Feature: TDLS
6068 *
6069 * Usage: Internal/External
6070 *
6071 * </ini>
6072 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006073#define CFG_TDLS_EXTERNAL_CONTROL "gTDLSExternalControl"
6074#define CFG_TDLS_EXTERNAL_CONTROL_MIN (0)
6075#define CFG_TDLS_EXTERNAL_CONTROL_MAX (1)
Nishank Aggarwal3f898912016-10-13 17:36:16 +05306076#define CFG_TDLS_EXTERNAL_CONTROL_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006077
Nitesh Shahbb405832016-12-08 12:43:10 +05306078/*
6079 * <ini>
6080 * gEnableTDLSOffChannel - Enables off-channel support for TDLS link.
6081 * @Min: 0
6082 * @Max: 1
6083 * @Default: 0
6084 *
6085 * This ini is used to enable/disable off-channel support for TDLS link.
6086 *
6087 * Related: gEnableTDLSSupport.
6088 *
6089 * Supported Feature: TDLS
6090 *
6091 * Usage: Internal/External
6092 *
6093 * </ini>
6094 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006095#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE "gEnableTDLSOffChannel"
6096#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_MIN (0)
6097#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_MAX (1)
6098#define CFG_TDLS_OFF_CHANNEL_SUPPORT_ENABLE_DEFAULT (0)
6099
Nitesh Shahbb405832016-12-08 12:43:10 +05306100/*
6101 * <ini>
6102 * gEnableTDLSWmmMode - Enables WMM support over TDLS link.
6103 * @Min: 0
6104 * @Max: 1
6105 * @Default: 1
6106 *
6107 * This ini is used to enable/disable WMM support over TDLS link.
6108 * This is required to be set to 1 for any TDLS and uAPSD functionality.
6109 *
6110 * Related: gEnableTDLSSupport.
6111 *
6112 * Supported Feature: TDLS
6113 *
6114 * Usage: Internal/External
6115 *
6116 * </ini>
6117 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006118#define CFG_TDLS_WMM_MODE_ENABLE "gEnableTDLSWmmMode"
6119#define CFG_TDLS_WMM_MODE_ENABLE_MIN (0)
6120#define CFG_TDLS_WMM_MODE_ENABLE_MAX (1)
6121#define CFG_TDLS_WMM_MODE_ENABLE_DEFAULT (1)
6122
Nitesh Shahbb405832016-12-08 12:43:10 +05306123/*
6124 * <ini>
6125 * gTDLSPrefOffChanNum - Preferred TDLS channel number when off-channel support
6126 * is enabled.
6127 * @Min: 1
6128 * @Max: 165
6129 * @Default: 36
6130 *
6131 * This ini is used to configure preferred TDLS channel number when off-channel
6132 * support is enabled.
6133 *
6134 * Related: gEnableTDLSSupport, gEnableTDLSOffChannel.
6135 *
6136 * Supported Feature: TDLS
6137 *
6138 * Usage: Internal/External
6139 *
6140 * </ini>
6141 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006142#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM "gTDLSPrefOffChanNum"
6143#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM_MIN (1)
6144#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM_MAX (165)
6145#define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM_DEFAULT (36)
6146
Nitesh Shahbb405832016-12-08 12:43:10 +05306147/*
6148 * <ini>
6149 * gTDLSPrefOffChanBandwidth - Preferred TDLS channel bandwidth when
6150 * off-channel support is enabled.
Kabilan Kannan4a6b5e72017-02-08 10:38:30 -08006151 * @Min: 0x01
Nitesh Shahbb405832016-12-08 12:43:10 +05306152 * @Max: 0x0F
6153 * @Default: 0x07
6154 *
6155 * This ini is used to configure preferred TDLS channel bandwidth when
6156 * off-channel support is enabled.
6157 * 0x1: 20 MHz 0x2: 40 MHz 0x4: 80 MHz 0x8: 160 MHz
6158 * When more than one bits are set then firmware starts from the highest and
6159 * selects one based on capability of peer.
6160 *
6161 * Related: gEnableTDLSSupport, gEnableTDLSOffChannel.
6162 *
6163 * Supported Feature: TDLS
6164 *
6165 * Usage: Internal/External
6166 *
6167 * </ini>
6168 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006169#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW "gTDLSPrefOffChanBandwidth"
Kabilan Kannan4a6b5e72017-02-08 10:38:30 -08006170#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW_MIN (0x01)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006171#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW_MAX (0x0F)
6172#define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW_DEFAULT (0x07)
6173
Nitesh Shahbb405832016-12-08 12:43:10 +05306174/*
6175 * <ini>
6176 * gEnableTDLSScan - Allow scan and maintain TDLS link.
6177 * @Min: 0
6178 * @Max: 1
6179 * @Default: 0
6180 *
6181 * This ini is used to enable/disable TDLS scan.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006182 * 0: If peer is not buffer STA capable and device is not sleep STA
6183 * capable, then teardown TDLS link when scan is initiated. If peer
6184 * is buffer STA and we can be sleep STA then TDLS link is maintained
6185 * during scan.
6186 * 1: Maintain TDLS link and allow scan even if peer is not buffer STA
6187 * capable and device is not sleep STA capable. There will be loss of
6188 * Rx pkts since peer would not know when device moves away from tdls
6189 * channel. Tx on TDLS link would stop when device moves away from tdls
6190 * channel.
Nitesh Shahbb405832016-12-08 12:43:10 +05306191 *
6192 * Related: gEnableTDLSSupport.
6193 *
6194 * Supported Feature: TDLS
6195 *
6196 * Usage: Internal/External
6197 *
6198 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006199 */
6200#define CFG_TDLS_SCAN_ENABLE "gEnableTDLSScan"
6201#define CFG_TDLS_SCAN_ENABLE_MIN (0)
6202#define CFG_TDLS_SCAN_ENABLE_MAX (1)
6203#define CFG_TDLS_SCAN_ENABLE_DEFAULT (0)
Kabilan Kannan421714b2015-11-23 04:44:59 -08006204
Nitesh Shahbb405832016-12-08 12:43:10 +05306205/*
6206 * <ini>
6207 * gTDLSPeerKickoutThreshold - TDLS peer kickout threshold to firmware.
6208 * @Min: 10
6209 * @Max: 5000
6210 * @Default: 96
6211 *
6212 * This ini is used to configure TDLS peer kickout threshold to firmware.
Kabilan Kannan421714b2015-11-23 04:44:59 -08006213 * Firmware will use this value to determine, when to send TDLS
6214 * peer kick out event to host.
6215 * E.g.
6216 * if peer kick out threshold is 10, then firmware will wait for 10
6217 * consecutive packet failures and then send TDLS kickout
6218 * notification to host driver
Nitesh Shahbb405832016-12-08 12:43:10 +05306219 *
6220 * Related: gEnableTDLSSupport.
6221 *
6222 * Supported Feature: TDLS
6223 *
6224 * Usage: Internal/External
6225 *
6226 * </ini>
Kabilan Kannan421714b2015-11-23 04:44:59 -08006227 */
6228#define CFG_TDLS_PEER_KICKOUT_THRESHOLD "gTDLSPeerKickoutThreshold"
6229#define CFG_TDLS_PEER_KICKOUT_THRESHOLD_MIN (10)
6230#define CFG_TDLS_PEER_KICKOUT_THRESHOLD_MAX (5000)
6231#define CFG_TDLS_PEER_KICKOUT_THRESHOLD_DEFAULT (96)
6232
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006233#endif
6234
Nitesh Shah61c10d92016-10-19 19:29:15 +05306235/*
6236 * <ini>
6237 * gTDLSEnableDeferTime - Timer to defer for enabling TDLS on P2P listen.
6238 * @Min: 2000
6239 * @Max: 6000
6240 * @Default: 5000
6241 *
6242 * This ini is used to set the timer to defer for enabling TDLS on P2P
6243 * listen (value in milliseconds).
6244 *
6245 * Related: gEnableTDLSSupport.
6246 *
6247 * Supported Feature: TDLS
6248 *
6249 * Usage: Internal/External
6250 *
6251 * </ini>
6252 */
6253#define CFG_TDLS_ENABLE_DEFER_TIMER "gTDLSEnableDeferTime"
6254#define CFG_TDLS_ENABLE_DEFER_TIMER_MIN (2000)
6255#define CFG_TDLS_ENABLE_DEFER_TIMER_MAX (6000)
6256#define CFG_TDLS_ENABLE_DEFER_TIMER_DEFAULT (5000)
6257
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006258/* Enable/Disable LPWR Image(cMEM uBSP) Transition */
6259#define CFG_ENABLE_LPWR_IMG_TRANSITION_NAME "gEnableLpwrImgTransition"
6260#define CFG_ENABLE_LPWR_IMG_TRANSITION_MIN (0)
6261#define CFG_ENABLE_LPWR_IMG_TRANSITION_MAX (1)
6262#define CFG_ENABLE_LPWR_IMG_TRANSITION_DEFAULT (0)
6263
Krunal Sonia2c0e412017-05-04 14:12:41 +05306264/*
6265 * <ini>
6266 * gTxLdpcEnable - Config Param to enable Tx LDPC capability
6267 * @Min: 0
6268 * @Max: 3
6269 * @Default: 3
6270 *
6271 * This ini is used to enable/disable Tx LDPC capability
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006272 * 0 - disable
6273 * 1 - HT LDPC enable
6274 * 2 - VHT LDPC enable
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08006275 * 3 - HT & VHT LDPC enable
Krunal Sonia2c0e412017-05-04 14:12:41 +05306276 *
6277 * Related: STA/SAP/P2P/IBSS/NAN.
6278 *
6279 * Supported Feature: Concurrency/Standalone
6280 *
6281 * Usage: Internal/External
6282 *
6283 * </ini>
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08006284 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006285#define CFG_TX_LDPC_ENABLE_FEATURE "gTxLdpcEnable"
6286#define CFG_TX_LDPC_ENABLE_FEATURE_MIN (0)
6287#define CFG_TX_LDPC_ENABLE_FEATURE_MAX (3)
Kiran Kumar Lokere333a9952016-03-01 15:40:23 -08006288#define CFG_TX_LDPC_ENABLE_FEATURE_DEFAULT (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006289
6290/*
Nitesh Shah03161d12016-12-06 18:30:12 +05306291 * <ini>
Krunal Sonia2c0e412017-05-04 14:12:41 +05306292 * gEnableRXLDPC - Config Param to enable Rx LDPC capability
6293 * @Min: 0
6294 * @Max: 1
6295 * @Default: 0
6296 *
6297 * This ini is used to enable/disable Rx LDPC capability
6298 *
6299 * Related: STA/SAP/P2P/IBSS/NAN.
6300 *
6301 * Supported Feature: Concurrency/Standalone
6302 *
6303 * Usage: Internal/External
6304 *
6305 * </ini>
6306 */
6307
6308#define CFG_ENABLE_RX_LDPC "gEnableRXLDPC"
6309#define CFG_ENABLE_RX_LDPC_MIN (0)
6310#define CFG_ENABLE_RX_LDPC_MAX (1)
6311#define CFG_ENABLE_RX_LDPC_DEFAULT (0)
6312
6313/*
6314 * <ini>
Nitesh Shah03161d12016-12-06 18:30:12 +05306315 * gEnableMCCAdaptiveScheduler - MCC Adaptive Scheduler feature.
6316 * @Min: 0
6317 * @Max: 1
6318 * @Default: 1
6319 *
6320 * This ini is used to enable/disable MCC Adaptive Scheduler feature.
6321 *
6322 * Related: None.
6323 *
6324 * Supported Feature: Concurrency
6325 *
6326 * Usage: Internal/External
6327 *
6328 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006329 */
6330#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_NAME "gEnableMCCAdaptiveScheduler"
6331#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_MIN (0)
6332#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_MAX (1)
6333#define CFG_ENABLE_MCC_ADATIVE_SCHEDULER_ENABLED_DEFAULT (1)
6334
6335#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE "gTxBFEnable"
6336#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_MIN (WNI_CFG_VHT_SU_BEAMFORMEE_CAP_STAMIN)
6337#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_MAX (WNI_CFG_VHT_SU_BEAMFORMEE_CAP_STAMAX)
6338#define CFG_VHT_SU_BEAMFORMEE_CAP_FEATURE_DEFAULT (WNI_CFG_VHT_SU_BEAMFORMEE_CAP_STADEF)
6339
Kiran Kumar Lokere5302ab62015-12-16 16:03:16 -08006340/*
6341 * Enable / Disable Tx beamformee in SAP mode
6342 * Default: Disable
6343 */
6344#define CFG_VHT_ENABLE_TXBF_SAP_MODE "gEnableTxBFeeSAP"
6345#define CFG_VHT_ENABLE_TXBF_SAP_MODE_MIN (0)
6346#define CFG_VHT_ENABLE_TXBF_SAP_MODE_MAX (1)
6347#define CFG_VHT_ENABLE_TXBF_SAP_MODE_DEFAULT (0)
6348
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006349#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED "gTxBFCsnValue"
6350#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_MIN (WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_STAMIN)
6351#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_MAX (WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_STAMAX - 1)
6352#define CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_DEFAULT (WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_STAMAX - 1)
6353
6354#define CFG_VHT_ENABLE_TXBF_IN_20MHZ "gEnableTxBFin20MHz"
6355#define CFG_VHT_ENABLE_TXBF_IN_20MHZ_MIN (0)
6356#define CFG_VHT_ENABLE_TXBF_IN_20MHZ_MAX (1)
6357#define CFG_VHT_ENABLE_TXBF_IN_20MHZ_DEFAULT (0)
6358
Naveen Rawatefa01082015-12-01 12:08:45 -08006359#define CFG_VHT_ENABLE_TX_SU_BEAM_FORMER "gEnableTxSUBeamformer"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006360#define CFG_VHT_ENABLE_TX_SU_BEAM_FORMER_MIN (0)
6361#define CFG_VHT_ENABLE_TX_SU_BEAM_FORMER_MAX (1)
6362#define CFG_VHT_ENABLE_TX_SU_BEAM_FORMER_DEFAULT (0)
6363
6364/* Enable debug for remain on channel issues */
6365#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_NAME "gDebugP2pRemainOnChannel"
6366#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_DEFAULT (0)
6367#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_MIN (0)
6368#define CFG_DEBUG_P2P_REMAIN_ON_CHANNEL_MAX (1)
6369
6370/*
6371 * SAP ALLOW All Channels
6372 */
6373#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_NAME "gSapAllowAllChannel"
6374#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_MIN (0)
6375#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_MAX (1)
6376#define CFG_SAP_ALLOW_ALL_CHANNEL_PARAM_DEFAULT (0)
6377
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006378#define CFG_DISABLE_LDPC_WITH_TXBF_AP "gDisableLDPCWithTxbfAP"
6379#define CFG_DISABLE_LDPC_WITH_TXBF_AP_MIN (0)
6380#define CFG_DISABLE_LDPC_WITH_TXBF_AP_MAX (1)
6381#define CFG_DISABLE_LDPC_WITH_TXBF_AP_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006382
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006383/* Parameter to control VHT support in 2.4 GHz band */
6384#define CFG_ENABLE_VHT_FOR_24GHZ_NAME "gEnableVhtFor24GHzBand"
6385#define CFG_ENABLE_VHT_FOR_24GHZ_MIN (0)
6386#define CFG_ENABLE_VHT_FOR_24GHZ_MAX (1)
6387#define CFG_ENABLE_VHT_FOR_24GHZ_DEFAULT (0)
6388
Kapil Gupta4b2efbb2016-10-03 13:07:20 +05306389/*
6390 * Parameter to control VHT support based on vendor ie in 2.4 GHz band
6391 * This parameter will enable SAP to read VHT capability in vendor ie in Assoc
6392 * Req and send VHT caps in Resp to establish connection in VHT Mode.
6393 */
6394#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_NAME "gEnableVendorVhtFor24GHzBand"
6395#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_MIN (0)
6396#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_MAX (1)
6397#define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_DEFAULT (1)
6398
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306399/*
6400 * <ini>
6401 * gMaxMediumTime - Set Maximum channel time
6402 * @Min: STAMIN
6403 * @Max: STAMAX
6404 * @Default: STADEF
6405 *
6406 * This ini is used to set default max channel time
6407 *
6408 * Related: None
6409 *
6410 * Supported Feature: STA
6411 *
6412 * Usage: Internal/External
6413 *
6414 * </ini>
6415 */
6416
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006417#define CFG_MAX_MEDIUM_TIME "gMaxMediumTime"
6418#define CFG_MAX_MEDIUM_TIME_STAMIN WNI_CFG_MAX_MEDIUM_TIME_STAMIN
6419#define CFG_MAX_MEDIUM_TIME_STAMAX WNI_CFG_MAX_MEDIUM_TIME_STAMAX
6420#define CFG_MAX_MEDIUM_TIME_STADEFAULT WNI_CFG_MAX_MEDIUM_TIME_STADEF
6421
6422/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306423 * <ini>
6424 * gEnableIbssHeartBeatOffload - Enable heart beat monitoring offload to FW
6425 * @Min: 0
6426 * @Max: 1
6427 * @Default: 1
6428 *
6429 * This ini is used to set default ibbs heartbeat offload
6430 *
6431 * Related: None
6432 *
6433 * Supported Feature: STA
6434 *
6435 * Usage: Internal/External
6436 *
6437 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006438 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306439
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006440#define CFG_ENABLE_HEART_BEAT_OFFLOAD "gEnableIbssHeartBeatOffload"
6441#define CFG_ENABLE_HEART_BEAT_OFFLOAD_MIN (0)
6442#define CFG_ENABLE_HEART_BEAT_OFFLOAD_MAX (1)
6443#define CFG_ENABLE_HEART_BEAT_OFFLOAD_DEFAULT (1)
6444
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306445/*
6446 * <ini>
6447 * gAntennaDiversity - It will use to set Antenna diversity
6448 * @Min: 0
6449 * @Max: 3
6450 * @Default: 0
6451 *
6452 * This ini is used to set default Antenna diversity
6453 *
6454 * Related: None
6455 *
6456 * Supported Feature: STA
6457 *
6458 * Usage: Internal/External
6459 *
6460 * </ini>
6461 */
6462
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006463#define CFG_ANTENNA_DIVERSITY_PARAM_NAME "gAntennaDiversity"
6464#define CFG_ANTENNA_DIVERSITY_PARAM_MIN (0)
6465#define CFG_ANTENNA_DIVERSITY_PARAM_MAX (3)
6466#define CFG_ANTENNA_DIVERSITY_PARAM_DEFAULT (0)
6467
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306468/*
6469 * <ini>
6470 * gEnableSNRMonitoring - Enables SNR Monitoring
6471 * @Min: 0
6472 * @Max: 1
6473 * @Default: 0
6474 *
6475 * This ini is used to set default snr monitor
6476 *
6477 * Related: None
6478 *
6479 * Supported Feature: STA
6480 *
6481 * Usage: Internal/External
6482 *
6483 * </ini>
6484 */
6485
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006486#define CFG_ENABLE_SNR_MONITORING_NAME "gEnableSNRMonitoring"
6487#define CFG_ENABLE_SNR_MONITORING_MIN (0)
6488#define CFG_ENABLE_SNR_MONITORING_MAX (1)
6489#define CFG_ENABLE_SNR_MONITORING_DEFAULT (0)
6490
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006491#define CFG_AMSDU_SUPPORT_IN_AMPDU_NAME "gAmsduSupportInAMPDU"
6492#define CFG_AMSDU_SUPPORT_IN_AMPDU_MIN (0)
6493#define CFG_AMSDU_SUPPORT_IN_AMPDU_MAX (1)
6494#define CFG_AMSDU_SUPPORT_IN_AMPDU_DEFAULT (0) /* disabled */
6495
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306496/*
6497 * <ini>
6498 * gEnableIpTcpUdpChecksumOffload - It enables IP, TCP and UDP checksum
6499 * offload in hardware
6500 * @Min: 0
6501 * @Max: 1
6502 * @Default: DEF
6503 *
6504 * This ini is used to enable IP, TCP and UDP checksum offload in hardware
6505 * and also advertise same to network stack
6506 *
6507 * Related: None
6508 *
6509 * Supported Feature: STA
6510 *
6511 * Usage: Internal/External
6512 *
6513 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006514 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306515
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006516#define CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD "gEnableIpTcpUdpChecksumOffload"
6517#define CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD_DISABLE (0)
6518#define CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD_ENABLE (1)
6519#define CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD_DEFAULT (CFG_ENABLE_IP_TCP_UDP_CHKSUM_OFFLOAD_ENABLE)
6520
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006521#ifdef WLAN_FEATURE_FASTPATH
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306522
6523/*
6524 * <ini>
6525 * gEnableFastPath - Control to enable fastpath feature
6526 *
6527 * @Min: 0
6528 * @Max: 1
6529 * @Default: 0
6530 *
6531 * This ini is used to enable fastpath feature
6532 *
6533 * Supported Feature: Wlan Fastpath Feature
6534 *
6535 * Usage: Internal
6536 *
6537 * </ini>
6538 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006539#define CFG_ENABLE_FASTPATH "gEnableFastPath"
6540#define CFG_ENABLE_FASTPATH_MIN (0)
6541#define CFG_ENABLE_FASTPATH_MAX (1)
6542#define CFG_ENABLE_FASTPATH_DEFAULT (CFG_ENABLE_FASTPATH_MIN)
6543#endif /* WLAN_FEATURE_FASTPATH */
6544
6545/*
6546 * IPA Offload configuration - Each bit enables a feature
6547 * bit0 - IPA Enable
6548 * bit1 - IPA Pre filter enable
6549 * bit2 - IPv6 enable
6550 * bit3 - IPA Resource Manager (RM) enable
6551 * bit4 - IPA Clock scaling enable
6552 */
6553#define CFG_IPA_OFFLOAD_CONFIG_NAME "gIPAConfig"
6554#define CFG_IPA_OFFLOAD_CONFIG_MIN (0)
6555#define CFG_IPA_OFFLOAD_CONFIG_MAX (0xFFFFFFFF)
6556#define CFG_IPA_OFFLOAD_CONFIG_DEFAULT (CFG_IPA_OFFLOAD_CONFIG_MIN)
6557
6558/*
6559 * IPA DESC SIZE
6560 */
6561#define CFG_IPA_DESC_SIZE_NAME "gIPADescSize"
6562#define CFG_IPA_DESC_SIZE_MIN (800)
6563#define CFG_IPA_DESC_SIZE_MAX (8000)
6564#define CFG_IPA_DESC_SIZE_DEFAULT (800)
6565
6566#define CFG_IPA_HIGH_BANDWIDTH_MBPS "gIPAHighBandwidthMbps"
6567#define CFG_IPA_HIGH_BANDWIDTH_MBPS_MIN (200)
6568#define CFG_IPA_HIGH_BANDWIDTH_MBPS_MAX (1000)
6569#define CFG_IPA_HIGH_BANDWIDTH_MBPS_DEFAULT (400)
6570
6571#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS "gIPAMediumBandwidthMbps"
6572#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS_MIN (100)
6573#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS_MAX (400)
6574#define CFG_IPA_MEDIUM_BANDWIDTH_MBPS_DEFAULT (200)
6575
6576#define CFG_IPA_LOW_BANDWIDTH_MBPS "gIPALowBandwidthMbps"
6577#define CFG_IPA_LOW_BANDWIDTH_MBPS_MIN (0)
6578#define CFG_IPA_LOW_BANDWIDTH_MBPS_MAX (100)
6579#define CFG_IPA_LOW_BANDWIDTH_MBPS_DEFAULT (100)
6580
6581/*
6582 * Firmware uart print
6583 */
6584#define CFG_ENABLE_FW_UART_PRINT_NAME "gEnablefwprint"
6585#define CFG_ENABLE_FW_UART_PRINT_DISABLE (0)
6586#define CFG_ENABLE_FW_UART_PRINT_ENABLE (1)
6587#define CFG_ENABLE_FW_UART_PRINT_DEFAULT (CFG_ENABLE_FW_UART_PRINT_DISABLE)
6588
6589/*
6590 * Firmware log
6591 */
6592#define CFG_ENABLE_FW_LOG_NAME "gEnablefwlog"
6593#define CFG_ENABLE_FW_LOG_DISABLE (0)
Yuanyuan Liu7a97b8f2017-01-27 10:42:52 -08006594#define CFG_ENABLE_FW_LOG_WMI (1)
6595#define CFG_ENABLE_FW_LOG_DIAG (2)
Ashish Kumar Dhanotiyaf998a582017-02-20 12:20:41 +05306596#define CFG_ENABLE_FW_LOG_MIN (CFG_ENABLE_FW_LOG_DISABLE)
Yuanyuan Liu7a97b8f2017-01-27 10:42:52 -08006597#define CFG_ENABLE_FW_LOG_MAX (CFG_ENABLE_FW_LOG_DIAG)
Yuanyuan Liu7a97b8f2017-01-27 10:42:52 -08006598#define CFG_ENABLE_FW_LOG_DEFAULT (CFG_ENABLE_FW_LOG_WMI)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006599
6600/*
6601 * Enable/Disable SSR for USB
6602 */
6603#define CFG_ENABLE_FW_SELF_RECOVERY_NAME "gEnableFwSelfRecovery"
6604#define CFG_ENABLE_FW_SELF_RECOVERY_DISABLE (0)
6605#define CFG_ENABLE_FW_SELF_RECOVERY_ENABLE (1)
6606#define CFG_ENABLE_FW_SELF_RECOVERY_DEFAULT (CFG_ENABLE_FW_SELF_RECOVERY_DISABLE)
6607
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006608/* Macro to handle maximum receive AMPDU size configuration */
6609#define CFG_VHT_AMPDU_LEN_EXPONENT_NAME "gVhtAmpduLenExponent"
6610#define CFG_VHT_AMPDU_LEN_EXPONENT_MIN (0)
6611#define CFG_VHT_AMPDU_LEN_EXPONENT_MAX (7)
6612#define CFG_VHT_AMPDU_LEN_EXPONENT_DEFAULT (3)
6613
6614#define CFG_VHT_MPDU_LEN_NAME "gVhtMpduLen"
6615#define CFG_VHT_MPDU_LEN_MIN (0)
6616#define CFG_VHT_MPDU_LEN_MAX (2)
6617#define CFG_VHT_MPDU_LEN_DEFAULT (0)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006618
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006619#define CFG_SAP_MAX_NO_PEERS "gSoftApMaxPeers"
6620#define CFG_SAP_MAX_NO_PEERS_MIN (1)
6621#define CFG_SAP_MAX_NO_PEERS_MAX (32)
6622#define CFG_SAP_MAX_NO_PEERS_DEFAULT (32)
6623
6624/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306625 * <ini>
6626 * gEnableDebugLog - Enable/Disable the Connection related logs
6627 * @Min: 0
6628 * @Max: 0xFF
6629 * @Default: 0x0F
6630 *
6631 * This ini is used to enable/disable the connection related logs
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +05306632 * 0x1 - Enable mgmt pkt logs (excpet probe req/rsp, beacons).
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006633 * 0x2 - Enable EAPOL pkt logs.
6634 * 0x4 - Enable DHCP pkt logs.
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +05306635 * 0x8 - Enable mgmt action frames logs.
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006636 * 0x0 - Disable all the above connection related logs.
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306637 * The default value of 0x0F will enable all the above logs
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +05306638 *
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306639 * Related: None
6640 *
6641 * Supported Feature: STA
6642 *
6643 * Usage: Internal/External
6644 *
6645 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006646 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306647
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006648#define CFG_ENABLE_DEBUG_CONNECT_ISSUE "gEnableDebugLog"
6649#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_MIN (0)
6650#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_MAX (0xFF)
Chandrasekaran, Manishekarb2d9fa12016-04-07 12:00:10 +05306651#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_DEFAULT (0x0F)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006652
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006653/* SAR Thermal limit values for 2g and 5g */
6654
6655#define CFG_SET_TXPOWER_LIMIT2G_NAME "TxPower2g"
6656#define CFG_SET_TXPOWER_LIMIT2G_MIN (0)
6657#define CFG_SET_TXPOWER_LIMIT2G_MAX (30)
Hanumanth Reddy Pothula366fa8e2016-09-07 15:05:17 +05306658#define CFG_SET_TXPOWER_LIMIT2G_DEFAULT (30)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006659
6660#define CFG_SET_TXPOWER_LIMIT5G_NAME "TxPower5g"
6661#define CFG_SET_TXPOWER_LIMIT5G_MIN (0)
6662#define CFG_SET_TXPOWER_LIMIT5G_MAX (30)
Hanumanth Reddy Pothula366fa8e2016-09-07 15:05:17 +05306663#define CFG_SET_TXPOWER_LIMIT5G_DEFAULT (30)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006664
6665#ifdef QCA_LL_LEGACY_TX_FLOW_CONTROL
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306666
6667/*
6668 * <ini>
6669 * TxFlowLowWaterMark - Low watermark for pausing network queues
6670 *
6671 * @Min: 0
6672 * @Max: 1000
6673 * @Default: 300
6674 *
6675 * This ini specifies the low watermark of data packets transmitted
6676 * before pausing netif queues in tx flow path. It is only applicable
6677 * where legacy flow control is used i.e.for Rome.
6678 *
6679 * Related: TxFlowHighWaterMarkOffset, TxFlowMaxQueueDepth,
6680 * TxLbwFlowLowWaterMark, TxLbwFlowHighWaterMarkOffset,
6681 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6682 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6683 *
6684 * Supported Feature: Dynamic Flow Control
6685 *
6686 * Usage: Internal
6687 *
6688 * </ini>
6689 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006690#define CFG_LL_TX_FLOW_LWM "TxFlowLowWaterMark"
6691#define CFG_LL_TX_FLOW_LWM_MIN (0)
6692#define CFG_LL_TX_FLOW_LWM_MAX (1000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006693#define CFG_LL_TX_FLOW_LWM_DEFAULT (300)
6694
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306695/*
6696 * <ini>
6697 * TxFlowHighWaterMarkOffset - High Watermark offset to unpause Netif queues
6698 * @Min: 0
6699 * @Max: 300
6700 * @Default: 94
6701 *
6702 * This ini specifies the offset to upause the netif queues
6703 * when they are paused due to insufficient descriptors as guided by
6704 * ini TxFlowLowWaterMark. It is only applicable where legacy flow control
6705 * is used i.e.for Rome.
6706 *
6707 * Related: TxFlowLowWaterMark, TxFlowMaxQueueDepth,
6708 * TxLbwFlowLowWaterMark, TxLbwFlowHighWaterMarkOffset,
6709 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6710 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6711 *
6712 * Supported Feature: Dynamic Flow Control
6713 *
6714 * Usage: Internal
6715 *
6716 * </ini>
6717 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006718#define CFG_LL_TX_FLOW_HWM_OFFSET "TxFlowHighWaterMarkOffset"
6719#define CFG_LL_TX_FLOW_HWM_OFFSET_MIN (0)
6720#define CFG_LL_TX_FLOW_HWM_OFFSET_MAX (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006721#define CFG_LL_TX_FLOW_HWM_OFFSET_DEFAULT (94)
6722
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306723/*
6724 * <ini>
6725 * TxFlowMaxQueueDepth - Max pause queue depth.
6726 *
6727 * @Min: 400
6728 * @Max: 3500
6729 * @Default: 1500
6730 *
6731 * This ini specifies the max queue pause depth.It is only applicable
6732 * where legacy flow control is used i.e.for Rome.
6733 *
6734 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6735 * TxLbwFlowLowWaterMark, TxLbwFlowHighWaterMarkOffset,
6736 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6737 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6738 *
6739 * Supported Feature: Dynamic Flow Control
6740 *
6741 * Usage: Internal
6742 *
6743 * </ini>
6744 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006745#define CFG_LL_TX_FLOW_MAX_Q_DEPTH "TxFlowMaxQueueDepth"
6746#define CFG_LL_TX_FLOW_MAX_Q_DEPTH_MIN (400)
6747#define CFG_LL_TX_FLOW_MAX_Q_DEPTH_MAX (3500)
6748#define CFG_LL_TX_FLOW_MAX_Q_DEPTH_DEFAULT (1500)
6749
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306750/*
6751 * <ini>
6752 * TxLbwFlowLowWaterMark - Low watermark for pausing network queues
6753 * in low bandwidth band
6754 * @Min: 0
6755 * @Max: 1000
6756 * @Default: 450
6757 *
6758 * This ini specifies the low watermark of data packets transmitted
6759 * before pausing netif queues in tx flow path in low bandwidth band.
6760 * It is only applicable where legacy flow control is used i.e.for Rome.
6761 *
6762 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6763 * TxFlowMaxQueueDepth, TxLbwFlowHighWaterMarkOffset,
6764 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6765 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6766 *
6767 * Supported Feature: Dynamic Flow Control
6768 *
6769 * Usage: Internal
6770 *
6771 * </ini>
6772 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006773#define CFG_LL_TX_LBW_FLOW_LWM "TxLbwFlowLowWaterMark"
6774#define CFG_LL_TX_LBW_FLOW_LWM_MIN (0)
6775#define CFG_LL_TX_LBW_FLOW_LWM_MAX (1000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006776#define CFG_LL_TX_LBW_FLOW_LWM_DEFAULT (450)
6777
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306778/*
6779 * <ini>
6780 * TxLbwFlowHighWaterMarkOffset - High Watermark offset to unpause Netif queues
6781 * in low bandwidth band.
6782 * @Min: 0
6783 * @Max: 300
6784 * @Default: 50
6785 *
6786 * This ini specifies the offset to upause the netif queues
6787 * when they are paused due to insufficient descriptors as guided by
6788 * ini TxLbwFlowLowWaterMark in low bandwidth band. It is only applicable
6789 * where legacy flow control is used i.e.for Rome.
6790 *
6791 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6792 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
6793 * TxLbwFlowMaxQueueDepth, TxHbwFlowLowWaterMark,
6794 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6795 *
6796 * Supported Feature: Dynamic Flow Control
6797 *
6798 * Usage: Internal
6799 *
6800 * </ini>
6801 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006802#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET "TxLbwFlowHighWaterMarkOffset"
6803#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET_MIN (0)
6804#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET_MAX (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006805#define CFG_LL_TX_LBW_FLOW_HWM_OFFSET_DEFAULT (50)
6806
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306807/*
6808 * <ini>
6809 * TxLbwFlowMaxQueueDepth - Max pause queue depth in low bandwidth band
6810 *
6811 * @Min: 400
6812 * @Max: 3500
6813 * @Default: 750
6814 *
6815 * This ini specifies the max queue pause depth in low bandwidth band.
6816 * It is only applicable where legacy flow control is used i.e.for Rome.
6817 *
6818 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6819 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
6820 * TxLbwFlowHighWaterMarkOffset, TxHbwFlowLowWaterMark,
6821 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6822 *
6823 * Supported Feature: Dynamic Flow Control
6824 *
6825 * Usage: Internal
6826 *
6827 * </ini>
6828 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006829#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH "TxLbwFlowMaxQueueDepth"
6830#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH_MIN (400)
6831#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH_MAX (3500)
6832#define CFG_LL_TX_LBW_FLOW_MAX_Q_DEPTH_DEFAULT (750)
6833
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306834/*
6835 * <ini>
6836 * TxHbwFlowLowWaterMark - Low watermark for pausing network queues
6837 * in high bandwidth band
6838 * @Min: 0
6839 * @Max: 1000
6840 * @Default: 406
6841 *
6842 * This ini specifies the threshold of data packets transmitted
6843 * before pausing netif queues.It is only applicable where
6844 * legacy flow control is used i.e.for Rome.
6845 *
6846 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6847 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
6848 * TxLbwFlowHighWaterMarkOffset, TxLbwFlowMaxQueueDepth,
6849 * TxHbwFlowHighWaterMarkOffset, TxHbwFlowMaxQueueDepth
6850 *
6851 * Supported Feature: Dynamic Flow Control
6852 *
6853 * Usage: Internal
6854 *
6855 * </ini>
6856 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006857#define CFG_LL_TX_HBW_FLOW_LWM "TxHbwFlowLowWaterMark"
6858#define CFG_LL_TX_HBW_FLOW_LWM_MIN (0)
6859#define CFG_LL_TX_HBW_FLOW_LWM_MAX (1000)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006860#define CFG_LL_TX_HBW_FLOW_LWM_DEFAULT (406)
6861
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306862/*
6863 * <ini>
6864 * TxHbwFlowHighWaterMarkOffset - High Watermark offset to unpause Netif queues
6865 * in high bandwidth band.
6866 * @Min: 0
6867 * @Max: 300
6868 * @Default: 94
6869 *
6870 * This ini specifies the offset to upause the netif queues
6871 * when they are paused due to insufficient descriptors as guided by
6872 * ini TxHbwFlowLowWaterMark in high bandwidth band. It is only applicable
6873 * where legacy flow control is used i.e.for Rome.
6874 *
6875 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6876 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
6877 * TxLbwFlowHighWaterMarkOffset, TxLbwFlowMaxQueueDepth,
6878 * TxHbwFlowLowWaterMark, TxHbwFlowMaxQueueDepth
6879 *
6880 * Supported Feature: Dynamic Flow Control
6881 *
6882 * Usage: Internal
6883 *
6884 * </ini>
6885 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006886#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET "TxHbwFlowHighWaterMarkOffset"
6887#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET_MIN (0)
6888#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET_MAX (300)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006889#define CFG_LL_TX_HBW_FLOW_HWM_OFFSET_DEFAULT (94)
6890
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306891/*
6892 * <ini>
6893 * TxHbwFlowMaxQueueDepth - Max pause queue depth in high bandwidth band
6894 * @Min: 4000
6895 * @Max: 3500
6896 * @Default: 1500
6897 *
6898 * This ini specifies the max queue pause depth in high bandwidth band.
6899 * It is only applicable where legacy flow control is used i.e.for Rome.
6900 *
6901 * Related: TxFlowLowWaterMark, TxFlowHighWaterMarkOffset,
6902 * TxFlowMaxQueueDepth, TxLbwFlowLowWaterMark,
6903 * TxLbwFlowHighWaterMarkOffset, TxLbwFlowMaxQueueDepth,
6904 * TxHbwFlowLowWaterMark, TxHbwFlowHighWaterMarkOffset
6905 *
6906 * Supported Feature: Dynamic Flow Control
6907 *
6908 * Usage: Internal
6909 *
6910 * </ini>
6911 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006912#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH "TxHbwFlowMaxQueueDepth"
6913#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH_MIN (400)
6914#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH_MAX (3500)
6915#define CFG_LL_TX_HBW_FLOW_MAX_Q_DEPTH_DEFAULT (1500)
6916#endif /* QCA_LL_LEGACY_TX_FLOW_CONTROL */
6917
6918#ifdef QCA_LL_TX_FLOW_CONTROL_V2
6919
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306920/*
6921 * <ini>
6922 * TxFlowStopQueueThreshold - Stop queue Threshold to pause
6923 * Netif queues when it reaches
6924 * @Min: 0
6925 * @Max: 50
6926 * @Default: 15
6927 *
6928 * This ini specifies the threshold of data packets transmitted
6929 * before pausing netif queues.
6930 *
6931 * Related: TxFlowStartQueueOffset
6932 *
6933 * Supported Feature: Dynamic Flow Control
6934 *
6935 * Usage: Internal
6936 *
6937 * </ini>
6938 */
6939#define CFG_LL_TX_FLOW_STOP_QUEUE_TH "TxFlowStopQueueThreshold"
6940#define CFG_LL_TX_FLOW_STOP_QUEUE_TH_DEFAULT (15)
6941#define CFG_LL_TX_FLOW_STOP_QUEUE_TH_MIN (0)
6942#define CFG_LL_TX_FLOW_STOP_QUEUE_TH_MAX (50)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006943
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306944/*
6945 * <ini>
6946 * TxFlowStartQueueOffset - Start queue offset to unpause
6947 * Netif queues
6948 * @Min: 0
6949 * @Max: 30
6950 * @Default: 11
6951 *
6952 * This ini specifies the offset to upause the netif queues
6953 * when they are paused due to insufficient descriptors as guided by
6954 * ini TxFlowStopQueueThreshold.
6955 *
6956 * Related: TxFlowStopQueueThreshold
6957 *
6958 * Supported Feature: Dynamic Flow Control
6959 *
6960 * Usage: Internal
6961 *
6962 * </ini>
6963 */
6964#define CFG_LL_TX_FLOW_START_QUEUE_OFFSET "TxFlowStartQueueOffset"
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006965#define CFG_LL_TX_FLOW_START_QUEUE_OFFSET_DEFAULT (10)
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05306966#define CFG_LL_TX_FLOW_START_QUEUE_OFFSET_MIN (0)
6967#define CFG_LL_TX_FLOW_START_QUEUE_OFFSET_MAX (30)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006968
6969#endif /* QCA_LL_TX_FLOW_CONTROL_V2 */
6970
6971#define CFG_SAP_MAX_OFFLOAD_PEERS "gMaxOffloadPeers"
6972#define CFG_SAP_MAX_OFFLOAD_PEERS_MIN (2)
6973#define CFG_SAP_MAX_OFFLOAD_PEERS_MAX (5)
6974#define CFG_SAP_MAX_OFFLOAD_PEERS_DEFAULT (2)
6975
6976#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS "gMaxOffloadReorderBuffs"
6977#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS_MIN (0)
6978#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS_MAX (3)
6979#define CFG_SAP_MAX_OFFLOAD_REORDER_BUFFS_DEFAULT (2)
6980
6981#ifdef FEATURE_WLAN_RA_FILTERING
6982#define CFG_RA_FILTER_ENABLE_NAME "gRAFilterEnable"
6983#define CFG_RA_FILTER_ENABLE_MIN (0)
6984#define CFG_RA_FILTER_ENABLE_MAX (1)
Dustin Brown87c44282016-10-06 10:17:13 -07006985#define CFG_RA_FILTER_ENABLE_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08006986
6987#define CFG_RA_RATE_LIMIT_INTERVAL_NAME "gRArateLimitInterval"
6988#define CFG_RA_RATE_LIMIT_INTERVAL_MIN (60)
6989#define CFG_RA_RATE_LIMIT_INTERVAL_MAX (3600)
6990#define CFG_RA_RATE_LIMIT_INTERVAL_DEFAULT (60) /*60 SEC */
6991#endif
6992
Sen, Devendra9ca8c432017-02-23 15:10:26 +05306993/*
6994 * <ini>
6995 * gIgnorePeerErpInfo - Used for ignore peer infrormation
6996 * @Min: 0
6997 * @Max: 1
6998 * @Default: 0
6999 *
7000 * This ini is used to ignore default peer info
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_IGNORE_PEER_ERP_INFO_NAME "gIgnorePeerErpInfo"
7012#define CFG_IGNORE_PEER_ERP_INFO_MIN (0)
7013#define CFG_IGNORE_PEER_ERP_INFO_MAX (1)
7014#define CFG_IGNORE_PEER_ERP_INFO_DEFAULT (0)
7015
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307016/*
7017 * <ini>
7018 * gEnableMemoryDebug - Enables the memory debug
7019 * @Min: 0
7020 * @Max: 1
7021 * @Default: 1
7022 *
7023 * This ini is used to enable default memory debug
7024 *
7025 * Related: None
7026 *
7027 * Supported Feature: STA
7028 *
7029 * Usage: Internal/External
7030 *
7031 * </ini>
7032 */
7033
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007034#ifdef MEMORY_DEBUG
7035#define CFG_ENABLE_MEMORY_DEBUG_NAME "gEnableMemoryDebug"
7036#define CFG_ENABLE_MEMORY_DEBUG_MIN (0)
7037#define CFG_ENABLE_MEMORY_DEBUG_MAX (1)
7038#define CFG_ENABLE_MEMORY_DEBUG_DEFAULT (1)
7039#endif
7040
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307041
7042/*
7043 * <ini>
7044 * gInitialDwellTime - Used to set initial dwell time
7045 * @Min: 0
7046 * @Max: 0
7047 * @Default: 100
7048 *
7049 * This ini is used to set default initial dwell time
7050 *
7051 * Related: None
7052 *
7053 * Supported Feature: STA
7054 *
7055 * Usage: Internal/External
7056 *
7057 * </ini>
7058 */
7059
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007060#define CFG_INITIAL_DWELL_TIME_NAME "gInitialDwellTime"
7061#define CFG_INITIAL_DWELL_TIME_DEFAULT (0)
7062#define CFG_INITIAL_DWELL_TIME_MIN (0)
7063#define CFG_INITIAL_DWELL_TIME_MAX (100)
7064
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307065/*
7066 * <ini>
7067 * gInitialScanNoDFSChnl - WLAN skips scanning the DFS channels
7068 * @Min: 0
7069 * @Max: 0
7070 * @Default: 1
7071 *
7072 * This ini is used to set for the first scan after driver
7073 *
7074 * Related: None
7075 *
7076 * Supported Feature: STA
7077 *
7078 * Usage: Internal/External
7079 *
7080 * </ini>
7081 */
7082
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007083#define CFG_INITIAL_SCAN_NO_DFS_CHNL_NAME "gInitialScanNoDFSChnl"
7084#define CFG_INITIAL_SCAN_NO_DFS_CHNL_DEFAULT (0)
7085#define CFG_INITIAL_SCAN_NO_DFS_CHNL_MIN (0)
7086#define CFG_INITIAL_SCAN_NO_DFS_CHNL_MAX (1)
7087
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307088/*
7089 * <ini>
7090 * gAllowDFSChannelRoam - Allow dfs channel in roam
7091 * @Min: 0
7092 * @Max: 1
7093 * @Default: 2
7094 *
7095 * This ini is used to set default dfs channel
7096 *
7097 * Related: None
7098 *
7099 * Supported Feature: STA
7100 *
7101 * Usage: Internal/External
7102 *
7103 * </ini>
7104 */
7105
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007106#define CFG_ROAMING_DFS_CHANNEL_NAME "gAllowDFSChannelRoam"
7107#define CFG_ROAMING_DFS_CHANNEL_DISABLED (0)
7108#define CFG_ROAMING_DFS_CHANNEL_ENABLED_NORMAL (1)
7109#define CFG_ROAMING_DFS_CHANNEL_ENABLED_ACTIVE (2)
7110#define CFG_ROAMING_DFS_CHANNEL_MIN (CFG_ROAMING_DFS_CHANNEL_DISABLED)
7111#define CFG_ROAMING_DFS_CHANNEL_MAX (CFG_ROAMING_DFS_CHANNEL_ENABLED_ACTIVE)
7112#define CFG_ROAMING_DFS_CHANNEL_DEFAULT (CFG_ROAMING_DFS_CHANNEL_DISABLED)
7113
7114#ifdef MSM_PLATFORM
7115#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD "gBusBandwidthHighThreshold"
7116#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD_DEFAULT (2000)
7117#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD_MIN (0)
7118#define CFG_BUS_BANDWIDTH_HIGH_THRESHOLD_MAX (4294967295UL)
7119
7120#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD "gBusBandwidthMediumThreshold"
7121#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD_DEFAULT (500)
7122#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD_MIN (0)
7123#define CFG_BUS_BANDWIDTH_MEDIUM_THRESHOLD_MAX (4294967295UL)
7124
7125#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD "gBusBandwidthLowThreshold"
7126#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD_DEFAULT (150)
7127#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD_MIN (0)
7128#define CFG_BUS_BANDWIDTH_LOW_THRESHOLD_MAX (4294967295UL)
7129
7130#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL "gBusBandwidthComputeInterval"
7131#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL_DEFAULT (100)
7132#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL_MIN (0)
7133#define CFG_BUS_BANDWIDTH_COMPUTE_INTERVAL_MAX (10000)
7134
Ravi Joshie2331e82015-07-01 18:18:54 -07007135/*
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307136 * <ini>
7137 * gTcpDelAckEnable - Control to enable Dynamic Configuration of Tcp Delayed Ack
7138 * @Min: 0
7139 * @Max: 1
7140 * @Default: 1
7141 *
7142 * This ini is used to enable Dynamic Configuration of Tcp Delayed Ack
7143 *
7144 * Related: gTcpDelAckThresholdHigh, gTcpDelAckThresholdLow,
7145 * gTcpDelAckTimerCount
7146 *
7147 * Supported Feature: Tcp Delayed Ack
7148 *
7149 * Usage: Internal
7150 *
7151 * </ini>
Ravi Joshie2331e82015-07-01 18:18:54 -07007152 */
7153#define CFG_ENABLE_TCP_DELACK "gTcpDelAckEnable"
7154#define CFG_ENABLE_TCP_DELACK_DEFAULT (1)
7155#define CFG_ENABLE_TCP_DELACK_MIN (0)
7156#define CFG_ENABLE_TCP_DELACK_MAX (1)
7157
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307158
7159/*
7160 * <ini>
7161 * gTcpDelAckThresholdHigh - High Threshold inorder to trigger TCP Del Ack
7162 * indication
7163 * @Min: 0
7164 * @Max: 16000
7165 * @Default: 500
7166 *
7167 * This ini is used to mention the High Threshold inorder to trigger TCP Del Ack
7168 * indication i.e the threshold of packets received over a period of 100 ms.
7169 * i.e to have a low RX throughput requirement
7170 * Related: gTcpDelAckEnable, gTcpDelAckThresholdLow, gTcpDelAckTimerCount
7171 *
7172 * Supported Feature: Tcp Delayed Ack
7173 *
7174 * Usage: Internal
7175 *
7176 * </ini>
7177 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007178#define CFG_TCP_DELACK_THRESHOLD_HIGH "gTcpDelAckThresholdHigh"
7179#define CFG_TCP_DELACK_THRESHOLD_HIGH_DEFAULT (500)
7180#define CFG_TCP_DELACK_THRESHOLD_HIGH_MIN (0)
7181#define CFG_TCP_DELACK_THRESHOLD_HIGH_MAX (16000)
7182
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307183/*
7184 * <ini>
7185 * gTcpDelAckThresholdLow - Low Threshold inorder to trigger TCP Del Ack
7186 * indication
7187 * @Min: 0
7188 * @Max: 10000
7189 * @Default: 1000
7190 *
7191 * This ini is used to mention the Low Threshold inorder to trigger TCP Del Ack
7192 * indication i.e the threshold of packets received over a period of 100 ms.
7193 * i.e to have a low RX throughput requirement
7194 *
7195 * Related: gTcpDelAckEnable, gTcpDelAckThresholdHigh, gTcpDelAckTimerCount
7196 *
7197 * Supported Feature: Tcp Delayed Ack
7198 *
7199 * Usage: Internal
7200 *
7201 * </ini>
7202 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007203#define CFG_TCP_DELACK_THRESHOLD_LOW "gTcpDelAckThresholdLow"
7204#define CFG_TCP_DELACK_THRESHOLD_LOW_DEFAULT (1000)
7205#define CFG_TCP_DELACK_THRESHOLD_LOW_MIN (0)
7206#define CFG_TCP_DELACK_THRESHOLD_LOW_MAX (10000)
Mohit Khannae71e2262015-11-10 09:37:24 -08007207
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307208/*
7209 * <ini>
7210 * gTcpDelAckTimerCount - Del Ack Timer Count inorder to trigger TCP Del Ack
7211 * indication
7212 * @Min: 1
7213 * @Max: 1000
7214 * @Default: 30
7215 *
7216 * This ini is used to mention the Del Ack Timer Count inorder to
7217 * trigger TCP Del Ack indication i.e number of 100 ms periods
7218 *
7219 * Related: gTcpDelAckEnable, gTcpDelAckThresholdHigh, gTcpDelAckThresholdLow
7220 *
7221 * Supported Feature: Tcp Delayed Ack
7222 *
7223 * Usage: Internal
7224 *
7225 * </ini>
7226 */
Ravi Joshib89e7f72016-09-07 13:43:15 -07007227#define CFG_TCP_DELACK_TIMER_COUNT "gTcpDelAckTimerCount"
7228#define CFG_TCP_DELACK_TIMER_COUNT_DEFAULT (30)
7229#define CFG_TCP_DELACK_TIMER_COUNT_MIN (1)
7230#define CFG_TCP_DELACK_TIMER_COUNT_MAX (1000)
7231
7232
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307233/*
7234 * <ini>
7235 * gTcpTxHighTputThreshold - High Threshold inorder to trigger High
7236 * Tx Throughput requirement.
7237 * @Min: 0
7238 * @Max: 16000
7239 * @Default: 500
7240 *
7241 * This ini specifies the threshold of packets transmitted
Mohit Khannae71e2262015-11-10 09:37:24 -08007242 * over a period of 100 ms beyond which TCP can be considered to have a high
7243 * TX throughput requirement. The driver uses this condition to tweak TCP TX
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307244 * specific parameters (via cnss-daemon)
7245 *
7246 * Supported Feature: To tweak TCP TX n/w parameters
7247 *
7248 * Usage: Internal
7249 *
7250 * </ini>
Mohit Khannae71e2262015-11-10 09:37:24 -08007251 */
7252#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_NAME "gTcpTxHighTputThreshold"
7253#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_DEFAULT (500)
7254#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_MIN (0)
7255#define CFG_TCP_TX_HIGH_TPUT_THRESHOLD_MAX (16000)
7256
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007257#endif /* MSM_PLATFORM */
7258
7259#ifdef WLAN_FEATURE_11W
Abhishek Singh2f810492016-12-01 11:39:39 +05307260/*
7261 * <ini>
7262 * pmfSaQueryMaxRetries - Control PMF SA query retries for SAP
7263 * @Min: 0
7264 * @Max: 20
7265 * @Default: 5
7266 *
7267 * This ini to set the number of PMF SA query retries for SAP
7268 *
7269 * Related: None.
7270 *
7271 * Supported Feature: PMF(11W)
7272 *
7273 * Usage: Internal/External
7274 *
7275 * </ini>
7276 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007277#define CFG_PMF_SA_QUERY_MAX_RETRIES_NAME "pmfSaQueryMaxRetries"
7278#define CFG_PMF_SA_QUERY_MAX_RETRIES_DEFAULT (5)
7279#define CFG_PMF_SA_QUERY_MAX_RETRIES_MIN (0)
7280#define CFG_PMF_SA_QUERY_MAX_RETRIES_MAX (20)
7281
Abhishek Singh2f810492016-12-01 11:39:39 +05307282/*
7283 * <ini>
7284 * pmfSaQueryRetryInterval - Control PMF SA query retry interval
7285 * for SAP in ms
7286 * @Min: 0
7287 * @Max: 2000
7288 * @Default: 200
7289 *
7290 * This ini to set the PMF SA query retry interval for SAP in ms
7291 *
7292 * Related: None.
7293 *
7294 * Supported Feature: PMF(11W)
7295 *
7296 * Usage: Internal/External
7297 *
7298 * </ini>
7299 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007300#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_NAME "pmfSaQueryRetryInterval"
7301#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_DEFAULT (200)
7302#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_MIN (0)
7303#define CFG_PMF_SA_QUERY_RETRY_INTERVAL_MAX (2000)
7304#endif
7305
Nitesh Shah03161d12016-12-06 18:30:12 +05307306/*
7307 * <ini>
7308 * gMaxConcurrentActiveSessions - Maximum number of concurrent connections.
7309 * @Min: 1
7310 * @Max: 4
7311 * @Default: 3
7312 *
7313 * This ini is used to configure the maximum number of concurrent connections.
7314 *
7315 * Related: None.
7316 *
7317 * Supported Feature: Concurrency
7318 *
7319 * Usage: Internal/External
7320 *
7321 * </ini>
7322 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007323#define CFG_MAX_CONCURRENT_CONNECTIONS_NAME "gMaxConcurrentActiveSessions"
Tushnim Bhattacharyyae67bfc72016-01-27 11:47:37 -08007324#define CFG_MAX_CONCURRENT_CONNECTIONS_DEFAULT (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007325#define CFG_MAX_CONCURRENT_CONNECTIONS_MIN (1)
7326#define CFG_MAX_CONCURRENT_CONNECTIONS_MAX (4)
7327
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307328/*
7329 * <ini>
7330 * gIgnoreCAC - Used to ignore CAC
7331 * @Min: 0
7332 * @Max: 1
7333 * @Default: 0
7334 *
7335 * This ini is used to set default CAC
7336 *
7337 * Related: None
7338 *
7339 * Supported Feature: STA
7340 *
7341 * Usage: Internal/External
7342 *
7343 * </ini>
7344 */
7345
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007346#define CFG_IGNORE_CAC_NAME "gIgnoreCAC"
7347#define CFG_IGNORE_CAC_MIN (0)
7348#define CFG_IGNORE_CAC_MAX (1)
7349#define CFG_IGNORE_CAC_DEFAULT (0)
7350
7351#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_NAME "gEnableSAPDfsChSifsBurst"
7352#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_MIN (0)
7353#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_MAX (1)
7354#define CFG_ENABLE_SAP_DFS_CH_SIFS_BURST_DEFAULT (1)
7355
7356#define CFG_DFS_RADAR_PRI_MULTIPLIER_NAME "gDFSradarMappingPriMultiplier"
7357#define CFG_DFS_RADAR_PRI_MULTIPLIER_DEFAULT (4)
7358#define CFG_DFS_RADAR_PRI_MULTIPLIER_MIN (0)
7359#define CFG_DFS_RADAR_PRI_MULTIPLIER_MAX (10)
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307360
7361/*
7362 * <ini>
7363 * gReorderOffloadSupported - Packet reordering offload to firmware
7364 * @Min: 0
7365 * @Max: 1
7366 * @Default: 0
7367 *
7368 * This ini is used to set default Packet reordering
7369 *
7370 * Related: None
7371 *
7372 * Supported Feature: STA
7373 *
7374 * Usage: Internal/External
7375 *
7376 * </ini>
7377 */
7378
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007379#define CFG_REORDER_OFFLOAD_SUPPORT_NAME "gReorderOffloadSupported"
7380#define CFG_REORDER_OFFLOAD_SUPPORT_MIN (0)
7381#define CFG_REORDER_OFFLOAD_SUPPORT_MAX (1)
Kiran Kumar Lokere52d8dc32016-12-05 19:20:40 -08007382#define CFG_REORDER_OFFLOAD_SUPPORT_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007383
Yun Parkde380782016-08-17 16:26:54 -07007384/* IpaUcTxBufCount should be power of 2 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007385#define CFG_IPA_UC_TX_BUF_COUNT_NAME "IpaUcTxBufCount"
7386#define CFG_IPA_UC_TX_BUF_COUNT_MIN (0)
7387#define CFG_IPA_UC_TX_BUF_COUNT_MAX (2048)
7388#define CFG_IPA_UC_TX_BUF_COUNT_DEFAULT (512)
7389
7390#define CFG_IPA_UC_TX_BUF_SIZE_NAME "IpaUcTxBufSize"
7391#define CFG_IPA_UC_TX_BUF_SIZE_MIN (0)
7392#define CFG_IPA_UC_TX_BUF_SIZE_MAX (4096)
7393#define CFG_IPA_UC_TX_BUF_SIZE_DEFAULT (2048)
7394
Yun Parkde380782016-08-17 16:26:54 -07007395/* IpaUcRxIndRingCount should be power of 2 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007396#define CFG_IPA_UC_RX_IND_RING_COUNT_NAME "IpaUcRxIndRingCount"
7397#define CFG_IPA_UC_RX_IND_RING_COUNT_MIN (0)
7398#define CFG_IPA_UC_RX_IND_RING_COUNT_MAX (2048)
7399#define CFG_IPA_UC_RX_IND_RING_COUNT_DEFAULT (1024)
7400
7401#define CFG_IPA_UC_TX_PARTITION_BASE_NAME "IpaUcTxPartitionBase"
7402#define CFG_IPA_UC_TX_PARTITION_BASE_MIN (0)
7403#define CFG_IPA_UC_TX_PARTITION_BASE_MAX (9000)
7404#define CFG_IPA_UC_TX_PARTITION_BASE_DEFAULT (3000)
7405
7406#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
7407/* Enable WLAN Logging to app space */
7408#define CFG_WLAN_LOGGING_SUPPORT_NAME "wlanLoggingEnable"
7409#define CFG_WLAN_LOGGING_SUPPORT_ENABLE (1)
7410#define CFG_WLAN_LOGGING_SUPPORT_DISABLE (0)
7411#define CFG_WLAN_LOGGING_SUPPORT_DEFAULT (1)
7412
Srinivas Girigowda8187e792017-03-03 11:50:59 -08007413/* Enable forwarding the driver logs to kmsg console */
7414#define CFG_WLAN_LOGGING_CONSOLE_SUPPORT_NAME "wlanLoggingToConsole"
7415#define CFG_WLAN_LOGGING_CONSOLE_SUPPORT_ENABLE (1)
7416#define CFG_WLAN_LOGGING_CONSOLE_SUPPORT_DISABLE (0)
7417#define CFG_WLAN_LOGGING_CONSOLE_SUPPORT_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007418
7419/* Number of buffers to be used for WLAN logging */
7420#define CFG_WLAN_LOGGING_NUM_BUF_NAME "wlanLoggingNumBuf"
7421#define CFG_WLAN_LOGGING_NUM_BUF_MIN (4)
7422#define CFG_WLAN_LOGGING_NUM_BUF_MAX (512)
7423#define CFG_WLAN_LOGGING_NUM_BUF_DEFAULT (256)
7424#endif /* WLAN_LOGGING_SOCK_SVC_ENABLE */
7425
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307426/*
7427 * <ini>
7428 * gEnableSifsBurst - Enables Sifs Burst
7429 * @Min: 0
Dustin Brown0a4cfeb2017-03-10 15:22:28 -08007430 * @Max: 3
7431 * @Default: 0
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307432 *
Dustin Brown0a4cfeb2017-03-10 15:22:28 -08007433 * Sifs burst mode configuration
7434 * 0) disabled
7435 * 1) enabled, but disabled for legacy mode
7436 * 3) enabled
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307437 *
7438 * Related: None
7439 *
7440 * Supported Feature: STA
7441 *
7442 * Usage: Internal/External
7443 *
7444 * </ini>
7445 */
7446
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007447#define CFG_ENABLE_SIFS_BURST "gEnableSifsBurst"
7448#define CFG_ENABLE_SIFS_BURST_MIN (0)
Dustin Brown0a4cfeb2017-03-10 15:22:28 -08007449#define CFG_ENABLE_SIFS_BURST_MAX (3)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007450#define CFG_ENABLE_SIFS_BURST_DEFAULT (0)
7451
7452#ifdef WLAN_FEATURE_LPSS
7453#define CFG_ENABLE_LPASS_SUPPORT "gEnableLpassSupport"
7454#define CFG_ENABLE_LPASS_SUPPORT_DEFAULT (0)
7455#define CFG_ENABLE_LPASS_SUPPORT_MIN (0)
7456#define CFG_ENABLE_LPASS_SUPPORT_MAX (1)
7457#endif
7458
7459/*
7460 * NaN feature support configuration
7461 * gEnableNanSupport = 0 means NaN is not supported
7462 * gEnableNanSupport = 1 means NaN is supported
7463 */
7464#ifdef WLAN_FEATURE_NAN
7465#define CFG_ENABLE_NAN_SUPPORT "gEnableNanSupport"
7466#define CFG_ENABLE_NAN_SUPPORT_DEFAULT (0)
7467#define CFG_ENABLE_NAN_SUPPORT_MIN (0)
7468#define CFG_ENABLE_NAN_SUPPORT_MAX (1)
7469#endif
7470
7471#define CFG_ENABLE_SELF_RECOVERY "gEnableSelfRecovery"
7472#define CFG_ENABLE_SELF_RECOVERY_MIN (0)
7473#define CFG_ENABLE_SELF_RECOVERY_MAX (1)
7474#define CFG_ENABLE_SELF_RECOVERY_DEFAULT (0)
7475
7476#define CFG_ENABLE_SAP_SUSPEND "gEnableSapSuspend"
7477#define CFG_ENABLE_SAP_SUSPEND_MIN (0)
7478#define CFG_ENABLE_SAP_SUSPEND_MAX (1)
7479#define CFG_ENABLE_SAP_SUSPEND_DEFAULT (1)
7480
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307481/*
7482 * <ini>
7483 * gEnableDeauthToDisassocMap - Enables deauth to disassoc map
7484 * @Min: 0
7485 * @Max: 1
7486 * @Default: 0
7487 *
7488 * This ini is used to set default disassoc map
7489 *
7490 * Related: None
7491 *
7492 * Supported Feature: STA
7493 *
7494 * Usage: Internal/External
7495 *
7496 * </ini>
7497 */
7498
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007499#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_NAME "gEnableDeauthToDisassocMap"
7500#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_MIN (0)
7501#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_MAX (1)
7502#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_DEFAULT (0)
7503
7504#ifdef DHCP_SERVER_OFFLOAD
7505#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_NAME "gDHCPServerOffloadEnable"
7506#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_MIN (0)
7507#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_MAX (1)
7508#define CFG_DHCP_SERVER_OFFLOAD_SUPPORT_DEFAULT (CFG_DHCP_SERVER_OFFLOAD_SUPPORT_MIN)
7509
7510#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_NAME "gDHCPMaxNumClients"
7511#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_MIN (1)
7512#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_MAX (8)
7513#define CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_DEFAULT (CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT_MAX)
7514
7515#define CFG_DHCP_SERVER_IP_NAME "gDHCPServerIP"
7516#define CFG_DHCP_SERVER_IP_DEFAULT ""
7517#endif /* DHCP_SERVER_OFFLOAD */
7518
7519/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307520 * <ini>
7521 * gSendDeauthBeforeCon - It will send deauth before connection
7522 * @Min: 0
7523 * @Max: 1
7524 * @Default: 0
7525 *
7526 * This ini is used to set default DeauthBeforeCon
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007527 * If last disconnection was due to HB failure and we reconnect
7528 * to same AP next time, send Deauth before starting connection
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307529 *
7530 * Related: None
7531 *
7532 * Supported Feature: STA
7533 *
7534 * Usage: Internal/External
7535 *
7536 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007537 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307538
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007539#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION "gSendDeauthBeforeCon"
7540#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_MIN (0)
7541#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_MAX (1)
7542#define CFG_ENABLE_DEAUTH_BEFORE_CONNECTION_DEFAULT (0)
7543
7544/*
Nitesh Shah03161d12016-12-06 18:30:12 +05307545 * <ini>
7546 * gEnableCustomConcRule1 - Enable custom concurrency rule1.
7547 * @Min: 0
7548 * @Max: 1
7549 * @Default: 0
7550 *
7551 * This ini is used to enable/disable custom concurrency rule1.
7552 * If SAP comes up first and STA comes up later then SAP needs to follow STA's
7553 * channel.
7554 *
7555 * Related: None.
7556 *
7557 * Supported Feature: Concurrency
7558 *
7559 * Usage: Internal/External
7560 *
7561 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007562 */
7563#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME "gEnableCustomConcRule1"
7564#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME_MIN (0)
7565#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME_MAX (1)
7566#define CFG_ENABLE_CUSTOM_CONC_RULE1_NAME_DEFAULT (0)
7567
Nitesh Shah03161d12016-12-06 18:30:12 +05307568/*
7569 * <ini>
7570 * gEnableCustomConcRule2 - Enable custom concurrency rule2.
7571 * @Min: 0
7572 * @Max: 1
7573 * @Default: 0
7574 *
7575 * This ini is used to enable/disable custom concurrency rule2.
7576 * If P2PGO comes up first and STA comes up later then P2PGO need to follow
7577 * STA's channel in 5Ghz. In following if condition we are just adding sanity
7578 * check to make sure that by this time P2PGO's channel is same as STA's
7579 * channel.
7580 *
7581 * Related: None.
7582 *
7583 * Supported Feature: Concurrency
7584 *
7585 * Usage: Internal/External
7586 *
7587 * </ini>
7588 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007589#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME "gEnableCustomConcRule2"
7590#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME_MIN (0)
7591#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME_MAX (1)
7592#define CFG_ENABLE_CUSTOM_CONC_RULE2_NAME_DEFAULT (0)
7593
7594#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ "gEnableStaConnectionIn5Ghz"
7595#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ_MIN (0)
7596#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ_MAX (1)
7597#define CFG_ENABLE_STA_CONNECTION_IN_5GHZ_DEFAULT (1)
7598
7599#define CFG_ENABLE_MAC_ADDR_SPOOFING "gEnableMacAddrSpoof"
7600#define CFG_ENABLE_MAC_ADDR_SPOOFING_MIN (0)
7601#define CFG_ENABLE_MAC_ADDR_SPOOFING_MAX (1)
7602#define CFG_ENABLE_MAC_ADDR_SPOOFING_DEFAULT (1)
7603
7604#define CFG_P2P_LISTEN_DEFER_INTERVAL_NAME "gP2PListenDeferInterval"
7605#define CFG_P2P_LISTEN_DEFER_INTERVAL_MIN (100)
7606#define CFG_P2P_LISTEN_DEFER_INTERVAL_MAX (200)
7607#define CFG_P2P_LISTEN_DEFER_INTERVAL_DEFAULT (100)
7608
Nitesh Shah03161d12016-12-06 18:30:12 +05307609/*
7610 * <ini>
7611 * gStaMiracastMccRestTimeVal - Rest time when Miracast is running.
7612 * @Min: 100
7613 * @Max: 500
7614 * @Default: 400
7615 *
7616 * This ini is used to set rest time for home channel for Miracast before
7617 * going for scan.
7618 *
7619 * Related: None.
7620 *
7621 * Supported Feature: Concurrency
7622 *
7623 * Usage: Internal/External
7624 *
7625 * </ini>
7626 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007627#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL "gStaMiracastMccRestTimeVal"
7628#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL_MIN (100)
7629#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL_MAX (500)
7630#define CFG_STA_MIRACAST_MCC_REST_TIME_VAL_DEFAULT (400)
7631
7632#ifdef FEATURE_AP_MCC_CH_AVOIDANCE
Nitesh Shah03161d12016-12-06 18:30:12 +05307633/*
7634 * <ini>
7635 * gSapChannelAvoidance - SAP MCC channel avoidance.
7636 * @Min: 0
7637 * @Max: 1
7638 * @Default: 0
7639 *
7640 * This ini is used to sets sap mcc channel avoidance.
7641 *
7642 * Related: None.
7643 *
7644 * Supported Feature: Concurrency
7645 *
7646 * Usage: Internal/External
7647 *
7648 * </ini>
7649 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007650#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_NAME "gSapChannelAvoidance"
7651#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_MIN (0)
7652#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_MAX (1)
7653#define CFG_SAP_MCC_CHANNEL_AVOIDANCE_DEFAULT (0)
7654#endif /* FEATURE_AP_MCC_CH_AVOIDANCE */
7655
7656#define CFG_SAP_P2P_11AC_OVERRIDE_NAME "gAP11ACOverride"
7657#define CFG_SAP_P2P_11AC_OVERRIDE_MIN (0)
7658#define CFG_SAP_P2P_11AC_OVERRIDE_MAX (1)
7659#define CFG_SAP_P2P_11AC_OVERRIDE_DEFAULT (1)
7660
7661#define CFG_SAP_DOT11MC "gSapDot11mc"
7662#define CFG_SAP_DOT11MC_MIN (0)
7663#define CFG_SAP_DOT11MC_MAX (1)
7664#define CFG_SAP_DOT11MC_DEFAULT (0)
7665
7666#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR "gPreferNonDfsChanOnRadar"
7667#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR_MIN (0)
7668#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR_MAX (1)
7669#define CFG_ENABLE_NON_DFS_CHAN_ON_RADAR_DEFAULT (0)
7670
7671#define CFG_MULTICAST_HOST_FW_MSGS "gMulticastHostFwMsgs"
7672#define CFG_MULTICAST_HOST_FW_MSGS_MIN (0)
7673#define CFG_MULTICAST_HOST_FW_MSGS_MAX (1)
7674#define CFG_MULTICAST_HOST_FW_MSGS_DEFAULT (1)
7675
7676/*
Nitesh Shah428e70d2016-12-06 18:39:58 +05307677 * <ini>
7678 * gSystemPref - Configure wlan system preference for PCL.
7679 * @Min: 0
7680 * @Max: 2
7681 * @Default: 0
7682 *
7683 * This ini is used to configure wlan system preference option to help
7684 * policy manager decide on Preferred Channel List for a new connection.
7685 * For possible values refer to enum hdd_conc_priority_mode
7686 *
7687 * Related: None.
7688 *
7689 * Supported Feature: DBS
7690 *
7691 * Usage: Internal/External
7692 *
7693 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007694 */
7695#define CFG_CONC_SYSTEM_PREF "gSystemPref"
7696#define CFG_CONC_SYSTEM_PREF_MIN (0)
7697#define CFG_CONC_SYSTEM_PREF_MAX (2)
7698#define CFG_CONC_SYSTEM_PREF_DEFAULT (0)
7699
Poddar, Siddarthcc250aa2016-12-05 19:21:03 +05307700/*
7701 * <ini>
7702 * TSOEnable - Control to enable tso feature
7703 *
7704 * @Min: 0
7705 * @Max: 1
7706 * @Default: 0
7707 *
7708 * This ini is used to enable TSO feature
7709 *
7710 * Supported Feature: TSO Feature
7711 *
7712 * Usage: Internal
7713 *
7714 * </ini>
7715 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007716#define CFG_TSO_ENABLED_NAME "TSOEnable"
7717#define CFG_TSO_ENABLED_MIN (0)
7718#define CFG_TSO_ENABLED_MAX (1)
7719#define CFG_TSO_ENABLED_DEFAULT (0)
7720
7721/*
Himanshu Agarwalf0481722016-12-06 12:46:24 +05307722 * <ini>
7723 * LROEnable - Control to enable lro feature
7724 *
7725 * @Min: 0
7726 * @Max: 1
7727 * @Default: 0
7728 *
7729 * This ini is used to enable LRO feature
7730 *
7731 * Supported Feature: LRO
7732 *
7733 * Usage: Internal
7734 *
7735 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007736 */
7737#define CFG_LRO_ENABLED_NAME "LROEnable"
7738#define CFG_LRO_ENABLED_MIN (0)
7739#define CFG_LRO_ENABLED_MAX (1)
7740#define CFG_LRO_ENABLED_DEFAULT (0)
7741
7742/*
Manjunathappa Prakashfff753c2016-09-01 19:34:56 -07007743 * Enable Rx traffic flow steering to enable Rx interrupts on multiple CEs based
7744 * on the flows. Different CEs<==>different IRQs<==>probably different CPUs.
7745 * Parallel Rx paths.
7746 * 1 - enable 0 - disable
7747 */
7748#define CFG_FLOW_STEERING_ENABLED_NAME "gEnableFlowSteering"
7749#define CFG_FLOW_STEERING_ENABLED_MIN (0)
7750#define CFG_FLOW_STEERING_ENABLED_MAX (1)
7751#define CFG_FLOW_STEERING_ENABLED_DEFAULT (0)
7752
7753/*
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007754 * In static display use case when APPS is in stand alone power save mode enable
7755 * active offload mode which helps FW to filter out MC/BC data packets to avoid
7756 * APPS wake up and save more power.
7757 *
7758 * By default enable active mode offload as it helps to save more power in
7759 * static display usecase(APPS stand alone power collapse).
7760 *
7761 * If active mode offload(gActiveModeOffload=1) is enabled then all applicable
7762 * data offload/filtering is enabled immediately in FW once config is available
7763 * in WLAN driver and FW caches this configuration accross suspend/resume
7764 *
7765 * If active mode offload is disabled(gActiveModeOffload=0) then all applicable
7766 * data offload/filtering is enabled during cfg80211 suspend and disabled
7767 * during cfg80211 resume
7768 *
Rajeev Kumar5324d752017-02-13 17:11:19 -08007769 * Active mode offload feature is bydefault enabled for all targets
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007770 */
7771
7772#define CFG_ACTIVE_MODE_OFFLOAD "gActiveModeOffload"
7773#define CFG_ACTIVE_MODE_OFFLOAD_MIN (0)
7774#define CFG_ACTIVE_MODE_OFFLOAD_MAX (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007775#define CFG_ACTIVE_MODE_OFFLOAD_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007776
7777/*
Rajeev Kumardd3bc602016-08-16 14:21:05 -07007778 * 0: Disable BPF packet filter
7779 * 1: Enable BPF packet filter
7780 */
7781#define CFG_BPF_PACKET_FILTER_OFFLOAD "gBpfFilterEnable"
7782#define CFG_BPF_PACKET_FILTER_OFFLOAD_MIN (0)
7783#define CFG_BPF_PACKET_FILTER_OFFLOAD_MAX (1)
7784#define CFG_BPF_PACKET_FILTER_OFFLOAD_DEFAULT (1)
7785
7786/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307787 * <ini>
7788 * gCckChainMaskEnable - Used to enable/disable Cck ChainMask
7789 * @Min: 0
7790 * @Max: 1
7791 * @Default: 0
7792 *
7793 * This ini is used to set default Cck ChainMask
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007794 * 0: disable the cck tx chain mask (default)
7795 * 1: enable the cck tx chain mask
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307796 *
7797 * Related: None
7798 *
7799 * Supported Feature: STA
7800 *
7801 * Usage: Internal/External
7802 *
7803 * </ini>
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007804 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307805
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007806#define CFG_TX_CHAIN_MASK_CCK "gCckChainMaskEnable"
7807#define CFG_TX_CHAIN_MASK_CCK_MIN (0)
7808#define CFG_TX_CHAIN_MASK_CCK_MAX (1)
7809#define CFG_TX_CHAIN_MASK_CCK_DEFAULT (0)
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307810/*
7811 * <ini>
7812 * gTxChainMask1ss - Enables/disables tx chain Mask1ss
7813 * @Min: 0
7814 * @Max: 3
7815 * @Default: 1
7816 *
7817 * This ini is used to set default tx chain Mask1ss
7818 *
7819 * Related: None
7820 *
7821 * Supported Feature: STA
7822 *
7823 * Usage: Internal/External
7824 *
7825 * </ini>
7826 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007827
7828#define CFG_TX_CHAIN_MASK_1SS "gTxChainMask1ss"
7829#define CFG_TX_CHAIN_MASK_1SS_MIN (0)
7830#define CFG_TX_CHAIN_MASK_1SS_MAX (3)
7831#define CFG_TX_CHAIN_MASK_1SS_DEFAULT (1)
7832
7833/*
Jeff Johnsona89e25d2017-02-24 12:25:07 -08007834 * <ini>
7835 * gEnableSmartChainmask - Enable Smart Chainmask
7836 * @Min: 0
7837 * @Max: 1
7838 * @Default: 0
7839 *
7840 * This ini is used to enable/disable the Smart Chainmask feature via
7841 * the WMI_PDEV_PARAM_SMART_CHAINMASK_SCHEME firmware parameter.
7842 *
7843 * Related: None
7844 *
7845 * Supported Feature: STA
7846 *
7847 * Usage: Internal/External
7848 *
7849 * </ini>
7850 */
7851#define CFG_ENABLE_SMART_CHAINMASK_NAME "gEnableSmartChainmask"
7852#define CFG_ENABLE_SMART_CHAINMASK_MIN (0)
7853#define CFG_ENABLE_SMART_CHAINMASK_MAX (1)
7854#define CFG_ENABLE_SMART_CHAINMASK_DEFAULT (0)
7855
7856/*
7857 * <ini>
7858 * gEnableAlternativeChainmask - Enable Co-Ex Alternative Chainmask
7859 * @Min: 0
7860 * @Max: 1
7861 * @Default: 0
7862 *
7863 * This ini is used to enable/disable the Co-ex Alternative Chainmask
7864 * feature via the WMI_PDEV_PARAM_ALTERNATIVE_CHAINMASK_SCHEME
7865 * firmware parameter.
7866 *
7867 * Related: None
7868 *
7869 * Supported Feature: STA
7870 *
7871 * Usage: Internal/External
7872 *
7873 * </ini>
7874 */
7875#define CFG_ENABLE_COEX_ALT_CHAINMASK_NAME "gEnableAlternativeChainmask"
7876#define CFG_ENABLE_COEX_ALT_CHAINMASK_MIN (0)
7877#define CFG_ENABLE_COEX_ALT_CHAINMASK_MAX (1)
7878#define CFG_ENABLE_COEX_ALT_CHAINMASK_DEFAULT (0)
7879
7880/*
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007881 * set the self gen power value from
7882 * 0 to 0xffff
7883 */
7884#define CFG_SELF_GEN_FRM_PWR "gSelfGenFrmPwr"
7885#define CFG_SELF_GEN_FRM_PWR_MIN (0)
7886#define CFG_SELF_GEN_FRM_PWR_MAX (0xffff)
7887#define CFG_SELF_GEN_FRM_PWR_DEFAULT (0)
7888
7889/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307890 * <ini>
7891 * gTxAggregationSize - Gives an option to configure Tx aggregation size
7892 * in no of MPDUs
7893 * @Min: 0
7894 * @Max: 64
7895 * @Default: 64
7896 *
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05307897 * gTxAggregationSize gives an option to configure Tx aggregation size
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307898 * in no of MPDUs.This can be useful in debugging throughput issues
7899 *
7900 * Related: None
7901 *
7902 * Supported Feature: STA
7903 *
7904 * Usage: Internal/External
7905 *
7906 * </ini>
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05307907 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307908
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05307909#define CFG_TX_AGGREGATION_SIZE "gTxAggregationSize"
7910#define CFG_TX_AGGREGATION_SIZE_MIN (0)
7911#define CFG_TX_AGGREGATION_SIZE_MAX (64)
7912#define CFG_TX_AGGREGATION_SIZE_DEFAULT (64)
7913
7914/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307915 * <ini>
7916 * gRxAggregationSize - Gives an option to configure Rx aggregation size
7917 * in no of MPDUs
7918 * @Min: 1
7919 * @Max: 64
7920 * @Default: 64
7921 *
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05307922 * gRxAggregationSize gives an option to configure Rx aggregation size
7923 * in no of MPDUs. This can be useful in debugging throughput issues
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307924 *
7925 * Related: None
7926 *
7927 * Supported Feature: STA
7928 *
7929 * Usage: Internal/External
7930 *
7931 * </ini>
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05307932 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05307933
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +05307934#define CFG_RX_AGGREGATION_SIZE "gRxAggregationSize"
7935#define CFG_RX_AGGREGATION_SIZE_MIN (1)
7936#define CFG_RX_AGGREGATION_SIZE_MAX (64)
7937#define CFG_RX_AGGREGATION_SIZE_DEFAULT (64)
7938
7939/*
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007940 * fine timing measurement capability information
7941 *
7942 * <----- fine_time_meas_cap (in bits) ----->
7943 *+----------+-----+-----+------+------+-------+-------+-----+-----+
7944 *| 9-31 | 8 | 7 | 5 | 4 | 3 | 2 | 1 | 0 |
7945 *+----------+-----+-----+------+------+-------+-------+-----+-----+
7946 *| reserved | SAP | SAP |P2P-GO|P2P-GO|P2P-CLI|P2P-CLI| STA | STA |
7947 *| |resp |init |resp |init |resp |init |resp |init |
7948 *+----------+-----+-----+------+------+-------+-------+-----+-----+
7949 *
7950 * resp - responder role; init- initiator role
7951 *
7952 * CFG_FINE_TIME_MEAS_CAPABILITY_MAX computed based on the table
7953 * +-----------------+-----------------+-----------+
7954 * | Device Role | Initiator | Responder |
7955 * +-----------------+-----------------+-----------+
7956 * | Station | Y | N |
7957 * | P2P-CLI | Y | Y |
7958 * | P2P-GO | Y | Y |
7959 * | SAP | N | Y |
7960 * +-----------------+-----------------+-----------+
7961 */
7962#define CFG_FINE_TIME_MEAS_CAPABILITY "gfine_time_meas_cap"
7963#define CFG_FINE_TIME_MEAS_CAPABILITY_MIN (0x0000)
7964#define CFG_FINE_TIME_MEAS_CAPABILITY_MAX (0x00BD)
7965#define CFG_FINE_TIME_MEAS_CAPABILITY_DEFAULT (0x000D)
7966
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007967/**
7968 * enum dot11p_mode - The 802.11p mode of operation
7969 * @WLAN_HDD_11P_DISABLED: 802.11p mode is disabled
7970 * @WLAN_HDD_11P_STANDALONE: 802.11p-only operation
7971 * @WLAN_HDD_11P_CONCURRENT: 802.11p and WLAN operate concurrently
7972 */
7973enum dot11p_mode {
7974 WLAN_HDD_11P_DISABLED = 0,
7975 WLAN_HDD_11P_STANDALONE,
7976 WLAN_HDD_11P_CONCURRENT,
7977};
7978
7979#define CFG_DOT11P_MODE_NAME "gDot11PMode"
7980#define CFG_DOT11P_MODE_DEFAULT (WLAN_HDD_11P_DISABLED)
7981#define CFG_DOT11P_MODE_MIN (WLAN_HDD_11P_DISABLED)
7982#define CFG_DOT11P_MODE_MAX (WLAN_HDD_11P_CONCURRENT)
7983
Agrawal Ashishb2d1a452016-05-05 12:23:58 +05307984/* When gEnable_go_cts2self_for_sta is
7985 * enabled then if a legacy client connects to P2P GO,
7986 * Host will send a WMI VDEV command to FW to stop using NOA for P2P GO
7987 * and start using CTS2SELF.
7988 */
7989#define CFG_ENABLE_GO_CTS2SELF_FOR_STA "gEnable_go_cts2self_for_sta"
7990#define CFG_ENABLE_GO_CTS2SELF_FOR_STA_DEFAULT (0)
7991#define CFG_ENABLE_GO_CTS2SELF_FOR_STA_MIN (0)
7992#define CFG_ENABLE_GO_CTS2SELF_FOR_STA_MAX (1)
7993
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007994#define CFG_CE_CLASSIFY_ENABLE_NAME "gCEClassifyEnable"
7995#define CFG_CE_CLASSIFY_ENABLE_MIN (0)
7996#define CFG_CE_CLASSIFY_ENABLE_MAX (1)
Prakash Manjunathappa6eae0cd2016-02-08 10:27:21 -08007997#define CFG_CE_CLASSIFY_ENABLE_DEFAULT (1)
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08007998
Nitesh Shah5651b1e2017-02-02 17:59:52 +05307999/*
8000 *
8001 * <ini>
8002 * gDualMacFeatureDisable - Disable Dual MAC feature.
8003 * @Min: 0
8004 * @Max: 1
8005 * @Default: 0
8006 *
8007 * This ini is used to enable/disable dual MAC feature.
8008 * 0 - enable DBS 1 - disable DBS
8009 *
8010 * Related: None.
8011 *
8012 * Supported Feature: DBS
8013 *
8014 * Usage: Internal/External
8015 *
8016 * </ini>
8017 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08008018#define CFG_DUAL_MAC_FEATURE_DISABLE "gDualMacFeatureDisable"
8019#define CFG_DUAL_MAC_FEATURE_DISABLE_MIN (0)
8020#define CFG_DUAL_MAC_FEATURE_DISABLE_MAX (1)
8021#define CFG_DUAL_MAC_FEATURE_DISABLE_DEFAULT (0)
8022
Varun Reddy Yeturub43fda12015-09-10 18:16:21 -07008023/*
Nitesh Shah50a3de12017-04-03 19:37:19 +05308024 * <ini>
8025 * gdbs_scan_selection - DBS Scan Selection.
8026 * @Default: 5,2,2,16,2,2
8027 *
8028 * This ini is used to enable DBS scan selection.
8029 * 1st argument is module_id, 2nd argument is number of DBS scan,
8030 * 3rd argument is number of non-DBS scan,
8031 * and other arguments follows.
8032 * 5,2,2,16,2,2 means:
8033 * 5 is module id, 2 is num of DBS scan, 2 is num of non-DBS scan.
8034 * 16 is module id, 2 is num of DBS scan, 2 is num of non-DBS scan.
8035 *
8036 * Related: None.
8037 *
8038 * Supported Feature: DBS Scan
8039 *
8040 * Usage: Internal/External
8041 *
8042 * </ini>
8043 */
8044#define CFG_DBS_SCAN_SELECTION_NAME "gdbs_scan_selection"
8045#define CFG_DBS_SCAN_SELECTION_DEFAULT "5,2,2,16,2,2"
8046
8047/*
Varun Reddy Yeturub43fda12015-09-10 18:16:21 -07008048 * gPNOChannelPrediction will allow user to enable/disable the
8049 * PNO channel prediction feature.
8050 * In current PNO implementation, scan is always done until all configured
8051 * channels are scanned. If we can determine DUT is stationary based on
8052 * scanning a subset of channels, we may cancel the remaining channels.
8053 * Hence, we can save additional power consumption.
8054 */
8055#define CFG_PNO_CHANNEL_PREDICTION_NAME "gPNOChannelPrediction"
8056#define CFG_PNO_CHANNEL_PREDICTION_MIN (0)
8057#define CFG_PNO_CHANNEL_PREDICTION_MAX (1)
8058#define CFG_PNO_CHANNEL_PREDICTION_DEFAULT (0)
8059/*
8060 * The top K number of channels are used for tanimoto distance
8061 * calculation. These are the top channels on which the probability
8062 * of finding the AP's is extremely high. This number is intended
8063 * for tweaking the internal algorithm for experiments. This should
8064 * not be changed externally.
8065 */
8066#define CFG_TOP_K_NUM_OF_CHANNELS_NAME "gTopKNumOfChannels"
8067#define CFG_TOP_K_NUM_OF_CHANNELS_MIN (1)
8068#define CFG_TOP_K_NUM_OF_CHANNELS_MAX (5)
8069#define CFG_TOP_K_NUM_OF_CHANNELS_DEFAULT (3)
8070/*
8071 * This is the threshold value to determine that the STA is
8072 * stationary. If the tanimoto distance is less than this
8073 * value, then the device is considered to be stationary.
8074 * This parameter is intended to tweak the internal algorithm
8075 * for experiments. This should not be changed externally.
8076 */
8077#define CFG_STATIONARY_THRESHOLD_NAME "gStationaryThreshold"
8078#define CFG_STATIONARY_THRESHOLD_MIN (0)
8079#define CFG_STATIONARY_THRESHOLD_MAX (100)
8080#define CFG_STATIONARY_THRESHOLD_DEFAULT (10)
Varun Reddy Yeturu044bda22015-11-21 22:03:40 -08008081
Deepak Dhamdhere68929ec2015-08-05 15:16:35 -07008082/* Option to report rssi in cfg80211_inform_bss_frame()
8083 * 0 = use rssi value based on noise floor = -96 dBm
8084 * 1 = use rssi value based on actual noise floor in hardware
8085 */
8086#define CFG_INFORM_BSS_RSSI_RAW_NAME "gInformBssRssiRaw"
8087#define CFG_INFORM_BSS_RSSI_RAW_MIN (0)
8088#define CFG_INFORM_BSS_RSSI_RAW_MAX (1)
8089#define CFG_INFORM_BSS_RSSI_RAW_DEFAULT (1)
Ravi Joshi742495d2015-11-09 18:56:53 -08008090
Manikandan Mohan976e7562016-03-15 16:33:31 -07008091/* GPIO pin to toggle when capture tsf */
8092#define CFG_SET_TSF_GPIO_PIN_NAME "gtsf_gpio_pin"
8093#define CFG_SET_TSF_GPIO_PIN_MIN (0)
Manikandan Mohan296d4b52016-03-15 16:39:31 -07008094#define CFG_SET_TSF_GPIO_PIN_MAX (254)
8095#define TSF_GPIO_PIN_INVALID (255)
8096#define CFG_SET_TSF_GPIO_PIN_DEFAULT (TSF_GPIO_PIN_INVALID)
Sandeep Puligilla93a29ec2016-02-12 16:10:56 -08008097
8098/*
Gupta, Kapilc68ad462016-02-01 19:17:23 +05308099 * Dense traffic threshold
8100 * traffic threshold required for dense roam scan
Kapil Gupta7bad4312016-08-19 14:35:06 +05308101 * Measured in kbps
Gupta, Kapilc68ad462016-02-01 19:17:23 +05308102 */
8103#define CFG_ROAM_DENSE_TRAFFIC_THRESHOLD "gtraffic_threshold"
8104#define CFG_ROAM_DENSE_TRAFFIC_THRESHOLD_MIN (0)
Kapil Gupta7bad4312016-08-19 14:35:06 +05308105#define CFG_ROAM_DENSE_TRAFFIC_THRESHOLD_MAX (0xffffffff)
8106#define CFG_ROAM_DENSE_TRAFFIC_THRESHOLD_DEFAULT (400)
Gupta, Kapilc68ad462016-02-01 19:17:23 +05308107
8108/*
Kapil Gupta8878ad92017-02-13 11:56:04 +05308109 * <ini>
8110 * gvendor_acs_support - vendor based channel selection manager
8111 * @Min: 0
8112 * @Max: 1
8113 * @Default: 0
8114 *
8115 * Enabling this parameter will force driver to use user application based
8116 * channel selection algo instead of driver based auto channel selection
8117 * logic.
8118 *
8119 * Supported Feature: ACS
8120 *
8121 * Usage: External/Internal
8122 *
8123 * </ini>
8124 */
8125#define CFG_USER_AUTO_CHANNEL_SELECTION "gvendor_acs_support"
8126#define CFG_USER_AUTO_CHANNEL_SELECTION_DISABLE (0)
8127#define CFG_USER_AUTO_CHANNEL_SELECTION_ENABLE (1)
8128#define CFG_USER_AUTO_CHANNEL_SELECTION_DEFAULT (0)
8129
8130/*
8131 * <ini>
8132 * gacs_support_for_dfs_lte_coex - acs support for lte coex and dfs event
8133 * @Min: 0
8134 * @Max: 1
8135 * @Default: 0
8136 *
8137 * Enabling this parameter will force driver to use user application based
8138 * channel selection algo for channel selection in case of dfs and lte
8139 * coex event.
8140 *
8141 * Supported Feature: ACS
8142 *
8143 * Usage: Internal
8144 *
8145 * </ini>
8146 */
8147#define CFG_USER_ACS_DFS_LTE "gacs_support_for_dfs_lte_coex"
8148#define CFG_USER_ACS_DFS_LTE_DISABLE (0)
8149#define CFG_USER_ACS_DFS_LTE_ENABLE (1)
8150#define CFG_USER_ACS_DFS_LTE_DEFAULT (0)
8151
8152/*
Abhishek Singh165bc602016-03-21 12:43:00 +05308153 * Enabling gignore_peer_ht_opmode will enable 11g
8154 * protection only when there is a 11g AP in vicinity.
8155 */
8156#define CFG_IGNORE_PEER_HT_MODE_NAME "gignore_peer_ht_opmode"
8157#define CFG_IGNORE_PEER_HT_MODE_MIN (0)
8158#define CFG_IGNORE_PEER_HT_MODE_MAX (1)
8159#define CFG_IGNORE_PEER_HT_MODE_DEFAULT (0)
8160
Deepak Dhamdhere3385d752016-05-25 20:36:47 -07008161#ifdef WLAN_FEATURE_NAN_DATAPATH
8162/*
8163 * Enable NaN data path feature. NaN data path enables
8164 * NaN supported devices to exchange data over traditional
8165 * TCP/UDP network stack.
8166 */
8167#define CFG_ENABLE_NAN_DATAPATH_NAME "genable_nan_datapath"
8168#define CFG_ENABLE_NAN_DATAPATH_MIN (0)
8169#define CFG_ENABLE_NAN_DATAPATH_MAX (1)
8170#define CFG_ENABLE_NAN_DATAPATH_DEFAULT (0)
8171
8172/*
8173 * NAN channel on which NAN data interface to start
8174 */
8175#define CFG_ENABLE_NAN_NDI_CHANNEL_NAME "gnan_datapath_ndi_channel"
8176#define CFG_ENABLE_NAN_NDI_CHANNEL_MIN (6)
8177#define CFG_ENABLE_NAN_NDI_CHANNEL_MAX (149)
8178#define CFG_ENABLE_NAN_NDI_CHANNEL_DEFAULT (6)
8179#endif
8180
Abhishek Singh165bc602016-03-21 12:43:00 +05308181/*
Abhishek Singh5ea86532016-04-27 14:10:53 +05308182 * Enable/Disable to initiate BUG report in case of fatal event
8183 * Default: Enable
8184 */
8185#define CFG_ENABLE_FATAL_EVENT_TRIGGER "gEnableFatalEvent"
8186#define CFG_ENABLE_FATAL_EVENT_TRIGGER_MIN (0)
8187#define CFG_ENABLE_FATAL_EVENT_TRIGGER_MAX (1)
8188#define CFG_ENABLE_FATAL_EVENT_TRIGGER_DEFAULT (1)
8189
Abhishek Singh10ecf582016-05-04 17:48:59 +05308190/*
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308191 * <ini>
8192 * gEnableEdcaParams - Enable edca parameter
8193 * @Min: 0
8194 * @Max: 1
8195 * @Default: 0
8196 *
8197 * This ini is used if gEnableEdcaParams is set to 1, params gEdcaVoCwmin,
Abhishek Singh10ecf582016-05-04 17:48:59 +05308198 * gEdcaViCwmin, gEdcaBkCwmin, gEdcaBeCwmin, gEdcaVoCwmax,
8199 * gEdcaViCwmax, gEdcaBkCwmax, gEdcaBeCwmax, gEdcaVoAifs,
8200 * gEdcaViAifs, gEdcaBkAifs and gEdcaBeAifs values are used
8201 * to overwrite the values received from AP
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308202 *
8203 * Related: None
8204 *
8205 * Supported Feature: STA
8206 *
8207 * Usage: Internal/External
8208 *
8209 * </ini>
Abhishek Singh10ecf582016-05-04 17:48:59 +05308210 */
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308211
Abhishek Singh10ecf582016-05-04 17:48:59 +05308212#define CFG_ENABLE_EDCA_INI_NAME "gEnableEdcaParams"
8213#define CFG_ENABLE_EDCA_INI_MIN (0)
8214#define CFG_ENABLE_EDCA_INI_MAX (1)
8215#define CFG_ENABLE_EDCA_INI_DEFAULT (0)
8216
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308217/*
8218 * <ini>
8219 * gEdcaVoCwmin - Set Cwmin value for EDCA_AC_VO
8220 * @Min: 0
8221 * @Max: 0x15
8222 * @Default: 2
8223 *
8224 * This ini is used to set default Cwmin value for EDCA_AC_VO
8225 * Cwmin value for EDCA_AC_VO. CWVomin = 2^gEdcaVoCwmin -1
8226 *
8227 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin etc
8228 * are aplicable
8229 *
8230 * Supported Feature: STA
8231 *
8232 * Usage: Internal/External
8233 *
8234 * </ini>
8235 */
8236
Abhishek Singh10ecf582016-05-04 17:48:59 +05308237#define CFG_EDCA_VO_CWMIN_VALUE_NAME "gEdcaVoCwmin"
8238#define CFG_EDCA_VO_CWMIN_VALUE_MIN (0x0)
8239#define CFG_EDCA_VO_CWMIN_VALUE_MAX (15)
8240#define CFG_EDCA_VO_CWMIN_VALUE_DEFAULT (2)
8241
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308242/*
8243 * <ini>
8244 * gEdcaViCwmin - Set Cwmin value for EDCA_AC_VI
8245 * @Min: 0x0
8246 * @Max: 15
8247 * @Default: 3
8248 *
8249 * This ini is used to set default value for EDCA_AC_VI
8250 * Cwmin value for EDCA_AC_VI. CWVimin = 2^gEdcaViCwmin -1
8251 *
8252 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8253 * etc are aplicable
8254 *
8255 * Supported Feature: STA
8256 *
8257 * Usage: Internal/External
8258 *
8259 * </ini>
8260 */
8261
Abhishek Singh10ecf582016-05-04 17:48:59 +05308262#define CFG_EDCA_VI_CWMIN_VALUE_NAME "gEdcaViCwmin"
8263#define CFG_EDCA_VI_CWMIN_VALUE_MIN (0x0)
8264#define CFG_EDCA_VI_CWMIN_VALUE_MAX (15)
8265#define CFG_EDCA_VI_CWMIN_VALUE_DEFAULT (3)
8266
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308267/*
8268 * <ini>
8269 * gEdcaBkCwmin - Set Cwmin value for EDCA_AC_BK
8270 * @Min: 0x0
8271 * @Max: 15
8272 * @Default: 4
8273 *
8274 * This ini is used to set default Cwmin value for EDCA_AC_BK
8275 * Cwmin value for EDCA_AC_BK. CWBkmin = 2^gEdcaBkCwmin -1
8276 *
8277 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8278 * etc are aplicable
8279 *
8280 * Supported Feature: STA
8281 *
8282 * Usage: Internal/External
8283 * </ini>
8284 */
8285
Abhishek Singh10ecf582016-05-04 17:48:59 +05308286#define CFG_EDCA_BK_CWMIN_VALUE_NAME "gEdcaBkCwmin"
8287#define CFG_EDCA_BK_CWMIN_VALUE_MIN (0x0)
8288#define CFG_EDCA_BK_CWMIN_VALUE_MAX (15)
8289#define CFG_EDCA_BK_CWMIN_VALUE_DEFAULT (4)
8290
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308291/*
8292 * <ini>
8293 * gEdcaBeCwmin - Set Cwmin value for EDCA_AC_BE
8294 * @Min: 0x0
8295 * @Max: 15
8296 * @Default: 4
8297 *
8298 * This ini is used to set default Cwmin value for EDCA_AC_BE
8299 * Cwmin value for EDCA_AC_BE. CWBemin = 2^gEdcaBeCwmin
8300 *
8301 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8302 * etc are aplicable
8303 *
8304 * Supported Feature: STA
8305 *
8306 * Usage: Internal/External
8307 *
8308 * </ini>
8309 */
8310
Abhishek Singh10ecf582016-05-04 17:48:59 +05308311#define CFG_EDCA_BE_CWMIN_VALUE_NAME "gEdcaBeCwmin"
8312#define CFG_EDCA_BE_CWMIN_VALUE_MIN (0x0)
8313#define CFG_EDCA_BE_CWMIN_VALUE_MAX (15)
8314#define CFG_EDCA_BE_CWMIN_VALUE_DEFAULT (4)
8315
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308316/*
8317 * <ini>
8318 * gEdcaVoCwmax - Set Cwmax value for EDCA_AC_VO
8319 * @Min: 0
8320 * @Max: 15
8321 * @Default: 3
8322 *
8323 * This ini is used to set default Cwmax value for EDCA_AC_VO
8324 * Cwmax value for EDCA_AC_VO. CWVomax = 2^gEdcaVoCwmax -1
8325 *
8326 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8327 * etc are aplicable
8328 *
8329 * Supported Feature: STA
8330 *
8331 * Usage: Internal/External
8332 *
8333 * </ini>
8334 */
8335
Abhishek Singh10ecf582016-05-04 17:48:59 +05308336#define CFG_EDCA_VO_CWMAX_VALUE_NAME "gEdcaVoCwmax"
8337#define CFG_EDCA_VO_CWMAX_VALUE_MIN (0)
8338#define CFG_EDCA_VO_CWMAX_VALUE_MAX (15)
8339#define CFG_EDCA_VO_CWMAX_VALUE_DEFAULT (3)
8340
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308341/*
8342 * <ini>
8343 * gEdcaViCwmax - Set Cwmax value for EDCA_AC_VI
8344 * @Min: 0
8345 * @Max: 15
8346 * @Default: 4
8347 *
8348 * This ini is used to set default Cwmax value for EDCA_AC_VI
8349 * Cwmax value for EDCA_AC_VI. CWVimax = 2^gEdcaViCwmax -1
8350 *
8351 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8352 * etc are aplicable
8353 *
8354 * Supported Feature: STA
8355 *
8356 * Usage: Internal/External
8357 *
8358 * </ini>
8359 */
Abhishek Singh10ecf582016-05-04 17:48:59 +05308360#define CFG_EDCA_VI_CWMAX_VALUE_NAME "gEdcaViCwmax"
8361#define CFG_EDCA_VI_CWMAX_VALUE_MIN (0)
8362#define CFG_EDCA_VI_CWMAX_VALUE_MAX (15)
8363#define CFG_EDCA_VI_CWMAX_VALUE_DEFAULT (4)
8364
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308365/*
8366 * <ini>
8367 * gEdcaBkCwmax - Set Cwmax value for EDCA_AC_BK
8368 * @Min: 0
8369 * @Max: 15
8370 * @Default: 10
8371 *
8372 * This ini is used to set default Cwmax value for EDCA_AC_BK
8373 * Cwmax value for EDCA_AC_BK. CWBkmax = 2^gEdcaBkCwmax -1
8374 *
8375 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8376 * etc are aplicable
8377 *
8378 * Supported Feature: STA
8379 *
8380 * Usage: Internal/External
8381 *
8382 * </ini>
8383 */
8384
Abhishek Singh10ecf582016-05-04 17:48:59 +05308385#define CFG_EDCA_BK_CWMAX_VALUE_NAME "gEdcaBkCwmax"
8386#define CFG_EDCA_BK_CWMAX_VALUE_MIN (0)
8387#define CFG_EDCA_BK_CWMAX_VALUE_MAX (15)
8388#define CFG_EDCA_BK_CWMAX_VALUE_DEFAULT (10)
8389
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308390/*
8391 * <ini>
8392 * gEdcaBeCwmax - Set Cwmax value for EDCA_AC_BE
8393 * @Min: 0
8394 * @Max: 15
8395 * @Default: 10
8396 *
8397 * This ini is used to set default Cwmax value for EDCA_AC_BE
8398 * Cwmax value for EDCA_AC_BE. CWBemax = 2^gEdcaBeCwmax -1
8399 *
8400 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8401 * etc are aplicable
8402 *
8403 * Supported Feature: STA
8404 *
8405 * Usage: Internal/External
8406 *
8407 * </ini>
8408 */
8409
Abhishek Singh10ecf582016-05-04 17:48:59 +05308410#define CFG_EDCA_BE_CWMAX_VALUE_NAME "gEdcaBeCwmax"
8411#define CFG_EDCA_BE_CWMAX_VALUE_MIN (0)
8412#define CFG_EDCA_BE_CWMAX_VALUE_MAX (15)
8413#define CFG_EDCA_BE_CWMAX_VALUE_DEFAULT (10)
8414
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308415/*
8416 * <ini>
8417 * gEdcaVoAifs - Set Aifs value for EDCA_AC_VO
8418 * @Min: 0
8419 * @Max: 15
8420 * @Default: 2
8421 *
8422 * This ini is used to set default Aifs value for EDCA_AC_VO
8423 *
8424 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8425 * etc are aplicable
8426 *
8427 * Supported Feature: STA
8428 *
8429 * Usage: Internal/External
8430 *
8431 * </ini>
8432 */
8433
Abhishek Singh10ecf582016-05-04 17:48:59 +05308434#define CFG_EDCA_VO_AIFS_VALUE_NAME "gEdcaVoAifs"
8435#define CFG_EDCA_VO_AIFS_VALUE_MIN (0)
8436#define CFG_EDCA_VO_AIFS_VALUE_MAX (15)
8437#define CFG_EDCA_VO_AIFS_VALUE_DEFAULT (2)
8438
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308439/*
8440 * <ini>
8441 * gEdcaViAifs - Set Aifs value for EDCA_AC_VI
8442 * @Min: 0
8443 * @Max: 15
8444 * @Default: 2
8445 *
8446 * This ini is used to set default Aifs value for EDCA_AC_VI
8447 *
8448 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8449 * etc are aplicable
8450 *
8451 * Supported Feature: STA
8452 *
8453 * Usage: Internal/External
8454 *
8455 * </ini>
8456 */
8457
Abhishek Singh10ecf582016-05-04 17:48:59 +05308458#define CFG_EDCA_VI_AIFS_VALUE_NAME "gEdcaViAifs"
8459#define CFG_EDCA_VI_AIFS_VALUE_MIN (0)
8460#define CFG_EDCA_VI_AIFS_VALUE_MAX (15)
8461#define CFG_EDCA_VI_AIFS_VALUE_DEFAULT (2)
8462
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308463/*
8464 * <ini>
8465 * gEdcaBkAifs - Set Aifs value for EDCA_AC_BK
8466 * @Min: 0
8467 * @Max: 15
8468 * @Default: 7
8469 *
8470 * This ini is used to set default Aifs value for EDCA_AC_BK
8471 *
8472 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8473 * etc are aplicable
8474 *
8475 * Supported Feature: STA
8476 *
8477 * Usage: Internal/External
8478 *
8479 * </ini>
8480 */
8481
Abhishek Singh10ecf582016-05-04 17:48:59 +05308482#define CFG_EDCA_BK_AIFS_VALUE_NAME "gEdcaBkAifs"
8483#define CFG_EDCA_BK_AIFS_VALUE_MIN (0)
8484#define CFG_EDCA_BK_AIFS_VALUE_MAX (15)
8485#define CFG_EDCA_BK_AIFS_VALUE_DEFAULT (7)
8486
Sen, Devendra9ca8c432017-02-23 15:10:26 +05308487/*
8488 * <ini>
8489 * gEdcaBeAifs - Set Aifs value for EDCA_AC_BE
8490 * @Min: 0
8491 * @Max: 15
8492 * @Default: 3
8493 *
8494 * This ini is used to set default Aifs value for EDCA_AC_BE
8495 *
8496 * Related: If gEnableEdcaParams is set to 1, params gEdcaVoCwmin
8497 * etc are aplicable
8498 *
8499 * Supported Feature: STA
8500 *
8501 * Usage: Internal/External
8502 *
8503 * </ini>
8504 */
8505
Abhishek Singh10ecf582016-05-04 17:48:59 +05308506#define CFG_EDCA_BE_AIFS_VALUE_NAME "gEdcaBeAifs"
8507#define CFG_EDCA_BE_AIFS_VALUE_MIN (0)
8508#define CFG_EDCA_BE_AIFS_VALUE_MAX (15)
8509#define CFG_EDCA_BE_AIFS_VALUE_DEFAULT (3)
8510
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05308511/*
gbian62edd7e2017-03-07 13:12:13 +08008512 * <ini>
8513 * gEnableTxSchedWrrVO - Set TX sched parameters for VO
8514 * @Default:
8515 *
8516 * This key is mapping to VO defined in data path module through
8517 * OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
8518 * WRR TX sched parameters such as skip, credit, limit, credit, disc for VO.
8519 * e.g., gEnableTxSchedWrrVO = 10, 9, 8, 1, 8
8520 */
8521#define CFG_ENABLE_TX_SCHED_WRR_VO_NAME "gEnableTxSchedWrrVO"
8522#define CFG_ENABLE_TX_SCHED_WRR_VO_DEFAULT ""
8523
8524/*
8525 * <ini>
8526 * gEnableTxSchedWrrVI - Set TX sched parameters for VI
8527 * @Default:
8528 *
8529 * This key is mapping to VI defined in data path module through
8530 * OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
8531 * WRR TX sched parameters such as skip, credit, limit, credit, disc for VI.
8532 * e.g., gEnableTxSchedWrrVI = 10, 9, 8, 1, 8
8533 */
8534#define CFG_ENABLE_TX_SCHED_WRR_VI_NAME "gEnableTxSchedWrrVI"
8535#define CFG_ENABLE_TX_SCHED_WRR_VI_DEFAULT ""
8536
8537/*
8538 * <ini>
8539 * gEnableTxSchedWrrBE - Set TX sched parameters for BE
8540 * @Default:
8541 *
8542 * This key is mapping to BE defined in data path module through
8543 * OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
8544 * WRR TX sched parameters such as skip, credit, limit, credit, disc for BE.
8545 * e.g., gEnableTxSchedWrrBE = 10, 9, 8, 1, 8
8546 */
8547#define CFG_ENABLE_TX_SCHED_WRR_BE_NAME "gEnableTxSchedWrrBE"
8548#define CFG_ENABLE_TX_SCHED_WRR_BE_DEFAULT ""
8549
8550/*
8551 * <ini>
8552 * gEnableTxSchedWrrBK - Set TX sched parameters for BK
8553 * @Default:
8554 *
8555 * This key is mapping to BK defined in data path module through
8556 * OL_TX_SCHED_WRR_ADV_CAT_CFG_SPEC. The user can tune the
8557 * WRR TX sched parameters such as skip, credit, limit, credit, disc for BK.
8558 * e.g., gEnableTxSchedWrrBK = 10, 9, 8, 1, 8
8559 */
8560#define CFG_ENABLE_TX_SCHED_WRR_BK_NAME "gEnableTxSchedWrrBK"
8561#define CFG_ENABLE_TX_SCHED_WRR_BK_DEFAULT ""
8562
8563/*
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05308564 * Enable/disable DPTRACE
8565 * Enabling this might have performace impact.
8566 */
8567#define CFG_ENABLE_DP_TRACE "enable_dp_trace"
8568#define CFG_ENABLE_DP_TRACE_MIN (0)
8569#define CFG_ENABLE_DP_TRACE_MAX (1)
Nirav Shah1da77682016-05-03 20:16:39 +05308570#define CFG_ENABLE_DP_TRACE_DEFAULT (1)
Nirav Shahcc1f1ae2016-04-26 11:41:29 +05308571
Gupta, Kapil96c7f2f2016-04-25 19:13:41 +05308572/*
Gupta, Kapil96c7f2f2016-04-25 19:13:41 +05308573 * This parameter will set the weight to calculate the average low pass
8574 * filter for channel congestion.
8575 * Acceptable values for this: 0-100 (In %)
8576 */
8577#define CFG_ADAPT_DWELL_LPF_WEIGHT_NAME "adapt_dwell_lpf_weight"
8578#define CFG_ADAPT_DWELL_LPF_WEIGHT_MIN (0)
8579#define CFG_ADAPT_DWELL_LPF_WEIGHT_MAX (100)
8580#define CFG_ADAPT_DWELL_LPF_WEIGHT_DEFAULT (80)
8581
8582/*
8583 * This parameter will set interval to monitor wifi activity
8584 * in passive scan in msec.
8585 * Acceptable values for this: 0-25
8586 */
8587#define CFG_ADAPT_DWELL_PASMON_INTVAL_NAME "adapt_dwell_passive_mon_intval"
8588#define CFG_ADAPT_DWELL_PASMON_INTVAL_MIN (0)
Kapil Gupta6eb83c02017-03-03 11:07:52 +05308589#define CFG_ADAPT_DWELL_PASMON_INTVAL_MAX (25)
8590#define CFG_ADAPT_DWELL_PASMON_INTVAL_DEFAULT (10)
Gupta, Kapil96c7f2f2016-04-25 19:13:41 +05308591
8592/*
8593 * This parameter will set % of wifi activity used in passive scan 0-100.
8594 * Acceptable values for this: 0-100 (in %)
8595 */
8596#define CFG_ADAPT_DWELL_WIFI_THRESH_NAME "adapt_dwell_wifi_act_threshold"
8597#define CFG_ADAPT_DWELL_WIFI_THRESH_MIN (0)
8598#define CFG_ADAPT_DWELL_WIFI_THRESH_MAX (100)
8599#define CFG_ADAPT_DWELL_WIFI_THRESH_DEFAULT (10)
8600
8601/*
Mukul Sharmaf7d62e12016-09-03 15:16:22 +05308602 * This parameter will help to debug ssr reinit failure issues
8603 * by raising vos bug so dumps can be collected. If OEM
8604 * wants to avoid this crash, just disable this parameter.
8605 * wlan driver will only recover after driver unload and load.
8606 * Default: Enable
8607 */
8608#define CFG_BUG_ON_REINIT_FAILURE_NAME "g_bug_on_reinit_failure"
8609#define CFG_BUG_ON_REINIT_FAILURE_MIN (0)
8610#define CFG_BUG_ON_REINIT_FAILURE_MAX (1)
8611#define CFG_BUG_ON_REINIT_FAILURE_DEFAULT (1)
8612
8613/*
Abhishek Singh76587c32016-12-01 11:47:44 +05308614 * <ini>
8615 * gSub20ChannelWidth - Control sub 20 channel width (5/10 Mhz)
8616 * @Min: 0
8617 * @Max: 2
8618 * @Default: 0
8619 *
8620 * This ini is used to set the sub 20 channel width.
Naveen Rawat64e477e2016-05-20 10:34:56 -07008621 * gSub20ChannelWidth=0: indicates do not use Sub 20 MHz bandwidth
8622 * gSub20ChannelWidth=1: Bring up SAP/STA in 5 MHz bandwidth
8623 * gSub20ChannelWidth=2: Bring up SAP/STA in 10 MHz bandwidth
Abhishek Singh76587c32016-12-01 11:47:44 +05308624 *
8625 * Related: None
8626 *
8627 * Supported Feature: 5/10 Mhz channel width support
8628 *
8629 * Usage: Internal/External
8630 *
8631 * </ini>
Naveen Rawat64e477e2016-05-20 10:34:56 -07008632 */
8633#define CFG_SUB_20_CHANNEL_WIDTH_NAME "gSub20ChannelWidth"
8634#define CFG_SUB_20_CHANNEL_WIDTH_MIN (WLAN_SUB_20_CH_WIDTH_NONE)
8635#define CFG_SUB_20_CHANNEL_WIDTH_MAX (WLAN_SUB_20_CH_WIDTH_10)
8636#define CFG_SUB_20_CHANNEL_WIDTH_DEFAULT (WLAN_SUB_20_CH_WIDTH_NONE)
Nirav Shahbd36b062016-07-18 11:12:59 +05308637
Rajeev Kumar Sirasanagandlaaf474742016-09-06 17:54:50 +05308638#define CFG_TGT_GTX_USR_CFG_NAME "tgt_gtx_usr_cfg"
8639#define CFG_TGT_GTX_USR_CFG_MIN (0)
8640#define CFG_TGT_GTX_USR_CFG_MAX (32)
8641#define CFG_TGT_GTX_USR_CFG_DEFAULT (32)
8642
Arun Khandavallicc544b32017-01-30 19:52:16 +05308643#define CFG_SAP_INTERNAL_RESTART_NAME "gEnableSapInternalRestart"
8644#define CFG_SAP_INTERNAL_RESTART_MIN (0)
8645#define CFG_SAP_INTERNAL_RESTART_MAX (1)
8646#define CFG_SAP_INTERNAL_RESTART_DEFAULT (1)
8647
Nirav Shahbd36b062016-07-18 11:12:59 +05308648/*
Agrawal, Ashish4e5fa1c2016-09-21 19:03:43 +05308649 * This parameter will avoid updating ap_sta_inactivity from hostapd.conf
8650 * file. If a station does not send anything in ap_max_inactivity seconds, an
8651 * empty data frame is sent to it in order to verify whether it is
8652 * still in range. If this frame is not ACKed, the station will be
8653 * disassociated and then deauthenticated. This feature is used to
8654 * clear station table of old entries when the STAs move out of the
8655 * range.
8656 * Default : Disable
8657 */
8658#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_NAME "gSapMaxInactivityOverride"
8659#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_MIN (0)
8660#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_MAX (1)
8661#define CFG_SAP_MAX_INACTIVITY_OVERRIDE_DEFAULT (0)
8662
8663/*
Himanshu Agarwalf0481722016-12-06 12:46:24 +05308664 * <ini>
8665 * rx_mode - Control to decide rx mode
8666 *
8667 * @Min: 0
8668 * @Max: (CFG_ENABLE_RX_THREAD | CFG_ENABLE_RPS | CFG_ENABLE_NAPI)
8669 * @Default: MDM_PLATFORM - 0
8670 * HELIUMPLUS - CFG_ENABLE_NAPI
8671 * Other cases - (CFG_ENABLE_RX_THREAD | CFG_ENABLE_NAPI)
8672 *
8673 * This ini is used to decide mode for the rx path
8674 *
8675 * Supported Feature: NAPI
8676 *
8677 * Usage: Internal
8678 *
8679 * </ini>
Nirav Shahbd36b062016-07-18 11:12:59 +05308680 */
8681#define CFG_RX_MODE_NAME "rx_mode"
8682#define CFG_RX_MODE_MIN (0)
8683#define CFG_RX_MODE_MAX (CFG_ENABLE_RX_THREAD | CFG_ENABLE_RPS | \
8684 CFG_ENABLE_NAPI)
8685#ifdef MDM_PLATFORM
8686#define CFG_RX_MODE_DEFAULT (0)
Manjunathappa Prakash2721f942016-08-24 16:08:23 -07008687#elif defined(HELIUMPLUS)
8688#define CFG_RX_MODE_DEFAULT CFG_ENABLE_NAPI
Nirav Shahbd36b062016-07-18 11:12:59 +05308689#else
8690#define CFG_RX_MODE_DEFAULT (CFG_ENABLE_RX_THREAD | CFG_ENABLE_NAPI)
8691#endif
8692
8693/* List of RPS CPU maps for different rx queues registered by WLAN driver
8694 * Ref - Kernel/Documentation/networking/scaling.txt
8695 * RPS CPU map for a particular RX queue, selects CPU(s) for bottom half
8696 * processing of RX packets. For example, for a system with 4 CPUs,
8697 * 0xe: Use CPU1 - CPU3 and donot use CPU0.
8698 * 0x0: RPS is disabled, packets are processed on the interrupting CPU.
8699.*
8700 * WLAN driver registers NUM_TX_QUEUES queues for tx and rx each during
8701 * alloc_netdev_mq. Hence, we need to have a cpu mask for each of the rx queues.
8702 *
8703 * For example, if the NUM_TX_QUEUES is 4, a sample WLAN ini entry may look like
8704 * rpsRxQueueCpuMapList=a b c d
8705 * For a 4 CPU system (CPU0 - CPU3), this implies:
8706 * 0xa - (1010) use CPU1, CPU3 for rx queue 0
8707 * 0xb - (1011) use CPU0, CPU1 and CPU3 for rx queue 1
8708 * 0xc - (1100) use CPU2, CPU3 for rx queue 2
8709 * 0xd - (1101) use CPU0, CPU2 and CPU3 for rx queue 3
8710
8711 * In practice, we may want to avoid the cores which are heavily loaded.
8712 */
8713
8714/* Name of the ini file entry to specify RPS map for different RX queus */
8715#define CFG_RPS_RX_QUEUE_CPU_MAP_LIST_NAME "rpsRxQueueCpuMapList"
8716
8717/* Default value of rpsRxQueueCpuMapList. Different platforms may have
8718 * different configurations for NUM_TX_QUEUES and # of cpus, and will need to
8719 * configure an appropriate value via ini file. Setting default value to 'e' to
8720 * avoid use of CPU0 (since its heavily used by other system processes) by rx
8721 * queue 0, which is currently being used for rx packet processing.
8722 */
8723#define CFG_RPS_RX_QUEUE_CPU_MAP_LIST_DEFAULT "e"
8724
8725/* Maximum length of string used to hold a list of cpu maps for various rx
8726 * queues. Considering a 16 core system with 5 rx queues, a RPS CPU map
8727 * list may look like -
8728 * rpsRxQueueCpuMapList = ffff ffff ffff ffff ffff
8729 * (all 5 rx queues can be processed on all 16 cores)
8730 * max string len = 24 + 1(for '\0'). Considering 30 to be on safe side.
8731 */
8732#define CFG_RPS_RX_QUEUE_CPU_MAP_LIST_LEN 30
8733
Yingying Tang95409972016-10-20 15:16:15 +08008734#ifdef WLAN_FEATURE_WOW_PULSE
8735/*
8736 * Enable/Disable WOW PULSE feature
8737 * Set the wakeup pulse which FW use to wake up HOST
8738 * Default : Disable
8739 */
8740#define CFG_WOW_PULSE_SUPPORT_NAME "gwow_pulse_support"
8741#define CFG_WOW_PULSE_SUPPORT_MIN (0)
8742#define CFG_WOW_PULSE_SUPPORT_MAX (1)
8743#define CFG_WOW_PULSE_SUPPORT_DEFAULT (CFG_WOW_PULSE_SUPPORT_MIN)
8744
8745/*
8746 * GPIO PIN for Pulse
8747 * Which PIN to send the Pulse
8748 */
8749#define CFG_WOW_PULSE_PIN_NAME "gwow_pulse_pin"
8750#define CFG_WOW_PULSE_PIN_MIN (CFG_SET_TSF_GPIO_PIN_MIN)
8751#define CFG_WOW_PULSE_PIN_MAX (CFG_SET_TSF_GPIO_PIN_MAX)
8752#define CFG_WOW_PULSE_PIN_DEFAULT (35)
8753
8754/*
8755 * Pulse interval low
8756 * The interval of low level in the pulse
8757 * The value which defined by customer should between 160 and 480
8758 */
8759#define CFG_WOW_PULSE_INTERVAL_LOW_NAME "gwow_pulse_interval_low"
8760#define CFG_WOW_PULSE_INTERVAL_LOW_MIN (160)
8761#define CFG_WOW_PULSE_INTERVAL_LOW_MAX (480)
8762#define CFG_WOW_PULSE_INTERVAL_LOW_DEFAULT (180)
8763
8764/*
8765 * Pulse interval high
8766 * The interval of high level in the pulse
8767 * The value which defined by customer should between 20 and 40
8768 */
8769#define CFG_WOW_PULSE_INTERVAL_HIGH_NAME "gwow_pulse_interval_high"
8770#define CFG_WOW_PULSE_INTERVAL_HIGH_MIN (20)
8771#define CFG_WOW_PULSE_INTERVAL_HIGH_MAX (40)
8772#define CFG_WOW_PULSE_INTERVAL_HIGH_DEFAULT (20)
8773#endif
8774
Amar Singhal18517882016-08-08 12:26:20 -07008775/*
8776 * Support to start sap in indoor channel
8777 * Customer can config this item to enable/disable sap in indoor channel
8778 * Default: Disable
8779 */
8780#define CFG_INDOOR_CHANNEL_SUPPORT_NAME "gindoor_channel_support"
8781#define CFG_INDOOR_CHANNEL_SUPPORT_MIN (0)
8782#define CFG_INDOOR_CHANNEL_SUPPORT_MAX (1)
8783#define CFG_INDOOR_CHANNEL_SUPPORT_DEFAULT (0)
Nirav Shahbd36b062016-07-18 11:12:59 +05308784
Ravi Joshibb8d4512016-08-22 10:14:52 -07008785/*
Rajeev Kumar Sirasanagandlab79b5462016-09-06 18:33:17 +05308786 * Force softap to 11n, when gSapForce11NFor11AC is set to 1 from ini
8787 * despite of hostapd.conf request for 11ac
8788 */
8789#define CFG_SAP_FORCE_11N_FOR_11AC_NAME "gSapForce11NFor11AC"
8790#define CFG_SAP_FORCE_11N_FOR_11AC_MIN (0)
8791#define CFG_SAP_FORCE_11N_FOR_11AC_MAX (1)
8792#define CFG_SAP_FORCE_11N_FOR_11AC_DEFAULT (0)
8793
8794/*
Yingying Tangb4832f72016-10-20 13:44:55 +08008795 * sap tx leakage threshold
8796 * customer can set this value from 100 to 1000 which means
8797 * sap tx leakage threshold is -10db to -100db
8798 */
8799#define CFG_SAP_TX_LEAKAGE_THRESHOLD_NAME "gsap_tx_leakage_threshold"
8800#define CFG_SAP_TX_LEAKAGE_THRESHOLD_MIN (100)
8801#define CFG_SAP_TX_LEAKAGE_THRESHOLD_MAX (1000)
8802#define CFG_SAP_TX_LEAKAGE_THRESHOLD_DEFAULT (310)
8803
8804
8805/*
Ravi Joshibb8d4512016-08-22 10:14:52 -07008806 * Enable filtering of replayed multicast packets
8807 * In a typical infrastructure setup, it is quite normal to receive
8808 * replayed multicast packets. These packets may cause more harm than
8809 * help if not handled properly. Providing a configuration option
8810 * to enable filtering of such packets
8811 */
8812#define CFG_FILTER_MULTICAST_REPLAY_NAME "enable_multicast_replay_filter"
8813#define CFG_FILTER_MULTICAST_REPLAY_MIN (0)
8814#define CFG_FILTER_MULTICAST_REPLAY_MAX (1)
8815#define CFG_FILTER_MULTICAST_REPLAY_DEFAULT (1)
8816
Manjeet Singhe7ecb7c2016-09-03 12:34:53 +05308817/*
8818 * This parameter will control SIFS burst duration in FW from 0 to 12 ms.
8819 * Default value is set to 8ms.
8820 */
8821#define CFG_SIFS_BURST_DURATION_NAME "g_sifs_burst_duration"
8822#define CFG_SIFS_BURST_DURATION_MIN (0)
8823#define CFG_SIFS_BURST_DURATION_MAX (12)
8824#define CFG_SIFS_BURST_DURATION_DEFAULT (8)
8825
Selvaraj, Sridharebda0f22016-08-29 16:05:23 +05308826/* Optimize channel avoidance indication comming from firmware */
8827#define CFG_OPTIMIZE_CA_EVENT_NAME "goptimize_chan_avoid_event"
8828#define CFG_OPTIMIZE_CA_EVENT_DISABLE (0)
8829#define CFG_OPTIMIZE_CA_EVENT_ENABLE (1)
8830#define CFG_OPTIMIZE_CA_EVENT_DEFAULT (0)
Ravi Joshibb8d4512016-08-22 10:14:52 -07008831
Sandeep Puligillaafa52892016-10-26 19:03:16 -07008832/* Trigger BUG ON when firmware fails to send response */
8833#define CFG_CRASH_FW_TIMEOUT_NAME "fw_timeout_crash"
8834#define CFG_CRASH_FW_TIMEOUT_DISABLE (0)
8835#define CFG_CRASH_FW_TIMEOUT_ENABLE (1)
8836#define CFG_CRASH_FW_TIMEOUT_DEFAULT (0)
8837
Dustin Browncd756942016-11-23 12:25:33 -08008838/*
8839 * <ini>
8840 * rx_wakelock_timeout - Amount of time to hold wakelock for RX unicast packets
8841 * @Min: 0
8842 * @Max: 100
8843 * @Default: 50
8844 *
8845 * This ini item configures the amount of time, in milliseconds, that the driver
8846 * should prevent system power collapse after receiving an RX unicast packet.
8847 * A conigured value of 0 disables the RX Wakelock feature completely.
8848 *
8849 * Related: None.
8850 *
8851 * Supported Feature: RX Wakelock
8852 *
8853 * Usage: Internal/External
8854 *
8855 * </ini>
8856 */
8857#define CFG_RX_WAKELOCK_TIMEOUT_NAME "rx_wakelock_timeout"
8858#define CFG_RX_WAKELOCK_TIMEOUT_DEFAULT (50)
8859#define CFG_RX_WAKELOCK_TIMEOUT_MIN (0)
8860#define CFG_RX_WAKELOCK_TIMEOUT_MAX (100)
Sandeep Puligillaafa52892016-10-26 19:03:16 -07008861
Anurag Chouhan7c01cc42016-12-16 21:33:43 +05308862/*
8863 * <ini>
8864 * g_max_sched_scan_plan_int - pno sched max scan plan interval.
8865 * @Min: 1
8866 * @Max: 7200
8867 * @Default: 3600
8868 *
8869 * This ini is used to set max sched scan plan interval for pno scan
8870 * (value in seconds).
8871 *
8872 * Related: gPNOScanSupport
8873 *
8874 * Supported Feature: PNO scan
8875 *
8876 * Usage: External
8877 *
8878 * </ini>
8879 */
8880#define CFG_MAX_SCHED_SCAN_PLAN_INT_NAME "g_max_sched_scan_plan_int"
8881#define CFG_MAX_SCHED_SCAN_PLAN_INT_MIN (1)
8882#define CFG_MAX_SCHED_SCAN_PLAN_INT_MAX (7200)
8883#define CFG_MAX_SCHED_SCAN_PLAN_INT_DEFAULT (3600)
8884
8885/*
8886 * <ini>
8887 * g_max_sched_scan_plan_iterations - pno sched max scan plan iterations.
8888 * @Min: 1
8889 * @Max: 100
8890 * @Default: 10
8891 *
8892 * This ini is used to set max sched scan plan iterations for pno scan
8893 * (value in seconds).
8894 *
8895 * Related: gPNOScanSupport
8896 *
8897 * Supported Feature: PNO scan
8898 *
8899 * Usage: External
8900 *
8901 * </ini>
8902 */
8903#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_NAME "g_max_sched_scan_plan_iterations"
8904#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_MIN (1)
8905#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_MAX (100)
8906#define CFG_MAX_SCHED_SCAN_PLAN_ITRNS_DEFAULT (10)
8907
Jeff Johnson441e1f72017-02-07 08:50:49 -08008908/**
8909 * enum hdd_wext_control - knob for wireless extensions
8910 * @hdd_wext_disabled - interface is completely disabled. An access
8911 * control error log will be generated for each attempted use.
8912 * @hdd_wext_deprecated - interface is available but should not be
8913 * used. An access control warning log will be generated for each
8914 * use.
8915 * @hdd_wext_enabled - interface is available without restriction. No
8916 * access control logs will be generated.
8917 *
8918 * enum hdd_wext_control is used to enable coarse grained control on
8919 * wireless extensions ioctls. This control is used by configuration
8920 * items standard_wext_control and private_wext_control.
8921 *
8922 */
8923enum hdd_wext_control {
8924 hdd_wext_disabled = 0,
8925 hdd_wext_deprecated = 1,
8926 hdd_wext_enabled = 2,
8927};
8928
8929/*
8930 * <ini>
8931 * standard_wext_control - Standard wireless extensions control
8932 * @Min: 0
8933 * @Max: 2
8934 * @Default: 0
8935 *
8936 * Values are per enum hdd_wext_control.
8937 *
8938 * This ini is used to control access to standard wireless extensions
8939 * ioctls SIOCSIWCOMMIT (0x8B00) thru SIOCSIWPMKSA (0x8B36). The
8940 * functionality originally provided by these ioctls has been
8941 * completely superceeded by the functionality of cfg80211, and hence
8942 * by default support for these ioctls is disabled.
8943 *
8944 * Related: None
8945 *
8946 * Supported Feature: All
8947 *
8948 * Usage: Internal/External
8949 *
8950 * </ini>
8951 */
8952#define CFG_STANDARD_WEXT_CONTROL_NAME "standard_wext_control"
8953#define CFG_STANDARD_WEXT_CONTROL_MIN (hdd_wext_disabled)
8954#define CFG_STANDARD_WEXT_CONTROL_MAX (hdd_wext_enabled)
8955#define CFG_STANDARD_WEXT_CONTROL_DEFAULT (hdd_wext_disabled)
8956
8957/*
8958 * <ini>
8959 * private_wext_control - Private wireless extensions control
8960 * @Min: 0
8961 * @Max: 2
8962 * @Default: 1
8963 *
8964 * Values are per enum hdd_wext_control.
8965 *
8966 * This ini is used to control access to private wireless extensions
8967 * ioctls SIOCIWFIRSTPRIV (0x8BE0) thru SIOCIWLASTPRIV (0x8BFF). The
8968 * functionality provided by some of these ioctls has been superceeded
8969 * by cfg80211 (either standard commands or vendor commands), but many
8970 * of the private ioctls do not have a cfg80211-based equivalent, so
8971 * by default support for these ioctls is deprecated.
8972 *
8973 * Related: None
8974 *
8975 * Supported Feature: All
8976 *
8977 * Usage: Internal/External
8978 *
8979 * </ini>
8980 */
8981#define CFG_PRIVATE_WEXT_CONTROL_NAME "private_wext_control"
8982#define CFG_PRIVATE_WEXT_CONTROL_MIN (hdd_wext_disabled)
8983#define CFG_PRIVATE_WEXT_CONTROL_MAX (hdd_wext_enabled)
8984#define CFG_PRIVATE_WEXT_CONTROL_DEFAULT (hdd_wext_deprecated)
8985
Jeff Johnsondcd2cf92017-01-12 10:44:23 -08008986/*
Selvaraj, Sridhar0a71e542017-01-10 10:21:06 +05308987 * <ini>
Kapil Gupta957827b2017-02-13 15:47:04 +05308988 * gper_roam_mon_time - Minimum time required in seconds to
8989 * be considered as valid scenario for PER based roam
8990 * @Min: 5
8991 * @Max: 25
8992 * @Default: 25
8993 *
8994 * This ini is used to define minimum time in seconds for which DUT has
8995 * collected the PER stats before it can consider the stats hysteresis to be
8996 * valid for PER based scan.
8997 * DUT collects following information during this period:
8998 * 1. % of packets below gper_roam_low_rate_th
8999 * 2. # packets above gper_roam_high_rate_th
9000 * if DUT gets (1) greater than gper_roam_th_percent and (2) is zero during
9001 * this period, it triggers PER based roam scan.
9002 *
9003 * Related: gper_roam_enabled, gper_roam_high_rate_th, gper_roam_low_rate_th,
9004 * gper_roam_th_percent, gper_roam_rest_time
9005 *
9006 * Supported Feature: LFR-3.0
9007 *
9008 * Usage: Internal
9009 *
9010 * </ini>
9011 */
9012#define CFG_PER_ROAM_MONITOR_TIME "gper_roam_mon_time"
9013#define CFG_PER_ROAM_MONITOR_TIME_MIN (5)
9014#define CFG_PER_ROAM_MONITOR_TIME_MAX (25)
9015#define CFG_PER_ROAM_MONTIOR_TIME_DEFAULT (25)
9016
9017/*
9018 * <ini>
Selvaraj, Sridhar0a71e542017-01-10 10:21:06 +05309019 * gPowerUsage - Preferred Power Usage
9020 * @Min: Min
9021 * @Max: Max
9022 * @Default: Mod
9023 *
9024 * This ini is used to set the preferred power usage
9025 *
9026 * Related: None
9027 *
9028 * Supported Feature: Power Save
9029 *
9030 * Usage: External
9031 *
9032 * </ini>
9033 */
9034#define CFG_POWER_USAGE_NAME "gPowerUsage"
9035#define CFG_POWER_USAGE_MIN "Min"
9036#define CFG_POWER_USAGE_MAX "Max"
9037#define CFG_POWER_USAGE_DEFAULT "Mod"
9038
9039/*
9040 * <ini>
9041 * gWowlPattern - WOW Pattern to used when PBM filtering is enabled
9042 * @Default:
9043 *
9044 * This ini is used to set the WOW Pattern to be used for PBM Filtering
9045 *
9046 * Related: gMaxWoWFilters
9047 *
9048 * Supported Feature: Power Save
9049 *
9050 * Usage: External
9051 *
9052 * </ini>
9053 */
9054#define CFG_WOWL_PATTERN_NAME "gWowlPattern"
9055#define CFG_WOWL_PATTERN_DEFAULT ""
9056
9057/*
9058 * <ini>
9059 * gMaxWoWFilters - Maximum WoW patterns that can be configured
9060 * @Min: 0
9061 * @Max: WOW_MAX_BITMAP_FILTERS(32)
9062 * @Default: WOW_MAX_BITMAP_FILTERS(32)
9063 *
9064 * This ini is used to set the maximum WoW patterns that can be configured
9065 *
9066 * Related: gWowlPattern
9067 *
9068 * Supported Feature: Power Save
9069 *
9070 * Usage: External
9071 *
9072 * </ini>
9073 */
9074#define CFG_MAX_WOW_FILTERS_NAME "gMaxWoWFilters"
9075#define CFG_MAX_WOW_FILTERS_MIN (0)
9076#define CFG_MAX_WOW_FILTERS_MAX (WOW_MAX_BITMAP_FILTERS)
9077#define CFG_MAX_WOW_FILTERS_DEFAULT (WOW_MAX_BITMAP_FILTERS)
9078
9079/*
9080 * <ini>
9081 * gEnableImps - Enable/Disable IMPS
9082 * @Min: 0
9083 * @Max: 1
9084 * @Default: 1
9085 *
9086 * This ini is used to enable/Disable IMPS(IdleModePowerSave) Mode
9087 *
9088 * Related: None
9089 *
9090 * Supported Feature: Power Save
9091 *
9092 * Usage: External
9093 *
9094 * </ini>
9095 */
9096#define CFG_ENABLE_IMPS_NAME "gEnableImps"
9097#define CFG_ENABLE_IMPS_MIN (0)
9098#define CFG_ENABLE_IMPS_MAX (1)
9099#define CFG_ENABLE_IMPS_DEFAULT (1)
9100
9101/*
9102 * <ini>
9103 * gEnableBmps - Enable/Disable BMPS
9104 * @Min: 0
9105 * @Max: 1
9106 * @Default: 1
9107 *
9108 * This ini is used to enable/Disable BMPS(BeaconModePowerSave) Mode
9109 *
9110 * Related: None
9111 *
9112 * Supported Feature: Power Save
9113 *
9114 * Usage: External
9115 *
9116 * </ini>
9117 */
9118#define CFG_ENABLE_PS_NAME "gEnableBmps"
9119#define CFG_ENABLE_PS_MIN (0)
9120#define CFG_ENABLE_PS_MAX (1)
9121#define CFG_ENABLE_PS_DEFAULT (1)
9122
9123/*
9124 * <ini>
9125 * gAutoBmpsTimerValue - Set Auto BMPS Timer value
9126 * @Min: 0
9127 * @Max: 120
9128 * @Default: 0
9129 *
9130 * This ini is used to set Auto BMPS Timer value in seconds
9131 *
9132 * Related: gEnableBmps
9133 *
9134 * Supported Feature: Power Save
9135 *
9136 * Usage: External
9137 *
9138 * </ini>
9139 */
9140#define CFG_AUTO_PS_ENABLE_TIMER_NAME "gAutoBmpsTimerValue"
9141#define CFG_AUTO_PS_ENABLE_TIMER_MIN (0)
9142#define CFG_AUTO_PS_ENABLE_TIMER_MAX (120)
9143#define CFG_AUTO_PS_ENABLE_TIMER_DEFAULT (0)
9144
9145/*
9146 * <ini>
9147 * gBmpsMinListenInterval - Set BMPS Minimum Listen Interval
9148 * @Min: 1
9149 * @Max: 65535
9150 * @Default: 1
9151 *
9152 * This ini is used to set BMPS Minimum Listen Interval. If gPowerUsage
9153 * is set "Min", this INI need to be set.
9154 *
9155 * Related: gEnableBmps, gPowerUsage
9156 *
9157 * Supported Feature: Power Save
9158 *
9159 * Usage: External
9160 *
9161 * </ini>
9162 */
9163#define CFG_BMPS_MINIMUM_LI_NAME "gBmpsMinListenInterval"
9164#define CFG_BMPS_MINIMUM_LI_MIN (1)
9165#define CFG_BMPS_MINIMUM_LI_MAX (65535)
9166#define CFG_BMPS_MINIMUM_LI_DEFAULT (1)
9167
9168/*
9169 * <ini>
9170 * gBmpsModListenInterval - Set BMPS Moderate Listen Interval
9171 * @Min: 1
9172 * @Max: 65535
9173 * @Default: 1
9174 *
9175 * This ini is used to set BMPS Moderate Listen Interval. If gPowerUsage
9176 * is set "Mod", this INI need to be set.
9177 *
9178 * Related: gEnableBmps, gPowerUsage
9179 *
9180 * Supported Feature: Power Save
9181 *
9182 * Usage: External
9183 *
9184 * </ini>
9185 */
9186#define CFG_BMPS_MODERATE_LI_NAME "gBmpsModListenInterval"
9187#define CFG_BMPS_MODERATE_LI_MIN (1)
9188#define CFG_BMPS_MODERATE_LI_MAX (65535)
9189#define CFG_BMPS_MODERATE_LI_DEFAULT (1)
9190
9191/*
9192 * <ini>
9193 * gBmpsMaxListenInterval - Set BMPS Maximum Listen Interval
9194 * @Min: 1
9195 * @Max: 65535
9196 * @Default: 1
9197 *
9198 * This ini is used to set BMPS Maximum Listen Interval. If gPowerUsage
9199 * is set "Max", this INI need to be set.
9200 *
9201 * Related: gEnableBmps, gPowerUsage
9202 *
9203 * Supported Feature: Power Save
9204 *
9205 * Usage: External
9206 *
9207 * </ini>
9208 */
9209#define CFG_BMPS_MAXIMUM_LI_NAME "gBmpsMaxListenInterval"
9210#define CFG_BMPS_MAXIMUM_LI_MIN (1)
9211#define CFG_BMPS_MAXIMUM_LI_MAX (65535)
9212#define CFG_BMPS_MAXIMUM_LI_DEFAULT (1)
9213
9214#ifdef FEATURE_RUNTIME_PM
9215/*
9216 * <ini>
9217 * gRuntimePM - enable runtime suspend
9218 * @Min: 0
9219 * @Max: 1
9220 * @Default: 0
9221 *
9222 * This ini is used to enable runtime_suspend
9223 *
9224 * Related: None
9225 *
9226 * Supported Feature: Power Save
9227 *
9228 * Usage: External
9229 *
9230 * </ini>
9231 */
9232#define CFG_ENABLE_RUNTIME_PM "gRuntimePM"
9233#define CFG_ENABLE_RUNTIME_PM_MIN (0)
9234#define CFG_ENABLE_RUNTIME_PM_MAX (1)
9235#define CFG_ENABLE_RUNTIME_PM_DEFAULT (0)
9236
9237/*
9238 * <ini>
9239 * gRuntimePMDelay - Set runtime pm's inactivity timer
9240 * @Min: 0
9241 * @Max: 1
9242 * @Default: 0
9243 *
9244 * This ini is used to set runtime pm's inactivity timer value.
9245 * the wlan driver will wait for this number of milliseconds of
9246 * inactivity before performing a runtime suspend.
9247 *
9248 * Related: gRuntimePM
9249 *
9250 * Supported Feature: Power Save
9251 *
9252 * Usage: External
9253 *
9254 * </ini>
9255 */
9256#define CFG_RUNTIME_PM_DELAY_NAME "gRuntimePMDelay"
9257#define CFG_RUNTIME_PM_DELAY_MIN (100)
9258#define CFG_RUNTIME_PM_DELAY_MAX (10000)
9259#define CFG_RUNTIME_PM_DELAY_DEFAULT (500)
9260#endif
9261
9262/*
9263 * <ini>
9264 * gEnablePowerSaveOffload - Enable Power Save Offload
9265 * @Min: 0
9266 * @Max: 5
9267 * @Default: 0
9268 *
9269 * This ini is used to set Power Save Offload configuration:
9270 * Current values of gEnablePowerSaveOffload:
9271 * 0 -> Power save offload is disabled
9272 * 1 -> Legacy Power save enabled + Deep sleep Disabled
9273 * 2 -> QPower enabled + Deep sleep Disabled
9274 * 3 -> Legacy Power save enabled + Deep sleep Enabled
9275 * 4 -> QPower enabled + Deep sleep Enabled
9276 * 5 -> Duty cycling QPower enabled
9277 *
9278 * Related: None
9279 *
9280 * Supported Feature: Power Save
9281 *
9282 * Usage: External
9283 *
9284 * </ini>
9285 */
9286#define CFG_POWERSAVE_OFFLOAD_NAME "gEnablePowerSaveOffload"
9287#define CFG_POWERSAVE_OFFLOAD_MIN (0)
9288#define CFG_POWERSAVE_OFFLOAD_MAX (PS_DUTY_CYCLING_QPOWER)
9289#define CFG_POWERSAVE_OFFLOAD_DEFAULT (CFG_POWERSAVE_OFFLOAD_MIN)
9290
9291/*
9292 * <ini>
9293 * gEnableWoW - Enable/Disable WoW
9294 * @Min: 0
9295 * @Max: 3
9296 * @Default: 3
9297 *
9298 * This ini is used to enable/disable WoW. Configurations are as follows:
9299 * 0 - Disable both magic pattern match and pattern byte match.
9300 * 1 - Enable magic pattern match on all interfaces.
9301 * 2 - Enable pattern byte match on all interfaces.
9302 * 3 - Enable both magic patter and pattern byte match on all interfaces.
9303 *
9304 * Related: None
9305 *
9306 * Supported Feature: Power Save
9307 *
9308 * Usage: External
9309 *
9310 * </ini>
9311 */
9312#define CFG_WOW_STATUS_NAME "gEnableWoW"
9313#define CFG_WOW_ENABLE_MIN (0)
9314#define CFG_WOW_ENABLE_MAX (3)
9315#define CFG_WOW_STATUS_DEFAULT (3)
9316
9317#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
9318/*
9319 * <ini>
9320 * gExtWoWgotoSuspend - Enable/Disable Extended WoW
9321 * @Min: 0
9322 * @Max: 1
9323 * @Default: 1
9324 *
9325 * This ini is used to enable/disable Extended WoW.
9326 *
9327 * Related: None
9328 *
9329 * Supported Feature: Power Save
9330 *
9331 * Usage: External
9332 *
9333 * </ini>
9334 */
9335#define CFG_EXTWOW_GO_TO_SUSPEND "gExtWoWgotoSuspend"
9336#define CFG_EXTWOW_GO_TO_SUSPEND_MIN (0)
9337#define CFG_EXTWOW_GO_TO_SUSPEND_MAX (1)
9338#define CFG_EXTWOW_GO_TO_SUSPEND_DEFAULT (1)
9339
9340/*
9341 * <ini>
9342 * gExtWowApp1WakeupPinNumber - Set wakeup1 PIN number
9343 * @Min: 0
9344 * @Max: 255
9345 * @Default: 12
9346 *
9347 * This ini is used to set EXT WOW APP1 wakeup PIN number
9348 *
9349 * Related: None
9350 *
9351 * Supported Feature: Power Save
9352 *
9353 * Usage: External
9354 *
9355 * </ini>
9356 */
9357#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER "gExtWowApp1WakeupPinNumber"
9358#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER_MIN (0)
9359#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER_MAX (255)
9360#define CFG_EXTWOW_APP1_WAKE_PIN_NUMBER_DEFAULT (12)
9361
9362/*
9363 * <ini>
9364 * gExtWowApp2WakeupPinNumber - Set wakeup2 PIN number
9365 * @Min: 0
9366 * @Max: 255
9367 * @Default: 16
9368 *
9369 * This ini is used to set EXT WOW APP2 wakeup PIN number
9370 *
9371 * Related: None
9372 *
9373 * Supported Feature: Power Save
9374 *
9375 * Usage: External
9376 *
9377 * </ini>
9378 */
9379#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER "gExtWowApp2WakeupPinNumber"
9380#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER_MIN (0)
9381#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER_MAX (255)
9382#define CFG_EXTWOW_APP2_WAKE_PIN_NUMBER_DEFAULT (16)
9383
9384/*
9385 * <ini>
9386 * gExtWoWApp2KAInitPingInterval - Set Keep Alive Init Ping Interval
9387 * @Min: 0
9388 * @Max: 0xffffffff
9389 * @Default: 240
9390 *
9391 * This ini is used to set Keep Alive Init Ping Interval for EXT WOW
9392 *
9393 * Related: None
9394 *
9395 * Supported Feature: Power Save
9396 *
9397 * Usage: External
9398 *
9399 * </ini>
9400 */
9401#define CFG_EXTWOW_KA_INIT_PING_INTERVAL "gExtWoWApp2KAInitPingInterval"
9402#define CFG_EXTWOW_KA_INIT_PING_INTERVAL_MIN (0)
9403#define CFG_EXTWOW_KA_INIT_PING_INTERVAL_MAX (0xffffffff)
9404#define CFG_EXTWOW_KA_INIT_PING_INTERVAL_DEFAULT (240)
9405
9406/*
9407 * <ini>
9408 * gExtWoWApp2KAMinPingInterval - Set Keep Alive Minimum Ping Interval
9409 * @Min: 0
9410 * @Max: 0xffffffff
9411 * @Default: 240
9412 *
9413 * This ini is used to set Keep Alive Minimum Ping Interval for EXT WOW
9414 *
9415 * Related: None
9416 *
9417 * Supported Feature: Power Save
9418 *
9419 * Usage: External
9420 *
9421 * </ini>
9422 */
9423#define CFG_EXTWOW_KA_MIN_PING_INTERVAL "gExtWoWApp2KAMinPingInterval"
9424#define CFG_EXTWOW_KA_MIN_PING_INTERVAL_MIN (0)
9425#define CFG_EXTWOW_KA_MIN_PING_INTERVAL_MAX (0xffffffff)
9426#define CFG_EXTWOW_KA_MIN_PING_INTERVAL_DEFAULT (240)
9427
9428/*
9429 * <ini>
9430 * gExtWoWApp2KAMaxPingInterval - Set Keep Alive Maximum Ping Interval
9431 * @Min: 0
9432 * @Max: 0xffffffff
9433 * @Default: 1280
9434 *
9435 * This ini is used to set Keep Alive Maximum Ping Interval for EXT WOW
9436 *
9437 * Related: None
9438 *
9439 * Supported Feature: Power Save
9440 *
9441 * Usage: External
9442 *
9443 * </ini>
9444 */
9445#define CFG_EXTWOW_KA_MAX_PING_INTERVAL "gExtWoWApp2KAMaxPingInterval"
9446#define CFG_EXTWOW_KA_MAX_PING_INTERVAL_MIN (0)
9447#define CFG_EXTWOW_KA_MAX_PING_INTERVAL_MAX (0xffffffff)
9448#define CFG_EXTWOW_KA_MAX_PING_INTERVAL_DEFAULT (1280)
9449
9450/*
9451 * <ini>
9452 * gExtWoWApp2KAIncPingInterval - Set Keep Alive increment of Ping Interval
9453 * @Min: 0
9454 * @Max: 0xffffffff
9455 * @Default: 4
9456 *
9457 * This ini is used to set Keep Alive increment of Ping Interval for EXT WOW
9458 *
9459 * Related: None
9460 *
9461 * Supported Feature: Power Save
9462 *
9463 * Usage: External
9464 *
9465 * </ini>
9466 */
9467#define CFG_EXTWOW_KA_INC_PING_INTERVAL "gExtWoWApp2KAIncPingInterval"
9468#define CFG_EXTWOW_KA_INC_PING_INTERVAL_MIN (0)
9469#define CFG_EXTWOW_KA_INC_PING_INTERVAL_MAX (0xffffffff)
9470#define CFG_EXTWOW_KA_INC_PING_INTERVAL_DEFAULT (4)
9471
9472/*
9473 * <ini>
9474 * gExtWoWApp2KAIncPingInterval - Set TCP source port
9475 * @Min: 0
9476 * @Max: 65535
9477 * @Default: 5000
9478 *
9479 * This ini is used to set TCP source port when EXT WOW is enabled
9480 *
9481 * Related: None
9482 *
9483 * Supported Feature: Power Save
9484 *
9485 * Usage: External
9486 *
9487 * </ini>
9488 */
9489#define CFG_EXTWOW_TCP_SRC_PORT "gExtWoWApp2TcpSrcPort"
9490#define CFG_EXTWOW_TCP_SRC_PORT_MIN (0)
9491#define CFG_EXTWOW_TCP_SRC_PORT_MAX (65535)
9492#define CFG_EXTWOW_TCP_SRC_PORT_DEFAULT (5000)
9493
9494/*
9495 * <ini>
9496 * gExtWoWApp2TcpDstPort - Set TCP Destination port
9497 * @Min: 0
9498 * @Max: 65535
9499 * @Default: 5001
9500 *
9501 * This ini is used to set TCP Destination port when EXT WOW is enabled
9502 *
9503 * Related: None
9504 *
9505 * Supported Feature: Power Save
9506 *
9507 * Usage: External
9508 *
9509 * </ini>
9510 */
9511#define CFG_EXTWOW_TCP_DST_PORT "gExtWoWApp2TcpDstPort"
9512#define CFG_EXTWOW_TCP_DST_PORT_MIN (0)
9513#define CFG_EXTWOW_TCP_DST_PORT_MAX (65535)
9514#define CFG_EXTWOW_TCP_DST_PORT_DEFAULT (5001)
9515
9516/*
9517 * <ini>
9518 * gExtWoWApp2TcpTxTimeout - Set TCP tx timeout
9519 * @Min: 0
9520 * @Max: 0xffffffff
9521 * @Default: 200
9522 *
9523 * This ini is used to set TCP Tx timeout when EXT WOW is enabled
9524 *
9525 * Related: None
9526 *
9527 * Supported Feature: Power Save
9528 *
9529 * Usage: External
9530 *
9531 * </ini>
9532 */
9533#define CFG_EXTWOW_TCP_TX_TIMEOUT "gExtWoWApp2TcpTxTimeout"
9534#define CFG_EXTWOW_TCP_TX_TIMEOUT_MIN (0)
9535#define CFG_EXTWOW_TCP_TX_TIMEOUT_MAX (0xffffffff)
9536#define CFG_EXTWOW_TCP_TX_TIMEOUT_DEFAULT (200)
9537
9538/*
9539 * <ini>
9540 * gExtWoWApp2TcpRxTimeout - Set TCP rx timeout
9541 * @Min: 0
9542 * @Max: 0xffffffff
9543 * @Default: 200
9544 *
9545 * This ini is used to set TCP Rx timeout when EXT WOW is enabled
9546 *
9547 * Related: None
9548 *
9549 * Supported Feature: Power Save
9550 *
9551 * Usage: External
9552 *
9553 * </ini>
9554 */
9555#define CFG_EXTWOW_TCP_RX_TIMEOUT "gExtWoWApp2TcpRxTimeout"
9556#define CFG_EXTWOW_TCP_RX_TIMEOUT_MIN (0)
9557#define CFG_EXTWOW_TCP_RX_TIMEOUT_MAX (0xffffffff)
9558#define CFG_EXTWOW_TCP_RX_TIMEOUT_DEFAULT (200)
9559#endif
9560
9561/*
Kapil Gupta5cda2252016-12-29 18:44:26 +05309562 * <ini>
9563 * gper_roam_enabled - To enabled/disable PER based roaming in FW
9564 * @Min: 0
Kapil Gupta6e6c26b2017-01-20 18:59:43 +05309565 * @Max: 3
9566 * @Default: 0
Kapil Gupta5cda2252016-12-29 18:44:26 +05309567 *
9568 * This ini is used to enable/disable Packet error based roaming, enabling this
9569 * will cause DUT to monitor Tx and Rx traffic and roam to a better candidate
9570 * if current is not good enough.
9571 *
Kapil Gupta6e6c26b2017-01-20 18:59:43 +05309572 * Values supported:
9573 * 0: disabled
9574 * 1: enabled for Rx traffic
9575 * 2: enabled for Tx traffic
9576 * 3: enabled for Tx and Rx traffic
9577 *
Kapil Gupta5cda2252016-12-29 18:44:26 +05309578 * Related: gper_roam_high_rate_th, gper_roam_low_rate_th,
9579 * gper_roam_th_percent, gper_roam_rest_time
9580 *
9581 * Supported Feature: LFR-3.0
9582 *
9583 * Usage: Internal
9584 *
9585 * </ini>
9586 */
9587#define CFG_PER_ROAM_ENABLE_NAME "gper_roam_enabled"
9588#define CFG_PER_ROAM_ENABLE_MIN (0)
Kapil Gupta6e6c26b2017-01-20 18:59:43 +05309589#define CFG_PER_ROAM_ENABLE_MAX (3)
9590#define CFG_PER_ROAM_ENABLE_DEFAULT (0)
Kapil Gupta5cda2252016-12-29 18:44:26 +05309591
9592/*
9593 * <ini>
9594 * gper_roam_high_rate_th - Rate at which PER based roam will stop
9595 * @Min: 1 Mbps
9596 * @Max: 0xffffffff
9597 * @Default: 40 Mbps
9598 *
9599 * This ini is used to define the data rate in mbps*10 at which FW will stop
9600 * monitoring the traffic for PER based roam.
9601 *
9602 * Related: gper_roam_enabled, gper_roam_low_rate_th,
9603 * gper_roam_th_percent, gper_roam_rest_time
9604 *
9605 * Supported Feature: LFR-3.0
9606 *
9607 * Usage: Internal
9608 *
9609 * </ini>
9610 */
9611#define CFG_PER_ROAM_CONFIG_HIGH_RATE_TH_NAME "gper_roam_high_rate_th"
9612#define CFG_PER_ROAM_CONFIG_HIGH_RATE_TH_MIN (10)
9613#define CFG_PER_ROAM_CONFIG_HIGH_RATE_TH_MAX (0xffffffff)
9614#define CFG_PER_ROAM_CONFIG_HIGH_RATE_TH_DEFAULT (400)
9615
9616/*
9617 * <ini>
9618 * gper_roam_low_rate_th - Rate at which FW starts considering traffic for PER
9619 * based roam.
9620 *
9621 * @Min: 1 Mbps
9622 * @Max: 0xffffffff
9623 * @Default: 20 Mbps
9624 *
9625 * This ini is used to define the rate in mbps*10 at which FW starts considering
9626 * traffic for PER based roam, if gper_roam_th_percent of data is below this
9627 * rate, FW will issue a roam scan.
9628 *
9629 * Related: gper_roam_enabled, gper_roam_high_rate_th,
9630 * gper_roam_th_percent, gper_roam_rest_time
9631 *
9632 * Supported Feature: LFR-3.0
9633 *
9634 * Usage: Internal
9635 *
9636 * </ini>
9637 */
9638#define CFG_PER_ROAM_CONFIG_LOW_RATE_TH_NAME "gper_roam_low_rate_th"
9639#define CFG_PER_ROAM_CONFIG_LOW_RATE_TH_MIN (10)
9640#define CFG_PER_ROAM_CONFIG_LOW_RATE_TH_MAX (0xffffffff)
9641#define CFG_PER_ROAM_CONFIG_LOW_RATE_TH_DEFAULT (200)
9642
9643/*
9644 * <ini>
9645 * gper_roam_th_percent - Percentage at which FW will issue a roam scan if
9646 * traffic is below gper_roam_low_rate_th rate.
9647 *
9648 * @Min: 10%
9649 * @Max: 100%
9650 * @Default: 60%
9651 *
9652 * This ini is used to define the percentage at which FW will issue a roam scan
9653 * if traffic is below gper_roam_low_rate_th rate.
9654 *
9655 * Related: gper_roam_enabled, gper_roam_high_rate_th,
9656 * gper_roam_high_rate_th, gper_roam_rest_time
9657 *
9658 * Supported Feature: LFR-3.0
9659 *
9660 * Usage: Internal
9661 *
9662 * </ini>
9663 */
9664#define CFG_PER_ROAM_CONFIG_RATE_TH_PERCENT_NAME "gper_roam_th_percent"
9665#define CFG_PER_ROAM_CONFIG_RATE_TH_PERCENT_MIN (10)
9666#define CFG_PER_ROAM_CONFIG_RATE_TH_PERCENT_MAX (100)
9667#define CFG_PER_ROAM_CONFIG_RATE_TH_PERCENT_DEFAULT (60)
9668
9669/*
9670 * <ini>
9671 * gper_roam_rest_time - Time for which FW will wait once it issues a
9672 * roam scan.
9673 *
9674 * @Min: 10 seconds
9675 * @Max: 3600 seconds
9676 * @Default: 300 seconds
9677 *
9678 * This ini is used to define the time for which FW will wait once it issues a
9679 * PER based roam scan.
9680 *
9681 * Related: gper_roam_enabled, gper_roam_high_rate_th,
9682 * gper_roam_high_rate_th, gper_roam_th_percent
9683 *
9684 * Supported Feature: LFR-3.0
9685 *
9686 * Usage: Internal
9687 *
9688 * </ini>
9689 */
9690#define CFG_PER_ROAM_REST_TIME_NAME "gper_roam_rest_time"
9691#define CFG_PER_ROAM_REST_TIME_MIN (10)
9692#define CFG_PER_ROAM_REST_TIME_MAX (3600)
9693#define CFG_PER_ROAM_REST_TIME_DEFAULT (300)
9694
9695/*
Selvaraj, Sridhar4f684bb2017-01-19 15:59:23 +05309696 * <ini>
9697 * g_enable_bcast_probe_rsp - Enable Broadcast probe response.
9698 * @Min: 0
9699 * @Max: 1
Selvaraj, Sridharca03ad22017-04-28 11:59:55 +05309700 * @Default: 1
Selvaraj, Sridhar4f684bb2017-01-19 15:59:23 +05309701 *
9702 * This ini is used to enable/disable broadcast probe response
9703 *
9704 * Related: None
9705 *
9706 * Supported Feature: FILS
9707 *
9708 * Usage: External
9709 *
9710 * </ini>
9711 */
9712#define CFG_ENABLE_BCAST_PROBE_RESP_NAME "g_enable_bcast_probe_rsp"
9713#define CFG_ENABLE_BCAST_PROBE_RESP_MIN (0)
9714#define CFG_ENABLE_BCAST_PROBE_RESP_MAX (1)
Selvaraj, Sridharca03ad22017-04-28 11:59:55 +05309715#define CFG_ENABLE_BCAST_PROBE_RESP_DEFAULT (1)
Selvaraj, Sridhar4f684bb2017-01-19 15:59:23 +05309716
Srinivas Girigowda70e169a2017-03-07 23:55:57 -08009717/**
9718 * arp_ac_category - ARP access category
9719 * @Min: 0
9720 * @Max: 3
9721 * @Default: 3
9722 *
9723 * Firmware by default categorizes ARP packets with VOICE TID.
9724 * This ini shall be used to override the default configuration.
9725 * Access category enums are referenced in ieee80211_common.h
9726 * WME_AC_BE = 0 (Best effort)
9727 * WME_AC_BK = 1 (Background)
9728 * WME_AC_VI = 2 (Video)
9729 * WME_AC_VO = 3 (Voice)
9730 *
9731 * Related: none
9732 *
9733 * Usage: Internal/External
9734 *
9735 * </ini>
9736 */
9737#define CFG_ARP_AC_CATEGORY "arp_ac_category"
9738#define CFG_ARP_AC_CATEGORY_MIN (0)
9739#define CFG_ARP_AC_CATEGORY_MAX (3)
9740#define CFG_ARP_AC_CATEGORY_DEFAULT (3)
9741
Selvaraj, Sridhar4f684bb2017-01-19 15:59:23 +05309742/*
Dustin Brown13995f02017-01-12 15:38:42 -08009743 * <ini>
Hanumanth Reddy Pothulae87621b2017-04-12 20:53:35 +05309744 * gActiveUcBpfMode - Control UC active BPF mode
Dustin Brown13995f02017-01-12 15:38:42 -08009745 * @Min: 0 (disabled)
9746 * @Max: 2 (adaptive)
9747 * @Default: 0 (disabled)
9748 *
Hanumanth Reddy Pothulae87621b2017-04-12 20:53:35 +05309749 * This config item controls UC BPF in active mode. There are 3 modes:
Dustin Brown13995f02017-01-12 15:38:42 -08009750 * 0) disabled - BPF is disabled in active mode
9751 * 1) enabled - BPF is enabled for all packets in active mode
9752 * 2) adaptive - BPF is enabled for packets up to some throughput threshold
9753 *
Hanumanth Reddy Pothulae87621b2017-04-12 20:53:35 +05309754 * Related: gActiveMcBcBpfMode
Dustin Brown13995f02017-01-12 15:38:42 -08009755 *
9756 * Supported Feature: Active Mode BPF
9757 *
9758 * Usage: Internal/External
9759 * </ini>
9760 */
Hanumanth Reddy Pothulae87621b2017-04-12 20:53:35 +05309761#define CFG_ACTIVE_UC_BPF_MODE_NAME "gActiveUcBpfMode"
9762#define CFG_ACTIVE_UC_BPF_MODE_MIN (ACTIVE_BPF_DISABLED)
9763#define CFG_ACTIVE_UC_BPF_MODE_MAX (ACTIVE_BPF_MODE_COUNT - 1)
9764#define CFG_ACTIVE_UC_BPF_MODE_DEFAULT (ACTIVE_BPF_DISABLED)
9765
9766/*
9767 * <ini>
9768 * gActiveMcBcBpfMode - Control MC/BC active BPF mode
9769 * @Min: 0 (disabled)
9770 * @Max: 2 (adaptive)
9771 * @Default: 0 (disabled)
9772 *
9773 * This config item controls MC/BC BPF in active mode. There are 3 modes:
9774 * 0) disabled - BPF is disabled in active mode
9775 * 1) enabled - BPF is enabled for all packets in active mode
9776 * 2) adaptive - BPF is enabled for packets up to some throughput threshold
9777 *
9778 * Related: gActiveUcBpfMode
9779 *
9780 * Supported Feature: Active Mode BPF
9781 *
9782 * Usage: Internal/External
9783 * </ini>
9784 */
9785#define CFG_ACTIVE_MC_BC_BPF_MODE_NAME "gActiveMcBcBpfMode"
9786#define CFG_ACTIVE_MC_BC_BPF_MODE_MIN (ACTIVE_BPF_DISABLED)
9787#define CFG_ACTIVE_MC_BC_BPF_MODE_MAX (ACTIVE_BPF_MODE_COUNT - 1)
9788#define CFG_ACTIVE_MC_BC_BPF_MODE_DEFAULT (ACTIVE_BPF_DISABLED)
Dustin Brown13995f02017-01-12 15:38:42 -08009789
Krishna Kumaar Natarajan90bb6f12017-03-03 21:05:52 -08009790#ifdef WLAN_FEATURE_11AX
9791/* 11AX related INI configuration */
9792/*
9793 * <ini>
9794 * enable_ul_mimo- Enable UL MIMO.
9795 * @Min: 0
9796 * @Max: 1
9797 * @Default: 0
9798 *
9799 * This ini is used to enable or disable UL MIMO.
9800 *
9801 * Related: NA
9802 *
9803 * Supported Feature: 11AX
9804 *
9805 * Usage: External
9806 *
9807 * </ini>
9808 */
9809
9810#define CFG_ENABLE_UL_MIMO_NAME "enable_ul_mimo"
9811#define CFG_ENABLE_UL_MIMO_MIN (0)
9812#define CFG_ENABLE_UL_MIMO_MAX (1)
9813#define CFG_ENABLE_UL_MIMO_DEFAULT (0)
9814
9815/*
9816 * <ini>
9817 * enable_ul_ofdma- Enable UL OFDMA.
9818 * @Min: 0
9819 * @Max: 1
9820 * @Default: 0
9821 *
9822 * This ini is used to enable or disable UL OFDMA.
9823 *
9824 * Related: NA
9825 *
9826 * Supported Feature: 11AX
9827 *
9828 * Usage: External
9829 *
9830 * </ini>
9831 */
9832#define CFG_ENABLE_UL_OFDMA_NAME "enable_ul_ofdma"
9833#define CFG_ENABLE_UL_OFDMA_MIN (0)
9834#define CFG_ENABLE_UL_OFDMA_MAX (1)
9835#define CFG_ENABLE_UL_OFDMA_DEFAULT (0)
9836
9837#endif /* WLAN_FEATURE_11AX */
9838
Dustin Brownab1364a2017-03-27 16:59:08 -07009839/**
9840 * enum l1ss_sleep_allowed - when L1ss Sleep is allowed on capable platforms
9841 * @L1SS_SLEEP_ALLOWED_NEVER: never allow L1ss Sleep
9842 * @L1SS_SLEEP_ALLOWED_STA_CONNECTED: allow in station mode (connected)
9843 * @L1SS_SLEEP_ALLOWED_STA_DISCONNECTED: allow in station mode (disconnected)
9844 * @L1SS_SLEEP_ALLOWED_ALWAYS: always allow L1ss Sleep
9845 */
9846enum l1ss_sleep_allowed {
9847 L1SS_SLEEP_ALLOWED_NEVER = 0,
9848 L1SS_SLEEP_ALLOWED_STA_CONNECTED = BIT(0),
9849 L1SS_SLEEP_ALLOWED_STA_DISCONNECTED = BIT(1),
9850 L1SS_SLEEP_ALLOWED_ALWAYS = 0xff
9851};
9852
9853/*
9854 * <ini>
9855 * gL1ssSleepAllowed - Control when L1ss Sleep is allowed on capable platforms
9856 * @Min: 0 (disabled)
9857 * @Max: 255 (always allow)
9858 * @Default: 1 (station mode - connected)
9859 *
9860 * This config item controls when L1ss Sleep is allowed on capable platforms.
9861 * The default is connected station mode to support DTIM power savings.
9862 * 0) never allow
9863 * 1) station mode (connected)
9864 * 2) station mode (disconnected)
9865 * 255) always allow
9866 *
9867 * Related: N/A
9868 *
9869 * Supported Feature: L1ss Sleep
9870 *
9871 * Usage: Internal/External
9872 * </ini>
9873 */
9874#define CFG_L1SS_SLEEP_ALLOWED_NAME "gL1ssSleepAllowed"
9875#define CFG_L1SS_SLEEP_ALLOWED_MIN (L1SS_SLEEP_ALLOWED_NEVER)
9876#define CFG_L1SS_SLEEP_ALLOWED_MAX (L1SS_SLEEP_ALLOWED_ALWAYS)
9877#define CFG_L1SS_SLEEP_ALLOWED_DEFAULT (L1SS_SLEEP_ALLOWED_STA_CONNECTED)
9878
Krishna Kumaar Natarajan90bb6f12017-03-03 21:05:52 -08009879/*
Jeff Johnson12a744b2017-04-04 08:19:37 -07009880 * <ini>
9881 * gEnableANI - Enable Adaptive Noise Immunity
9882 * @Min: 0
9883 * @Max: 1
9884 * @Default: 1
9885 *
9886 * This ini is used to enable or disable Adaptive Noise Immunity.
9887 *
9888 * Related: None
9889 *
9890 * Supported Feature: ANI
9891 *
9892 * Usage: External
9893 *
9894 * </ini>
9895 */
9896#define CFG_ENABLE_ANI_NAME "gEnableANI"
9897#define CFG_ENABLE_ANI_MIN (0)
9898#define CFG_ENABLE_ANI_MAX (1)
9899#define CFG_ENABLE_ANI_DEFAULT (1)
9900
9901/*
Selvaraj, Sridhara521aab2017-03-25 16:42:34 +05309902 * <ini>
9903 * g_qcn_ie_support - QCN IE Support
9904 * @Min: 0 (disabled)
9905 * @Max: 1 (enabled)
Selvaraj, Sridharca03ad22017-04-28 11:59:55 +05309906 * @Default: 1 (enabled)
Selvaraj, Sridhara521aab2017-03-25 16:42:34 +05309907 *
9908 * This config item is used to support QCN IE in probe/assoc/reassoc request
9909 * for STA mode. QCN IE support is not added for SAP mode.
9910 *
9911 * Related: N/A
9912 *
9913 * Supported Feature: N/A
9914 *
9915 * Usage: Internal/External
9916 *
9917 * </ini>
9918 */
9919#define CFG_QCN_IE_SUPPORT_NAME "g_qcn_ie_support"
9920#define CFG_QCN_IE_SUPPORT_MIN 0
9921#define CFG_QCN_IE_SUPPORT_MAX 1
Selvaraj, Sridharca03ad22017-04-28 11:59:55 +05309922#define CFG_QCN_IE_SUPPORT_DEFAULT 1
Selvaraj, Sridhara521aab2017-03-25 16:42:34 +05309923
Dustin Brown7f939932017-05-18 15:02:17 -07009924/*
9925 * <ini>
9926 * gTimerMultiplier - Scale QDF timers by this value
9927 * @Min: 1
9928 * @Max: 0xFFFFFFFF
9929 * @Default: 1 (100 for emulation)
9930 *
9931 * To assist in debugging emulation setups, scale QDF timers by this factor.
9932 *
9933 * @E.g.
9934 * # QDF timers expire in real time
9935 * gTimerMultiplier=1
9936 * # QDF timers expire after 100 times real time
9937 * gTimerMultiplier=100
9938 *
9939 * Related: N/A
9940 *
9941 * Usage: Internal
9942 *
9943 * </ini>
9944 */
9945#define CFG_TIMER_MULTIPLIER_NAME "gTimerMultiplier"
9946#define CFG_TIMER_MULTIPLIER_MIN (1)
9947#define CFG_TIMER_MULTIPLIER_MAX (0xFFFFFFFF)
9948#ifdef QCA_WIFI_NAPIER_EMULATION
9949#define CFG_TIMER_MULTIPLIER_DEFAULT (100)
9950#else
9951#define CFG_TIMER_MULTIPLIER_DEFAULT (1)
9952#endif
9953
Amar Singhal5cccafe2017-02-15 12:42:58 -08009954/* enable_reg_offload - enable regulatory offload
9955 * @Min: 0
9956 * @Max: 1
9957 * @Default: 1
9958 *
9959 * This ini is used to enable or disable reg offload
9960 *
9961 * Related: None
9962 *
9963 * Supported Feature: reg offload
9964 *
9965 * Usage: External
9966 *
9967 * </ini>
9968 */
9969#define CFG_ENABLE_REG_OFFLOAD_NAME "enable_reg_offload"
9970#define CFG_ENABLE_REG_OFFLOAD_MIN (0)
9971#define CFG_ENABLE_REG_OFFLOAD_MAX (1)
Kiran Kumar Lokerea3de2262017-04-12 12:15:04 -07009972#define CFG_ENABLE_REG_OFFLOAD_DEFAULT (1)
Amar Singhal5cccafe2017-02-15 12:42:58 -08009973
Selvaraj, Sridhara521aab2017-03-25 16:42:34 +05309974/*
Selvaraj, Sridhar97ce6582017-01-20 17:06:34 +05309975 * <ini>
9976 * g_fils_max_chan_guard_time - Set maximum channel guard time(ms)
9977 * @Min: 0
9978 * @Max: 10
9979 * @Default: 0
9980 *
9981 * This ini is used to set maximum channel guard time in milli seconds
9982 *
9983 * Related: None
9984 *
9985 * Supported Feature: FILS
9986 *
9987 * Usage: External
9988 *
9989 * </ini>
9990 */
9991#define CFG_FILS_MAX_CHAN_GUARD_TIME_NAME "g_fils_max_chan_guard_time"
9992#define CFG_FILS_MAX_CHAN_GUARD_TIME_MIN (0)
9993#define CFG_FILS_MAX_CHAN_GUARD_TIME_MAX (10)
9994#define CFG_FILS_MAX_CHAN_GUARD_TIME_DEFAULT (0)
9995
9996/*
Jayachandran Sreekumaran68c952c2017-04-24 12:42:03 +05309997 * enum hdd_external_acs_policy - External ACS policy
9998 * @HDD_EXTERNAL_ACS_PCL_PREFERRED -Preferable for ACS to select a
9999 * channel with non-zero pcl weight.
10000 * @HDD_EXTERNAL_ACS_PCL_MANDATORY -Mandatory for ACS to select a
10001 * channel with non-zero pcl weight.
10002 *
10003 * enum hdd_external_acs_policy is used to select the ACS policy.
10004 *
10005 */
10006enum hdd_external_acs_policy {
10007 HDD_EXTERNAL_ACS_PCL_PREFERRED = 0,
10008 HDD_EXTERNAL_ACS_PCL_MANDATORY = 1,
10009};
10010
10011/*
10012 * <ini>
10013 * external_acs_policy - External ACS policy control
10014 * @Min: 0
10015 * @Max: 1
10016 * @Default: 0
10017 *
10018 * Values are per enum hdd_external_acs_policy.
10019 *
10020 * This ini is used to control the external ACS policy.
10021 *
10022 * Related: None
10023 *
10024 * Supported Feature: ACS
10025 *
10026 * Usage: Internal/External
10027 *
10028 * </ini>
10029 */
10030#define CFG_EXTERNAL_ACS_POLICY "acs_policy"
10031#define CFG_EXTERNAL_ACS_POLICY_MIN (HDD_EXTERNAL_ACS_PCL_PREFERRED)
10032#define CFG_EXTERNAL_ACS_POLICY_MAX (HDD_EXTERNAL_ACS_PCL_MANDATORY)
10033#define CFG_EXTERNAL_ACS_POLICY_DEFAULT (HDD_EXTERNAL_ACS_PCL_PREFERRED)
10034
10035/*
10036 * enum hdd_external_acs_policyl - Preferred freq band for external ACS
10037 * @HDD_EXTERNAL_ACS_FREQ_BAND_24GHZ -2.4GHz band
10038 * @HDD_EXTERNAL_ACS_FREQ_BAND_5GHZ -5GHz band
10039 *
10040 * enum hdd_external_acs_freq_band is used to select the freq band for ACS.
10041 *
10042 */
10043enum hdd_external_acs_freq_band {
10044 HDD_EXTERNAL_ACS_FREQ_BAND_24GHZ = 0,
10045 HDD_EXTERNAL_ACS_FREQ_BAND_5GHZ = 1,
10046};
10047
10048/*
10049 * <ini>
10050 * external_acs_freq_band - External ACS freq band
10051 * @Min: 0
10052 * @Max: 1
10053 * @Default: 0
10054 *
10055 * Values are per enum hdd_external_acs_freq_band.
10056 *
10057 * This ini is used to select the ACS freq band. Currently
10058 * the external ACS module doesn't support channels from
10059 * both the bands. Once multiple band support is added in
10060 * ICM, this ini can be removed
10061 *
10062 * Related: None
10063 *
10064 * Supported Feature: ACS
10065 *
10066 * Usage: Internal/External
10067 *
10068 * </ini>
10069 */
10070#define CFG_EXTERNAL_ACS_FREQ_BAND "acs_freq_band"
10071#define CFG_EXTERNAL_ACS_FREQ_BAND_MIN (HDD_EXTERNAL_ACS_FREQ_BAND_24GHZ)
10072#define CFG_EXTERNAL_ACS_FREQ_BAND_MAX (HDD_EXTERNAL_ACS_FREQ_BAND_5GHZ)
10073#define CFG_EXTERNAL_ACS_FREQ_BAND_DEFAULT (HDD_EXTERNAL_ACS_FREQ_BAND_24GHZ)
10074
10075/*
Krishna Kumaar Natarajan90bb6f12017-03-03 21:05:52 -080010076 * Type declarations
10077 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010078struct hdd_config {
10079 /* Bitmap to track what is explicitly configured */
10080 DECLARE_BITMAP(bExplicitCfg, MAX_CFG_INI_ITEMS);
10081
10082 /* Config parameters */
10083 uint32_t RTSThreshold;
10084 uint32_t FragmentationThreshold;
10085 uint8_t OperatingChannel;
10086 bool ShortSlotTimeEnabled;
10087 bool Is11dSupportEnabled;
10088 bool Is11hSupportEnabled;
10089 bool fSupplicantCountryCodeHasPriority;
10090 uint32_t HeartbeatThresh24;
10091 char PowerUsageControl[4];
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010092 bool fIsImpsEnabled;
10093 bool is_ps_enabled;
Kiran Kumar Lokere0ac679c2016-11-17 17:43:36 -080010094 uint32_t auto_bmps_timer_val;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010095 uint32_t nBmpsModListenInterval;
10096 uint32_t nBmpsMaxListenInterval;
10097 uint32_t nBmpsMinListenInterval;
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010098 enum hdd_dot11_mode dot11Mode;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010099 uint32_t nChannelBondingMode24GHz;
10100 uint32_t nChannelBondingMode5GHz;
10101 uint32_t MaxRxAmpduFactor;
10102 uint16_t TxRate;
10103 uint32_t ShortGI20MhzEnable;
10104 uint32_t ScanResultAgeCount;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010105 uint8_t nRssiCatGap;
10106 bool fIsShortPreamble;
Anurag Chouhan6d760662016-02-20 16:05:43 +053010107 struct qdf_mac_addr IbssBssid;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010108 uint32_t AdHocChannel5G;
10109 uint32_t AdHocChannel24G;
10110 uint8_t intfAddrMask;
Anurag Chouhan6d760662016-02-20 16:05:43 +053010111 struct qdf_mac_addr intfMacAddr[QDF_MAX_CONCURRENCY_PERSONA];
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010112
10113 bool apUapsdEnabled;
10114 bool apRandomBssidEnabled;
10115 bool apProtEnabled;
10116 uint16_t apProtection;
10117 bool apOBSSProtEnabled;
10118 bool apDisableIntraBssFwd;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010119 uint32_t nAPAutoShutOff;
10120 uint8_t enableLTECoex;
10121 uint32_t apKeepAlivePeriod;
10122 uint32_t goKeepAlivePeriod;
Dustin Brownb6b0f182017-03-08 13:08:27 -080010123 enum station_keepalive_method sta_keepalive_method;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010124 uint32_t apLinkMonitorPeriod;
10125 uint32_t goLinkMonitorPeriod;
10126 uint32_t nBeaconInterval;
10127 uint8_t nTxPowerCap; /* In dBm */
Padma, Santhosh Kumar29df3622016-08-16 19:15:16 +053010128 bool allow_tpc_from_ap;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010129 bool fIsLowGainOverride;
10130 uint8_t disablePacketFilter;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010131 bool fRrmEnable;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010132 uint16_t nRrmRandnIntvl;
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -080010133 /* length includes separator */
10134 char rm_capability[3 * DOT11F_IE_RRMENABLEDCAP_MAX_LEN];
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010135
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010136 /* Vowifi 11r params */
10137 bool fFTResourceReqSupported;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010138
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010139 uint16_t nNeighborScanPeriod;
10140 uint8_t nNeighborLookupRssiThreshold;
10141 uint8_t delay_before_vdev_stop;
10142 uint8_t nOpportunisticThresholdDiff;
10143 uint8_t nRoamRescanRssiDiff;
10144 uint8_t neighborScanChanList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
10145 uint16_t nNeighborScanMinChanTime;
10146 uint16_t nNeighborScanMaxChanTime;
10147 uint16_t nMaxNeighborReqTries;
10148 uint16_t nNeighborResultsRefreshPeriod;
10149 uint16_t nEmptyScanRefreshPeriod;
10150 uint8_t nRoamBmissFirstBcnt;
10151 uint8_t nRoamBmissFinalBcnt;
10152 uint8_t nRoamBeaconRssiWeight;
10153 uint32_t nhi_rssi_scan_max_count;
10154 uint32_t nhi_rssi_scan_rssi_delta;
10155 uint32_t nhi_rssi_scan_delay;
10156 int32_t nhi_rssi_scan_rssi_ub;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010157
10158 /* Additional Handoff params */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010159 uint16_t nVccRssiTrigger;
10160 uint32_t nVccUlMacLossThreshold;
10161
10162 uint32_t nPassiveMinChnTime; /* in units of milliseconds */
10163 uint32_t nPassiveMaxChnTime; /* in units of milliseconds */
10164 uint32_t nActiveMinChnTime; /* in units of milliseconds */
10165 uint32_t nActiveMaxChnTime; /* in units of milliseconds */
10166
10167 uint32_t nInitialDwellTime; /* in units of milliseconds */
10168 bool initial_scan_no_dfs_chnl;
10169
10170#ifdef WLAN_AP_STA_CONCURRENCY
10171 uint32_t nPassiveMinChnTimeConc; /* in units of milliseconds */
10172 uint32_t nPassiveMaxChnTimeConc; /* in units of milliseconds */
10173 uint32_t nActiveMinChnTimeConc; /* in units of milliseconds */
10174 uint32_t nActiveMaxChnTimeConc; /* in units of milliseconds */
10175 uint32_t nRestTimeConc; /* in units of milliseconds */
Agrawal Ashish17bb3902016-05-05 13:29:40 +053010176 /* In units of milliseconds */
10177 uint32_t min_rest_time_conc;
10178 /* In units of milliseconds */
10179 uint32_t idle_time_conc;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010180#endif
10181
10182 uint8_t nMaxPsPoll;
10183
10184 uint8_t nRssiFilterPeriod;
10185 bool fIgnoreDtim;
10186 uint8_t fMaxLIModulatedDTIM;
10187
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010188 uint8_t fEnableFwHeartBeatMonitoring;
10189 uint8_t fEnableFwBeaconFiltering;
10190 bool fEnableFwRssiMonitoring;
10191 bool mcc_rts_cts_prot_enable;
10192 bool mcc_bcast_prob_resp_enable;
10193 uint8_t nDataInactivityTimeout;
Mukul Sharmaed92f2f2017-04-20 00:06:28 +053010194 uint8_t wow_data_inactivity_timeout;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010195
10196 /* WMM QoS Configuration */
Srinivas Girigowdaea32d6a2017-03-25 00:03:12 -070010197 enum hdd_wmm_user_mode WmmMode;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010198 bool b80211eIsEnabled;
10199 uint8_t UapsdMask; /* what ACs to setup U-APSD for at assoc */
10200 uint32_t InfraUapsdVoSrvIntv;
10201 uint32_t InfraUapsdVoSuspIntv;
10202 uint32_t InfraUapsdViSrvIntv;
10203 uint32_t InfraUapsdViSuspIntv;
10204 uint32_t InfraUapsdBeSrvIntv;
10205 uint32_t InfraUapsdBeSuspIntv;
10206 uint32_t InfraUapsdBkSrvIntv;
10207 uint32_t InfraUapsdBkSuspIntv;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010208 bool isFastRoamIniFeatureEnabled;
10209 bool MAWCEnabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010210#ifdef FEATURE_WLAN_ESE
10211 uint32_t InfraInactivityInterval;
10212 bool isEseIniFeatureEnabled;
10213#endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010214 bool isFastTransitionEnabled;
10215 uint8_t RoamRssiDiff;
10216 bool isWESModeEnabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010217 bool isOkcIniFeatureEnabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010218 bool isRoamOffloadScanEnabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010219 bool bImplicitQosEnabled;
10220
10221 /* default TSPEC parameters for AC_VO */
10222 sme_QosWmmDirType InfraDirAcVo;
10223 uint16_t InfraNomMsduSizeAcVo;
10224 uint32_t InfraMeanDataRateAcVo;
10225 uint32_t InfraMinPhyRateAcVo;
10226 uint16_t InfraSbaAcVo;
10227
10228 /* default TSPEC parameters for AC_VI */
10229 sme_QosWmmDirType InfraDirAcVi;
10230 uint16_t InfraNomMsduSizeAcVi;
10231 uint32_t InfraMeanDataRateAcVi;
10232 uint32_t InfraMinPhyRateAcVi;
10233 uint16_t InfraSbaAcVi;
10234
10235 /* default TSPEC parameters for AC_BE */
10236 sme_QosWmmDirType InfraDirAcBe;
10237 uint16_t InfraNomMsduSizeAcBe;
10238 uint32_t InfraMeanDataRateAcBe;
10239 uint32_t InfraMinPhyRateAcBe;
10240 uint16_t InfraSbaAcBe;
10241
10242 /* default TSPEC parameters for AC_BK */
10243 sme_QosWmmDirType InfraDirAcBk;
10244 uint16_t InfraNomMsduSizeAcBk;
10245 uint32_t InfraMeanDataRateAcBk;
10246 uint32_t InfraMinPhyRateAcBk;
10247 uint16_t InfraSbaAcBk;
10248
10249 uint32_t DelayedTriggerFrmInt;
10250
10251 /* Wowl pattern */
10252 char wowlPattern[1024];
10253
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010254 /* Control for Replay counetr. value 1 means
10255 * single replay counter for all TID
Jeff Johnsondcd2cf92017-01-12 10:44:23 -080010256 */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010257 bool bSingleTidRc;
10258 uint8_t mcastBcastFilterSetting;
10259 bool fhostArpOffload;
Dustin Brown1224e212017-05-12 14:02:12 -070010260 enum pmo_hw_filter_mode hw_filter_mode;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010261 bool ssdp;
Houston Hoffmanc7c69f02016-03-24 22:45:52 -070010262
10263#ifdef FEATURE_RUNTIME_PM
10264 bool runtime_pm;
10265 uint32_t runtime_pm_delay;
10266#endif
10267
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010268#ifdef FEATURE_WLAN_RA_FILTERING
10269 bool IsRArateLimitEnabled;
10270 uint16_t RArateLimitInterval;
10271#endif
10272#ifdef FEATURE_WLAN_SCAN_PNO
10273 bool PnoOffload;
10274#endif
10275 bool fhostNSOffload;
10276 bool burstSizeDefinition;
10277 uint8_t tsInfoAckPolicy;
10278
10279 /* RF Settling Time Clock */
10280 uint32_t rfSettlingTimeUs;
10281
10282 uint8_t dynamicPsPollValue;
10283 bool AddTSWhenACMIsOff;
10284 bool fValidateScanList;
10285
10286 uint32_t infraStaKeepAlivePeriod;
10287 uint8_t nNullDataApRespTimeout;
10288 uint8_t nBandCapability;
10289
10290 uint32_t apDataAvailPollPeriodInMs;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010291 bool teleBcnWakeupEn;
10292
Anurag Chouhanf04e84f2016-03-03 10:12:12 +053010293/* QDF Trace Control*/
10294 uint16_t qdf_trace_enable_wdi;
10295 uint16_t qdf_trace_enable_hdd;
10296 uint16_t qdf_trace_enable_sme;
10297 uint16_t qdf_trace_enable_pe;
10298 uint16_t qdf_trace_enable_pmc;
10299 uint16_t qdf_trace_enable_wma;
10300 uint16_t qdf_trace_enable_sys;
10301 uint16_t qdf_trace_enable_qdf;
10302 uint16_t qdf_trace_enable_sap;
10303 uint16_t qdf_trace_enable_hdd_sap;
10304 uint16_t qdf_trace_enable_bmi;
10305 uint16_t qdf_trace_enable_cfg;
Bhargav Shah480a90f2015-06-24 15:10:14 +053010306 uint16_t cfd_trace_enable_txrx;
Anurag Chouhanf04e84f2016-03-03 10:12:12 +053010307 uint16_t qdf_trace_enable_htc;
10308 uint16_t qdf_trace_enable_hif;
10309 uint16_t qdf_trace_enable_hdd_sap_data;
10310 uint16_t qdf_trace_enable_hdd_data;
10311 uint16_t qdf_trace_enable_epping;
10312 uint16_t qdf_trace_enable_qdf_devices;
Naveen Rawat7df31862017-03-01 17:09:30 -080010313 uint16_t qdf_trace_enable_wifi_pos;
Naveen Rawatf2b0dbd2017-03-27 10:00:15 -070010314 uint16_t qdf_trace_enable_nan;
Kiran Kumar Lokere798de7e2017-03-30 14:01:12 -070010315 uint16_t qdf_trace_enable_regulatory;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010316
10317 uint16_t nTeleBcnTransListenInterval;
10318 uint16_t nTeleBcnMaxListenInterval;
10319 uint16_t nTeleBcnTransLiNumIdleBeacons;
10320 uint16_t nTeleBcnMaxLiNumIdleBeacons;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010321 uint8_t enableBypass11d;
10322 uint8_t enableDFSChnlScan;
10323 uint8_t enable_dfs_pno_chnl_scan;
10324 uint8_t enableDynamicDTIM;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010325 uint8_t ShortGI40MhzEnable;
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010326 enum hdd_link_speed_rpt_type reportMaxLinkSpeed;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010327 int32_t linkSpeedRssiHigh;
10328 int32_t linkSpeedRssiMid;
10329 int32_t linkSpeedRssiLow;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010330 bool nRoamPrefer5GHz;
10331 bool nRoamIntraBand;
10332 uint8_t nProbes;
10333 uint16_t nRoamScanHomeAwayTime;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010334 uint8_t enableMCC;
10335 uint8_t allowMCCGODiffBI;
10336 bool isP2pDeviceAddrAdministrated;
10337 uint8_t thermalMitigationEnable;
10338 uint32_t throttlePeriod;
Poddar, Siddarth83905022016-04-16 17:56:08 -070010339 uint32_t throttle_dutycycle_level0;
10340 uint32_t throttle_dutycycle_level1;
10341 uint32_t throttle_dutycycle_level2;
10342 uint32_t throttle_dutycycle_level3;
Poddar, Siddarthb61cf642016-04-28 16:02:39 +053010343#if defined(CONFIG_HL_SUPPORT) && defined(QCA_BAD_PEER_TX_FLOW_CL)
10344 bool bad_peer_txctl_enable;
10345 uint32_t bad_peer_txctl_prd;
10346 uint32_t bad_peer_txctl_txq_lmt;
10347 uint32_t bad_peer_tgt_backoff;
10348 uint32_t bad_peer_tgt_report_prd;
10349 uint32_t bad_peer_cond_ieee80211b;
10350 uint32_t bad_peer_delta_ieee80211b;
10351 uint32_t bad_peer_pct_ieee80211b;
10352 uint32_t bad_peer_tput_ieee80211b;
10353 uint32_t bad_peer_limit_ieee80211b;
10354 uint32_t bad_peer_cond_ieee80211ag;
10355 uint32_t bad_peer_delta_ieee80211ag;
10356 uint32_t bad_peer_pct_ieee80211ag;
10357 uint32_t bad_peer_tput_ieee80211ag;
10358 uint32_t bad_peer_limit_ieee80211ag;
10359 uint32_t bad_peer_cond_ieee80211n;
10360 uint32_t bad_peer_delta_ieee80211n;
10361 uint32_t bad_peer_pct_ieee80211n;
10362 uint32_t bad_peer_tput_ieee80211n;
10363 uint32_t bad_peer_limit_ieee80211n;
10364 uint32_t bad_peer_cond_ieee80211ac;
10365 uint32_t bad_peer_delta_ieee80211ac;
10366 uint32_t bad_peer_pct_ieee80211ac;
10367 uint32_t bad_peer_tput_ieee80211ac;
10368 uint32_t bad_peer_limit_ieee80211ac;
10369#endif
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010370 uint8_t vhtChannelWidth;
10371 uint8_t vhtRxMCS;
10372 uint8_t vhtTxMCS;
10373 bool enableTxBF;
Kiran Kumar Lokere5302ab62015-12-16 16:03:16 -080010374 bool enable_txbf_sap_mode;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010375 uint8_t txBFCsnValue;
10376 bool enable_su_tx_bformer;
10377 uint8_t vhtRxMCS2x2;
10378 uint8_t vhtTxMCS2x2;
10379 bool enable2x2;
Kiran Kumar Lokere666bf852016-05-02 12:23:02 -070010380 uint32_t vdev_type_nss_2g;
10381 uint32_t vdev_type_nss_5g;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010382 bool txchainmask1x1;
10383 bool rxchainmask1x1;
10384 bool enableMuBformee;
10385 bool enableVhtpAid;
10386 bool enableVhtGid;
10387 bool enableTxBFin20MHz;
10388 uint8_t enableAmpduPs;
10389 uint8_t enableHtSmps;
10390 uint8_t htSmps;
10391 uint8_t enableModulatedDTIM;
10392 uint32_t fEnableMCAddrList;
10393 bool enableFirstScan2GOnly;
10394 bool skipDfsChnlInP2pSearch;
10395 bool ignoreDynamicDtimInP2pMode;
10396 bool enableRxSTBC;
10397 bool enableTxSTBC;
Krunal Sonia2c0e412017-05-04 14:12:41 +053010398 uint8_t enable_tx_ldpc;
10399 uint8_t enable_rx_ldpc;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010400 bool enable5gEBT;
10401#ifdef FEATURE_WLAN_TDLS
10402 bool fEnableTDLSSupport;
10403 bool fEnableTDLSImplicitTrigger;
10404 uint32_t fTDLSTxStatsPeriod;
10405 uint32_t fTDLSTxPacketThreshold;
10406 uint32_t fTDLSMaxDiscoveryAttempt;
Kabilan Kannanca670be2015-11-23 01:56:12 -080010407 uint32_t tdls_idle_timeout;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010408 uint32_t fTDLSIdlePacketThreshold;
10409 int32_t fTDLSRSSITriggerThreshold;
10410 int32_t fTDLSRSSITeardownThreshold;
10411 int32_t fTDLSRSSIDelta;
10412 uint32_t fTDLSUapsdMask; /* what ACs to setup U-APSD for TDLS */
10413 uint32_t fEnableTDLSBufferSta;
10414 uint32_t fEnableTDLSSleepSta;
10415 uint32_t fTDLSPuapsdInactivityTimer;
10416 uint32_t fTDLSRxFrameThreshold;
10417 uint32_t fTDLSPuapsdPTIWindow;
10418 uint32_t fTDLSPuapsdPTRTimeout;
10419 bool fTDLSExternalControl;
10420 uint32_t fEnableTDLSOffChannel;
10421 uint32_t fEnableTDLSWmmMode;
10422 uint8_t fTDLSPrefOffChanNum;
10423 uint8_t fTDLSPrefOffChanBandwidth;
10424 uint8_t enable_tdls_scan;
Kabilan Kannan421714b2015-11-23 04:44:59 -080010425 uint32_t tdls_peer_kickout_threshold;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010426#endif
10427#ifdef WLAN_SOFTAP_VSTA_FEATURE
10428 bool fEnableVSTASupport;
10429#endif
10430 uint32_t enableLpwrImgTransition;
10431 uint8_t scanAgingTimeout;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010432 uint8_t disableLDPCWithTxbfAP;
10433 uint8_t enableMCCAdaptiveScheduler;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010434 bool sapAllowAllChannel;
10435 uint8_t retryLimitZero;
10436 uint8_t retryLimitOne;
10437 uint8_t retryLimitTwo;
10438 bool enableSSR;
10439 uint32_t cfgMaxMediumTime;
10440 bool enableVhtFor24GHzBand;
Kapil Gupta4b2efbb2016-10-03 13:07:20 +053010441 bool enable_sap_vendor_vht;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010442 bool bFastRoamInConIniFeatureEnabled;
10443 bool fEnableAdaptRxDrain;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010444 bool enableIbssHeartBeatOffload;
10445 uint32_t antennaDiversity;
10446 bool fEnableSNRMonitoring;
10447 /*PNO related parameters */
10448#ifdef FEATURE_WLAN_SCAN_PNO
10449 bool configPNOScanSupport;
10450 uint32_t configPNOScanTimerRepeatValue;
Srinivas Girigowdabdc98162015-09-17 11:06:07 -070010451 uint32_t pno_slow_scan_multiplier;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010452#endif
10453 uint8_t isAmsduSupportInAMPDU;
10454 uint8_t nSelect5GHzMargin;
10455 uint8_t isCoalesingInIBSSAllowed;
10456
10457 /* IBSS Power Save related parameters */
10458 uint32_t ibssATIMWinSize;
10459 uint8_t isIbssPowerSaveAllowed;
10460 uint8_t isIbssPowerCollapseAllowed;
10461 uint8_t isIbssAwakeOnTxRx;
10462 uint32_t ibssInactivityCount;
10463 uint32_t ibssTxSpEndInactivityTime;
10464 uint32_t ibssPsWarmupTime;
10465 uint32_t ibssPs1RxChainInAtimEnable;
10466
10467 bool enable_ip_tcp_udp_checksum_offload;
Ashish Kumar Dhanotiyabb22e0d2017-04-03 10:44:14 +053010468 uint8_t enablePowersaveOffload;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010469 bool enablefwprint;
Yuanyuan Liu7a97b8f2017-01-27 10:42:52 -080010470 uint8_t enable_fw_log;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010471 uint8_t fVhtAmpduLenExponent;
10472 uint32_t vhtMpduLen;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010473 uint32_t IpaConfig;
10474 bool IpaClkScalingEnable;
10475 uint32_t IpaDescSize;
10476 uint32_t IpaHighBandwidthMbps;
10477 uint32_t IpaMediumBandwidthMbps;
10478 uint32_t IpaLowBandwidthMbps;
10479#ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
10480 uint32_t WlanMccToSccSwitchMode;
10481#endif
10482#ifdef FEATURE_WLAN_AUTO_SHUTDOWN
10483 uint32_t WlanAutoShutdown;
10484#endif
10485 uint8_t maxWoWFilters;
10486 uint8_t wowEnable;
10487 uint8_t maxNumberOfPeers;
10488 uint8_t disableDFSChSwitch;
10489 uint8_t enableDFSMasterCap;
10490 uint16_t thermalTempMinLevel0;
10491 uint16_t thermalTempMaxLevel0;
10492 uint16_t thermalTempMinLevel1;
10493 uint16_t thermalTempMaxLevel1;
10494 uint16_t thermalTempMinLevel2;
10495 uint16_t thermalTempMaxLevel2;
10496 uint16_t thermalTempMinLevel3;
10497 uint16_t thermalTempMaxLevel3;
10498 uint32_t TxPower2g;
10499 uint32_t TxPower5g;
10500 uint32_t gEnableDebugLog;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010501 bool fDfsPhyerrFilterOffload;
10502 uint8_t gSapPreferredChanLocation;
10503 uint8_t gDisableDfsJapanW53;
10504 bool gEnableOverLapCh;
10505 bool fRegChangeDefCountry;
Hong Shi417824f2017-01-12 02:31:14 +080010506 uint16_t max_ht_mcs_txdata;
Hong Shia9ef8712017-02-19 21:54:02 +080010507 bool disable_abg_rate_txdata;
Hong Shib90718f2017-02-20 00:57:22 +080010508 uint8_t rate_for_tx_mgmt;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010509#ifdef QCA_LL_LEGACY_TX_FLOW_CONTROL
10510 uint32_t TxFlowLowWaterMark;
10511 uint32_t TxFlowHighWaterMarkOffset;
10512 uint32_t TxFlowMaxQueueDepth;
10513 uint32_t TxLbwFlowLowWaterMark;
10514 uint32_t TxLbwFlowHighWaterMarkOffset;
10515 uint32_t TxLbwFlowMaxQueueDepth;
10516 uint32_t TxHbwFlowLowWaterMark;
10517 uint32_t TxHbwFlowHighWaterMarkOffset;
10518 uint32_t TxHbwFlowMaxQueueDepth;
10519#endif /* QCA_LL_LEGACY_TX_FLOW_CONTROL */
10520#ifdef QCA_LL_TX_FLOW_CONTROL_V2
10521 uint32_t TxFlowStopQueueThreshold;
10522 uint32_t TxFlowStartQueueOffset;
10523#endif
10524 uint8_t apMaxOffloadPeers;
10525 uint8_t apMaxOffloadReorderBuffs;
10526 bool advertiseConcurrentOperation;
10527 bool enableMemDeepSleep;
10528
10529 uint32_t defaultRateIndex24Ghz;
10530#ifdef MEMORY_DEBUG
10531 bool IsMemoryDebugSupportEnabled;
10532#endif
10533
10534 uint8_t allowDFSChannelRoam;
10535
10536 bool debugP2pRemainOnChannel;
10537
10538 bool enablePacketLog;
10539#ifdef MSM_PLATFORM
10540 uint32_t busBandwidthHighThreshold;
10541 uint32_t busBandwidthMediumThreshold;
10542 uint32_t busBandwidthLowThreshold;
10543 uint32_t busBandwidthComputeInterval;
Ravi Joshie2331e82015-07-01 18:18:54 -070010544 uint32_t enable_tcp_delack;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010545 uint32_t tcpDelackThresholdHigh;
10546 uint32_t tcpDelackThresholdLow;
Mohit Khannae71e2262015-11-10 09:37:24 -080010547 uint32_t tcp_tx_high_tput_thres;
Ravi Joshib89e7f72016-09-07 13:43:15 -070010548 uint32_t tcp_delack_timer_count;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010549#endif /* MSM_PLATFORM */
10550
10551 /* FW debug log parameters */
10552 uint32_t enableFwLogType;
10553 uint32_t enableFwLogLevel;
10554 uint8_t enableFwModuleLogLevel[FW_MODULE_LOG_LEVEL_STRING_LENGTH];
10555
Rajeev Kumar Sirasanagandla0be56df2016-09-08 19:19:47 +053010556 /* RTS profile parameter */
10557 uint32_t rts_profile;
10558
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010559#ifdef WLAN_FEATURE_11W
10560 uint32_t pmfSaQueryMaxRetries;
10561 uint32_t pmfSaQueryRetryInterval;
10562#endif
10563
10564 uint8_t gMaxConcurrentActiveSessions;
10565
10566 uint8_t ignoreCAC;
10567 bool IsSapDfsChSifsBurstEnabled;
10568
10569#ifdef FEATURE_GREEN_AP
10570 bool enableGreenAP;
Ryan Hsucb118cf2015-11-09 16:03:53 -080010571 bool enable_egap;
10572 uint32_t egap_feature_flag;
10573 uint32_t egap_inact_time;
10574 uint32_t egap_wait_time;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010575#endif
10576 uint8_t force_sap_acs;
10577 uint8_t force_sap_acs_st_ch;
10578 uint8_t force_sap_acs_end_ch;
10579
10580 int32_t dfsRadarPriMultiplier;
10581 uint8_t reorderOffloadSupport;
10582
10583#ifdef WLAN_FEATURE_ROAM_OFFLOAD
10584 bool isRoamOffloadEnabled;
10585#endif
10586
10587 uint32_t IpaUcTxBufCount;
10588 uint32_t IpaUcTxBufSize;
10589 uint32_t IpaUcRxIndRingCount;
10590 uint32_t IpaUcTxPartitionBase;
10591#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
10592 /* WLAN Logging */
10593 uint32_t wlanLoggingEnable;
Srinivas Girigowda8187e792017-03-03 11:50:59 -080010594 uint32_t wlanLoggingToConsole;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010595 uint32_t wlanLoggingNumBuf;
10596#endif /* WLAN_LOGGING_SOCK_SVC_ENABLE */
10597
Dustin Brown0a4cfeb2017-03-10 15:22:28 -080010598 uint8_t enableSifsBurst;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010599
10600#ifdef WLAN_FEATURE_LPSS
Komal Seelamc11bb222016-01-27 18:57:10 +053010601 bool enable_lpass_support;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010602#endif
10603#ifdef WLAN_FEATURE_NAN
10604 bool enable_nan_support;
10605#endif
10606 bool enableSelfRecovery;
10607#ifdef FEATURE_WLAN_FORCE_SAP_SCC
10608 uint8_t SapSccChanAvoidance;
10609#endif /* FEATURE_WLAN_FORCE_SAP_SCC */
10610
10611 bool enableSapSuspend;
10612
10613#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
10614 uint8_t extWowGotoSuspend;
10615 uint8_t extWowApp1WakeupPinNumber;
10616 uint8_t extWowApp2WakeupPinNumber;
10617 uint32_t extWowApp2KAInitPingInterval;
10618 uint32_t extWowApp2KAMinPingInterval;
10619 uint32_t extWowApp2KAMaxPingInterval;
10620 uint32_t extWowApp2KAIncPingInterval;
10621 uint16_t extWowApp2TcpSrcPort;
10622 uint16_t extWowApp2TcpDstPort;
10623 uint32_t extWowApp2TcpTxTimeout;
10624 uint32_t extWowApp2TcpRxTimeout;
10625#endif
10626 bool gEnableDeauthToDisassocMap;
10627#ifdef DHCP_SERVER_OFFLOAD
10628 bool enableDHCPServerOffload;
10629 uint32_t dhcpMaxNumClients;
10630 uint8_t dhcpServerIP[IPADDR_STRING_LENGTH];
10631#endif /* DHCP_SERVER_OFFLOAD */
10632 bool enable_mac_spoofing;
10633 uint8_t conc_custom_rule1;
10634 uint8_t conc_custom_rule2;
10635 uint8_t is_sta_connection_in_5gz_enabled;
10636 uint16_t p2p_listen_defer_interval;
10637 uint32_t sta_miracast_mcc_rest_time_val;
10638 bool is_ramdump_enabled;
10639#ifdef FEATURE_AP_MCC_CH_AVOIDANCE
10640 bool sap_channel_avoidance;
10641#endif /* FEATURE_AP_MCC_CH_AVOIDANCE */
10642 uint8_t sap_p2p_11ac_override;
10643 uint8_t sap_dot11mc;
10644 uint8_t prefer_non_dfs_on_radar;
10645 bool ignore_peer_erp_info;
10646 uint8_t multicast_host_fw_msgs;
10647 uint8_t conc_system_pref;
10648 bool sendDeauthBeforeCon;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010649 bool tso_enable;
10650 bool lro_enable;
Manjunathappa Prakashfff753c2016-09-01 19:34:56 -070010651 bool flow_steering_enable;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010652 bool active_mode_offload;
Rajeev Kumardd3bc602016-08-16 14:21:05 -070010653 bool bpf_packet_filter_enable;
Nitesh Shah61c10d92016-10-19 19:29:15 +053010654 /* parameter for defer timer for enabling TDLS on p2p listen */
10655 uint16_t tdls_enable_defer_time;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010656 uint32_t fine_time_meas_cap;
10657 uint8_t max_scan_count;
10658#ifdef WLAN_FEATURE_FASTPATH
10659 bool fastpath_enable;
10660#endif
10661 uint8_t dot11p_mode;
Nirav Shahbd36b062016-07-18 11:12:59 +053010662 uint8_t rx_mode;
10663 uint8_t cpu_map_list[CFG_RPS_RX_QUEUE_CPU_MAP_LIST_LEN];
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010664#ifdef FEATURE_WLAN_EXTSCAN
Manjeet Singh0f2ce5c2016-09-01 12:08:57 +053010665 bool extscan_enabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010666 uint32_t extscan_passive_max_chn_time;
10667 uint32_t extscan_passive_min_chn_time;
10668 uint32_t extscan_active_max_chn_time;
10669 uint32_t extscan_active_min_chn_time;
10670#endif
10671 bool ce_classify_enabled;
10672 uint32_t dual_mac_feature_disable;
Nitesh Shah50a3de12017-04-03 19:37:19 +053010673 uint8_t dbs_scan_selection[CFG_DBS_SCAN_PARAM_LENGTH];
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010674 bool tx_chain_mask_cck;
10675 uint8_t tx_chain_mask_1ss;
Jeff Johnsona89e25d2017-02-24 12:25:07 -080010676 bool smart_chainmask_enabled;
10677 bool alternative_chainmask_enabled;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010678 uint16_t self_gen_frm_pwr;
Varun Reddy Yeturub43fda12015-09-10 18:16:21 -070010679#ifdef FEATURE_WLAN_SCAN_PNO
10680 bool pno_channel_prediction;
10681 uint8_t top_k_num_of_channels;
10682 uint8_t stationary_thresh;
10683 uint32_t channel_prediction_full_scan;
10684#endif
Varun Reddy Yeturu05186292015-09-28 17:12:33 -070010685 bool early_stop_scan_enable;
10686 int8_t early_stop_scan_min_threshold;
10687 int8_t early_stop_scan_max_threshold;
Varun Reddy Yeturu044bda22015-11-21 22:03:40 -080010688 int8_t first_scan_bucket_threshold;
Krishna Kumaar Natarajan22b59a72015-11-23 18:54:58 -080010689 uint8_t ht_mpdu_density;
Ravi Joshi742495d2015-11-09 18:56:53 -080010690#ifdef FEATURE_LFR_SUBNET_DETECTION
10691 bool enable_lfr_subnet_detection;
10692#endif
Sandeep Puligilla93a29ec2016-02-12 16:10:56 -080010693 uint16_t obss_active_dwelltime;
10694 uint16_t obss_passive_dwelltime;
10695 uint16_t obss_width_trigger_interval;
Deepak Dhamdhere68929ec2015-08-05 15:16:35 -070010696 uint8_t inform_bss_rssi_raw;
Jeff Johnson89c66ff2016-04-22 15:21:37 -070010697#ifdef WLAN_FEATURE_TSF
Manikandan Mohan976e7562016-03-15 16:33:31 -070010698 uint32_t tsf_gpio_pin;
Jeff Johnson89c66ff2016-04-22 15:21:37 -070010699#endif
Gupta, Kapilc68ad462016-02-01 19:17:23 +053010700 uint32_t roam_dense_traffic_thresh;
10701 uint32_t roam_dense_rssi_thresh_offset;
Abhishek Singh165bc602016-03-21 12:43:00 +053010702 bool ignore_peer_ht_opmode;
Gupta, Kapilc68ad462016-02-01 19:17:23 +053010703 uint32_t roam_dense_min_aps;
Abhishek Singh10ecf582016-05-04 17:48:59 +053010704 bool enable_edca_params;
10705 uint32_t edca_vo_cwmin;
10706 uint32_t edca_vi_cwmin;
10707 uint32_t edca_bk_cwmin;
10708 uint32_t edca_be_cwmin;
10709 uint32_t edca_vo_cwmax;
10710 uint32_t edca_vi_cwmax;
10711 uint32_t edca_bk_cwmax;
10712 uint32_t edca_be_cwmax;
10713 uint32_t edca_vo_aifs;
10714 uint32_t edca_vi_aifs;
10715 uint32_t edca_bk_aifs;
10716 uint32_t edca_be_aifs;
gbian62edd7e2017-03-07 13:12:13 +080010717
10718 /* Tuning TX sched parameters for VO (skip credit limit credit disc) */
10719 uint8_t tx_sched_wrr_vo[TX_SCHED_WRR_PARAM_STRING_LENGTH];
10720 /* Tuning TX sched parameters for VI (skip credit limit credit disc) */
10721 uint8_t tx_sched_wrr_vi[TX_SCHED_WRR_PARAM_STRING_LENGTH];
10722 /* Tuning TX sched parameters for BE (skip credit limit credit disc) */
10723 uint8_t tx_sched_wrr_be[TX_SCHED_WRR_PARAM_STRING_LENGTH];
10724 /* Tuning TX sched parameters for BK (skip credit limit credit disc) */
10725 uint8_t tx_sched_wrr_bk[TX_SCHED_WRR_PARAM_STRING_LENGTH];
10726
Abhishek Singh5ea86532016-04-27 14:10:53 +053010727 bool enable_fatal_event;
Arun Khandavalli2476ef52016-04-26 20:19:43 +053010728 bool bpf_enabled;
Nirav Shahcc1f1ae2016-04-26 11:41:29 +053010729 bool enable_dp_trace;
Gupta, Kapil96c7f2f2016-04-25 19:13:41 +053010730 bool adaptive_dwell_mode_enabled;
10731 enum wmi_dwelltime_adaptive_mode scan_adaptive_dwell_mode;
10732 enum wmi_dwelltime_adaptive_mode roamscan_adaptive_dwell_mode;
10733 enum wmi_dwelltime_adaptive_mode extscan_adaptive_dwell_mode;
10734 enum wmi_dwelltime_adaptive_mode pnoscan_adaptive_dwell_mode;
10735 enum wmi_dwelltime_adaptive_mode global_adapt_dwelltime_mode;
10736 uint8_t adapt_dwell_lpf_weight;
10737 uint8_t adapt_dwell_passive_mon_intval;
10738 uint8_t adapt_dwell_wifi_act_threshold;
Kapil Gupta8878ad92017-02-13 11:56:04 +053010739 bool vendor_acs_support;
10740 bool acs_support_for_dfs_ltecoex;
Kapil Gupta0ed58dc2016-04-22 15:35:26 +053010741 bool bug_report_for_no_scan_results;
Mukul Sharmaf7d62e12016-09-03 15:16:22 +053010742 bool bug_on_reinit_failure;
Deepak Dhamdhere3385d752016-05-25 20:36:47 -070010743#ifdef WLAN_FEATURE_NAN_DATAPATH
10744 bool enable_nan_datapath;
10745 uint8_t nan_datapath_ndi_channel;
10746#endif
Arun Khandavallifae92942016-08-01 13:31:08 +053010747 uint32_t iface_change_wait_time;
Rajeev Kumar Sirasanagandlaaf474742016-09-06 17:54:50 +053010748 /* parameter to control GTX */
10749 uint32_t tgt_gtx_usr_cfg;
Naveen Rawat64e477e2016-05-20 10:34:56 -070010750 enum cfg_sub_20_channel_width enable_sub_20_channel_width;
Amar Singhal18517882016-08-08 12:26:20 -070010751 bool indoor_channel_support;
Rajeev Kumar Sirasanagandlab79b5462016-09-06 18:33:17 +053010752 /* parameter to force sap into 11n */
10753 bool sap_force_11n_for_11ac;
Yingying Tangb4832f72016-10-20 13:44:55 +080010754 uint16_t sap_tx_leakage_threshold;
Ravi Joshibb8d4512016-08-22 10:14:52 -070010755 bool multicast_replay_filter;
Manjeet Singhe7ecb7c2016-09-03 12:34:53 +053010756 /* parameter for indicating sifs burst duration to fw */
10757 uint8_t sifs_burst_duration;
Selvaraj, Sridharebda0f22016-08-29 16:05:23 +053010758 bool goptimize_chan_avoid_event;
Agrawal Ashishb2d1a452016-05-05 12:23:58 +053010759 bool enable_go_cts2self_for_sta;
Padma, Santhosh Kumara7119672016-08-16 16:05:14 +053010760 uint32_t tx_aggregation_size;
10761 uint32_t rx_aggregation_size;
Kiran Kumar Lokere1aa9c9a2016-10-05 18:50:59 -070010762 bool sta_prefer_80MHz_over_160MHz;
Agrawal, Ashish4e5fa1c2016-09-21 19:03:43 +053010763 uint8_t sap_max_inactivity_override;
Sandeep Puligillaafa52892016-10-26 19:03:16 -070010764 bool fw_timeout_crash;
Dustin Browncd756942016-11-23 12:25:33 -080010765 uint32_t rx_wakelock_timeout;
Anurag Chouhan7c01cc42016-12-16 21:33:43 +053010766 uint32_t max_sched_scan_plan_interval;
10767 uint32_t max_sched_scan_plan_iterations;
Yingying Tang95409972016-10-20 15:16:15 +080010768#ifdef WLAN_FEATURE_WOW_PULSE
10769 bool wow_pulse_support;
10770 uint8_t wow_pulse_pin;
10771 uint16_t wow_pulse_interval_high;
10772 uint16_t wow_pulse_interval_low;
10773#endif
Jeff Johnson441e1f72017-02-07 08:50:49 -080010774 enum hdd_wext_control standard_wext_control;
10775 enum hdd_wext_control private_wext_control;
Arun Khandavallicc544b32017-01-30 19:52:16 +053010776 bool sap_internal_restart;
Kapil Gupta6e6c26b2017-01-20 18:59:43 +053010777 uint8_t is_per_roam_enabled;
Kapil Gupta5cda2252016-12-29 18:44:26 +053010778 uint32_t per_roam_high_rate_threshold;
10779 uint32_t per_roam_low_rate_threshold;
10780 uint32_t per_roam_th_percent;
10781 uint32_t per_roam_rest_time;
Kapil Gupta957827b2017-02-13 15:47:04 +053010782 uint32_t per_roam_mon_time;
Hanumanth Reddy Pothulae87621b2017-04-12 20:53:35 +053010783 enum active_bpf_mode active_uc_bpf_mode;
10784 enum active_bpf_mode active_mc_bc_bpf_mode;
Selvaraj, Sridhar4f684bb2017-01-19 15:59:23 +053010785 bool enable_bcast_probe_rsp;
Krishna Kumaar Natarajan90bb6f12017-03-03 21:05:52 -080010786#ifdef WLAN_FEATURE_11AX
10787 bool enable_ul_mimo;
10788 bool enable_ul_ofdma;
10789#endif
Dustin Brownab1364a2017-03-27 16:59:08 -070010790 enum l1ss_sleep_allowed l1ss_sleep_allowed;
Srinivas Girigowda70e169a2017-03-07 23:55:57 -080010791 uint32_t arp_ac_category;
Jeff Johnson12a744b2017-04-04 08:19:37 -070010792 bool ani_enabled;
Selvaraj, Sridhara521aab2017-03-25 16:42:34 +053010793 bool qcn_ie_support;
Amar Singhal5cccafe2017-02-15 12:42:58 -080010794 bool reg_offload_enabled;
Dustin Brown7f939932017-05-18 15:02:17 -070010795 uint32_t timer_multiplier;
Selvaraj, Sridhar97ce6582017-01-20 17:06:34 +053010796 uint8_t fils_max_chan_guard_time;
Jayachandran Sreekumaran68c952c2017-04-24 12:42:03 +053010797 enum hdd_external_acs_policy external_acs_policy;
10798 enum hdd_external_acs_freq_band external_acs_freq_band;
Naveen Rawat2b6e3c92017-03-20 13:59:07 -070010799 /* threshold of packet drops at which FW initiates disconnect */
10800 uint16_t pkt_err_disconn_th;
Naveen Rawatb2fc4132017-05-10 20:42:05 -070010801 bool is_force_1x1;
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010802};
10803
10804#define VAR_OFFSET(_Struct, _Var) (offsetof(_Struct, _Var))
10805#define VAR_SIZE(_Struct, _Var) (sizeof(((_Struct *)0)->_Var))
10806
10807#define VAR_FLAGS_NONE (0)
10808
10809/* bit 0 is Required or Optional */
10810#define VAR_FLAGS_REQUIRED (1 << 0)
10811#define VAR_FLAGS_OPTIONAL (0 << 0)
10812
10813/*
10814 * bit 1 tells if range checking is required.
10815 * If less than MIN, assume MIN.
10816 * If greater than MAX, assume MAX.
10817 */
10818#define VAR_FLAGS_RANGE_CHECK (1 << 1)
10819#define VAR_FLAGS_RANGE_CHECK_ASSUME_MINMAX (VAR_FLAGS_RANGE_CHECK)
10820
10821/*
10822 * bit 2 is range checking that assumes the DEFAULT value
10823 * If less than MIN, assume DEFAULT,
10824 * If greater than MAX, assume DEFAULT.
10825 */
10826#define VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT (1 << 2)
10827
10828/*
10829 * Bit 3 indicates that the config item can be modified dynamicially
10830 * on a running system
10831 */
10832#define VAR_FLAGS_DYNAMIC_CFG (1 << 3)
10833
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010834enum wlan_parameter_type {
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010835 WLAN_PARAM_Integer,
10836 WLAN_PARAM_SignedInteger,
10837 WLAN_PARAM_HexInteger,
10838 WLAN_PARAM_String,
10839 WLAN_PARAM_MacAddr,
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010840};
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010841
10842#define REG_VARIABLE(_Name, _Type, _Struct, _VarName, \
10843 _Flags, _Default, _Min, _Max) \
10844 { \
10845 (_Name), \
10846 (_Type), \
10847 (_Flags), \
10848 VAR_OFFSET(_Struct, _VarName), \
10849 VAR_SIZE(_Struct, _VarName), \
10850 (_Default), \
10851 (_Min), \
10852 (_Max), \
10853 NULL, \
10854 0 \
10855 }
10856
10857#define REG_DYNAMIC_VARIABLE(_Name, _Type, _Struct, _VarName, \
10858 _Flags, _Default, _Min, _Max, \
10859 _CBFunc, _CBParam) \
10860 { \
10861 (_Name), \
10862 (_Type), \
10863 (VAR_FLAGS_DYNAMIC_CFG | (_Flags)), \
10864 VAR_OFFSET(_Struct, _VarName), \
10865 VAR_SIZE(_Struct, _VarName), \
10866 (_Default), \
10867 (_Min), \
10868 (_Max), \
10869 (_CBFunc), \
10870 (_CBParam) \
10871 }
10872
10873#define REG_VARIABLE_STRING(_Name, _Type, _Struct, _VarName, \
10874 _Flags, _Default) \
10875 { \
10876 (_Name), \
10877 (_Type), \
10878 (_Flags), \
10879 VAR_OFFSET(_Struct, _VarName), \
10880 VAR_SIZE(_Struct, _VarName), \
10881 (unsigned long)(_Default), \
10882 0, \
10883 0, \
10884 NULL, \
10885 0 \
10886 }
10887
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010888struct reg_table_entry {
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010889 char *RegName; /* variable name in the qcom_cfg.ini file */
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010890 enum wlan_parameter_type RegType; /* variable type in hdd_config struct */
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010891 unsigned long Flags; /* Specify optional parms and if RangeCheck is performed */
10892 unsigned short VarOffset; /* offset to field from the base address of the structure */
10893 unsigned short VarSize; /* size (in bytes) of the field */
10894 unsigned long VarDefault; /* default value to use */
10895 unsigned long VarMin; /* minimum value, for range checking */
10896 unsigned long VarMax; /* maximum value, for range checking */
10897 /* Dynamic modification notifier */
10898 void (*pfnDynamicnotify)(hdd_context_t *pHddCtx,
10899 unsigned long notifyId);
10900 unsigned long notifyId; /* Dynamic modification identifier */
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010901};
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010902
10903/* Function declarations and documenation */
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010904QDF_STATUS hdd_parse_config_ini(hdd_context_t *pHddCtx);
10905QDF_STATUS hdd_update_mac_config(hdd_context_t *pHddCtx);
10906QDF_STATUS hdd_set_sme_config(hdd_context_t *pHddCtx);
Tushnim Bhattacharyyaba8ee932017-03-23 09:27:40 -070010907QDF_STATUS hdd_set_policy_mgr_user_cfg(hdd_context_t *pHddCtx);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010908QDF_STATUS hdd_set_sme_chan_list(hdd_context_t *hdd_ctx);
Krunal Sonidf0f8742016-09-26 14:56:31 -070010909bool hdd_update_config_cfg(hdd_context_t *pHddCtx);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010910QDF_STATUS hdd_cfg_get_global_config(hdd_context_t *pHddCtx, char *pBuf,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010911 int buflen);
10912
Srinivas Girigowda2fb677c2017-03-25 15:35:34 -070010913eCsrPhyMode hdd_cfg_xlate_to_csr_phy_mode(enum hdd_dot11_mode dot11Mode);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010914QDF_STATUS hdd_execute_global_config_command(hdd_context_t *pHddCtx,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010915 char *command);
10916
10917bool hdd_is_okc_mode_enabled(hdd_context_t *pHddCtx);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010918QDF_STATUS hdd_set_idle_ps_config(hdd_context_t *pHddCtx, uint32_t val);
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010919
10920void hdd_update_tgt_cfg(void *context, void *param);
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010921
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010922QDF_STATUS hdd_string_to_u8_array(char *str, uint8_t *intArray, uint8_t *len,
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010923 uint8_t intArrayMaxLen);
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010924QDF_STATUS hdd_hex_string_to_u16_array(char *str, uint16_t *int_array,
Krishna Kumaar Natarajanf599c6e2015-11-03 11:44:03 -080010925 uint8_t *len, uint8_t int_array_max_len);
10926
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010927void hdd_cfg_print(hdd_context_t *pHddCtx);
10928
Anurag Chouhanfb54ab02016-02-18 18:00:46 +053010929QDF_STATUS hdd_update_nss(hdd_context_t *hdd_ctx, uint8_t nss);
Arif Hussaincd151632017-02-11 16:57:19 -080010930
10931/**
10932 * hdd_dfs_indicate_radar() - Block tx as radar found on the channel
10933 * @hdd_ctxt: HDD context pointer
10934 *
10935 * This function is invoked in atomic context when a radar
10936 * is found on the SAP current operating channel and Data Tx
10937 * from netif has to be stopped to honor the DFS regulations.
10938 * Actions: Stop the netif Tx queues,Indicate Radar present
10939 * in HDD context for future usage.
10940 *
10941 * Return: true on success, else false
10942 */
10943bool hdd_dfs_indicate_radar(hdd_context_t *hdd_ctx);
10944
Prakash Dhavali7090c5f2015-11-02 17:55:19 -080010945#endif