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

Commit 63791c64 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

am: d91f486a

Change-Id: I019fd259af2495ebaf52a6b74b40442e1a725a49
parents 33118c9d d91f486a
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;