aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-06-27 20:34:49 (GMT)
committerJouni Malinen <j@w1.fi>2015-06-27 20:34:49 (GMT)
commit6c7314917bb69998fa4465f4b63caf2562b33670 (patch)
treec831c1f84bd9c41bfbcfc014c43587f14eb69ad7 /hostapd/config_file.c
parent7c1fd15f86572f0b7a3dee861db539616d82f935 (diff)
downloadhostap-6c7314917bb69998fa4465f4b63caf2562b33670.zip
hostap-6c7314917bb69998fa4465f4b63caf2562b33670.tar.gz
hostap-6c7314917bb69998fa4465f4b63caf2562b33670.tar.bz2
AP: Increase maximum value accepted for cwmin/cwmax
The cwmin/cwmax parameters were limited more than is needed. Allow the full range (0..15 for wmm_ac_??_{cwmin,cwmax} and 1..32767 for tx_queue_data?_{cwmin,cwmax}) to be used. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index d7d5a12..49f8320 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -899,7 +899,9 @@ static int hostapd_config_read_int10(const char *value)
static int valid_cw(int cw)
{
return (cw == 1 || cw == 3 || cw == 7 || cw == 15 || cw == 31 ||
- cw == 63 || cw == 127 || cw == 255 || cw == 511 || cw == 1023);
+ cw == 63 || cw == 127 || cw == 255 || cw == 511 || cw == 1023 ||
+ cw == 2047 || cw == 4095 || cw == 8191 || cw == 16383 ||
+ cw == 32767);
}