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

Commit d73f5fbe authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Fix for read LeAudio stuff on encryted link

If remote device uses gatt caching, LeAudio mighd start to do searvice
search and read on non encrypted link during pairing.

Bug: 257465691
Test: manual pair multiple times with devices supporting gatt caching
Test: atest BluetoothInstrumentationTests
Tag: #feature
Change-Id: Iec70fa30453871cd95fc494d9e130ae0dbc3c5b1
parent 91c37049
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1819,6 +1819,11 @@ class LeAudioClientImpl : public LeAudioClient {
      return;
    }

    if (!leAudioDevice->encrypted_) {
      LOG_DEBUG("Wait for device to be encrypted");
      return;
    }

    if (!leAudioDevice->known_service_handles_)
      BTA_GATTC_ServiceSearchRequest(
          leAudioDevice->conn_id_,