OSDN Git Service

Fix crash when more than 2 PHYs specified for connection
authorKim Schulz <k.schulz@samsung.com>
Wed, 20 Feb 2019 15:33:38 +0000 (16:33 +0100)
committerJakub Pawlowski <jpawlowski@google.com>
Wed, 20 Feb 2019 18:33:38 +0000 (18:33 +0000)
Bug: 124793834
Change-Id: Ide304e22d4b390f252ba9577aeb5d9a67fa1a1cd

stack/btm/btm_ble_connection_establishment.cc

index fbd240f..c0d7791 100644 (file)
@@ -58,7 +58,7 @@ void btm_send_hci_create_connection(
         std::bitset<std::numeric_limits<uint8_t>::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;