aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.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/config.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/config.c')
-rw-r--r--wpa_supplicant/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index bd80b29..d3a8c86 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -3450,6 +3450,7 @@ struct wpa_config * wpa_config_alloc_empty(const char *ctrl_interface,
config->eapol_version = DEFAULT_EAPOL_VERSION;
config->ap_scan = DEFAULT_AP_SCAN;
config->user_mpm = DEFAULT_USER_MPM;
+ config->max_peer_links = DEFAULT_MAX_PEER_LINKS;
config->fast_reauth = DEFAULT_FAST_REAUTH;
config->p2p_go_intent = DEFAULT_P2P_GO_INTENT;
config->p2p_intra_bss = DEFAULT_P2P_INTRA_BSS;
@@ -3998,6 +3999,7 @@ static const struct global_parse_data global_fields[] = {
{ FUNC(bgscan), 0 },
#ifdef CONFIG_MESH
{ INT(user_mpm), 0 },
+ { INT_RANGE(max_peer_links, 0, 255), 0 },
#endif /* CONFIG_MESH */
{ INT(disable_scan_offload), 0 },
{ INT(fast_reauth), 0 },