From baad88a6a23e6bc70322cc20cbcf13439e2a4028 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 6 Feb 2016 20:44:21 +0100 Subject: [PATCH] mt7603: avoid processing tx status information for vif/reserved wtbl entries Signed-off-by: Felix Fietkau --- mt7603_mac.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mt7603_mac.c b/mt7603_mac.c index a3054399..2a0d53c5 100644 --- a/mt7603_mac.c +++ b/mt7603_mac.c @@ -633,10 +633,14 @@ void mt7603_mac_add_txs(struct mt7603_dev *dev, void *data) sta = container_of(priv, struct ieee80211_sta, drv_priv); pid &= MT_PID_INDEX; - if (!mt7603_mac_add_txs_skb(dev, msta, pid, txs_data)) { - mt7603_fill_txs(dev, msta, &info, txs_data); - ieee80211_tx_status_noskb(mt76_hw(dev), sta, &info); - } + if (mt7603_mac_add_txs_skb(dev, msta, pid, txs_data)) + goto out; + + if (wcidx >= MT7603_WTBL_STA) + goto out; + + mt7603_fill_txs(dev, msta, &info, txs_data); + ieee80211_tx_status_noskb(mt76_hw(dev), sta, &info); out: rcu_read_unlock();