[PATCH 2/2] net: ynl: allow u8 sub-type for indexed array
Hilal Rahmatullah <[email protected]>
| Newsgroups | org.kernel.vger.netdev,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
add u8 to the supported sub-type for indexed array, it is needed for 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(-) diff --git a/tools/net/ynl/pyynl/ynl_gen_c.py b/tools/net/ynl/pyynl/ynl_gen_c.py index cdc3646f2642..7373a48d5516 100755 --- a/tools/net/ynl/pyynl/ynl_gen_c.py +++ b/tools/net/ynl/pyynl/ynl_gen_c.py @@ -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"]}') -- 2.53.0