From owner-freebsd-net@FreeBSD.ORG Wed Oct 20 17:15:21 2010 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44F131065670; Wed, 20 Oct 2010 17:15:21 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id DDE018FC1F; Wed, 20 Oct 2010 17:15:20 +0000 (UTC) Received: by vws1 with SMTP id 1so2206669vws.13 for ; Wed, 20 Oct 2010 10:15:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.98.197 with SMTP id r5mr6666337qcn.217.1287594919864; Wed, 20 Oct 2010 10:15:19 -0700 (PDT) Sender: bschmidt@techwires.net Received: by 10.229.41.198 with HTTP; Wed, 20 Oct 2010 10:15:19 -0700 (PDT) X-Originating-IP: [84.180.206.219] In-Reply-To: <20101020083156.GA57472@FreeBSD.org> References: <4763016D.7060100@janh.de> <201010081944.50287.bschmidt@techwires.net> <20101009060239.GA88618@FreeBSD.org> <201010092046.41551.bschmidt@techwires.net> <20101010072730.GA91527@FreeBSD.org> <20101016124152.GA95535@FreeBSD.org> <20101020083156.GA57472@FreeBSD.org> Date: Wed, 20 Oct 2010 19:15:19 +0200 X-Google-Sender-Auth: -6zi5kQWytD0Of7CvQy97uNRwww Message-ID: From: Bernhard Schmidt To: Alexey Dokuchaev Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: 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: Wed, 20 Oct 2010 17:15:21 -0000 2010/10/20 Alexey Dokuchaev : > On Tue, Oct 19, 2010 Bernhard Schmidt wrote: >> Alexey Dokuchaev wrote: >> > Not sure if this is a driver or ifconfig(8) problem, but after I -medi= aopt >> > monitor, ifconfig(8) still reports it in media line: >> > >> > =A0 =A0 media: IEEE 802.11 Wireless Ethernet autoselect >> > >> > However, as I said, scan list gets populated, which suggests ifconfig(= 8) >> > is getting something wrong. Doing -mediaopt monitor the second time >> > "knocks" ifconfig(8) though. >> >> I can't reproduce that on my stable/7 setup, neither in 'UP' nor in 'DOW= N' >> state. Can you post the exact command sequence you've used? The output >> differs though.. >> >> # ifconfig iwi0 mediaopt monitor >> # ifconfig iwi0 up >> # ifconfig iwi0 | grep media >> =A0 =A0 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect ) >> # ifconfig iwi0 -mediaopt monitor >> # ifconfig iwi0 | grep media >> =A0 =A0 media: IEEE 802.11 Wireless Ethernet autoselect > > This scenario works. =A0But try it out after aircrack-ng tools, which set > (P)PROMISC mode on the card (and do not clear it after exit, but in my > understanding this should not affect monitor mode and its indication, no?= ). Correct. # kldload if_iwi # aireplay-ng -9 iwi0 # ifconfig iwi0 iwi0: flags=3D28943 metric 0 mtu 1500 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect ) # ifconfig iwi0 -mediaopt monitor # ifconfig iwi0 iwi0: flags=3D28943 metric 0 mtu 1500 media: IEEE 802.11 Wireless Ethernet autoselect # hmm.. looks correct to me, am I doing something wrong? -- Bernhard