diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index 6ebea46cee59..5d0159c37da9 100644 --- a/core/hdd/inc/wlan_hdd_cfg.h +++ b/core/hdd/inc/wlan_hdd_cfg.h @@ -11517,6 +11517,29 @@ enum hdd_external_acs_freq_band { #define CFG_DTIM_1CHRX_ENABLE_MAX (1) #define CFG_DTIM_1CHRX_ENABLE_DEFAULT (1) +/* + * + * 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 + * + * + */ + +#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)) diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c index 422d3eed2bdc..b9ff033f3e21 100644 --- a/core/hdd/src/wlan_hdd_cfg.c +++ b/core/hdd/src/wlan_hdd_cfg.c @@ -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), }; diff --git a/core/hdd/src/wlan_hdd_regulatory.c b/core/hdd/src/wlan_hdd_regulatory.c index 6656677c9fe4..8470f0ccb4a4 100644 --- a/core/hdd/src/wlan_hdd_regulatory.c +++ b/core/hdd/src/wlan_hdd_regulatory.c @@ -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;