Bluetooth: Add support for SMP timeout
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Tue, 14 Jun 2011 16:37:41 +0000 (13:37 -0300)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:38:48 +0000 (21:38 -0800)
commitf663e347086a2b63ac0ab84e4e971ad36640b9a7
tree097971bf70c47e1bd5cac2fa702cc44b52d08f48
parent18a59ab31904dd5a03f9dcb3e67b103e6167b000
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/smp.c