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

Commit cb4c262d authored by Ted Wang's avatar Ted Wang
Browse files

Switch role to MASTER after connecting

It could cause issues and audio glitches when phone is at SLAVE role
after Bluetooth connection has been established, especially in dynamic
channel environment.
Request role switch after remote send connection request to make phone
at MASTER role.

Bug: 130190036
Test: Create connection from remote device and check it switched role
Change-Id: I11334a730c9fe93b841a4ed54dd6b89e9edf87f3
parent dacad0cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -534,7 +534,7 @@

/* Whether link wants to be the master or the slave. */
#ifndef L2CAP_DESIRED_LINK_ROLE
#define L2CAP_DESIRED_LINK_ROLE HCI_ROLE_SLAVE
#define L2CAP_DESIRED_LINK_ROLE HCI_ROLE_MASTER
#endif

/* Include Non-Flushable Packet Boundary Flag feature of Lisbon */