aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath5k/reset.c
diff options
context:
space:
mode:
authorNick Kossifidis <mick@madwifi-project.org>2009-02-08 23:08:51 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-13 13:44:47 -0500
commita406c139091902acebafb2462b64ba498901e820 (patch)
treec3db1c89dc6019026fe66f9d21d608aa1052cf37 /drivers/net/wireless/ath5k/reset.c
parent8892e4ec62f1553d36c88e613890aa4d7c5a372e (diff)
ath5k: Update initvals
* Update initvals to match legacy and Sam's HAL Signed-off-by: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath5k/reset.c')
-rw-r--r--drivers/net/wireless/ath5k/reset.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath5k/reset.c b/drivers/net/wireless/ath5k/reset.c
index 40cf4c7b63b..579c64ce610 100644
--- a/drivers/net/wireless/ath5k/reset.c
+++ b/drivers/net/wireless/ath5k/reset.c
@@ -457,15 +457,6 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
457 * 5210 only comes with RF5110 457 * 5210 only comes with RF5110
458 */ 458 */
459 if (ah->ah_version != AR5K_AR5210) { 459 if (ah->ah_version != AR5K_AR5210) {
460 if (ah->ah_radio != AR5K_RF5111 &&
461 ah->ah_radio != AR5K_RF5112 &&
462 ah->ah_radio != AR5K_RF5413 &&
463 ah->ah_radio != AR5K_RF2413 &&
464 ah->ah_radio != AR5K_RF2425) {
465 ATH5K_ERR(ah->ah_sc,
466 "invalid phy radio: %u\n", ah->ah_radio);
467 return -EINVAL;
468 }
469 460
470 switch (channel->hw_value & CHANNEL_MODES) { 461 switch (channel->hw_value & CHANNEL_MODES) {
471 case CHANNEL_A: 462 case CHANNEL_A:
@@ -510,11 +501,11 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
510 return -EINVAL; 501 return -EINVAL;
511 } 502 }
512 503
513 /* PHY access enable */
514 ath5k_hw_reg_write(ah, AR5K_PHY_SHIFT_5GHZ, AR5K_PHY(0));
515
516 } 504 }
517 505
506 /* PHY access enable */
507 ath5k_hw_reg_write(ah, AR5K_PHY_SHIFT_5GHZ, AR5K_PHY(0));
508
518 ret = ath5k_hw_write_initvals(ah, mode, change_channel); 509 ret = ath5k_hw_write_initvals(ah, mode, change_channel);
519 if (ret) 510 if (ret)
520 return ret; 511 return ret;