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)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:10:30 +0000 (12:10 -0800)
commit17acc4e0d065d6236cc4eacb542cf9e25bbe43c7
tree9079fa1f910b0ec25691cca24dca31a2d857b4ac
parent8c9dfe847661305799761e4a18624b575493a1e3
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