Merge "qcacld-3.0: Ignore netdev notifier when driver status is closed" into wlan-cld3.driver.lnx.2.0-dev

This commit is contained in:
CNSS_WLAN Service 2017-10-17 12:54:08 -07:00 • committed by Gerrit - the friendly Code Review server
commit f9557f1c77

View file

@ -510,6 +510,12 @@ static int __hdd_netdev_notifier_call(struct notifier_block *nb,
QDF_ASSERT(0);
return NOTIFY_DONE;
}
if (hdd_ctx->driver_status == DRIVER_MODULES_CLOSED) {
hdd_err("%s: Driver module is closed", __func__);
return NOTIFY_DONE;
}
if (cds_is_driver_recovering() || cds_is_driver_in_bad_state())
return NOTIFY_DONE;