From 3f608e2c19255fe61680f41d3dd2274eb31112fa Mon Sep 17 00:00:00 2001 From: Nishank Aggarwal Date: Sat, 1 Oct 2016 17:27:42 +0530 Subject: qcacld-2.0: Fix warning while unloading wlan In case of PMF connection pmfcomeback timer is initialized for STA mode. For AP mode pmfcomeback timer is not initialized Because of this there is warning while destroying pmfcomeback timer. Fix is to destroy pmfcomeback timer only for STA mode. Change-Id: I87c0f209bb7189168ad0f55723b754edca2fa465 CRs-Fixed: 1073470 --- CORE/MAC/src/pe/lim/limSession.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CORE/MAC/src/pe/lim/limSession.c b/CORE/MAC/src/pe/lim/limSession.c index 7f0ebafc3f2c..fe67fe1dac82 100644 --- a/CORE/MAC/src/pe/lim/limSession.c +++ b/CORE/MAC/src/pe/lim/limSession.c @@ -825,7 +825,7 @@ void peDeleteSession(tpAniSirGlobal pMac, tpPESession psessionEntry) #ifdef WLAN_FEATURE_11W /* if PMF connection */ - if (psessionEntry->limRmfEnabled) { + if (psessionEntry->limRmfEnabled && LIM_IS_STA_ROLE(psessionEntry)) { vos_timer_destroy(&psessionEntry->pmfComebackTimer); } #endif -- cgit v1.2.3