Bluetooth: Fix max_latency calculation comment

Change-Id: I4afcd6e206b95fe219c3483d1e273d78c1dfcb2f
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2015-06-18 12:51:07 +03:00 committed by Anas Nashif
commit 4905835bad

View file

@ -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]
* max_latency = ((timeout * 4)/(max * 1.25 * 2)) - 1;
* max_latency = ((timeout * 10)/(max * 1.25 * 2)) - 1;
*/
max_latency = (timeout * 4 / max) - 1;
if (latency > 499 || latency > max_latency) {