Merge "qcacld-3.0: Reject interface up during SSR" into wlan-cld3.driver.lnx.2.0-dev

This commit is contained in:
CNSS_WLAN Service 2017-10-26 07:28:00 -07:00 • committed by Gerrit - the friendly Code Review server
commit 5e797b3cf6

View file

@ -2563,17 +2563,17 @@ static int __hdd_open(struct net_device *dev)
MTRACE(qdf_trace(QDF_MODULE_ID_HDD, TRACE_CODE_HDD_OPEN_REQUEST,
adapter->sessionId, adapter->device_mode));
if (!hdd_wait_for_recovery_completion()) {
hdd_err("Recovery failed");
return -EIO;
}
/* Nothing to be done if device is unloading */
if (cds_is_driver_unloading()) {
hdd_err("Driver is unloading can not open the hdd");
return -EBUSY;
}
if (cds_is_driver_recovering()) {
hdd_err("WLAN is currently recovering; Please try again.");
return -EBUSY;
}
mutex_lock(&hdd_init_deinit_lock);
hdd_start_driver_ops_timer(eHDD_DRV_OP_IFF_UP);