Skip to content

ffac-mt7915-backlog: initial version#19

Closed
maurerle wants to merge 1 commit intomainfrom
ffac-mt7915-backlog
Closed

ffac-mt7915-backlog: initial version#19
maurerle wants to merge 1 commit intomainfrom
ffac-mt7915-backlog

Conversation

@maurerle
Copy link
Member

@maurerle maurerle commented Sep 30, 2025

When the backlog queue fill up, the device does not respond over wlan reliably. Sometimes, the backlog is cleared after a few minutes, but in busy environments this takes far too long and gets the system into an unresponsive state. Pings are not responend, traffic is stalled.

I experienced these issues on various Zyxel NWA 55 AXE as well as on an Acer Vero W6M in busy environments.

See also: openwrt/mt76#1009

When the backlog queue fill up, the device does not respond over wlan reliably.
Sometimes, the backlog is cleared after a few minutes,
but in busy environments this takes far too long and gets the system into an unresponsive state.
Pings are not responend, traffic is stalled.

I experienced these issues on various Zyxel NWA 55 AXE as well as on an Acer Vero W6M in busy environments.
# SPDX-License-Identifier: MIT
include $(TOPDIR)/rules.mk

PKG_NAME:=ffac-mt7915-hotfix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong package name

define Package/$(PKG_NAME)
SECTION:=gluon
CATEGORY:=Gluon
TITLE:=reboot device if mt7915e driver shows known failure symptom
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong description

if [ "$backlog" -gt 50 ]; then
logger -s -t "ffac-mt7915-backlog" -p 5 "$phy_name: Backlog > 50 ($backlog) - restarting wifi"
wifi
wifi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy paste issue: wifi twice in lines 9 and 10

this might prevent elif from working

@@ -0,0 +1,15 @@
#!/bin/sh

for phy in /sys/kernel/debug/ieee80211/phy*; do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phy is wrong for mt7622

phy_name=$(basename "$phy")
backlog=$(iw phy "$phy_name" get txq | awk '/Backlog/ {print $2}')

if [ "$backlog" -gt 50 ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe set 50 as a variable so it can be adjusted above and then used here and in the logger message

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest either using a value larger than 50 or only running wifi on second or third run discovering that a backlog has accumulated to prevent wifi from being restarted constantly (bad user experience since it disconnects all clients).

@maurerle
Copy link
Member Author

maurerle commented Oct 2, 2025

This package triggers every 5 minutes and does not really improve the situation.. Except for creating some logging of it

@maurerle maurerle closed this in #20 Nov 6, 2025
@maurerle maurerle deleted the ffac-mt7915-backlog branch December 28, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants