aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2010-03-25 01:49:03 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-03-31 14:39:08 -0400
commit1063b176c072b936c43d0e6270168b19881ecb72 (patch)
tree4d820873db5ce8a8182ebf4bf7f877cc334be886
parent0e354fd01e4513cea25d66e9c6d9e76f7228accc (diff)
ath5k: remove static calibration interval variable
Remove static variable ath5k_calinterval which was used as a constant. Use a #define instead. Also we don't need ah_cal_intval. Signed-off-by: Bruno Randolf <br1@einfach.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath5k/ath5k.h4
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c4
-rw-r--r--drivers/net/wireless/ath/ath5k/phy.c2
3 files changed, 2 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h
index 1d7491c8546..a3019ee4f2f 100644
--- a/drivers/net/wireless/ath/ath5k/ath5k.h
+++ b/drivers/net/wireless/ath/ath5k/ath5k.h
@@ -202,6 +202,7 @@
202#define AR5K_TUNE_MAX_TXPOWER 63 202#define AR5K_TUNE_MAX_TXPOWER 63
203#define AR5K_TUNE_DEFAULT_TXPOWER 25 203#define AR5K_TUNE_DEFAULT_TXPOWER 25
204#define AR5K_TUNE_TPC_TXPOWER false 204#define AR5K_TUNE_TPC_TXPOWER false
205#define ATH5K_TUNE_CALIBRATION_INTERVAL_FULL 10000 /* 10 sec */
205 206
206#define AR5K_INIT_CARR_SENSE_EN 1 207#define AR5K_INIT_CARR_SENSE_EN 1
207 208
@@ -1101,9 +1102,6 @@ struct ath5k_hw {
1101 /* Calibration timestamp */ 1102 /* Calibration timestamp */
1102 unsigned long ah_cal_tstamp; 1103 unsigned long ah_cal_tstamp;
1103 1104
1104 /* Calibration interval (secs) */
1105 u8 ah_cal_intval;
1106
1107 /* Software interrupt mask */ 1105 /* Software interrupt mask */
1108 u8 ah_swi_mask; 1106 u8 ah_swi_mask;
1109 1107
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index b142a78ed1e..39d58001725 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -59,7 +59,6 @@
59#include "reg.h" 59#include "reg.h"
60#include "debug.h" 60#include "debug.h"
61 61
62static u8 ath5k_calinterval = 10; /* Calibrate PHY every 10 secs (TODO: Fixme) */
63static int modparam_nohwcrypt; 62static int modparam_nohwcrypt;
64module_param_named(nohwcrypt, modparam_nohwcrypt, bool, S_IRUGO); 63module_param_named(nohwcrypt, modparam_nohwcrypt, bool, S_IRUGO);
65MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption."); 64MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption.");
@@ -2497,9 +2496,6 @@ ath5k_init(struct ath5k_softc *sc)
2497 */ 2496 */
2498 ath5k_stop_locked(sc); 2497 ath5k_stop_locked(sc);
2499 2498
2500 /* Set PHY calibration interval */
2501 ah->ah_cal_intval = ath5k_calinterval;
2502
2503 /* 2499 /*
2504 * The basic interface to setting the hardware in a good 2500 * The basic interface to setting the hardware in a good
2505 * state is ``reset''. On return the hardware is known to 2501 * state is ``reset''. On return the hardware is known to
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c
index 384347b0c9f..01b3f29ec13 100644
--- a/drivers/net/wireless/ath/ath5k/phy.c
+++ b/drivers/net/wireless/ath/ath5k/phy.c
@@ -1108,7 +1108,7 @@ ath5k_hw_calibration_poll(struct ath5k_hw *ah)
1108 /* Calibration interval in jiffies */ 1108 /* Calibration interval in jiffies */
1109 unsigned long cal_intval; 1109 unsigned long cal_intval;
1110 1110
1111 cal_intval = msecs_to_jiffies(ah->ah_cal_intval * 1000); 1111 cal_intval = msecs_to_jiffies(ATH5K_TUNE_CALIBRATION_INTERVAL_FULL);
1112 1112
1113 /* Initialize timestamp if needed */ 1113 /* Initialize timestamp if needed */
1114 if (!ah->ah_cal_tstamp) 1114 if (!ah->ah_cal_tstamp)