if (bluetooth::shim::is_gd_l2cap_enabled()) {
return bluetooth::shim::L2CA_ConnectFixedChnl(fixed_cid, rem_bda);
}
- uint8_t initiating_phys =
- controller_get_interface()->get_le_all_initiating_phys();
tL2C_LCB* p_lcb;
tBT_TRANSPORT transport = BT_TRANSPORT_BR_EDR;
}
if (transport == BT_TRANSPORT_LE) {
- bool ret = l2cu_create_conn_le(p_lcb, initiating_phys);
+ bool ret = l2cu_create_conn_le(p_lcb);
if (!ret) {
LOG_WARN("Unable to create fixed channel le connection fixed_cid:0x%04x",
fixed_cid);
extern void l2cu_create_conn_br_edr(tL2C_LCB* p_lcb);
extern bool l2cu_create_conn_le(tL2C_LCB* p_lcb);
-extern bool l2cu_create_conn_le(tL2C_LCB* p_lcb, uint8_t initiating_phys);
extern void l2cu_create_conn_after_switch(tL2C_LCB* p_lcb);
extern void l2cu_adjust_out_mps(tL2C_CCB* p_ccb);
}
}
-bool l2cu_create_conn_le(tL2C_LCB* p_lcb) {
- uint8_t phy = controller_get_interface()->get_le_all_initiating_phys();
- return l2cu_create_conn_le(p_lcb, phy);
-}
-
/* This function initiates an acl connection to a LE device.
* Returns true if request started successfully, false otherwise. */
-bool l2cu_create_conn_le(tL2C_LCB* p_lcb, uint8_t initiating_phys) {
+bool l2cu_create_conn_le(tL2C_LCB* p_lcb) {
if (!controller_get_interface()->supports_ble()) return false;
-
p_lcb->transport = BT_TRANSPORT_LE;
-
return (l2cble_create_conn(p_lcb));
}