summaryrefslogtreecommitdiff
path: root/sys/dev/ic/if_wi.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2005-11-01 03:10:22 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2005-11-01 03:10:22 +0000
commit2cca60a5dca5db8c9aeeb5b47d83d03486301b53 (patch)
tree7b779b32fea0c2db5b1b4f92da9537b0f27528fc /sys/dev/ic/if_wi.c
parent679fb86ed63d98d4257e46fcd4a5e6c5be741833 (diff)
Remove the call to ieee80211_ifattach() for the moment as it
makes wi prematurely depend on net80211 code which bloats the ramdisks. ok dlg@
Diffstat (limited to 'sys/dev/ic/if_wi.c')
-rw-r--r--sys/dev/ic/if_wi.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c
index 3e25286d2a5..0bd90ea7060 100644
--- a/sys/dev/ic/if_wi.c
+++ b/sys/dev/ic/if_wi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi.c,v 1.123 2005/10/31 05:37:12 jsg Exp $ */
+/* $OpenBSD: if_wi.c,v 1.124 2005/11/01 03:10:21 jsg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -128,7 +128,7 @@ u_int32_t widebug = WIDEBUG;
#if !defined(lint) && !defined(__OpenBSD__)
static const char rcsid[] =
- "$OpenBSD: if_wi.c,v 1.123 2005/10/31 05:37:12 jsg Exp $";
+ "$OpenBSD: if_wi.c,v 1.124 2005/11/01 03:10:21 jsg Exp $";
#endif /* lint */
#ifdef foo
@@ -431,7 +431,9 @@ wi_attach(struct wi_softc *sc, struct wi_funcs *funcs)
* Call MI attach routines.
*/
if_attach(ifp);
- ieee80211_ifattach(ifp);
+ memcpy(((struct arpcom *)ifp)->ac_enaddr, ic->ic_myaddr,
+ ETHER_ADDR_LEN);
+ ether_ifattach(ifp);
printf("\n");
sc->wi_flags |= WI_FLAGS_ATTACHED;