Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3182852f authored by Chris Manton's avatar Chris Manton
Browse files

Use new APIs stack/btm/btm_sco

sco_peer_supports_esco_2m_phy
sco_peer_supports_esco_3m_phy

Working towards encapsulation of tACL_CONN

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I513b65bf926d9c26bf207020fcdc8a088350c6f0
parent 9cff9888
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@
#include "hcidefs.h"
#include "hcimsgs.h"
#include "osi/include/osi.h"
#include "stack/include/acl_api.h"

/******************************************************************************/
/*               L O C A L    D A T A    D E F I N I T I O N S                */
@@ -265,12 +266,12 @@ static tBTM_STATUS btm_send_connect_request(uint16_t acl_handle,
    uint8_t acl_index = btm_handle_to_acl_index(acl_handle);
    if (acl_index < MAX_L2CAP_LINKS) {
      p_acl = &btm_cb.acl_cb_.acl_db[acl_index];
      if (!HCI_EDR_ESCO_2MPS_SUPPORTED(p_acl->peer_lmp_feature_pages[0])) {
      if (!sco_peer_supports_esco_2m_phy(acl_handle)) {
        BTM_TRACE_DEBUG("BTM Remote does not support 2-EDR eSCO");
        temp_packet_types |=
            (ESCO_PKT_TYPES_MASK_NO_2_EV3 | ESCO_PKT_TYPES_MASK_NO_2_EV5);
      }
      if (!HCI_EDR_ESCO_3MPS_SUPPORTED(p_acl->peer_lmp_feature_pages[0])) {
      if (!sco_peer_supports_esco_3m_phy(acl_handle)) {
        BTM_TRACE_DEBUG("BTM Remote does not support 3-EDR eSCO");
        temp_packet_types |=
            (ESCO_PKT_TYPES_MASK_NO_3_EV3 | ESCO_PKT_TYPES_MASK_NO_3_EV5);