summaryrefslogtreecommitdiff
path: root/sys/dev/ic/athn.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2009-11-16 17:08:15 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2009-11-16 17:08:15 +0000
commitda616d22623f622dcef2e8307883164d2eb06493 (patch)
tree30aefef326361b776c0f30f83827ae2108e3bfaa /sys/dev/ic/athn.c
parentc618adea57a8f85c31228f342ec50f2a58868f62 (diff)
do not panic when wep is enabled.
Diffstat (limited to 'sys/dev/ic/athn.c')
-rw-r--r--sys/dev/ic/athn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/athn.c b/sys/dev/ic/athn.c
index 487ba442264..4a3a0862e6e 100644
--- a/sys/dev/ic/athn.c
+++ b/sys/dev/ic/athn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: athn.c,v 1.3 2009/11/15 14:04:02 damien Exp $ */
+/* $OpenBSD: athn.c,v 1.4 2009/11/16 17:08:14 damien Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
@@ -4594,12 +4594,13 @@ athn_init(struct ifnet *ifp)
ifp->if_flags &= ~IFF_OACTIVE;
ifp->if_flags |= IFF_RUNNING;
+#ifdef notyet
if (ic->ic_flags & IEEE80211_F_WEPON) {
/* Configure WEP keys. */
for (i = 0; i < IEEE80211_WEP_NKID; i++)
(void)athn_set_key(ic, NULL, &ic->ic_nw_keys[i]);
}
-
+#endif
if (ic->ic_opmode == IEEE80211_M_MONITOR)
ieee80211_new_state(ic, IEEE80211_S_RUN, -1);
else