return (true);
}
-bool L2CA_DisconnectLECocReq(uint16_t cid) { return L2CA_DisconnectReq(cid); }
+bool L2CA_DisconnectLECocReq(uint16_t cid) {
+ if (bluetooth::shim::is_gd_l2cap_enabled()) {
+ return bluetooth::shim::L2CA_DisconnectLECocReq(cid);
+ }
+ return L2CA_DisconnectReq(cid);
+}
bool L2CA_GetRemoteCid(uint16_t lcid, uint16_t* rcid) {
if (bluetooth::shim::is_gd_l2cap_enabled()) {
}
uint8_t L2CA_LECocDataWrite(uint16_t cid, BT_HDR* p_data) {
+ if (bluetooth::shim::is_gd_l2cap_enabled()) {
+ return bluetooth::shim::L2CA_LECocDataWrite(cid, p_data);
+ }
+
return L2CA_DataWrite(cid, p_data);
}
#include <cstdint>
#include "device/include/controller.h"
+#include "main/shim/l2c_api.h"
+#include "main/shim/shim.h"
#include "osi/include/log.h"
#include "osi/include/osi.h"
#include "stack/btm/btm_dev.h"
void l2c_link_hci_conn_comp(uint8_t status, uint16_t handle,
const RawAddress& p_bda) {
+ if (bluetooth::shim::is_gd_l2cap_enabled()) {
+ return;
+ }
tL2C_CONN_INFO ci;
tL2C_LCB* p_lcb;
tL2C_CCB* p_ccb;
*
******************************************************************************/
bool l2c_link_hci_disc_comp(uint16_t handle, uint8_t reason) {
+ if (bluetooth::shim::is_gd_l2cap_enabled()) {
+ btm_acl_removed(handle);
+ return false;
+ }
+
tL2C_LCB* p_lcb = l2cu_find_lcb_by_handle(handle);
tL2C_CCB* p_ccb;
bool status = true;
*
******************************************************************************/
void l2c_link_process_num_completed_pkts(uint8_t* p, uint8_t evt_len) {
+ if (bluetooth::shim::is_gd_l2cap_enabled()) {
+ return;
+ }
uint8_t num_handles, xx;
uint16_t handle;
uint16_t num_sent;
#include "hcidefs.h"
#include "l2c_int.h"
#include "l2cdefs.h"
+#include "main/shim/l2c_api.h"
#include "main/shim/shim.h"
#include "osi/include/allocator.h"
#include "osi/include/log.h"
*
******************************************************************************/
bool l2cu_start_post_bond_timer(uint16_t handle) {
+ if (bluetooth::shim::is_gd_l2cap_enabled()) {
+ return true;
+ }
+
tL2C_LCB* p_lcb = l2cu_find_lcb_by_handle(handle);
if (!p_lcb) return (true);