DORMANTno replies

[PATCH iw] iw: display interface TX power if available

From: Rafał Miłecki <zajec5@gmail.com>
Date: 2015-09-01 07:56:00
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
---
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help