From: Johannes Berg <johannes@sipsolutions.net>
To: "Luis R. Rodriguez" <mcgrof@gmail.com>
Cc: linux-wireless <linux-wireless@vger.kernel.org>,
Joshua Zhao <Joshua.Zhao@atheros.com>,
Matt Smith <Matt.Smith@atheros.com>
Subject: Re: [RFC] mac80211: radiotap vendor data
Date: Tue, 04 May 2010 09:52:56 +0200 [thread overview]
Message-ID: <1272959576.3673.2.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <o2k43e72e891005031516g31c22cdbt3ee5d766e63b3f2c@mail.gmail.com>
On Mon, 2010-05-03 at 15:16 -0700, Luis R. Rodriguez wrote:
> > Note: 11n shouldn't be done there, in case somebody
> > got ideas!!
>
> Well you mean 802.11n standard stuff, I take it, because there are
> vendor 802.11n specific stuff.
Well most of it should really be standardised :)
> > + * @vendor_radiotap_bitmap: radiotap vendor namespace presence bitmap
> > + * @vendor_radiotap_len: radiotap vendor namespace length
> > + * @vendor_radiotap_align: radiotap vendor namespace alignment. Note
> > + * that the actual data must be at the start of the SKB data
> > + * already.
>
> I see your WARN_ON() on the alignment being set to 0 and set it to 1
> then. Can you clarify a little more on this here. If there is no
> strict alignment requirements why not just treat 0 as 1 then?
Just want people to be aware that they need to think about alignment --
zero being the default value for most things here due to kzalloc would
mean accepting it people wouldn't think about allocations. And most of
the time alignment should be required.
> > @@ -190,11 +218,26 @@ ieee80211_add_rx_radiotap_header(struct
> > /* IEEE80211_RADIOTAP_RX_FLAGS */
> > /* ensure 2 byte alignment for the 2 byte field as required */
> > if ((pos - (u8 *)rthdr) & 1)
> > - pos++;
> > + *pos++ = 0;
>
> Why is this needed though? We already memset(rthdr, 0, rtap_len); above.
Yeah you're probably right, dunno.
> > + vendor_data = skb_push(skb, 4);
> > + rx_status.vendor_radiotap_len = 4;
> > + rx_status.vendor_radiotap_align = 4;
> > + rx_status.vendor_radiotap_oui[0] = 0xff;
> > + rx_status.vendor_radiotap_oui[1] = 0xff;
> > + rx_status.vendor_radiotap_oui[2] = 0xff;
> > + rx_status.vendor_radiotap_subns = 129;
> > + rx_status.vendor_radiotap_bitmap = 0x1;
> > +
> > + *vendor_data++ = 1;
> > + *vendor_data++ = 2;
> > + *vendor_data++ = 3;
> > + *vendor_data++ = 4;
> > +
>
> Heh nice, now we just need a sample radiotap vendor extension parser example.
http://git.sipsolutions.net/?p=radiotap.git;a=summary
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4421
johannes
prev parent reply other threads:[~2010-05-04 7:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-01 17:13 [RFC] mac80211: radiotap vendor data Johannes Berg
2010-05-03 22:16 ` Luis R. Rodriguez
2010-05-04 7:52 ` Johannes Berg [this message]
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=1272959576.3673.2.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=Joshua.Zhao@atheros.com \
--cc=Matt.Smith@atheros.com \
--cc=linux-wireless@vger.kernel.org \
--cc=mcgrof@gmail.com \
/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).