* [PATCH] iw: Add VHT info in link query
@ 2013-02-13 4:38 Yogesh Ashok Powar
2013-02-13 8:58 ` Johannes Berg
0 siblings, 1 reply; 3+ messages in thread
From: Yogesh Ashok Powar @ 2013-02-13 4:38 UTC (permalink / raw)
To: linux-wireless; +Cc: Johannes Berg
Show VHT mcs, nss and bw, if present, in
iw dev link.
Eg.,
Connected to 10:6f:3f:4d:94:b4 (on mlan0)
SSID: 122920
freq: 5180
RX: 0 bytes (0 packets)
TX: 88 bytes (1 packets)
signal: -51 dBm
tx bitrate: 650.0 MBit/s VHT-MCS 7 80Mhz short GI VHT-NSS 2
bss flags:
dtim period: 1
beacon int: 100
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
---
link.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/link.c b/link.c
index 3470c4d..ef8f4d3 100644
--- a/link.c
+++ b/link.c
@@ -187,10 +187,20 @@ static int print_link_sta(struct nl_msg *msg, void *arg)
if (rinfo[NL80211_RATE_INFO_MCS])
printf(" MCS %d", nla_get_u8(rinfo[NL80211_RATE_INFO_MCS]));
+ if (rinfo[NL80211_RATE_INFO_VHT_MCS])
+ printf(" VHT-MCS %d", nla_get_u8(rinfo[NL80211_RATE_INFO_VHT_MCS]));
if (rinfo[NL80211_RATE_INFO_40_MHZ_WIDTH])
printf(" 40Mhz");
+ if (rinfo[NL80211_RATE_INFO_80_MHZ_WIDTH])
+ printf(" 80Mhz");
+ if (rinfo[NL80211_RATE_INFO_80P80_MHZ_WIDTH])
+ printf(" 80P80Mhz");
+ if (rinfo[NL80211_RATE_INFO_160_MHZ_WIDTH])
+ printf(" 160Mhz");
if (rinfo[NL80211_RATE_INFO_SHORT_GI])
printf(" short GI");
+ if (rinfo[NL80211_RATE_INFO_VHT_NSS])
+ printf(" VHT-NSS %d", nla_get_u8(rinfo[NL80211_RATE_INFO_VHT_NSS]));
printf("\n");
}
}
--
1.8.0.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] iw: Add VHT info in link query
2013-02-13 4:38 [PATCH] iw: Add VHT info in link query Yogesh Ashok Powar
@ 2013-02-13 8:58 ` Johannes Berg
2013-02-13 9:02 ` Yogesh Ashok Powar
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2013-02-13 8:58 UTC (permalink / raw)
To: Yogesh Ashok Powar; +Cc: linux-wireless
On Wed, 2013-02-13 at 10:08 +0530, Yogesh Ashok Powar wrote:
> Show VHT mcs, nss and bw, if present, in
> iw dev link.
Applied, thanks. I also fixed "Mhz" to "MHz" in the new & existing code.
johannes
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] iw: Add VHT info in link query
2013-02-13 8:58 ` Johannes Berg
@ 2013-02-13 9:02 ` Yogesh Ashok Powar
0 siblings, 0 replies; 3+ messages in thread
From: Yogesh Ashok Powar @ 2013-02-13 9:02 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless@vger.kernel.org
> > Show VHT mcs, nss and bw, if present, in
> > iw dev link.
>
> Applied, thanks. I also fixed "Mhz" to "MHz" in the new & existing code.
OK
Thanks
Yogesh
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-13 9:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-13 4:38 [PATCH] iw: Add VHT info in link query Yogesh Ashok Powar
2013-02-13 8:58 ` Johannes Berg
2013-02-13 9:02 ` Yogesh Ashok Powar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).