Author: simon Date: 2010-06-18 22:04:25 +0200 (Fri, 18 Jun 2010) New Revision: 1701
Modified: trunk/batman-adv-kernelland/bat_sysfs.c Log: batman-adv: permit setting ogm interval to JITTER*2
When trying to set the originator interval to 40ms, we are asked to set it to a minimum value of 40ms. This patch permits setting an originator interval of JITTER*2 (40ms by default) now.
Signed-off-by: Linus L?\195?\188ssing linus.luessing@web.de Signed-off-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de
Modified: trunk/batman-adv-kernelland/bat_sysfs.c =================================================================== --- trunk/batman-adv-kernelland/bat_sysfs.c 2010-06-18 20:03:15 UTC (rev 1700) +++ trunk/batman-adv-kernelland/bat_sysfs.c 2010-06-18 20:04:25 UTC (rev 1701) @@ -259,7 +259,7 @@ return -EINVAL; }
- if (orig_interval_tmp <= JITTER * 2) { + if (orig_interval_tmp < JITTER * 2) { printk(KERN_INFO "batman-adv:New originator interval too small: %li (min: %i)\n", orig_interval_tmp, JITTER * 2); return -EINVAL;