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

MFC after:	5 days
This commit is contained in:
avos 2019-02-10 21:32:39 +00:00
parent dc4502cae7
commit c757937316

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