Hello,
Sorry if this is the wrong place or anything. I looked at another thread with a similar question, but it didn't really help.
Here's my problem: I can get wpa_supplicant to work by typing in this command:
Code:
wpa_supplicant -Dmadwifi -iath0 -c/etc/wpa_supplicant.conf
Then I run dhcpcd ath0 and it works fine -- I'm typing this on the computer I'm having problems with. The thing is, I can't get the startup scripts to connect when the computer boots up. I've tried everything I can think of, but after running /etc/rc.d/rc.inet1 ath0_restart, this is what I get:
Code:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
And that message keeps repeating.
Here's my wpa_supplicant.conf:
Code:
# See /usr/doc/wpa_supplicant-0.5.7/wpa_supplicant.conf.sample
# for many more options that you can use in this file.
# This line enables the use of wpa_cli which is used by rc.wireless
# if possible (to check for successful association)
ctrl_interface=/var/run/wpa_supplicant
#ctrl_interface=/usr/sbin/wpa_supplicant
# By default, only root (group 0) may use wpa_cli
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
# WPA protected network, supply your own ESSID and WPAPSK here:
#network={
# scan_ssid=0
# ssid="your_essid_here"
# proto=WPA
# key_mgmt=WPA-PSK
# pairwise=CCMP TKIP
# group=CCMP TKIP WEP104 WEP40
# psk=your_psk_here
#}
# Plaintext connection (no WPA, no IEEE 802.1X),
# nice for hotel/airport types of WiFi network.
# You'll need a recent version of wireless-tools for this!
#network={
# ssid="any"
# key_mgmt=NONE
# priority=2
#}
network={
scan_ssid=0
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
ssid="mwireless"
psk=[removed]
}
Also, here's the important part of rc.inet1.conf:
Code:
# Config information for ath0 (using dhcp):
IFNAME[0]="ath0"
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]="mattspc"
WLAN_WPA[0]="wpa_supplicant"
WLAN_WPADRIVER[0]="madwifi"
WLAN_WPACONF[0]="/etc/wpa_supplicant.conf"
WPAOPTS[0]="-c/etc/wpa_supplicant.conf -iath0 -Dmadwifi"
modules=( "wpa_supplicant" )
# Users of madwifi add this:
wpa_supplicant_ath0="-Dmadwifi"
# Users of Intel ipw2100/2200 (Centrino) chips with older kernels add
#this:
#wpa_supplicant_ath0="-Dmadwifi"
#wpa_timeout_ath0=60
And rc.wireless.conf:
Code:
ESSID="mwireless"
# Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
#MODE="Managed"
# Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
#FREQ="2.427G"
CHANNEL="4"
# Bit rate : auto, 1M, 11M,54M
#RATE="auto"
WPAOPTS="-Dmadwifi -c/etc/wpa_supplicant.conf -iath0"
As you can see, I might have been redundant with some of the options, as I wasn't exactly sure what goes where. I've been working on this for weeks now (off and on) and I'm not sure there's anything else I can do.
Any help is greatly appreciated! (Let me know if you need more info.)