NL80211_ATTR_MLO_LINK_ID is a u8 attribute, but it is read with nla_get_u32(). On big endian systems this prints link ID 1 as 16777216. Use nla_get_u8() like the other places do. Fixes: 7794573f9151 ("interface: print links") Signed-off-by: Alexander Wilhelm --- interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface.c b/interface.c index a33d051..92d3020 100644 --- a/interface.c +++ b/interface.c @@ -482,7 +482,7 @@ static int print_iface_handler(struct nl_msg *msg, void *arg) nla_parse_nested(tb, NL80211_ATTR_MAX, link, NULL); printf("%s\t - link", indent); if (tb[NL80211_ATTR_MLO_LINK_ID]) - printf(" ID %2d", nla_get_u32(tb[NL80211_ATTR_MLO_LINK_ID])); + printf(" ID %2d", nla_get_u8(tb[NL80211_ATTR_MLO_LINK_ID])); if (tb[NL80211_ATTR_MAC]) { char buf[20]; --- base-commit: 121d91aaeca37f70977b9ae2b14846a01fd516da change-id: 20261110-mlo-link-id-c02cafcb6c06 Best regards, -- Alexander Wilhelm