Linux - Wireless Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-10-2007, 09:01 PM
|
#1
|
Senior Member
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079
Rep:
|
usb network adapter with ndiswrapper can't connect to wpa with wpa-supplicant
Hi, I'm using Ubuntu 7.04 with a usb network adapter connected with ndiswrapper to connect to a wpa-encrypted network with wpa supplicant
$ sudo wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -Dndiswrapper -w
Trying to associate with 00:13:46:a3:e1:48 (SSID='default' freq=2462 MHz)
Association request to the driver failed
Authentication with 00:00:00:00:00:00 timed out.
my wpa config file
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="default"
proto=WPA
key_mgmt=WPA-PSK
psk=random numbers and letters generated by wpa_passphrase
}
|
|
|
07-11-2007, 02:03 PM
|
#2
|
Senior Member
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079
Original Poster
Rep:
|
does anyone know whats wrong?
|
|
|
07-11-2007, 02:09 PM
|
#3
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
You might try using the wext driver instead of the ndiswrapper driver (so -dndiswrapper would be -dwext).
|
|
|
07-11-2007, 03:22 PM
|
#4
|
Senior Member
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079
Original Poster
Rep:
|
I don't think thats the problem
|
|
|
07-11-2007, 03:31 PM
|
#5
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
Quote:
Originally Posted by AceofSpades19
I don't think thats the problem
|
Care to provide a bit more of an explanation why?
|
|
|
07-11-2007, 06:18 PM
|
#6
|
Senior Member
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079
Original Poster
Rep:
|
because the ndiswrapper driver works perfectly fine, I think it has to do with my config file or my command and ndiswrapper supposedly is supported by wpa_supplicant
|
|
|
07-11-2007, 06:28 PM
|
#7
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
Quote:
Originally Posted by AceofSpades19
because the ndiswrapper driver works perfectly fine, I think it has to do with my config file or my command and ndiswrapper supposedly is supported by wpa_supplicant
|
You might be confusing two things here. There is the ndiswrapper kernel module driver that actually makes the card function and then there is the wpa_supplicant ndiswrapper driver that you specify on the command line that starts wpa_supplicant. Two different pieces of software. It is the second one I am suggesting you replace with wext. Both the wpa_supplicant ndiswrapper and wext driver will supposedly work with the ndiswrapper kernel module, however the wext driver is more generic and may be better supported. So even if the problem is in your config file, wext may be a better option.
As for the config file, here is an example of an entry that I use that works:
Code:
network={
ssid="WPA_NETOWRK_SSID"
scan_ssid=1
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk="WPA_Passphrase"
priority=1
}
After starting wpa_supplicant you also could check your iwconfig output and see if the key has taken and the card associated with the access point. If it hasn't associated, have a look in your log files and see if wpa_supplicant is complaining.
|
|
|
07-11-2007, 06:47 PM
|
#8
|
Senior Member
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079
Original Poster
Rep:
|
I see, I'll try that when I get a chance
|
|
|
03-30-2008, 06:13 PM
|
#9
|
LQ Newbie
Registered: Mar 2008
Posts: 10
Rep:
|
I had the very same problem and it was solved by Hangdog's suggestion of using wext instead of ndiswrapper
Thanks a zillion!!
|
|
0 members found this post helpful.
|
All times are GMT -5. The time now is 03:02 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|