• Marcel Holtmann's avatar
    Bluetooth: Pause RFCOMM TX when encryption drops · 8c84b830
    Marcel Holtmann authored
    A role switch with devices following the Bluetooth pre-2.1 standards
    or without Encryption Pause and Resume support is not possible if
    encryption is enabled. Most newer headsets require the role switch,
    but also require that the connection is encrypted.
    
    For connections with a high security mode setting, the link will be
    immediately dropped. When the connection uses medium security mode
    setting, then a grace period is introduced where the TX is halted and
    the remote device gets a change to re-enable encryption after the
    role switch. If not re-enabled the link will be dropped.
    
    Based on initial work by Ville Tervo <ville.tervo@nokia.com>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    8c84b830
rfcomm.h 8.92 KB