summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Singh <absingh@qti.qualcomm.com>2016-01-07 17:40:43 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-01-08 13:20:28 +0530
commit1752675394144f17c8e81001710fa98cf151f6ad (patch)
tree5d56d944b48c1866fcb8a075ab54dac92cfa8336
parentdcb8137c9a528c078931af13d9f8b2bfadb00a6d (diff)
qcacld-2.0: Abort previous connect if fresh connect is received
If connect is received with previous connect in progress, driver doesn't abort the previous connect and process the new connect. In csr if new connect is for same profile, sme directly indicate connection success to hdd and thus hdd increment the active session count twice for both connect. Now if one more connect is received it will try to disconnect the previous connection and decrements the active session count. So the count is 1 though no session is active. Eventually if same scenario happens again the active session count will become 2 with no active session. As max active session limit is 2, no more connect is accepted. To avoid this, if fresh connect is received and previous connect is in progress abort the previous connect. CRs-Fixed: 958963 Change-Id: I1544bc6e7894ffeda1956a19a553b6fe4e35f988
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 66380a0dc580..05b137ebba56 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -16917,6 +16917,7 @@ static int wlan_hdd_try_disconnect( hdd_adapter_t *pAdapter )
if((eMib_dot11DesiredBssType_independent == connectedBssType) ||
(eConnectionState_Associated == pHddStaCtx->conn_info.connState) ||
+ (eConnectionState_Connecting == pHddStaCtx->conn_info.connState) ||
(eConnectionState_IbssConnected == pHddStaCtx->conn_info.connState))
{
hdd_connSetConnectionState(pAdapter, eConnectionState_Disconnecting);