Skip to contentSkip to conversation

ath5k: Does not connect reliably on 2.6.27

PATCH Nick Kossifidis 2 participants 2 messages Oct 14, 2008 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

2008/10/14 Elias Oltmanns <[email protected]>:

Quoted 40 lines

Hi all,

after a cold boot into 2.6.27, ath5k doesn't work on my machine. The sequence

# ifconfig ath0 up
# iwlist ath0 ap

results in a message informing me that no list of APs is available for that device. I have identified the following commit as the guilty one:

commit 2203d6be7ed17af81a1dc35a0af9806086743b02

Author: Nick Kossifidis <[email protected]>
Date:   Sun Jul 20 06:36:52 2008 +0300

ath5k: Misc hw_reset updates

* Update hw_reset to calculate some of the values we were using as static
* Increase activation to rx delay

Changes-licensed-under: ISC

The minimal patch to fix the issue for me is attached. However, I am wondering whether the preceding writes to register 0xa228 should be dropped or at least adjusted somehow. Perhaps those of you who know the recently released HAL from Atheros can throw some light on the matter.

Regards,

Elias
---

drivers/net/wireless/ath5k/hw.c +0 -0
index dc51b84..b1cec2a 100644

drivers/net/wireless/ath5k/hw.c int ath5k_hw_reset(struct ath5k_hw *ah, enum ieee80211_if_types op_mode, · line 868

Quoted 8 lines
drivers/net/wireless/ath5k/hw.c +1 -1
@@ -862,7 +862,7 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum ieee80211_if_types op_mode,
                       data = 0;
 
                       /* Just write 0x9b5 ? */
-                       /* ath5k_hw_reg_write(ah, 0x000009b5, 0xa228); */
+                       ath5k_hw_reg_write(ah, 0x000009b5, 0xa228);
                       ath5k_hw_reg_write(ah, 0x0000000f, AR5K_SEQ_MASK);
                       ath5k_hw_reg_write(ah, 0x00000000, 0xa254);
                       ath5k_hw_reg_write(ah, 0x0000000e, AR5K_PHY_SCAL);

I think i've fixed that (it's a buggy mask some lines above) on an earlier patch (the one that introduced AR2425 support) but i'll look into it again ;-)

Signature · 3 lines
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick
#2 lore raw
Quoted 12 lines · Nick Kossifidis

2008/10/14 Elias Oltmanns <[email protected]>:

Quoted 11 lines

Hi all,

after a cold boot into 2.6.27, ath5k doesn't work on my machine. The sequence

# ifconfig ath0 up
# iwlist ath0 ap

results in a message informing me that no list of APs is available for that device.

[...]

Quoted 16 lines
Quoted 16 lines

The minimal patch to fix the issue for me is attached. However, I am wondering whether the preceding writes to register 0xa228 should be dropped or at least adjusted somehow. Perhaps those of you who know the recently released HAL from Atheros can throw some light on the matter.

Regards,

Elias
---

drivers/net/wireless/ath5k/hw.c +0 -0
index dc51b84..b1cec2a 100644
@@ -862,7 +862,7 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum ieee80211_if_types op_mode,
                       data = 0;
 
Quoted 11 lines

drivers/net/wireless/ath5k/hw.c int ath5k_hw_reset(struct ath5k_hw *ah, enum ieee80211_if_types op_mode, · line 868

Quoted 7 lines
drivers/net/wireless/ath5k/hw.c +1 -1
                       /* Just write 0x9b5 ? */
-                       /* ath5k_hw_reg_write(ah, 0x000009b5, 0xa228); */
+                       ath5k_hw_reg_write(ah, 0x000009b5, 0xa228);
                       ath5k_hw_reg_write(ah, 0x0000000f, AR5K_SEQ_MASK);
                       ath5k_hw_reg_write(ah, 0x00000000, 0xa254);
                       ath5k_hw_reg_write(ah, 0x0000000e, AR5K_PHY_SCAL);

I think i've fixed that (it's a buggy mask some lines above) on an earlier patch (the one that introduced AR2425 support) but i'll look into it again ;-)

Can you drop me a link or a commit + tree so I can test it?

Regards,

Elias