diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00.h')
| -rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index ed2ae6efcaa..65275efcf27 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h @@ -192,6 +192,7 @@ struct rt2x00_chip {  #define RT3593		0x3593  #define RT3883		0x3883	/* WSOC */  #define RT5390		0x5390  /* 2.4GHz */ +#define RT5392		0x5392  /* 2.4GHz */  	u16 rf;  	u16 rev; @@ -355,6 +356,11 @@ struct link {  	 * Work structure for scheduling periodic AGC adjustments.  	 */  	struct delayed_work agc_work; + +	/* +	 * Work structure for scheduling periodic VCO calibration. +	 */ +	struct delayed_work vco_work;  };  enum rt2x00_delayed_flags { @@ -579,6 +585,7 @@ struct rt2x00lib_ops {  	void (*link_tuner) (struct rt2x00_dev *rt2x00dev,  			    struct link_qual *qual, const u32 count);  	void (*gain_calibration) (struct rt2x00_dev *rt2x00dev); +	void (*vco_calibration) (struct rt2x00_dev *rt2x00dev);  	/*  	 * Data queue handlers. @@ -722,6 +729,7 @@ enum rt2x00_capability_flags {  	CAPABILITY_EXTERNAL_LNA_BG,  	CAPABILITY_DOUBLE_ANTENNA,  	CAPABILITY_BT_COEXIST, +	CAPABILITY_VCO_RECALIBRATION,  };  /* @@ -978,6 +986,11 @@ struct rt2x00_dev {  	struct tasklet_struct autowake_tasklet;  	/* +	 * Used for VCO periodic calibration. +	 */ +	int rf_channel; + +	/*  	 * Protect the interrupt mask register.  	 */  	spinlock_t irqmask_lock;  |