[PATCH] nl80211: Report unexpected frame events to the correct BSS

Jouni Malinen j at w1.fi
Fri Jul 31 02:58:52 PDT 2026


On Tue, Jul 28, 2026 at 09:32:08PM +0200, Kamil Bienkiewicz wrote:
> nl80211_spurious_frame() resolves the receiving BSS by ifindex and uses
> bss->addr as the BSSID of the event, but delivers the event to drv->ctx,
> which is the context of drv->first_bss.
> 
> When several hostapd_iface instances share a single driver instance -
> for example an AP MLD and additional AP BSSes on the same wiphy, where
> wpa_driver_nl80211_can_share_drv() matches on the phy name - that is not
> the BSS the frame was received on. hostapd_rx_from_unknown_sta() then
> looks bss->addr up in the wrong interface, get_hapd_bssid() returns NULL
> and the event is discarded. A 4-address (WDS) station associates and
> completes the 4-way handshake, but its AP_VLAN interface is never
> created and it passes no traffic, with nothing logged above debug level.
> 
> Use bss->ctx, as the other per-BSS events in this file already do.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list