static bool ieee80211_tx_frags(struct ieee80211_local *local,
                               struct ieee80211_vif *vif,
-                              struct ieee80211_sta *sta,
+                              struct sta_info *sta,
                               struct sk_buff_head *skbs,
                               bool txpending)
 {
                spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);
 
                info->control.vif = vif;
-               control.sta = sta;
+               control.sta = sta ? &sta->sta : NULL;
 
                __skb_unlink(skb, skbs);
                drv_tx(local, &control, skb);
        struct ieee80211_tx_info *info;
        struct ieee80211_sub_if_data *sdata;
        struct ieee80211_vif *vif;
-       struct ieee80211_sta *pubsta;
        struct sk_buff *skb;
        bool result = true;
        __le16 fc;
        if (sta && !sta->uploaded)
                sta = NULL;
 
-       if (sta)
-               pubsta = &sta->sta;
-       else
-               pubsta = NULL;
-
        switch (sdata->vif.type) {
        case NL80211_IFTYPE_MONITOR:
                if (sdata->u.mntr.flags & MONITOR_FLAG_ACTIVE) {
                break;
        }
 
-       result = ieee80211_tx_frags(local, vif, pubsta, skbs,
-                                   txpending);
+       result = ieee80211_tx_frags(local, vif, sta, skbs, txpending);
 
        ieee80211_tpt_led_trig_tx(local, fc, led_len);
 
                                     struct ieee80211_sub_if_data, u.ap);
 
        __skb_queue_tail(&tx.skbs, skb);
-       ieee80211_tx_frags(local, &sdata->vif, &sta->sta, &tx.skbs, false);
+       ieee80211_tx_frags(local, &sdata->vif, sta, &tx.skbs, false);
        return true;
 }