Loading different modules for two identical cards

Matt Brown matt at mattb.net.nz
Wed Jul 27 21:35:58 EDT 2005


Hi, 

I have an interesting scenario where I have two identical PCMCIA cards
in a machine that are able to use either the orinoco_cs driver or the
hostap_cs driver. 99% of the time I want them both to use the orinoco_cs
driver for consistency with the rest of our network, however
occasionally I would like to be able to run *one* of the cards using the
hostap driver (so I can use Master mode) while the other continues to
use the orinoco driver. 

I could find no way to do this using 2.4 with pcmcia-cs and I'm
wondering if it's now possible in 2.6 using udev, hotplug and
pcmciautils. 

Unfortunately my gut instinct and what I've managed to pick up so far
tells me that it isn't, but I'm still hopefully that someone with more
experience than me in this area might be able to think of a way to
achieve my goal. 

I see two fundamental questions that I need a yes answer to if I am
going to be able to make this work

1) Is it possible to retrieve identifying information (MAC Address,
Serial No, etc) from a card *before* a module is loaded? Is this
information in the CIS somewhere? 

2) Is it possible to load a module and have it only bind to a single
PCMCIA socket?

If the answer to either of those questions is no, I guess I can't do
what I want, that's life, I'll work around it :) but if I can it would
be wonderful. 

Kind Regards

-- 
Matt Brown
matt at mattb.net.nz
Mob +64 275 611 544 www.mattb.net.nz






More information about the linux-pcmcia mailing list