• Marcel Holtmann's avatar
    Bluetooth: Fix double L2CAP connection request · 6a8d3010
    Marcel Holtmann authored
    If the remote L2CAP server uses authentication pending stage and
    encryption is enabled it can happen that a L2CAP connection request is
    sent twice due to a race condition in the connection state machine.
    
    When the remote side indicates any kind of connection pending, then
    track this state and skip sending of L2CAP commands for this period.
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    6a8d3010
l2cap.c 59.7 KB