Loading system/bta/test/common/mock_stack_acl.cc +0 −1 Original line number Diff line number Diff line Loading @@ -425,7 +425,6 @@ void btm_set_link_policy(tACL_CONN* conn, tLINK_POLICY policy) { mock_function_count_map[__func__]++; } void btm_set_packet_types_from_address(const RawAddress& bd_addr, tBT_TRANSPORT transport, uint16_t pkt_types) { mock_function_count_map[__func__]++; } Loading system/main/test/common/mock_stack_acl.cc +0 −1 Original line number Diff line number Diff line Loading @@ -424,7 +424,6 @@ void btm_set_link_policy(tACL_CONN* conn, tLINK_POLICY policy) { mock_function_count_map[__func__]++; } void btm_set_packet_types_from_address(const RawAddress& bd_addr, tBT_TRANSPORT transport, uint16_t pkt_types) { mock_function_count_map[__func__]++; } Loading system/stack/acl/btm_acl.cc +4 −12 Original line number Diff line number Diff line Loading @@ -1401,22 +1401,14 @@ tBTM_STATUS StackAclBtmAcl::btm_set_packet_types(tACL_CONN* p, } void btm_set_packet_types_from_address(const RawAddress& bd_addr, tBT_TRANSPORT transport, uint16_t pkt_types) { if (transport == BT_TRANSPORT_LE) { LOG_WARN("Unable to set packet types on le transport"); return; } tACL_CONN* p_acl_cb = internal_.btm_bda_to_acl(bd_addr, transport); if (p_acl_cb == nullptr) { tACL_CONN* p_acl = internal_.btm_bda_to_acl(bd_addr, BT_TRANSPORT_BR_EDR); if (p_acl == nullptr) { LOG_WARN("Unable to find active acl"); return; } if (p_acl_cb->is_transport_ble()) { LOG_DEBUG("Unable to set packet types on provided le acl"); return; } tBTM_STATUS status = internal_.btm_set_packet_types(p_acl_cb, pkt_types); tBTM_STATUS status = internal_.btm_set_packet_types(p_acl, pkt_types); if (status != BTM_CMD_STARTED) { LOG_ERROR("Unable to set packet types from address"); } Loading system/stack/avdt/avdt_l2c.cc +2 −2 Original line number Diff line number Diff line Loading @@ -156,7 +156,7 @@ void avdt_l2c_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid, if (interop_match_addr(INTEROP_2MBPS_LINK_ONLY, &bd_addr)) { // Disable 3DH packets for AVDT ACL to improve sensitivity on HS btm_set_packet_types_from_address( bd_addr, BT_TRANSPORT_BR_EDR, bd_addr, (acl_get_supported_packet_types() | HCI_PKT_TYPES_MASK_NO_3_DH1 | HCI_PKT_TYPES_MASK_NO_3_DH3 | HCI_PKT_TYPES_MASK_NO_3_DH5)); } Loading Loading @@ -254,7 +254,7 @@ void avdt_l2c_connect_cfm_cback(uint16_t lcid, uint16_t result) { (const RawAddress*)&p_ccb->peer_addr)) { // Disable 3DH packets for AVDT ACL to improve sensitivity on HS btm_set_packet_types_from_address( p_ccb->peer_addr, BT_TRANSPORT_BR_EDR, p_ccb->peer_addr, (acl_get_supported_packet_types() | HCI_PKT_TYPES_MASK_NO_3_DH1 | HCI_PKT_TYPES_MASK_NO_3_DH3 | HCI_PKT_TYPES_MASK_NO_3_DH5)); Loading system/stack/btm/btm_sec.cc +1 −2 Original line number Diff line number Diff line Loading @@ -3576,8 +3576,7 @@ void btm_sec_connected(const RawAddress& bda, uint16_t handle, /* For now there are a some devices that do not like sending */ /* commands events and data at the same time. */ /* Set the packet types to the default allowed by the device */ btm_set_packet_types_from_address(bda, BT_TRANSPORT_BR_EDR, acl_get_supported_packet_types()); btm_set_packet_types_from_address(bda, acl_get_supported_packet_types()); /* Initialize security flags. We need to do that because some */ /* authorization complete could have come after the connection is dropped */ Loading Loading
system/bta/test/common/mock_stack_acl.cc +0 −1 Original line number Diff line number Diff line Loading @@ -425,7 +425,6 @@ void btm_set_link_policy(tACL_CONN* conn, tLINK_POLICY policy) { mock_function_count_map[__func__]++; } void btm_set_packet_types_from_address(const RawAddress& bd_addr, tBT_TRANSPORT transport, uint16_t pkt_types) { mock_function_count_map[__func__]++; } Loading
system/main/test/common/mock_stack_acl.cc +0 −1 Original line number Diff line number Diff line Loading @@ -424,7 +424,6 @@ void btm_set_link_policy(tACL_CONN* conn, tLINK_POLICY policy) { mock_function_count_map[__func__]++; } void btm_set_packet_types_from_address(const RawAddress& bd_addr, tBT_TRANSPORT transport, uint16_t pkt_types) { mock_function_count_map[__func__]++; } Loading
system/stack/acl/btm_acl.cc +4 −12 Original line number Diff line number Diff line Loading @@ -1401,22 +1401,14 @@ tBTM_STATUS StackAclBtmAcl::btm_set_packet_types(tACL_CONN* p, } void btm_set_packet_types_from_address(const RawAddress& bd_addr, tBT_TRANSPORT transport, uint16_t pkt_types) { if (transport == BT_TRANSPORT_LE) { LOG_WARN("Unable to set packet types on le transport"); return; } tACL_CONN* p_acl_cb = internal_.btm_bda_to_acl(bd_addr, transport); if (p_acl_cb == nullptr) { tACL_CONN* p_acl = internal_.btm_bda_to_acl(bd_addr, BT_TRANSPORT_BR_EDR); if (p_acl == nullptr) { LOG_WARN("Unable to find active acl"); return; } if (p_acl_cb->is_transport_ble()) { LOG_DEBUG("Unable to set packet types on provided le acl"); return; } tBTM_STATUS status = internal_.btm_set_packet_types(p_acl_cb, pkt_types); tBTM_STATUS status = internal_.btm_set_packet_types(p_acl, pkt_types); if (status != BTM_CMD_STARTED) { LOG_ERROR("Unable to set packet types from address"); } Loading
system/stack/avdt/avdt_l2c.cc +2 −2 Original line number Diff line number Diff line Loading @@ -156,7 +156,7 @@ void avdt_l2c_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid, if (interop_match_addr(INTEROP_2MBPS_LINK_ONLY, &bd_addr)) { // Disable 3DH packets for AVDT ACL to improve sensitivity on HS btm_set_packet_types_from_address( bd_addr, BT_TRANSPORT_BR_EDR, bd_addr, (acl_get_supported_packet_types() | HCI_PKT_TYPES_MASK_NO_3_DH1 | HCI_PKT_TYPES_MASK_NO_3_DH3 | HCI_PKT_TYPES_MASK_NO_3_DH5)); } Loading Loading @@ -254,7 +254,7 @@ void avdt_l2c_connect_cfm_cback(uint16_t lcid, uint16_t result) { (const RawAddress*)&p_ccb->peer_addr)) { // Disable 3DH packets for AVDT ACL to improve sensitivity on HS btm_set_packet_types_from_address( p_ccb->peer_addr, BT_TRANSPORT_BR_EDR, p_ccb->peer_addr, (acl_get_supported_packet_types() | HCI_PKT_TYPES_MASK_NO_3_DH1 | HCI_PKT_TYPES_MASK_NO_3_DH3 | HCI_PKT_TYPES_MASK_NO_3_DH5)); Loading
system/stack/btm/btm_sec.cc +1 −2 Original line number Diff line number Diff line Loading @@ -3576,8 +3576,7 @@ void btm_sec_connected(const RawAddress& bda, uint16_t handle, /* For now there are a some devices that do not like sending */ /* commands events and data at the same time. */ /* Set the packet types to the default allowed by the device */ btm_set_packet_types_from_address(bda, BT_TRANSPORT_BR_EDR, acl_get_supported_packet_types()); btm_set_packet_types_from_address(bda, acl_get_supported_packet_types()); /* Initialize security flags. We need to do that because some */ /* authorization complete could have come after the connection is dropped */ Loading