[OpenWrt-Devel] [PATCH] hostapd netifd wmm configuration for speedup wifi.
N.Leiten
nickleiten at gmail.com
Tue Jun 30 05:05:53 EDT 2015
Speed up wifi up to 2 times in Access Point mode. On rt5350 platfrom I
got speed up from 35-40Mbit to 70-80Mbit, on ar71xx I got improvement
from 45Mbit to 100Mbit with this parameters set in hostapd.conf. It
seems that hostapd expects not only 'wmm_enabled=1' key but also
parameters for WMM.
Signed-off-by: Vadim Gamov <nickleiten at gmail.com>
diff -c -r a/package/network/services/hostapd/files/netifd.sh
b/package/network/services/hostapd/files/netifd.sh
*** a/package/network/services/hostapd/files/netifd.sh 2015-06-09
15:00:07.000000000 +0300
--- b/package/network/services/hostapd/files/netifd.sh 2015-06-30
11:55:34.905366123 +0300
***************
*** 207,212 ****
--- 207,250 ----
append bss_conf "disassoc_low_ack=$disassoc_low_ack" "$N"
append bss_conf "preamble=$short_preamble" "$N"
append bss_conf "wmm_enabled=$wmm" "$N"
+ if [ "$wmm" -gt 0 ];then
+ append bss_conf "wmm_ac_bk_cwmin=4" "$N"
+ append bss_conf "wmm_ac_bk_cwmax=10" "$N"
+ append bss_conf "wmm_ac_bk_aifs=7" "$N"
+ append bss_conf "wmm_ac_bk_txop_limit=0" "$N"
+ append bss_conf "wmm_ac_bk_acm=0" "$N"
+ append bss_conf "wmm_ac_be_aifs=3" "$N"
+ append bss_conf "wmm_ac_be_cwmin=4" "$N"
+ append bss_conf "wmm_ac_be_cwmax=10" "$N"
+ append bss_conf "wmm_ac_be_txop_limit=0" "$N"
+ append bss_conf "wmm_ac_be_acm=0" "$N"
+ append bss_conf "wmm_ac_vi_aifs=2" "$N"
+ append bss_conf "wmm_ac_vi_cwmin=3" "$N"
+ append bss_conf "wmm_ac_vi_cwmax=4" "$N"
+ append bss_conf "wmm_ac_vi_txop_limit=94" "$N"
+ append bss_conf "wmm_ac_vi_acm=0" "$N"
+ append bss_conf "wmm_ac_vo_aifs=2" "$N"
+ append bss_conf "wmm_ac_vo_cwmin=2" "$N"
+ append bss_conf "wmm_ac_vo_cwmax=3" "$N"
+ append bss_conf "wmm_ac_vo_txop_limit=47" "$N"
+ append bss_conf "wmm_ac_vo_acm=0" "$N"
+ fi
+ append bss_conf "tx_queue_data3_aifs=7" "$N"
+ append bss_conf "tx_queue_data3_cwmin=15" "$N"
+ append bss_conf "tx_queue_data3_cwmax=1023" "$N"
+ append bss_conf "tx_queue_data3_burst=0" "$N"
+ append bss_conf "tx_queue_data2_aifs=3" "$N"
+ append bss_conf "tx_queue_data2_cwmin=15" "$N"
+ append bss_conf "tx_queue_data2_cwmax=63" "$N"
+ append bss_conf "tx_queue_data2_burst=0" "$N"
+ append bss_conf "tx_queue_data1_aifs=1" "$N"
+ append bss_conf "tx_queue_data1_cwmin=7" "$N"
+ append bss_conf "tx_queue_data1_cwmax=15" "$N"
+ append bss_conf "tx_queue_data1_burst=3.0" "$N"
+ append bss_conf "tx_queue_data0_aifs=1" "$N"
+ append bss_conf "tx_queue_data0_cwmin=3" "$N"
+ append bss_conf "tx_queue_data0_cwmax=7" "$N"
+ append bss_conf "tx_queue_data0_burst=1.5" "$N"
append bss_conf "ignore_broadcast_ssid=$hidden" "$N"
append bss_conf "uapsd_advertisement_enabled=$uapsd" "$N"
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list