Switching WiFi mode results in lower throughput

Switching WiFi mode results in lower throughput

背景

ASP-4953 切换BandWidth 会出现Low Tput,经过Debug,发现使用cfg80211tool athx mode 会出现这个问题,WLAN->LAN,LAN->WLAN均会发生

将切换channel,bandwidth的方式从cfg80211tool 改为hostapd_cli 解决此问题

WiFi mode也使用cfg80211tool athx mode,没有hostapd_cli可以使用,所以切换WiFi mode仍有此问题。

已经进行的尝试

1. 执行command前后加delay(1s/2s),仍然有问题

1
2
3
4
5
6
cfg80211tool ath0 mode 11AHE80
sleep 1
/usr/sbin/hostapd_cli -i ath01 -s /var/run -p /var/run/hostapd-wifi0 enable
sleep 1
/usr/sbin/hostapd_cli -i ath01 -s /var/run -p /var/run/hostapd-wifi0 disable
/sbin/uci set ....

2. 修改command执行顺序,仍然有问题

1
2
3
4
5
6
/usr/sbin/hostapd_cli -i ath01 -s /var/run -p /var/run/hostapd-wifi0 enable
sleep 1
cfg80211tool ath0 mode 11AHE80
sleep 1
/usr/sbin/hostapd_cli -i ath01 -s /var/run -p /var/run/hostapd-wifi0 disable
/sbin/uci set ....

3. 修改架构,解决需要重新关闭guest WiFi的问题,仍有问题

1
2
cfg80211tool ath0 mode 11AHE80
/sbin/uci set ....
  1. 修改架构,移除uci,仍有问题

    1
    cfg80211tool ath0 mode 11AHE80
  2. set disable_auto_target_bringup=1 in /ini/global.ini,添加后没有作用

  3. 出问题后使用hostapd_cli disable/enable,ifconfig down/up,没有作用

    问题差异

  4. 当需要重新关闭ath01时,ipacm demon会挂掉,LAN->WLAN 和 WLAN->LAN 都会出现Low TPut

  5. 当调整架构后,不需要重新关闭ath01,ipacm不会挂掉,只有WLAN->LAN出现Low Tput;换一台手机重新连接,新连接的是正常的,没有问题


Switching WiFi mode results in lower throughput
https://carl-5535.github.io/2024/07/18/工作总结/Switching WiFi mode results in lower throughput/
作者
Carl Chen
发布于
2024年7月18日
许可协议