aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2010-01-06 18:48:29 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-06 18:48:29 (GMT)
commit594cf8b9ef9769d0f3c156407f033108946cec31 (patch)
tree0da6ed3a30744d7a4e1472675d1d1282a8ab1ef6 /src/ap
parentd58f4a8177e326441677d2492739af3d272387c7 (diff)
downloadhostap-594cf8b9ef9769d0f3c156407f033108946cec31.zip
hostap-594cf8b9ef9769d0f3c156407f033108946cec31.tar.gz
hostap-594cf8b9ef9769d0f3c156407f033108946cec31.tar.bz2
Fix WMM default parameters
wmm_ac_??_cw{min,max} parameters are in log form When the wme_ac_??_cw{min,max} parameters aren't specified in hostapd.conf, hostapd uses an incorrect set of default values, as the defaults are in 2^x-1 form instead of in log form. This patch changes them over to the expected log form.
Diffstat (limited to 'src/ap')
-rw-r--r--src/ap/ap_config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c
index c695de1..20be2d4 100644
--- a/src/ap/ap_config.c
+++ b/src/ap/ap_config.c
@@ -92,15 +92,15 @@ struct hostapd_config * hostapd_config_defaults(void)
struct hostapd_config *conf;
struct hostapd_bss_config *bss;
int i;
- const int aCWmin = 15, aCWmax = 1024;
+ const int aCWmin = 4, aCWmax = 10;
const struct hostapd_wmm_ac_params ac_bk =
{ aCWmin, aCWmax, 7, 0, 0 }; /* background traffic */
const struct hostapd_wmm_ac_params ac_be =
{ aCWmin, aCWmax, 3, 0, 0 }; /* best effort traffic */
const struct hostapd_wmm_ac_params ac_vi = /* video traffic */
- { aCWmin >> 1, aCWmin, 2, 3000 / 32, 1 };
+ { aCWmin - 1, aCWmin, 2, 3000 / 32, 1 };
const struct hostapd_wmm_ac_params ac_vo = /* voice traffic */
- { aCWmin >> 2, aCWmin >> 1, 2, 1500 / 32, 1 };
+ { aCWmin - 2, aCWmin - 1, 2, 1500 / 32, 1 };
conf = os_zalloc(sizeof(*conf));
bss = os_zalloc(sizeof(*bss));