|
@@ -192,7 +192,9 @@ static int cisco_rx(struct sk_buff *skb)
|
|
"uptime %ud%uh%um%us)\n",
|
|
"uptime %ud%uh%um%us)\n",
|
|
dev->name, days, hrs,
|
|
dev->name, days, hrs,
|
|
min, sec);
|
|
min, sec);
|
|
|
|
+#if 0
|
|
netif_carrier_on(dev);
|
|
netif_carrier_on(dev);
|
|
|
|
+#endif
|
|
hdlc->state.cisco.up = 1;
|
|
hdlc->state.cisco.up = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -225,7 +227,9 @@ static void cisco_timer(unsigned long arg)
|
|
hdlc->state.cisco.settings.timeout * HZ)) {
|
|
hdlc->state.cisco.settings.timeout * HZ)) {
|
|
hdlc->state.cisco.up = 0;
|
|
hdlc->state.cisco.up = 0;
|
|
printk(KERN_INFO "%s: Link down\n", dev->name);
|
|
printk(KERN_INFO "%s: Link down\n", dev->name);
|
|
|
|
+#if 0
|
|
netif_carrier_off(dev);
|
|
netif_carrier_off(dev);
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
cisco_keepalive_send(dev, CISCO_KEEPALIVE_REQ,
|
|
cisco_keepalive_send(dev, CISCO_KEEPALIVE_REQ,
|
|
@@ -261,8 +265,10 @@ static void cisco_stop(struct net_device *dev)
|
|
{
|
|
{
|
|
hdlc_device *hdlc = dev_to_hdlc(dev);
|
|
hdlc_device *hdlc = dev_to_hdlc(dev);
|
|
del_timer_sync(&hdlc->state.cisco.timer);
|
|
del_timer_sync(&hdlc->state.cisco.timer);
|
|
|
|
+#if 0
|
|
if (netif_carrier_ok(dev))
|
|
if (netif_carrier_ok(dev))
|
|
netif_carrier_off(dev);
|
|
netif_carrier_off(dev);
|
|
|
|
+#endif
|
|
hdlc->state.cisco.up = 0;
|
|
hdlc->state.cisco.up = 0;
|
|
hdlc->state.cisco.request_sent = 0;
|
|
hdlc->state.cisco.request_sent = 0;
|
|
}
|
|
}
|