[Thread Prev][Thread Next][Thread Index]

arlan-patch



Hi

In order to use my Arlan655-card, I had to patch the arlan-driver
in 2.2.7-ac1 (other 2.2.x-kernels seem to have the same problem, but
I didn't test them).

I don't know if the error-message is misleading, but if it's only
a problem to set these parameters on multiple cards, then the test
was incomplete.

I'm not shure if this is the right fix. It works for me... :)

Bye
 dworz


diff -u --new-file --recursive linux/drivers/net/arlan.c linux.new/drivers/net/arlan.c
--- linux/drivers/net/arlan.c	Mon May  3 17:37:56 1999
+++ linux.new/drivers/net/arlan.c	Tue Jun  8 14:35:26 1999
@@ -2013,15 +2013,15 @@
 
 	ARLAN_DEBUG_ENTRY("init_module");
 
-	if (channelSet != channelSetUNKNOWN || channelNumber != channelNumberUNKNOWN || systemId != systemIdUNKNOWN)
-	{
-		printk(KERN_WARNING "arlan: wrong module params for multiple devices\n ");
-		return -1;
-	}
 	numDevices = arlan_find_devices();
 	if (numDevices == 0)
 	{
 		printk(KERN_ERR "arlan: no devices found \n");
+		return -1;
+	}
+	if ((numDevices>1) && (channelSet != channelSetUNKNOWN || channelNumber != channelNumberUNKNOWN || systemId != systemIdUNKNOWN))
+	{
+		printk(KERN_WARNING "arlan: wrong module params for multiple devices\n ");
 		return -1;
 	}

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu