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)
committerJaikumar Ganesh <jaikumar@google.com>
Mon, 11 Jul 2011 18:59:17 +0000 (11:59 -0700)
commit9f449e005059cd645b6ebbb44bd51bc4a60e7d73
tree3af0becc79e09f4158f6524212a677b57a5bdebb
parent6fbf3ee003973295e7dfa02628e74d902b1186f3
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