patch-2.4.27 linux-2.4.27/drivers/net/hamradio/6pack.c

Next file: linux-2.4.27/drivers/net/ibmveth.c
Previous file: linux-2.4.27/drivers/net/fealnx.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/drivers/net/hamradio/6pack.c linux-2.4.27/drivers/net/hamradio/6pack.c
@@ -6,6 +6,9 @@
  * Version:	@(#)6pack.c	0.3.0	04/07/98
  *
  * Authors:	Andreas Könsgen <ajk@iehk.rwth-aachen.de>
+ * Changes for SuSE Kernel 2.4.21-99 (stolen from 2.6.0-test8)
+ * to avoid the "resyncing TNC" messages: 
+ *		Tim Fischer <tim.fischer@onlinehome.de>
  *
  * Quite a lot of stuff "stolen" by Jörg Reuter from slip.c, written by
  *
@@ -67,11 +70,11 @@
 #define SIXP_DAMA_OFF		0
 
 /* default level 2 parameters */
-#define SIXP_TXDELAY			25	/* in 10 ms */
+#define SIXP_TXDELAY			(HZ/4)	/* in 1 s */
 #define SIXP_PERSIST			50	/* in 256ths */
-#define SIXP_SLOTTIME			10	/* in 10 ms */
-#define SIXP_INIT_RESYNC_TIMEOUT	150	/* in 10 ms */
-#define SIXP_RESYNC_TIMEOUT		500	/* in 10 ms */
+#define SIXP_SLOTTIME			(HZ/10)	/* in 1 s */
+#define SIXP_INIT_RESYNC_TIMEOUT	(3*HZ/2) /* in 1 s */
+#define SIXP_RESYNC_TIMEOUT		5*HZ	/* in 1 s */
 
 /* 6pack configuration. */
 #define SIXP_NRUNIT			31      /* MAX number of 6pack channels */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)