aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2014-12-16 09:52:25 (GMT)
committerJouni Malinen <j@w1.fi>2014-12-21 21:38:20 (GMT)
commit9c58c5f72c14598534951ca3f06894e34fa83200 (patch)
tree8c6585c964f34a4b150fb170be03ae269adf1146 /wpa_supplicant/mesh.c
parent3b797130d75c372fdd76b48d38fec0252b8e0c83 (diff)
downloadhostap-9c58c5f72c14598534951ca3f06894e34fa83200.zip
hostap-9c58c5f72c14598534951ca3f06894e34fa83200.tar.gz
hostap-9c58c5f72c14598534951ca3f06894e34fa83200.tar.bz2
mesh: Make beacon interval configurable
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'wpa_supplicant/mesh.c')
-rw-r--r--wpa_supplicant/mesh.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c
index 68187e0..7adfa63 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -319,6 +319,10 @@ int wpa_supplicant_join_mesh(struct wpa_supplicant *wpa_s,
params.meshid = ssid->ssid;
params.meshid_len = ssid->ssid_len;
params.freq = ssid->frequency;
+ if (ssid->beacon_int > 0)
+ params.beacon_int = ssid->beacon_int;
+ else if (wpa_s->conf->beacon_int > 0)
+ params.beacon_int = wpa_s->conf->beacon_int;
#ifdef CONFIG_IEEE80211N
params.ht_mode = ssid->mesh_ht_mode;
#endif /* CONFIG_IEEE80211N */