Skip to content

Commit bf516e7

Browse files
Ping-Ke ShihKalle Valo
authored andcommitted
rtlwifi: remove duplicate definition of antenna number for btcoex
Two enumerations bt_total_ant_num and bt_ant_num are identical, so one can be removed. Signed-off-by: Ping-Ke Shih <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent c990aff commit bf516e7

File tree

2 files changed

+2
-7
lines changed
  • drivers/net/wireless/realtek/rtlwifi

2 files changed

+2
-7
lines changed

drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2574,11 +2574,11 @@ void rtl92ee_read_bt_coexist_info_from_hwpg(struct ieee80211_hw *hw,
25742574
rtlpriv->btcoexist.btc_info.btcoexist = 0;
25752575

25762576
rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8192E;
2577-
rtlpriv->btcoexist.btc_info.ant_num = ANT_TOTAL_X2;
2577+
rtlpriv->btcoexist.btc_info.ant_num = ANT_X2;
25782578
} else {
25792579
rtlpriv->btcoexist.btc_info.btcoexist = 1;
25802580
rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8192E;
2581-
rtlpriv->btcoexist.btc_info.ant_num = ANT_TOTAL_X1;
2581+
rtlpriv->btcoexist.btc_info.ant_num = ANT_X1;
25822582
}
25832583
}
25842584

drivers/net/wireless/realtek/rtlwifi/wifi.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2842,11 +2842,6 @@ enum bt_co_type {
28422842
BT_RTL8812A = 11,
28432843
};
28442844

2845-
enum bt_total_ant_num {
2846-
ANT_TOTAL_X2 = 0,
2847-
ANT_TOTAL_X1 = 1
2848-
};
2849-
28502845
enum bt_cur_state {
28512846
BT_OFF = 0,
28522847
BT_ON = 1,

0 commit comments

Comments
 (0)