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

Commit a6c65a41 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:...

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

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

Change-Id: I8ed048e66c5b9ec35b6e924a0abe379e538dd006
parents 75a1ff24 41a05cbe
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)) {