From cf08e9b1f499b78c7ffab79649b369c763b695e1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 11 Jan 2015 19:44:23 +0200 Subject: [PATCH] Add MESH to modes capabilities This makes it easier for upper layer programs to figure out whether the wpa_supplicant and and the driver supports mesh. Signed-off-by: Jouni Malinen --- wpa_supplicant/ctrl_iface.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 31b075e4d..9c3f93d66 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -3594,6 +3594,16 @@ static int ctrl_iface_get_capability_modes(int res, char *strict, pos += ret; } +#ifdef CONFIG_MESH + if (capa->flags & WPA_DRIVER_FLAGS_MESH) { + ret = os_snprintf(pos, end - pos, "%sMESH", + pos == buf ? "" : " "); + if (os_snprintf_error(end - pos, ret)) + return pos - buf; + pos += ret; + } +#endif /* CONFIG_MESH */ + return pos - buf; }