diff options
author | Matthias May <matthias.may@neratec.com> | 2015-10-26 08:38:01 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-10-28 18:53:15 (GMT) |
commit | bc50bb0ada40329fb3c1e606d86bd4b625b689af (patch) | |
tree | b21cf11027ce25acfce98c21ecf3b2af66a92e39 /hostapd/config_file.c | |
parent | 8901189c0f8a5dc881edb000d510dae37116cb2b (diff) | |
download | hostap-bc50bb0ada40329fb3c1e606d86bd4b625b689af.zip hostap-bc50bb0ada40329fb3c1e606d86bd4b625b689af.tar.gz hostap-bc50bb0ada40329fb3c1e606d86bd4b625b689af.tar.bz2 |
Extend the range of values for the RTS threshold
Since we have HT rates the maximum framesize is no longer 2346. The
usual maximum size of an A-MPDU is 65535. To disable RTS, the value -1
is already internally used. Allow it in the configuration parameter.
Signed-off-by: Matthias May <matthias.may@neratec.com>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r-- | hostapd/config_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 3b30e5e..e11a41d 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -2692,7 +2692,7 @@ static int hostapd_config_fill(struct hostapd_config *conf, } } else if (os_strcmp(buf, "rts_threshold") == 0) { conf->rts_threshold = atoi(pos); - if (conf->rts_threshold < 0 || conf->rts_threshold > 2347) { + if (conf->rts_threshold < -1 || conf->rts_threshold > 65535) { wpa_printf(MSG_ERROR, "Line %d: invalid rts_threshold %d", line, conf->rts_threshold); |