summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-07-28 20:41:09 +0200
committerFelix Fietkau <nbd@nbd.name>2020-09-24 18:10:14 +0200
commitc50d105aa7b289fd07f87a18642c261b31b7b5f5 (patch)
treed72bd7ab9d8b25cd8732f372580fda9f3831663d /drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
parent577dbc6c656da6997dddc6cf842b7954588f2d4e (diff)
downloadlinux-stable-c50d105aa7b289fd07f87a18642c261b31b7b5f5.tar.gz
linux-stable-c50d105aa7b289fd07f87a18642c261b31b7b5f5.tar.bz2
linux-stable-c50d105aa7b289fd07f87a18642c261b31b7b5f5.zip
mt76: move mt76_check_agg_ssn to driver tx_prepare calls
mt7615 and newer drivers do not need this, since they use sequence number offload Moving this code also reduces the number of callsites to make it easier to review Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02_mac.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt76x02_mac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
index e4e03beabe43..af2e6ffce001 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
@@ -349,6 +349,8 @@ void mt76x02_mac_write_txwi(struct mt76x02_dev *dev, struct mt76x02_txwi *txwi,
memset(txwi, 0, sizeof(*txwi));
+ mt76_tx_check_agg_ssn(sta, skb);
+
if (!info->control.hw_key && wcid && wcid->hw_key_idx != 0xff &&
ieee80211_has_protected(hdr->frame_control)) {
wcid = NULL;