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)
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>

No differences found