[PATCH v2 12/22] wpa_supplicant: udp ctrl show when ITERFACES cmd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Show udp port when handle INTERFACES command.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@xxxxxxxxx>
---
 wpa_supplicant/ctrl_iface.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 6829aa0..0bd5eca 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -9233,7 +9233,12 @@ static int wpa_supplicant_global_iface_interfaces(struct wpa_global *global,
 	end = buf + len;
 
 	while (wpa_s) {
+#ifdef CONFIG_CTRL_IFACE_UDP
+		res = os_snprintf(pos, end - pos, "%s ctrl_iface=%s\n",
+				  wpa_s->ifname, wpa_s->conf->ctrl_interface);
+#else
 		res = os_snprintf(pos, end - pos, "%s\n", wpa_s->ifname);
+#endif
 		if (os_snprintf_error(end - pos, res)) {
 			*pos = '\0';
 			break;
-- 
1.9.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux