]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - interface.c
ibss: use correct "MHz" instead of "MHZ"
[thirdparty/iw.git] / interface.c
index 73ccecde6b05b52658d7ae90ffa02eef5cf8ceb1..4f0821d3942f544aaddbb17024a7178441321204 100644 (file)
@@ -368,6 +368,13 @@ static int print_iface_handler(struct nl_msg *msg, void *arg)
                printf("\n");
        }
 
+       if (tb_msg[NL80211_ATTR_WIPHY_TX_POWER_LEVEL]) {
+               uint32_t txp = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_TX_POWER_LEVEL]);
+
+               printf("%s\ttxpower %d.%.2d dBm\n",
+                      indent, txp / 100, txp % 100);
+       }
+
        return NL_SKIP;
 }