wifi: check if supplicant is running before starting it
Wrong property was used to check if wpa_supplicant was running. Fix this Change-Id: I6a5bd7a3acae84f5ba4bba317d04191e0e59b2e7 Author: Jonathan DE CESCO <jonathan.de.cesco@intel.com> Signed-off-by: Jonathan DE CESCO <jonathan.de.cesco@intel.com> Signed-off-by: Shuo Gao <shuo.gao@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Author-tracking-BZ: 66748
This commit is contained in:
parent
8d674a4b6f
commit
eed817e46e
1 changed files with 1 additions and 1 deletions
|
@ -538,7 +538,7 @@ int wifi_start_supplicant(int p2p_supported)
|
|||
}
|
||||
|
||||
/* Check whether already running */
|
||||
if (property_get(supplicant_name, supp_status, NULL)
|
||||
if (property_get(supplicant_prop_name, supp_status, NULL)
|
||||
&& strcmp(supp_status, "running") == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue