Bluetooth: Use hci_conn_params_add within hci_conn_params_set
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 1 Jul 2014 10:11:05 +0000 (12:11 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:53 +0000 (17:42 +0200)
commit8c87aae1fa2ffa89e5e840b8e928fa0eb5c13157
tree574a88fd2d33d6468af99c9815acd2122ab76175
parent51d167c0972ef1496f2e6ab08aab602644d1f9bb
Bluetooth: Use hci_conn_params_add within hci_conn_params_set

The hci_conn_params_add function provides the default allocation of
connection parameters. To avoid code duplication, use that code from
hci_conn_params_set to allocate or lookup parameter struct.

As a benefit the connection latency and supervision timeout parameters
are no longer reset to default when calling hci_conn_params_set.

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