]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Staging: batman-adv: Fixing wrap-around bug in vis
authorLinus Lüssing <linus.luessing@web.de>
Mon, 22 Mar 2010 21:46:15 +0000 (22:46 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:21:59 +0000 (11:21 -0700)
commit79ea60d729ec6a5cb16beefa4a927d9adee31656
treeff0186d5e1d8b4cbd99b54969900d71acdf2c387
parent5405f5ae04d505e067b8e932e467301cf20b41c1
Staging: batman-adv: Fixing wrap-around bug in vis

commit ea4ceb18b525fd7016c10995c0f1313a729c7e2b upstream.

When the seqno for a vis packet had a wrap around from i.e. 255 to 0,
add_packet() would falsely claim the older packet with the seqno 255 as
newer as the one with the seqno of 0 and would therefore ignore the new
packet. This happens with all following vis packets until the old vis
packet expires after 180 seconds timeout. This patch fixes this issue
and gets rid of these highly undesired 3min. breaks for the vis-server.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/vis.c