diff options
| author | Abhinav Kumar <abhikuma@codeaurora.org> | 2018-07-12 17:36:57 +0530 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2018-07-16 09:59:01 -0700 |
| commit | af15ada1ffde2217b99c949b9cf22451dbebc5ea (patch) | |
| tree | 5a16d92c1d0759262e8d725845be22e1e68415c5 | |
| parent | 10d7e047a3e56be9e0c5140e161994ee216a3e25 (diff) | |
qcacld-3.0: Fix connState while processing disconnect from stop adapter
If driver receive stop adapter when STA is in connecting state, driver
queue a disconnect command without changing the connState of the STA.
Now even if the disconnect is in progress the connState indicate that
the connection is in progress. This may lead to sync issues between HDD
and SME.
Fix is to set the connState to disconnecting so that HDD indicate
proper state.
Change-Id: Ib9d607ad2ab05e5edc266e59516b4ae2b7668c78
CRs-Fixed: 2277633
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index c05bc5d7de77..5a5d4e00ad49 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -4827,14 +4827,9 @@ QDF_STATUS hdd_stop_adapter(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter, hdd_ctx->hHal, adapter->sessionId, eCSR_DISCONNECT_REASON_IBSS_LEAVE); - else if (QDF_STA_MODE == adapter->device_mode) { - qdf_ret_status = - wlan_hdd_try_disconnect(adapter); - hdd_debug("Send disconnected event to userspace"); - wlan_hdd_cfg80211_indicate_disconnect( - adapter->dev, true, - WLAN_REASON_UNSPECIFIED); - } + else if (QDF_STA_MODE == adapter->device_mode) + wlan_hdd_disconnect(adapter, + eCSR_DISCONNECT_REASON_DEAUTH); else qdf_ret_status = sme_roam_disconnect( hdd_ctx->hHal, |
