From 2cebdee66de6a1c6befe327c2348610478e06032 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 29 Apr 2014 18:47:36 +0300 Subject: [PATCH] Fix MinGW build No need to use ENOBUFS within core wpa_supplicant, so just replace it with -1 to work arounds MinGW build issues. Signed-off-by: Jouni Malinen --- wpa_supplicant/ctrl_iface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index b8b6d951b..14664df0b 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -5534,7 +5534,7 @@ static int wpa_supplicant_vendor_cmd(struct wpa_supplicant *wpa_s, char *cmd, data_len /= 2; data = os_malloc(data_len); if (!data) - return -ENOBUFS; + return -1; if (hexstr2bin(pos, data, data_len)) { wpa_printf(MSG_DEBUG, @@ -5547,7 +5547,7 @@ static int wpa_supplicant_vendor_cmd(struct wpa_supplicant *wpa_s, char *cmd, reply = wpabuf_alloc((buflen - 1) / 2); if (!reply) { os_free(data); - return -ENOBUFS; + return -1; } ret = wpa_drv_vendor_cmd(wpa_s, vendor_id, subcmd, data, data_len,