From: Andy Green <andy@warmcat.com>
To: Michael Wu <flamingice@sourmilk.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [RFC][PATCH] Add radiotap-based packet injection capability to monitor mode
Date: Thu, 15 Mar 2007 06:32:19 +0000 [thread overview]
Message-ID: <45F8E873.4050705@warmcat.com> (raw)
In-Reply-To: <200703150157.02876.flamingice@sourmilk.net>
Michael Wu wrote:
> On Wednesday 14 March 2007 21:13, Andy Green wrote:
>> This patch adds the monitor mode packet injection stuff that was talked
>> about a week or so ago to mac80211. Using a radiotap header prepended
>> to the injection payload was felt to be a reasonable way forward.
>>
> It seems rather odd to inject with radiotap headers when capturing with AVS
> headers. I've attached a patch which switches mac80211 to using radiotap.
Yes it seemed that radiotap on the capture part of Monitor was preferred
and seen as the place to end up from the last discussion. But the itch
I needed to scratch was the injection, so your patch and mine go
together really well in principle and migrate the whole stack to radiotap.
> It's pretty much the same patch I posted a while ago, except all support for
> AVS on monitor interfaces was removed. Drivers need to implement radiotap for
> best results, but if it isn't implemented, the stack fills in a minimal
> radiotap header. The minimal radiotap header filling code is new in this
> version of the patch and I haven't had a chance to test it yet. The rate
> filling part might be wrong. Anyway, I recommend basing your patch on top of
> this one. Aside from the new default radiotap filling code, the rest is
> fairly solid AFAIK. I had a corresponding patch to hook up radiotap support
> in zd1211rw-mac80211 but it seems like I've lost it. I'll put together a new
> one tomorrow.
Okay I will apply your code when I can resume work on this later today.
They shouldn't conflict since yours is only on the receive path and
mine only on the transmit path. I need to learn about quilt it seems.
I am monitoring from an ipw2200 box that issues driver radiotap headers
and tcpdump can do a lot more with them than the PRISM2 stuff.
> + struct ieee80211_rtap_hdr {
> + struct ieee80211_radiotap_header hdr;
> + u8 flags;
> + u8 pad0;
> + u8 rate;
> + u8 pad1;
> + __le16 chan_freq;
> + __le16 chan_flags;
> + u8 antsignal;
> + } __attribute__ ((packed)) *rthdr;
One thing though, what is the truth about endian-ness of radiotap args?
It seemed from the struct ieee80211_radiotap_header header version in
Linville's latest FC7 #4 RPM anyway that they were native endian, ie,
using u16 in there. I took from that the args were likewise u16, which
was possible since the radiotap part doesn't normally leave the machine.
But having fixed endianness makes more sense.
-Andy
next prev parent reply other threads:[~2007-03-15 6:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-15 1:13 [RFC][PATCH] Add radiotap-based packet injection capability to monitor mode Andy Green
2007-03-15 5:56 ` Michael Wu
2007-03-15 6:32 ` Andy Green [this message]
2007-03-15 6:41 ` Pavel Roskin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45F8E873.4050705@warmcat.com \
--to=andy@warmcat.com \
--cc=flamingice@sourmilk.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).