]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix incorrectly setting HCI_CONNECTABLE
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 9 Jul 2014 09:59:16 +0000 (12:59 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 9 Jul 2014 10:25:27 +0000 (12:25 +0200)
commit3de86b85bdd34603f4b4d29182d8be5ca5e76903
treec31692907bf7e4e97db6fa792ea13b054741e590
parentb21c546d5b0abe4eb662001702cab71b6c4b3e00
Bluetooth: Fix incorrectly setting HCI_CONNECTABLE

Since page scan might be enabled by Add Device we should not implicitly
set connectable whenever something else than Set Connectable changes it.
This patch makes sure that we don't set HCI_CONNECTABLE for these cases
if there are any entries in the white list.

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