Skip to contentSkip to conversation

ath5k: Right channel setting for ar2317 chip

PATCH In review Nikolay Ledovskikh 3 participants 4 messages Feb 15, 2011 – Feb 17, 2011 Atheros ATH5K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath5k: Right channel setting for ar2317 chip

Patch that fixes right channel setting when running ar2317 based boards.

---

drivers/net/wireless/ath/ath5k/phy.c +1 -0
index 78c26fd..c44111f 100644
@@ -1253,6 +1253,7 @@ static int ath5k_hw_channel(struct ath5k_hw *ah,
 	case AR5K_RF5111:
 		ret = ath5k_hw_rf5111_channel(ah, channel);
 		break;
+	case AR5K_RF2317:
 	case AR5K_RF2425:
 		ret = ath5k_hw_rf2425_channel(ah, channel);
 		break;
Signature · 1 line
Best regards, Nikolay Ledovskikh.
#1 lore raw
Quoted 1 line · Nikolay Ledovskikh

Patch that fixes right channel setting when running ar2317 based boards.

I see what it does. However I want to know why. That's what the changelog should enlighten. I suppose we didn't handled ar2317 and we want to. And since it is the same as 2425 we may reuse the current code?

Quoted 15 lines

---

drivers/net/wireless/ath/ath5k/phy.c +1 -0
index 78c26fd..c44111f 100644
@@ -1253,6 +1253,7 @@ static int ath5k_hw_channel(struct ath5k_hw *ah,
 	case AR5K_RF5111:
 		ret = ath5k_hw_rf5111_channel(ah, channel);
 		break;
+	case AR5K_RF2317:
 	case AR5K_RF2425:
 		ret = ath5k_hw_rf2425_channel(ah, channel);
 		break;
Signature · 1 line
js
#2 lore raw

Yes, we can reuse the code.
rf2317 handled but not fully, when I tested ahb patch on bullet2 all seemed to work fine, but it couldn't connect another host (ibss for example). During an analysis I observed that it's transmitting on another channel and then I looked into madwifi code and understood that the problem is in channel setting function.

--
Best regards, Nikolay Ledovskikh.

maintainer
#3 lore raw
In reply to Nikolay Ledovskikh

2011/2/15 Nikolay Ledovskikh <[email protected]>:

Quoted 17 lines

Patch that fixes right channel setting when running ar2317 based boards.

---

drivers/net/wireless/ath/ath5k/phy.c +0 -0
index 78c26fd..c44111f 100644
@@ -1253,6 +1253,7 @@ static int ath5k_hw_channel(struct ath5k_hw *ah,

       case AR5K_RF5111:
               ret = ath5k_hw_rf5111_channel(ah, channel); break;
+       case AR5K_RF2317:
       case AR5K_RF2425:
               ret = ath5k_hw_rf2425_channel(ah, channel); break;

Quoted 3 lines

--
Best regards, Nikolay Ledovskikh.

Thanks for catching that, I forgot to add it ;-)

Please resend with a better changelog (eg. "Use correct channel setting function for AR2317") so that everyone is happy.

Signature · 3 lines
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick