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

Commit fbe0abe1 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

Change-Id: I05749d14830cf2217dab8ae8fc30660cc30b2950
parents ded5fc28 355f77b6
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;