Re: Latest wi0 crashes with stable

"M. Warner Losh" <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
In message: <002b01c2470c$71057d40$6401a8c0@bugs>
            "Gavin Cameron" <[email protected]> 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 [email protected]
with "unsubscribe freebsd-mobile" in the body of the message
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.