diff options
| author | Abhishek Singh <absingh@qti.qualcomm.com> | 2016-05-24 16:12:49 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-05-26 18:13:34 +0530 |
| commit | f79ccb7b79bdc77ef5e56ad26bdece6162470b7c (patch) | |
| tree | 6786cf5a4c5b757c69898599107f21afee9bcbf0 | |
| parent | 45cb00a984876a717f72b60de10b771b23d691b9 (diff) | |
qcacld-2.0 : Avoid calling PE delete session for non valid session
peDeleteSession may get called twice for the same session during
disconnect. This leads to warnings while trying to delete timers
which is already deleted the first time.
Thus avoid calling PE delete session for non valid session.
Change-Id: I96f99f42467ec2650794718a5b11033c031c71ec
CRs-Fixed: 1021248
| -rw-r--r-- | CORE/MAC/src/pe/lim/limSession.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CORE/MAC/src/pe/lim/limSession.c b/CORE/MAC/src/pe/lim/limSession.c index 60122c056b12..e4d3378f1b81 100644 --- a/CORE/MAC/src/pe/lim/limSession.c +++ b/CORE/MAC/src/pe/lim/limSession.c @@ -592,6 +592,12 @@ void peDeleteSession(tpAniSirGlobal pMac, tpPESession psessionEntry) tANI_U16 n; TX_TIMER *timer_ptr; + if (!psessionEntry->valid) { + limLog(pMac, LOG1, FL("peSession %d already deleted"), + psessionEntry->peSessionId); + return; + } + VOS_TRACE(VOS_MODULE_ID_PE, VOS_TRACE_LEVEL_DEBUG, "Trying to delete PE session %d Opmode %d BssIdx %d" " BSSID: " MAC_ADDRESS_STR, psessionEntry->peSessionId, |
