Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8757825b authored by Seungyoun Ju's avatar Seungyoun Ju Committed by Marcel Holtmann
Browse files

Bluetooth: hci_check_conn_params() check proper range



Slave latency range has been changed in Core Spec. 4.2 by Erratum 5419
of ESR08_V1.0.0. And it should be applied to Core Spec. 4.0 and 4.1.

Before:
   connSlaveLatency <= ((connSupervisionTimeout / connIntervalMax) - 1)

After:
   connSlaveLatency <= ((connSupervisionTimeout / (connIntervalMax*2)) - 1)

This patch makes hci_check_conn_params() check the allowable slave
latency range using the changed way.

Signed-off-by: default avatarSeungyoun Ju <sy39.ju@samsung.com>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent fc586c41
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment