bool is_transport_br_edr() const { return transport == BT_TRANSPORT_BR_EDR; }
bool is_transport_ble() const { return transport == BT_TRANSPORT_LE; }
- uint8_t initiating_phys; // LE PHY used for connection initiation
- tBLE_ADDR_TYPE ble_addr_type;
uint16_t tx_data_len; /* tx data length used in data length extension */
fixed_queue_t* le_sec_pending_q; /* LE coc channels waiting for security check
completion */
/* 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) {
- tBT_DEVICE_TYPE dev_type;
- tBLE_ADDR_TYPE addr_type;
-
- BTM_ReadDevInfo(p_lcb->remote_bd_addr, &dev_type, &addr_type);
-
if (!controller_get_interface()->supports_ble()) return false;
- p_lcb->ble_addr_type = addr_type;
p_lcb->transport = BT_TRANSPORT_LE;
- p_lcb->initiating_phys = initiating_phys;
return (l2cble_create_conn(p_lcb));
}