[PATCH 02/12] wpa_supplicant: ctrl handle IFNAME for global iface

Janusz Dziedzic janusz.dziedzic at tieto.com
Fri Jan 29 03:21:15 PST 2016


In case of global ctrl iface return "global" as
a result of IFNAME.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic at tieto.com>
---
 wpa_supplicant/ctrl_iface.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index b3d6246..6829aa0 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -9677,6 +9677,9 @@ char * wpa_supplicant_global_ctrl_iface_process(struct wpa_global *global,
 	} else if (os_strncmp(buf, "RELOG", 5) == 0) {
 		if (wpa_debug_reopen_file() < 0)
 			reply_len = -1;
+	} else if (os_strncmp(buf, "IFNAME", 6) == 0) {
+		os_memcpy(reply, "global", 6);
+		reply_len = 6;
 	} else {
 		os_memcpy(reply, "UNKNOWN COMMAND\n", 16);
 		reply_len = 16;
-- 
1.9.1




More information about the Hostap mailing list