mac80211: Fix MLO address translation for multiple bss case
[platform/kernel/linux-starfive.git] / net / mac80211 / rx.c
index 3262ebb..8f0d7c6 100644 (file)
@@ -4859,6 +4859,9 @@ static bool ieee80211_prepare_and_rx_handle(struct ieee80211_rx_data *rx,
                 */
                shwt = skb_hwtstamps(rx->skb);
                shwt->hwtstamp = skb_hwtstamps(skb)->hwtstamp;
+
+               /* Update the hdr pointer to the new skb for translation below */
+               hdr = (struct ieee80211_hdr *)rx->skb->data;
        }
 
        if (unlikely(rx->sta && rx->sta->sta.mlo)) {