summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/commands.h
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2014-02-19 09:15:11 +0100
committerJohn W. Linville <linville@tuxdriver.com>2014-02-24 15:21:55 -0500
commitdbdac2b581811e1f2a573454451136c2497de4fc (patch)
treefe9d80baf342f26d5db00729ed0c98eb57c06312 /drivers/net/wireless/iwlegacy/commands.h
parent8e67427aca2f0dda148181af930732734f6e2e42 (diff)
downloadop-kernel-dev-dbdac2b581811e1f2a573454451136c2497de4fc.zip
op-kernel-dev-dbdac2b581811e1f2a573454451136c2497de4fc.tar.gz
iwlegacy: properly enable power saving
Even if we mark PS on, device still worked in normal mode. Patch corrects that and now we send proper powertable command to device, which put it in sleep mode when PS is on. Reported-and-tested-by: Tino Keitel <tino.keitel@tikei.de> Tested-by: Pedro Francisco <pedrogfrancisco@gmail.com> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/commands.h')
-rw-r--r--drivers/net/wireless/iwlegacy/commands.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlegacy/commands.h b/drivers/net/wireless/iwlegacy/commands.h
index 0484215..dd74413 100644
--- a/drivers/net/wireless/iwlegacy/commands.h
+++ b/drivers/net/wireless/iwlegacy/commands.h
@@ -2270,7 +2270,8 @@ struct il_spectrum_notification {
*/
#define IL_POWER_VEC_SIZE 5
-#define IL_POWER_DRIVER_ALLOW_SLEEP_MSK cpu_to_le16(BIT(0))
+#define IL_POWER_DRIVER_ALLOW_SLEEP_MSK cpu_to_le16(BIT(0))
+#define IL_POWER_SLEEP_OVER_DTIM_MSK cpu_to_le16(BIT(2))
#define IL_POWER_PCI_PM_MSK cpu_to_le16(BIT(3))
struct il3945_powertable_cmd {
OpenPOWER on IntegriCloud