Merge "wpa_supplicant(hidl): Return value for get driver commands" am: 170e3046e9
am: f5da5328bd

Change-Id: Ib0aee90330997a8b38f8eb1a8aecb96ed294eb81
diff --git a/wpa_supplicant/hidl/sta_iface.cpp b/wpa_supplicant/hidl/sta_iface.cpp
index ee38088..8e5fa73 100644
--- a/wpa_supplicant/hidl/sta_iface.cpp
+++ b/wpa_supplicant/hidl/sta_iface.cpp
@@ -728,7 +728,7 @@
 	    sizeof(driver_cmd_reply_buf));
 	// Reply is of the format: "Macaddr = XX:XX:XX:XX:XX:XX"
 	std::string reply_str = driver_cmd_reply_buf;
-	if (ret || reply_str.empty() ||
+	if (ret < 0 || reply_str.empty() ||
 	    reply_str.find("=") == std::string::npos) {
 		return {{SupplicantStatusCode::FAILURE_UNKNOWN, ""}, {}};
 	}