diff options
| author | Mahesh A Saptasagar <c_msapta@qti.qualcomm.com> | 2016-05-16 13:06:38 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-05-17 12:52:15 +0530 |
| commit | c748cebcc34beabd409bca7ca4ded4a95df7d546 (patch) | |
| tree | 63cecfad203afcaef5ff87c0c215303f803cfac5 | |
| parent | 9bddfb75a1e53fcbedcfd57c6e4b72f423b24782 (diff) | |
qcacld-2.0 Return success for load twice for same mode
With the current implementation, if framework issues load twice for the
same mode, then driver unloads and returns failure to framework which
results in failure to turn on the STA if SAP is ON and vice versa.
To mitigate this issue, return success if driver load request
is requested twice for same mode without unloading the driver.
Change-Id: I1d8bbda1d928f61263284cf63e14ca809c1cdb56
CRs-Fixed: 1016797
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c index e440eb33b481..bb85b78a4db8 100644 --- a/CORE/HDD/src/wlan_hdd_main.c +++ b/CORE/HDD/src/wlan_hdd_main.c @@ -9200,10 +9200,7 @@ static int kickstart_driver(bool load, bool mode_change) } if (load && wlan_hdd_inited && !mode_change) { - /* Error condition */ - hdd_driver_exit(); - wlan_hdd_inited = 0; - ret_status = -EINVAL; + ret_status = 0; } else { hdd_driver_exit(); |
