From 9397bc1c24d8d6b0cdd2212b7ea87e91366449b1 Mon Sep 17 00:00:00 2001 From: "Padma, Santhosh Kumar" Date: Mon, 17 Apr 2017 15:19:30 +0530 Subject: [PATCH] qcacld-3.0: Avoid switch channel during preauth qcacld-2.0 to qcacld-3.0 propagation Currently data tx is suspended and later checked for preauth in limProcessChannelSwitchTimeout. This can result in a condition that data tx to be always in suspend case if roaming triggers at the same time. Fix is to add a check for preauth during channel switch. Change-Id: I0ac3d63a5db000beed7de34b13e5926c7dc3ce48 CRs-Fixed: 2035031 --- core/mac/src/pe/lim/lim_process_action_frame.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/mac/src/pe/lim/lim_process_action_frame.c b/core/mac/src/pe/lim/lim_process_action_frame.c index cfefff7c78a2..ec26b7bda613 100644 --- a/core/mac/src/pe/lim/lim_process_action_frame.c +++ b/core/mac/src/pe/lim/lim_process_action_frame.c @@ -88,6 +88,11 @@ void lim_stop_tx_and_switch_channel(tpAniSirGlobal pMac, uint8_t sessionId) return; } + if (psessionEntry->ftPEContext.pFTPreAuthReq) { + pe_debug("Avoid Switch Channel req during pre auth"); + return; + } + pe_debug("Channel switch Mode: %d", psessionEntry->gLimChannelSwitch.switchMode);