wlan: Convert DFS channel to active when beacon is received.
Conversion for DFS channel to active channel should be happen
when any beaocn is recived.
CRs-Fixed: 550234
Change-Id: I09c829bc931670f7f2fa5dda0ef57fccf8153e0d
diff --git a/CORE/MAC/src/pe/lim/limProcessBeaconFrame.c b/CORE/MAC/src/pe/lim/limProcessBeaconFrame.c
index 70b8f90..c3e68cf 100644
--- a/CORE/MAC/src/pe/lim/limProcessBeaconFrame.c
+++ b/CORE/MAC/src/pe/lim/limProcessBeaconFrame.c
@@ -175,7 +175,12 @@
limCheckAndAddBssDescription(pMac, pBeacon, pRxPacketInfo,
((pMac->lim.gLimHalScanState == eLIM_HAL_SCANNING_STATE) ? eANI_BOOLEAN_TRUE : eANI_BOOLEAN_FALSE),
eANI_BOOLEAN_FALSE);
+
}
+ /* Calling dfsChannelList which will convert DFS channel
+ * to Active channel for x secs if this channel is DFS channel */
+ limSetDFSChannelList(pMac, pBeacon->channelNumber,
+ &pMac->lim.dfschannelList);
}
else if (pMac->lim.gLimMlmState == eLIM_MLM_LEARN_STATE)
{
@@ -302,6 +307,10 @@
{
limCheckAndAddBssDescription(pMac, pBeacon, pRxPacketInfo, eANI_BOOLEAN_TRUE, eANI_BOOLEAN_FALSE);
}
+ /* Calling dfsChannelList which will convert DFS channel
+ * to Active channel for x secs if this channel is DFS channel */
+ limSetDFSChannelList(pMac, pBeacon->channelNumber,
+ &pMac->lim.dfschannelList);
}
else if (pMac->lim.gLimMlmState == eLIM_MLM_LEARN_STATE)
{
diff --git a/CORE/MAC/src/pe/lim/limScanResultUtils.c b/CORE/MAC/src/pe/lim/limScanResultUtils.c
index 161a155..c6a1921 100644
--- a/CORE/MAC/src/pe/lim/limScanResultUtils.c
+++ b/CORE/MAC/src/pe/lim/limScanResultUtils.c
@@ -510,10 +510,6 @@
limCollectBssDescription(pMac, &pBssDescr->bssDescription,
pBPR, pRxPacketInfo);
#endif
- /* Calling dfsChannelList which will convert DFS channel
- * to Active channel for x secs if this channel is DFS channel */
- limSetDFSChannelList(pMac, pBssDescr->bssDescription.channelIdSelf,
- &pMac->lim.dfschannelList);
pBssDescr->bssDescription.fProbeRsp = fProbeRsp;
pBssDescr->next = NULL;