From 57c95ffabf5ee7fd94165eddd1eb68e01039283b Mon Sep 17 00:00:00 2001 From: Deepak Dhamdhere Date: Fri, 30 Sep 2016 16:44:44 -0700 Subject: [PATCH] qcacld-3.0: Scan stuck when lfr enable/disable using pvt ioctl When dissassoc or deauth is issued by user a.k.a (supplicant), it has dependency on few parameters like isFastRoamIniFeatureEnable in cleanup path. This change removes the dependency. Change-Id: I601e33e7e57b0ebb76fd06d3c176bfabb9568ba8 CRs-Fixed: 754116 --- .../src/pe/lim/lim_send_management_frames.c | 23 ++----------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/core/mac/src/pe/lim/lim_send_management_frames.c b/core/mac/src/pe/lim/lim_send_management_frames.c index a4a64dbe646d..44f0d72c048e 100644 --- a/core/mac/src/pe/lim/lim_send_management_frames.c +++ b/core/mac/src/pe/lim/lim_send_management_frames.c @@ -2507,33 +2507,14 @@ QDF_STATUS lim_send_disassoc_cnf(tpAniSirGlobal mac_ctx) pe_err("cleanup_rx_path error"); goto end; } - if (LIM_IS_STA_ROLE(pe_session) && ( -#ifdef FEATURE_WLAN_ESE - (pe_session->isESEconnection) || -#endif - (pe_session->isFastRoamIniFeatureEnabled) || - (pe_session->is11Rconnection)) && - (disassoc_req->reasonCode != + if (LIM_IS_STA_ROLE(pe_session) && + (disassoc_req->reasonCode != eSIR_MAC_DISASSOC_DUE_TO_FTHANDOFF_REASON)) { pe_debug("FT Preauth Session (%p %d) Clean up", pe_session, pe_session->peSessionId); /* Delete FT session if there exists one */ lim_ft_cleanup_pre_auth_info(mac_ctx, pe_session); - } else { - pe_debug("FT Preauth Session %d Clean up" -#ifdef FEATURE_WLAN_ESE - " isESE %d" -#endif - " isLFR %d" - " is11r %d reason %d", - GET_LIM_SYSTEM_ROLE(pe_session), -#ifdef FEATURE_WLAN_ESE - pe_session->isESEconnection, -#endif - pe_session->isFastRoamIniFeatureEnabled, - pe_session->is11Rconnection, - disassoc_req->reasonCode); } /* Free up buffer allocated for mlmDisassocReq */ qdf_mem_free(disassoc_req);