[PATCH wireless] wifi: mac80211: Handle AP_VLAN in station link changes

From: Aaradhana Sahu

Date: Thu Nov 19 2026 - 03:45:08 EST


When removing a link of a WDS MLO station associated through an AP_VLAN
interface, drv_change_sta_links() receives the AP_VLAN sdata.

AP_VLAN interfaces are virtual interfaces and are not added to
the driver. Therefore, IEEE80211_SDATA_IN_DRIVER is not set for
the AP_VLAN sdata, triggering the following warning:

WARNING: net/mac80211/driver-ops.c:597 at drv_change_sta_links+0x121/0x235,
Failed check-sdata-in-driver check, flags: 0x0
Call Trace:
drv_change_sta_links
ieee80211_sta_remove_link
ieee80211_del_link_station
nl80211_remove_link_station

This prevents proper link removal for WDS stations associated through
an AP_VLAN interface.

Use get_bss_sdata() to resolve the parent AP interface before checking
the driver state and invoking the driver's change_sta_links() callback.

Fixes: 90233b0ad215 ("wifi: mac80211: Create separate links for VLAN interfaces")
Signed-off-by: Aaradhana Sahu <aaradhana.sahu@xxxxxxxxxxxxxxxx>
---
net/mac80211/driver-ops.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/net/mac80211/driver-ops.c b/net/mac80211/driver-ops.c
index 0e854b0974de..f810df400f6b 100644
--- a/net/mac80211/driver-ops.c
+++ b/net/mac80211/driver-ops.c
@@ -598,6 +598,7 @@ int drv_change_sta_links(struct ieee80211_local *local,
might_sleep();
lockdep_assert_wiphy(local->hw.wiphy);

+ sdata = get_bss_sdata(sdata);
if (!check_sdata_in_driver(sdata))
return -EIO;


---
base-commit: e1dd8486807c1acf9551250b7f81e116a21e6ad6
change-id: 20261119-handle-ap_vlan-in-station-link-changes-5c1d1e9d51e1