Bluetooth: Update background scanning from hci_conn_params_clear
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 29 Jun 2014 11:41:51 +0000 (13:41 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:49 +0000 (17:42 +0200)
commit1c1697c0cad41fa468e3cb6061ce74debb4f3733
tree88cd343359952437a313d3077d6effe7e30142cb
parent1089b67d8eb7fcdfae837a91aae9af94e329361c
Bluetooth: Update background scanning from hci_conn_params_clear

When calling hci_conn_params_clear function, it should update the
background scanning properly and not require a separate call to
update it.

For the case when the function is used during unregister of a
controller, an extra safe guard is but in place.

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