iw: print expected throughput when dumping station
PATCH 1/1 iw: print expected throughput when dumping station
From: Antonio Quartulli <[email protected]>
Signed-off-by Antonio Quartulli <[email protected]>
---
This patch is based on the "Export the expected throughput towards a peer" patchset sent on linux-wireless
Cheers,
station.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
station.c +10 -0
@@ -226,6 +226,16 @@ static int print_sta_handler(struct nl_msg *msg, void *arg)printf ("\n\trx bitrate:\t%s" , buf); } +if (sinfo[NL80211_STA_INFO_EXPECTED_THROUGHPUT ]) { +uint32_t thr; + + thr =nla_get_u32 (sinfo[NL80211_STA_INFO_EXPECTED_THROUGHPUT ]); +/* convert in Mbps but scale by 1000 to save kbps units */ + thr = thr *1000 /1024 ; + +printf ("\n\tthroughput:\t%u.%uMbps" , thr /1000 , thr %1000 ); + } +if (sinfo[NL80211_STA_INFO_LLID ])printf ("\n\tmesh llid:\t%d" ,nla_get_u16 (sinfo[NL80211_STA_INFO_LLID ]));
Signature · 1 line
1.8.5.5
Quoted 7 lines · Antonio Quartulli
From: Antonio Quartulli <[email protected]>
Signed-off-by Antonio Quartulli <[email protected]>---
This patch is based on the "Export the expected throughput towards a peer" patchset sent on linux-wireless
well, this just means that the iw private copy of nl80211.h needs to be updated in order to use this feature.
Cheers,
Signature · 2 lines
-- Antonio Quartulli
Johannes Berg
AppliedApplied.
johannes