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 am desperately trying to configure my debian (testing/unstable) pc for wlan access to a linksys wrt54g router via a netgear wg111v2 usb stick.
the router is configured properly, i have already two pcs online.
ndiswrapper is installed and configured, the driver added, no errors there.
the automatic usb detection works fine, no problem there. but i'm miserably failing to configure the wlan interface with iwconfig (wireless tools installed) - i just get "adding encryption key 1 failed". whatever property i try to change (ap, key, etc.), i just doesn't seem to work - everytime i display 'iwconfig wlan0' it looks the same.
for the router is configured for WPA, i installed and configured wpa_supplicant. again, i get an error saying "no keys configured", then i get a timeout.
the router is, however, visible to the pc - if i do a scan, i can "see" it.
please, if anybody has an idea, tell me!
i can provide further configs, logs etc. on request.
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 172.16.133.61
netmask 255.255.255.0
network 172.16.133.0
broadcast 172.16.133.255
gateway 172.16.133.1
It looks like your card is all set up and should work, could turn off the wpa on the router for a bit and see if the card will connect.
Your interfaces file hasn't got any wpa- commands in it, so are you using wpa-supplicant? If you are using it have you read through the readme available here:
As you can see from the above the ndiswrapper has to use the wext driver back-end for ndiswrapper versions >= 1.16, so what version of ndiswrapper are you using?
Try and set up the wpa-supplicant, as an example setup for my interfaces file contains:
auto eth0
iface eth0 inet dhcp
pre-up ifconfig eth0 up
pre-up ifconfig eth0 down
pre-up ifconfig eth0 up
pre-up ifconfig eth0 down
wpa-ssid MyESSID
wpa-psk MyPSK
ifconfig eth0 up
I can't remember what all the pre-up stuff is about but as you can see you need the wpa- commands to get wpa-supplicant working, I think...
Once you've set up wpa do:
ifup -v wlan0
You should get a better idea of what going on from that, post it here if possible - might help.
I spent the last two weeks puzzling around, but without any satisfying results
Quote:
Originally Posted by cpd05
Your interfaces file hasn't got any wpa- commands in it, so are you using wpa-supplicant? If you are using it have you read through the readme available here: http://svn.debian.org/wsvn/pkg-wpa/w...ile&rev=0&sc=0
Thanks for the URL - I didn't know this specific document but similar ones. Nevertheless, it contained some useful hints.
Quote:
Originally Posted by cpd05
As you can see from the above the ndiswrapper has to use the wext driver back-end for ndiswrapper versions >= 1.16, so what version of ndiswrapper are you using?
I'm using the latest version, I guess, 1.28. Accordingly, I configured my /etc/network/interfaces with wpa-driver wext.
Sadly, WLAN doesn't work yet.
If I do 'iwlist wlan0 scanning' I get all the details about my access point, so it "can be seen".
When executing wpa_supplicant with some basic options, the access point cannot be found and I just receive timeouts.
I assume you've tried connecting with all router encryption/security (WEP, WPA, etc) turned off? This is usually a good way to "half-split" the problem. If you can't connect with no security, that problem needs to be solved before worrying about security settings.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.