Skip to content

Commit 9c895ba

Browse files
committed
hostapd: fix wds ap on single-wiphy devices
Ensure events are passed to the right interface Signed-off-by: Felix Fietkau <nbd@nbd.name>
1 parent 95c8b38 commit 9c895ba

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
From: Felix Fietkau <nbd@nbd.name>
2+
Date: Tue, 26 Aug 2025 22:04:57 +0200
3+
Subject: [PATCH] nl80211: fix reporting spurious frame events
4+
5+
When the nl80211 driver is shared across multiple interfaces (on the same
6+
wiphy), nl80211_spurious_frame can send the event to the wrong interface by
7+
using drv->ctx. Fix this by using bss->ctx instead.
8+
9+
Signed-off-by: Felix Fietkau <nbd@nbd.name>
10+
---
11+
12+
--- a/src/drivers/driver_nl80211_event.c
13+
+++ b/src/drivers/driver_nl80211_event.c
14+
@@ -2789,7 +2789,7 @@ static void nl80211_spurious_frame(struc
15+
event.rx_from_unknown.addr = nla_data(tb[NL80211_ATTR_MAC]);
16+
event.rx_from_unknown.wds = wds;
17+
18+
- wpa_supplicant_event(drv->ctx, EVENT_RX_FROM_UNKNOWN, &event);
19+
+ wpa_supplicant_event(bss->ctx, EVENT_RX_FROM_UNKNOWN, &event);
20+
}
21+
22+

0 commit comments

Comments
 (0)