diff options
Diffstat (limited to 'net/irda/irlmp.c')
-rw-r--r-- | net/irda/irlmp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/irda/irlmp.c b/net/irda/irlmp.c index f24cb755908e..135ac6907bbf 100644 --- a/net/irda/irlmp.c +++ b/net/irda/irlmp.c | |||
@@ -103,9 +103,12 @@ int __init irlmp_init(void) | |||
103 | irlmp->last_lsap_sel = 0x0f; /* Reserved 0x00-0x0f */ | 103 | irlmp->last_lsap_sel = 0x0f; /* Reserved 0x00-0x0f */ |
104 | strcpy(sysctl_devname, "Linux"); | 104 | strcpy(sysctl_devname, "Linux"); |
105 | 105 | ||
106 | /* Do discovery every 3 seconds */ | ||
107 | init_timer(&irlmp->discovery_timer); | 106 | init_timer(&irlmp->discovery_timer); |
108 | irlmp_start_discovery_timer(irlmp, sysctl_discovery_timeout*HZ); | 107 | |
108 | /* Do discovery every 3 seconds, conditionaly */ | ||
109 | if (sysctl_discovery) | ||
110 | irlmp_start_discovery_timer(irlmp, | ||
111 | sysctl_discovery_timeout*HZ); | ||
109 | 112 | ||
110 | return 0; | 113 | return 0; |
111 | } | 114 | } |