libertas: Update 11d info only when interface is active
authorDaniel Drake <dsd@laptop.org>
Sun, 15 Jul 2012 22:44:58 +0000 (23:44 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 17 Jul 2012 19:11:36 +0000 (15:11 -0400)
commit20d2ebe512b9ad0f8fdd867a02d7a309344e8a6a
tree76e653b348d665145c37bd5e6943396b28f6aa25
parent08a4a1ab0725d89ca1df80f2ebe8443da82cd34f
libertas: Update 11d info only when interface is active

reg_notifier can be called before the interface is up.
Handle this correctly by storing the requested country code, then
apply the relevant configuration when the interface is brought up.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cfg.c
drivers/net/wireless/libertas/cmd.c
drivers/net/wireless/libertas/cmd.h
drivers/net/wireless/libertas/dev.h
drivers/net/wireless/libertas/main.c