You are not logged in.

#1 2008-01-19 19:58:19

cyberdune
Member
From: Earth/Europe/Netherlands
Registered: 2008-01-06
Posts: 8

Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or..

i've been trying to connents to a wpa encrypted wireless network, yet even though i have install wpa_supplicant i still cant connect

currently the output of iwconfig is showing that the security mode is restricted, so its recognising the wpa encryption but now when i try to start the network script (/etc/rc.d/network) with network profiles all i get is

Code:

Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

it would also seem that the /var/run/wpa_supplicant directory defined in the /etc/wpa_supplicant.conf file doesn't exist

any ideas?

Here my relevant files:
wpa_supplicant.conf:

network={
    ssid="@Home42440"
    psk=IRGENDEINS
}

network={
    ssid="HKS_Adviese"
    psk=IRGENDEINS
}
network={
    key_mgmt=NONE
}

rc.conf:

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="asus-laptop"
#
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
# interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
#eth0="eth0 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(lo eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(!gateway)
#
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network-profiles
#
NET_PROFILES=(menu)
ls /etc/network-profiles/
1-home  2-hks  3-any template

cat /etc/network-profiles/1-home:

#
# Network Profile
#

DESCRIPTION="Home Network Profile"

# Network Settings
INTERFACE="eth0"
HOSTNAME="asus-laptop"

# Interface Settings (use IFOPTS="dhcp" for DHCP)
IFOPTS="dhcp"
#IFOPTS="192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#GATEWAY=192.168.0.1

# DNS Settings (optional)
#DOMAIN=localdomain
#DNS1=192.168.0.1
#DNS2=

# Wireless Settings (optional)
ESSID="@Home42440"
#KEY=
#IWOPTS="mode managed essid $ESSID channel 6 key restricted $KEY"

#WIFI_INTERFACE=eth0   # use this if you have a special wireless interface
                        # that is linked to the real $INTERFACE

WIFI_WAIT=3            # seconds to wait for the wireless card to
                        # associate before bringing the interface up
USEWPA="yes"           # start wpa_supplicant with the profile
WPAOPTS="-Dmadwifi"     # use "" for normal operation or specify additional
                        # options (eg, "-D ipw")
                        # see /etc/wpa_supplicant.conf for configuration
AUTOWPA="yes"          # automatically configure WPAe setup (1:1) works on my other laptop (both are asus).
PASSKEY="IRGENDEINS"             # wpa passkey/phrase. for use with AUTOWPA

One annotation:
EXACTLY the same setup (1:1) works on my other laptop (both are asus).

After creating the missing directory /var/run/wpa_supplicant, a /etc/rc.d/network restart is giving me this confusing error:

:: Starting network profile: 1-home                                      [BUSY] Failed to connect to wpa_supplicant - wpa_ctrl_open: Success
Failed to connect to wpa_supplicant - wpa_ctrl_open: Success

And by starting the wpa_supplicant by hand after 2 Seconds I have an IP and the internet runs like hell!

wpa_supplicant -Dwext -ieth0 -c/etc/wpa_supplicant.conf & 
[1] 8661
[root@asus-laptop erdal]# Trying to associate with 00:90:4c:7e:00:6e (SSID='@Home42440' freq=2462 MHz)
Associated with 00:90:4c:7e:00:6e
WPA: Key negotiation completed with 00:90:4c:7e:00:6e [PTK=TKIP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:90:4c:7e:00:6e completed (auth) [id=0 id_str=]

Last edited by cyberdune (2008-01-19 20:08:30)

Offline

#2 2008-01-19 22:02:08

cyberdune
Member
From: Earth/Europe/Netherlands
Registered: 2008-01-06
Posts: 8

Re: Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or..

After1 hour of trial and error, it finally did it!

Here is the working network-profile...

cat /etc/network-profiles/koper:
#
# Network Profile
#
DESCRIPTION="Default Network Profile"
INTERFACE=eth0
HOSTNAME=asus-laptop

IFOPTS="dhcp"
GATEWAY=192.168.1.1

# Wireless Settings (optional)
ESSID="@Home42440"
WIFI_WAIT=3
USEWPA="yes"
PASSKEY="WYOPPWJS"

Offline

Board footer

Powered by FluxBB