• Marcel Holtmann's avatar
    [Bluetooth] Initiate authentication during connection establishment · f8558555
    Marcel Holtmann authored
    With Bluetooth 2.1 and Simple Pairing the requirement is that any new
    connection needs to be authenticated and that encryption has been
    switched on before allowing L2CAP to use it. So make sure that all
    the requirements are fulfilled and otherwise drop the connection with
    a minimal disconnect timeout of 10 milliseconds.
    
    This change only affects Bluetooth 2.1 devices and Simple Pairing
    needs to be enabled locally and in the remote host stack. The previous
    changes made sure that these information are discovered before any
    kind of authentication and encryption is triggered.
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    f8558555
hci_event.c 42.1 KB