Well, I’ve finally done it. I finally got my Linksys WPC54G wireless network adapter working on Red Hat Enterprise 4 using WPA!!! Yes, I plan on creating a step-by-step instruction manual of my procedures to success after I get the following questions answered.
Question #1. I need to have the wpa_supplicant daemon start on bootup so when I insert my wireless card it will auto detect it.
I placed the following command in the rc.local file
Code:
wpa_supplicant -Bw -i wlan0 -c /etc/wpa_supplicant.conf
Now for the question: Is it “proper” to use this method for automatically starting the wpa_supplicant daemon. Keep in mind that I need to ensure that the PCMCIA and Networking daemons have already started. I know that the rc.local file is run only after everything else so I felt safe using it. I also want the daemon to run regardless of runlevel or user.
Did I do ok, or did I make a mistake doing it this way?
Question #2. If I boot my computer with the wireless card already inserted, wpa_supplicant isn’t notified that the card is there. I think it is due to the hotplug or PCMCIA service not notifying the kernel of a PCMCIA device being plugged in???
At any rate, I read to do the following to simulate the card being inserted:
Code:
rmmod ndiswrapper 2>/dev/null
cardctl status | grep "no card" > /dev/null && cardctl insert
modprobe ndiswrapper
Will this work? And where do I place this script, in the rc.local after the wpa_supplicant initialization command mentioned in question 1?