aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus/dbus_new_handlers.c
diff options
context:
space:
mode:
authorSaurav Babu <saurav.babu@samsung.com>2017-02-22 14:33:41 (GMT)
committerJouni Malinen <j@w1.fi>2017-02-26 10:05:40 (GMT)
commitd02989f2e454d4494276026c830d0eaf2d4eeeb9 (patch)
tree34f53a3f751b551f1429e973d6353f1dcb3aea25 /wpa_supplicant/dbus/dbus_new_handlers.c
parent361afb4f0f45668114cb423b8aeb8344c24d8b89 (diff)
downloadhostap-d02989f2e454d4494276026c830d0eaf2d4eeeb9.zip
hostap-d02989f2e454d4494276026c830d0eaf2d4eeeb9.tar.gz
hostap-d02989f2e454d4494276026c830d0eaf2d4eeeb9.tar.bz2
D-Bus: Notify mesh capability if driver supports it
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Diffstat (limited to 'wpa_supplicant/dbus/dbus_new_handlers.c')
-rw-r--r--wpa_supplicant/dbus/dbus_new_handlers.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
index e6f356b..5fca4a7 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers.c
@@ -2673,6 +2673,11 @@ dbus_bool_t wpas_dbus_getter_capabilities(
!wpa_s->conf->p2p_disabled &&
!wpa_dbus_dict_string_array_add_element(
&iter_array, "p2p")) ||
+#ifdef CONFIG_MESH
+ (res >= 0 && (capa.flags & WPA_DRIVER_FLAGS_MESH) &&
+ !wpa_dbus_dict_string_array_add_element(
+ &iter_array, "mesh")) ||
+#endif /* CONFIG_MESH */
!wpa_dbus_dict_end_string_array(&iter_dict,
&iter_dict_entry,
&iter_dict_val,