diff --git a/system/stack/btm/btm_acl.c b/system/stack/btm/btm_acl.c index f4427e8df719cffb291424d9a0e877c68cd848a8..661449c0d67b57b10476ab09fe96cf60baac9cd9 100644 --- a/system/stack/btm/btm_acl.c +++ b/system/stack/btm/btm_acl.c @@ -1378,81 +1378,6 @@ tBTM_STATUS BTM_SetLinkSuperTout (BD_ADDR remote_bda, UINT16 timeout) return(BTM_UNKNOWN_ADDR); } -/******************************************************************************* -** -** Function BTM_SetPacketTypes -** -** Description This function is set the packet types used for a specific -** ACL connection, -** -** Returns status of the operation -** -*******************************************************************************/ -tBTM_STATUS BTM_SetPacketTypes (BD_ADDR remote_bda, UINT16 pkt_types) -{ - tACL_CONN *p; - BTM_TRACE_DEBUG ("BTM_SetPacketTypes"); - - if ((p = btm_bda_to_acl(remote_bda, BT_TRANSPORT_BR_EDR)) != NULL) - return(btm_set_packet_types (p, pkt_types)); - - /* If here, no BD Addr found */ - return(BTM_UNKNOWN_ADDR); -} - - -/******************************************************************************* -** -** Function BTM_ReadPacketTypes -** -** Description This function is set the packet types used for a specific -** ACL connection, -** -** Returns packet types supported for the connection, or 0 if no BD address -** -*******************************************************************************/ -UINT16 BTM_ReadPacketTypes (BD_ADDR remote_bda) -{ - tACL_CONN *p; - - BTM_TRACE_DEBUG ("BTM_ReadPacketTypes"); - p = btm_bda_to_acl(remote_bda, BT_TRANSPORT_BR_EDR); - if (p != (tACL_CONN *)NULL) - { - return(p->pkt_types_mask); - } - - /* If here, no BD Addr found */ - return(0); -} - -/******************************************************************************* -** -** Function BTM_ReadClockOffset -** -** Description This returns the clock offset for a specific -** ACL connection. -** -** Input Param remote_bda - device address of desired ACL connection -** -** Returns clock-offset or 0 if unknown -** -*******************************************************************************/ -UINT16 BTM_ReadClockOffset (BD_ADDR remote_bda) -{ - tACL_CONN *p; - - BTM_TRACE_API ("BTM_ReadClockOffset: RemBdAddr: %02x%02x%02x%02x%02x%02x", - remote_bda[0], remote_bda[1], remote_bda[2], - remote_bda[3], remote_bda[4], remote_bda[5]); - - if ( (p = btm_bda_to_acl(remote_bda, BT_TRANSPORT_BR_EDR)) != NULL) - return(p->clock_offset); - - /* If here, no BD Addr found */ - return(0); -} - /******************************************************************************* ** ** Function BTM_IsAclConnectionUp diff --git a/system/stack/include/btm_api.h b/system/stack/include/btm_api.h index 01f0851b61367d386baff2de0eaa66324d5cec4b..24781aba3c3adf8d54b51784fc83e28a49f47836 100644 --- a/system/stack/include/btm_api.h +++ b/system/stack/include/btm_api.h @@ -2679,32 +2679,6 @@ extern tBTM_STATUS BTM_SetLinkSuperTout (BD_ADDR remote_bda, extern tBTM_STATUS BTM_GetLinkSuperTout (BD_ADDR remote_bda, UINT16 *p_timeout); -/******************************************************************************* -** -** Function BTM_SetPacketTypes -** -** Description This function is set the packet types used for a specific -** ACL connection, -** -** Returns BTM_CMD_STARTED if successfully initiated, otherwise error -** -*******************************************************************************/ -extern tBTM_STATUS BTM_SetPacketTypes (BD_ADDR remote_bda, UINT16 pkt_types); - - -/******************************************************************************* -** -** Function BTM_ReadPacketTypes -** -** Description This function is set the packet types used for the specified -** ACL connection, -** -** Returns packet types supported for the connection, or 0 if no BD address -** -*******************************************************************************/ -extern UINT16 BTM_ReadPacketTypes (BD_ADDR remote_bda); - - /******************************************************************************* ** ** Function BTM_IsAclConnectionUp @@ -2841,20 +2815,6 @@ extern tBTM_STATUS BTM_AclRegisterForChanges (tBTM_ACL_DB_CHANGE_CB *p_cb); *******************************************************************************/ extern UINT16 BTM_GetNumAclLinks (void); - -/******************************************************************************* -** -** Function BTM_ReadClockOffset -** -** Description This returns the clock offset for a specific -** ACL connection. -** -** Returns clock-offset or 0 if unknown -** -*******************************************************************************/ -extern UINT16 BTM_ReadClockOffset (BD_ADDR remote_bda); - - /******************************************************************************* ** ** Function BTM_SetQoS