LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-06-2009, 03:17 PM   #1
tortenteufel
LQ Newbie
 
Registered: Feb 2004
Location: germany
Distribution: Gentoo
Posts: 19

Rep: Reputation: 0
wpa_supplicant won't start automatically so dhcp won't give me an IP


Hey folks!
Just (friday ^^) installed Slackware 13.0. Running great - except for my wireless Atheros AR9285 Wireless Network Adapter. I'm connecting to a LinkSys-Router with "tomato"-firmware on it. The router has a DHCP running but i didn't get an IP. Reason was: "wpa_supplicant" didn't start automatically.
But when i ran:
Code:
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
before starting "rc.inet1" everything went fine.

But shouldn't "wpa_supplicant" be called automatically by "rc.inet1"?
Why does it not start automatically on my machine??

I did the configuration as described in "Aliens Slackbook":

wpa_supplicant.conf:
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
country=DE

network={
  scan_ssid=0
  ssid="tomato"
  proto=RSN
  key_mgmt=WPA-PSK
  pairwise=CCMP TKIP
  psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
rc.inet1.conf:
Code:
IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]="myrouter"
WLAN_ESSID[4]="routersessid"
WLAN_MODE[4]="Managed"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext"
These are my files. Am i missing anything?
Your help will be greatly appreciated.

With kind regards,
-cakedevil
 
Old 09-06-2009, 03:21 PM   #2
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian
Posts: 462

Rep: Reputation: 39
I prefer to use wicd... makes things much easier.
I believe its in extra.
 
Old 09-06-2009, 03:44 PM   #3
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Posts: 651

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by mattydee View Post
I prefer to use wicd... makes things much easier.
I believe its in extra.
I second the wicd recommendation. It is in extras on the dvd. It made life very, very easy.
 
Old 09-06-2009, 03:46 PM   #4
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Rep: Reputation: 62
I think my laptop also has an Athero card, and I need to run wpa_supplicant with the -B to "daemonize" it. After that I get an IP address with dhcpcd just fine.
 
Old 12-25-2013, 04:41 PM   #5
nl1at
LQ Newbie
 
Registered: Mar 2004
Location: Uitgeest Netherlands
Posts: 26

Rep: Reputation: 15
Lightbulb Solved?

Ok this is a while ago but it may help someone
Wpa_supplicant is not started in rc.inet1(conf) , but runs from rc.wireless.
rc.inet1 runs rc.wireless to check if a nic is wireless.. if not goes back to rc.inet1 and if yes runs the script.
You have to comment some things out of rc.wireless.conf (I have only case and esac in it ) but it depends on your card.
check your hwaddress on your nic and compare it with what's in rc.wireless.conf
 
Old 12-25-2013, 05:05 PM   #6
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 64bit
Posts: 729
Blog Entries: 3

Rep: Reputation: 78
Hello tortenteufel,

From Alien BOB's wiki in section "WPA Encryption " of Configuring your network:

The ssid in wpa_supplicant.conf
Quote:
is the same as the ESSID you use in rc.inet1.conf.
This is not the case in the configuration files shown in your first post. Put the correct ssid in both configuration files.
 
  


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
Start wpa_supplicant before hostapd daghenningsorbo Linux - Networking 1 03-13-2009 07:49 PM
How to automatically detect when wpa_supplicant connects to a network d1s4st3r Linux - Wireless Networking 0 02-25-2008 04:43 AM
wpa_supplicant problem - ndiswrapper, router's dhcp all working without encryption MakeItWork Linux - Wireless Networking 3 12-26-2007 02:00 PM
suse 9.3 wpa_supplicant dhcp sabeltann Linux - Wireless Networking 6 09-21-2005 04:28 AM
dhcp won't start automatically on boot blk96gt Slackware 5 01-24-2005 02:42 PM


All times are GMT -5. The time now is 10:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration