Date: Mon, 5 Mar 2018 08:21:31 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r330459 - stable/11/sbin/ifconfig Message-ID: <201803050821.w258LViE015385@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Mon Mar 5 08:21:31 2018 New Revision: 330459 URL: https://svnweb.freebsd.org/changeset/base/330459 Log: MFC r306836: [ifconfig] correctly display RSSI. Modified: stable/11/sbin/ifconfig/ifieee80211.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sbin/ifconfig/ifieee80211.c ============================================================================== --- stable/11/sbin/ifconfig/ifieee80211.c Mon Mar 5 08:18:13 2018 (r330458) +++ stable/11/sbin/ifconfig/ifieee80211.c Mon Mar 5 08:21:31 2018 (r330459) @@ -3300,8 +3300,8 @@ printmimo(const struct ieee80211_mimo_info *mi) /* NB: don't muddy display unless there's something to show */ if (mi->rssi[0] != 0 || mi->rssi[1] != 0 || mi->rssi[2] != 0) { /* XXX ignore EVM for now */ - printf(" (rssi %d:%d:%d nf %d:%d:%d)", - mi->rssi[0], mi->rssi[1], mi->rssi[2], + printf(" (rssi %.1f:%.1f:%.1f nf %d:%d:%d)", + mi->rssi[0] / 2.0, mi->rssi[1] / 2.0, mi->rssi[2] / 2.0, mi->noise[0], mi->noise[1], mi->noise[2]); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803050821.w258LViE015385>