From: Johannes Berg Date: Mon, 15 Jan 2024 12:26:49 +0000 (+0200) Subject: channel: report punctured subchannel bitmap X-Git-Tag: v6.9~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2c89feb6bbee21cd805a062c2005c38009e1c63;p=thirdparty%2Fiw.git channel: report punctured subchannel bitmap If the used channel is punctured, display the bitmap of subchannels that are punctured. Signed-off-by: Johannes Berg --- diff --git a/interface.c b/interface.c index eeef496..bb1a1d3 100644 --- a/interface.c +++ b/interface.c @@ -385,6 +385,13 @@ static void print_channel(struct nlattr **tb) if (tb[NL80211_ATTR_CENTER_FREQ2]) printf(", center2: %d MHz", nla_get_u32(tb[NL80211_ATTR_CENTER_FREQ2])); + + if (tb[NL80211_ATTR_PUNCT_BITMAP]) { + uint32_t punct = nla_get_u32(tb[NL80211_ATTR_PUNCT_BITMAP]); + + if (punct) + printf(", punctured: 0x%x", punct); + } } else if (tb[NL80211_ATTR_WIPHY_CHANNEL_TYPE]) { enum nl80211_channel_type channel_type;