diff options
author | Felix Fietkau <nbd@nbd.name> | 2020-07-28 20:41:09 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-09-24 18:10:14 +0200 |
commit | c50d105aa7b289fd07f87a18642c261b31b7b5f5 (patch) | |
tree | d72bd7ab9d8b25cd8732f372580fda9f3831663d /drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | |
parent | 577dbc6c656da6997dddc6cf842b7954588f2d4e (diff) | |
download | linux-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.c | 2 |
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; |