[WAN]: converting generic HDLC to use netif_dormant*()
This patch converts generic HDLC (and WAN drivers using it) from hdlc_set_carrier() to netif_dormant*() interface. WAN hardware drivers should now use netif_carrier_on|off() like other network drivers. Signed-off-by: Krzysztof Halasa <khc@pm.waw.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
b47b2ec198
commit
c2ce920468
@@ -149,7 +149,10 @@ static inline void wanxl_cable_intr(port_t *port)
|
||||
printk(KERN_INFO "%s: %s%s module, %s cable%s%s\n",
|
||||
port->dev->name, pm, dte, cable, dsr, dcd);
|
||||
|
||||
hdlc_set_carrier(value & STATUS_CABLE_DCD, port->dev);
|
||||
if (value & STATUS_CABLE_DCD)
|
||||
netif_carrier_on(port->dev);
|
||||
else
|
||||
netif_carrier_off(port->dev);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user