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

Commit 354e911c authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Gerrit Code Review
Browse files

Merge "Fixed L2CAP Buffer Length when transmit packets"

parents 47bee278 8b139f00
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1010,6 +1010,11 @@ void btsock_l2cap_signaled(int fd, int flags, uint32_t user_id) {
          count = L2CAP_LE_MAX_MPS;
        }

        /* When multiple packets smaller than MTU are flushed to the socket, the
           size of the single packet read could be smaller than the ioctl
           reported total size of awaiting packets. Hence, we adjust the buffer
           length. */
        buffer->len = count;
        DVLOG(2) << __func__ << ": bytes received from socket: " << count;

        if (sock->fixed_chan) {