From 295101368e1ce8db190ad2d2ffee1ef4e193faa1 Mon Sep 17 00:00:00 2001 From: Siva Mullati Date: Thu, 20 Oct 2016 16:32:09 +0530 Subject: qcacld-2.0: Delete TDLS peers upon receiving disassoc from AP As per the current code, upon receiving the disassociation frame AP, DUT-STA disconnects from the AP link but not tearing down the TDLS link with peer by sending deauth with reason code 3.So when AP comes up again TDLS link is not establishing between the peers. Fix is to delete all connected TDLS peers upon receiving disassociation framefrom AP. Change-Id: I8daa61cb1901441e5fae7d161c9f943d67e13c56 CRs-Fixed: 1081264 --- CORE/MAC/src/pe/lim/limProcessDisassocFrame.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CORE/MAC/src/pe/lim/limProcessDisassocFrame.c b/CORE/MAC/src/pe/lim/limProcessDisassocFrame.c index 52bf97b24969..c9b192103173 100644 --- a/CORE/MAC/src/pe/lim/limProcessDisassocFrame.c +++ b/CORE/MAC/src/pe/lim/limProcessDisassocFrame.c @@ -298,6 +298,15 @@ limProcessDisassocFrame(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo, tpPESession return; } +#ifdef FEATURE_WLAN_TDLS + /* Delete all the TDLS peers only if Disassoc is received from the AP */ + if ((LIM_IS_STA_ROLE(psessionEntry)) && + ((pStaDs->mlmStaContext.mlmState == eLIM_MLM_LINK_ESTABLISHED_STATE) || + (pStaDs->mlmStaContext.mlmState == eLIM_MLM_IDLE_STATE)) && + (IS_CURRENT_BSSID(pMac, pHdr->sa, psessionEntry))) + limDeleteTDLSPeers(pMac, psessionEntry); +#endif + if (pStaDs->mlmStaContext.mlmState != eLIM_MLM_LINK_ESTABLISHED_STATE) { /** -- cgit v1.2.3