wifi: mac80211: skip default WMM setup for AP_VLAN links

AP_VLAN interfaces are never passed to the driver, so setting default WMM
parameters on their links trips the check-sdata-in-driver warning in
drv_conf_tx(), as well as in the BSS_CHANGED_QOS link info notification.
Skip it, matching the existing AP_VLAN handling in this function.

Fixes: 2259d14499 ("wifi: mac80211: set default WMM parameters on all links")
Signed-off-by: Felix Fietkau <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
Felix Fietkau authored and Johannes Berg committed 2026-08-06 14:03:36 +02:00
1 parent 00c786a758
commit 4d8cfff012
1 file changed
+2 -1
+2 -1
View File
@@ -360,7 +360,8 @@ static int ieee80211_vif_update_links(struct ieee80211_sub_if_data *sdata,
link = links[link_id];
ieee80211_link_init(sdata, link_id, &link->data, &link->conf);
ieee80211_link_setup(&link->data);
ieee80211_set_wmm_default(&link->data, true, non_sta);
if (sdata->vif.type != NL80211_IFTYPE_AP_VLAN)
ieee80211_set_wmm_default(&link->data, true, non_sta);
}
if (new_links == 0)