Hey!
I've been tying to enable the admission of other no IEEE 802.11 frames but
it hasn't been possible. I've managed the flags defined for monitor mode in
nl80211.h in Hostapd git code (driver_nl80211.c, line 1023) replacing:
NLA_PUT_FLAG(flags, NL80211_MNTR_FLAG_COOK_FRAMES);
for:
NLA_PUT_FLAG(flags, NL80211_MNTR_FLAG_FCSFAIL | NL80211_MNTR_FLAG_PLCPFAIL |
NL80211_MNTR_FLAG_CONTROL | NL80211_MNTR_FLAG_OTHER_BSS |
__NL80211_MNTR_FLAG_INVALID );
And yes, I've been able to see more frames than the ones seen from the
monitor interface created when running Hostapd (such as mon.wlan0), but I
can't still see my custom frames. I don't know if these flags are the ones
you referred, but enabling NL80211_MNTR_FLAG_PLCPFAIL doesn't make Wireshark
sniff what I wanted.
Are these flags the ones you suggested? Any idea?
/**
* enum nl80211_mntr_flags - monitor configuration flags
*
* Monitor configuration flags.
*
* @__NL80211_MNTR_FLAG_INVALID: reserved
*
* @NL80211_MNTR_FLAG_FCSFAIL: pass frames with bad FCS
* @NL80211_MNTR_FLAG_PLCPFAIL: pass frames with bad PLCP
* @NL80211_MNTR_FLAG_CONTROL: pass control frames
* @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering
* @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing.
* overrides all other flags.
*
* @__NL80211_MNTR_FLAG_AFTER_LAST: internal use
* @NL80211_MNTR_FLAG_MAX: highest possible monitor flag
*/
enum nl80211_mntr_flags {
__NL80211_MNTR_FLAG_INVALID,
NL80211_MNTR_FLAG_FCSFAIL,
NL80211_MNTR_FLAG_PLCPFAIL,
NL80211_MNTR_FLAG_CONTROL,
NL80211_MNTR_FLAG_OTHER_BSS,
NL80211_MNTR_FLAG_COOK_FRAMES,
/* keep last */
__NL80211_MNTR_FLAG_AFTER_LAST,
NL80211_MNTR_FLAG_MAX = __NL80211_MNTR_FLAG_AFTER_LAST - 1
};
2009/2/16 Michael Buesch <[email protected]>
> On Monday 16 February 2009 09:33:54 Holger Schurig wrote:
> > > Oh wait, I think it's probably not needed to modify the
> > > firmware. It has a knob to pass "bad frames" up to the driver.
> > > It should pass these frames then.
> >
> > Shouldn't the monitor mode then turn on this knob by default?
>
> No. We're talking about corrupted frames, from the IEEE 802.11 point of
> view.
> The firmware will drop any corrupted frames or frames that don't match the
> IEEE 802.11
> version number unless the flags to pass these frames are set.
> You can set this via the mac80211 filter flags.
>
> There are two flags. One flag to pass frames that don't match the IEEE
> 802.11 specs
> and one flag to pass frames that even failed the PLCP checksum. However,
> the passing
> of PLCP failed packets will also enable your microwave oven as a valid
> packet transmitter. ;)
> So you don't want to enable that one.
>
> --
> Greetings, Michael.
>
_______________________________________________
Bcm43xx-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev