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(+)

diff --git a/interface.c b/interface.c
index 73ccecd..13806ba 100644
--- a/interface.c
+++ b/interface.c
@@ -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;
 }
-- 
1.8.4.5

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to