linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: Cameron Hutchison <lists@xdna.net>
Cc: "mcgrof@gmail.com" <mcgrof@gmail.com>,
	"ath9k-devel@lists.ath9k.org" <ath9k-devel@lists.ath9k.org>,
	linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [ath9k-devel] Failed to init on TP-Link TL-WN861N
Date: Tue, 14 Oct 2008 02:47:34 -0700	[thread overview]
Message-ID: <20081014094734.GB6086@tesla> (raw)
In-Reply-To: <20081014081232.97106406B@getafix.xdna.net>

On Tue, Oct 14, 2008 at 01:12:32AM -0700, Cameron Hutchison wrote:
> Luis R. Rodriguez wrote:
> 
> >On Sat, Oct 11, 2008 at 11:01 PM, Cameron Hutchison <lists@xdna.net> wrote:
> >> [...]
> >> ath9k_hw_chip_test: address test failed addr: 0x00008000 - wr:0x00ff00ff != rd:0x00ff00ef
> 
> >This is during ath9k_hw_chip_test(), which is a simple loop to test
> >write/read on 2 registers to see if the written values can be read as
> >the same values. The two registers are:
> 
> >AR_STA_ID0 which is 0x8000
> >AR_PHY_BASE + (8 << 2) which is 0x9800 + (8<<2) --> 0x9820
> 
> >AR_STA_ID0 is used to store part of the MAC address and 0x9820 is just
> >one of the PHY registers. So we test writing and reading a 256 times
> >to each register some arbitrary value. We also try writing and reading
> >some 4 specific patterns just to be sure.
> 
> Which part of the MAC address would be at AR_STA_ID0? I'm stretching
> here, since the nibbles would be out of order, but could this card be
> forcing the multicast bit of the MAC address off?

Please check the usage of the AR_STA_ID0 register as that is what I'd
look to answer to you.

> >If we continue this could lead to issues. It seems you may have a
> >faulty wireless card, specifically bit #5 on register 0x8000. Maybe
> >the card is loose? Have you seen it working before?
> 
> I haven't used the card before - recently purchased for this linux box.
> I've tried reseating the card but no luck.
> 
> I modified ath9k_hw_chip_test to continue testing on failure and I get
> the same problem on the second test:
> ath9k_hw_chip_test: address test failed addr: 0x00008000 - wr:0x00ff00ff != rd:0x00ff00ef
> ath9k_hw_chip_test: address test failed addr: 0x00009820 - wr:0x00ff00ff != rd:0x00ff00ef
> 
> It does not always fail on these two addresses though - sometimes only
> on one (either one) and occasionally none. But then it goes on to fail
> the EEPROM checksum:
> 
> ath9k_hw_fill_eeprom: Reading from EEPROM, not flash
> ath9k_hw_check_eeprom: Read Magic = 0xA55A
> need_swap = False.
> Bad EEPROM checksum 0xff0f or revision 0x000e
> Detaching Ani

Ouch, this is pretty negative.

> I guess the MAC multicast is not happening. I'll see if I can rustle up
> a windows laptop to try this out in and see if it works there.

Let us know how it goes.

  Luis

      reply	other threads:[~2008-10-14 16:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <667b.48f192b0.3a106@getafix.xdna.net>
2008-10-13 22:00 ` [ath9k-devel] Failed to init on TP-Link TL-WN861N Luis R. Rodriguez
2008-10-13 22:02   ` Luis R. Rodriguez
2008-10-14  8:12   ` Cameron Hutchison
2008-10-14  9:47     ` Luis R. Rodriguez [this message]

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=20081014094734.GB6086@tesla \
    --to=lrodriguez@atheros.com \
    --cc=ath9k-devel@lists.ath9k.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lists@xdna.net \
    --cc=mcgrof@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).