wpa_supplicant associates but dhcpcd cannot get IP address

Craig L gangis
Sun Feb 6 11:12:03 PST 2005


Hello,

I've tried browsing the list archives and while I've found similar
issues with the same setup (D-Link G650 (atheros), madwifi and
wpa_supplicant) none of them reported the same issues I'm having now.
wpa_supplicant (with the -dd flag turned on, output below) seems to be
able to associate with my AP (essid "hinatasou") but dhcpcd fails to
get an IP. Here are the workarounds I've tried:

1) Tried latest stable, developmental and CVS versions of ndiswrapper.
None of them worked.
2) Ditched ndiswrapper and went for madwifi, tried the developmental
and CVS version, same result.
3) Tried both the stable and developmental versions of wpa_supplicant.

I can't help but feel that it's something wrong with how I have
wpa_supplicant set up. It's possible that dhcpcd is the culprit, but
I'm not sure if that's very likely.

My system:
Toshiba Satellite 1135-S155
Gentoo Linux 2.6.10-r7 with custom kernel

####################################################
OUTPUT OF WPA_SUPPLICANT AND DHCPCD
####################################################
Initializing interface 'ath0' conf '/etc/wpa_supplicant.conf' driver 'default'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
eapol_version=1
ap_scan=2
fast_reauth=1
Line: 8 - start of a new network block
ssid - hexdump_ascii(len=9):
     68 69 6e 61 74 61 73 6f 75                        hinatasou
pairwise: 0x18
group: 0x1e
PSK (ASCII passphrase) - hexdump_ascii(len=15): [REMOVED]
key_mgmt: 0x2
priority=5 (0x5)
proto: 0x1
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Line: 21 - start of a new network block
ssid - hexdump_ascii(len=10):
     44 69 65 74 72 69 63 68 30 31                     Dietrich01
key_mgmt: 0x4
priority=0 (0x0)
Line: 27 - start of a new network block
ssid - hexdump_ascii(len=3):
     75 63 66                                          ucf
key_mgmt: 0x4
Priority group 5
   id=0 ssid='hinatasou'
Priority group 0
   id=1 ssid='Dietrich01'
   id=2 ssid='ucf'
Daemonize..
dhcpcd: MAC address = 00:0f:3d:a0:21:b7
mitsuki-kouyama gangis #

#####################################################
CONTENTS OF /ETC/WPA_SUPPLICANT.CONF
#####################################################
#ctrl_interface=/var/run/wpa_supplicant
#ctrl_interface_group=wheel
eapol_version=1
ap_scan=2
fast_reauth=1

# Only WPA-PSK is used. Any valid cipher combination is accepted.
network={
        ssid="hinatasou"
        pairwise=CCMP TKIP
        group=CCMP TKIP WEP104 WEP40
#      psk=(hidden)
        psk="hidden"
        key_mgmt=WPA-PSK
        priority=5
        proto=WPA
}

# Plaintext connection (no WPA, no IEEE 802.1X)

network={
        ssid="Dietrich01"
        key_mgmt=NONE
        priority=0
}

network={
        ssid="ucf"
        key_mgmt=NONE
}

#####################################################
CONTENTS OF /ETC/CONF.D/NET.ATH0
#####################################################

# /etc/conf.d/wireless:
# Global wireless config file for net.* rc-scripts

modules=( "wpa_supplicant" "!iwconfig" )
wpa_supplicant_ath0="-dd"
preferred_aps=( "hinatasou" "ucf" "Dietrich01" )
associate_order="any"

#####################################################

Whew... I think I covered everything... I hope. Well, I hope all this
information will be able to help you guys figure out this issue. Any
help would be greatly appreciated. Thank you very much!

-Craig




More information about the Hostap mailing list