aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/bt-coex.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2013-03-10 14:15:24 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-03-20 09:15:12 -0400
commit5b7e662ba7e39211034d00088e538f40251f01a4 (patch)
tree3f061bd1377dd6fd79aa3fc6ebbf5db824656a13 /drivers/net/wireless/iwlwifi/mvm/bt-coex.c
parent571765c8598a86c81b658e55285643506770fb2d (diff)
iwlwifi: mvm: fix the {ack,cts}_kill_msk
The masks were wrong. They should be 0xffffffff when SCO, HID or SNIFF profiles are used. They should be 0xffff0000 in any other case (default) to get a bit more throughput when the BT profile allows for it. Fix a debug print on the way. 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/mvm/bt-coex.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/bt-coex.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/bt-coex.c b/drivers/net/wireless/iwlwifi/mvm/bt-coex.c
index 47954deb6493..99f78737f8ff 100644
--- a/drivers/net/wireless/iwlwifi/mvm/bt-coex.c
+++ b/drivers/net/wireless/iwlwifi/mvm/bt-coex.c
@@ -125,15 +125,15 @@ enum iwl_bt_kill_msk {
125}; 125};
126 126
127static const u32 iwl_bt_ack_kill_msk[BT_KILL_MSK_MAX] = { 127static const u32 iwl_bt_ack_kill_msk[BT_KILL_MSK_MAX] = {
128 0xffffffff, 128 [BT_KILL_MSK_DEFAULT] = 0xffff0000,
129 0xfffffc00, 129 [BT_KILL_MSK_SCO_HID_A2DP] = 0xffffffff,
130 0, 130 [BT_KILL_MSK_REDUCED_TXPOW] = 0,
131}; 131};
132 132
133static const u32 iwl_bt_cts_kill_msk[BT_KILL_MSK_MAX] = { 133static const u32 iwl_bt_cts_kill_msk[BT_KILL_MSK_MAX] = {
134 0xffffffff, 134 [BT_KILL_MSK_DEFAULT] = 0xffff0000,
135 0xfffffc00, 135 [BT_KILL_MSK_SCO_HID_A2DP] = 0xffffffff,
136 0, 136 [BT_KILL_MSK_REDUCED_TXPOW] = 0,
137}; 137};
138 138
139#define IWL_BT_DEFAULT_BOOST (0xf0f0f0f0) 139#define IWL_BT_DEFAULT_BOOST (0xf0f0f0f0)
@@ -327,7 +327,7 @@ int iwl_mvm_rx_bt_coex_notif(struct iwl_mvm *mvm,
327 return 0; 327 return 0;
328 328
329 IWL_DEBUG_COEX(mvm, 329 IWL_DEBUG_COEX(mvm,
330 "Udpate kill_msk: %d\n\t SCO %sactive A2DP %sactive SNIFF %sactive\n", 330 "Update kill_msk: %d - SCO %sactive A2DP %sactive SNIFF %sactive\n",
331 bt_kill_msk, 331 bt_kill_msk,
332 BT_MBOX_MSG(notif, 3, SCO_STATE) ? "" : "in", 332 BT_MBOX_MSG(notif, 3, SCO_STATE) ? "" : "in",
333 BT_MBOX_MSG(notif, 3, A2DP_STATE) ? "" : "in", 333 BT_MBOX_MSG(notif, 3, A2DP_STATE) ? "" : "in",