diff options
Diffstat (limited to 'drivers/net/wireless/ath/carl9170/phy.c')
-rw-r--r-- | drivers/net/wireless/ath/carl9170/phy.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/carl9170/phy.c b/drivers/net/wireless/ath/carl9170/phy.c index aa147a9120b6..8635c5c8463c 100644 --- a/drivers/net/wireless/ath/carl9170/phy.c +++ b/drivers/net/wireless/ath/carl9170/phy.c | |||
@@ -578,11 +578,10 @@ static int carl9170_init_phy(struct ar9170 *ar, enum ieee80211_band band) | |||
578 | if (err) | 578 | if (err) |
579 | return err; | 579 | return err; |
580 | 580 | ||
581 | /* XXX: remove magic! */ | 581 | if (!ar->fw.hw_counters) { |
582 | if (is_2ghz) | 582 | err = carl9170_write_reg(ar, AR9170_PWR_REG_PLL_ADDAC, |
583 | err = carl9170_write_reg(ar, AR9170_PWR_REG_PLL_ADDAC, 0x5163); | 583 | is_2ghz ? 0x5163 : 0x5143); |
584 | else | 584 | } |
585 | err = carl9170_write_reg(ar, AR9170_PWR_REG_PLL_ADDAC, 0x5143); | ||
586 | 585 | ||
587 | return err; | 586 | return err; |
588 | } | 587 | } |