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

Commit 3a67c565 authored by Albin Joy's avatar Albin Joy Committed by Hansong Zhang
Browse files

Change the connecting state to FALSE for BLE devices while releasing LCB

To reconnect a paired BLE device, the connecting stage should change to
FALSE when LCB is releasing. BLE device should be in connectable state to
connect the device next time.

BUG: 64432592
Test: reconnecting a paired BLE mouse failed randomly
Change-Id: I2c9016a267c9f5cd10d1eb05751eceb6046fbdb5
parent 1ce1d04b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -172,7 +172,8 @@ void l2cu_release_lcb(tL2C_LCB* p_lcb) {
  }

  // Reset BLE connecting flag only if the address matches
  if (l2cb.ble_connecting_bda == p_lcb->remote_bd_addr)
  if (p_lcb->transport == BT_TRANSPORT_LE &&
      l2cb.ble_connecting_bda == p_lcb->remote_bd_addr)
    l2cb.is_ble_connecting = false;

#if (L2CAP_NUM_FIXED_CHNLS > 0)