public inbox for radiotap@archiver.kernel.org
 help / color / mirror / Atom feed
* radiotap feature discovery
@ 2009-04-16 16:02 Johannes Berg
       [not found] ` <1239897757.14169.16.camel-YfaajirXv2244ywRPIzf9A@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2009-04-16 16:02 UTC (permalink / raw)
  To: radiotap-sUITvd46vNxg9hUCZPvPmw

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

Hi!

With all these injection things, we'll invariably find devices that do
not support some of them, e.g. will not support not setting the sequence
number because the hardware always assigns them.

Thus, I think we need a way to do feature discovery. This isn't relevant
for RX -- there the driver just provides what it has -- but is for TX
where tools would like to know what they can do.

One way I could think of would be to define a whole bunch of flags for
the various injection features, and export those somehow. Not sure I
like this, since it means we need to keep track of yet another bitmap.

The other way I could imagine would be to export, in a yet to be defined
way, a radiotap header that lists the capabilities. For example, upon
feature query you'd return a header like this:

	0x00, 0x00,		// <-- radiotap version
	0x0b, 0x00,		// <- radiotap header length
	0x04, 0x84, 0x00, 0x00,	// <-- bitmap
	0x00,			// <-- rate
	0x00,			// <-- tx power
	0x08, 0x00		// <-- tx flags

This would indicate support for controlling
 * rate
 * tx power
 * tx flags - only no-ACK

How to export this information is to be determined and would most likely
be platform dependent though.

Thoughts?

johannes

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-04-16 18:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16 16:02 radiotap feature discovery Johannes Berg
     [not found] ` <1239897757.14169.16.camel-YfaajirXv2244ywRPIzf9A@public.gmane.org>
2009-04-16 16:05   ` Johannes Berg
2009-04-16 17:12   ` David Young
     [not found]     ` <20090416171256.GY25412-eZodSLrBbDpBDgjK7y7TUQ@public.gmane.org>
2009-04-16 17:30       ` Johannes Berg
     [not found]         ` <1239903002.26575.17.camel-YfaajirXv2244ywRPIzf9A@public.gmane.org>
2009-04-16 18:24           ` David Young

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox