Bluetooth: Don't bother user space without IO capabilities
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 16 Jul 2014 12:09:13 +0000 (15:09 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Jul 2014 09:43:06 +0000 (11:43 +0200)
commit02f3e25457915728624b976b0382601b5605ad64
tree266106d60c4dea230f27155631434d3c80e7ab4e
parent9f743d7499bc2c4dc8c35af33bdb2a29bea663b9
Bluetooth: Don't bother user space without IO capabilities

If user space has a NoInputNoOutput IO capability it makes no sense to
bother it with confirmation requests. This patch updates both SSP and
SMP to check for the local IO capability before sending a user
confirmation request to user space.

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