summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMing-yi Lin <mylin@qca.qualcomm.com>2014-09-05 19:35:58 +0800
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-09-11 18:07:39 -0700
commite166d16dc331f5937b04a3fa8c516b039a976071 (patch)
treeb0a26d5c4f64aa86071cd424debb590c43e94205
parentc9feccfe3e17124dbd06052882970e53cfa6db2c (diff)
qcacld: HDD: Send disassocation when del_station called
Some vendors could not finish WSC procedure if Registrar issue deauthentication to disconnect Enrollee. To avoid this IOT issue, send out disassocation before deauthentication. Change-Id: I7b05e6e1a4c94297f68a20fa40edcb29b68de928 CRs-Fixed: 720109
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 225eab62679b..5049532277d7 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -11299,6 +11299,9 @@ static int __wlan_hdd_cfg80211_del_station(struct wiphy *wiphy,
hddLog(VOS_TRACE_LEVEL_INFO,
FL("Delete STA with MAC::"MAC_ADDRESS_STR),
MAC_ADDR_ARRAY(macAddr));
+
+ /* Send disassoc and deauth both to avoid some IOT issues */
+ hdd_softap_sta_disassoc(pAdapter, macAddr);
vos_status = hdd_softap_sta_deauth(pAdapter, macAddr);
if (VOS_IS_STATUS_SUCCESS(vos_status))
pAdapter->aStaInfo[i].isDeauthInProgress = TRUE;
@@ -11326,6 +11329,8 @@ static int __wlan_hdd_cfg80211_del_station(struct wiphy *wiphy,
FL("Delete STA with MAC::"MAC_ADDRESS_STR),
MAC_ADDR_ARRAY(mac));
+ /* Send disassoc and deauth both to avoid some IOT issues */
+ hdd_softap_sta_disassoc(pAdapter, mac);
vos_status = hdd_softap_sta_deauth(pAdapter, mac);
if (!VOS_IS_STATUS_SUCCESS(vos_status)) {
pAdapter->aStaInfo[staId].isDeauthInProgress = FALSE;