Bluetooth: Create unified helper function for updating page scan
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 1 Aug 2014 08:13:31 +0000 (11:13 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2014 06:49:09 +0000 (08:49 +0200)
commit432df05eb1e57adfc46df08abbedca6c3b8862f7
tree6276d323291420ffc274f64c7f2ab13987b8c79d
parent84c61d92bb6e9048eecc0738a83f1bf66f053026
Bluetooth: Create unified helper function for updating page scan

Similar to our hci_update_background_scan() function we can simplify a
lot of code by creating a unified helper function for doing page scan
updates. This patch adds such a function to hci_core.c and updates all
the relevant places to use it.

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