Revert "re-enable power save mode on wifi module"

This reverts commit c6f6880e52.
This commit is contained in:
Jake Day 2017-11-21 13:27:53 -05:00
parent 78ee957bdf
commit 2ff5be2f27
2 changed files with 5 additions and 2 deletions

View file

@ -416,6 +416,9 @@ mwifiex_cfg80211_set_power_mgmt(struct wiphy *wiphy,
ps_mode = enabled;
mwifiex_dbg(priv->adapter, ERROR, "overriding ps_mode to false\n");
ps_mode = 0;
return mwifiex_drv_set_power(priv, &ps_mode);
}

View file

@ -2313,7 +2313,7 @@ int mwifiex_sta_init_cmd(struct mwifiex_private *priv, u8 first_sta, bool init)
if (ret)
return -1;
if (priv->bss_type != MWIFIEX_BSS_TYPE_UAP) {
if (0 && priv->bss_type != MWIFIEX_BSS_TYPE_UAP) {
/* Enable IEEE PS by default */
priv->adapter->ps_mode = MWIFIEX_802_11_POWER_MODE_PSP;
ret = mwifiex_send_cmd(priv,
@ -2369,7 +2369,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 &&
if (0 && !disable_auto_ds && first_sta &&
priv->bss_type != MWIFIEX_BSS_TYPE_UAP) {
/* Enable auto deep sleep */
auto_ds.auto_ds = DEEP_SLEEP_ON;