]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: batman-adv: permit setting ogm interval to JITTER*2
authorLinus Lüssing <linus.luessing@web.de>
Mon, 21 Jun 2010 23:25:49 +0000 (01:25 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 22 Jun 2010 21:05:05 +0000 (14:05 -0700)
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 <linus.luessing@web.de>
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/bat_sysfs.c

index b9618176a605a30286137fc4908590cef649c9c9..b8ccb7511ef5e1cdf1889c32ca905e8c6bffe62e 100644 (file)
@@ -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;