[Bluetooth] Export details about authentication requirements
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Jul 2008 18:13:50 +0000 (20:13 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Jul 2008 18:13:50 +0000 (20:13 +0200)
commit40be492fe4fab829951681860c2bb26fa1d5fe4a
tree41b576692c2206c9a51e689f54170076ec95bc3a
parentf8558555f31e177e2644f3c8116801c3e5c29974
[Bluetooth] Export details about authentication requirements

With the Simple Pairing support, the authentication requirements are
an explicit setting during the bonding process. Track and enforce the
requirements and allow higher layers like L2CAP and RFCOMM to increase
them if needed.

This patch introduces a new IOCTL that allows to query the current
authentication requirements. It is also possible to detect Simple
Pairing support in the kernel this way.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
fs/compat_ioctl.c
include/net/bluetooth/hci.h
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_sock.c
net/bluetooth/l2cap.c
net/bluetooth/rfcomm/core.c