ifconfig(8): display 802.11n rates correctly for 'roam:rate' parameter

MFC after:	5 days
This commit is contained in:
Andriy Voskoboinyk 2019-02-10 21:32:39 +00:00
parent 345c692d18
commit 2a0f9d5416

View File

@ -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);