From: Pavel Roskin <proski@gnu.org>
To: Nick Kossifidis <mickflemm@gmail.com>
Cc: "ath5k-devel@venema.h4ckr.net" <ath5k-devel@venema.h4ckr.net>,
linux-wireless@vger.kernel.org
Subject: Re: [ath5k-devel] [BISECTED] AR5414 fails to scan after "ath5k: Update reset code"
Date: Fri, 27 Mar 2009 00:07:29 -0400 [thread overview]
Message-ID: <1238126849.20768.12.camel@mj> (raw)
In-Reply-To: <40f31dec0903251847p260446bfi22a1b4c587dc41cc@mail.gmail.com>
On Thu, 2009-03-26 at 03:47 +0200, Nick Kossifidis wrote:
> That's weird, I've tested this with my 5413 and it works just fine. It
> seems that 5424 (pci-e version of 5413) still has some issues. Have
> you tried monitor mode ?
I have reduced the patch to the clock setting in ath5k_hw_nic_wakeup().
Testing with madwifi-free shows that the clock register for 802.11a
channels for RF5413 should be 0x04. ath5k uses 0x44
(AR5K_PHY_PLL_40MHZ_5413 | AR5K_PHY_PLL_RF5112). The value before the
patch that broke scanning was 0xea (AR5K_PHY_PLL_40MHZ |
AR5K_PHY_PLL_RF5112).
With the following patch, scanning works for both 2.4 GHz and 5 GHz
bands. Please test with your hardware. If it works, I'll submit it.
ath5k: fix scanning in AR2424
AR5K_PHY_PLL_40MHZ_5413 shouldn't be ORed with AR5K_PHY_MODE_RAD_RF5112.
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
drivers/net/wireless/ath5k/reset.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/wireless/ath5k/reset.c b/drivers/net/wireless/ath5k/reset.c
index 7a17d31..faede82 100644
--- a/drivers/net/wireless/ath5k/reset.c
+++ b/drivers/net/wireless/ath5k/reset.c
@@ -359,7 +359,7 @@ int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial)
mode |= AR5K_PHY_MODE_FREQ_5GHZ;
if (ah->ah_radio == AR5K_RF5413)
- clock |= AR5K_PHY_PLL_40MHZ_5413;
+ clock = AR5K_PHY_PLL_40MHZ_5413;
else
clock |= AR5K_PHY_PLL_40MHZ;
--
Regards,
Pavel Roskin
next prev parent reply other threads:[~2009-03-27 4:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-25 22:37 [BISECTED] AR5414 fails to scan after "ath5k: Update reset code" Pavel Roskin
2009-03-26 1:47 ` [ath5k-devel] " Nick Kossifidis
2009-03-26 4:02 ` Pavel Roskin
2009-03-27 4:07 ` Pavel Roskin [this message]
2009-03-27 14:04 ` Nick Kossifidis
2009-03-27 21:58 ` Pavel Roskin
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=1238126849.20768.12.camel@mj \
--to=proski@gnu.org \
--cc=ath5k-devel@venema.h4ckr.net \
--cc=linux-wireless@vger.kernel.org \
--cc=mickflemm@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