Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171339
b: refs/heads/master
c: e68a060
h: refs/heads/master
i:
  171337: 500c194
  171335: 951edaf
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Oct 30, 2009
1 parent d19a5c4 commit dfdc1ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 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: 0a3b7bac673ee9462f5defe808609746d27af50d
refs/heads/master: e68a060b5d88a72c06ec87864d20bea3f2a40629
15 changes: 6 additions & 9 deletions trunk/drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,8 +951,11 @@ int ath9k_hw_init(struct ath_hw *ah)
ath9k_hw_init_cal_settings(ah);

ah->ani_function = ATH9K_ANI_ALL;
if (AR_SREV_9280_10_OR_LATER(ah))
if (AR_SREV_9280_10_OR_LATER(ah)) {
ah->ani_function &= ~ATH9K_ANI_NOISE_IMMUNITY_LEVEL;
ah->ath9k_hw_rf_set_freq = &ath9k_hw_ar9280_set_channel;
} else
ah->ath9k_hw_rf_set_freq = &ath9k_hw_set_channel;

ath9k_hw_init_mode_regs(ah);

Expand Down Expand Up @@ -1889,10 +1892,7 @@ static bool ath9k_hw_channel_change(struct ath_hw *ah,

ath9k_hw_set_regs(ah, chan);

if (AR_SREV_9280_10_OR_LATER(ah))
r = ath9k_hw_ar9280_set_channel(ah, chan);
else
r = ath9k_hw_set_channel(ah, chan);
r = ah->ath9k_hw_rf_set_freq(ah, chan);
if (r) {
ath_print(common, ATH_DBG_FATAL,
"Failed to set channel\n");
Expand Down Expand Up @@ -2534,10 +2534,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,

REG_WRITE(ah, AR_RSSI_THR, INIT_RSSI_THR);

if (AR_SREV_9280_10_OR_LATER(ah))
r = ath9k_hw_ar9280_set_channel(ah, chan);
else
r = ath9k_hw_set_channel(ah, chan);
r = ah->ath9k_hw_rf_set_freq(ah, chan);
if (r)
return r;

Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/net/wireless/ath/ath9k/hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,9 @@ struct ath_hw {
DONT_USE_32KHZ,
} enable_32kHz_clock;

/* RF */
/* Callback for radio frequency change */
int (*ath9k_hw_rf_set_freq)(struct ath_hw *ah, struct ath9k_channel *chan);
/* Used to program the radio on non single-chip devices */
u32 *analogBank0Data;
u32 *analogBank1Data;
u32 *analogBank2Data;
Expand Down

0 comments on commit dfdc1ec

Please sign in to comment.