[PATCH] 6pack Timer initialization
authorRalf Baechle <ralf@linux-mips.org>
Thu, 25 Aug 2005 18:38:30 +0000 (19:38 +0100)
committerJeff Garzik <jgarzik@pobox.com>
Sat, 27 Aug 2005 08:32:39 +0000 (04:32 -0400)
I dropped the timer initialization bits by accident when sending the
p-persistence fix.  This patch gets the driver to work again on halfduplex
links.

Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/hamradio/6pack.c

index f9e3be96963cde79ded8cd0b556294a6bd9987ec..b59c65b9645be21df12bb24c0fd7c2cd99799043 100644 (file)
@@ -668,6 +668,9 @@ static int sixpack_open(struct tty_struct *tty)
        netif_start_queue(dev);
 
        init_timer(&sp->tx_t);
+       sp->tx_t.function = sp_xmit_on_air;
+       sp->tx_t.data = (unsigned long) sp;
+
        init_timer(&sp->resync_t);
 
        spin_unlock_bh(&sp->lock);