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:
parent
7ce85104b8
commit
f2f50d8bff
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue