libertas: fix power save issue in libertas_sdio module
authorBing Zhao <bzhao@marvell.com>
Thu, 5 Feb 2009 06:22:39 +0000 (22:22 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Feb 2009 19:51:38 +0000 (14:51 -0500)
commitf5ac2b9eb58f5efad83f2d0e7fa464e8980ecfc9
treeefb94aef654467afa75b9ae021797aa57ecaa15c
parentf11c179eea77b8afc2fb7cb4b9a8815b85e3c16f
libertas: fix power save issue in libertas_sdio module

The problem: "iwconfig ethX power on" returns error

The cause: "ps_supported" flag was never set for SD8385/8686

The fix: check firmware capabilities returned by GET_HW_SPEC command.
Set "ps_supported" to 1 if FW_CAPINFO_PS bit is on. This fix applies
to SDIO interface only.

Signed-off-by: Bing Zhao <bzhao@marvell.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/defs.h
drivers/net/wireless/libertas/if_sdio.c