mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
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)
This commit is contained in:
parent
f84489ab0b
commit
4d1eb2bd58
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue