Return-path: Received: from py-out-1112.google.com ([64.233.166.181]:17949 "EHLO py-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760971AbXK2WUJ (ORCPT ); Thu, 29 Nov 2007 17:20:09 -0500 Received: by py-out-1112.google.com with SMTP id u77so3907554pyb for ; Thu, 29 Nov 2007 14:20:09 -0800 (PST) Message-ID: <43e72e890711291420g1cebb8a6vfe59a520d42867b5@mail.gmail.com> (sfid-20071129_222015_840445_5E21C116) Date: Thu, 29 Nov 2007 17:20:08 -0500 From: "Luis R. Rodriguez" To: "Francesco Gringoli" Subject: Re: ath5k: filter patch Cc: linux-wireless@vger.kernel.org, "Johannes Berg" , "Thomas Graf" , "Jiri Slaby" , "Michael Wu" In-Reply-To: <43e72e890711291338j3fb7876fp49b7489764fe2d1a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 References: <0D869D0B-A5CF-4AE4-B986-DB168917296B@ing.unibs.it> <43e72e890711291338j3fb7876fp49b7489764fe2d1a@mail.gmail.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Nov 29, 2007 4:38 PM, Luis R. Rodriguez wrote: > On Nov 29, 2007 10:53 AM, Francesco Gringoli > wrote: > > Hello everybody, > > > > I discovered that playing with iface promiscuity to capture traffic > > (including control, promisc and all other stuff) is not working on > > ath5k as rx_filters are never refreshed. To make things going I added > > a single ath5k_hw_set_rx_filters(ah,rfilt) at the end of > > ath5k_configure_filter(). I attach the simple patch. Now tcpdump > > captures everything in monitor mode when iface is set to promisc. > > Are you using monitor or promisc? Promiscous is just supposed to sniff > what you would sniff as if you were on Ethernet -- stuff destined to > your BSSID if STA. Monitor is 'catch it all'. Under this definition, > is it still "misbehaving"? For now you can get a real "monitor" > interface by using iw: > > http://git.sipsolutions.net/iw.git > > However this requires you to have libnl-1.0 pre8. The libnl URL is > down, in fact Thomas's home dir is not even working right now.. hmm, > CC'ing him. You can find pre8 here: > > git://git.kernel.org/pub/scm/libs/netlink/libnl.git So I realize there isn't any documentation for iw, so I started it, I'll try to add more when I have time, I invite other developers to help expand that as we go: http://linuxwireless.org/en/users/Documentation/iw Luis