aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/batman-adv/bat_sysfs.c
diff options
context:
space:
mode:
authorLinus Lüssing <linus.luessing@web.de>2010-06-22 01:25:49 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-06-22 14:05:05 -0700
commit5a39195769febbc29a1d60d02f655ee32c252813 (patch)
treedcbdd2ed24a8f916ae2b69b8742efea107af6d93 /drivers/staging/batman-adv/bat_sysfs.c
parent8bfe3638747b2c2f842edf9eb2a407a22a9d537d (diff)
downloadmrst-s0i3-test-5a39195769febbc29a1d60d02f655ee32c252813.tar.gz
mrst-s0i3-test-5a39195769febbc29a1d60d02f655ee32c252813.tar.xz
mrst-s0i3-test-5a39195769febbc29a1d60d02f655ee32c252813.zip
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 <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>
Diffstat (limited to 'drivers/staging/batman-adv/bat_sysfs.c')
-rw-r--r--drivers/staging/batman-adv/bat_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/batman-adv/bat_sysfs.c b/drivers/staging/batman-adv/bat_sysfs.c
index b9618176a60..b8ccb7511ef 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;