net: ynl: allow u8 sub-type for indexed array
Subsystems (3)
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.
Signed-off-by Hilal Rahmatullah <[email protected]>
--- 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
@@ -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
Jakub Kicinski
maintainerQuoted 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_SIGNALserialization.
Could you please send this as part of a series which adds that field? Otherwise it's a bit hard to review
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_SIGNALserialization.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