Re: [PATCH] mac80211: fixed injection in monitor mode

Johannes Berg
2009-10-17T00:27:00Z

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

On Fri, 2009-10-16 at 13:19 -0400, Richard Farina wrote:
> Johannes Berg wrote:
> > On Fri, 2009-10-16 at 04:09 +0200, Gabriele Gristina wrote:
> >
> >> I have a problem with mac80211 injection:
> >> if i setup interface in monitor mode with iwconfig and i try to send a
> >> custum 802.11 frame i see twice the packet in monitor interface.
> >> The first packet is right, the second is different only in the radiotap
> >> header: rtap len is fixed to 13 bytes...
> >> If i setup interface with airmon-ng the packet is sended once but the
> >> radiotap header is fixed to 13 bytes.
> >>
> >
> > This is correct. The patch is wrong.
> >
> >
> I'm very stupid, could you please elaborate how seeing every single
> packets twice with different headers is "correct"?

Look at the patch. I'ts the injection itself + tx status.

johannes

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