]> rtime.felk.cvut.cz Git - can-utils.git/commit
canbusload: Fix worst-case frame length estimation
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 30 Jan 2014 13:38:59 +0000 (14:38 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 30 Jan 2014 15:23:32 +0000 (16:23 +0100)
commitd6b576c012afaf0fc7faf27da05f165aacc6cd40
tree26cc4c3f7cec3109a3bc61cb8070996b6123dbfb
parent2206f92de7fd6239af1ed4d8f2bab0a6f7280f61
canbusload: Fix worst-case frame length estimation

The Tindell's method used previously is incorrect. It does not account for
the fact that the stuffed bits are themselves also subject to bit stuffing.

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
canframelen.c
canframelen.h