Given an interface, how to tell if it's associated?
I need to iterate through all local->interfaces and if they are stations, figure out if they are associated or not.
I tried checking for existence of sdata->u.mgd.associated, but it is always null (I'm using non-encrypted links currently, in case that matters.)
I'd also like to know if any are authenticated.
I cannot figure out a clean way to do this..any suggestions?
Thanks,
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Quoted 7 lines · Ben Greear
I need to iterate through all
local->interfacesand if they are stations, figure out if they are associated or not.I tried checking for existence of
sdata->u.mgd.associated, but it is always null (I'm using non-encrypted links currently, in case that matters.)
That's correct, if it's always NULL then you're not associated properly I guess?
johannes
Quoted 11 lines · Johannes Berg
Quoted 7 lines · Ben Greear
I need to iterate through all
local->interfacesand if they are stations, figure out if they are associated or not.I tried checking for existence of
sdata->u.mgd.associated, but it is always null (I'm using non-encrypted links currently, in case that matters.)That's correct, if it's always NULL then you're not associated properly I guess?
Well, it seemed to work and passed traffic fine, so I'm at a loss. Perhaps it just wasn't associated while one of the stations was scanning.
Either way, I added logic to iterate through all stas and check it's flags, and that seems to work (see the can_scan_one patch logic I posted).
Thanks,
Ben
Quoted 2 lines
johannes
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com