mt76: fix regression in tx status handling

Tx status reporting needs to work on non-STA WCID entries as well

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2018-10-27 17:36:53 +02:00
parent 14b6c59dc6
commit fdc63f168e
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -459,6 +459,9 @@ void mt76x02_send_tx_status(struct mt76x02_dev *dev,
priv = msta = container_of(wcid, struct mt76x02_sta, wcid);
status.sta = container_of(priv, struct ieee80211_sta,
drv_priv);
}
if (wcid) {
if (stat->pktid)
status.skb = mt76_tx_status_skb_get(mdev, wcid,
stat->pktid);
+1 -1
View File
@@ -143,7 +143,7 @@ mt76_tx_status_skb_add(struct mt76_dev *dev, struct mt76_wcid *wcid,
struct mt76_tx_cb *cb = mt76_tx_skb_cb(skb);
int pid;
if (!wcid || !wcid->sta)
if (!wcid)
return 0;
if (info->flags & IEEE80211_TX_CTL_NO_ACK)