summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/marvell/mwifiex/sta_cmd.c
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2017-03-27 18:36:51 +0530
committerKalle Valo <kvalo@codeaurora.org>2017-04-05 15:39:15 +0300
commit36491b152c30fe0e804385e1ee9068be2c6d1bfa (patch)
tree366e903089958b72445934e8da91fc4b25fb8df0 /drivers/net/wireless/marvell/mwifiex/sta_cmd.c
parent182f569660548d16af895af9fede54367c377f47 (diff)
downloadlinux-stable-36491b152c30fe0e804385e1ee9068be2c6d1bfa.tar.gz
linux-stable-36491b152c30fe0e804385e1ee9068be2c6d1bfa.tar.bz2
linux-stable-36491b152c30fe0e804385e1ee9068be2c6d1bfa.zip
mwifiex: enable auto deep sleep mode for USB chipsets
Chip goes into low power state when this feature is enabled. This was already enabled for SDIO and PCIe interface based chipsets. Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/sta_cmd.c')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/sta_cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/sta_cmd.c b/drivers/net/wireless/marvell/mwifiex/sta_cmd.c
index f6056ab28efe..83916c1439af 100644
--- a/drivers/net/wireless/marvell/mwifiex/sta_cmd.c
+++ b/drivers/net/wireless/marvell/mwifiex/sta_cmd.c
@@ -2364,8 +2364,7 @@ int mwifiex_sta_init_cmd(struct mwifiex_private *priv, u8 first_sta, bool init)
if (ret)
return -1;
- if (!disable_auto_ds &&
- first_sta && priv->adapter->iface_type != MWIFIEX_USB &&
+ if (!disable_auto_ds && first_sta &&
priv->bss_type != MWIFIEX_BSS_TYPE_UAP) {
/* Enable auto deep sleep */
auto_ds.auto_ds = DEEP_SLEEP_ON;