3 @@ -260,6 +260,27 @@ static int print_iface_handler(struct nl
4 printf("%s\tifindex %d\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_IFINDEX]));
5 if (tb_msg[NL80211_ATTR_IFTYPE])
6 printf("%s\ttype %s\n", indent, iftype_name(nla_get_u32(tb_msg[NL80211_ATTR_IFTYPE])));
7 + if (tb_msg[NL80211_ATTR_WIPHY_FREQ]) {
10 + if (tb_msg[NL80211_ATTR_WIPHY_CHANNEL_TYPE])
11 + switch(nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_CHANNEL_TYPE])) {
12 + case NL80211_CHAN_HT20:
15 + case NL80211_CHAN_HT40PLUS:
18 + case NL80211_CHAN_HT40MINUS:
25 + printf("%s\tfrequency %d MHz %s\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_FREQ]), mode);