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

Commit 41a05cbe authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "HIDH: Register for HID_PSM_CONTROL" am: 8caf7728 am: 5c3fcbf8 am: 9b2b1d13

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1445756

Change-Id: Ief84e6f58d62b76b894a143aeecdb75c19fb6c15
parents cfae9ffc 9b2b1d13
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -87,6 +87,12 @@ tHID_STATUS hidh_conn_reg(void) {
  hh_cb.l2cap_cfg.mtu = HID_HOST_MTU;

  /* Now, register with L2CAP */
  if (!L2CA_Register2(HID_PSM_CONTROL, hst_reg_info, false /* enable_snoop */,
                      nullptr, HID_HOST_MTU, hh_cb.l2cap_cfg.mtu,
                      BTA_SEC_AUTHENTICATE | BTA_SEC_ENCRYPT)) {
    HIDH_TRACE_ERROR("HID-Host Control Registration failed");
    return (HID_ERR_L2CAP_FAILED);
  }
  if (!L2CA_Register2(HID_PSM_INTERRUPT, hst_reg_info, false /* enable_snoop */,
                      nullptr, HID_HOST_MTU, 0,
                      BTA_SEC_AUTHENTICATE | BTA_SEC_ENCRYPT)) {