summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad Asaad Akram <asadkrm@codeaurora.org>2021-03-23 21:35:29 +0530
committerMohammad Asaad Akram <asadkrm@codeaurora.org>2021-03-24 09:03:40 +0530
commit717f58316141d70b369cd6c974ff1a6e7c395f42 (patch)
treee4185dca0b4058fa142ebaae88a128e8b862c570
parentdc304be4ce897998c8fc844ee61a4fce277e29c2 (diff)
wpa_supplicant_8_lib: Print status as returned by oem-ss
This commit allows wpa_supplicant_8_lib to print the oem command status as returned by the library. Change-Id: Ia0baa1327218428b2af239e907ac2d8ae686a043 CRs-Fixed: 2906773
-rw-r--r--qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c
index 7c34b1c..a09a938 100644
--- a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c
+++ b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c
@@ -1879,9 +1879,9 @@ int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf,
return strlen(buf);
} else if ((ret == WPA_DRIVER_OEM_STATUS_FAILURE) &&
(status != 0)) {
- wpa_printf(MSG_DEBUG, "%s: Received error: %d",
- __func__, ret);
- return -1;
+ wpa_printf(MSG_DEBUG, "%s: Received error: %d status: %d",
+ __func__, ret, status);
+ return status;
}
/* else proceed with legacy handling as below */
}