From dfbba5ded4d0c3e6e957ea05a52485f75bca38ac Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 19 Aug 2016 09:06:24 +0000 Subject: [PATCH] correct a rate test introduced in rev 1.326 ok stsp@ --- sbin/ifconfig/ifconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index e638f82403f..c5425598110 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.326 2016/08/15 22:16:46 stsp Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.327 2016/08/19 09:06:24 jsg Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -2348,7 +2348,7 @@ ieee80211_printnode(struct ieee80211_nodereq *nr) if ((nr->nr_flags & (IEEE80211_NODEREQ_AP)) == 0) { if (nr->nr_flags & IEEE80211_NODEREQ_HT) { printf("HT-MCS%d ", nr->nr_txmcs); - } else if (nr->nr_rates) { + } else if (nr->nr_nrates) { printf("%uM ", (nr->nr_rates[nr->nr_txrate] & IEEE80211_RATE_VAL) / 2); -- 2.20.1