summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanumanth Reddy Pothula <c_hpothu@codeaurora.org>2017-01-18 18:19:08 +0530
committerqcabuildsw <qcabuildsw@localhost>2017-01-23 04:14:09 -0800
commitb06dbca55931c7b3c92588c253a3f672349be82d (patch)
tree50353537ade0820aa4b9dba159658c6a98619237
parentfc23f5b05b23966d812d00010b057a571593dc89 (diff)
qcacld-3.0: Reset unloading in progress on driver remove
When platform driver initiates wlan driver remove, driver state is set to unloading but it is not cleared on successful driver remove, leading unload bit to be set forever and thereby host returns failure for all north bound requests, though driver is loaded successfully after this scenario. After wlan driver is removed, clear the driver unload bit, so that on next successful driver load, host can process north bound requests. Change-Id: I600705b340a824bcaa524e2ed981ad35943fb5cd CRs-Fixed: 1113037
-rw-r--r--core/hdd/src/wlan_hdd_driver_ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_driver_ops.c b/core/hdd/src/wlan_hdd_driver_ops.c
index b50a0bb398e9..126df9d349f6 100644
--- a/core/hdd/src/wlan_hdd_driver_ops.c
+++ b/core/hdd/src/wlan_hdd_driver_ops.c
@@ -421,6 +421,8 @@ static void wlan_hdd_remove(struct device *dev)
__hdd_wlan_exit();
}
+ cds_set_unload_in_progress(false);
+
pr_info("%s: Driver De-initialized\n", WLAN_MODULE_NAME);
}