aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2015-01-16 09:29:17 (GMT)
committerJouni Malinen <j@w1.fi>2015-01-19 00:35:43 (GMT)
commit5a2a6de6a5fec58dcfdb4320e4ec2b69d183a4c1 (patch)
tree033be879eaff7e04d448e9f27f48a8a48314153d /wpa_supplicant/config.c
parentb9749bac81cfd4132dfc87a5a94288005dfeec27 (diff)
downloadhostap-5a2a6de6a5fec58dcfdb4320e4ec2b69d183a4c1.zip
hostap-5a2a6de6a5fec58dcfdb4320e4ec2b69d183a4c1.tar.gz
hostap-5a2a6de6a5fec58dcfdb4320e4ec2b69d183a4c1.tar.bz2
mesh: Make inactivity timer configurable
Current mesh code uses ap_max_inactivity as inactivity timer. This patch makes it configurable. There is another mesh inactivity timer in mac80211. The timer works even if user_mpm=1. So this patch sets the max value to the timer for workaround. 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 c389623..1ccae0b 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -3476,6 +3476,7 @@ struct wpa_config * wpa_config_alloc_empty(const char *ctrl_interface,
config->ap_scan = DEFAULT_AP_SCAN;
config->user_mpm = DEFAULT_USER_MPM;
config->max_peer_links = DEFAULT_MAX_PEER_LINKS;
+ config->mesh_max_inactivity = DEFAULT_MESH_MAX_INACTIVITY;
config->fast_reauth = DEFAULT_FAST_REAUTH;
config->p2p_go_intent = DEFAULT_P2P_GO_INTENT;
config->p2p_intra_bss = DEFAULT_P2P_INTRA_BSS;
@@ -4026,6 +4027,7 @@ static const struct global_parse_data global_fields[] = {
#ifdef CONFIG_MESH
{ INT(user_mpm), 0 },
{ INT_RANGE(max_peer_links, 0, 255), 0 },
+ { INT(mesh_max_inactivity), 0 },
#endif /* CONFIG_MESH */
{ INT(disable_scan_offload), 0 },
{ INT(fast_reauth), 0 },