wlan: Start idle scan on receiving enable aggregation indication
On receiving disable aggregation indication, device is put
into full_power mode and idle scan timer cancel flag is set
to true. Idle scan timer will not be started on processing
exit_imps command due to the idle scan timer cancel flag.
The timer is not restarted on receiving the enable_aggregation
indication but only the cancel flag is reset to false.
Fix is to start idle scan on receiving enable aggregation
indication.
Bug: 128344000
CRs-Fixed: 2342407
Change-Id: Ie047d1feff3eb4147579aa67c3e38aefe2d6f230
Signed-off-by: jacka_lin <JackA_Lin@compal.com>
diff --git a/drivers/staging/prima/CORE/SME/src/sme_common/sme_Api.c b/drivers/staging/prima/CORE/SME/src/sme_common/sme_Api.c
index 7bc6f3c..eede4ba 100644
--- a/drivers/staging/prima/CORE/SME/src/sme_common/sme_Api.c
+++ b/drivers/staging/prima/CORE/SME/src/sme_common/sme_Api.c
@@ -2761,6 +2761,7 @@
vos_msg_t vosMessage = {0};
tANI_U32 session_id = 0;
bool active_scan;
+ tANI_U32 nTime = 0;
if (pSmeCoexInd->coexIndType == SIR_COEX_IND_TYPE_DISABLE_AGGREGATION_IN_2p4)
{
@@ -2788,6 +2789,11 @@
pMac->scan.fRestartIdleScan = eANI_BOOLEAN_TRUE;
pMac->scan.fCancelIdleScan = eANI_BOOLEAN_FALSE;
+ if(csrIsAllSessionDisconnected(pMac) &&
+ !HAL_STATUS_SUCCESS(csrScanTriggerIdleScan(pMac,
+ &nTime))) {
+ csrScanStartIdleScanTimer(pMac, nTime);
+ }
/*
* If aggregation during SCO is enabled, there is a
* possibility for an active BA session. This session