diff options
author | Mohammed Shafi Shajakhan <mshajakhan@atheros.com> | 2010-11-13 16:28:27 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-16 22:39:09 +0100 |
commit | 28d9cc7f21da6a70fc8c1516fa0ee5588572eb92 (patch) | |
tree | af912c7abf19423a43944714c6e63a58f9dfc008 | |
parent | iwlwifi: kill elapsed_jiffies (diff) | |
download | linux-28d9cc7f21da6a70fc8c1516fa0ee5588572eb92.tar.xz linux-28d9cc7f21da6a70fc8c1516fa0ee5588572eb92.zip |
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>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc.h | 2 |
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 75ecf6a30d25..db00289103fc 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; |