summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-06-21 20:15:37 +0000
committermillert <millert@openbsd.org>2002-06-21 20:15:37 +0000
commit224f4b414c8aca08f502f510f4dc8a162fd1c5a2 (patch)
tree6fb320bc118e2843849726ca4ce8ad82306c159c
parentAlphabetise. From Mike Pechkin. (diff)
downloadwireguard-openbsd-224f4b414c8aca08f502f510f4dc8a162fd1c5a2.tar.xz
wireguard-openbsd-224f4b414c8aca08f502f510f4dc8a162fd1c5a2.zip
Clear wi_hostap_info.apflags in wi_attach() to guarantee wihap_shutdown()
doesn't do the wrong thing with quick card insert/ejects.
-rw-r--r--sys/dev/ic/if_wi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c
index a07cc9507e3..7832ea5bb65 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.70 2002/06/21 06:56:24 millert Exp $ */
+/* $OpenBSD: if_wi.c,v 1.71 2002/06/21 20:15:37 millert Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -124,7 +124,7 @@ u_int32_t widebug = WIDEBUG;
#if !defined(lint) && !defined(__OpenBSD__)
static const char rcsid[] =
- "$OpenBSD: if_wi.c,v 1.70 2002/06/21 06:56:24 millert Exp $";
+ "$OpenBSD: if_wi.c,v 1.71 2002/06/21 20:15:37 millert Exp $";
#endif /* lint */
#ifdef foo
@@ -188,6 +188,7 @@ wi_attach(sc)
int error;
sc->wi_flags = 0;
+ sc->wi_hostap_info.apflags = 0;
wi_cor_reset(sc);
wi_reset(sc);