Skip to contentSkip to conversation

patch-2.4.1-irda2 (irlan)

PATCH New Dag Brattli 1 participant 1 message Feb 8, 2001 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

net/irda/irlan/irlan_client.c +2 -1
diff -urpN linux-2.4.1/net/irda/irlan/irlan_client.c linux/net/irda/irlan/irlan_client.c
@@ -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");
net/irda/irlan/irlan_eth.c +1 -0
diff -urpN linux-2.4.1/net/irda/irlan/irlan_eth.c linux/net/irda/irlan/irlan_eth.c
@@ -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 [email protected]
Please read the FAQ at http://www.tux.org/lkml/