summaryrefslogtreecommitdiff
path: root/sys/dev/ic/if_wi_hostap.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-04-23 22:25:30 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-04-23 22:25:30 +0000
commit9f3ee59af999d79d1a94220d6bb3d2144c208e53 (patch)
treecc86693380228e9367166aaab2b2b4d3c2af532b /sys/dev/ic/if_wi_hostap.c
parent05336437fade6f9bff26ad3b106348c08326b543 (diff)
Clear flags indicating whether or not wi or hostap is active as
early as possible. Also move the timeout_del() in wi_stop() to before we disable wi(4) so it doesn't fire at the wrong time. Joint effort between mickey@ and myself.
Diffstat (limited to 'sys/dev/ic/if_wi_hostap.c')
-rw-r--r--sys/dev/ic/if_wi_hostap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ic/if_wi_hostap.c b/sys/dev/ic/if_wi_hostap.c
index 3a849f8b670..85a9b096c67 100644
--- a/sys/dev/ic/if_wi_hostap.c
+++ b/sys/dev/ic/if_wi_hostap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi_hostap.c,v 1.13 2002/04/15 19:47:33 millert Exp $ */
+/* $OpenBSD: if_wi_hostap.c,v 1.14 2002/04/23 22:25:29 millert Exp $ */
/*
* Copyright (c) 2002
@@ -276,6 +276,7 @@ wihap_shutdown(struct wi_softc *sc)
if (!(whi->apflags & WIHAPFL_ACTIVE))
return;
+ whi->apflags = 0;
/* XXX: I read somewhere you can deauth all the stations with
* a single broadcast. Maybe try that someday.
@@ -306,8 +307,6 @@ wihap_shutdown(struct wi_softc *sc)
sta = next;
}
splx(s);
-
- whi->apflags = 0;
}
/* sta_hash_func()