Message ID | 1441094152-10977-1-git-send-email-zajec5@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Johannes Berg |
Headers | show |
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; }
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(+)