From fc70ea378a6ec8fe216df69151a02eb74688b034 Mon Sep 17 00:00:00 2001 From: Hanumanth Reddy Pothula Date: Wed, 18 Jan 2017 18:19:08 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_driver_ops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/hdd/src/wlan_hdd_driver_ops.c b/core/hdd/src/wlan_hdd_driver_ops.c index 5ae02e58280d..98e0f6d01a55 100644 --- a/core/hdd/src/wlan_hdd_driver_ops.c +++ b/core/hdd/src/wlan_hdd_driver_ops.c @@ -420,6 +420,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); }