Searched hist:"5 a364bd3" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/include/net/bluetooth/ |
H A D | l2cap.h | 5a364bd3 Wed Apr 25 18:36:12 CDT 2012 Mat Martineau <mathewm@codeaurora.org> Bluetooth: Improve ERTM sequence number offset calculation
Instead of using modular division, the offset can be calculated using only addition and subtraction. The previous calculation did not work as intended and was more difficult to understand, involving unsigned integer underflow and a check for a negative value where one was not possible.
Signed-off-by: Mat Martineau <mathewm@codeaurora.org> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo@padovan.org> 5a364bd3 Wed Apr 25 18:36:12 CDT 2012 Mat Martineau <mathewm@codeaurora.org> Bluetooth: Improve ERTM sequence number offset calculation Instead of using modular division, the offset can be calculated using only addition and subtraction. The previous calculation did not work as intended and was more difficult to understand, involving unsigned integer underflow and a check for a negative value where one was not possible. Signed-off-by: Mat Martineau <mathewm@codeaurora.org> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
|