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

Commit 82bbeb75 authored by Jack He's avatar Jack He
Browse files

GD: Do not send LeReadResolvingListSize command when not supported

Bug: 188926539
Bug: 189123400
Test: DeviceBootTest
Tag: #gd-refactor
Change-Id: I0d45871deeae3339262b4fb0681f7e4c5c045d0c
parent eccfe64b
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -88,9 +88,14 @@ struct Controller::impl {
        LeReadConnectListSizeBuilder::Create(),
        handler->BindOnceOn(this, &Controller::impl::le_read_connect_list_size_handler));

    if (is_supported(OpCode::LE_READ_RESOLVING_LIST_SIZE)) {
      hci_->EnqueueCommand(
          LeReadResolvingListSizeBuilder::Create(),
          handler->BindOnceOn(this, &Controller::impl::le_read_resolving_list_size_handler));
    } else {
      LOG_INFO("LE_READ_RESOLVING_LIST_SIZE not supported, defaulting to 0");
      le_resolving_list_size_ = 0;
    }

    if (is_supported(OpCode::LE_READ_MAXIMUM_DATA_LENGTH)) {
      hci_->EnqueueCommand(LeReadMaximumDataLengthBuilder::Create(),