diff options
author | Yeshwanth Sriram Guntuka <ysriramg@codeaurora.org> | 2018-10-31 16:22:01 +0530 |
---|---|---|
committer | jacka_lin <JackA_Lin@compal.com> | 2019-04-02 10:46:28 +0000 |
commit | f20abae8e439d2a1435e0d863a2a47208fb14303 (patch) | |
tree | 9005899967034315421e409c8635d69561d22002 | |
parent | f9dfaee879535b24486c76e97e61b98137ceec2b (diff) |
wlan: Start idle scan on receiving enable aggregation indicationandroid-wear-9.0.0_r0.23
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>
-rw-r--r-- | drivers/staging/prima/CORE/SME/src/sme_common/sme_Api.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 7bc6f3cd9d3e..eede4ba26278 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 @@ eHalStatus sme_ProcessMsg(tHalHandle hHal, vos_msg_t* pMsg) 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 @@ eHalStatus sme_ProcessMsg(tHalHandle hHal, vos_msg_t* pMsg) 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 |