diff options
| author | Bala Venkatesh <bjavvaji@codeaurora.org> | 2018-10-11 10:36:23 +0530 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2018-10-16 06:14:04 -0700 |
| commit | 7878386eeb5a4c591835a429fad4f347bc35fe47 (patch) | |
| tree | e4f12795fd50b5e56ef182cc80518ef3bca3718a | |
| parent | 27d0623f6a88e9ee19302e7d27d1d0856413a9be (diff) | |
qcacld-3.0: Return success for ps command in disconnected state
Driver won't handle the ps in disconnected state. But kernel can
give ps enable/disable command in non associated state hence return
success without posting the request to FW.
Change-Id: I6b559c30cff816c2ba056ef23633fb350e867db7
CRs-Fixed: 2321744
| -rw-r--r-- | core/sme/src/common/sme_power_save.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/core/sme/src/common/sme_power_save.c b/core/sme/src/common/sme_power_save.c index a39a2de27e61..56198afbab10 100644 --- a/core/sme/src/common/sme_power_save.c +++ b/core/sme/src/common/sme_power_save.c @@ -520,11 +520,13 @@ QDF_STATUS sme_ps_enable_disable(tHalHandle hal_ctx, uint32_t session_id, status = sme_enable_sta_ps_check(mac_ctx, session_id); if (status != QDF_STATUS_SUCCESS) { /* - * In non associated state ps state will be disabled in FW. - * Hence, return success if ps disable is requested - * in disconnected state. + * In non associated state driver wont handle the power save + * But kernel expects return status success even + * in the disconnected state. + * TODO: If driver to remember the ps state to further use + * after connection. */ - if (command == SME_PS_DISABLE) + if (!csr_is_conn_state_connected_infra(mac_ctx, session_id)) status = QDF_STATUS_SUCCESS; return status; } |
