|
@@ -1374,8 +1374,9 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
|
|
|
* Set clocks to 32KHz operation and use an
|
|
|
* external 32KHz crystal when sleeping if one
|
|
|
* exists */
|
|
|
- if (ah->ah_version == AR5K_AR5212)
|
|
|
- ath5k_hw_set_sleep_clock(ah, true);
|
|
|
+ if (ah->ah_version == AR5K_AR5212 &&
|
|
|
+ ah->ah_op_mode != NL80211_IFTYPE_AP)
|
|
|
+ ath5k_hw_set_sleep_clock(ah, true);
|
|
|
|
|
|
/*
|
|
|
* Disable beacons and reset the register
|