From: Kim Schulz Date: Wed, 20 Feb 2019 15:33:38 +0000 (+0100) Subject: Fix crash when more than 2 PHYs specified for connection X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d20051b26a;p=android-x86%2Fsystem-bt.git Fix crash when more than 2 PHYs specified for connection Bug: 124793834 Change-Id: Ide304e22d4b390f252ba9577aeb5d9a67fa1a1cd --- 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;