Message ID | 20241125100913.261319-1-quic_ramess@quicinc.com |
---|---|
State | New |
Headers | show |
Series | iw: print tx power per link for MLD | expand |
diff --git a/interface.c b/interface.c index bb1a1d30385c..0d4ff042c7a6 100644 --- a/interface.c +++ b/interface.c @@ -490,6 +490,11 @@ static int print_iface_handler(struct nl_msg *msg, void *arg) printf("\n%s\t ", indent); print_channel(tb); } + if (tb[NL80211_ATTR_WIPHY_TX_POWER_LEVEL]) { + int32_t txp = nla_get_u32(tb[NL80211_ATTR_WIPHY_TX_POWER_LEVEL]); + + printf("\n%s\t txpower %d.%.2d dBm", indent, txp / 100, txp % 100); + } printf("\n"); } }