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.
Is your router or access point a dhcp server? If not you need to supply the IP address/netmask, the gateway address, and the nameserver addresses yourself.
Before that you need to determine what type of authentication that the router uses. You can use as root: iwlist wlan0 scan
to scan for wireless networks. The wireless device needs to associate with the AP before dhcp can be used. Even if your dhcp client is configured correctly, the authentication phase with the AP must be performed first.
iwconfig is a part of wireless tools. You want both a firewall and wpa_supplicant as well.
One of the wireless-tools programs is iwlist. You can use this program to test whether your wireless device is working. As root, "iwlist wlan0 scan" will scan for Access Points.
I'm sure that slackware has an administration manual which covers setting up a wireless network.
The sample wpa_supplicant.conf in /usr/share/doc/packages/wpa_supplicant/ has a number of sample configurations. One of them may be what you want.
A program that wpa_supplicant supplies is called "wpa_cli". You call it like: wpa_cli -p /path/to/wpa_supplicant.conf -i wlan0.
There are three things that need to be working before you will get on the internet.
The wireless device needs to be working
Authentication needs to be configured
The dhcp client needs to set up your IP values
First verify that the wireless device is working. Second, configure wpa_supplicant.
Third, make sure that the dhcp client is running. There are three dhcp clients that you might be using. If you use "ps -u root" you might see which one you are using.
Also, consider restarting the network and noting whether you get dhcp error messages.
While I don't think that firewalling is the cause of your dilemma, I would like to remind everyone that with linux, you don't really need a separate `firewall' program. Firewalling capability is built-in to most vendor-kernels. Also, there are probably at least minimal iptables scripts that run at startup.
I dont think that i got an issue with connecting. I think that driver or ndis wrapper doesn't work at all like it should.
In wpa_supplicant i made a configuration. However it scans SSIDs too and it can see my network. Now the problem seems to be that my card only receives data RX but it cannot transmit. Now why does that happen. in iwconfig SIGNAL is always 0/100. This did not change when i moved around my antenna to get a better signal.
In windows wifi works with no problem. Quality 20% Signal 66%
Note the values in the fourth column. This tell you how you need to configure wpa_supplicant.
As I stated earlier, your wireless device needs to be associated with the Access Point before DHCP will work. So dhclient failing is normal at this point, but the error message you saw doesn't seem right. After loading the windows driver, did you remember to also run "ndiswrapper -m" and then "depmod -a"? Throwing in "ldconfig" can never hurt either. The "ndiswrapper -m" step configures a module alias for the ndiswrapper device. The "depmod -a" step was probably done in the "make install" step, but you can repeat it again without harm. These may help the system detect your wireless device when you boot up. I don't think that "ldconfig" is needed in this case. It is used when you install a new library path.
Backing up a bit, I would recommend that you check out the ndiswrapper wiki. Look up your wireless device if it is listed, and make sure that you use the Windows driver that is recommended. Sometimes the driver from the cdrom install disk doesn't work with ndiswrapper. If your device is listed, there will probably be a URL linking to the driver file that you need to download. If the device doesn't seem to be working, this may resolve that problem.
Also double check that "lsmod | grep ndiswrapper" shows that the ndiswrapper kernel module is loaded.
Also be sure to read the files in /usr/share/doc/packages/ndiswrapper and /usr/share/doc/packages/wireless-tools and /usr/share/doc/packages/wpa_supplicant. They will probably point out a number of things that I have forgotten to mention.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.