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

Commit f186a417 authored by cheng_cai's avatar cheng_cai Committed by cheng cai
Browse files

Fix HOGP device reconnecting fail

Do not send BONDING event to Java after Ble Authentication completed,
If it is not a crosskey paring.
Sending BONDING event to Java may cause HidHost service to unplug the
device.

Bug: 157964101
Test: reconnect a hogp device which can send smp security request.
Change-Id: I9574bccf2b0cc9f280959a3a558833e2979a849d
parent 73727f34
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3000,7 +3000,8 @@ static void btif_dm_ble_auth_cmpl_evt(tBTA_DM_AUTH_CMPL* p_auth_cmpl) {
        break;
    }
  }
  if (state == BT_BOND_STATE_BONDED && bd_addr != pairing_cb.static_bdaddr) {
  if (state == BT_BOND_STATE_BONDED && !pairing_cb.static_bdaddr.IsEmpty() &&
      bd_addr != pairing_cb.static_bdaddr) {
    // Report RPA bonding state to Java in crosskey paring
    bond_state_changed(status, bd_addr, BT_BOND_STATE_BONDING);
  }