patch-2.2.15 linux/drivers/net/comx-proto-ppp.c

Next file: linux/drivers/net/comx.c
Previous file: linux/drivers/net/comx-hw-mixcom.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/drivers/net/comx-proto-ppp.c linux/drivers/net/comx-proto-ppp.c
@@ -25,10 +25,13 @@
  *
  * Version 0.22 (99/08/05):
  *		- don't test IFF_RUNNING but the pp_link_state of the sppp
+ * 
+ * Version 0.23 (99/12/02):
+ *		- tbusy fixes
  *
  */
 
-#define VERSION "0.22"
+#define VERSION "0.23"
 
 #include <linux/config.h>
 #include <linux/module.h>
@@ -74,8 +77,12 @@
 
 static int syncppp_tx(struct device *dev) 
 {
-	clear_bit(0, &dev->tbusy);
-	mark_bh(NET_BH);
+	struct comx_channel *ch=dev->priv;
+	
+	if(ch->line_status & LINE_UP) {
+		clear_bit(0, &dev->tbusy);
+		mark_bh(NET_BH);
+	}
 	return 0;
 }
 
@@ -87,6 +94,7 @@
 		sppp_open(dev);
 	} else 	{
 		/* Line went down */
+		dev->tbusy = 1;
 		sppp_close(dev);
 	}
 	comx_status(dev, status);

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