Merge "qcacld-3.0: Fix kernel disconnect indication mismatch issue" into wlan-cld3.driver.lnx.2.0

This commit is contained in:
CNSS_WLAN Service 2017-11-27 13:03:06 -08:00 • committed by Gerrit - the friendly Code Review server
commit d45ff6885e

View file

@ -4392,9 +4392,14 @@ QDF_STATUS hdd_stop_adapter(struct hdd_context *hdd_ctx, struct hdd_adapter *ada
hdd_ctx->hHal,
adapter->session_id,
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,