mwifiex: enable auto deep sleep mode for USB chipsets
authorAmitkumar Karwar <akarwar@marvell.com>
Mon, 27 Mar 2017 13:06:51 +0000 (18:36 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 5 Apr 2017 12:39:15 +0000 (15:39 +0300)
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>
drivers/net/wireless/marvell/mwifiex/sta_cmd.c

index f6056ab28efe4785ab45578a949aa3d761925064..83916c1439af767ca4d03c2fab046170e44492d0 100644 (file)
@@ -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;