Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wpa_supplicant works from command line, but not init script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nickd
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2003
Posts: 81
Location: London, UK

PostPosted: Wed Oct 18, 2006 6:44 pm    Post subject: wpa_supplicant works from command line, but not init script Reply with quote

Hello,

Perhaps I've been at this too long, but running this in a terminal:
Code:
wpa_supplicant -Dmadwifi -c /etc/wpa_supplicant.conf -iath0 -dd
gets me a working wireless network. The following in /etc/conf.d/net and init.d/net.ath0 fails though:
Code:
# for wpa_supplicant
modules=( "wpa_supplicant" )
# Users of madwifi add this:
wpa_supplicant_ath0="-Dmadwifi -c/etc/wpa_supplicant.conf -iath0 -dd"
wpa_timeout_ath0=60

Where my /etc/wpa_supplicant.conf is:
Code:
grep -v ^# /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1

network={
        ssid="xxxxxxxxxxx"
        scan_ssid=1
        proto=WPA
        key_mgmt=WPA-PSK
        psk="xxxxxxxxxxx"
        priority=2
}

With the output:
Code:
Initializing interface 'ath0' conf '/etc/wpa_supplicant.conf' driver 'madwifi' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
Line: 406 - start of a new network block
ssid - hexdump_ascii(len=9):
     57 69 6e 63 68 6d 6f 72 65                        Winchmore
scan_ssid=0 (0x0)
proto: 0x1
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=15): [REMOVED]
priority=2 (0x2)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 2
   id=0 ssid='Winchmore'
Initializing interface (2) 'ath0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=20 WE(source)=13 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:05:4e:40:72:35
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
wpa_driver_madwifi_set_countermeasures: enabled=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Added interface ath0
Daemonize..
 * WARNING:  net.ath0 has started but is inactive


Can anyone help me with this?

Thanks,

Nick.
Back to top
View user's profile Send private message
AdmiralNemo
Apprentice
Apprentice


Joined: 25 Sep 2004
Posts: 247
Location: Overland Park, KS

PostPosted: Wed Oct 18, 2006 10:29 pm    Post subject: Reply with quote

Not sure what good it would do, but try without "-c/etc/wpa_supplicant.conf -iath0 -dd" because the wpa_supplicant module provides those switches itself.
_________________
Help the Unanswered
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum