mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: fix mac status related locking
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+2
-1
@@ -833,12 +833,13 @@ mt7603_mac_add_txs_skb(struct mt7603_dev *dev, struct mt7603_sta *sta, int pid,
|
||||
|
||||
spin_lock_bh(&dev->status_lock);
|
||||
skb = mt7603_mac_status_skb(dev, sta, pid);
|
||||
spin_unlock_bh(&dev->status_lock);
|
||||
|
||||
if (skb) {
|
||||
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
|
||||
mt7603_fill_txs(dev, sta, info, txs_data);
|
||||
mt7603_skb_done(dev, skb, MT7603_CB_TXS_DONE);
|
||||
}
|
||||
spin_unlock_bh(&dev->status_lock);
|
||||
|
||||
return !!skb;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user