From: Johannes Berg <johannes@sipsolutions.net>
To: Vivek Natarajan <Vivek.Natarajan@Atheros.com>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: RE: multicast traffic and ath9k
Date: Fri, 09 Jan 2009 12:57:37 +0100 [thread overview]
Message-ID: <1231502257.3703.9.camel@johannes> (raw)
In-Reply-To: <44EE5C37ADC36343B0625A05DD408C4845A77DAF05@CHEXMB-01.global.atheros.com>
[-- Attachment #1: Type: text/plain, Size: 1781 bytes --]
On Fri, 2009-01-09 at 17:20 +0530, Vivek Natarajan wrote:
> There are two options in atheros drivers. One is hardware beacon processing
> and the other is sw beacon processing. For some reason, sw beacon processing
> is enabled by default, the performance is as expected and it has been working fine
> for Windows implementation.
>
> Some functions related to power save and beacon are beacon timestamp update,
> verify tim bit and verify mc bit. The beacon timers have to be programmed correctly
> to wake up for every beacon and process it for tim. If the timer is slightly
> out of sync, we my fail to receive the beacon.
>
> The alternative is sw beacon processing using TIM_TIMER interrupt. This is a timer
> which runs in the hw while majority of the hw is asleep. This generates an interrupt
> for every beacon listen interval to wake up the chip and listen to beacon. We do not
> go back to sleep unless we receive a beacon. Since there is no dependency on the
> higher layers to update the beacon/sleep timers, this implementation works fine in any
> corner case. Hence, there is a need to process multicast bit in the software itself.
But will the software actually be fast enough? I'm looking at the code,
and it'll defer processing the beacon to a workqueue, and only then wake
up the hardware. That means there's some latency, wouldn't we miss some
multicast frames then?
I'm inclined to ask you to remove that multicast checking from mac80211
and do it closer to the hardware, and simply require from the
driver/hardware that mac80211 needs not do anything for multicast
traffic. Mostly because I'm thinking that once we start relying on the
software implementation in mac80211 the delay may be too large.
Thoughts?
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2009-01-09 11:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-07 16:36 multicast traffic and ath9k Johannes Berg
2009-01-09 11:50 ` Vivek Natarajan
2009-01-09 11:57 ` Johannes Berg [this message]
2009-01-09 12:56 ` Vivek Natarajan
2009-01-09 13:07 ` Johannes Berg
2009-01-09 13:59 ` Vivek Natarajan
2009-01-09 16:13 ` Christian Lamparter
2009-01-09 17:33 ` Kalle Valo
2009-01-09 16:37 ` Kalle Valo
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=1231502257.3703.9.camel@johannes \
--to=johannes@sipsolutions.net \
--cc=Vivek.Natarajan@Atheros.com \
--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).