Move source tree closer to the 2.6.32.17 mainline
/drivers/net/wireless/ath/ath5k/reset.c
blob:34e13c7008497c5a270832874b096fe118988ad7 -> blob:257ea18c849f3c5376a53163d025ccf1fdc6ee3f
--- drivers/net/wireless/ath/ath5k/reset.c
+++ drivers/net/wireless/ath/ath5k/reset.c
@@ -1382,8 +1382,9 @@ int ath5k_hw_reset(struct ath5k_hw *ah,
* 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