From 85bff332cc3b8ba33e66246052647ca1a546dc42 Mon Sep 17 00:00:00 2001 From: Ajay Dudani Date: Sun, 3 May 2015 17:32:49 -0700 Subject: 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 --- wifi/wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.1