[Bluetooth] Initiate authentication during connection establishment
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Jul 2008 18:13:49 +0000 (20:13 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Jul 2008 18:13:49 +0000 (20:13 +0200)
commitf8558555f31e177e2644f3c8116801c3e5c29974
tree5ad03ff814c4e1d0619e75d5f5a6033beff1c177
parent769be974d0c7b4fe1a52f9cdaad22259b60953f7
[Bluetooth] Initiate authentication during connection establishment

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: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_event.c