Skip to content

Conversation

@kipm-ot
Copy link
Contributor

@kipm-ot kipm-ot commented Dec 6, 2019

Send connection parameter update request only if it contains the valid
range of values for connection intervals, latency and timeout.

Fixes: #21057

Signed-off-by: Kiran Paramaswaran [email protected]

@kipm-ot
Copy link
Contributor Author

kipm-ot commented Dec 6, 2019

send_conn_le_param_update() when called from conn_update_timeout(), have two options.

One taking the parameter values from GAP Peripheral Preferred Characteristics or from internal values. New check has been added inside send_conn_le_param_update() for the possible range of values so that in both cases we are safe by not sending the update to master if it contains values outside the range specified in Vol 3 part A section 4.20

@joerchan
Copy link
Contributor

joerchan commented Dec 6, 2019

CC: @rugeGerritsen @pdunaj

Copy link
Contributor

@joerchan joerchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. But we should probably use the same check that we already have :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use bt_le_conn_params_valid instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already there? Cool ! Done :)

Send connection parameter update request only if it contains the valid
range of values for connection intervals, latency and timeout.

Signed-off-by: Kiran Paramaswaran <[email protected]>
@joerchan joerchan added this to the v2.2.0 milestone Dec 6, 2019
@jhedberg jhedberg merged commit d86d37a into zephyrproject-rtos:master Dec 9, 2019
@kipm-ot kipm-ot deleted the kipm-ot-#21057 branch December 10, 2019 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BLE: No Valid Parameter check in send_conn_le_param_update()

4 participants