Bluetooth: Add support for SMP timeout
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Tue, 14 Jun 2011 16:37:41 +0000 (13:37 -0300)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:18:17 +0000 (12:18 -0800)
commit1d166779ebd37ad411896595eaf9a39e57e7bb3b
tree8f216725879e43506540f38e546f06c8076c63c1
parentbe149f0011fa8b8972f0488f95aadf80645977eb
Bluetooth: Add support for SMP timeout

This patch adds support for disconnecting the link when SMP procedure
takes more than 30 seconds.

SMP begins when either the Pairing Request command is sent or the
Pairing Response is received, and it ends when the link is encrypted
(or terminated). Vol 3, Part H Section 3.4.

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_core.c
net/bluetooth/smp.c