Skip to contentSkip to conversation

mt76: connac: remove unused reserved field in gtk rekey TLV struct

PATCH In review Nick Huang 2 participants 3 messages Nov 11, 2025

Subsystems (2)
lore
Share & tools
lore

Nick Huang

author
#0 lore raw

PATCH 1/1 mt76: connac: remove unused reserved field in gtk rekey TLV struct

The 'reserverd' field in struct mt76_connac_gtk_rekey_tlv was unused and misspelled. Removing it cleans up the structure definition and improves code readability.

---
 drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h +0 -1
index 27daf4195..28cf46a5f 100644
@@ -1681,7 +1681,6 @@ struct mt76_connac_gtk_rekey_tlv {
 	__le32 group_cipher;
 	__le32 key_mgmt; /* NONE-PSK-IEEE802.1X */
 	__le32 mgmt_group_cipher;
-	u8 reserverd[4];
 } __packed;
 
 #define MT76_CONNAC_WOW_MASK_MAX_LEN			16
Signature · 1 line
2.48.1
maintainer
#1 lore raw
Quoted 14 lines

The 'reserverd' field in struct mt76_connac_gtk_rekey_tlv was unused and misspelled. Removing it cleans up the structure definition and improves code readability.

---
 drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h +0 -0
index 27daf4195..28cf46a5f 100644

drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h struct mt76_connac_gtk_rekey_tlv { · line 1684

Quoted 4 lines
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h +0 -1
@@ -1681,7 +1681,6 @@ struct mt76_connac_gtk_rekey_tlv {
 	__le32 group_cipher;
 	__le32 key_mgmt; /* NONE-PSK-IEEE802.1X */
 	__le32 mgmt_group_cipher;
-	u8 reserverd[4];

This field is used to keep the struct size consistent with the fw one so it is expected to not be used.

Regards,
Lorenzo

Quoted 6 lines
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h +0 -0
 } __packed;
 
 #define MT76_CONNAC_WOW_MASK_MAX_LEN			16
Signature · 1 line
2.48.1
author
#2 lore raw

Lorenzo Bianconi <[email protected]> 於 2025年11月11日 週二 下午10:00寫道:

Quoted 23 lines
Quoted 15 lines

The 'reserverd' field in struct mt76_connac_gtk_rekey_tlv was unused and misspelled. Removing it cleans up the structure definition and improves code readability.

---
 drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h +0 -0
index 27daf4195..28cf46a5f 100644

drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h struct mt76_connac_gtk_rekey_tlv { · line 1684

Quoted 4 lines
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h +0 -1
@@ -1681,7 +1681,6 @@ struct mt76_connac_gtk_rekey_tlv {
      __le32 group_cipher;
      __le32 key_mgmt; /* NONE-PSK-IEEE802.1X */
      __le32 mgmt_group_cipher;
-     u8 reserverd[4];

This field is used to keep the struct size consistent with the fw one so it is expected to not be used.

Quoted 9 lines

Regards,
Lorenzo

Quoted 6 lines
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h +0 -1
 } __packed;
 
 #define MT76_CONNAC_WOW_MASK_MAX_LEN                 16
--

2.48.1

Hi Lorenzo,

Got it, thanks for explaining. Makes sense that this field is just for size consistency.

Cheers,
Nick Huang