wifi: mac80211: wme: use ap_addr instead of deflink BSSID
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Sep 2022 20:18:19 +0000 (22:18 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Oct 2022 13:24:01 +0000 (15:24 +0200)
We use this to look up the destination station, so it
needs to be the MLD address of the AP for an MLO; use
ap_addr instead of the BSSID.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/wme.c

index ecc1de2..9fab97f 100644 (file)
@@ -211,7 +211,7 @@ u16 ieee80211_select_queue(struct ieee80211_sub_if_data *sdata,
                if (sta)
                        break;
 
-               ra = sdata->deflink.u.mgd.bssid;
+               ra = sdata->vif.cfg.ap_addr;
                break;
        case NL80211_IFTYPE_ADHOC:
                ra = skb->data;