]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf0cd21469c5c4689e99eeffb6d3c5b67a74ebbe4
tree8a7defc05a6eac854432449e0f452df26c70d935
parente22b890d501fbf5ba8ea739fda1dfb4c1400fbfc
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