From 62d37754fe54b8d7d4fb127ad4958ff9bb00f466 Mon Sep 17 00:00:00 2001 From: "Padma, Santhosh Kumar" Date: Fri, 17 Mar 2017 13:10:21 +0530 Subject: qcacld-2.0: Avoid switch channel during preauth prima to qcacld-2.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: 2017768 --- CORE/MAC/src/pe/lim/limProcessActionFrame.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CORE/MAC/src/pe/lim/limProcessActionFrame.c b/CORE/MAC/src/pe/lim/limProcessActionFrame.c index 55d019a438f0..d0b75b5f8083 100644 --- a/CORE/MAC/src/pe/lim/limProcessActionFrame.c +++ b/CORE/MAC/src/pe/lim/limProcessActionFrame.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2014, 2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2014, 2016-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -101,6 +101,13 @@ void limStopTxAndSwitchChannel(tpAniSirGlobal pMac, tANI_U8 sessionId) return; } + if(psessionEntry->ftPEContext.pFTPreAuthReq) + { + limLog(pMac, LOGE, + FL("Avoid Switch Channel req during pre auth")); + return; + } + /* * Sme Session is passed in limSendSmePreChannelSwitchInd * so that it can be passed till sme to request full power for -- cgit v1.2.3