Skip to content

Commit

Permalink
ath9k_htc: Use macro for caldata array size
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mohammed Shafi Shajakhan authored and John W. Linville committed Nov 16, 2010
1 parent ef1b21f commit 28d9cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/htc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 28d9cc7

Please sign in to comment.