Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

wpa_supplicant fails to associate with an AP

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
leguaan
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 107
Joined: Fri Feb 04, 2005 10:34 am
Location: Slovakia

wpa_supplicant fails to associate with an AP

  • Quote

Post by leguaan » Tue Nov 14, 2006 1:52 pm

Hello,
I have problems with wifi.
Connection to an unsecured wifi AP works fine.

Code: Select all

iwconfig wlan0 essid "default"
dhcpcd wlan0
is satisfactory, but when trying to connect to WPA/TKIP protected AP, the computer fails to associate.
I'm using WPA supplicant, and following command

Code: Select all

# wpa_supplicant -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant.conf
gives me this output:
Trying to associate with 00:11:09:0c:c9:1d (SSID='Net' freq=2462 MHz)
Association request to the driver failed
Authentication with 00:00:00:00:00:00 timed out.
Trying to associate with 00:11:09:0c:c9:1d (SSID='Net' freq=2462 MHz)
Association request to the driver failed
Authentication with 00:00:00:00:00:00 timed out.
Trying to associate with 00:11:09:0c:c9:1d (SSID='Net' freq=2462 MHz)
Association request to the driver failed
and it goes on and on...
I haven't made any changes in wpa_supplicant.conf recently...
the relevant part of it looks like this:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={
ssid="Net"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
psk="verysecretpassfrase"
priority=5
}
Can anybody help me? What can be wrong?[/code]
Since he could no longer be of any use to me,I left him there on the stones without much regret and whistled down a few vultures which settled down on him in order to guard him. (Kafka)
Top
animous
n00b
n00b
Posts: 5
Joined: Sat Oct 14, 2006 9:26 pm

me too..

  • Quote

Post by animous » Sat Nov 18, 2006 3:11 pm

I have the same problem. My config looks very much like yours. If you find a solution, please post it! Thanks.
Top
kds66
Apprentice
Apprentice
Posts: 166
Joined: Tue Oct 17, 2006 3:49 am
Location: Manaus, Brazil

Same problem

  • Quote

Post by kds66 » Sun Nov 19, 2006 9:53 pm

Same problem here. I player with the ap_scan parameter, applying 0, 1 and 2, but nothing works.
Top
Matrix7
n00b
n00b
Posts: 54
Joined: Sat Feb 21, 2004 3:45 pm
Location: Sussex

  • Quote

Post by Matrix7 » Wed Nov 22, 2006 8:02 pm

You might find this thread has a solution:

http://forums.gentoo.org/viewtopic-t-51 ... quest.html

In your /etc/conf.d/net replace:

wpa_supplicant_wlan0="-Dndiswrapper"

with:

wpa_supplicant_wlan0="-Dwext"

Hope this helps.
Top
big-birdy
Apprentice
Apprentice
User avatar
Posts: 179
Joined: Tue Jan 18, 2005 7:46 am
Location: Neustadt

  • Quote

Post by big-birdy » Thu Nov 23, 2006 1:29 pm

Do you use a pc or a notebook? I had the same problem with my notebook. I had to activate the wireless in the bios and installe acer_acpi.
Now my wireless is fine.

Big-birdy

Sorry for my bad english. :oops:
Top
kds66
Apprentice
Apprentice
Posts: 166
Joined: Tue Oct 17, 2006 3:49 am
Location: Manaus, Brazil

Solved

  • Quote

Post by kds66 » Fri Nov 24, 2006 10:24 pm

I got it finally working. Here's what I have in my config files now.

/etc/conf.d/net:

Code: Select all

...
modules=( "wpa_supplicant" )
wpa_supplicant_wlan0="-Dwext"
associate_timeout_wlan0=60
/etc/wpa_supplicant.conf:

Code: Select all

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=10
ap_scan=2
update_config=1

network={
    ...
}
Apparently, ap_scan must be set to 2. I could not get an association with 0 and 1.
Top
kds66
Apprentice
Apprentice
Posts: 166
Joined: Tue Oct 17, 2006 3:49 am
Location: Manaus, Brazil

Works with ndiswrapper-1.28, doesn't work with 1.29

  • Quote

Post by kds66 » Sat Nov 25, 2006 10:41 pm

The solution in my previous posting works with ndiswrapper-1.28. When I updated to ndiswrapper-1.29 today, wireless support was gone. I am back to 1.28 again. If anybody finds out what to do for 1.29, please drop a line.
Top
dreadhead
Guru
Guru
Posts: 470
Joined: Fri Jul 09, 2004 9:08 pm
Location: Ulm - Germany

  • Quote

Post by dreadhead » Sat Dec 02, 2006 4:19 pm

Replacing -Dndiswrappper with -Dwext worked for me with ndiswrapper-1.29 and 1.30 and Netgear WPN111 (Atheros USB)

Thank you!

My configs:

/etc/conf.d/net:

Code: Select all

modules=( "wpa_supplicant" )
wpa_supplicant_wlan0="-Dwext"
wpa_timeout_wlan0=60
/etc/wpa_supplicant.conf:

Code: Select all

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=2
fast_reauth=1

network={
        ssid="myssid"
        scan_ssid=1
        proto=WPA
        key_mgmt=WPA-PSK
        psk="mysecretpassphrase"
        priority=5
}
Hope this helps
Kopete OTR Plugin
Top
Post Reply

8 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic