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 09-06-2009, 02: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, 02:21 PM   #2
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
I prefer to use wicd... makes things much easier.
I believe its in extra.
 
Old 09-06-2009, 02:44 PM   #3
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Pop!_OS
Posts: 945

Rep: Reputation: 297Reputation: 297Reputation: 297
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, 02: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, 03: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, 04:05 PM   #6
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,159
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
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



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

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

All times are GMT -5. The time now is 10:07 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