summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/iwlwifi/mvm/coex_legacy.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-10-30 12:59:40 +0300
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-11-11 18:15:06 +0300
commit219fb66b49fac64bb87f030c133d2d32927b6fc4 (patch)
treeed1de7bd8d26ede5bbf5d21f87fb977edcb230bb /drivers/net/wireless/iwlwifi/mvm/coex_legacy.c
parent26a2cc016f59839afb665ab29c7a40b91bcedf42 (diff)
downloadlinux-219fb66b49fac64bb87f030c133d2d32927b6fc4.tar.xz
iwlwifi: mvm: rs - don't use the shared antenna when BT load is high
When we need only one antenna, we should refrain from using the antenna that is shared with BT if BT load is high. Fix this. Reviewed-by: Eyal Shapira <eyal@wizery.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/coex_legacy.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/coex_legacy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/coex_legacy.c b/drivers/net/wireless/iwlwifi/mvm/coex_legacy.c
index b571e1b0550c..cda5111bb775 100644
--- a/drivers/net/wireless/iwlwifi/mvm/coex_legacy.c
+++ b/drivers/net/wireless/iwlwifi/mvm/coex_legacy.c
@@ -1156,6 +1156,12 @@ bool iwl_mvm_bt_coex_is_mimo_allowed_old(struct iwl_mvm *mvm,
return lut_type != BT_COEX_LOOSE_LUT;
}
+bool iwl_mvm_bt_coex_is_ant_avail_old(struct iwl_mvm *mvm, u8 ant)
+{
+ u32 ag = le32_to_cpu(mvm->last_bt_notif_old.bt_activity_grading);
+ return ag < BT_HIGH_TRAFFIC;
+}
+
bool iwl_mvm_bt_coex_is_shared_ant_avail_old(struct iwl_mvm *mvm)
{
u32 ag = le32_to_cpu(mvm->last_bt_notif_old.bt_activity_grading);