From: jsg Date: Fri, 19 Aug 2016 09:06:24 +0000 (+0000) Subject: correct a rate test introduced in rev 1.326 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=dfbba5ded4d0c3e6e957ea05a52485f75bca38ac;p=openbsd correct a rate test introduced in rev 1.326 ok stsp@ --- 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);