PCMCIA multiple driver selection interface
I'm trying to setup a user interface that will allow for driver selection for PCMCIA devices. The idea is that when a user inserts a PCMCIA card, a window will popup asking the user to choose from a list of available drivers. Then the selected driver is loaded and configured in the normal manner.
The reason I want to do this is for performing wireless assessments. It's very inconvenient to carry around multiple copies /etc/pcmcia/config files and restart pcmcia services (which isn't always feasible, if another card is in use!) when I need to switch from HostAP to Airjack driver.
My first thought was to have a simple shell script execute by adding a new qualifier to the 'class' sections of the config file. This solution, however, would require a hack of pcmcia, and a re-hack for every new release. My other thought was to write a kernel module that does the same functions as pcmcia but with the ability to execute a selection script. Both of these solutions will work but neither of them appear to be optimal.
I know there's an elegant solution to this problem and since I'm new to the linux PCMCIA manifold I figured I throw this out there and see if anyone has done something similar or is more knowledgeable about linux pcmcia.
Any suggestions as to how to go about doing this would be greatly appreciated!
-TF
|