qcacld-3.0: Update proper status for disable roam cmd
Currently, for disable roam from supplicant, if STA is in
not connected state, driver wont send any commands to FW
as it is unnecessary. However, for this case, driver updates
fail status to supplicant.
Update success status for disable roam cmd when STA is in
not connected state.
Change-Id: I076d1b5389868b5d136e5adce730f6b3ec41e6f8
CRs-Fixed: 2042596
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index 8127025..fd1719c 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -9364,6 +9364,7 @@
int ret;
QDF_STATUS qdf_status;
unsigned long rc;
+ hdd_station_ctx_t *hdd_sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
ENTER_DEV(dev);
@@ -9408,8 +9409,10 @@
qdf_status);
ret = qdf_status_to_os_return(qdf_status);
- INIT_COMPLETION(adapter->lfr_fw_status.disable_lfr_event);
- if (QDF_IS_STATUS_SUCCESS(qdf_status) && !enable_lfr_fw) {
+ if (eConnectionState_Associated == hdd_sta_ctx->conn_info.connState &&
+ QDF_IS_STATUS_SUCCESS(qdf_status) && !enable_lfr_fw) {
+
+ INIT_COMPLETION(adapter->lfr_fw_status.disable_lfr_event);
/*
* wait only for LFR disable in fw as LFR enable
* is always success