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

Commit 25a5e68b authored by Chienyuan's avatar Chienyuan Committed by Automerger Merge Worker
Browse files

gd hci: Check extended feature supported when read remote feature complete am:...

gd hci: Check extended feature supported when read remote feature complete am: 92a1d490 am: 6852a834 am: f172d72c

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

Change-Id: I74c2bcebfa8a6d2edb22320cc9661e31e584469c
parents 8de646e5 f172d72c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -578,8 +578,14 @@ struct classic_impl : public security::ISecurityManagerListener {
      ASSERT(!crash_on_unknown_handle_);
      return;
    }

    bool is_remote_support_extended_features = view.GetLmpFeatures() & (0x1ULL << 63);
    if (controller_->IsSupported(OpCode::READ_LOCAL_EXTENDED_FEATURES) && is_remote_support_extended_features) {
      callbacks->OnReadRemoteExtendedFeaturesComplete(0, 1, view.GetLmpFeatures());
    } else {
      callbacks->OnReadRemoteExtendedFeaturesComplete(0, 0, view.GetLmpFeatures());
    }
  }

  void on_read_remote_extended_features_complete(EventView packet) {
    auto view = ReadRemoteExtendedFeaturesCompleteView::Create(packet);