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

Commit 1768cb20 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Ensure we delete the link key from the controller."

parents 3545ac7e 46fe0af0
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -146,12 +146,10 @@ void SecurityManagerImpl::CancelBond(hci::AddressWithType device) {

void SecurityManagerImpl::RemoveBond(hci::AddressWithType device) {
  CancelBond(device);
  security_database_.Remove(device);
  security_manager_channel_->Disconnect(device.GetAddress());
  // Signal disconnect
  // Remove security record
  // Signal Remove from database

  security_database_.Remove(device);
  security_manager_channel_->SendCommand(
      hci::DeleteStoredLinkKeyBuilder::Create(device.GetAddress(), hci::DeleteStoredLinkKeyDeleteAllFlag::ALL));
  NotifyDeviceUnbonded(device);
}