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)
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

Simple merge