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

Commit 832317bb authored by Greg Kaiser's avatar Greg Kaiser
Browse files

Fix valid check

We were checking peer_lmp_feature_valid[0] twice; we add a check
of peer_lmp_feature_valid[1].

Test: TreeHugger
Change-Id: Ibce650f4120ac9e8b801920d5bf7f45c3d260317
parent ea59bc83
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -803,7 +803,7 @@ void btm_process_remote_ext_features(tACL_CONN* p_acl_cb,
                                     uint8_t num_read_pages) {
  CHECK(p_acl_cb != nullptr);
  if (!p_acl_cb->peer_lmp_feature_valid[0] ||
      !p_acl_cb->peer_lmp_feature_valid[0]) {
      !p_acl_cb->peer_lmp_feature_valid[1]) {
    LOG_WARN(
        "Checking remote features but remote feature read is "
        "incomplete");