summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2017-08-29 20:06:51 +0000
committerstsp <stsp@openbsd.org>2017-08-29 20:06:51 +0000
commitf10c8d4c3948bc2f853cb6e67b0d1a6088ca4baf (patch)
tree86fc443079d81fe0599899db5b597669b27d42a3
parentadd _MEASURE_RATE bits from uonerng(4) (diff)
downloadwireguard-openbsd-f10c8d4c3948bc2f853cb6e67b0d1a6088ca4baf.tar.xz
wireguard-openbsd-f10c8d4c3948bc2f853cb6e67b0d1a6088ca4baf.zip
Don't use isset() from sys/param.h in ifconfig. Requested by deraadt
-rw-r--r--sbin/ifconfig/ifconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 08d48ac1b0d..bb52ac90458 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.346 2017/08/01 19:01:08 benno Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.347 2017/08/29 20:06:51 stsp Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -2366,7 +2366,7 @@ ieee80211_printnode(struct ieee80211_nodereq *nr)
printf("%uM HT ", nr->nr_max_rxrate);
} else if (nr->nr_rxmcs[0] != 0) {
for (i = IEEE80211_HT_NUM_MCS - 1; i >= 0; i--) {
- if (isset(nr->nr_rxmcs, i))
+ if (nr->nr_rxmcs[i / 8] & (1 << (i / 10)))
break;
}
printf("HT-MCS%d ", i);