Bluetooth: Enable page scan also if there are white list entries
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 9 Jul 2014 09:59:18 +0000 (12:59 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 9 Jul 2014 10:25:27 +0000 (12:25 +0200)
commit6cebb9e73a88a4ffea586a2bf2873c0901f4e912
tree50824132687a3c7e0224b0c8ac32f849058283db
parent70c464256310e1c3716099b9d02ece4169272f73
Bluetooth: Enable page scan also if there are white list entries

Page scan should be enabled either if the connectable setting is set or
if there are any entries in the BR/EDR white list. This patch implements
such behavior by updating the two places that were making decisions on
whether to enable page scan or not.

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