OSDN Git Service

mt76: mt7615: fix key set/delete issues
authorFelix Fietkau <nbd@nbd.name>
Mon, 8 Feb 2021 16:07:27 +0000 (17:07 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 11 Apr 2021 16:50:38 +0000 (18:50 +0200)
commit730d6d0da8d8f5905faafe645a5b3c08ac3f5a8f
tree53b8ca289aa155a45cd19fe87aa026f6a85f261d
parent90e3abf07c80a70f31227eea861f306312d5dbea
mt76: mt7615: fix key set/delete issues

There were multiple issues in the current key set/remove code:
- deleting a key with the previous key index deletes the current key
- BIP key would only be uploaded correctly initially and corrupted on rekey

Rework the code to better keep track of multiple keys and check for the
key index before deleting the current key

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76.h
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
drivers/net/wireless/mediatek/mt76/mt7615/main.c