diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-06-21 20:15:38 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-06-21 20:15:38 +0000 |
commit | c284e3087b19d419193a674a1bcab6f618a72520 (patch) | |
tree | d8e535fdf5de131aaf6dce21f4e63d371159dc80 /sys | |
parent | 20a0d9035e6ea7bfba6bc69cdb8fe5d98801f660 (diff) |
Clear wi_hostap_info.apflags in wi_attach() to guarantee wihap_shutdown()
doesn't do the wrong thing with quick card insert/ejects.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/if_wi.c | 5 |
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); |