Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d91f486a authored by Kim Schulz's avatar Kim Schulz Committed by android-build-merger
Browse files

Fix crash when more than 2 PHYs specified for connection am: 355f77b6

am: fbe0abe1

Change-Id: I1856eddfa20e13b24fd3eaad4530d9fab4cb9752
parents 352361ef fbe0abe1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;