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

Commit 2abd166b authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

smp: Log if remote lmp_version is invalid am: 73669695

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1491244

Change-Id: I8c11132b4aed4339796c9128b348b9b7116d0455
parents d04fcbc0 73669695
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -166,8 +166,13 @@ void smp_send_app_cback(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {
            p_cb->loc_auth_req |= SMP_SC_SUPPORT_BIT;
          }

          BTM_ReadRemoteVersion(p_cb->pairing_bda, &remote_lmp_version, nullptr,
                                nullptr);
          if (!BTM_ReadRemoteVersion(p_cb->pairing_bda, &remote_lmp_version,
                                     nullptr, nullptr)) {
            LOG_WARN(
                "SMP Unable to determine remote security authentication "
                "remote_lmp_version:%hu",
                remote_lmp_version);
          }

          if (!p_cb->secure_connections_only_mode_required &&
              (!(p_cb->loc_auth_req & SMP_SC_SUPPORT_BIT) ||