disabling power save mode for marvell wifi driver

This commit is contained in:
Jake Day 2017-08-11 09:57:36 -04:00
parent 30f52c5a35
commit ebfef21d22
2 changed files with 5 additions and 2 deletions

View file

@ -418,6 +418,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

@ -2308,7 +2308,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,
@ -2364,7 +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 &&
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;