]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Reduce minimum beacon interval from 15 to 10 TUs
authorBrendan Jackman <brendan.jackman@bluwireless.co.uk>
Fri, 5 Apr 2019 12:36:42 +0000 (12:36 +0000)
committerJouni Malinen <j@w1.fi>
Sat, 6 Apr 2019 14:05:09 +0000 (17:05 +0300)
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>
hostapd/config_file.c

index ee3ae65f364be9da8be34e586578d3b9db3e46da..42f3b40ef48b2b641a8cc8ba741f159610bb31d8 100644 (file)
@@ -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;
                }