summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_sock.c
diff options
context:
space:
mode:
authorMarcel Holtmann2008-07-14 20:13:45 +0200
committerMarcel Holtmann2008-07-14 20:13:45 +0200
commitae29319649b80ed9d28d7b4f164e3f5f75020fc8 (patch)
tree71026720bc10d9e4c9f1b971a531e175aa9d2e16 /net/bluetooth/hci_sock.c
parent[Bluetooth] Disconnect when encryption gets disabled (diff)
downloadkernel-qcow2-linux-ae29319649b80ed9d28d7b4f164e3f5f75020fc8.tar.gz
kernel-qcow2-linux-ae29319649b80ed9d28d7b4f164e3f5f75020fc8.tar.xz
kernel-qcow2-linux-ae29319649b80ed9d28d7b4f164e3f5f75020fc8.zip
[Bluetooth] Update authentication status after successful encryption
The authentication status is not communicated to both parties. This is actually a flaw in the Bluetooth specification. Only the requesting side really knows if the authentication was successful or not. This piece of information is however needed on the other side to know if it has to trigger the authentication procedure or not. Worst case is that both sides will request authentication at different times, but this should be avoided since it costs extra time when setting up a new connection. For Bluetooth encryption it is required to authenticate the link first and the encryption status is communicated to both sides. So when a link is switched to encryption it is possible to update the authentication status since it implies an authenticated link. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_sock.c')
0 files changed, 0 insertions, 0 deletions