• Gustavo F. Padovan's avatar
    Bluetooth: Fix sending ReqSeq on I-frames · 9f121a5a
    Gustavo F. Padovan authored
    As specified by ERTM spec an ERTM channel can acknowledge received
    I-frames(the data frames) by sending an I-frame with the proper ReqSeq
    value (i.e. ReqSeq is set to BufferSeq).  Until now we aren't setting the
    ReqSeq value on I-frame control bits. That way we can save sending
    S-frames(Supervise frames) only to acknowledge receipt of I-frames. It
    is very helpful to the full-duplex channel.
    ReqSeq is the packet sequence number sent in an acknowledgement frame to
    acknowledge receipt of frames up to (ReqSeq - 1).
    BufferSeq controls the receiver buffer, it is used to delay
    acknowledgement of new frames to not cause buffer overflow. BufferSeq
    value is not increased until frames are pulled by reassembly function.
    Signed-off-by: default avatarGustavo F. Padovan <gustavo@las.ic.unicamp.br>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    9f121a5a
l2cap.c 89.5 KB