提交 bf516e7d 编写于 作者: P Ping-Ke Shih 提交者: Kalle Valo

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: NPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 c990affd
...@@ -2574,11 +2574,11 @@ void rtl92ee_read_bt_coexist_info_from_hwpg(struct ieee80211_hw *hw, ...@@ -2574,11 +2574,11 @@ void rtl92ee_read_bt_coexist_info_from_hwpg(struct ieee80211_hw *hw,
rtlpriv->btcoexist.btc_info.btcoexist = 0; rtlpriv->btcoexist.btc_info.btcoexist = 0;
rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8192E; rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8192E;
rtlpriv->btcoexist.btc_info.ant_num = ANT_TOTAL_X2; rtlpriv->btcoexist.btc_info.ant_num = ANT_X2;
} else { } else {
rtlpriv->btcoexist.btc_info.btcoexist = 1; rtlpriv->btcoexist.btc_info.btcoexist = 1;
rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8192E; rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8192E;
rtlpriv->btcoexist.btc_info.ant_num = ANT_TOTAL_X1; rtlpriv->btcoexist.btc_info.ant_num = ANT_X1;
} }
} }
......
...@@ -2842,11 +2842,6 @@ enum bt_co_type { ...@@ -2842,11 +2842,6 @@ enum bt_co_type {
BT_RTL8812A = 11, BT_RTL8812A = 11,
}; };
enum bt_total_ant_num {
ANT_TOTAL_X2 = 0,
ANT_TOTAL_X1 = 1
};
enum bt_cur_state { enum bt_cur_state {
BT_OFF = 0, BT_OFF = 0,
BT_ON = 1, BT_ON = 1,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册