mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
Merge "qcacld-3.0: Reject interface up during SSR" into wlan-cld3.driver.lnx.2.0-dev
This commit is contained in:
commit
5e797b3cf6
1 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue