ath9k: fix custom regulatory call position
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 19 May 2009 22:27:11 +0000 (18:27 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 May 2009 18:46:36 +0000 (14:46 -0400)
commitc26c2e576dc05d90e8eadc0c6ca273ed7aa12535
tree43625f14fae80cf1c50b555c059ee5308db035d3
parent175427ce40bd5a3f973a76c46502875f0eed877c
ath9k: fix custom regulatory call position

ath_regd_init() needs to be called with the wiphy already
properly set with the bands. Without this the custom regulatory
settings were not taking effect, and the device would get
the default channel settings from ath9k_[25]ghz_chantable.

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c