libertas: EHS_REMOVE_WAKEUP is not always supported
authorDeepak Saxena <dsaxena@laptop.org>
Sun, 31 Oct 2010 13:40:33 +0000 (13:40 +0000)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 16 Nov 2010 21:37:02 +0000 (16:37 -0500)
commitae63a33ec9b598b3454cf0d29077fa17b616c42a
tree031b761e7a86c4fea1b9da81a9f01a1404d965ff
parentcf43298864fdfd687202db8c736473522bfceb98
libertas: EHS_REMOVE_WAKEUP is not always supported

Certain firmware versions, particularly the 8388 found on the XO-1,
do not support the EHS_REMOVE_WAKEUP command that is used to disable
WOL. Sending this command to the card will return a failure that
would get propagated up the stack and cause suspend to fail.

Instead, fall back to an all-zero wakeup mask.

This fixes http://dev.laptop.org/ticket/9967

Signed-off-by: Deepak Saxena <dsaxena@laptop.org>
Signed-off-by: Daniel Drake <dsd@laptop.org>
[includes fixups by Paul Fox]
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmd.c
drivers/net/wireless/libertas/dev.h
drivers/net/wireless/libertas/if_usb.c
drivers/net/wireless/libertas/main.c