]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix incorrectly disabling page scan when toggling connectable
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 28 Jul 2014 17:53:58 +0000 (20:53 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 28 Jul 2014 18:13:32 +0000 (20:13 +0200)
commit670f197ec67992d121db3c2b923a09bbc6053f66
treef412966c566b4343d10b4ca921eefa2e1557443e
parent2b6b63591d4c3b2ef1c2c32d7963aff5a485d141
Bluetooth: Fix incorrectly disabling page scan when toggling connectable

If we have entries in the whitelist we shouldn't disable page scanning
when disabling connectable mode. This patch adds the necessary check to
the Set Connectable command handler.

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