Staging: batman-adv: Fixes rounding issues in vis.c
authorLinus Lüssing <linus.luessing@web.de>
Sat, 2 Jan 2010 10:30:42 +0000 (11:30 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:35 +0000 (16:42 -0800)
commit9bbf1ecdb36e2395eecbf04229eaaedce3589db5
tree583e89573a8d43a323c1e2f86c4c8094e4197a03
parentcec4a69cfc2bc780b4107193cb9bd621b67ab2b6
Staging: batman-adv: Fixes rounding issues in vis.c

This patches fixes two rounding issues in vis.c for sending and
purging vis packets. Before, the timers and timeouts always got
rounded down to seconds, though we want a precision in
milliseconds.

This also fixes a kernel panic that occures when lowering the
timer for sending vis packets (vis_interval) to less than 1000ms
in main.c manually.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Acked-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/vis.c