From 50f0a4acd1ff9dfc416b79eca1e4be690af215db Mon Sep 17 00:00:00 2001 From: "Kanchanapally, Vidyullatha" Date: Tue, 23 Sep 2014 21:53:04 +0530 Subject: qcacld: Fix sending a missing roam scan offload to firmware. Currently, when a disconnect comes from the supplicant with reason code as DEAUTH, the host is skipping doing a Link Down as a result of which after a subsequent new connection the host misses sending a roam scan offload to firmware because of being in a wrong state. This issue is now fixed by calling link down before disconnecting. Change-Id: I3a3926baca8a1324540e0db564430e59a5dd2fbd CRs-Fixed: 728743 --- CORE/SME/src/csr/csrApiRoam.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CORE/SME/src/csr/csrApiRoam.c b/CORE/SME/src/csr/csrApiRoam.c index e2abf266116a..aacd9578fe77 100644 --- a/CORE/SME/src/csr/csrApiRoam.c +++ b/CORE/SME/src/csr/csrApiRoam.c @@ -3064,7 +3064,9 @@ eHalStatus csrRoamIssueDeauth( tpAniSirGlobal pMac, tANI_U32 sessionId, eCsrRoam csrRoamSubstateChange( pMac, NewSubstate, sessionId); status = csrSendMBDeauthReqMsg( pMac, sessionId, bssId, eSIR_MAC_DEAUTH_LEAVING_BSS_REASON ); - if(!HAL_STATUS_SUCCESS(status)) + if (HAL_STATUS_SUCCESS(status)) + csrRoamLinkDown(pMac, sessionId); + else { smsLog(pMac, LOGE, FL("csrSendMBDeauthReqMsg failed with status %d Session ID: %d" MAC_ADDRESS_STR ), status, sessionId, MAC_ADDR_ARRAY(bssId)); -- cgit v1.2.3