patch-2.3.47 linux/net/irda/irlan/irlan_common.c
Next file: linux/net/netrom/nr_dev.c
Previous file: linux/net/irda/irlan/irlan_client.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Thu Feb 17 09:18:47 2000
- Orig file:
v2.3.46/linux/net/irda/irlan/irlan_common.c
- Orig date:
Sun Feb 13 19:29:04 2000
diff -u --recursive --new-file v2.3.46/linux/net/irda/irlan/irlan_common.c linux/net/irda/irlan/irlan_common.c
@@ -120,7 +120,7 @@
ASSERT(self->magic == IRLAN_MAGIC, return;);
/* Check if device still configured */
- if (test_bit(LINK_STATE_START, &self->dev.state)) {
+ if (netif_running(&self->dev)) {
IRDA_DEBUG(0, __FUNCTION__
"(), notifying irmanager to stop irlan!\n");
mgr_event.event = EVENT_IRLAN_STOP;
@@ -363,7 +363,7 @@
ASSERT(self->magic == IRLAN_MAGIC, return;);
/* Check if device is still configured */
- if (test_bit(LINK_STATE_START, &self->dev.state)) {
+ if (netif_running(&self->dev)) {
IRDA_DEBUG(0, __FUNCTION__
"(), Device still configured, closing later!\n");
@@ -1195,7 +1195,7 @@
buf+len);
len += sprintf(buf+len, "tx busy: %s\n",
- test_bit(LINK_STATE_XOFF, &self->dev.state) ? "TRUE" : "FALSE");
+ netif_queue_stopped(&self->dev) ? "TRUE" : "FALSE");
len += sprintf(buf+len, "\n");
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)