diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-02-08 17:07:27 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-04-11 18:50:38 +0200 |
commit | 730d6d0da8d8f5905faafe645a5b3c08ac3f5a8f (patch) | |
tree | 53b8ca289aa155a45cd19fe87aa026f6a85f261d /drivers/net/wireless/mediatek/mt76/mt76.h | |
parent | 90e3abf07c80a70f31227eea861f306312d5dbea (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76.h')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76.h b/drivers/net/wireless/mediatek/mt76/mt76.h index 695b58d7eadc..5561f81c64f7 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76.h +++ b/drivers/net/wireless/mediatek/mt76/mt76.h @@ -223,6 +223,7 @@ struct mt76_wcid { u16 idx; u8 hw_key_idx; + u8 hw_key_idx2; u8 sta:1; u8 ext_phy:1; |