Bluetooth: Fix SM pairing parameters negotiation
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Thu, 7 Jul 2011 21:59:38 +0000 (18:59 -0300)
committerJaikumar Ganesh <jaikumar@google.com>
Mon, 11 Jul 2011 18:59:35 +0000 (11:59 -0700)
commit10daf9729b7e159fc94a059f83aca26c199d32dd
tree7dcf87f6263acad54e48c76cd38f981041a5fbdb
parent60e564763996894c2df25df1ad50367aea46b65f
Bluetooth: Fix SM pairing parameters negotiation

Before implementing SM key distribution, the pairing features
exchange must be better negotiated, taking into account some
features of the host and connection requirements.

If we are in the "not pairable" state, it makes no sense to
exchange any key. This allows for simplification of the key
negociation method.

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