patch: prism2 does not bind a device at module load

Ulrich Abend <[email protected]> Fri, 2 May 2003 08:58:03 +0200
Newsgroups gmane.linux.pcmcia.devel
Message-ID <[email protected]>
Hi everybody,

I patched cardmgr.c in order to deal with (probably broken) prism2 
implementation from linux-wlan-ng, maybe this may be of interest for you, if 
not, please ignore this mail.

if prism2 loads with my Compaq WL100, the class script is not executed, 
because the prism driver does not (completely?) bind a device. The driver 
binds the device by using a user-space utility called from wlan-cfg (the 
class script).
I found a way for "Autoplay-on-insert" by patching your code, and though I 
know its not your fault, it works for me. I patched cardmgr.c (version 3.2.4) 
by calling the script in this case with the dummy param "none" - the normal 
behavior is not to call any script.

I am not on this list, please CC to my private mail on possible replys.

Thanks for the great pcmcia support :-)

Uli Abend.

----------- snipp
--- /tmp/cardmgr.c	2003-05-01 21:31:58.000000000 +0200
+++ cardmgr.c	2003-05-01 21:33:23.000000000 +0200
@@ -714,6 +714,9 @@
 		unsetenv("MINOR");
 	    }
 	    ret |= execute_on_dev(cmd, class, bind->name);
+	} else {
+	    syslog(LOG_INFO, "WARNING: no associated device, using >none<");
+	    ret |= execute_on_dev(cmd, class, "none");
 	}
     return ret;
 }
----------- snipp



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf