]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Set security level on incoming pairing request
authorIdo Yariv <ido@wizery.com>
Mon, 5 Mar 2012 18:09:38 +0000 (20:09 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 8 Mar 2012 05:26:04 +0000 (02:26 -0300)
commite4bce73114b0b11494509c4d80b8dd9282ad7a81
treed75f8452272fb189a19312ca406ee3a672d6ef0a
parent7a460b64c7f83d793bbd6c9738cb46e251d41cd9
Bluetooth: Set security level on incoming pairing request

If a master would like to raise the security level, it will send a
pairing request. While the pending security level is set on an incoming
security request (from a slave), it is not set on a pairing request. As
a result, the security level would not be raised on the slave in such
case.

Fix this by setting the pending security when receiving pairing
requests according to the requested authorization.

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