diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2005-10-31 05:37:14 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2005-10-31 05:37:14 +0000 |
commit | a2d379a412d70d7f18266b90eecf61bf75aed786 (patch) | |
tree | 84985c08244149b919e5764f45df064882d6dd64 /sys/dev/pci | |
parent | c06fa02432169ca616ff550b4d24d80656030da6 (diff) |
Move from arpcom to ieee80211com in wi softc. This will be
required for net80211 support.
Updated version of a diff from dlg@
similiar diff ok fgsch@, ok dlg@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_wi_pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_wi_pci.c b/sys/dev/pci/if_wi_pci.c index 86f07d31582..847fd97fbd2 100644 --- a/sys/dev/pci/if_wi_pci.c +++ b/sys/dev/pci/if_wi_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi_pci.c,v 1.41 2005/09/11 18:17:08 mickey Exp $ */ +/* $OpenBSD: if_wi_pci.c,v 1.42 2005/10/31 05:37:13 jsg Exp $ */ /* * Copyright (c) 2001-2003 Todd C. Miller <Todd.Miller@courtesan.com> @@ -45,6 +45,7 @@ #include <sys/device.h> #include <sys/timeout.h> #include <sys/socket.h> +#include <sys/tree.h> #include <net/if.h> #include <net/if_dl.h> @@ -57,6 +58,7 @@ #include <net80211/ieee80211.h> #include <net80211/ieee80211_ioctl.h> +#include <net80211/ieee80211_var.h> #include <machine/bus.h> @@ -159,11 +161,9 @@ void wi_pci_power(int why, void *arg) { struct wi_softc *sc = (struct wi_softc *)arg; - struct ifnet *ifp; if (why == PWR_RESUME) { - ifp = &sc->sc_arpcom.ac_if; - if (ifp->if_flags & IFF_UP) + if (sc->sc_ic.ic_if.if_flags & IFF_UP) wi_init(sc); } } |