From eeacdf85398e18b9eff23522fb6e48c3abe9bec0 Mon Sep 17 00:00:00 2001 From: Hansong Zhang Date: Wed, 13 Jan 2021 12:54:07 -0800 Subject: [PATCH] Remove unused L2cap shim API Test: cert/run Tag: #gd-refactor Bug: 141555841 Change-Id: Iba501798a776423da1babc05b35d63412b8aae6c --- main/shim/l2c_api.h | 42 ------------------------------------------ 1 file changed, 42 deletions(-) diff --git a/main/shim/l2c_api.h b/main/shim/l2c_api.h index dc044704f..02db5f107 100644 --- a/main/shim/l2c_api.h +++ b/main/shim/l2c_api.h @@ -425,33 +425,6 @@ bool L2CA_EnableUpdateBleConnParams(const RawAddress& rem_bda, bool enable); bool L2CA_SetFixedChannelTout(const RawAddress& rem_bda, uint16_t fixed_cid, uint16_t idle_tout); -/******************************************************************************* - * - * Function L2CA_CancelBleConnectReq - * - * Description Cancel a pending connection attempt to a BLE device. - * - * Parameters: BD Address of remote - * - * Return value: true if connection was cancelled - * - ******************************************************************************/ -bool L2CA_CancelBleConnectReq(const RawAddress& rem_bda); - -/******************************************************************************* - * - * Function L2CA_UpdateBleConnParams - * - * Description Update BLE connection parameters. - * - * Parameters: BD Address of remote - * - * Return value: true if update started - * - ******************************************************************************/ -bool L2CA_UpdateBleConnParams(const RawAddress& rem_bdRa, uint16_t min_int, - uint16_t max_int, uint16_t latency, - uint16_t timeout); bool L2CA_UpdateBleConnParams(const RawAddress& rem_bda, uint16_t min_int, uint16_t max_int, uint16_t latency, uint16_t timeout, uint16_t min_ce_len, @@ -482,21 +455,6 @@ bool L2CA_EnableUpdateBleConnParams(const RawAddress& rem_bda, bool enable); ******************************************************************************/ uint8_t L2CA_GetBleConnRole(const RawAddress& bd_addr); -/******************************************************************************* - * - * Function L2CA_GetDisconnectReason - * - * Description This function returns the disconnect reason code. - * - * Parameters: BD Address of remote - * Physical transport for the L2CAP connection (BR/EDR or LE) - * - * Returns disconnect reason - * - ******************************************************************************/ -uint16_t L2CA_GetDisconnectReason(const RawAddress& remote_bda, - tBT_TRANSPORT transport); - /** * Check whether an ACL or LE link to the remote device is established */ -- 2.11.0