From: Felix Fietkau <nbd@openwrt.org>
To: Sujith <m.sujith@gmail.com>
Cc: linux-wireless@vger.kernel.org, linville@tuxdriver.com,
lrodriguez@atheros.com, Jouni.Malinen@atheros.com
Subject: Re: [PATCH 1/3] ath9k: fix beacon timer handling issues
Date: Fri, 25 Mar 2011 03:59:30 +0100 [thread overview]
Message-ID: <4D8C0512.5010608@openwrt.org> (raw)
In-Reply-To: <19852.783.629604.122760@gargle.gargle.HOWL>
On 2011-03-25 3:50 AM, Sujith wrote:
> Felix Fietkau wrote:
>> AP mode beacon timers in ath9k are configured in milliseconds, which breaks
>> when increasing ATH_BCBUF to 8 instead of 4 (due to rounding errors).
>> Since the hardware timers are actually configured in microseconds, it's
>> better to let the driver use that unit directly.
>>
>> To be able to do that, the beacon interval parameter abuse for passing
>> certain flags needs to be removed. This is easy to do, because those flags
>> are completely unnecessary anyway. ATH9K_BEACON_ENA is ignored,
>> ATH9K_BEACON_RESET_TSF can be replaced with calling ath9k_hw_reset_tsf
>> from the driver directly.
>
> I know this has been merged, but this changes the behaviour.
>
> Earlier, the HW TSF would be reset _after_ the beacon timers have been
> configured, but now this isn't so. Wouldn't this alter the timers ?
The HW TSF reset was still issued before the code would activate the
timers (with the write to AR_TIMER_MODE), so I don't think this changes
the behaviour of the timers.
Since the timers are scheduled for absolute TSF32 values and (in case of
a reset being issued) always set to TU_TO_USEC(intval / ATH_BCBUF), that
leaves enough time for the timers to settle in after the TSF reset, so I
don't expect any race conditions there.
- Felix
next prev parent reply other threads:[~2011-03-25 2:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-22 20:54 [PATCH 1/3] ath9k: fix beacon timer handling issues Felix Fietkau
2011-03-22 20:54 ` [PATCH 2/3] ath9k: trigger nfcal only after multiple missed beacons in AP mode Felix Fietkau
2011-03-22 20:54 ` [PATCH 3/3] ath9k: fix stuck beacon detection Felix Fietkau
2011-03-23 0:51 ` [PATCH 1/3] ath9k: fix beacon timer handling issues Sujith
2011-03-25 2:50 ` Sujith
2011-03-25 2:59 ` Felix Fietkau [this message]
2011-03-25 3:31 ` Sujith
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=4D8C0512.5010608@openwrt.org \
--to=nbd@openwrt.org \
--cc=Jouni.Malinen@atheros.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=lrodriguez@atheros.com \
--cc=m.sujith@gmail.com \
/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).