]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Verify a pin code in pin_code_reply
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Wed, 1 Jun 2011 15:28:48 +0000 (17:28 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 8 Jun 2011 19:58:19 +0000 (16:58 -0300)
commit086edfbd4b2a7cb15f73943370d3cb9e6ddfb42e
tree3f4f236d0443705ed0e7180e4d188ca9300d96d4
parenta8d57915539c4ca83e14e5db4c991845500bec62
Bluetooth: Verify a pin code in pin_code_reply

As we cannot relay on a userspace mgmt api implementation we should verify
if pin_code_reply in fact contains the secure pin code.

If userspace replied with unsecure pincode when secure was required we will
send pin_code_neg_reply to the controller.

Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/mgmt.c