summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAjay Dudani <adudani@codeaurora.org>2015-05-03 17:32:49 -0700
committerPatrick Tjin <pattjin@google.com>2015-05-05 10:38:01 -0700
commit85bff332cc3b8ba33e66246052647ca1a546dc42 (patch)
treedb7a0b72ea527c7a7460a25cc36a391316e12c26
parent1c12968f9c8ee7edb71f2accf105246877a833b3 (diff)
downloadhardware_libhardware_legacy-85bff332cc3b8ba33e66246052647ca1a546dc42.zip
hardware_libhardware_legacy-85bff332cc3b8ba33e66246052647ca1a546dc42.tar.gz
hardware_libhardware_legacy-85bff332cc3b8ba33e66246052647ca1a546dc42.tar.bz2
wlan: Fix comparison of driver_status when loading driver
Ensure wifi driver load failure status is compared with valid string which has the failure/success information. Change-Id: I3b619ad0c005fb793d127bd2a23b376ed961d0b7
-rw-r--r--wifi/wifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wifi/wifi.c b/wifi/wifi.c
index 5f24343..4999f55 100644
--- a/wifi/wifi.c
+++ b/wifi/wifi.c
@@ -252,7 +252,7 @@ int wifi_load_driver()
if (property_get(DRIVER_PROP_NAME, driver_status, NULL)) {
if (strcmp(driver_status, "ok") == 0)
return 0;
- else if (strcmp(DRIVER_PROP_NAME, "failed") == 0) {
+ else if (strcmp(driver_status, "failed") == 0) {
wifi_unload_driver();
return -1;
}