MFC r343980:

ifconfig(8): display 802.11n rates correctly for 'roam:rate' parameter
This commit is contained in:
Andriy Voskoboinyk 2019-02-16 01:05:22 +00:00
parent 737bef022c
commit a658d1b889
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=344196

View File

@ -4557,7 +4557,9 @@ end:
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);