summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormglocker <mglocker@openbsd.org>2007-08-11 21:30:30 +0000
committermglocker <mglocker@openbsd.org>2007-08-11 21:30:30 +0000
commitfd0b1ea9266b5a94f7b1d1cea7cfeb41e82238f3 (patch)
tree7f073fb2067924f356df813c8501c2c8c2bf453c
parentadd caveats section, documenting previously undocumented state dumping mechanism; ok jmc@ henning@ (diff)
downloadwireguard-openbsd-fd0b1ea9266b5a94f7b1d1cea7cfeb41e82238f3.tar.xz
wireguard-openbsd-fd0b1ea9266b5a94f7b1d1cea7cfeb41e82238f3.zip
Set command context save flag already in attach routine. Avoids double
processing of command responses.
-rw-r--r--sys/dev/pcmcia/if_malo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pcmcia/if_malo.c b/sys/dev/pcmcia/if_malo.c
index d9b6ed8bec3..448bb3b9d60 100644
--- a/sys/dev/pcmcia/if_malo.c
+++ b/sys/dev/pcmcia/if_malo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_malo.c,v 1.52 2007/08/11 16:22:37 mglocker Exp $ */
+/* $OpenBSD: if_malo.c,v 1.53 2007/08/11 21:30:30 mglocker Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -285,6 +285,9 @@ cmalo_attach(void *arg)
/* enable interrupts */
cmalo_intr_mask(sc, 1);
+ /* we are context save here for FW commands */
+ sc->sc_cmd_ctxsave = 1;
+
/* get hardware specs */
cmalo_cmd_get_hwspec(sc);
@@ -624,9 +627,6 @@ cmalo_init(struct ifnet *ifp)
DPRINTF(1, "%s: current channel is %d\n",
sc->sc_dev.dv_xname, sc->sc_curchan);
- /* we are context save here for FW commands */
- sc->sc_cmd_ctxsave = 1;
-
/* setup device */
if (cmalo_cmd_set_macctrl(sc) != 0)
return (EIO);