aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus/dbus_new_handlers.c
diff options
context:
space:
mode:
authorSaurav Babu <saurav.babu@samsung.com>2017-02-20 10:28:21 (GMT)
committerJouni Malinen <j@w1.fi>2017-02-20 20:14:19 (GMT)
commit213eb18851da734f12846877509d7cf4d41ab90e (patch)
treea4fcf614929a86bc9d13a1e8a742c9b7f57b62b3 /wpa_supplicant/dbus/dbus_new_handlers.c
parentc7c964cd460e733d0b712e5e4c15a7eba78dc26c (diff)
downloadhostap-213eb18851da734f12846877509d7cf4d41ab90e.zip
hostap-213eb18851da734f12846877509d7cf4d41ab90e.tar.gz
hostap-213eb18851da734f12846877509d7cf4d41ab90e.tar.bz2
dbus: Set mode to mesh in bss properties when mesh is supported
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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
index a6548ba..e6f356b 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers.c
@@ -3766,6 +3766,7 @@ dbus_bool_t wpas_dbus_getter_bss_mode(
struct bss_handler_args *args = user_data;
struct wpa_bss *res;
const char *mode;
+ const u8 *mesh;
res = get_bss_helper(args, error, __func__);
if (!res)
@@ -3784,7 +3785,10 @@ dbus_bool_t wpas_dbus_getter_bss_mode(
break;
}
} else {
- if (res->caps & IEEE80211_CAP_IBSS)
+ mesh = wpa_bss_get_ie(res, WLAN_EID_MESH_ID);
+ if (mesh)
+ mode = "mesh";
+ else if (res->caps & IEEE80211_CAP_IBSS)
mode = "ad-hoc";
else
mode = "infrastructure";