summaryrefslogtreecommitdiff
path: root/sbin/ifconfig/ifconfig.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2017-03-21 07:24:37 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2017-03-21 07:24:37 +0000
commita6d40b12886bcccace92b008b78884bca0f1b511 (patch)
tree2f7b7b7f303b6536110420c77b31520d0805559a /sbin/ifconfig/ifconfig.c
parent0fc205df36973c744f5b92301e4394d9cfa4cd7b (diff)
Replace a magic number with the corresponding macro from ieee80211_ioctl.h.
No functional change. ok deraadt@ tb@
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-rw-r--r--sbin/ifconfig/ifconfig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 608f9715792..18adfea8d85 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.339 2017/03/12 03:18:57 stsp Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.340 2017/03/21 07:24:36 stsp Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -1637,7 +1637,7 @@ setifnwkey(const char *val, int d)
nwkey.i_defkid = 1;
if (d == -1) {
/* disable WEP encryption */
- nwkey.i_wepon = 0;
+ nwkey.i_wepon = IEEE80211_NWKEY_OPEN;
i = 0;
} else if (strcasecmp("persist", val) == 0) {
/* use all values from persistent memory */
@@ -2120,7 +2120,7 @@ ieee80211_status(void)
}
}
- if (inwkey == 0 && nwkey.i_wepon > 0) {
+ if (inwkey == 0 && nwkey.i_wepon > IEEE80211_NWKEY_OPEN) {
fputs(" nwkey ", stdout);
/* try to retrieve WEP keys */
for (i = 0; i < IEEE80211_WEP_NKID; i++) {