Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Update BSSID at every CONNECTED LINK_STAT notific...



details:   https://anonhg.NetBSD.org/src/rev/281a4ae4d5b2
branches:  trunk
changeset: 537882:281a4ae4d5b2
user:      onoe <onoe%NetBSD.org@localhost>
date:      Mon Oct 07 11:01:52 2002 +0000

description:
Update BSSID at every CONNECTED LINK_STAT notification in IBSS mode,
since it can be updated by IBSS merge. Also the lucent firmware 8.10.1
changes random generated bssid every 10 seconds in IBSS creation enable.
PR 18520

diffstat:

 sys/dev/ic/wi.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r a1de39e2ad0f -r 281a4ae4d5b2 sys/dev/ic/wi.c
--- a/sys/dev/ic/wi.c   Mon Oct 07 10:39:27 2002 +0000
+++ b/sys/dev/ic/wi.c   Mon Oct 07 11:01:52 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wi.c,v 1.98 2002/10/04 04:23:20 onoe Exp $     */
+/*     $NetBSD: wi.c,v 1.99 2002/10/07 11:01:52 onoe Exp $     */
 
 /*
  * Copyright (c) 1997, 1998, 1999
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.98 2002/10/04 04:23:20 onoe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.99 2002/10/07 11:01:52 onoe Exp $");
 
 #define WI_HERMES_AUTOINC_WAR  /* Work around data write autoinc bug. */
 #define WI_HERMES_STATS_WAR    /* Work around stats counter bug. */
@@ -1193,7 +1193,8 @@
                switch (le16toh(stat)) {
                case CONNECTED:
                        sc->sc_flags &= ~WI_FLAGS_OUTRANGE;
-                       if (ic->ic_state == IEEE80211_S_RUN)
+                       if (ic->ic_state == IEEE80211_S_RUN &&
+                           ic->ic_opmode != IEEE80211_M_IBSS)
                                break;
                        /* FALLTHROUGH */
                case AP_CHANGE:



Home | Main Index | Thread Index | Old Index