]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mt76: mt7921: fix key set/delete issue
authorLorenzo Bianconi <lorenzo@kernel.org>
Sat, 27 Mar 2021 09:10:14 +0000 (10:10 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 11 Apr 2021 22:03:06 +0000 (00:03 +0200)
commit60468f7fd7072c804b2613f1cadabace8d77d311
tree77b86bce0098ce57204a3739149ee62613191821
parenta226ccd04c479ccd23d6927c64bad1b441707f70
mt76: mt7921: fix key set/delete issue

Similar to the mt7915 driver, 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: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/main.c