aboutsummaryrefslogtreecommitdiffstats
path: root/net/irda/irlmp_event.c
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2008-01-22 21:27:53 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:10:54 -0500
commit91cde6f7d295a9eafea51d821f6e609288736c79 (patch)
tree8465492a91f93aad746437468510aed76e421c53 /net/irda/irlmp_event.c
parentc0e1899bdbd5e997d2256fcc23fc4e3d2bc5f811 (diff)
[IrDA]: LMP discovery timer not started by default
By default, LMP sets up a 3 seconds timer for discovery. We don't need it until discovery is set to 1. Signed-off-by: Ross Burton <ross@openedhand.com> Signed-off-by: Samuel Ortiz <samuel@sortiz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda/irlmp_event.c')
-rw-r--r--net/irda/irlmp_event.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/irda/irlmp_event.c b/net/irda/irlmp_event.c
index 1bba87e78609..150cd3f1129a 100644
--- a/net/irda/irlmp_event.c
+++ b/net/irda/irlmp_event.c
@@ -174,9 +174,7 @@ void irlmp_discovery_timer_expired(void *data)
174 /* We always cleanup the log (active & passive discovery) */ 174 /* We always cleanup the log (active & passive discovery) */
175 irlmp_do_expiry(); 175 irlmp_do_expiry();
176 176
177 /* Active discovery is conditional */ 177 irlmp_do_discovery(sysctl_discovery_slots);
178 if (sysctl_discovery)
179 irlmp_do_discovery(sysctl_discovery_slots);
180 178
181 /* Restart timer */ 179 /* Restart timer */
182 irlmp_start_discovery_timer(irlmp, sysctl_discovery_timeout * HZ); 180 irlmp_start_discovery_timer(irlmp, sysctl_discovery_timeout * HZ);