Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170578
b: refs/heads/master
c: 63a75b9
h: refs/heads/master
v: v3
  • Loading branch information
Senthil Balasubramanian authored and John W. Linville committed Oct 7, 2009
1 parent 4fc308d commit 9260bed
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1d50a69b18818b276333590d1f2c9382d292d84d
refs/heads/master: 63a75b912b00fbafeb54849ca3bcd0295ad68609
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/ath/ath9k/calib.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,11 +653,11 @@ void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan)
AR_PHY_AGC_CONTROL_NO_UPDATE_NF);
REG_SET_BIT(ah, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_NF);

for (j = 0; j < 1000; j++) {
for (j = 0; j < 5; j++) {
if ((REG_READ(ah, AR_PHY_AGC_CONTROL) &
AR_PHY_AGC_CONTROL_NF) == 0)
break;
udelay(10);
udelay(50);
}

for (i = 0; i < NUM_NF_READINGS; i++) {
Expand Down
15 changes: 11 additions & 4 deletions trunk/drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1691,8 +1691,6 @@ static bool ath9k_hw_set_reset(struct ath_hw *ah, int type)
if (!AR_SREV_9100(ah))
REG_WRITE(ah, AR_RC, 0);

ath9k_hw_init_pll(ah, NULL);

if (AR_SREV_9100(ah))
udelay(50);

Expand Down Expand Up @@ -2885,6 +2883,7 @@ static bool ath9k_hw_set_power_awake(struct ath_hw *ah, int setChip)
ATH9K_RESET_POWER_ON) != true) {
return false;
}
ath9k_hw_init_pll(ah, NULL);
}
if (AR_SREV_9100(ah))
REG_SET_BIT(ah, AR_RTC_RESET,
Expand Down Expand Up @@ -3968,15 +3967,23 @@ void ath9k_hw_setrxfilter(struct ath_hw *ah, u32 bits)

bool ath9k_hw_phy_disable(struct ath_hw *ah)
{
return ath9k_hw_set_reset_reg(ah, ATH9K_RESET_WARM);
if (!ath9k_hw_set_reset_reg(ah, ATH9K_RESET_WARM))
return false;

ath9k_hw_init_pll(ah, NULL);
return true;
}

bool ath9k_hw_disable(struct ath_hw *ah)
{
if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE))
return false;

return ath9k_hw_set_reset_reg(ah, ATH9K_RESET_COLD);
if (!ath9k_hw_set_reset_reg(ah, ATH9K_RESET_COLD))
return false;

ath9k_hw_init_pll(ah, NULL);
return true;
}

void ath9k_hw_set_txpowerlimit(struct ath_hw *ah, u32 limit)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/ath/ath9k/hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
#define AR_GPIO_BIT(_gpio) (1 << (_gpio))

#define BASE_ACTIVATE_DELAY 100
#define RTC_PLL_SETTLE_DELAY 1000
#define RTC_PLL_SETTLE_DELAY 100
#define COEF_SCALE_S 24
#define HT40_CHANNEL_CENTER_SHIFT 10

Expand Down

0 comments on commit 9260bed

Please sign in to comment.