state: bridge SSID tx_failed/tx_retries gap on mt76 and ath11k#92
Open
firasshaari wants to merge 1 commit into
Open
state: bridge SSID tx_failed/tx_retries gap on mt76 and ath11k#92firasshaari wants to merge 1 commit into
firasshaari wants to merge 1 commit into
Conversation
mt76 (mt7621/mt7915) and ath11k (QSDK) drivers do not propagate per-STA TX status to mac80211. As a result, ssid.counters.tx_failed and ssid.counters.tx_retries always report 0 even under heavy traffic. Each driver tracks comparable RF-only retry/fail counters in its own debugfs: mt76: /sys/kernel/debug/ieee80211/<phy>/mt76/tx_stats (BA miss count) ath11k: /sys/kernel/debug/ieee80211/<phy>/ath11k/htt_stats (tx_xretry) Read whichever path the phy's driver exposes and project the failure count onto each VAP, weighted by tx_packets share. The existing generate_deltas pipeline populates ssid.delta_counters automatically. Verified on yuncore_ax820 (mt76) and yuncore_fap655 (ath11k) with live Kafka showing nonzero tx_failed/tx_retries. Signed-off-by: Firas Shaari <firas@80211networks.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
mt76 (mt7621/mt7915) and ath11k (QSDK) drivers do not propagate per-STA TX status to mac80211. The Kafka state payload always reports:
Fix
Each driver tracks RF-only retry/fail counters in its own debugfs:
/sys/kernel/debug/ieee80211/<phy>/mt76/tx_stats/sys/kernel/debug/ieee80211/<phy>/ath11k/htt_stats(type 1)Both represent unicast frames whose ACK never arrived.
wifi.ucnow reads whichever path matches the phy's driver and projects the count onto each VAP weighted by tx_packets share. The existinggenerate_deltaspipeline populatesdelta_countersautomatically.No new schema fields — existing fields just stop being zero.
Verification
Tested on yuncore_ax820 (mt76) and yuncore_fap655 (ath11k). Both show monotonically increasing nonzero tx_failed/tx_retries in live Kafka.
Related wlan-ap-side local patch: Telecominfraproject/wlan-ap#1101
Signed-off-by: Firas Shaari firas@80211networks.com