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

Commit 27011a5e authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Don't send enhance flush command to controller if the transport is LE"...

Merge "Don't send enhance flush command to controller if the transport is LE" am: 0961115e am: 3113a981 am: ed17c843 am: 96ee9736

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2005353

Change-Id: I40555253838d28f0e44897a320375638c2b98c8a
parents 85141ee3 96ee9736
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1576,7 +1576,9 @@ uint16_t L2CA_FlushChannel(uint16_t lcid, uint16_t num_to_flush) {
  /* Cannot flush eRTM buffers once they have a sequence number */
  if (p_ccb->peer_cfg.fcr.mode != L2CAP_FCR_ERTM_MODE) {
    const controller_t* controller = controller_get_interface();
    if (num_to_flush != L2CAP_FLUSH_CHANS_GET) {
    // Don't need send enhanced_flush to controller if it is LE transport.
    if (p_lcb->transport != BT_TRANSPORT_LE &&
        num_to_flush != L2CAP_FLUSH_CHANS_GET) {
      /* If the controller supports enhanced flush, flush the data queued at the
       * controller */
      if (controller->supports_non_flushable_pb() &&