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

Commit 8c5c378b authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

hearing_aid: Fix handling BTA_GATTC_ENC_CMPL_CB_EVT

Make sure, encryption is enabled on BTA_GATTC_ENC_CMPL_CB_EVT
Bug:233555812
Test: Compile

Change-Id: If6243bda202dfed88dafe480b1f0e523d1a0481a
parent 1ae2b697
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1868,7 +1868,9 @@ void hearingaid_gattc_callback(tBTA_GATTC_EVT event, tBTA_GATTC* p_data) {

    case BTA_GATTC_ENC_CMPL_CB_EVT:
      if (!instance) return;
      instance->OnEncryptionComplete(p_data->enc_cmpl.remote_bda, true);
      instance->OnEncryptionComplete(
          p_data->enc_cmpl.remote_bda,
          BTM_IsEncrypted(p_data->enc_cmpl.remote_bda, BT_TRANSPORT_LE));
      break;

    case BTA_GATTC_CONN_UPDATE_EVT: