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

Commit 8f59ed7c authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Fix bad SC bit in Pairing Request/Response between two android phones

This patch fixes recent regression where Secure Connection pairing is no
longer used, even between two capable devices.

Tag: #gd-refactor
Bug: 141555841
Test: bond two LE devices capable of Secure Connection
Change-Id: If621078a62cb42d2f6b88e94801ada5d107a727a
parent 094d734d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1591,7 +1591,7 @@ uint16_t BTM_GetMaxPacketSize(const RawAddress& addr) {
 ******************************************************************************/
bool BTM_ReadRemoteVersion(const RawAddress& addr, uint8_t* lmp_version,
                           uint16_t* manufacturer, uint16_t* lmp_sub_version) {
  if (!bluetooth::shim::is_gd_l2cap_enabled()) {
  if (bluetooth::shim::is_gd_l2cap_enabled()) {
    return bluetooth::shim::L2CA_ReadRemoteVersion(
        addr, lmp_version, manufacturer, lmp_sub_version);
  }