summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMahesh A Saptasagar <msapta@codeaurora.org>2014-04-28 12:29:57 +0530
committerLinux Build Service Account <lnxbuild@localhost>2014-11-04 08:22:43 -0700
commitb4a0e1506ec2a59d28181eedb9a2d8dd8a037cf1 (patch)
tree2bda0e3c56a9bb12fae0a12bfe0142aba5afaef9
parent5f84fc07341b7b74839eaa61eebb9377dc2a0176 (diff)
downloadandroid_hardware_libhardware_legacy-b4a0e1506ec2a59d28181eedb9a2d8dd8a037cf1.tar.gz
android_hardware_libhardware_legacy-b4a0e1506ec2a59d28181eedb9a2d8dd8a037cf1.tar.bz2
android_hardware_libhardware_legacy-b4a0e1506ec2a59d28181eedb9a2d8dd8a037cf1.zip
wlan: Fix for improper comparison of driver_status stringstaging/cm-12.0-caf
This commit ensures driver load failure status is compared with valid string which has the failure/success information. Change-Id: I3b619ad0c005fb793d127bd2a23b376ed961d0b7 CRs-Fixed: 652539
-rw-r--r--wifi/wifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wifi/wifi.c b/wifi/wifi.c
index 87be8d8..292089e 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;
}