patch-2.3.47 linux/drivers/net/pcmcia/wavelan_cs.c

Next file: linux/drivers/net/pcmcia/xirc2ps_cs.c
Previous file: linux/drivers/net/pcmcia/tulip_cb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/drivers/net/pcmcia/wavelan_cs.c linux/drivers/net/pcmcia/wavelan_cs.c
@@ -1001,7 +1001,7 @@
 
 		lp->reconfig_82593 = FALSE;
 		wv_82593_config (dev);
-		netif_start_queue (dev);
+		netif_wake_queue (dev);
 	}
 }
 
@@ -4360,7 +4360,7 @@
   MOD_DEC_USE_COUNT;
 
   /* If the card is still present */
-  if (test_bit(LINK_STATE_START, &dev->state))
+  if (netif_device_present(dev))
     {
       netif_stop_queue (dev);
 
@@ -4662,8 +4662,7 @@
 	if(link->state & DEV_CONFIG)
 	  {
 	    /* Accept no more transmissions */
-      	    netif_stop_queue (dev);
-	    clear_bit(LINK_STATE_START, &dev->state);
+      	    netif_device_detach(dev);
 
 	    /* Release the card */
 	    wv_pcmcia_release((u_long) link);
@@ -4700,10 +4699,8 @@
     	if(link->state & DEV_CONFIG)
 	  {
       	    if(link->open)
-	      {
-	      	netif_stop_queue (dev);
-		clear_bit(LINK_STATE_START, &dev->state);
-	      }
+	      	netif_device_detach(dev);
+
       	    CardServices(ReleaseConfiguration, link->handle);
 	  }
 	break;
@@ -4718,8 +4715,7 @@
       	    if(link->open)	/* If RESET -> True, If RESUME -> False ??? */
 	      {
 		wv_hw_reset(dev);
-		set_bit(LINK_STATE_START, &dev->state);
-		netif_start_queue (dev);
+		netif_device_attach(dev);
 	      }
 	  }
 	break;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)