]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add MESH to modes capabilities
authorJouni Malinen <j@w1.fi>
Sun, 11 Jan 2015 17:44:23 +0000 (19:44 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 11 Jan 2015 22:19:21 +0000 (00:19 +0200)
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 <j@w1.fi>
wpa_supplicant/ctrl_iface.c

index 31b075e4d29cfef1eda6bebb478b3d71e2bce937..9c3f93d6627d5870cd46040448e1ef266a3fd7c1 100644 (file)
@@ -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;
 }