From: Mohammed Shafi Shajakhan Date: Sat, 13 Nov 2010 15:28:27 +0000 (+0530) Subject: ath9k_htc: Use macro for caldata array size X-Git-Tag: MMI-PSA29.97-13-9~21446^2~169^2^2~267 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=28d9cc7f21da6a70fc8c1516fa0ee5588572eb92;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: John W. Linville --- 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;