diff --git a/components/mlme/core/src/wlan_mlme_main.c b/components/mlme/core/src/wlan_mlme_main.c index ac4b40fbe3b7..07926f04b093 100644 --- a/components/mlme/core/src/wlan_mlme_main.c +++ b/components/mlme/core/src/wlan_mlme_main.c @@ -1462,7 +1462,8 @@ static void mlme_init_roam_offload_cfg(struct wlan_objmgr_psoc *psoc, { lfr->lfr3_roaming_offload = cfg_get(psoc, CFG_LFR3_ROAMING_OFFLOAD); - + lfr->enable_roam_reason_vsie = + cfg_get(psoc, CFG_ENABLE_ROAM_REASON_VSIE); lfr->enable_disconnect_roam_offload = cfg_get(psoc, CFG_LFR_ENABLE_DISCONNECT_ROAM); lfr->enable_idle_roam = diff --git a/components/mlme/dispatcher/inc/cfg_mlme_lfr.h b/components/mlme/dispatcher/inc/cfg_mlme_lfr.h index 6981e59cf6b1..5079ca2cace5 100644 --- a/components/mlme/dispatcher/inc/cfg_mlme_lfr.h +++ b/components/mlme/dispatcher/inc/cfg_mlme_lfr.h @@ -2599,6 +2599,36 @@ CFG_VALUE_OR_DEFAULT, \ "Roam scan period post inactivity") +#ifdef WLAN_FEATURE_ROAM_OFFLOAD +/* + * + * enable_roam_reason_vsie - Enable/Disable inclusion of Roam Reason + * in Re(association) frame + * + * @Min: 0 + * @Max: 1 + * @Default: 0 + * + * This ini is used to enable fw to include/exclude roam reason vsie in + * Re(association) + * + * Related: None + * + * Supported Feature: Roaming + * + * Usage: internal + * + * + */ +#define CFG_ENABLE_ROAM_REASON_VSIE CFG_INI_BOOL( \ + "enable_roam_reason_vsie", \ + 0, \ + "To Enable enable_roam_reason_vsie") +#define ROAM_REASON_VSIE_ALL CFG(CFG_ENABLE_ROAM_REASON_VSIE) +#else +#define ROAM_REASON_VSIE_ALL +#endif + #define CFG_LFR_ALL \ CFG(CFG_LFR_MAWC_ROAM_ENABLED) \ CFG(CFG_LFR_MAWC_ROAM_TRAFFIC_THRESHOLD) \ @@ -2687,6 +2717,7 @@ ROAM_OFFLOAD_ALL \ LFR_ESE_ALL \ LFR_SUBNET_DETECTION_ALL \ - SAE_SINGLE_PMK_ALL + SAE_SINGLE_PMK_ALL \ + ROAM_REASON_VSIE_ALL #endif /* CFG_MLME_LFR_H__ */ diff --git a/components/mlme/dispatcher/inc/wlan_mlme_public_struct.h b/components/mlme/dispatcher/inc/wlan_mlme_public_struct.h index d4b3021f4056..a315c93894c2 100644 --- a/components/mlme/dispatcher/inc/wlan_mlme_public_struct.h +++ b/components/mlme/dispatcher/inc/wlan_mlme_public_struct.h @@ -1436,6 +1436,8 @@ struct bss_load_trigger { * below which the connection is idle. * @idle_roam_min_rssi: Minimum rssi of connected AP to be considered for * idle roam trigger. + * @enable_roam_reason_vsie: Enable/disable incluison of roam reason + * vsie in Re(assoc) frame * @early_stop_scan_enable: Set early stop scan * @enable_5g_band_pref: Enable preference for 5G from INI * @ese_enabled: Enable ESE feature @@ -1538,6 +1540,7 @@ struct wlan_mlme_lfr_cfg { uint32_t idle_data_packet_count; uint32_t idle_roam_band; int32_t idle_roam_min_rssi; + bool enable_roam_reason_vsie; #endif bool early_stop_scan_enable; bool enable_5g_band_pref;