svn commit: r344196 - in stable: 10/sbin/ifconfig 11/sbin/ifconfig 12/sbin/ifconfig

Andriy Voskoboinyk avos at FreeBSD.org
Sat Feb 16 01:05:24 UTC 2019


Author: avos
Date: Sat Feb 16 01:05:22 2019
New Revision: 344196
URL: https://svnweb.freebsd.org/changeset/base/344196

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

Modified:
  stable/12/sbin/ifconfig/ifieee80211.c
Directory Properties:
  stable/12/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/sbin/ifconfig/ifieee80211.c
  stable/11/sbin/ifconfig/ifieee80211.c
Directory Properties:
  stable/10/   (props changed)
  stable/11/   (props changed)

Modified: stable/12/sbin/ifconfig/ifieee80211.c
==============================================================================
--- stable/12/sbin/ifconfig/ifieee80211.c	Sat Feb 16 00:40:03 2019	(r344195)
+++ stable/12/sbin/ifconfig/ifieee80211.c	Sat Feb 16 01:05:22 2019	(r344196)
@@ -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);


More information about the svn-src-all mailing list