diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2013-03-04 19:27:58 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-06 16:29:15 -0500 |
commit | 0d7f53e34d3f5f82c0f4941356a02285a78807a4 (patch) | |
tree | 97fc4cd26476e858d6c8b97e9a1889d10c94fa70 /drivers/net/wireless/mwifiex/fw.h | |
parent | cc0b5a64b8e79b7fb73b8dfd4f71ac86d3ac94c7 (diff) |
mwifiex: add "ethtool wol" command support
Host sleep wakeup condition is configured using this command.
Supports Wake-on: pumb
For examples:
wake-on any unicast packets:
ethtool -s mlan0 wol u
wake-on multicast/broadcast packet:
ethtool -s mlan0 wol mb
wake-on unicast packets and MAC events:
ethtool -s mlan0 wol pu
wake-on unicast/multicast/broadcast packets and MAC events:
ethtool -s mlan0 wol pmbu
disable all wake-on options:
ethtool -s mlan0 wol d
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/fw.h')
-rw-r--r-- | drivers/net/wireless/mwifiex/fw.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/fw.h b/drivers/net/wireless/mwifiex/fw.h index 270685ed53dc..5a5d06659d57 100644 --- a/drivers/net/wireless/mwifiex/fw.h +++ b/drivers/net/wireless/mwifiex/fw.h | |||
@@ -380,6 +380,10 @@ enum P2P_MODES { | |||
380 | #define HS_CFG_COND_DEF 0x00000000 | 380 | #define HS_CFG_COND_DEF 0x00000000 |
381 | #define HS_CFG_GPIO_DEF 0xff | 381 | #define HS_CFG_GPIO_DEF 0xff |
382 | #define HS_CFG_GAP_DEF 0 | 382 | #define HS_CFG_GAP_DEF 0 |
383 | #define HS_CFG_COND_BROADCAST_DATA 0x00000001 | ||
384 | #define HS_CFG_COND_UNICAST_DATA 0x00000002 | ||
385 | #define HS_CFG_COND_MAC_EVENT 0x00000004 | ||
386 | #define HS_CFG_COND_MULTICAST_DATA 0x00000008 | ||
383 | 387 | ||
384 | #define MWIFIEX_TIMEOUT_FOR_AP_RESP 0xfffc | 388 | #define MWIFIEX_TIMEOUT_FOR_AP_RESP 0xfffc |
385 | #define MWIFIEX_STATUS_CODE_AUTH_TIMEOUT 2 | 389 | #define MWIFIEX_STATUS_CODE_AUTH_TIMEOUT 2 |