1
1
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2
2
/*
3
- * Copyright (C) 2013-2014, 2018-2020, 2022 Intel Corporation
3
+ * Copyright (C) 2013-2014, 2018-2020, 2022-2023 Intel Corporation
4
4
* Copyright (C) 2013-2015 Intel Mobile Communications GmbH
5
5
*/
6
6
#include <linux/ieee80211.h>
@@ -116,11 +116,6 @@ iwl_get_coex_type(struct iwl_mvm *mvm, const struct ieee80211_vif *vif)
116
116
117
117
ret = BT_COEX_TX_DIS_LUT ;
118
118
119
- if (mvm -> cfg -> bt_shared_single_ant ) {
120
- rcu_read_unlock ();
121
- return ret ;
122
- }
123
-
124
119
phy_ctx_id = * ((u16 * )chanctx_conf -> drv_priv );
125
120
primary_ch_phy_id = le32_to_cpu (mvm -> last_bt_ci_cmd .primary_ch_phy_id );
126
121
secondary_ch_phy_id =
@@ -383,13 +378,12 @@ static void iwl_mvm_bt_notif_per_link(struct iwl_mvm *mvm,
383
378
/*
384
379
* don't reduce the Tx power if one of these is true:
385
380
* we are in LOOSE
386
- * single share antenna product
387
381
* BT is inactive
388
382
* we are not associated
389
383
*/
390
384
if (iwl_get_coex_type (mvm , vif ) == BT_COEX_LOOSE_LUT ||
391
- mvm -> cfg -> bt_shared_single_ant || ! vif -> cfg . assoc ||
392
- le32_to_cpu ( mvm -> last_bt_notif . bt_activity_grading ) == BT_OFF ) {
385
+ le32_to_cpu ( mvm -> last_bt_notif . bt_activity_grading ) == BT_OFF ||
386
+ ! vif -> cfg . assoc ) {
393
387
iwl_mvm_bt_coex_reduced_txp (mvm , link_info -> ap_sta_id , false);
394
388
/* FIXME: should this be per link? */
395
389
iwl_mvm_bt_coex_enable_rssi_event (mvm , vif , false, 0 );
@@ -570,7 +564,7 @@ void iwl_mvm_bt_rssi_event(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
570
564
* Check if rssi is good enough for reduced Tx power, but not in loose
571
565
* scheme.
572
566
*/
573
- if (rssi_event == RSSI_EVENT_LOW || mvm -> cfg -> bt_shared_single_ant ||
567
+ if (rssi_event == RSSI_EVENT_LOW ||
574
568
iwl_get_coex_type (mvm , vif ) == BT_COEX_LOOSE_LUT )
575
569
ret = iwl_mvm_bt_coex_reduced_txp (mvm ,
576
570
mvmvif -> deflink .ap_sta_id ,
@@ -639,10 +633,6 @@ bool iwl_mvm_bt_coex_is_mimo_allowed(struct iwl_mvm *mvm,
639
633
640
634
bool iwl_mvm_bt_coex_is_ant_avail (struct iwl_mvm * mvm , u8 ant )
641
635
{
642
- /* there is no other antenna, shared antenna is always available */
643
- if (mvm -> cfg -> bt_shared_single_ant )
644
- return true;
645
-
646
636
if (ant & mvm -> cfg -> non_shared_ant )
647
637
return true;
648
638
@@ -652,10 +642,6 @@ bool iwl_mvm_bt_coex_is_ant_avail(struct iwl_mvm *mvm, u8 ant)
652
642
653
643
bool iwl_mvm_bt_coex_is_shared_ant_avail (struct iwl_mvm * mvm )
654
644
{
655
- /* there is no other antenna, shared antenna is always available */
656
- if (mvm -> cfg -> bt_shared_single_ant )
657
- return true;
658
-
659
645
return le32_to_cpu (mvm -> last_bt_notif .bt_activity_grading ) < BT_HIGH_TRAFFIC ;
660
646
}
661
647
0 commit comments