From owner-freebsd-mobile Sun Aug 18 19:38:31 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1214B37B400 for ; Sun, 18 Aug 2002 19:38:29 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id D496243E70 for ; Sun, 18 Aug 2002 19:38:27 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.3/8.12.3) with ESMTP id g7J2cQFl007841; Sun, 18 Aug 2002 20:38:26 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 18 Aug 2002 17:58:08 -0600 (MDT) Message-Id: <20020818.175808.07018346.imp@bsdimp.com> To: gavin@itworks.com.au Cc: mobile@FreeBSD.ORG Subject: Re: Latest wi0 crashes with stable From: "M. Warner Losh" In-Reply-To: <002b01c2470c$71057d40$6401a8c0@bugs> References: <075b01c246a6$15c199c0$6401a8c0@bugs> <20020818.103816.01051524.imp@bsdimp.com> <002b01c2470c$71057d40$6401a8c0@bugs> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message: <002b01c2470c$71057d40$6401a8c0@bugs> "Gavin Cameron" 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