Skip to contentSkip to conversation

ath5k: Correct channel setting for ar2317 chip

PATCH In review Nikolay Ledovskikh 2 participants 2 messages Feb 17, 2011 Atheros ATH5K wireless driver

lore
Share & tools
lore
#0 lore raw

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

Use correct channel setting function for AR2317

---

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

Use correct channel setting function for AR2317

This is as useless as the one before. Why you didn't add there what you already wrote:
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.

This is almost perfect and what people want to know. Especially those who deal with distro bug reports and backport patches to distro kernels...

Quoted 7 lines

---

drivers/net/wireless/ath/ath5k/phy.c +0 -0
index 78c26fd..c44111f 100644

drivers/net/wireless/ath/ath5k/phy.c static int ath5k_hw_channel(struct ath5k_hw *ah, · line 1259

Quoted 7 lines
drivers/net/wireless/ath/ath5k/phy.c +1 -0
@@ -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;

thanks,

Signature · 1 line
js