aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2016-07-08 05:42:48 (GMT)
committerJouni Malinen <j@w1.fi>2016-07-23 18:58:04 (GMT)
commit4ac2ea57382f2487c5f930609528801cf4583e20 (patch)
tree889720810eb8f8c80d3678ade445324d07db8623 /wpa_supplicant/mesh.c
parentfac72f93dd83f52fd14d7787b2fc9cf4b20762dd (diff)
downloadhostap-4ac2ea57382f2487c5f930609528801cf4583e20.zip
hostap-4ac2ea57382f2487c5f930609528801cf4583e20.tar.gz
hostap-4ac2ea57382f2487c5f930609528801cf4583e20.tar.bz2
mesh: Make DTIM period 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 dd534d4..cdfe51c 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -400,6 +400,10 @@ int wpa_supplicant_join_mesh(struct wpa_supplicant *wpa_s,
params.beacon_int = ssid->beacon_int;
else if (wpa_s->conf->beacon_int > 0)
params.beacon_int = wpa_s->conf->beacon_int;
+ if (ssid->dtim_period > 0)
+ params.dtim_period = ssid->dtim_period;
+ else if (wpa_s->conf->dtim_period > 0)
+ params.dtim_period = wpa_s->conf->dtim_period;
params.max_peer_links = wpa_s->conf->max_peer_links;
if (ssid->key_mgmt & WPA_KEY_MGMT_SAE) {