From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Roskin Date: Wed, 13 Jan 2010 10:35:59 -0500 Subject: [ath9k-devel] trouble with DWA-552 and ath9k In-Reply-To: <19277.32410.462158.258222@gargle.gargle.HOWL> References: <4B2A5FA8.8060905@charter.net> <19242.62265.487757.695747@gargle.gargle.HOWL> <4B2AFC5D.1060001@charter.net> <19243.2224.974537.876295@gargle.gargle.HOWL> <4B39058A.6080108@charter.net> <1262033354.3002.11.camel@mj> <4B391DCB.6010500@charter.net> <1262035725.3002.23.camel@mj> <4B393739.9000601@charter.net> <20091229100250.xle1s7oai8ow08k8-cebfxv@webmail.spamcop.net> <4B3A8F7B.2050106@charter.net> <20091230011624.zygif55zaco8000s-cebfxv@webmail.spamcop.net> <4B436D94.4050304@charter.net> <19270.46529.788691.185819@gargle.gargle.HOWL> <4B489D63.9030305@charter.net> <19273.25018.877385.529083@gargle.gargle.HOWL> <4B4D1F4F.7090106@charter.net> <19277.32410.462158.258222@gargle.gargle.HOWL> Message-ID: <1263396959.8723.17.camel@ct> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Wed, 2010-01-13 at 13:34 +0530, Sujith wrote: > Brian Walker wrote: > > Ok! Now I have some debugging information. Here are the ath9k lines from > > dmesg right after boot: That's for Ubiquiti SR71A: # modprobe ath9k ath9k 0000:04:01.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19 ath: UNDEFINED -> AWAKE ath: serialize_regmode is 1 ath: Eeprom VER: 14, REV: 22 ath: EEPROM regdomain: 0x0 ath: EEPROM indicates default country code should be used ath: doing EEPROM country->regdmn map search ath: country maps to regdmn code: 0x3a ath: Country alpha2 being used: US ath: Regpair used: 0x3a ath: tx DMA: 512 buffers 1 desc/buf ath: tx DMA map: ffff88003bfa0000 (80712) -> 3bfa0000 (80712) ath: beacon DMA: 4 buffers 1 desc/buf ath: beacon DMA map: ffff88003bf74000 (608) -> 3bf74000 (608) ath: cachelsz 32 rxbufsize 3872 ath: rx DMA: 512 buffers 1 desc/buf ath: rx DMA map: ffff88003bf40000 (80712) -> 3bf40000 (80712) phy4: Selected rate control algorithm 'ath9k_rate_control' Registered led device: ath9k-phy4::radio Registered led device: ath9k-phy4::assoc Registered led device: ath9k-phy4::tx Registered led device: ath9k-phy4::rx phy4: Atheros AR9280 Rev:2 mem=0xffffc90008320000, irq=19 udev: renamed network interface wlan0 to wlan4 # ifconfig wlan4 up ath: Starting driver with initial channel: 2412 MHz ath: ah->misc_mode 0x4 ath: timeout (100000 us) on reg 0x9860: 0xdeadbeef & 0x00000001 != 0x00000000 ath: Unable to reset hardware; reset status -5 (freq 2412 MHz) > The first HW reset fails as the contents of RTC_RC is weird. > Which probably means that the earlier initialization messed up somewhere, > corrupting the RTC register space - this would be my immediate guess. > > Will take a look. Thanks for the debug log. I was able to make Ubiquiti SR71A work (at least it can scan now) by treating it as an older Merlin 1.0 rather that Merlin 2.1 (version 0x80, revision 2) as it claims to be: diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 2311fe7..20f5375 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c @@ -690,7 +690,7 @@ static void ath9k_hw_init_mode_regs(struct ath_hw *ah) ar9285PciePhy_clkreq_always_on_L1_9285, ARRAY_SIZE(ar9285PciePhy_clkreq_always_on_L1_9285), 2); } - } else if (AR_SREV_9280_20_OR_LATER(ah)) { + } else if (0) { INIT_INI_ARRAY(&ah->iniModes, ar9280Modes_9280_2, ARRAY_SIZE(ar9280Modes_9280_2), 6); INIT_INI_ARRAY(&ah->iniCommon, ar9280Common_9280_2, -- Regards, Pavel Roskin