mt76: mt7915: fix key set/delete issue
authorFelix Fietkau <nbd@nbd.name>
Mon, 22 Mar 2021 20:39:57 +0000 (21:39 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 11 Apr 2021 22:03:03 +0000 (00:03 +0200)
commit1da4fd48d28436f8b690cdc2879603dede6d8355
treea2c4d86695578a92c20dc83af816e689cd69e760
parent12f4be0e6a68650dbc9b73a047748431b2253904
mt76: mt7915: fix key set/delete issue

Deleting a key with the previous key index deletes the current key
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/mt7915/main.c