mt76: mt7915: fix MT_CIPHER_BIP_CMAC_128 setkey
authorRyder Lee <ryder.lee@mediatek.com>
Tue, 8 Dec 2020 16:39:04 +0000 (00:39 +0800)
committerFelix Fietkau <nbd@nbd.name>
Tue, 26 Jan 2021 19:07:46 +0000 (20:07 +0100)
commit2a0145003ae330b3e2110e2e45208c0e8cd2d9ea
tree76aa8d2539da6c179dd6ebe3ec79e4604c6076bf
parent02af31c3cc0f3d43d27f6a2ad3812da89913975d
mt76: mt7915: fix MT_CIPHER_BIP_CMAC_128 setkey

MCU expects to set WLAN_CIPHER_SUITE_CCMP and WLAN_CIPHER_SUITE_AES_CMAC
at the same time, so adding an intermediate buffer for batch update.

Tested-by: Sujuan Chen <sujuan.chen@mediatek.com>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h