aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2010-10-23 09:15:44 -0700
committerJohn W. Linville <linville@tuxdriver.com>2010-11-15 13:24:57 -0500
commitf5682c01eb85fce13d064d232c947322bd7e2631 (patch)
treee8ed5ccf1ce5178f8395e6a1258235efcbfedc01
parentd4daaea656e0b5543c2e37c31934cea8f044b31e (diff)
downloadkernel_samsung_smdk4412-f5682c01eb85fce13d064d232c947322bd7e2631.zip
kernel_samsung_smdk4412-f5682c01eb85fce13d064d232c947322bd7e2631.tar.gz
kernel_samsung_smdk4412-f5682c01eb85fce13d064d232c947322bd7e2631.tar.bz2
iwlagn: turn dynamic smps on while BT is on
While BT is on and doing iscan and/or pscan, BT is in listen mode which will impact WiFi throughput, we need to enable dynamic smps in order to improve the rx throughput. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-lib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
index b01d81a..3427fc2 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
@@ -1897,7 +1897,10 @@ static void iwlagn_bt_traffic_change_work(struct work_struct *work)
switch (priv->bt_traffic_load) {
case IWL_BT_COEX_TRAFFIC_LOAD_NONE:
- smps_request = IEEE80211_SMPS_AUTOMATIC;
+ if (priv->bt_status)
+ smps_request = IEEE80211_SMPS_DYNAMIC;
+ else
+ smps_request = IEEE80211_SMPS_AUTOMATIC;
break;
case IWL_BT_COEX_TRAFFIC_LOAD_LOW:
smps_request = IEEE80211_SMPS_DYNAMIC;