aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorBrendan Jackman <brendan.jackman@bluwireless.co.uk>2019-04-05 12:36:42 (GMT)
committerJouni Malinen <j@w1.fi>2019-04-06 14:05:09 (GMT)
commitbbed23aee6d963ba2f09fe988e6b1ad90a1ae2ff (patch)
tree9a7d2a174ea3233d6c3c522ce670444726c4f011 /hostapd/config_file.c
parent0487967153aca5eb83c12578a2d27648b9f69d95 (diff)
downloadhostap-bbed23aee6d963ba2f09fe988e6b1ad90a1ae2ff.zip
hostap-bbed23aee6d963ba2f09fe988e6b1ad90a1ae2ff.tar.gz
hostap-bbed23aee6d963ba2f09fe988e6b1ad90a1ae2ff.tar.bz2
hostapd: Reduce minimum beacon interval from 15 to 10 TUs
Very short beacon intervals can be useful for certain scenarios such as minimising association time on PBSSs. Linux supports a minimum of 10[1] so let's reduce the minimum to match that. [1] https://elixir.bootlin.com/linux/latest/ident/cfg80211_validate_beacon_int Signed-off-by: Brendan Jackman <brendan.jackman@bluwireless.co.uk>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index ee3ae65..42f3b40 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3136,9 +3136,10 @@ static int hostapd_config_fill(struct hostapd_config *conf,
* cause problems with the current implementation.
* Since it is unlikely that this small numbers are
* useful in real life scenarios, do not allow beacon
- * period to be set below 15 TU. */
- if (val < 15 || val > 65535) {
- wpa_printf(MSG_ERROR, "Line %d: invalid beacon_int %d (expected 15..65535)",
+ * period to be set below 10 TU. */
+ if (val < 10 || val > 65535) {
+ wpa_printf(MSG_ERROR,
+ "Line %d: invalid beacon_int %d (expected 10..65535)",
line, val);
return 1;
}