After compiling and installing the latest (3.1.15) pcmcia-cs, I found in my /var/log/messages that cardmgr couldn't load the ray_cs module:
cardmgr: executing: 'modprobe ray_cs pc_debug=0 essid=DUSART hop_dwell=128 beacon_period=256 translate=0' cardmgr: + /lib/modules/2.2.14-12/pcmcia/ray_cs.o: invalid parameter parm_pc_debug cardmgr: + /lib/modules/2.2.14-12/pcmcia/ray_cs.o: insmod /lib/modules/2.2.14-12/pcmcia/ray_cs.o failed cardmgr: + /lib/modules/2.2.14-12/pcmcia/ray_cs.o: insmod ray_cs failed cardmgr: modprobe exited with status 255
Seemed that debugging wasn't compiled in :-(
Not bothered by any knowledge of programming at all, I had a look at the code and found the following lines in pcmcia-cs-3.1.15/wireless/ray_cs.c:
#ifdef RAYLINK_DEBUG #define PCMCIA_DEBUG RAYLINK_DEBUG #endif
Done some grepping, but didn't find this defined anywhere, so no surprise it doesn't get compiled in.
I then had a look at Corey's sources (version 1.70) and found that he uses a line like this in his ray_cs.mk file:
all: $(MAKE) -C modules MODULES=ray_cs.o CFLAGS="-O2 -Wall -Wstrict-prototypes -Winline -pipe -DRAYLINK_DEBUG=0"
So I ended up changing 3.1.15/wireless/Makefile:
CPPFLAGS += $(PCDEBUG) -D__KERNEL__ -DMODULE
CPPFLAGS += $(PCDEBUG) -D__KERNEL__ -DMODULE -DRAYLINK_DEBUG=0
and all worked fine after that.