patch-2.3.29 linux/drivers/net/irda/w83977af_ir.c
Next file: linux/drivers/net/pcmcia/3c575_cb.c
Previous file: linux/drivers/net/irda/toshoboe.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Sun Nov 21 11:13:56 1999
- Orig file:
v2.3.28/linux/drivers/net/irda/w83977af_ir.c
- Orig date:
Sun Nov 7 16:37:34 1999
diff -u --recursive --new-file v2.3.28/linux/drivers/net/irda/w83977af_ir.c linux/drivers/net/irda/w83977af_ir.c
@@ -6,7 +6,7 @@
* Status: Experimental.
* Author: Paul VanderSpek
* Created at: Wed Nov 4 11:46:16 1998
- * Modified at: Sat Oct 30 16:24:32 1999
+ * Modified at: Mon Nov 8 10:05:48 1999
* Modified by: Dag Brattli <dagb@cs.uit.no>
*
* Copyright (c) 1998-1999 Dag Brattli <dagb@cs.uit.no>
@@ -508,7 +508,7 @@
/* Check if we need to change the speed */
if ((speed = irda_get_speed(skb)) != self->io.speed)
- w83977af_change_speed(self, speed);
+ self->new_speed = speed;
/* Save current set */
set = inb(iobase+SSR);
@@ -697,6 +697,12 @@
outb(AUDR_UNDR, iobase+AUDR);
} else
self->stats.tx_packets++;
+
+
+ if (self->new_speed) {
+ w83977af_change_speed(self, self->new_speed);
+ self->new_speed = 0;
+ }
/* Unlock tx_buff and request another frame */
self->netdev->tbusy = 0; /* Unlock */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)