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

Commit 666b01d6 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

vc: Fix for incorrect encryption state

This fixes issue with reconnection Volume Control after reboot.

Bug: 150670922
Tag: #feature
Sponsor: jpawlowski@
Test: atest --host bluetooth_vc_test

Change-Id: I9609b25da203fd254e94076df7965efb975d4f6b
parent c3ab26c8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ class VolumeControlImpl : public VolumeControl {
      return;
    }

    LOG(INFO) << __func__ << " " << address << " status: " << success;
    LOG(INFO) << __func__ << " " << address << " status: " << +success;

    if (device->HasHandles()) {
      device->EnqueueInitialRequests(gatt_if_, chrc_read_callback_static,
@@ -743,7 +743,7 @@ class VolumeControlImpl : public VolumeControl {
      } break;

      case BTA_GATTC_ENC_CMPL_CB_EVT:
        OnEncryptionComplete(p_data->enc_cmpl.remote_bda, true);
        OnEncryptionComplete(p_data->enc_cmpl.remote_bda, BTM_SUCCESS);
        break;

      case BTA_GATTC_SRVC_CHG_EVT: