diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-08-25 14:51:42 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-25 14:51:42 -0400 |
commit | e569aa78ba01f7f66e016a4d57310fd041524d17 (patch) | |
tree | eaedc03d42ee2bf6200fc07b080a99bad103def3 /drivers/net/wireless/ath/ath5k/reset.c | |
parent | 4562487a00445eab96311365ba15c41dc4d043cd (diff) | |
parent | 268bae0b6879f238ba57f5f801958d1254e136f7 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts:
drivers/net/wireless/libertas/if_sdio.c
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/reset.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/reset.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c index 498aa28ea9e6..4154959125b6 100644 --- a/drivers/net/wireless/ath/ath5k/reset.c +++ b/drivers/net/wireless/ath/ath5k/reset.c | |||
@@ -959,7 +959,7 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode, | |||
959 | AR5K_QUEUE_DCU_SEQNUM(0)); | 959 | AR5K_QUEUE_DCU_SEQNUM(0)); |
960 | } | 960 | } |
961 | 961 | ||
962 | /* TSF accelerates on AR5211 durring reset | 962 | /* TSF accelerates on AR5211 during reset |
963 | * As a workaround save it here and restore | 963 | * As a workaround save it here and restore |
964 | * it later so that it's back in time after | 964 | * it later so that it's back in time after |
965 | * reset. This way it'll get re-synced on the | 965 | * reset. This way it'll get re-synced on the |
@@ -1080,7 +1080,7 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode, | |||
1080 | return ret; | 1080 | return ret; |
1081 | 1081 | ||
1082 | /* Spur info is available only from EEPROM versions | 1082 | /* Spur info is available only from EEPROM versions |
1083 | * bigger than 5.3 but but the EEPOM routines will use | 1083 | * greater than 5.3, but the EEPROM routines will use |
1084 | * static values for older versions */ | 1084 | * static values for older versions */ |
1085 | if (ah->ah_mac_srev >= AR5K_SREV_AR5424) | 1085 | if (ah->ah_mac_srev >= AR5K_SREV_AR5424) |
1086 | ath5k_hw_set_spur_mitigation_filter(ah, | 1086 | ath5k_hw_set_spur_mitigation_filter(ah, |
@@ -1160,7 +1160,7 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode, | |||
1160 | */ | 1160 | */ |
1161 | 1161 | ||
1162 | /* Restore bssid and bssid mask */ | 1162 | /* Restore bssid and bssid mask */ |
1163 | ath5k_hw_set_associd(ah); | 1163 | ath5k_hw_set_bssid(ah); |
1164 | 1164 | ||
1165 | /* Set PCU config */ | 1165 | /* Set PCU config */ |
1166 | ath5k_hw_set_opmode(ah, op_mode); | 1166 | ath5k_hw_set_opmode(ah, op_mode); |
@@ -1173,11 +1173,11 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode, | |||
1173 | /* Set RSSI/BRSSI thresholds | 1173 | /* Set RSSI/BRSSI thresholds |
1174 | * | 1174 | * |
1175 | * Note: If we decide to set this value | 1175 | * Note: If we decide to set this value |
1176 | * dynamicaly, have in mind that when AR5K_RSSI_THR | 1176 | * dynamically, keep in mind that when AR5K_RSSI_THR |
1177 | * register is read it might return 0x40 if we haven't | 1177 | * register is read, it might return 0x40 if we haven't |
1178 | * wrote anything to it plus BMISS RSSI threshold is zeroed. | 1178 | * written anything to it. Also, BMISS RSSI threshold is zeroed. |
1179 | * So doing a save/restore procedure here isn't the right | 1179 | * So doing a save/restore procedure here isn't the right |
1180 | * choice. Instead store it on ath5k_hw */ | 1180 | * choice. Instead, store it in ath5k_hw */ |
1181 | ath5k_hw_reg_write(ah, (AR5K_TUNE_RSSI_THRES | | 1181 | ath5k_hw_reg_write(ah, (AR5K_TUNE_RSSI_THRES | |
1182 | AR5K_TUNE_BMISS_THRES << | 1182 | AR5K_TUNE_BMISS_THRES << |
1183 | AR5K_RSSI_THR_BMISS_S), | 1183 | AR5K_RSSI_THR_BMISS_S), |
@@ -1235,7 +1235,7 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode, | |||
1235 | 1235 | ||
1236 | /* | 1236 | /* |
1237 | * Perform ADC test to see if baseband is ready | 1237 | * Perform ADC test to see if baseband is ready |
1238 | * Set tx hold and check adc test register | 1238 | * Set TX hold and check ADC test register |
1239 | */ | 1239 | */ |
1240 | phy_tst1 = ath5k_hw_reg_read(ah, AR5K_PHY_TST1); | 1240 | phy_tst1 = ath5k_hw_reg_read(ah, AR5K_PHY_TST1); |
1241 | ath5k_hw_reg_write(ah, AR5K_PHY_TST1_TXHOLD, AR5K_PHY_TST1); | 1241 | ath5k_hw_reg_write(ah, AR5K_PHY_TST1_TXHOLD, AR5K_PHY_TST1); |
@@ -1254,15 +1254,15 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode, | |||
1254 | * | 1254 | * |
1255 | * This method is used to calibrate some static offsets | 1255 | * This method is used to calibrate some static offsets |
1256 | * used together with on-the fly I/Q calibration (the | 1256 | * used together with on-the fly I/Q calibration (the |
1257 | * one performed via ath5k_hw_phy_calibrate), that doesn't | 1257 | * one performed via ath5k_hw_phy_calibrate), which doesn't |
1258 | * interrupt rx path. | 1258 | * interrupt rx path. |
1259 | * | 1259 | * |
1260 | * While rx path is re-routed to the power detector we also | 1260 | * While rx path is re-routed to the power detector we also |
1261 | * start a noise floor calibration, to measure the | 1261 | * start a noise floor calibration to measure the |
1262 | * card's noise floor (the noise we measure when we are not | 1262 | * card's noise floor (the noise we measure when we are not |
1263 | * transmiting or receiving anything). | 1263 | * transmitting or receiving anything). |
1264 | * | 1264 | * |
1265 | * If we are in a noisy environment AGC calibration may time | 1265 | * If we are in a noisy environment, AGC calibration may time |
1266 | * out and/or noise floor calibration might timeout. | 1266 | * out and/or noise floor calibration might timeout. |
1267 | */ | 1267 | */ |
1268 | AR5K_REG_ENABLE_BITS(ah, AR5K_PHY_AGCCTL, | 1268 | AR5K_REG_ENABLE_BITS(ah, AR5K_PHY_AGCCTL, |