You are not logged in.

#1 2011-03-05 08:37:10

medianmajik
Member
Registered: 2010-05-27
Posts: 53

Wpa_supplicant fails

I'm running netcfg's net-auto-wireless daemon on a Broadcom 4312 b/g card on a HP Mini Note 1125-NR, but am unable to connect to encrypted networks.  Netcfg profiles report success, but wpa_supplicant fails immediately afterwards.  My i686 system is fully up to date and the profiles are correctly setup.

Note: I've removed 'network' from my rc.conf daemon's list.

DAEMONS=(syslog-ng dbus hal net-auto-wireless @net-auto-wired netfs @crond @alsa)

Note: Most likely I've not correctly setup this config file.
wpa_supplicant configuration file (lots of unnecessary lines edited out for this post)
#update_config=1

# When configuring both the directory and group, use following format:
# DIR=/var/run/wpa_supplicant GROUP=wheel
# DIR=/var/run/wpa_supplicant GROUP=0
# (group can be either group name or gid)
#
#
ctrl_interface=/var/run/wpa_supplicant

eapol_version=1
ap_scan=1
fast_reauth=1
country=US

Thanks in advance for any tips or ideas.  I've been using the wiki and google, but haven't gotten this resolved.


One thing at a time

Offline

#2 2011-03-05 19:33:56

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: Wpa_supplicant fails

have you looked at `wpa_actiond'? the wiki also says that wpa-config profiles don't work with net-auto-wireless. did you convert them to wpa-configsection?

Offline

#3 2011-03-08 05:29:51

medianmajik
Member
Registered: 2010-05-27
Posts: 53

Re: Wpa_supplicant fails

My wpa profiles are all setup to configsection.  I get 'WPA Authentication/Association failed.'

Here is my WPA profile example:

CONNECTION='wireless'
INTERFACE=wlan0
SECURITY='wpa-configsection'
ESSID='*****'
IP='dhcp'
CONFIGSECTION='
    ssid="*****"
    key_mgmt=WPA-EAP
    eap=TTLS
    group=TKIP
    pairwise=TKIP
    priority=1
    phase2="auth=PSK"'

$sudo iwlist wlan0 scan
The essid I'm trying to connect to is listed as
WPA version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites : PSK
Encryption key:on

$sudo iwlist auth

wlan0     Authentication capabilities :
        WPA
        WPA2
        CIPHER-TKIP
        CIPHER-CCMP
          Current WPA version :
          Current Key management :
        802.1x
          Current Pairwise cipher :
        none
          Current Pairwise cipher :
        none
          Current TKIP countermeasures : no
          Current Drop unencrypted : yes
          Current Authentication algorithm :
        open
          Current Receive unencrypted EAPOL : no
          Current Roaming control : no
          Current Privacy invoked : no

I read this posting on setting up WPA encryption in Arch from 2009 and changed a wpa_supplicant.conf setting to

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel

I have wpa_actiond installed, but don't really understand how it works.  It doesn't seem to have any sort of man entry.


One thing at a time

Offline

#4 2011-03-31 04:22:39

medianmajik
Member
Registered: 2010-05-27
Posts: 53

Re: Wpa_supplicant fails

Still trying to resolve this.  It is strange, because the profiles I connect to will report being "up" successfully, but are followed a moment later by Wpa failing.  I ran export NETCFG_DEBUG="yes" to no success


One thing at a time

Offline

#5 2011-03-31 05:07:12

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: Wpa_supplicant fails

Have you tried another program, like wicd or networkmanager, to see if the problem is wpa_supplicant itself or your config in netcfg?

Offline

#6 2011-03-31 05:12:37

medianmajik
Member
Registered: 2010-05-27
Posts: 53

Re: Wpa_supplicant fails

Proofrific wrote:

Have you tried another program, like wicd or networkmanager, to see if the problem is wpa_supplicant itself or your config in netcfg?

Thanks for the response!  I did try Wicd and had the same problem.


One thing at a time

Offline

#7 2011-03-31 05:20:22

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: Wpa_supplicant fails

Maybe try some other network configurations, just to see if they work.  For example:
- Can you connect to an open (not encrypted) network?
- Can you connect to a WEP encrypted network?
- Can you connect to a WPA-AES encrypted network (as opposed to TKIP)?

Offline

#8 2011-03-31 06:11:31

medianmajik
Member
Registered: 2010-05-27
Posts: 53

Re: Wpa_supplicant fails

I'm able to connect to open networks just fine.  Everything else is giving me trouble.  When running the WPA steps on the wiki manually everything seems to work, but when I run dhcpcd it says it is waiting for carrier and times out rather than providing an IP.


One thing at a time

Offline

#9 2011-03-31 06:56:15

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Wpa_supplicant fails

Have you successfully connected with just the wpa_supplicant command:

wpa_supplicant -d -i wlan0 -c /etc/wpa_supplicant.conf

The "-d" allows for debugging.  If it works, change it to "-B" to background the process.

Last edited by the sad clown (2011-03-31 06:57:37)


I laugh, yet the joke is on me

Offline

#10 2011-03-31 15:54:11

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: Wpa_supplicant fails

medianmajik wrote:

I'm able to connect to open networks just fine.  Everything else is giving me trouble.  When running the WPA steps on the wiki manually everything seems to work, but when I run dhcpcd it says it is waiting for carrier and times out rather than providing an IP.

If WEP is also giving you trouble, then the problem isn't wpa_supplicant.

Have you tried dhclient instead of dhcpcd?  Dhcpcd is supposed to be better, but it's something to try.

Offline

#11 2011-04-01 01:27:58

medianmajik
Member
Registered: 2010-05-27
Posts: 53

Re: Wpa_supplicant fails

Proofrific wrote:
medianmajik wrote:

I'm able to connect to open networks just fine.  Everything else is giving me trouble.  When running the WPA steps on the wiki manually everything seems to work, but when I run dhcpcd it says it is waiting for carrier and times out rather than providing an IP.

If WEP is also giving you trouble, then the problem isn't wpa_supplicant.

Have you tried dhclient instead of dhcpcd?  Dhcpcd is supposed to be better, but it's something to try.

I've installed dhclient and will give it a shot.

As of today I'm getting WPA authentication errors when connecting to open networks as well.

:: noise up                                                             [BUSY] 
 > WPA Authentication/Association Failed 
                                                                        [FAIL] 

 

  1CONNECTION='wireless'
  2 DESCRIPTION='A simple opened wireless connection'
  3 INTERFACE='wlan0'
  4 SECURITY='none'
  5 ESSID='noisebridge'
  6 IP='dhcp'

I tried adding TIMEOUT=30 as suggested in the wiki, but it didn't work.

the sad clown wrote:

Have you successfully connected with just the wpa_supplicant command:

wpa_supplicant -d -i wlan0 -c /etc/wpa_supplicant.conf

The "-d" allows for debugging.  If it works, change it to "-B" to background the process.

$ sudo wpa_supplicant -d -i wlan0 -c /etc/wpa_supplicant.conf

Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' 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='DIR=/var/run/wpa_supplicant GROUP=wheel'
Priority group 0
   id=0 ssid='*******'
SIOCGIWRANGE: WE(compiled)=22 WE(source)=19 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf flags 0x0
netlink: Operstate: linkmode=1, operstate=5
Own MAC address: 0c:60:76:2d:e9:b6
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
WPS: UUID based on MAC address - hexdump(len=16): 86 f2 db 39 a3 bb 5d 1c a3 f7 33 eb 6b a8 f3 b2
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
ctrl_interface_group=10 (from group name 'wheel')
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b1a len=40
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
State: DISCONNECTED -> SCANNING
Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 5 seconds
EAPOL: disable timer tick
EAPOL: Supplicant port status: Unauthorized
Scan timeo

$ sudo iwlist scan

lo        Interface doesn't support scanning.

wlan0     Failed to read scan data : Invalid argument

eth0      Interface doesn't support scanning.

$ dmesg | tail

ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
atl1c 0000:02:00.0: irq 42 for MSI/MSI-X
atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
wlan0: no IPv6 routers present
wlan0: no IPv6 routers present
wlan0: no IPv6 routers present
atl1c 0000:02:00.0: irq 42 for MSI/MSI-X
atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
wlan0: no IPv6 routers present
wlan0: no IPv6 routers present

I was searching the forum/google and found this post, which recommends adding

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0

to your wpa_supplicant.conf.  My current setup is from the Arch wiki:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel

Last edited by medianmajik (2011-04-01 01:44:21)


One thing at a time

Offline

#12 2011-04-01 01:49:59

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Wpa_supplicant fails

Try a simpler configuration for your wpa_supplicant.conf and see if that works:

network={
       ssid="your-essid"
       psk="your-password"
}

If it works, then you know it is your configuration and not a driver or hardware issue.

All you have to do then is steadily work your way up to the specifications of your network, like change the psk to wpa-psk, adding a cipher and the like.


I laugh, yet the joke is on me

Offline

Board footer

Powered by FluxBB