diff options
author | Felix Fietkau | 2018-01-25 11:44:24 +0100 |
---|---|---|
committer | Kalle Valo | 2018-01-26 10:20:52 +0100 |
commit | 30ce7f4456ae40e970d9e82fe63c5e55147af0c0 (patch) | |
tree | 06b61298712b3cc88b4fbcbaff9d72fc04576655 /drivers/net/wireless/mediatek/mt76/mt76x2_init.c | |
parent | mt76: pass the per-vif wcid to the core for multicast rx (diff) | |
download | kernel-qcow2-linux-30ce7f4456ae40e970d9e82fe63c5e55147af0c0.tar.gz kernel-qcow2-linux-30ce7f4456ae40e970d9e82fe63c5e55147af0c0.tar.xz kernel-qcow2-linux-30ce7f4456ae40e970d9e82fe63c5e55147af0c0.zip |
mt76: validate rx CCMP PN
Apparently hardware does not perform CCMP PN validation in hardware, so
we need to take care of this in the driver. This is important for
protecting against replay attacks.
Since validation of fragmented frames is more complex, the CCMP header
for those is preserved. To keep the counter in sync, the first fragment
is verified by both mt76 and mac80211, and all other fragments only by
mac80211.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x2_init.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x2_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2_init.c b/drivers/net/wireless/mediatek/mt76/mt76x2_init.c index 1e34b578b151..1b00ae4465a2 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2_init.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x2_init.c @@ -131,7 +131,7 @@ mt76_write_mac_initvals(struct mt76x2_dev *dev) { MT_RX_FILTR_CFG, 0x00015f97 }, { MT_LEGACY_BASIC_RATE, 0x0000017f }, { MT_HT_BASIC_RATE, 0x00004003 }, - { MT_PN_PAD_MODE, 0x00000002 }, + { MT_PN_PAD_MODE, 0x00000003 }, { MT_TXOP_HLDR_ET, 0x00000002 }, { 0xa44, 0x00000000 }, { MT_HEADER_TRANS_CTRL_REG, 0x00000000 }, |