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

Commit 887f4960 authored by Myles Watson's avatar Myles Watson
Browse files

Use connection_handle for WriteLinkSupervision

Bug: 145832107
Tag: #gd-refactor
Test: cert/run --host
Change-Id: I3c9a36fa7616487e9a30a5f25cfb34c54c847ca3
parent 4b98ddb6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1795,7 +1795,7 @@ packet ReadLinkSupervisionTimeoutComplete : CommandComplete (command_op_code = R
}

packet WriteLinkSupervisionTimeout : ConnectionManagementCommand (op_code = WRITE_LINK_SUPERVISION_TIMEOUT) {
  handle : 12,
  connection_handle : 12,
  _reserved_ : 4,
  link_supervision_timeout : 16, // 0x001-0xFFFF (0.625ms-40.9s)
}
+1 −1
Original line number Diff line number Diff line
@@ -1081,7 +1081,7 @@ void DualModeController::WriteLinkSupervisionTimeout(
      gd_hci::ConnectionManagementCommandView::Create(command));
  ASSERT(command_view.IsValid());

  uint16_t handle = command_view.GetHandle();
  uint16_t handle = command_view.GetConnectionHandle();
  uint16_t timeout = command_view.GetLinkSupervisionTimeout();

  auto status =