3 @@ -62,6 +62,27 @@ static int print_phy_handler(struct nl_m
4 if (tb_msg[NL80211_ATTR_WIPHY_NAME])
5 printf("Wiphy %s\n", nla_get_string(tb_msg[NL80211_ATTR_WIPHY_NAME]));
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("\tCurrent frequency: %d MHz %s\n", nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_FREQ]), mode);
28 nla_for_each_nested(nl_band, tb_msg[NL80211_ATTR_WIPHY_BANDS], rem_band) {
29 printf("\tBand %d:\n", bandidx);