From owner-freebsd-net@FreeBSD.ORG Sat Oct 9 06:02:39 2010 Return-Path: Delivered-To: net@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id 6E4A91065696; Sat, 9 Oct 2010 06:02:39 +0000 (UTC) Date: Sat, 9 Oct 2010 06:02:39 +0000 From: Alexey Dokuchaev To: Bernhard Schmidt Message-ID: <20101009060239.GA88618@FreeBSD.org> References: <4763016D.7060100@janh.de> <201010081936.14269.bschmidt@techwires.net> <201010081944.50287.bschmidt@techwires.net> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <201010081944.50287.bschmidt@techwires.net> User-Agent: Mutt/1.4.2.1i Cc: Paul B Mahol , net@freebsd.org Subject: Re: Monitor mode not working for iwi(4) on 7.X X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2010 06:02:39 -0000 On Fri, Oct 08, 2010 at 07:44:50PM +0200, Bernhard Schmidt wrote: > On Friday 08 October 2010 19:36:13 Bernhard Schmidt wrote: > > After having another cup of coffee it's pretty obvious what's wrong. > > The only difference between what I did and your scenario is, that I > > didn't use > > ifconfig iwi0 mediaopt monitor > > but > > ifconfig iwi0 monitor I haven't look in the source yet, but what is the difference between "mediaopt monitor" and "monitor"? > > instead.. anyways.. > > > > Attached patched should behave better now. > > Sorry.. correct one this time. Much better! "airodump-ng iwi0" now sees stations in addition to APs, which means it can utilize monitor mode. "ifconfig iwi0 scan" however does not work after that (and "list scan" returns no results) even if I put adapter back to normal (from promisc and monitor modes) with ifconfig(8). kldunloading and loading module again fixes the issue. Injection test "aireplay-ng -9 iwi0" still fails, but as I've been told this is firmware issue (i.e. not possible with iwi(4)), which is also inline with dmesg: kernel: iwi0: firmware error kernel: iwi0: iwi_cmd: cmd 6 not sent, busy kernel: iwi0: device configuration failed Googling shows that people patch Linux drivers to support injection, but I do not know if any of that information is applicable to FreeBSD. Apart from that, machine seems stable, and monitor mode is fixed. Thanks a lot! ./danfe