LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-13-2008, 04:17 PM   #1
mattm
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
wpa_supplicant/startup scripts config problem


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.)

Last edited by mattm; 04-13-2008 at 04:19 PM. Reason: Clarifying title
 
Old 04-13-2008, 04:56 PM   #2
-{Jester}-
Member
 
Registered: Apr 2008
Location: The Internet
Distribution: Slackware
Posts: 49

Rep: Reputation: 15
This may help you, even if you do not have a Broadcom card. I used it to successfully set up WPA on Slackware 12.0 last week.
 
Old 04-13-2008, 05:28 PM   #3
mattm
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the quick reply! I had thought of putting a shell script in the /etc/rc.d directory, but I wanted to try to use the built-in startup scripts for the experience and so I'd know how to do it for the future. Anyways, I tried what the article said (putting it in rc.local) and it's connecting at boot now, so I'm happy.

If anyone knows how I'd do this using the scripts already there, I think it would be good to at least know how to do it. Otherwise, it's doing what I want it to do, so I'm probably not going to mess with it anymore.

Thanks again!
 
Old 04-13-2008, 10:13 PM   #4
-{Jester}-
Member
 
Registered: Apr 2008
Location: The Internet
Distribution: Slackware
Posts: 49

Rep: Reputation: 15
Quote:
Originally Posted by mattm View Post
Thanks for the quick reply! I had thought of putting a shell script in the /etc/rc.d directory, but I wanted to try to use the built-in startup scripts for the experience and so I'd know how to do it for the future. Anyways, I tried what the article said (putting it in rc.local) and it's connecting at boot now, so I'm happy.

If anyone knows how I'd do this using the scripts already there, I think it would be good to at least know how to do it. Otherwise, it's doing what I want it to do, so I'm probably not going to mess with it anymore.

Thanks again!
No problem! I'm glad the guide helped you. If you are on your home network, I hope you are using a secure password. ;-)
 
  


Reply



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
wpa_supplicant Disconnect Problem roddefig Linux - Software 2 09-27-2010 08:37 AM
wpa_supplicant .config build Twirk3d Linux - Wireless Networking 10 01-07-2008 09:24 AM
Problem with wpa_supplicant? woodpecka_04 Linux - Wireless Networking 8 05-19-2007 09:33 AM
wpa_supplicant problem jimerickso *BSD 0 04-24-2007 07:31 PM
wpa_supplicant problem arunsri Linux - Wireless Networking 2 03-15-2005 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:34 AM.

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
Open Source Consulting | Domain Registration