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

Skip to content
Commit c706cc6a authored by Archie Pusaka's avatar Archie Pusaka
Browse files

HID Host: Reset conn state if failed to disconnect

It's possible for the ctrl_cid to be populated even though no l2cap
connect has been issued. When the baseband connection is disconnected
under this situation, we still send L2CAP DisconnectReq but it will
fail and we won't get a response.

Call the response callback in this case.

Bug: 344778226
Bug: 387937345
Test: m -j
Test: Connect a classic HID device, then toggle the "Input" selection
      on the device details page. Verify device is still connectable.
Flag: com.android.bluetooth.flags.disconnect_hid_channels_serially

Change-Id: I97ca0d6f6fbf6a6ed773c3d68ea037352758e839
parent 7481ab0b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment