ath9k: add compile time checking for the size of the channel list
authorFelix Fietkau <nbd@openwrt.org>
Sat, 9 Oct 2010 00:39:30 +0000 (02:39 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Oct 2010 19:04:21 +0000 (15:04 -0400)
commitcac4220b2e93e6344f987581d52d5bd71ff2cc0e
treed089cca561a5fe1237a1f2a80589c7819ed3abe8
parent8610c29a2c9f273886b1c31ae4d92c69d4326262
ath9k: add compile time checking for the size of the channel list

This prevents random memory corruption if the number of channels ever gets
changed without an update to the internal channel array size.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/init.c