diff options
Diffstat (limited to 'drivers/net/wan/hdlc_cisco.c')
| -rw-r--r-- | drivers/net/wan/hdlc_cisco.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wan/hdlc_cisco.c b/drivers/net/wan/hdlc_cisco.c index a01efa6d5c6..1fd04662c4f 100644 --- a/drivers/net/wan/hdlc_cisco.c +++ b/drivers/net/wan/hdlc_cisco.c | |||
| @@ -192,7 +192,9 @@ static int cisco_rx(struct sk_buff *skb) | |||
| 192 | "uptime %ud%uh%um%us)\n", | 192 | "uptime %ud%uh%um%us)\n", |
| 193 | dev->name, days, hrs, | 193 | dev->name, days, hrs, |
| 194 | min, sec); | 194 | min, sec); |
| 195 | #if 0 | ||
| 195 | netif_carrier_on(dev); | 196 | netif_carrier_on(dev); |
| 197 | #endif | ||
| 196 | hdlc->state.cisco.up = 1; | 198 | hdlc->state.cisco.up = 1; |
| 197 | } | 199 | } |
| 198 | } | 200 | } |
| @@ -225,7 +227,9 @@ static void cisco_timer(unsigned long arg) | |||
| 225 | hdlc->state.cisco.settings.timeout * HZ)) { | 227 | hdlc->state.cisco.settings.timeout * HZ)) { |
| 226 | hdlc->state.cisco.up = 0; | 228 | hdlc->state.cisco.up = 0; |
| 227 | printk(KERN_INFO "%s: Link down\n", dev->name); | 229 | printk(KERN_INFO "%s: Link down\n", dev->name); |
| 230 | #if 0 | ||
| 228 | netif_carrier_off(dev); | 231 | netif_carrier_off(dev); |
| 232 | #endif | ||
| 229 | } | 233 | } |
| 230 | 234 | ||
| 231 | cisco_keepalive_send(dev, CISCO_KEEPALIVE_REQ, | 235 | cisco_keepalive_send(dev, CISCO_KEEPALIVE_REQ, |
| @@ -261,8 +265,10 @@ static void cisco_stop(struct net_device *dev) | |||
| 261 | { | 265 | { |
| 262 | hdlc_device *hdlc = dev_to_hdlc(dev); | 266 | hdlc_device *hdlc = dev_to_hdlc(dev); |
| 263 | del_timer_sync(&hdlc->state.cisco.timer); | 267 | del_timer_sync(&hdlc->state.cisco.timer); |
| 268 | #if 0 | ||
| 264 | if (netif_carrier_ok(dev)) | 269 | if (netif_carrier_ok(dev)) |
| 265 | netif_carrier_off(dev); | 270 | netif_carrier_off(dev); |
| 271 | #endif | ||
| 266 | hdlc->state.cisco.up = 0; | 272 | hdlc->state.cisco.up = 0; |
| 267 | hdlc->state.cisco.request_sent = 0; | 273 | hdlc->state.cisco.request_sent = 0; |
| 268 | } | 274 | } |
