aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_core.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-07-02 17:37:32 +0300
committerMarcel Holtmann <marcel@holtmann.org>2014-07-03 17:42:57 +0200
commitf4869e2adb7ab9d09a9335b4e26a63ec413f2c6f (patch)
tree09119d31448dcec80ca3e44c1ae39a521f57d8c9 /net/bluetooth/l2cap_core.c
parentBluetooth: Make hci_le_conn_update return the store hint (diff)
downloadlinux-dev-f4869e2adb7ab9d09a9335b4e26a63ec413f2c6f.tar.xz
linux-dev-f4869e2adb7ab9d09a9335b4e26a63ec413f2c6f.zip
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/l2cap_core.c')
-rw-r--r--net/bluetooth/l2cap_core.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index a6e276204ae9..dbef22d644e2 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -5250,10 +5250,14 @@ static inline int l2cap_conn_param_update_req(struct l2cap_conn *conn,
sizeof(rsp), &rsp);
if (!err) {
+ u8 store_hint;
+
+ store_hint = hci_le_conn_update(hcon, min, max, latency,
+ to_multiplier);
mgmt_new_conn_param(hcon->hdev, &hcon->dst, hcon->dst_type,
- min, max, latency, to_multiplier);
+ store_hint, min, max, latency,
+ to_multiplier);
- hci_le_conn_update(hcon, min, max, latency, to_multiplier);
}
return 0;