Revert "mt76: mt76x02: send no-skb tx status without holding the status lock"

This reverts commit 4d8c7e8284.
To be replaced by upstream fix

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2019-04-29 17:20:50 +02:00
parent 0e674c50a5
commit 59f7bb6fbf
+1 -6
View File
@@ -469,7 +469,6 @@ void mt76x02_send_tx_status(struct mt76x02_dev *dev,
struct mt76x02_sta *msta = NULL;
struct mt76_dev *mdev = &dev->mt76;
struct sk_buff_head list;
bool status_noskb = false;
if (stat->pktid == MT_PACKET_ID_NO_ACK)
return;
@@ -524,14 +523,10 @@ void mt76x02_send_tx_status(struct mt76x02_dev *dev,
if (status.skb)
mt76_tx_status_skb_done(mdev, status.skb, &list);
else
status_noskb = true;
ieee80211_tx_status_ext(mt76_hw(dev), &status);
out:
mt76_tx_status_unlock(mdev, &list);
if (status_noskb)
ieee80211_tx_status_ext(mt76_hw(dev), &status);
rcu_read_unlock();
}