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

Commit 682013e3 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Merge "Fix race condition in LE Create Connection Cancel handling"

am: 1bfcef12

Change-Id: I86ad4d40935d3fbf5f86234f51fe6854763adf94
parents 71f1c26c 1bfcef12
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -352,10 +352,12 @@ void btm_ble_create_conn_cancel_complete(uint8_t* p) {
    /* This is a sign that logic around keeping connection state is broken */
    LOG(ERROR)
        << "Attempt to cancel LE connection, when no connection is pending.";
    if (btm_ble_get_conn_st() == BLE_CONN_CANCEL) {
      btm_ble_set_conn_st(BLE_CONN_IDLE);
      btm_ble_update_mode_operation(HCI_ROLE_UNKNOWN, nullptr, status);
    }
  }
}

void btm_send_hci_create_connection(
    uint16_t scan_int, uint16_t scan_win, uint8_t init_filter_policy,