Bluetooth: Fix max_latency calculation comment
Change-Id: I4afcd6e206b95fe219c3483d1e273d78c1dfcb2f Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
ac98b4e221
commit
4905835bad
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ static uint16_t le_validate_conn_params(uint16_t min, uint16_t max, uint16_t lat
|
||||||
}
|
}
|
||||||
|
|
||||||
/* calculation based on BT spec 4.2 [Vol3, PartA, 4.20]
|
/* calculation based on BT spec 4.2 [Vol3, PartA, 4.20]
|
||||||
* max_latency = ((timeout * 4)/(max * 1.25 * 2)) - 1;
|
* max_latency = ((timeout * 10)/(max * 1.25 * 2)) - 1;
|
||||||
*/
|
*/
|
||||||
max_latency = (timeout * 4 / max) - 1;
|
max_latency = (timeout * 4 / max) - 1;
|
||||||
if (latency > 499 || latency > max_latency) {
|
if (latency > 499 || latency > max_latency) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue