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)
commit3bd2724010a51d5d15afa8065ac3c5fab3725499
treef412966c566b4343d10b4ca921eefa2e1557443e
parent204e399003174ee8ceb7606c61daaa7f4e89e794
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