Search Linux Wireless

Re: Given an interface, how to tell if it's associated?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/28/2010 12:23 AM, Johannes Berg wrote:
On Mon, 2010-09-27 at 16:17 -0700, Ben Greear wrote:
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.)

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



johannes


--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc  http://www.candelatech.com
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux