mac80211: move TX station pointer and restructure TX
[cascardo/linux.git] / drivers / net / wireless / mac80211_hwsim.c
index 643f968..ed1386a 100644 (file)
@@ -709,7 +709,9 @@ static bool mac80211_hwsim_tx_frame_no_nl(struct ieee80211_hw *hw,
        return ack;
 }
 
-static void mac80211_hwsim_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
+static void mac80211_hwsim_tx(struct ieee80211_hw *hw,
+                             struct ieee80211_tx_control *control,
+                             struct sk_buff *skb)
 {
        bool ack;
        struct ieee80211_tx_info *txi;
@@ -741,8 +743,8 @@ static void mac80211_hwsim_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
 
        if (txi->control.vif)
                hwsim_check_magic(txi->control.vif);
-       if (txi->control.sta)
-               hwsim_check_sta_magic(txi->control.sta);
+       if (control->sta)
+               hwsim_check_sta_magic(control->sta);
 
        ieee80211_tx_info_clear_status(txi);