Commit d741abea authored by Leon Yen's avatar Leon Yen Committed by Felix Fietkau

mt76: connac: fix mt76_connac_gtk_rekey_tlv usage

The mistaken structure is introduced since we added the GTK rekey offload
to mt7663. The patch fixes mt76_connac_gtk_rekey_tlv structure according
to the MT7663 and MT7921 firmware we have submitted into
linux-firmware.git.

Fixes: b47e21e7 ("mt76: mt7615: add gtk rekey offload support")
Signed-off-by: default avatarSean Wang <sean.wang@mediatek.com>
Signed-off-by: default avatarLeon Yen <Leon.Yen@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 7e4de0c8
...@@ -844,14 +844,14 @@ struct mt76_connac_gtk_rekey_tlv { ...@@ -844,14 +844,14 @@ struct mt76_connac_gtk_rekey_tlv {
* 2: rekey update * 2: rekey update
*/ */
u8 keyid; u8 keyid;
u8 pad[2]; u8 option; /* 1: rekey data update without enabling offload */
u8 pad[1];
__le32 proto; /* WPA-RSN-WAPI-OPSN */ __le32 proto; /* WPA-RSN-WAPI-OPSN */
__le32 pairwise_cipher; __le32 pairwise_cipher;
__le32 group_cipher; __le32 group_cipher;
__le32 key_mgmt; /* NONE-PSK-IEEE802.1X */ __le32 key_mgmt; /* NONE-PSK-IEEE802.1X */
__le32 mgmt_group_cipher; __le32 mgmt_group_cipher;
u8 option; /* 1: rekey data update without enabling offload */ u8 reserverd[4];
u8 reserverd[3];
} __packed; } __packed;
#define MT76_CONNAC_WOW_MASK_MAX_LEN 16 #define MT76_CONNAC_WOW_MASK_MAX_LEN 16
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment