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

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

Floss: Add disconnect_all method to bt_sock interface

When disconnecting a peer device, we first disconnect all of the
connected profiles. However, if the profile connection is created via
a listening/connecting socket, floss layer doesn't know the current
state of the connection, since the corresponding file descriptor has
been passed to whatever client that asks for the socket.

Therefore, add a disconnect_all method to the socket interface to ask
libbluetooth to disconnect all socket connections which corresponds
to a particular device address.

Bug: 288939390
Tag: #Floss
Test: Fast pair Pixel buds pro, disconnect from peer, then press
      disconnect from UI about 2-3 secs later. Verify the FP profile
      is disconnected so the baseband connection is also disconnected.
Change-Id: I5927fdd4d2a99240af5f007564b0f5b42136c869
parent 922b7767
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