ath9k_hw: fix RF bank initialization
authorFelix Fietkau <nbd@openwrt.org>
Sun, 13 Jan 2013 18:54:58 +0000 (19:54 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Jan 2013 20:58:48 +0000 (15:58 -0500)
commit6aaacd861517f89797f2f4a54624a599847262f3
treedfb12528fda23fe50a3dfec66e0a65f1f1337549
parent066433a6fa9249db2117adcda330a34ae99814b7
ath9k_hw: fix RF bank initialization

ar900*_init_mode_regs needs to be called before RF banks are allocated,
otherwise the storage size of RF banks isn't known. This patch fixes
a memory overrun that can show up as a crash on unloading the module.

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