diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2013-10-06 11:03:17 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-10-11 09:58:21 +0200 |
commit | da8f8363913f49064969b2642082023955655256 (patch) | |
tree | 3a98f2df51ae0462cf6dd4f164db8c26f538bbe2 /drivers/net/wireless/iwlwifi | |
parent | 8e484f0baf4d6997c5663951a34877dff378620a (diff) | |
download | blackbird-obmc-linux-da8f8363913f49064969b2642082023955655256.tar.gz blackbird-obmc-linux-da8f8363913f49064969b2642082023955655256.zip |
iwlwifi: mvm: BT Coex - tune SMPS parameters
Tests have shown that we should go SMSP_STATIC when BT
traffic is high, and stay in dynamic if BT traffic is low.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/bt-coex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/bt-coex.c b/drivers/net/wireless/iwlwifi/mvm/bt-coex.c index f612c27fb4d8..9fda0c7aa9c7 100644 --- a/drivers/net/wireless/iwlwifi/mvm/bt-coex.c +++ b/drivers/net/wireless/iwlwifi/mvm/bt-coex.c @@ -622,11 +622,11 @@ static void iwl_mvm_bt_notif_iterator(void *_data, u8 *mac, /* if secondary is not NULL, it might be a GO */ data->secondary = chanctx_conf; - if (data->notif->bt_status) - smps_mode = IEEE80211_SMPS_DYNAMIC; - - if (le32_to_cpu(data->notif->bt_activity_grading) >= BT_LOW_TRAFFIC) + if (le32_to_cpu(data->notif->bt_activity_grading) >= BT_HIGH_TRAFFIC) smps_mode = IEEE80211_SMPS_STATIC; + else if (le32_to_cpu(data->notif->bt_activity_grading) >= + BT_LOW_TRAFFIC) + smps_mode = IEEE80211_SMPS_DYNAMIC; IWL_DEBUG_COEX(data->mvm, "mac %d: bt_status %d bt_activity_grading %d smps_req %d\n", |