[PATCH wireless-next v3 2/8] wifi: mac80211: change public RX API to use link stations
Devin Wittmayer
lucid_duck at justthetip.ca
Thu Aug 20 09:12:07 PDT 2026
On Wed, Aug 19, 2026 at 03:57:06PM +0200, Benjamin Berg wrote:
> - *sta = wcid_to_sta(mstat.wcid);
This moves inside the wcid check, so it no longer happens for every frame.
mt76 uses one variable for a whole receive batch, so a frame with no wcid
keeps the previous frame's station instead of being cleared.
Frames with no wcid are normal rather than rare. On an MT7922 they were
about 98% of everything received, and 16 frames out of roughly 4000 ended
up carrying a leftover station.
No harm that I could show. None of those 16 were data frames, and that is
the only kind mac80211 reads the link station for. Clearing it when there
is no wcid still looks worth doing.
Devin
More information about the ath12k
mailing list