libertas: remove ps_supported flag, use fwcapinfo
authorAndrey Yurovsky <andrey@cozybit.com>
Tue, 16 Jun 2009 20:20:01 +0000 (13:20 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Jul 2009 18:57:41 +0000 (14:57 -0400)
commite0d6133cba88759bc760b254c27975330fff6519
tree4d512ad8cb6552133a1ceb084957268b19aaeeee
parentf0f3d388baabdbc613548d6ad8e5da7616b1cbd1
libertas: remove ps_supported flag, use fwcapinfo

Power save support depends on the firmware capabilities rather than the
card's hardware interface.  Use the FW_CAPINFO_PS bit in the firmware
capabilities mask throughout the driver in place of the redundant
ps_supported flag and don't make decisions about PS support in the
interface drivers (with the exception of a special case in the USB
driver).

V2: put the USB special case in the right place.

Signed-off-by: Andrey Yurovsky <andrey@cozybit.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/dev.h
drivers/net/wireless/libertas/if_cs.c
drivers/net/wireless/libertas/if_sdio.c
drivers/net/wireless/libertas/if_spi.c
drivers/net/wireless/libertas/if_usb.c
drivers/net/wireless/libertas/wext.c