]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt7615: fix slow performance when enable encryption
authorRyder Lee <ryder.lee@mediatek.com>
Mon, 3 Jun 2019 06:08:44 +0000 (14:08 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 27 Jun 2019 10:58:13 +0000 (12:58 +0200)
commit9c11a67e146dda4a2199120df2ea67da1d8c4892
treebf2a858e99b317b765a10e2de4a05a0315cef956
parent3447c82a122c6b91a27b8eeb3ee3a3c3d7e9f083
mt76: mt7615: fix slow performance when enable encryption

Fix wrong WCID assignment and add RKV (RX Key of this entry is valid)
flag to check if peer uses the same configuration with previous
handshaking.

If the configuration is mismatch, WTBL indicates a “cipher mismatch”
to stop SEC decryption to prevent the packet from damage.

Suggested-by: YF Luo <yf.luo@mediatek.com>
Suggested-by: Yiwei Chung <yiwei.chung@mediatek.com>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/init.c
drivers/net/wireless/mediatek/mt76/mt7615/main.c
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c