wlan: Do not consider eLIM_SME_WT_DEAUTH_STATE.
Do not consider eLIM_SME_WT_DEAUTH_STATE to check number of valid or
active sessions in peGetValidPowerSaveSession api as there may be a
scenario in which limMlmState is in eLIM_SME_WT_DEAUTH_STATE and the
api may not return valid session.
Change-Id: Id6984b88d474c8b7a363e6770d3b075d224a7685
CRs-Fixed: 503789
diff --git a/CORE/MAC/src/pe/lim/limSessionUtils.c b/CORE/MAC/src/pe/lim/limSessionUtils.c
index f528c87..fe5b6a2 100644
--- a/CORE/MAC/src/pe/lim/limSessionUtils.c
+++ b/CORE/MAC/src/pe/lim/limSessionUtils.c
@@ -147,15 +147,9 @@
for(i = 0; i < pMac->lim.maxBssId; i++)
{
- /* To order to check number of established sessions, we are currently chceking
- * for eLIM_MLM_LINK_ESTABLISHED_STATE state along with this state we also need
- * to consider the device is not in eLIM_SME_WT_DEAUTH_STATE beacuse the actual
- * disconnection can be considered when DEL_STA_RESP is recived
- */
if( (pMac->lim.gpSession[i].valid == TRUE)&&
(pMac->lim.gpSession[i].limSystemRole == eLIM_STA_ROLE)&&
- (pMac->lim.gpSession[i].limMlmState == eLIM_MLM_LINK_ESTABLISHED_STATE) &&
- (pMac->lim.gpSession[i].limSmeState != eLIM_SME_WT_DEAUTH_STATE)) {
+ (pMac->lim.gpSession[i].limMlmState == eLIM_MLM_LINK_ESTABLISHED_STATE)) {
sessioncount++;
sessionId = i;