Skip to contentSkip to conversation

iw: display interface TX power if available

PATCH New Rafał Miłecki 1 participant 1 message Sep 1, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iw: display interface TX power if available

---
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
index 73ccecd..13806ba 100644
@@ -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