diff options
author | Masashi Honma <masashi.honma@gmail.com> | 2015-01-16 09:29:17 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-01-19 00:35:43 (GMT) |
commit | 5a2a6de6a5fec58dcfdb4320e4ec2b69d183a4c1 (patch) | |
tree | 033be879eaff7e04d448e9f27f48a8a48314153d /wpa_supplicant/config.h | |
parent | b9749bac81cfd4132dfc87a5a94288005dfeec27 (diff) | |
download | hostap-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.h')
-rw-r--r-- | wpa_supplicant/config.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h index be82c3c..eeb4ba7 100644 --- a/wpa_supplicant/config.h +++ b/wpa_supplicant/config.h @@ -17,6 +17,7 @@ #endif /* CONFIG_NO_SCAN_PROCESSING */ #define DEFAULT_USER_MPM 1 #define DEFAULT_MAX_PEER_LINKS 99 +#define DEFAULT_MESH_MAX_INACTIVITY 300 #define DEFAULT_FAST_REAUTH 1 #define DEFAULT_P2P_GO_INTENT 7 #define DEFAULT_P2P_INTRA_BSS 1 @@ -1128,6 +1129,14 @@ struct wpa_config { * its certificate chain are included in EAP peer certificate events. */ int cert_in_cb; + + /** + * mesh_max_inactivity - Timeout in seconds to detect STA inactivity + * + * This timeout value is used in mesh STA to clean up inactive stations. + * By default: 300 seconds. + */ + int mesh_max_inactivity; }; |