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

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

vc: Fix typo when checking encryption

This cause some delay in connecting VCP.

Bug: 243637121
Test: atest BluetoothInstrumentationTests
Tag: #feature
Change-Id: Ia02869368875899918c6cca5aa17cc56b20ed037
parent f03a14d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1051,7 +1051,7 @@ class VolumeControlImpl : public VolumeControl {

      case BTA_GATTC_ENC_CMPL_CB_EVT: {
        uint8_t encryption_status;
        if (!BTM_IsEncrypted(p_data->enc_cmpl.remote_bda, BT_TRANSPORT_LE)) {
        if (BTM_IsEncrypted(p_data->enc_cmpl.remote_bda, BT_TRANSPORT_LE)) {
          encryption_status = BTM_SUCCESS;
        } else {
          encryption_status = BTM_FAILED_ON_SECURITY;