]> 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)
commitd45e52dbfb5f97a719f80de6e1af237cbfc90c70
treec31692907bf7e4e97db6fa792ea13b054741e590
parent766e217b232caac28f09c88ae1dcef3f364e3189
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