Re: [PATCH wireless-next] wifi: mac80211: find the station of a freed 802.3 frame for AQL
From: Felix Fietkau
Date: Mon Nov 23 2026 - 03:45:48 EST
On 22.11.26 16:05, Julius Bairaktaris wrote:
ieee80211_report_used_skb() returns a frame's pending airtime to theI think this is the wrong approach. The driver reporting tx status for 802.3 frames without a station pointer cannot possibly work in 4 address mode (since the Ethernet addresses do not identify the sta).
station found from the 802.11 header. An encap offloaded frame starts
with its 802.3 header instead, so the lookup finds no station, the
station keeps the charge, and once its leaked airtime exceeds its limit
ieee80211_txq_airtime_check() stops scheduling it until it reassociates.
Drivers with AQL and encap offload reach this through
ieee80211_free_txskb() wherever they drop a frame without knowing its
station, for example when firmware recovery returns the frames it held.
Look up an encap offloaded frame's station with
ieee80211_lookup_ra_sta(), as ieee80211_subif_start_xmit_8023() did on
transmit.
Fixes: 50ff477a8639 ("mac80211: add 802.11 encapsulation offloading support")
Signed-off-by: Julius Bairaktaris <julius@xxxxxxxxxxxxxx>
Please fix the driver instead to keep track of the sta and pass it to mac80211 on tx status. This has the extra benefit of being more efficient by avoiding an extra lookup.
- Felix