iw: display interface TX power if available
PATCH 1/1 iw: display interface TX power if available
Signed-off-by Rafał Miłecki <[email protected]>
---
This makes use of the recently submitted patch [PATCH] nl80211: put current TX power in interface info
--- interface.c | 2 ++ 1 file changed, 2 insertions(+)
interface.c +2 -0
@@ -367,6 +367,8 @@ static int print_iface_handler(struct nl_msg *msg, void *arg)printf ("\n" ); } +if (tb_msg[NL80211_ATTR_WIPHY_TX_POWER_LEVEL ]) +printf ("%s\ttxpower %d mBm\n" , indent,nla_get_u32 (tb_msg[NL80211_ATTR_WIPHY_TX_POWER_LEVEL ]));return NL_SKIP ; }
Signature · 1 line
1.8.4.5