|
@@ -1039,6 +1039,28 @@ static void halbtc_fill_h2c_cmd(void *bt_context, u8 element_id,
|
|
|
cmd_len, cmd_buf);
|
|
|
}
|
|
|
|
|
|
+void halbtc_send_wifi_port_id_cmd(void *bt_context)
|
|
|
+{
|
|
|
+ struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context;
|
|
|
+ struct rtl_priv *rtlpriv = btcoexist->adapter;
|
|
|
+ u8 cmd_buf[1] = {0}; /* port id [2:0] = 0 */
|
|
|
+
|
|
|
+ rtlpriv->cfg->ops->fill_h2c_cmd(rtlpriv->mac80211.hw, H2C_BT_PORT_ID,
|
|
|
+ 1, cmd_buf);
|
|
|
+}
|
|
|
+
|
|
|
+void halbtc_set_default_port_id_cmd(void *bt_context)
|
|
|
+{
|
|
|
+ struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context;
|
|
|
+ struct rtl_priv *rtlpriv = btcoexist->adapter;
|
|
|
+ struct ieee80211_hw *hw = rtlpriv->mac80211.hw;
|
|
|
+
|
|
|
+ if (!rtlpriv->cfg->ops->set_default_port_id_cmd)
|
|
|
+ return;
|
|
|
+
|
|
|
+ rtlpriv->cfg->ops->set_default_port_id_cmd(hw);
|
|
|
+}
|
|
|
+
|
|
|
static
|
|
|
void halbtc_set_bt_reg(void *btc_context, u8 reg_type, u32 offset, u32 set_val)
|
|
|
{
|