Resending patch in text format. Return of wmm_* parameters to hostapd.conf file for wifi speed up.
2015-06-29 0:59 GMT+03:00 N.Leiten <[email protected]>: > The thing is - this parameters I've got from hostapd.conf on my host > machine and due to comments they are strictly set from 802.11. As for > hostapd itself, I don't gone in deep inspection of WMM part but I saw > some default values regarding tx_queue* parameters (according to > comments this section is used to prioritize traffic from AP to STAs, > and WMM part is in opposite direction, in my oppinion last one is also > used to determine WMM capable stations which gives us such speed > improvements) in source code of hostapd, maybe there's some analogue > for WMM but somehow it don't get applied when configuration file > loaded. So for now the easiest and fast way to fix this is to set > config with parameters that hostapd expects. > > 2015-06-29 0:21 GMT+03:00 Linus Lüssing <[email protected]>: >> On Sun, Jun 28, 2015 at 09:16:58PM +0300, N.Leiten wrote: >>> As a result I got full 100Mbit/s on AR71XX platform and 70-80Mbit on >>> Ralink. I think it is good performance improvement at this moment. >> >> Interesting, thanks for sharing your results! >> >> If these settings are generally diserable, maybe it might make >> sense to patch hostapd to set them by default if they aren't set >> explicitly, instead of through netifd? That way anyone, not only >> OpenWRT users might benefit from it. >> >> Cheers, Linus
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-28 21:01:39.054827123 +0300 *************** *** 207,212 **** --- 207,235 ---- 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 "ignore_broadcast_ssid=$hidden" "$N" append bss_conf "uapsd_advertisement_enabled=$uapsd" "$N"
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
