From c748cebcc34beabd409bca7ca4ded4a95df7d546 Mon Sep 17 00:00:00 2001 From: Mahesh A Saptasagar Date: Mon, 16 May 2016 13:06:38 +0530 Subject: 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 --- CORE/HDD/src/wlan_hdd_main.c | 5 +---- 1 file changed, 1 insertion(+), 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(); -- cgit v1.2.3