Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Aug 2002 17:58:08 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        gavin@itworks.com.au
Cc:        mobile@FreeBSD.ORG
Subject:   Re: Latest wi0 crashes with stable
Message-ID:  <20020818.175808.07018346.imp@bsdimp.com>
In-Reply-To: <002b01c2470c$71057d40$6401a8c0@bugs>
References:  <075b01c246a6$15c199c0$6401a8c0@bugs> <20020818.103816.01051524.imp@bsdimp.com> <002b01c2470c$71057d40$6401a8c0@bugs>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <002b01c2470c$71057d40$6401a8c0@bugs>
            "Gavin Cameron" <gavin@itworks.com.au> writes:
: > : > 
: > : > Are you bridging, and if so how?
: > : > 
: > : Nope... no bridging.
: > 
: > OK.  You aren't by chance running dhclient on the wi0 interface are
: > you?
: > 
: 
: Nope. At the moment I'm running pppoed on the interface. Previously
: I was just doing standard routing with WEP enabled. Both the standard
: routing and pppoed show the same symptoms.

Try this patch to see if this is what busted things.

Again, to summarize: You are using hostap mode, but not bridging,
right?

Index: if_wi.c
===================================================================
RCS file: /cache/ncvs/src/sys/dev/wi/if_wi.c,v
retrieving revision 1.103.2.2
diff -u -r1.103.2.2 if_wi.c
--- if_wi.c	2 Aug 2002 07:11:34 -0000	1.103.2.2
+++ if_wi.c	18 Aug 2002 23:56:48 -0000
@@ -1660,16 +1660,13 @@
 		 * wi_init() by just setting PROMISC in the hardware.
 		 */
 		if (ifp->if_flags & IFF_UP) {
-			if (sc->wi_ptype != WI_PORTTYPE_AP &&
-			    ifp->if_flags & IFF_RUNNING) {
+			if (ifp->if_flags & IFF_RUNNING) {
 				if (ifp->if_flags & IFF_PROMISC &&
 				    !(sc->wi_if_flags & IFF_PROMISC)) {
 					WI_SETVAL(WI_RID_PROMISC, 1);
 				} else if (!(ifp->if_flags & IFF_PROMISC) &&
 				    sc->wi_if_flags & IFF_PROMISC) {
 					WI_SETVAL(WI_RID_PROMISC, 0);
-				} else {
-					wi_init(sc);
 				}
 			} else {
 				wi_init(sc);
@@ -2094,7 +2091,7 @@
 	 *      and always reset promisc mode in Host-AP regime,
 	 *      it shows us all the packets anyway.
 	 */
-	if (sc->wi_ptype != WI_PORTTYPE_AP && ifp->if_flags & IFF_PROMISC)
+	if (/* sc->wi_ptype != WI_PORTTYPE_AP && */ ifp->if_flags & IFF_PROMISC)
 		WI_SETVAL(WI_RID_PROMISC, 1);
 	else
 		WI_SETVAL(WI_RID_PROMISC, 0);

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020818.175808.07018346.imp>