]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
commit96d97a673d42408c0f960cc54d44be7629343bce
tree3f4f236d0443705ed0e7180e4d188ca9300d96d4
parent24718ca5eeb6d36a4a78deb34a2d50e4017bbd4a
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