aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath5k/reset.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c
index 62954fc77869..dbc52ee183b2 100644
--- a/drivers/net/wireless/ath/ath5k/reset.c
+++ b/drivers/net/wireless/ath/ath5k/reset.c
@@ -1371,8 +1371,9 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
1371 * Set clocks to 32KHz operation and use an 1371 * Set clocks to 32KHz operation and use an
1372 * external 32KHz crystal when sleeping if one 1372 * external 32KHz crystal when sleeping if one
1373 * exists */ 1373 * exists */
1374 if (ah->ah_version == AR5K_AR5212) 1374 if (ah->ah_version == AR5K_AR5212 &&
1375 ath5k_hw_set_sleep_clock(ah, true); 1375 ah->ah_op_mode != NL80211_IFTYPE_AP)
1376 ath5k_hw_set_sleep_clock(ah, true);
1376 1377
1377 /* 1378 /*
1378 * Disable beacons and reset the register 1379 * Disable beacons and reset the register