summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingxiang Ge <jge@codeaurora.org>2017-11-14 16:21:27 +0800
committersnandini <snandini@codeaurora.org>2017-11-23 06:46:45 -0800
commitb65138b73396d7595baff45c136131814243bccb (patch)
treeef31c54054b5078701308cf1562e474be3295ec6
parent4db5bc1ac9a952e937ca279ff9aced02bb23741c (diff)
qcacld-3.0: Fix kernel disconnect indication mismatch issue
While stop interface by "ifconfig wlan0 down" in connection status, in wlan_hdd_try_disconnect, the disconnect indication doesn't send to kernel, wdev->current_bss in kernel will not be null; In nl80211_trigger_scan, it will check wdev->current_bss, it will return if it is not NULL, which causes scan fail, and this is a very low ratio issue. Add disconnect indication to kernel. Change-Id: I5f652b49c87ff2fb5c7f34dd3a826307fb3bb7e1 CRs-Fixed: 2128100
-rw-r--r--core/hdd/src/wlan_hdd_main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index 0808c1bc9469..f0fc57f99dbb 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -4204,9 +4204,14 @@ 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)
+ 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
qdf_ret_status = sme_roam_disconnect(
hdd_ctx->hHal,