From c7579373163a6e595789d8042113c1e880137e83 Mon Sep 17 00:00:00 2001 From: avos Date: Sun, 10 Feb 2019 21:32:39 +0000 Subject: [PATCH] ifconfig(8): display 802.11n rates correctly for 'roam:rate' parameter MFC after: 5 days --- sbin/ifconfig/ifieee80211.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c index c0649e33e783..dcb91e0441da 100644 --- a/sbin/ifconfig/ifieee80211.c +++ b/sbin/ifconfig/ifieee80211.c @@ -5080,7 +5080,9 @@ ieee80211_status(int s) LINE_CHECK("roam:rssi %u.5", rp->rssi/2); else LINE_CHECK("roam:rssi %u", rp->rssi/2); - LINE_CHECK("roam:rate %u", rp->rate/2); + LINE_CHECK("roam:rate %s%u", + (rp->rate & IEEE80211_RATE_MCS) ? "MCS " : "", + get_rate_value(rp->rate)); } else { LINE_BREAK(); list_roam(s);