ath9k_htc: Use macro for caldata array size
authorMohammed Shafi Shajakhan <mshajakhan@atheros.com>
Sat, 13 Nov 2010 15:28:27 +0000 (20:58 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 16 Nov 2010 21:39:09 +0000 (16:39 -0500)
The calibration data variable size is based on the number of
channels available in the ath9k driver.

Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc.h

index 75ecf6a30d25c6ac68d346c5ac862a0255ba4be1..db00289103fcb34ce79bfcee65afe257ab5e6e31 100644 (file)
@@ -368,7 +368,7 @@ struct ath9k_htc_priv {
        u16 seq_no;
        u32 bmiss_cnt;
 
-       struct ath9k_hw_cal_data caldata[38];
+       struct ath9k_hw_cal_data caldata[ATH9K_NUM_CHANNELS];
 
        spinlock_t beacon_lock;