libertas: fix changing interface type when interface is down
authorDaniel Drake <dsd@laptop.org>
Fri, 14 Oct 2011 11:05:26 +0000 (12:05 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Oct 2011 18:48:24 +0000 (14:48 -0400)
commit5c1381ac3f3f49ab1e0886ea8f1432c9a5def519
tree8a7defc05a6eac854432449e0f452df26c70d935
parent7a72476766735c57bc00d655770f8f21f232f482
libertas: fix changing interface type when interface is down

The recent changes to only power the device when the interface up
introduced a bug: changing interface type, legal when the interface
is down, performs device I/O.

Fix this functionality by validating and recording the interface
type when the change is requested, but only applying the change
if/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/decl.h
drivers/net/wireless/libertas/main.c