Skip to contentSkip to conversation

net: ynl: allow u8 sub-type for indexed array

PATCH In review Hilal Rahmatullah 2 participants 3 messages Aug 20 – Aug 21

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ynl: allow u8 sub-type for indexed array

add u8 as supported subtype for indexed array, this is required for attribute NL80211_STA_INFO_CHAIN_SIGNAL serialization.

---
 tools/net/ynl/pyynl/ynl_gen_c.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/net/ynl/pyynl/ynl_gen_c.py +1 -1
index cdc3646f2642..7373a48d5516 100755
@@ -1158,7 +1158,7 @@ class AttrSet(SpecAttrSet):
         elif elem['type'] == 'nest':
             t = TypeNest(self.family, self, elem, value)
         elif elem['type'] == 'indexed-array' and 'sub-type' in elem:
-            if elem["sub-type"] in ['binary', 'nest', 'u32']:
+            if elem["sub-type"] in ['binary', 'nest', 'u32', 'u8']:
                 t = TypeIndexedArray(self.family, self, elem, value)
             else:
                 raise Exception(f'new_attr: unsupported sub-type {elem["sub-type"]}')
Signature · 1 line
2.53.0
maintainer
#1 lore raw
Quoted 2 lines · On Thu, 20 Aug 2026 18:09:03 +0700 Hilal Rahmatullah wrote:

add u8 as supported subtype for indexed array, this is required for attribute NL80211_STA_INFO_CHAIN_SIGNAL serialization.

Could you please send this as part of a series which adds that field? Otherwise it's a bit hard to review

#2 lore raw
Quoted 6 lines · Jakub Kicinski
Quoted 2 lines · On Thu, 20 Aug 2026 18:09:03 +0700 Hilal Rahmatullah wrote:

add u8 as supported subtype for indexed array, this is required for attribute NL80211_STA_INFO_CHAIN_SIGNAL serialization.

Could you please send this as part of a series which adds that field? Otherwise it's a bit hard to review

Surely! I'll work on it