Quellcode durchsuchen

qcacld-3.0: Remove roaming_in_progress in hdd_context

Remove roaming_in_progress in hdd_context and
use API hdd_is_roaming_in_progress in
hdd_send_roam_triggers_to_sme()

Change-Id: Icb6022f26e8e3b17782d5c59f2d523635ffc151a
CRs-Fixed: 2771210
Deeksha Gupta vor 4 Jahren
Ursprung
Commit
1c88796c77
2 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 0 1
      core/hdd/inc/wlan_hdd_main.h
  2. 1 1
      core/hdd/src/wlan_hdd_cfg80211.c

+ 0 - 1
core/hdd/inc/wlan_hdd_main.h

@@ -1954,7 +1954,6 @@ struct hdd_context {
 	uint16_t wmi_max_len;
 	struct suspend_resume_stats suspend_resume_stats;
 	struct hdd_runtime_pm_context runtime_context;
-	bool roaming_in_progress;
 	struct scan_chan_info *chan_info;
 	struct mutex chan_info_lock;
 	/* bit map to set/reset TDLS by different sources */

+ 1 - 1
core/hdd/src/wlan_hdd_cfg80211.c

@@ -4691,7 +4691,7 @@ hdd_send_roam_triggers_to_sme(struct hdd_context *hdd_ctx,
 	 * de-initialize roaming structures in fw on the roaming enabled
 	 * vdev.
 	 */
-	if (hdd_ctx->roaming_in_progress) {
+	if (hdd_is_roaming_in_progress(hdd_ctx)) {
 		hdd_err("Reject set roam trigger as roaming is in progress");
 		return QDF_STATUS_E_FAILURE;
 	}