From aad2f0320dc9dfcd6494f26fafd0b12be8a0a540 Mon Sep 17 00:00:00 2001 From: Kabilan Kannan Date: Mon, 8 May 2017 13:25:37 -0700 Subject: [PATCH] qcacld-3.0: Fix TDLS set state cmd sequence Firmware expects TDLS set state cmd before vdev stop, but the cmd is going out of sequence and induce crash in the system. Send the TDLS set state cmd with correct sequence Change-Id: I5be19d8d44f86b60eed162ee3798f34e87892b15 CRs-Fixed: 2042194 --- core/hdd/src/wlan_hdd_cfg80211.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 4fc9c9203cd5..e2d58f1c5910 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -14779,6 +14779,9 @@ static int __wlan_hdd_cfg80211_disconnect(struct wiphy *wiphy, pAdapter->sessionId, mac); } } + hdd_notify_sta_disconnect(pAdapter->sessionId, + true, pAdapter->hdd_vdev); + wlan_hdd_tdls_notify_disconnect(pAdapter, true); #endif hdd_info("Disconnect request from user space with reason: %d (%s) internal reason code: %d", reason, hdd_ieee80211_reason_code_to_str(reason), reasonCode);