* question regarding cfg80211 monitor modes
@ 2009-12-03 10:48 Holger Schurig
2009-12-03 10:54 ` Johannes Berg
0 siblings, 1 reply; 4+ messages in thread
From: Holger Schurig @ 2009-12-03 10:48 UTC (permalink / raw)
To: linux-wireless
"iw wlan0 set type monitor" allows the following flags:
none: no special flags
fcsfail: show frames with FCS errors
control: show control frames
otherbss: show frames from other BSSes
cook: use cooked mode
However, I don't know how to map them to the Libertas' firmware
flags, which has
Libertas (bits can be ored)
Data frames 0x01
Mgmt frames but beacons 0x02
Beacons 0x04
So I guess that the following could be a translation table:
none 0x00
fcsfail -ENOTSUPP
control 0x02 | 0x04
But what should "otherbss" and "cook" be?
--
http://www.holgerschurig.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question regarding cfg80211 monitor modes
2009-12-03 10:48 question regarding cfg80211 monitor modes Holger Schurig
@ 2009-12-03 10:54 ` Johannes Berg
2009-12-03 11:00 ` Holger Schurig
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2009-12-03 10:54 UTC (permalink / raw)
To: Holger Schurig; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 1458 bytes --]
On Thu, 2009-12-03 at 11:48 +0100, Holger Schurig wrote:
> "iw wlan0 set type monitor" allows the following flags:
>
> none: no special flags
> fcsfail: show frames with FCS errors
> control: show control frames
> otherbss: show frames from other BSSes
> cook: use cooked mode
>
> However, I don't know how to map them to the Libertas' firmware
> flags, which has
>
> Libertas (bits can be ored)
> Data frames 0x01
> Mgmt frames but beacons 0x02
> Beacons 0x04
>
>
> So I guess that the following could be a translation table:
>
> none 0x00
> fcsfail -ENOTSUPP
> control 0x02 | 0x04
>
> But what should "otherbss" and "cook" be?
"cook" and "none" only make sense while operating in a different mode at
the same time. For "cook" you get frames that the kernel hasn't
consumed. For "none" you don't influence the filters due to the monitor.
I suspect you don't support concurrent operation, so neither of those
makes sense.
fcsfail/plcpfail are probably not supported.
From what you say, "control" isn't supported either, since you were
talking about management frames, not control frames. "otherbss" is for
showing frames with a different BSSID, and in libertas monitor mode
probably always enabled.
I'd say don't bother with the flags at all.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question regarding cfg80211 monitor modes
2009-12-03 10:54 ` Johannes Berg
@ 2009-12-03 11:00 ` Holger Schurig
2009-12-03 14:46 ` Luis R. Rodriguez
0 siblings, 1 reply; 4+ messages in thread
From: Holger Schurig @ 2009-12-03 11:00 UTC (permalink / raw)
To: linux-wireless; +Cc: Johannes Berg
> I'd say don't bother with the flags at all.
Okay, I'll then a mask of 0x07, turning everything on. If someone
doesn't like beacons, he can still use
tshark -R "!(wlan.fc.subtype == 8)"
BTW:
http://wireless.kernel.org/en/users/Documentation/modes#Monitor_mode
doesn't say anything about the modes.
--
http://www.holgerschurig.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question regarding cfg80211 monitor modes
2009-12-03 11:00 ` Holger Schurig
@ 2009-12-03 14:46 ` Luis R. Rodriguez
0 siblings, 0 replies; 4+ messages in thread
From: Luis R. Rodriguez @ 2009-12-03 14:46 UTC (permalink / raw)
To: Holger Schurig; +Cc: linux-wireless, Johannes Berg
On Thu, Dec 3, 2009 at 3:00 AM, Holger Schurig <holgerschurig@gmail.com> wrote:
>> I'd say don't bother with the flags at all.
>
> Okay, I'll then a mask of 0x07, turning everything on. If someone
> doesn't like beacons, he can still use
>
> tshark -R "!(wlan.fc.subtype == 8)"
>
>
>
> BTW:
> http://wireless.kernel.org/en/users/Documentation/modes#Monitor_mode
> doesn't say anything about the modes.
The modes or the flags? iw does document the flags.
Luis
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-12-03 14:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-03 10:48 question regarding cfg80211 monitor modes Holger Schurig
2009-12-03 10:54 ` Johannes Berg
2009-12-03 11:00 ` Holger Schurig
2009-12-03 14:46 ` Luis R. Rodriguez
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.