summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mshajakhan@atheros.com>2010-11-13 15:28:27 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2010-11-16 21:39:09 (GMT)
commit28d9cc7f21da6a70fc8c1516fa0ee5588572eb92 (patch)
treeaf912c7abf19423a43944714c6e63a58f9dfc008 /drivers
parentef1b21f7eb074a8c8ddfea70ed70e988545c8d54 (diff)
downloadlinux-fsl-qoriq-28d9cc7f21da6a70fc8c1516fa0ee5588572eb92.tar.xz
ath9k_htc: Use macro for caldata array size
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc.h b/drivers/net/wireless/ath/ath9k/htc.h
index 75ecf6a..db00289 100644
--- a/drivers/net/wireless/ath/ath9k/htc.h
+++ b/drivers/net/wireless/ath/ath9k/htc.h
@@ -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;