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

Commit 29a98ded authored by Ugo Yu's avatar Ugo Yu
Browse files

Set CE length to 0 in LE_Create_Connection

- Currently the value is set to constant min/max which does not make
  sense to the controller in most of the cases.
- Set length to 0 to align with the behavior in legacy stack as well
  as the extended create connection command in gd stack.

Bug: 268702775
Test: cert/run
Change-Id: Ie6a0aefb9bc35ddc6e6ab4c0aced6c0e860565b5
parent 85eb19f2
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -975,8 +975,8 @@ struct le_impl : public bluetooth::hci::LeAddressManagerCallback {
              conn_interval_max,
              conn_latency,
              supervision_timeout,
              kMinimumCeLength,
              kMaximumCeLength),
              0x00,
              0x00),
          handler_->BindOnce(&le_impl::on_create_connection, common::Unretained(this)));
    }
  }
@@ -1273,8 +1273,6 @@ struct le_impl : public bluetooth::hci::LeAddressManagerCallback {
    system_suspend_ = suspended;
  }

  static constexpr uint16_t kMinimumCeLength = 0x0002;
  static constexpr uint16_t kMaximumCeLength = 0x0C00;
  HciLayer* hci_layer_ = nullptr;
  Controller* controller_ = nullptr;
  os::Handler* handler_ = nullptr;