• Mat Martineau's avatar
    Bluetooth: Use tx window from config response for ack timing · c20f8e35
    Mat Martineau authored
    This change addresses an L2CAP ERTM throughput problem when a remote
    device does not fully utilize the available transmit window.
    
    The L2CAP ERTM transmit window size determines the maximum number of
    unacked frames that may be outstanding at any time. It is configured
    separately for each direction of an ERTM connection. Each side sends a
    configuration request with a tx_win field indicating how many unacked
    frames it is capable of receiving before sending an ack. The
    configuration response's tx_win field shows how many frames the
    transmitter will actually send before waiting for an ack.
    
    It's important to trace both the actual transmit window (to check for
    validity of incoming frames) and the number of frames that the
    transmitter will send before waiting (to send acks at the appropriate
    time). Now there are separate tx_win and ack_win values. ack_win is
    updated based on configuration responses, and is used to determine
    when acks are sent.
    Signed-off-by: default avatarMat Martineau <mathewm@codeaurora.org>
    Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
    c20f8e35
l2cap.h 18 KB