1 From: =?utf-8?q?Rafa=C5=82_Mi=C5=82ecki?= <zajec5@gmail.com>
2 Date: Tue, 1 Sep 2015 09:55:52 +0200
3 Subject: iw: display interface TX power if available
5 Content-Type: text/plain; charset="utf-8"
6 Content-Transfer-Encoding: 8bit
8 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
10 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
12 interface.c | 7 +++++++
13 1 file changed, 7 insertions(+)
17 @@ -441,6 +441,13 @@ static int print_iface_handler(struct nl
18 indent, txp / 100, txp % 100);
21 + if (tb_msg[NL80211_ATTR_WIPHY_TX_POWER_LEVEL]) {
22 + uint32_t txp = nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_TX_POWER_LEVEL]);
24 + printf("%s\ttxpower %d.%.2d dBm\n",
25 + indent, txp / 100, txp % 100);