]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
dbus: Set mode to mesh in bss properties when mesh is supported
authorSaurav Babu <saurav.babu@samsung.com>
Mon, 20 Feb 2017 10:28:21 +0000 (15:58 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 20 Feb 2017 20:14:19 +0000 (22:14 +0200)
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
wpa_supplicant/dbus/dbus_new_handlers.c

index a6548ba21d72ca6cc2a170fd14eb5bf5bba3068a..e6f356b889b0886cfdeeb679635aed5e2d964fb9 100644 (file)
@@ -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";