aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh.c
diff options
context:
space:
mode:
authorJason Abele <jason.abele@gmail.com>2014-09-01 04:23:32 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-25 14:45:35 (GMT)
commitfbca4c893d3de77e012e16956f694dfc15be97c2 (patch)
tree1976063a6d8f54625568c42bd45cc0922de873b5 /wpa_supplicant/mesh.c
parentd73b3f2ea026617a6c6aaa2319a62ca6c5d3773f (diff)
downloadhostap-fbca4c893d3de77e012e16956f694dfc15be97c2.zip
hostap-fbca4c893d3de77e012e16956f694dfc15be97c2.tar.gz
hostap-fbca4c893d3de77e012e16956f694dfc15be97c2.tar.bz2
mesh: Implement mesh scanning
When mesh is configured in, include the wildcard mesh id so that mesh networks are returned. Signed-off-by: Javier Lopez <jlopex@gmail.com> Signed-off-by: Jason Abele <jason.abele@gmail.com>
Diffstat (limited to 'wpa_supplicant/mesh.c')
-rw-r--r--wpa_supplicant/mesh.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c
index efacf70..0c160d8 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -257,6 +257,19 @@ void wpa_mesh_notify_peer(struct wpa_supplicant *wpa_s, const u8 *addr,
}
+void wpa_supplicant_mesh_add_scan_ie(struct wpa_supplicant *wpa_s,
+ struct wpabuf **extra_ie)
+{
+ /* EID + 0-length (wildcard) mesh-id */
+ size_t ielen = 2;
+
+ if (wpabuf_resize(extra_ie, ielen) == 0) {
+ wpabuf_put_u8(*extra_ie, WLAN_EID_MESH_ID);
+ wpabuf_put_u8(*extra_ie, 0);
+ }
+}
+
+
int wpa_supplicant_join_mesh(struct wpa_supplicant *wpa_s,
struct wpa_ssid *ssid)
{