Re: Fwd: ieee80211_radiotap_iterator_next return values

Johannes Berg <[email protected]> Fri, 10 May 2013 18:44:07 +0200
Newsgroups org.netbsd.radiotap
Message-ID <[email protected]>
On Fri, 2013-05-10 at 17:22 +0200, Lee Hambley wrote:
> To clarify, I'm using (at present) the implementation from
> http://airscan.googlecode.com/svn-history/r2/trunk/radiotap-parser.c -
> not being an expert in such things it looks like the use of
> le32_to_cpu is an indication that this is designed to be used in
> userspace, but still - the iteration function is still returning `1'.

That's a (slightly) different implementation that doesn't match the
other implementations you've been looking at. If you read the comments
in that file, it'll be obvious why it returns 1.

Basically though your problem is that you're taking the radiotap parser
from one place, and the example code from another, and the two differ in
API used.

johannes