From: Ben Greear <greearb@candelatech.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] RFC: v3: Support multiple STA on same AP with ath9k
Date: Fri, 10 Sep 2010 14:23:17 -0700 [thread overview]
Message-ID: <4C8AA1C5.8080906@candelatech.com> (raw)
In-Reply-To: <fc41890c0792e7440941448d5b8b9169@localhost>
On 09/10/2010 02:12 PM, Johannes Berg wrote:
>
> On Fri, 10 Sep 2010 13:07:20 -0700, Ben Greear<greearb@candelatech.com>
> wrote:
>> It also consolidates some of the util.c iterator logic in
>> mac80211.
>
> That really ought to be a different patch.
>
> And I don't think I like the counting in mac80211 -- it's just overhead
> (EXPORT_SYMBOL etc) and a very simple implementation in the driver itself.
I can just use the helper method by itself if you don't want another
new method exposed to explicitly count interfaces.
As for counting, as far as I can tell, ath9k doesn't keep a list of
interfaces, but rather calls those iterator methods when it wants to
know them, so one way or another I need to call back into mac80211.
I'll break the patches apart for the next posting.
Did you get a chance to think more about this part of the patch?
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index 687077e..db751f1 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -440,7 +440,7 @@ int sta_info_insert_rcu(struct sta_info *sta) __acquires(RCU)
spin_lock_irqsave(&local->sta_lock, flags);
/* check if STA exists already */
- if (sta_info_get_bss(sdata, sta->sta.addr)) {
+ if (sta_info_get(sdata, sta->sta.addr)) {
spin_unlock_irqrestore(&local->sta_lock, flags);
mutex_unlock(&local->sta_mtx);
rcu_read_lock();
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
WARNING: multiple messages have this Message-ID (diff)
From: Ben Greear <greearb@candelatech.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org,
"ath9k-devel@lists.ath9k.org" <ath9k-devel@venema.h4ckr.net>
Subject: Re: RFC: v3: Support multiple STA on same AP with ath9k
Date: Fri, 10 Sep 2010 14:23:17 -0700 [thread overview]
Message-ID: <4C8AA1C5.8080906@candelatech.com> (raw)
In-Reply-To: <fc41890c0792e7440941448d5b8b9169@localhost>
On 09/10/2010 02:12 PM, Johannes Berg wrote:
>
> On Fri, 10 Sep 2010 13:07:20 -0700, Ben Greear<greearb@candelatech.com>
> wrote:
>> It also consolidates some of the util.c iterator logic in
>> mac80211.
>
> That really ought to be a different patch.
>
> And I don't think I like the counting in mac80211 -- it's just overhead
> (EXPORT_SYMBOL etc) and a very simple implementation in the driver itself.
I can just use the helper method by itself if you don't want another
new method exposed to explicitly count interfaces.
As for counting, as far as I can tell, ath9k doesn't keep a list of
interfaces, but rather calls those iterator methods when it wants to
know them, so one way or another I need to call back into mac80211.
I'll break the patches apart for the next posting.
Did you get a chance to think more about this part of the patch?
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index 687077e..db751f1 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -440,7 +440,7 @@ int sta_info_insert_rcu(struct sta_info *sta) __acquires(RCU)
spin_lock_irqsave(&local->sta_lock, flags);
/* check if STA exists already */
- if (sta_info_get_bss(sdata, sta->sta.addr)) {
+ if (sta_info_get(sdata, sta->sta.addr)) {
spin_unlock_irqrestore(&local->sta_lock, flags);
mutex_unlock(&local->sta_mtx);
rcu_read_lock();
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2010-09-10 21:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-10 20:07 [ath9k-devel] RFC: v3: Support multiple STA on same AP with ath9k Ben Greear
2010-09-10 20:07 ` Ben Greear
2010-09-10 21:12 ` [ath9k-devel] " Johannes Berg
2010-09-10 21:12 ` Johannes Berg
2010-09-10 21:23 ` Ben Greear [this message]
2010-09-10 21:23 ` Ben Greear
2010-09-10 21:27 ` [ath9k-devel] " Johannes Berg
2010-09-10 21:27 ` Johannes Berg
2010-09-13 12:14 ` [ath9k-devel] " Vasanthakumar Thiagarajan
2010-09-13 12:14 ` Vasanthakumar Thiagarajan
2010-09-13 14:36 ` [ath9k-devel] " Ben Greear
2010-09-13 14:36 ` Ben Greear
2010-09-13 19:23 ` [ath9k-devel] " Ben Greear
2010-09-13 19:23 ` Ben Greear
2010-09-14 13:46 ` [ath9k-devel] " Vasanthakumar Thiagarajan
2010-09-14 13:46 ` Vasanthakumar Thiagarajan
2010-09-14 14:39 ` [ath9k-devel] " Ben Greear
2010-09-14 14:39 ` Ben Greear
2010-09-14 14:44 ` [ath9k-devel] " Vasanthakumar Thiagarajan
2010-09-14 14:44 ` Vasanthakumar Thiagarajan
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=4C8AA1C5.8080906@candelatech.com \
--to=greearb@candelatech.com \
--cc=ath9k-devel@lists.ath9k.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.