]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix SMP confirmation callback handling
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Mar 2014 12:39:05 +0000 (14:39 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 24 Mar 2014 14:51:56 +0000 (07:51 -0700)
commit1f91e0de2dc9c9be0d752fbf78982670d3a8f412
tree09ccbd9cae272735f3549524d7673c009508a942
parente983ddb903d423c354ef452083a8e4097eb6ca78
Bluetooth: Fix SMP confirmation callback handling

In the case that a local pairing confirmation (JUST_CFM) has been
selected as the method we need to use the user confirm request mgmt
event for it with the confirm_hint set to 1 (to indicate confirmation
without any specific passkey value). Without this (if passkey_notify was
used) the pairing would never proceed. This patch adds the necessary
call to mgmt_user_confirm_request in this scenario.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c