lkml.org 
[lkml]   [2001]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] patch-2.4.1-irda2 (irlan)
Linus,

Here is a patch that fixes the problem of attaching to IrLAN
devices in Linux-2.4.1.

The problem was that the IrLAN driver forgot to memorize the
hardware address of the remote device and instead used the
broadcast address, which sometimes did work, but not always
(since doing so is actually a bug)

Have also added the dynalloc flag to irlan, since it does
allocate it's network devices dynamically.

-- Dag

diff -urpN linux-2.4.1/net/irda/irlan/irlan_client.c linux/net/irda/irlan/irlan_client.c
--- linux-2.4.1/net/irda/irlan/irlan_client.c Sun Nov 12 03:11:23 2000
+++ linux/net/irda/irlan/irlan_client.c Thu Feb 8 09:08:41 2001
@@ -120,8 +120,9 @@ void irlan_client_wakeup(struct irlan_cb
return;
}

- /* Address may have changed! */
+ /* Addresses may have changed! */
self->saddr = saddr;
+ self->daddr = daddr;

if (self->disconnect_reason == LM_USER_REQUEST) {
IRDA_DEBUG(0, __FUNCTION__ "(), still stopped by user\n");
diff -urpN linux-2.4.1/net/irda/irlan/irlan_eth.c linux/net/irda/irlan/irlan_eth.c
--- linux-2.4.1/net/irda/irlan/irlan_eth.c Sun Nov 12 03:11:23 2000
+++ linux/net/irda/irlan/irlan_eth.c Thu Feb 8 09:08:41 2001
@@ -61,6 +61,7 @@ int irlan_eth_init(struct net_device *de
dev->hard_start_xmit = irlan_eth_xmit;
dev->get_stats = irlan_eth_get_stats;
dev->set_multicast_list = irlan_eth_set_multicast_list;
+ dev->features |= NETIF_F_DYNALLOC;

ether_setup(dev);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:12    [W:0.025 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site