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

Commit a5f6a8e8 authored by Ugo Yu's avatar Ugo Yu Committed by William Escande
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
(cherry picked from https://android-review.googlesource.com/q/commit:29a98dedcb3894c4c5b4e6dab4130f898ad37b2b)
Merged-In: Ie6a0aefb9bc35ddc6e6ab4c0aced6c0e860565b5
Bug: 263323082

Change-Id: I347725be669a8182f0c831a6d81877f4ebf32aaa
parent 0cbe2ef9
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -810,8 +810,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)));
    }
  }
@@ -1088,8 +1088,6 @@ struct le_impl : public bluetooth::hci::LeAddressManagerCallback {
    }
  }

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