LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   wpa_supplicant won't start automatically so dhcp won't give me an IP (https://www.linuxquestions.org/questions/slackware-14/wpa_supplicant-wont-start-automatically-so-dhcp-wont-give-me-an-ip-753118/)

tortenteufel 09-06-2009 02:17 PM

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

mattydee 09-06-2009 02:21 PM

I prefer to use wicd... makes things much easier. :)
I believe its in extra.

jkirchner 09-06-2009 02:44 PM

Quote:

Originally Posted by mattydee (Post 3672094)
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.

easuter 09-06-2009 02:46 PM

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.

nl1at 12-25-2013 03:41 PM

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

gegechris99 12-25-2013 04:05 PM

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.


All times are GMT -5. The time now is 03:59 AM.