From: Ben Greear <greearb@candelatech.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: Given an interface, how to tell if it's associated?
Date: Tue, 28 Sep 2010 06:40:44 -0700 [thread overview]
Message-ID: <4CA1F05C.10705@candelatech.com> (raw)
In-Reply-To: <1285658613.3885.2.camel@jlt3.sipsolutions.net>
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@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
prev parent reply other threads:[~2010-09-28 13:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-27 23:17 Given an interface, how to tell if it's associated? Ben Greear
2010-09-28 7:23 ` Johannes Berg
2010-09-28 13:40 ` Ben Greear [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CA1F05C.10705@candelatech.com \
--to=greearb@candelatech.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.