diff options
| author | Mukul Sharma <mukul@codeaurora.org> | 2016-09-03 15:54:10 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-09-10 19:08:32 -0700 |
| commit | 4d1eb2bd586e00a78ad6bd5ad317d0dff595ba70 (patch) | |
| tree | 1a9ff15fb4fb614d227fa89792659e933ae4c746 | |
| parent | f84489ab0b47dc9c9c8e0768f8023c2235febbaa (diff) | |
qcacld-3.0: Avoid ipa cmd to firmware during driver unload
qcacld-2.0 to qcacld-3.0 propagation
Host should not send the ipa_enable_disable cmd to firmware
during driver unload.
As a part of this fix, Host discards ipa enable/disable
commands during driver unload.
Change-Id: Ib7fe63463eaaa2f124428c73857f19e65bce67a3
CRs-Fixed: 994677
(cherry picked from commit 67c30cf80f9ff7e05637a08f5b25cec6fa20c38e)
| -rw-r--r-- | core/wma/src/wma_scan_roam.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/wma/src/wma_scan_roam.c b/core/wma/src/wma_scan_roam.c index de791f3e982b..03e8686fcc74 100644 --- a/core/wma/src/wma_scan_roam.c +++ b/core/wma/src/wma_scan_roam.c @@ -5263,6 +5263,12 @@ QDF_STATUS wma_ipa_offload_enable_disable(tp_wma_handle wma, return QDF_STATUS_E_FAILURE; } + if (cds_is_driver_recovering()) { + WMA_LOGE("%s Recovery in Progress. State: 0x%x Ignore!!!", + __func__, cds_get_driver_state()); + return QDF_STATUS_E_FAILURE; + } + if (ipa_offload->offload_type > STA_RX_DATA_OFFLOAD) { return QDF_STATUS_E_INVAL; } |
