7da22cd99c9cb25c66795f186253c0432598f60b
[openwrt-10.03/.git] / target / linux / ar7 / patches-2.6.26 / 900-temporary_cpmac_hack.diff
1 --- a/drivers/net/cpmac.c
2 +++ b/drivers/net/cpmac.c
3 @@ -936,7 +936,8 @@
4         int new_state = 0;
5  
6         spin_lock(&priv->lock);
7 -       if (priv->phy->link) {
8 +       if (1 /* priv->phy->link */) {
9 +               netif_carrier_on(dev);
10                 netif_start_queue(dev);
11                 if (priv->phy->duplex != priv->oldduplex) {
12                         new_state = 1;
13 @@ -948,11 +949,11 @@
14                         priv->oldspeed = priv->phy->speed;
15                 }
16  
17 -               if (!priv->oldlink) {
18 +               /*if (!priv->oldlink) {
19                         new_state = 1;
20 -                       priv->oldlink = 1;
21 +                       priv->oldlink = 1;*/
22                         netif_schedule(dev);
23 -               }
24 +               /*}*/
25         } else if (priv->oldlink) {
26                 netif_stop_queue(dev);
27                 new_state = 1;