qcacld-3.0: Avoid recovery during driver unloading

During wlan unloading, target failure is ignored, no recovery
will happen, refer function ol_target_failure

During wlan unloading, cds_cfg may be freed, can't get
cds_is_self_recovery_enabled state correctly

Change-Id: I321d4029f299ef2eb7a6316faaed90f62e091b4e
CRs-Fixed: 2224058
This commit is contained in:
Zhu Jianmin 2018-05-15 09:04:45 +08:00 • committed by nshrivas
commit 26b9b8a963

View file

@ -1778,6 +1778,11 @@ static void cds_trigger_recovery_work(void *param)
qdf_runtime_lock_t rtl;
qdf_device_t qdf;
if (cds_is_driver_unloading()) {
cds_err("Unloading in progress; ignoring recovery trigger");
return;
}
if (cds_is_driver_recovering()) {
cds_err("Recovery in progress; ignoring recovery trigger");
return;