[PATCH 7/9] wpa_ctrl: use common separator for IPv4/IPv6
Janusz Dziedzic
janusz.dziedzic
Wed Sep 23 05:04:17 PDT 2015
Use common separator between host and port for
IPv4 and IPv6.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic at tieto.com>
---
src/common/wpa_ctrl.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/common/wpa_ctrl.c b/src/common/wpa_ctrl.c
index 820dd12..c3ffa6f 100644
--- a/src/common/wpa_ctrl.c
+++ b/src/common/wpa_ctrl.c
@@ -361,11 +361,8 @@ struct wpa_ctrl * wpa_ctrl_open(const char *ctrl_path)
os_free(ctrl);
return NULL;
}
-#ifdef CONFIG_CTRL_IFACE_UDP_IPV6
+
port = os_strchr(name, ',');
-#else /* CONFIG_CTRL_IFACE_UDP_IPV6 */
- port = os_strchr(name, ':');
-#endif /* CONFIG_CTRL_IFACE_UDP_IPV6 */
if (port) {
port_id = atoi(&port[1]);
--
1.9.1
More information about the Hostap
mailing list