summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_iwi.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2005-03-14 13:21:43 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2005-03-14 13:21:43 +0000
commit51b6fe5e5a65d22eaebdb03714ddfcbfe89b91cf (patch)
tree195b81e4666c44e1d792eefb8c08d566bb02c625 /sys/dev/pci/if_iwi.c
parent698c50f6d353f373eee33ef27f1bfccce0ae07e1 (diff)
don't display an error message when re-associating.
this prevents annoying 'unknown association state 9' from happening.
Diffstat (limited to 'sys/dev/pci/if_iwi.c')
-rw-r--r--sys/dev/pci/if_iwi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c
index e702e0c6453..7072ad85998 100644
--- a/sys/dev/pci/if_iwi.c
+++ b/sys/dev/pci/if_iwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwi.c,v 1.29 2005/03/12 13:37:49 damien Exp $ */
+/* $OpenBSD: if_iwi.c,v 1.30 2005/03/14 13:21:42 damien Exp $ */
/*-
* Copyright (c) 2004, 2005
@@ -884,6 +884,10 @@ iwi_notification_intr(struct iwi_softc *sc, struct iwi_rx_buf *buf,
assoc->status));
switch (assoc->state) {
+ case IWI_AUTHENTICATED:
+ /* re-association, do nothing */
+ break;
+
case IWI_ASSOCIATED:
ieee80211_new_state(ic, IEEE80211_S_RUN, -1);
break;