summaryrefslogtreecommitdiff
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-07-02 18:37:32 +0400
committerMarcel Holtmann <marcel@holtmann.org>2014-07-03 19:42:57 +0400
commitf4869e2adb7ab9d09a9335b4e26a63ec413f2c6f (patch)
tree09119d31448dcec80ca3e44c1ae39a521f57d8c9 /net/bluetooth/mgmt.c
parent7d6ca6939cb2f701204317cbab15af1b98f7f501 (diff)
downloadlinux-f4869e2adb7ab9d09a9335b4e26a63ec413f2c6f.tar.xz
Bluetooth: Pass store hint to mgmt_new_conn_param
The calling functions of mgmt_new_conn_param have more information about the parameters, such as whether the kernel is tracking them or not. It makes therefore sense to have them pass an initial store_hint value to the mgmt_new_conn_param function. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 59bf1ac41429..fb1aa0cac137 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -5790,15 +5790,15 @@ void mgmt_new_csrk(struct hci_dev *hdev, struct smp_csrk *csrk,
}
void mgmt_new_conn_param(struct hci_dev *hdev, bdaddr_t *bdaddr,
- u8 bdaddr_type, u16 min_interval, u16 max_interval,
- u16 latency, u16 timeout)
+ u8 bdaddr_type, u8 store_hint, u16 min_interval,
+ u16 max_interval, u16 latency, u16 timeout)
{
struct mgmt_ev_new_conn_param ev;
memset(&ev, 0, sizeof(ev));
bacpy(&ev.addr.bdaddr, bdaddr);
ev.addr.type = link_to_bdaddr(LE_LINK, bdaddr_type);
- ev.store_hint = 0x00;
+ ev.store_hint = store_hint;
ev.min_interval = cpu_to_le16(min_interval);
ev.max_interval = cpu_to_le16(max_interval);
ev.latency = cpu_to_le16(latency);