diff options
author | Eliad Peller <eliad@wizery.com> | 2013-10-31 08:31:25 -0400 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2013-12-17 12:39:45 -0500 |
commit | dcbc3e1a3b543a85f265fe099acdc57b182ceaa3 (patch) | |
tree | fe056066db2e44c6b60290430bc97198aae9cd74 /drivers/net/wireless/iwlwifi/mvm/mac80211.c | |
parent | e59647eaadf181faea822eaaf09ca760b298a0cb (diff) |
iwlwifi: mvm: configure phy_ctxt with min_def
Configure the phy context to the minimum required
bandwidth, given by ctx->min_def.
Tuning to a narrower bandwidth should reduce the
noise level and consume less power.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/mac80211.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/mac80211.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/iwlwifi/mvm/mac80211.c index 01b58fcd8913..fbd3114d5554 100644 --- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c | |||
@@ -1608,7 +1608,7 @@ static int iwl_mvm_add_chanctx(struct ieee80211_hw *hw, | |||
1608 | goto out; | 1608 | goto out; |
1609 | } | 1609 | } |
1610 | 1610 | ||
1611 | ret = iwl_mvm_phy_ctxt_changed(mvm, phy_ctxt, &ctx->def, | 1611 | ret = iwl_mvm_phy_ctxt_changed(mvm, phy_ctxt, &ctx->min_def, |
1612 | ctx->rx_chains_static, | 1612 | ctx->rx_chains_static, |
1613 | ctx->rx_chains_dynamic); | 1613 | ctx->rx_chains_dynamic); |
1614 | if (ret) { | 1614 | if (ret) { |
@@ -1652,7 +1652,7 @@ static void iwl_mvm_change_chanctx(struct ieee80211_hw *hw, | |||
1652 | return; | 1652 | return; |
1653 | 1653 | ||
1654 | mutex_lock(&mvm->mutex); | 1654 | mutex_lock(&mvm->mutex); |
1655 | iwl_mvm_phy_ctxt_changed(mvm, phy_ctxt, &ctx->def, | 1655 | iwl_mvm_phy_ctxt_changed(mvm, phy_ctxt, &ctx->min_def, |
1656 | ctx->rx_chains_static, | 1656 | ctx->rx_chains_static, |
1657 | ctx->rx_chains_dynamic); | 1657 | ctx->rx_chains_dynamic); |
1658 | iwl_mvm_bt_coex_vif_change(mvm); | 1658 | iwl_mvm_bt_coex_vif_change(mvm); |