Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194106
b: refs/heads/master
c: 1063b17
h: refs/heads/master
v: v3
  • Loading branch information
Bruno Randolf authored and John W. Linville committed Mar 31, 2010
1 parent f0ca647 commit 95686dd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e354fd01e4513cea25d66e9c6d9e76f7228accc
refs/heads/master: 1063b176c072b936c43d0e6270168b19881ecb72
4 changes: 1 addition & 3 deletions trunk/drivers/net/wireless/ath/ath5k/ath5k.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@
#define AR5K_TUNE_MAX_TXPOWER 63
#define AR5K_TUNE_DEFAULT_TXPOWER 25
#define AR5K_TUNE_TPC_TXPOWER false
#define ATH5K_TUNE_CALIBRATION_INTERVAL_FULL 10000 /* 10 sec */

#define AR5K_INIT_CARR_SENSE_EN 1

Expand Down Expand Up @@ -1101,9 +1102,6 @@ struct ath5k_hw {
/* Calibration timestamp */
unsigned long ah_cal_tstamp;

/* Calibration interval (secs) */
u8 ah_cal_intval;

/* Software interrupt mask */
u8 ah_swi_mask;

Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/net/wireless/ath/ath5k/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
#include "reg.h"
#include "debug.h"

static u8 ath5k_calinterval = 10; /* Calibrate PHY every 10 secs (TODO: Fixme) */
static int modparam_nohwcrypt;
module_param_named(nohwcrypt, modparam_nohwcrypt, bool, S_IRUGO);
MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption.");
Expand Down Expand Up @@ -2497,9 +2496,6 @@ ath5k_init(struct ath5k_softc *sc)
*/
ath5k_stop_locked(sc);

/* Set PHY calibration interval */
ah->ah_cal_intval = ath5k_calinterval;

/*
* The basic interface to setting the hardware in a good
* state is ``reset''. On return the hardware is known to
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/ath/ath5k/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ ath5k_hw_calibration_poll(struct ath5k_hw *ah)
/* Calibration interval in jiffies */
unsigned long cal_intval;

cal_intval = msecs_to_jiffies(ah->ah_cal_intval * 1000);
cal_intval = msecs_to_jiffies(ATH5K_TUNE_CALIBRATION_INTERVAL_FULL);

/* Initialize timestamp if needed */
if (!ah->ah_cal_tstamp)
Expand Down

0 comments on commit 95686dd

Please sign in to comment.