Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194370
b: refs/heads/master
c: bab1f62
h: refs/heads/master
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Apr 16, 2010
1 parent 65f75cb commit decce65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 8525f2801df14b6c4ae6a96127e47d646be5304c
refs/heads/master: bab1f62e214f19d2edb1b5508ad5ba1b0a8a22ec
9 changes: 5 additions & 4 deletions trunk/drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,6 @@ static void ath9k_hw_init_defaults(struct ath_hw *ah)
ah->hw_version.subvendorid = 0;

ah->ah_flags = 0;
if (ah->hw_version.devid == AR5416_AR9100_DEVID)
ah->hw_version.macVersion = AR_SREV_VERSION_9100;
if (!AR_SREV_9100(ah))
ah->ah_flags = AH_USE_EEPROM;

Expand Down Expand Up @@ -873,15 +871,18 @@ static int __ath9k_hw_init(struct ath_hw *ah)
struct ath_common *common = ath9k_hw_common(ah);
int r = 0;

ath9k_hw_init_defaults(ah);
ath9k_hw_init_config(ah);
if (ah->hw_version.devid == AR5416_AR9100_DEVID)
ah->hw_version.macVersion = AR_SREV_VERSION_9100;

if (!ath9k_hw_set_reset_reg(ah, ATH9K_RESET_POWER_ON)) {
ath_print(common, ATH_DBG_FATAL,
"Couldn't reset chip\n");
return -EIO;
}

ath9k_hw_init_defaults(ah);
ath9k_hw_init_config(ah);

ath9k_hw_attach_ops(ah);

if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE)) {
Expand Down

0 comments on commit decce65

Please sign in to comment.