Bluetooth: Fix checks for changes in connection parameters

Added checks for latency and timeout changes requested in
bt_conn_le_param_update, to decide if connection parameter
update is needed.

Change-id: I9de9f566158c5ade808ed356cb90b27186aa0243
Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
This commit is contained in:
Vinayak Chettimada 2017-03-17 10:49:31 +01:00 committed by Johan Hedberg
commit f2f50d8bff

View file

@ -1580,7 +1580,9 @@ int bt_conn_le_param_update(struct bt_conn *conn,
/* Check if there's a need to update conn params */ /* Check if there's a need to update conn params */
if (conn->le.interval >= param->interval_min && if (conn->le.interval >= param->interval_min &&
conn->le.interval <= param->interval_max) { conn->le.interval <= param->interval_max &&
conn->le.latency == param->latency &&
conn->le.timeout == param->timeout) {
return -EALREADY; return -EALREADY;
} }