diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index 3aef03fdc361..2c4c64829712 100644 --- a/core/hdd/inc/wlan_hdd_cfg.h +++ b/core/hdd/inc/wlan_hdd_cfg.h @@ -9285,7 +9285,7 @@ enum dot11p_mode { * restart_beaconing_on_chan_avoid_event - control the beaconing entity to move * away from active LTE channels * @Min: 0 - * @Max: 1 + * @Max: 2 * @Default: 1 * * This ini is used to control the beaconing entity (SAP/GO) to move away from @@ -9294,6 +9294,8 @@ enum dot11p_mode { * from active LTE channels * restart_beaconing_on_chan_avoid_event=1: Allow beaconing entity move from * active LTE channels + * restart_beaconing_on_chan_avoid_event=2: Allow beaconing entity move from + * 2.4G active LTE channels only * * Related: None * @@ -9304,9 +9306,9 @@ enum dot11p_mode { * */ #define CFG_RESTART_BEACONING_ON_CH_AVOID_NAME "restart_beaconing_on_chan_avoid_event" -#define CFG_RESTART_BEACONING_ON_CH_AVOID_MIN (0) -#define CFG_RESTART_BEACONING_ON_CH_AVOID_MAX (1) -#define CFG_RESTART_BEACONING_ON_CH_AVOID_DEFAULT (1) +#define CFG_RESTART_BEACONING_ON_CH_AVOID_MIN (CH_AVOID_RULE_DO_NOT_RESTART) +#define CFG_RESTART_BEACONING_ON_CH_AVOID_MAX (CH_AVOID_RULE_RESTART_24G_ONLY) +#define CFG_RESTART_BEACONING_ON_CH_AVOID_DEFAULT (CH_AVOID_RULE_RESTART) /* * This parameter will avoid updating ap_sta_inactivity from hostapd.conf * file. If a station does not send anything in ap_max_inactivity seconds, an @@ -12417,7 +12419,8 @@ struct hdd_config { enum hdd_wext_control standard_wext_control; enum hdd_wext_control private_wext_control; bool sap_internal_restart; - bool restart_beaconing_on_chan_avoid_event; + enum restart_beaconing_on_ch_avoid_rule + restart_beaconing_on_chan_avoid_event; uint8_t is_per_roam_enabled; uint32_t per_roam_high_rate_threshold; uint32_t per_roam_low_rate_threshold; diff --git a/core/hdd/src/wlan_hdd_regulatory.c b/core/hdd/src/wlan_hdd_regulatory.c index 551ca692e1bb..ec05b7a1f07a 100644 --- a/core/hdd/src/wlan_hdd_regulatory.c +++ b/core/hdd/src/wlan_hdd_regulatory.c @@ -220,6 +220,8 @@ static void reg_program_config_vars(struct hdd_context *hdd_ctx, config_vars->indoor_chan_enabled = hdd_ctx->config->indoor_channel_support; config_vars->band_capability = hdd_ctx->config->nBandCapability; + config_vars->restart_beaconing = hdd_ctx->config-> + restart_beaconing_on_chan_avoid_event; }