Search Linux Wireless

Re: ath5k: reset for 5424-based card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008/1/31, Bob Copeland <me@xxxxxxxxxxxxxxx>:
> Hi all,
>
> I have the following device (0x168c:001c) which comes with certain MacBooks:
>
> 02:00.0 Ethernet controller: Atheros Communications, Inc. AR5006EG 802.11 b/g
> Wireless PCI Express Adapter (rev 01)

Can you plz run ath_info tool found on madwifi-trace branch and post
the output (mac/phy revision) ?

> The current driver from merged-upstream of a few days ago doesn't seem to
> work for this card.  In ath5k_hw_nic_wakeup, it dies after the nic reset
> and any MMIO accesses from then on return -1 (needs a hard reboot to fix).
>
> I dumped a trace of the working madwifi driver using mmio-trace and saw that
> it only sets the bottom two bits when doing AR5K_RESET_CTL.  So, the patch
> below indeed makes probe work for the card.
>

It's a known bug, i have a patch pending already, problem is that
AR5K_RESET_CTL_PCI probably hangs the "host interface unit" and you
need to reboot as you said, just removing it also fixes the probe
problem (that seems to only happen on newer pci-e cards).

> It isn't perfect after that; it can associate with an AP but appears to reset
> constantly so it's not really usable.
>

That's interesting because even with the fix on nic_wakeup + making
initvals tables etc i tried it on a 2425 and couldn't even scan
(that's why i hadn't post the patch earlier, card wouldn't work anyway
so i left it for the patch series i'm working on). If you got your
card scanning then we are really close on fixing it !

> I'd love to get this working generally; if needed I can try out patches,
> supply traces, or, given enough direction, contribute some code...
>

Thanx a lot for your patch, just have in mind that we prefer to reset
most of the card's units to be on the safe side, that's because we
don't know what cards (mac/phy revisions) can live without reseting X
unit.

Another important question, what band was the ap on ?

-- 
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick
-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux