Search Linux Wireless

Re: [PATCH] zd1211rw-mac80211: Fix for monitor mode bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 28 March 2007 11:19, Johannes Berg wrote:
> On Mon, 2007-03-26 at 22:39 +0200, Michael Buesch wrote:
> 
> > Well, yeah. It does of course. If you have a STA and a MON interface,
> > the STA also receives the packs with bad CRCs. But that's how
> > mac80211 designed the virt-interface stuff.
> > Same goes for promisc. If you have a STA and a MON you can't have
> > the STA in non-promisc mode, so you also receive promisc packets on
> > the STA. That's how it's supposed to be. (I think mac80211 filters
> > them in the STA code somewhere).
> 
> Yeah, it filters those later by BSSID, that's intended, but it wasn't
> ever programmed to check the CRC. We'll need to introduce a new rx
> status flag "was crc checked".
> 
> > The modparams actually are just a temporary hack and were never meant
> > to stay there. I wanted to have the knob in cfg80211, sooner or later.
> > So when the knob is there, mac80211 should take care that the STA
> > doesn't receive the bad packets.

I think we need at least two "stages" for this config.
One that says: Get all packets with bad FCS
And one that says: Get all packets with bad FCS and everything else
that looks like a signal, which is probably your microwave oven, though.

So, when these packets are passed up the stack the PLCP is stripped.
I think we should make the stack aware of the PLCP (and add an RX flag
PLCP_available) so that it is able to check the PLCP checksum.
Otherwise the only way to detect your microwave oven from the packet
stream would be failed FCS. Which would also most likely failed then, but
I think it's probably useful for the user to see the PLCP, too, on
a mon interface.

So we need RX flags "PLCP_available" and "Not_checksummed".

-- 
Greetings Michael.
-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux