Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm using Fedora Core 4, after playing hours and hours with the Kernels, ndiswrapper and wpa_supplicant, I can make my DWL-G510 up and running. However I always need to login as root to start the wpa_supplicant to connect to the router. How do I automate this?
I see the script of wpa_supplicant is added to rc.wireless, but it turns out that dhcpd won't get an IP for my wireless adapter after being loaded during startup.
I need to issue command (dhcpcd wlan0) manually before surfing.
There's a config file, which I can't think of off the top of my head, that specifies dhcp on boot. If the authentication process is getting in the way of the I/F picking up an IP, you can probably fix it by putting the dhcp request in rc.local.
Sometimes wpa_supplicant is not loaded at startup and I have run wpa_supplicant together with dhcpcd wlan0, therefore I have to do it manually, which is boring and dull.
You can put both the wpa_supplicant call and the dhcp request in rc.local. You can even put a wait in between the two commands to give the supplicant time to authenticate, if you need to.
First, you'd need to find out where wpa_supplicant is run now and comment out that line.
Let's say it's in /etc/rc.d/rc.inet1 (Just an example - I have no idea where it is.) Edit that file and put a # in front of the line with wpa_supplicant.
Then, edit rc.local to include something like:
/sbin wpa_supplicant (plus whatever options you need for your setup)
sleep 5
/sbin/dhcpcd wlan0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.