Loading system/bta/test/common/mock_stack_acl.cc +5 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,11 @@ bool BTM_IsBleConnection(uint16_t hci_handle) { mock_function_count_map[__func__]++; return false; } bool BTM_IsPhy2mSupported(const RawAddress& remote_bda, tBT_TRANSPORT transport) { mock_function_count_map[__func__]++; return false; } bool BTM_ReadRemoteConnectionAddr(const RawAddress& pseudo_addr, RawAddress& conn_addr, tBLE_ADDR_TYPE* p_addr_type) { Loading system/stack/acl/btm_acl.cc +26 −0 Original line number Diff line number Diff line Loading @@ -1236,6 +1236,32 @@ uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda, return HCI_INVALID_HANDLE; } /******************************************************************************* * * Function BTM_IsPhy2mSupported * * Description This function is called to check PHY 2M support * from peer device * Returns True when PHY 2M supported false otherwise * ******************************************************************************/ bool BTM_IsPhy2mSupported(const RawAddress& remote_bda, tBT_TRANSPORT transport) { tACL_CONN* p; BTM_TRACE_DEBUG("BTM_IsPhy2mSupported"); p = internal_.btm_bda_to_acl(remote_bda, transport); if (p == (tACL_CONN*)NULL) { BTM_TRACE_DEBUG("BTM_IsPhy2mSupported: no connection"); return false; } if (!p->peer_le_features_valid) { LOG_WARN( "Checking remote features but remote feature read is " "incomplete"); } return HCI_LE_2M_PHY_SUPPORTED(p->peer_le_features); } /******************************************************************************* * * Function BTM_RequestPeerSCA Loading system/stack/include/btm_api.h +11 −0 Original line number Diff line number Diff line Loading @@ -750,6 +750,17 @@ tBTM_STATUS BTM_SetSsrParams(const RawAddress& remote_bda, uint16_t max_lat, uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda, tBT_TRANSPORT transport); /******************************************************************************* * * Function BTM_IsPhy2mSupported * * Description This function is called to check PHY 2M support * from peer device * Returns True when PHY 2M supported false otherwise * ******************************************************************************/ bool BTM_IsPhy2mSupported(const RawAddress& remote_bda, tBT_TRANSPORT transport); /******************************************************************************* * * Function BTM_RequestPeerSCA Loading Loading
system/bta/test/common/mock_stack_acl.cc +5 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,11 @@ bool BTM_IsBleConnection(uint16_t hci_handle) { mock_function_count_map[__func__]++; return false; } bool BTM_IsPhy2mSupported(const RawAddress& remote_bda, tBT_TRANSPORT transport) { mock_function_count_map[__func__]++; return false; } bool BTM_ReadRemoteConnectionAddr(const RawAddress& pseudo_addr, RawAddress& conn_addr, tBLE_ADDR_TYPE* p_addr_type) { Loading
system/stack/acl/btm_acl.cc +26 −0 Original line number Diff line number Diff line Loading @@ -1236,6 +1236,32 @@ uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda, return HCI_INVALID_HANDLE; } /******************************************************************************* * * Function BTM_IsPhy2mSupported * * Description This function is called to check PHY 2M support * from peer device * Returns True when PHY 2M supported false otherwise * ******************************************************************************/ bool BTM_IsPhy2mSupported(const RawAddress& remote_bda, tBT_TRANSPORT transport) { tACL_CONN* p; BTM_TRACE_DEBUG("BTM_IsPhy2mSupported"); p = internal_.btm_bda_to_acl(remote_bda, transport); if (p == (tACL_CONN*)NULL) { BTM_TRACE_DEBUG("BTM_IsPhy2mSupported: no connection"); return false; } if (!p->peer_le_features_valid) { LOG_WARN( "Checking remote features but remote feature read is " "incomplete"); } return HCI_LE_2M_PHY_SUPPORTED(p->peer_le_features); } /******************************************************************************* * * Function BTM_RequestPeerSCA Loading
system/stack/include/btm_api.h +11 −0 Original line number Diff line number Diff line Loading @@ -750,6 +750,17 @@ tBTM_STATUS BTM_SetSsrParams(const RawAddress& remote_bda, uint16_t max_lat, uint16_t BTM_GetHCIConnHandle(const RawAddress& remote_bda, tBT_TRANSPORT transport); /******************************************************************************* * * Function BTM_IsPhy2mSupported * * Description This function is called to check PHY 2M support * from peer device * Returns True when PHY 2M supported false otherwise * ******************************************************************************/ bool BTM_IsPhy2mSupported(const RawAddress& remote_bda, tBT_TRANSPORT transport); /******************************************************************************* * * Function BTM_RequestPeerSCA Loading