Re: [PATCH ath-next] wifi: ath12k: drop decapped frames with a source other than the station
From: Julius Bairaktaris
Date: Sat Nov 28 2026 - 06:53:14 EST
On 11/25/2026 2:26 PM, Karthikeyan Periyasamy wrote:
> Can you explain the test scenario ?
There is none: I have no ath12k hardware to test with.
Found by an LLM review (Claude) of the code, comparing the decap path
with ieee80211_amsdu_to_8023s(), which drops such a subframe.
> How the user trigger this issue ?
A station associated to an ath12k AP with Ethernet decap, without
4-address mode, sends a 3-address A-MSDU whose subframe header carries
another host's MAC address as source. If the hardware writes that
address into the decapped header, ath12k_dp_rx_h_undecap() sets
RX_FLAG_8023, ieee80211_rx_8023() delivers the frame under it, and the
bridge learns the other host on the Wi-Fi port (br_handle_frame_finish()),
so traffic for that host goes to the station.
Julius