From owner-freebsd-current@FreeBSD.ORG Thu May 1 23:44:12 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE2101065678 for ; Thu, 1 May 2008 23:44:12 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 886F88FC13 for ; Thu, 1 May 2008 23:44:12 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id E1AFB2BD4B; Fri, 2 May 2008 11:44:10 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BWKd1XoYSjoD; Fri, 2 May 2008 11:44:07 +1200 (NZST) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Fri, 2 May 2008 11:44:07 +1200 (NZST) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 6E8F01142A; Fri, 2 May 2008 11:44:06 +1200 (NZST) Date: Fri, 2 May 2008 11:44:06 +1200 From: Andrew Thompson To: Ben Kaduk Message-ID: <20080501234406.GB69163@citylink.fud.org.nz> References: <480D6667.4020509@errno.com> <47d0403c0804261757w5eb90be4k1f4f06521fe01bd@mail.gmail.com> <20080427040021.GC98671@citylink.fud.org.nz> <47d0403c0805011546k60ad7a84m5bd8bbf145519850@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47d0403c0805011546k60ad7a84m5bd8bbf145519850@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: FreeBSD Current Subject: Re: HEADSUP: 802.11 vap support merged 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: Thu, 01 May 2008 23:44:12 -0000 On Thu, May 01, 2008 at 06:46:06PM -0400, Ben Kaduk wrote: > On 4/27/08, Andrew Thompson wrote: > > On Sat, Apr 26, 2008 at 08:57:27PM -0400, Ben Kaduk wrote: > > > Hi Sam, > > > > > > ifconfig ndis0 up > > > gives me a panic (hand transcribed) > > > Fatal trap 12: page fault while in kernel mode > > > ndis_setstate_80211 > > > > > > I can see why this would happen, can you try this patch. > > > > Sorry for the delay; I just got to test the patch. > > It works, in that the machine no longer panics when I try to frob ndis0 > directly. I can still create a wlan0 on top of ndis0, and this appears to > send and receive traffic properly. Great, thanks for testing. > I can assign ndis0 an IP address and netmask with ifconfig, but > ifconfig ndis0 scan is ``unable to get scan results''. > (I also can't give ndis0 an ssid (SIOCS80211: Invalid argument), and > thus can't send traffic directly on ndis0.) So the vap parent is now just a bystander, you no longer frob it directly. You should be using the wlan0 device for scanning, assigning addresses, etc. cheers, Andrew