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

Commit c89a7796 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Automerger Merge Worker
Browse files

Merge "leaudio: Fix characteristic subscribtion on reconnection" am: b9f885d3

parents 118689ad b9f885d3
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1296,10 +1296,6 @@ class LeAudioClientImpl : public LeAudioClient {
      BtaGattQueue::ConfigureMtu(leAudioDevice->conn_id_, 240);
    }

    /* If we know services, register for notifications */
    if (leAudioDevice->known_service_handles_)
      RegisterKnownNotifications(leAudioDevice);

    if (BTM_SecIsSecurityPending(address)) {
      /* if security collision happened, wait for encryption done
       * (BTA_GATTC_ENC_CMPL_CB_EVT) */
@@ -1387,6 +1383,10 @@ class LeAudioClientImpl : public LeAudioClient {
      return;
    }

    /* If we know services, register for notifications */
    if (leAudioDevice->known_service_handles_)
      RegisterKnownNotifications(leAudioDevice);

    if (leAudioDevice->encrypted_) {
      LOG(INFO) << __func__ << " link already encrypted, nothing to do";
      return;