Bluetooth: Fix SM pairing parameters negotiation
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Thu, 7 Jul 2011 21:59:38 +0000 (18:59 -0300)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:18:54 +0000 (12:18 -0800)
commit68a5cb8fa9a6761e101a3ca7eac221a838ab6b31
tree000b36b73e30b33b16bcf80b0f4c9650c8683aa5
parent3e40e397b07fa150b75c8ed6fb4959111ed17e8c
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