mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Add INI for 11d scan interval
The default 11d scan interval is 1 hour. But make the 11D scan interval programmable by user to test different intervals. Therefore provide INI for the same. Change-Id: Ifd0705eda69a0672ee41ea39f8230f533f5aa62a CRs-Fixed: 2088739
This commit is contained in:
parent
30c24b7afb
commit
e4a2dd5dbc
3 changed files with 32 additions and 0 deletions
|
|
@ -11517,6 +11517,29 @@ enum hdd_external_acs_freq_band {
|
|||
#define CFG_DTIM_1CHRX_ENABLE_MAX (1)
|
||||
#define CFG_DTIM_1CHRX_ENABLE_DEFAULT (1)
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* scan_11d_interval - 11d scan interval in ms
|
||||
* @Min: 1 sec
|
||||
* @Max: 10 hr
|
||||
* @Default: 1 hr
|
||||
*
|
||||
* This ini sets the 11d scan interval in FW
|
||||
*
|
||||
*
|
||||
*
|
||||
* Supported Feature: STA
|
||||
*
|
||||
* Usage: External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
|
||||
#define CFG_SCAN_11D_INTERVAL_NAME "scan_11d_interval"
|
||||
#define CFG_SCAN_11D_INTERVAL_DEFAULT (3600000)
|
||||
#define CFG_SCAN_11D_INTERVAL_MIN (1000)
|
||||
#define CFG_SCAN_11D_INTERVAL_MAX (36000000)
|
||||
|
||||
/*
|
||||
* Type declarations
|
||||
*/
|
||||
|
|
@ -12305,6 +12328,7 @@ struct hdd_config {
|
|||
bool enable_dtim_1chrx;
|
||||
int8_t rssi_thresh_offset_5g;
|
||||
bool is_ndi_mac_randomized;
|
||||
uint32_t scan_11d_interval;
|
||||
};
|
||||
|
||||
#define VAR_OFFSET(_Struct, _Var) (offsetof(_Struct, _Var))
|
||||
|
|
|
|||
|
|
@ -4720,6 +4720,13 @@ struct reg_table_entry g_registry_table[] = {
|
|||
CFG_RANDOMIZE_NDI_MAC_DEFAULT,
|
||||
CFG_RANDOMIZE_NDI_MAC_MIN,
|
||||
CFG_RANDOMIZE_NDI_MAC_MAX),
|
||||
|
||||
REG_VARIABLE(CFG_SCAN_11D_INTERVAL_NAME, WLAN_PARAM_Integer,
|
||||
struct hdd_config, scan_11d_interval,
|
||||
VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
|
||||
CFG_SCAN_11D_INTERVAL_DEFAULT,
|
||||
CFG_SCAN_11D_INTERVAL_MIN,
|
||||
CFG_SCAN_11D_INTERVAL_MAX),
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -213,6 +213,7 @@ static void reg_program_config_vars(hdd_context_t *hdd_ctx,
|
|||
struct reg_config_vars *config_vars)
|
||||
{
|
||||
config_vars->enable_11d_support = hdd_ctx->config->Is11dSupportEnabled;
|
||||
config_vars->scan_11d_interval = hdd_ctx->config->scan_11d_interval;
|
||||
config_vars->userspace_ctry_priority =
|
||||
hdd_ctx->config->fSupplicantCountryCodeHasPriority;
|
||||
config_vars->dfs_enabled = hdd_ctx->config->enableDFSChnlScan;
|
||||
|
|
|
|||
Loading…
Reference in a new issue