Author: avos
Date: Sun Feb 10 21:32:39 2019
New Revision: 343980
URL: https://svnweb.freebsd.org/changeset/base/343980

Log:
  ifconfig(8): display 802.11n rates correctly for 'roam:rate' parameter
  
  MFC after:    5 days

Modified:
  head/sbin/ifconfig/ifieee80211.c

Modified: head/sbin/ifconfig/ifieee80211.c
==============================================================================
--- head/sbin/ifconfig/ifieee80211.c    Sun Feb 10 21:27:03 2019        
(r343979)
+++ head/sbin/ifconfig/ifieee80211.c    Sun Feb 10 21:32:39 2019        
(r343980)
@@ -5080,7 +5080,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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to