[WAN]: Added missing netif_dormant_off() to generic HDLC
authorKrzysztof Halasa <khc@pm.waw.pl>
Fri, 21 Jul 2006 21:41:01 +0000 (14:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Jul 2006 21:41:01 +0000 (14:41 -0700)
WAN: Fixed a problem with PPP/raw HDLC/X.25 protocols not doing
netif_dormant_off() at startup.

Signed-off-by: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/hdlc_ppp.c
drivers/net/wan/hdlc_raw.c
drivers/net/wan/hdlc_raw_eth.c
drivers/net/wan/hdlc_x25.c

index b81263eaede07c0be93f732b21f60289041ec081..fbaab5bf71eb55b50ad8acc303dbad412d2776d9 100644 (file)
@@ -107,6 +107,7 @@ int hdlc_ppp_ioctl(struct net_device *dev, struct ifreq *ifr)
                dev->hard_header = NULL;
                dev->type = ARPHRD_PPP;
                dev->addr_len = 0;
+               netif_dormant_off(dev);
                return 0;
        }
 
index 9456d31cb1c148150e41ecbe1b87837f2df19672..f15aa6ba77f1ee8450fd6dabb35add9d637ef94a 100644 (file)
@@ -82,6 +82,7 @@ int hdlc_raw_ioctl(struct net_device *dev, struct ifreq *ifr)
                dev->type = ARPHRD_RAWHDLC;
                dev->flags = IFF_POINTOPOINT | IFF_NOARP;
                dev->addr_len = 0;
+               netif_dormant_off(dev);
                return 0;
        }
 
index b1285cc8fee6cf8d91d337ec30cd722dcde0c852..d1884987f94e08efbf06cc41ec68785b29a6a332 100644 (file)
@@ -100,6 +100,7 @@ int hdlc_raw_eth_ioctl(struct net_device *dev, struct ifreq *ifr)
                dev->tx_queue_len = old_qlen;
                memcpy(dev->dev_addr, "\x00\x01", 2);
                 get_random_bytes(dev->dev_addr + 2, ETH_ALEN - 2);
+               netif_dormant_off(dev);
                return 0;
        }
 
index 07e5eef1fe0f4e3b009e6fa64f1b52f5553bc3c7..a867fb411f89b90d1219e2a05801b6b6ad8a9419 100644 (file)
@@ -212,6 +212,7 @@ int hdlc_x25_ioctl(struct net_device *dev, struct ifreq *ifr)
                dev->hard_header = NULL;
                dev->type = ARPHRD_X25;
                dev->addr_len = 0;
+               netif_dormant_off(dev);
                return 0;
        }