• Mat Martineau's avatar
    Bluetooth: Fix incorrect setting of remote_tx_win for L2CAP ERTM · cff70fae
    Mat Martineau authored
    remote_tx_win is intended to be set on receipt of an L2CAP
    configuration request.  The value is used to determine the size of the
    transmit window on the remote side of an ERTM connection, so L2CAP
    can stop sending frames when that remote window is full.
    
    An incorrect remote_tx_win value will cause the stack to not fully
    utilize the tx window (performance impact), or to overfill the remote
    tx window (causing dropped frames or a disconnect).
    
    This patch removes an extra setting of remote_tx_win when a
    configuration response is received.  The transmit window has a
    different meaning in a response - it is an informational value
    less than or equal to the local tx_win.
    Signed-off-by: default avatarMat Martineau <mathewm@codeaurora.org>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    cff70fae
l2cap.c 109 KB