|
@@ -291,6 +291,12 @@ static int iwlagn_rxon_connect(struct iwl_priv *priv,
|
|
|
IWL_ERR(priv, "Error sending TX power (%d)\n", ret);
|
|
|
return ret;
|
|
|
}
|
|
|
+
|
|
|
+ if ((ctx->vif && ctx->vif->type == NL80211_IFTYPE_STATION) &&
|
|
|
+ priv->cfg->ht_params->smps_mode)
|
|
|
+ ieee80211_request_smps(ctx->vif,
|
|
|
+ priv->cfg->ht_params->smps_mode);
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -395,6 +401,10 @@ int iwlagn_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx)
|
|
|
* do it now if after settings changed.
|
|
|
*/
|
|
|
iwl_set_tx_power(priv, priv->tx_power_next, false);
|
|
|
+
|
|
|
+ /* make sure we are in the right PS state */
|
|
|
+ iwl_power_update_mode(priv, true);
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|