LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2010, 12:22 PM   #1
jmoralesl
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Rep: Reputation: 0
Association request to the driver failed when using wpa_supplicant with Madwifi


I'm new and could use some help.

I'm trying to manually connect my wireless adapter to my router using WPA.
I'm using Madwifi drivers for my D-Link DWL-G630.
I keep getting the same error " Association request to the driver failed".
I can connect to my router using wep through the GUI. I can not connect using the terminal.

I created my /etc/wpa_supplicant.conf file

ap_scan=1
ctrl_interface=/var/run/wpa_supplicant

network={
ssid="NYNET"
scan_ssid=0
proto=WPA
key_mgmt=WPA-PSK
psk="Trombone!"
pairwise=TKIP
group=TKIP
}

I run these two commands
sudo ifconfig wlan3 down
sudo dhclient -r wlan3

the I run

sudo wpa_supplicant -Dwext -iwlan3 -c/etc/wpa_supplicant.conf -dd

jmorales@jmorales-laptop:~$ sudo ifconfig wlan3 up
jmorales@jmorales-laptop:~$ sudo dhclient -r wlan3
Internet Systems Consortium DHCP Client V3.1.2
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/wlan3/00:13:46:0d:35:8d
Sending on LPF/wlan3/00:13:46:0d:35:8d
Sending on Socket/fallback
jmorales@jmorales-laptop:~$ sudo wpa_supplicant -Dwext -iwlan3 -c/etc/wpa_supplicant.conf -dd
Initializing interface 'wlan3' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ap_scan=1
ctrl_interface='/var/run/wpa_supplicant'
Line: 4 - start of a new network block
ssid - hexdump_ascii(len=5):
4e 59 4e 45 54 NYNET
scan_ssid=0 (0x0)
proto: 0x1
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
pairwise: 0x8
group: 0x8
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='NYNET'
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf flags 0x0
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:13:46:0d:35:8d
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
WPS: UUID based on MAC address - hexdump(len=16): 3a 46 e6 1a 75 96 5c cf 81 03 85 fe 09 cf d1 80
WPS: Build Beacon and Probe Response IEs
WPS: * Version
WPS: * Wi-Fi Protected Setup State (0)
WPS: * Version
WPS: * Wi-Fi Protected Setup State (0)
WPS: * Response Type (2)
WPS: * UUID-E
WPS: * Manufacturer
WPS: * Model Name
WPS: * Model Number
WPS: * Serial Number
WPS: * Primary Device Type
WPS: * Device Name
WPS: * Config Methods (0)
WPS: * RF Bands (3)
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
Using existing control interface directory.
Added interface wlan3
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan3' added
Wireless event: cmd=0x8b06 len=8
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 0 bytes of scan results (0 BSSes)
Cached scan results are empty - not posting
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Scan requested (ret=0) - scan timeout 5 seconds
EAPOL: disable timer tick
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan3' added
Wireless event: cmd=0x8b19 len=8
Received 3277 bytes of scan results (10 BSSes)
CTRL-EVENT-SCAN-RESULTS
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1f:90:ed:bb:4a ssid='NYNET' wpa_ie_len=22 rsn_ie_len=20 caps=0x11
selected based on WPA IE
selected WPA AP 00:1f:90:ed:bb:4a ssid='NYNET'
Trying to associate with 00:1f:90:ed:bb:4a (SSID='NYNET' freq=2437 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 02 01 00 00 0f ac 02 01 00 00 0f ac 02 00 00
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: not using MGMT group cipher
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
wpa_driver_wext_set_psk
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0

as you can see this happens everytime I try it. Like I said before, I'm a newbie and could use some help.

Thanks,
JM
 
Old 03-30-2010, 12:34 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

W/o having read all the gory details; the first thing I spot is that
your PSK appears to be clear text which isn't a good thing :}

You may get more targeted responses if you tell people what
distro you're using, btw.


Cheers,
Tink
 
Old 03-31-2010, 02:49 PM   #3
jmoralesl
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your response. I'm currently using ubantu 9.1. As far as the PSK, it's a test to see if this works.

Thanks,
JM
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Madwifi~wpa_supplicant Help suChris Slackware 19 12-07-2009 11:19 AM
madwifi and wpa_supplicant, won't authenticate. mr.gizm0 Linux - Wireless Networking 2 09-12-2007 06:48 AM
wpa_supplicant without madwifi support? dlock Slackware 3 07-13-2007 01:41 PM
wpa-psk, wpa_supplicant/madwifi/atheros association woes stardotstar Linux - Wireless Networking 7 10-18-2006 10:22 PM
atheros madwifi wpa_supplicant troubles jb2006 Slackware 3 03-27-2006 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration