linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: greearb@gmail.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211/ath9k:  Support AMPDU with multiple VIFs.
Date: Thu, 23 Sep 2010 09:26:11 -0700	[thread overview]
Message-ID: <4C9B7FA3.6040402@candelatech.com> (raw)
In-Reply-To: <1285250906.3770.114.camel@jlt3.sipsolutions.net>

On 09/23/2010 07:08 AM, Johannes Berg wrote:
> On Thu, 2010-09-23 at 06:54 -0700, greearb@gmail.com wrote:
>
>>    *
>> - * NOTE: This function should not be used! When mac80211 is converted
>> - *	 internally to properly keep track of stations on multiple
>> - *	 virtual interfaces, it will not always know which station to
>> - *	 return here since a single address might be used by multiple
>> - *	 logical stations (e.g. consider a station connecting to another
>> - *	 BSSID on the same AP hardware without disconnecting first).
>> - *
>> - * DO NOT USE THIS FUNCTION.
>
> Also, I'm not sure you really should remove this comment, since it still
> applies when you pass NULL, and I'm still not convinced that ath9k
> couldn't keep track of the virtual interface accurately?

It seems ath9k would have to selectively remove buffers from it's tx queues
with vifs dissappeared. I had a previous patch that flushed all when interfaces
came and went, but it seems I would also have to do something similar
for AP mode when remote stations came and went.  And for remote stations,
Felix didn't like flushing the queues entirely, so it would have to be for
just pkts belonging to that VIF.

That would mean quite a bit of re-write of the buffer flush logic as
far as I can tell.

As for the by_hw() method, it's only used in ath9k, and the only time
it gets passed a NULL is in the ath9k_process_rssi code when the
destination address is multicast (so we cannot reliably match on
a destination interface).

I'll update the warning comment to mention about passing in NULL
as localaddr.

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

  reply	other threads:[~2010-09-23 16:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23 13:54 [PATCH] mac80211/ath9k: Support AMPDU with multiple VIFs greearb
2010-09-23 14:08 ` Johannes Berg
2010-09-23 16:26   ` Ben Greear [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-09-23 16:44 greearb
2010-09-23 18:44 ` Johannes Berg

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=4C9B7FA3.6040402@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=greearb@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).