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:
Mukul Sharma 2016-09-03 15:54:10 +05:30 • committed by qcabuildsw
commit 4d1eb2bd58

View file

@ -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;
}