summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorJonathan DE CESCO <jonathan.de.cesco@intel.com>2012-11-20 18:59:34 +0100
committerShuo Gao <shuo.gao@intel.com>2013-01-07 10:42:31 +0800
commiteed817e46ee7351f21673118eda9a5960a483120 (patch)
tree455677e158ffefeff37b18af73df93124dac67d7 /wifi
parent8d674a4b6f4300df90415889c2f57fe8b383e867 (diff)
downloadhardware_libhardware_legacy-eed817e46ee7351f21673118eda9a5960a483120.zip
hardware_libhardware_legacy-eed817e46ee7351f21673118eda9a5960a483120.tar.gz
hardware_libhardware_legacy-eed817e46ee7351f21673118eda9a5960a483120.tar.bz2
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
Diffstat (limited to 'wifi')
-rw-r--r--wifi/wifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wifi/wifi.c b/wifi/wifi.c
index b905897..493c469 100644
--- a/wifi/wifi.c
+++ b/wifi/wifi.c
@@ -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;
}