From owner-freebsd-current@FreeBSD.ORG Wed Jul 18 23:16:01 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CB68116A403 for ; Wed, 18 Jul 2007 23:16:01 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id 6438413C47E for ; Wed, 18 Jul 2007 23:16:01 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id CF3E91CC58; Thu, 19 Jul 2007 11:15:59 +1200 (NZST) Date: Thu, 19 Jul 2007 11:15:59 +1200 From: Andrew Thompson To: Scot Hetzel Message-ID: <20070718231559.GA39517@heff.fud.org.nz> References: <790a9fff0707150332u2502a491s91f19d4303bf82a6@mail.gmail.com> <20070715110629.GI95956@heff.fud.org.nz> <790a9fff0707181607n7500b7feo190c58418e047de5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <790a9fff0707181607n7500b7feo190c58418e047de5@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-current@freebsd.org Subject: Re: stopping ndis caused fatal trap 12 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 23:16:01 -0000 On Wed, Jul 18, 2007 at 06:07:37PM -0500, Scot Hetzel wrote: > On 7/15/07, Andrew Thompson wrote: > >On Sun, Jul 15, 2007 at 05:32:32AM -0500, Scot Hetzel wrote: > >> hp010# uname -a > >> FreeBSD hp010 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Jul 14 02:20:09 > >> CDT 2007 root@hp010:/usr/src/7x/sys-p4/amd64/compile/GENERIC.debug > >> amd64 > >> > >> I was testing wpa_supplicant at work, and couldn't get it to associate > >> with the network (open, no encryption), and so I had hardcoded the > >> network. When I went home and booted the system, it still had the > >> hardcoded wireless network configured. I then did a netif stop ndis0, > >> made the change to set ndis to "WPA DHCP", then when I used 'netif > >> start ndis0', it didn't obtain an IP. So I performed an 'netif stop > >> ndis0' and received the following panic: > >> > >So back to the ndis association problem. Did the card find the access > >point? you can list the scan cache from 'ifconfig ndis0 list scan'. > > > > ifconfig ndis0 scan ; ifconfig ndis0 list scan don't return with any > results, but if I run wpa_cli, and do a scan and scan_results it lists > the APs. > > I applied your patch from the previous post and ran the following commands. > > hp010# sysctl net.wlan.0.debug=0xffffffff > net.wlan.0.debug: 0 -> -1 You must be running amd64 :) Its probably best to install wlandebug from /usr/src/tools and use that. > hp010# ifconfig ndis0 scan > === see ndis_dmesg2 ==== > hp010# ifconfig ndis0 list scan > hp010# I have found various problems that I have started fixing up. wpa_supplicant bypasses most of these which is why its able to run better. I will send you a patch at the end of the week for testing. cheers, Andrew