aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2014-12-19 05:59:52 (GMT)
committerJouni Malinen <j@w1.fi>2014-12-21 21:52:31 (GMT)
commit4b4093686bf0e2ce198e0d66cdae000f6e581013 (patch)
tree9c6419d989ac953c8dce6424bfb63ba4f6d7d871 /wpa_supplicant/mesh.c
parent8b2600329f23ce7e20c8018efc79b52dd8a6e0e5 (diff)
downloadhostap-4b4093686bf0e2ce198e0d66cdae000f6e581013.zip
hostap-4b4093686bf0e2ce198e0d66cdae000f6e581013.tar.gz
hostap-4b4093686bf0e2ce198e0d66cdae000f6e581013.tar.bz2
mesh: Make maximum number of peer links configurable
Maximum number of peer links is maximum number of connecting mesh peers at the same time. This value is 0..255 based on the dot11MeshNumberOfPeerings range. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'wpa_supplicant/mesh.c')
-rw-r--r--wpa_supplicant/mesh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c
index 7adfa63..7a4f3de 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -169,7 +169,7 @@ static int wpa_supplicant_mesh_init(struct wpa_supplicant *wpa_s,
bss->iconf = conf;
ifmsh->conf = conf;
- ifmsh->bss[0]->max_plinks = 99;
+ ifmsh->bss[0]->max_plinks = wpa_s->conf->max_peer_links;
os_strlcpy(bss->conf->iface, wpa_s->ifname, sizeof(bss->conf->iface));
mconf = mesh_config_create(ssid);
@@ -323,6 +323,7 @@ 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;
+ params.max_peer_links = wpa_s->conf->max_peer_links;
#ifdef CONFIG_IEEE80211N
params.ht_mode = ssid->mesh_ht_mode;
#endif /* CONFIG_IEEE80211N */