From d20051b26ab3d8ce4b1edc0cbd11984aab1ce29a Mon Sep 17 00:00:00 2001 From: Kim Schulz Date: Wed, 20 Feb 2019 16:33:38 +0100 Subject: [PATCH] Fix crash when more than 2 PHYs specified for connection Bug: 124793834 Change-Id: Ide304e22d4b390f252ba9577aeb5d9a67fa1a1cd --- stack/btm/btm_ble_connection_establishment.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack/btm/btm_ble_connection_establishment.cc b/stack/btm/btm_ble_connection_establishment.cc index fbd240fed..c0d77911e 100644 --- a/stack/btm/btm_ble_connection_establishment.cc +++ b/stack/btm/btm_ble_connection_establishment.cc @@ -58,7 +58,7 @@ void btm_send_hci_create_connection( std::bitset::digits>(initiating_phys) .count(); - LOG_ASSERT(phy_cnt < 3) << "More than three phys provided"; + LOG_ASSERT(phy_cnt <= 3) << "More than three phys provided"; // TODO(jpawlowski): tune parameters for different transports for (int i = 0; i < phy_cnt; i++) { phy_cfg[i].scan_int = scan_int; -- 2.11.0