Re: Handling RADIOTAP_EXT
Johannes Berg <[email protected]> Wed, 07 Mar 2012 09:29:25 +0100
| Newsgroups | org.netbsd.radiotap |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2012-03-07 at 09:20 +0100, Roberto Riggio wrote: > On 03/07/2012 09:10 AM, Johannes Berg wrote: > > Can you elaborate what you mean? Do you want to keep something while > > using the library? > > Let's assume that I'm the the following situation: > > --- > RATE (1) 54 Mbps > COUNT (1) 3 > --- > RATE (2) 18 Mbps > COUNT (2) 3 > --- > RATE (3) 6 Mbps > COUNT (3) 3 > --- > > When I'm iterating over the header I could keep track of the namespace > by incrementing an index after I have found the RETRIES field. This will > work because the RETRIES field is always after the RATE field so my > index is consistent. > > On the other hand, if in the header MCS and RETRIES the approach above > will not work, since the MCS field is after the RETRIES field. > > So I was wondering if there is a way, while iterating over an header, to > known how many time the RADIOTAP_NAMESPACE (or the EXT) field has been > found. Ah, no, not with the library as it is today. I suppose we could add a flag "inform me of namespace boundaries" or something like that. johannes