aboutsummaryrefslogtreecommitdiffstats
path: root/net/irda/irlmp.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.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.c')
-rw-r--r--net/irda/irlmp.c7
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}