Search Linux Wireless

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Rafał Miłecki <zajec5@xxxxxxxxx>
---
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux