Browse Source

qcacld-3.0: Introduce a new ini to enable/diasble roam reason vsie

Introduce an INI "enable_roam_reason_vsie" to inidicate fw to
include/exculde roam reason vsie in reassoc frame

Change-Id: I4d2a44812d8b11a19b0d7d31eb31c826aaeda79d
CRs-Fixed: 2627472
sheenam monga 5 years ago
parent
commit
cc1b25f607

+ 2 - 1
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 =

+ 32 - 1
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
+/*
+ * <ini>
+ * 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
+ *
+ * </ini>
+ */
+#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__ */

+ 3 - 0
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;