linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] libertas: monitor mode support for OLPC
       [not found]   ` <8e8340660707051037p56e10ec7u3aa4d76893e0b1ed@mail.gmail.com>
@ 2007-07-06  7:22     ` Holger Schurig
  2007-07-06  8:18       ` Holger Schurig
  2007-07-06 11:08       ` Johannes Berg
  0 siblings, 2 replies; 4+ messages in thread
From: Holger Schurig @ 2007-07-06  7:22 UTC (permalink / raw)
  To: libertas-dev, linux-wireless

Javier, I've also put this thread onto linux-wireless, maybe 
people there are interested in this area, too.

> I use the echo-to-sys way because we are not setting any
> existing interface into monitor mode but creating a new one.

And that is the part that I'm not really liking.

> This is the way Intel ipw2xxx drivers behave and I think it is
> a cleaner solution to have separate interfaces, one for 802.3
> and another one for 802.11+rtap

The ipw2xxx driver is a driver that was developed mostly 
out-of-kernel-tree. I'm not sure if it is a good template on how 
to write a WLAN driver :-)

My problem is really that did create another interface, rtapX. It 
is that you also create a new API on how to monitor. And I have 
the feeling that we have an inflation of APIs for turning on 
monitor mode:

* there is "iwconfig eth1 mode monitor"
* there is madwifi's way of wlanconfig
* there is ipw22xx's way of a .config and of modprobe "ipw2200
  rtap_iface=1" and "ifconfig rtap0 up"
* and now you
  with /sys/class/net/{ethX,mshX}/device/libertas_rtap

Somehow I fear that tools like kismet (or others!) won't honor 
just-another-interface on how to turn monitor mode on.



Why not do it this way:

"iwmode eth1 mode monitor" turn's the device into monitor mode. 
That's what by far the most drivers use. In this mode, the 
device will send all frames to the host, e.g. all beacon frames. 
After all, user space can filter:

  tshark -i rtap0 -R '!(wlan.fc.subtype == 8)'

If you think that this creates too much traffic on the USB bus, 
then additionally you can use something 
like /sys/class/net/{ethX,mshX}/device/rtap_filter and expose 
your bitmap.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] libertas: monitor mode support for OLPC
  2007-07-06  7:22     ` [PATCH] libertas: monitor mode support for OLPC Holger Schurig
@ 2007-07-06  8:18       ` Holger Schurig
  2007-07-06 11:08       ` Johannes Berg
  1 sibling, 0 replies; 4+ messages in thread
From: Holger Schurig @ 2007-07-06  8:18 UTC (permalink / raw)
  To: linux-wireless; +Cc: libertas-dev

> My problem is really that did create another interface, rtapX.

Oh, this should have been:

  My problem isn't really that you did create another interface,
  rtapX.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] libertas: monitor mode support for OLPC
  2007-07-06  7:22     ` [PATCH] libertas: monitor mode support for OLPC Holger Schurig
  2007-07-06  8:18       ` Holger Schurig
@ 2007-07-06 11:08       ` Johannes Berg
  2007-07-10 14:54         ` John W. Linville
  1 sibling, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2007-07-06 11:08 UTC (permalink / raw)
  To: Holger Schurig; +Cc: libertas-dev, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 603 bytes --]

Javier, Holger,

> Why not do it this way:
> 
> "iwmode eth1 mode monitor" turn's the device into monitor mode. 
> That's what by far the most drivers use. In this mode, the 
> device will send all frames to the host, e.g. all beacon frames. 
> After all, user space can filter:
> 
>   tshark -i rtap0 -R '!(wlan.fc.subtype == 8)'

I suppose you really should be using cfg80211 to create and change the
mode of new interfaces (and allow only one monitor and/or one STA
interface). Then you actually get a sysfs file for free, and as a bonus
it's the same one mac80211 uses :)

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] libertas: monitor mode support for OLPC
  2007-07-06 11:08       ` Johannes Berg
@ 2007-07-10 14:54         ` John W. Linville
  0 siblings, 0 replies; 4+ messages in thread
From: John W. Linville @ 2007-07-10 14:54 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Holger Schurig, libertas-dev, linux-wireless

On Fri, Jul 06, 2007 at 01:08:46PM +0200, Johannes Berg wrote:
> Javier, Holger,
> 
> > Why not do it this way:
> > 
> > "iwmode eth1 mode monitor" turn's the device into monitor mode. 
> > That's what by far the most drivers use. In this mode, the 
> > device will send all frames to the host, e.g. all beacon frames. 
> > After all, user space can filter:
> > 
> >   tshark -i rtap0 -R '!(wlan.fc.subtype == 8)'
> 
> I suppose you really should be using cfg80211 to create and change the
> mode of new interfaces (and allow only one monitor and/or one STA
> interface). Then you actually get a sysfs file for free, and as a bonus
> it's the same one mac80211 uses :)

ACK

-- 
John W. Linville
linville@tuxdriver.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-10 15:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <468c3f32.081b600a.3817.5051@mx.google.com>
     [not found] ` <200707050842.01533.hs4233@mail.mn-solutions.de>
     [not found]   ` <8e8340660707051037p56e10ec7u3aa4d76893e0b1ed@mail.gmail.com>
2007-07-06  7:22     ` [PATCH] libertas: monitor mode support for OLPC Holger Schurig
2007-07-06  8:18       ` Holger Schurig
2007-07-06 11:08       ` Johannes Berg
2007-07-10 14:54         ` John W. Linville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).