diff options
author | Dan Williams <dcbw@redhat.com> | 2010-07-27 16:08:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-27 15:14:12 -0400 |
commit | 0bb6408777227fcf5136e28aec29438606d5ac82 (patch) | |
tree | cf2d146d310d3d613b2ff3d9bf9cabe1de3d6ece /drivers/net/wireless/libertas/host.h | |
parent | 8196112859a6742b9e25ca5fde972a7f41f06cc3 (diff) |
libertas: convert PS_MODE to a direct command
Powersave looks like it got broken at some point but we'll fix that up
when the command submission stuff is more understandable, which this
series helps to do. That said, this patch should not further break
powersave.
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/host.h')
-rw-r--r-- | drivers/net/wireless/libertas/host.h | 50 |
1 files changed, 27 insertions, 23 deletions
diff --git a/drivers/net/wireless/libertas/host.h b/drivers/net/wireless/libertas/host.h index 03d2ae9bdd75..5eac1351a021 100644 --- a/drivers/net/wireless/libertas/host.h +++ b/drivers/net/wireless/libertas/host.h | |||
@@ -94,11 +94,9 @@ | |||
94 | #define CMD_802_11_BEACON_CTRL 0x00b0 | 94 | #define CMD_802_11_BEACON_CTRL 0x00b0 |
95 | 95 | ||
96 | /* For the IEEE Power Save */ | 96 | /* For the IEEE Power Save */ |
97 | #define CMD_SUBCMD_ENTER_PS 0x0030 | 97 | #define PS_MODE_ACTION_ENTER_PS 0x0030 |
98 | #define CMD_SUBCMD_EXIT_PS 0x0031 | 98 | #define PS_MODE_ACTION_EXIT_PS 0x0031 |
99 | #define CMD_SUBCMD_SLEEP_CONFIRMED 0x0034 | 99 | #define PS_MODE_ACTION_SLEEP_CONFIRMED 0x0034 |
100 | #define CMD_SUBCMD_FULL_POWERDOWN 0x0035 | ||
101 | #define CMD_SUBCMD_FULL_POWERUP 0x0036 | ||
102 | 100 | ||
103 | #define CMD_ENABLE_RSN 0x0001 | 101 | #define CMD_ENABLE_RSN 0x0001 |
104 | #define CMD_DISABLE_RSN 0x0000 | 102 | #define CMD_DISABLE_RSN 0x0000 |
@@ -163,11 +161,6 @@ | |||
163 | #define CMD_ACT_SET_TX_FIX_RATE 0x0001 | 161 | #define CMD_ACT_SET_TX_FIX_RATE 0x0001 |
164 | #define CMD_ACT_GET_TX_RATE 0x0002 | 162 | #define CMD_ACT_GET_TX_RATE 0x0002 |
165 | 163 | ||
166 | /* Define action or option for CMD_802_11_PS_MODE */ | ||
167 | #define CMD_TYPE_CAM 0x0000 | ||
168 | #define CMD_TYPE_MAX_PSP 0x0001 | ||
169 | #define CMD_TYPE_FAST_PSP 0x0002 | ||
170 | |||
171 | /* Options for CMD_802_11_FW_WAKE_METHOD */ | 164 | /* Options for CMD_802_11_FW_WAKE_METHOD */ |
172 | #define CMD_WAKE_METHOD_UNCHANGED 0x0000 | 165 | #define CMD_WAKE_METHOD_UNCHANGED 0x0000 |
173 | #define CMD_WAKE_METHOD_COMMAND_INT 0x0001 | 166 | #define CMD_WAKE_METHOD_COMMAND_INT 0x0001 |
@@ -683,11 +676,35 @@ struct cmd_ds_802_11_fw_wake_method { | |||
683 | } __packed; | 676 | } __packed; |
684 | 677 | ||
685 | struct cmd_ds_802_11_ps_mode { | 678 | struct cmd_ds_802_11_ps_mode { |
679 | struct cmd_header hdr; | ||
680 | |||
686 | __le16 action; | 681 | __le16 action; |
682 | |||
683 | /* Interval for keepalive in PS mode: | ||
684 | * 0x0000 = don't change | ||
685 | * 0x001E = firmware default | ||
686 | * 0xFFFF = disable | ||
687 | */ | ||
687 | __le16 nullpktinterval; | 688 | __le16 nullpktinterval; |
689 | |||
690 | /* Number of DTIM intervals to wake up for: | ||
691 | * 0 = don't change | ||
692 | * 1 = firmware default | ||
693 | * 5 = max | ||
694 | */ | ||
688 | __le16 multipledtim; | 695 | __le16 multipledtim; |
696 | |||
689 | __le16 reserved; | 697 | __le16 reserved; |
690 | __le16 locallisteninterval; | 698 | __le16 locallisteninterval; |
699 | |||
700 | /* AdHoc awake period (FW v9+ only): | ||
701 | * 0 = don't change | ||
702 | * 1 = always awake (IEEE standard behavior) | ||
703 | * 2 - 31 = sleep for (n - 1) periods and awake for 1 period | ||
704 | * 32 - 254 = invalid | ||
705 | * 255 = sleep at each ATIM | ||
706 | */ | ||
707 | __le16 adhoc_awake_period; | ||
691 | } __packed; | 708 | } __packed; |
692 | 709 | ||
693 | struct cmd_confirm_sleep { | 710 | struct cmd_confirm_sleep { |
@@ -952,17 +969,4 @@ struct cmd_ds_mesh_access { | |||
952 | 969 | ||
953 | /* Number of stats counters returned by the firmware */ | 970 | /* Number of stats counters returned by the firmware */ |
954 | #define MESH_STATS_NUM 8 | 971 | #define MESH_STATS_NUM 8 |
955 | |||
956 | struct cmd_ds_command { | ||
957 | /* command header */ | ||
958 | __le16 command; | ||
959 | __le16 size; | ||
960 | __le16 seqnum; | ||
961 | __le16 result; | ||
962 | |||
963 | /* command Body */ | ||
964 | union { | ||
965 | struct cmd_ds_802_11_ps_mode psmode; | ||
966 | } params; | ||
967 | } __packed; | ||
968 | #endif | 972 | #endif |