LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 07-10-2007, 08:01 PM   #1
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
Unhappy 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
}
 
Old 07-11-2007, 01:03 PM   #2
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Original Poster
Rep: Reputation: 58
does anyone know whats wrong?
 
Old 07-11-2007, 01:09 PM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You might try using the wext driver instead of the ndiswrapper driver (so -dndiswrapper would be -dwext).
 
Old 07-11-2007, 02:22 PM   #4
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Original Poster
Rep: Reputation: 58
I don't think thats the problem
 
Old 07-11-2007, 02:31 PM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by AceofSpades19
I don't think thats the problem
Care to provide a bit more of an explanation why?
 
Old 07-11-2007, 05:18 PM   #6
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Original Poster
Rep: Reputation: 58
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
 
Old 07-11-2007, 05:28 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
Old 07-11-2007, 05:47 PM   #8
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Original Poster
Rep: Reputation: 58
I see, I'll try that when I get a chance
 
Old 03-30-2008, 05:13 PM   #9
elbadry
LQ Newbie
 
Registered: Mar 2008
Posts: 10

Rep: Reputation: 1
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.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ndiswrapper & wpa supplicant for the WMP300N on debian pazkaw Linux - Wireless Networking 1 04-27-2007 11:28 AM
[ipw2200 & WPA] Need help to connect to WPA enabled router. Hyakutake Slackware 2 03-02-2007 09:58 AM
complicated network with wpa supplicant please help! tellectual Linux - Wireless Networking 3 11-04-2006 08:06 AM
How do i set up WPA PSK with wpa supplicant and linuxant? Eleavings Linux - Wireless Networking 4 12-27-2004 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 04:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration