From: Linus Lüssing Date: Mon, 21 Jun 2010 23:25:49 +0000 (+0200) Subject: Staging: batman-adv: permit setting ogm interval to JITTER*2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5a39195769febbc29a1d60d02f655ee32c252813;p=linux-beck.git Staging: 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üssing Signed-off-by: Simon Wunderlich Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/batman-adv/bat_sysfs.c b/drivers/staging/batman-adv/bat_sysfs.c index b9618176a605..b8ccb7511ef5 100644 --- a/drivers/staging/batman-adv/bat_sysfs.c +++ b/drivers/staging/batman-adv/bat_sysfs.c @@ -163,7 +163,7 @@ static ssize_t store_orig_interval(struct kobject *kobj, struct attribute *attr, 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;