You are not logged in.

#1 2012-08-07 13:39:26

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Cannot connect to wpa protected wifi using netcfg

This is the setting in networkmanager's nm-applet and it connects flawlessly. http://i.imgur.com/5VuL6.png

I tried doing the same configuration in netcfg and this is my config file.

CONNECTION='wireless'
INTERFACE=wlan0
SECURITY='wpa-configsection'
ESSID="my essid"
IP='dhcp'
CONFIGSECTION='
  ssid="essid"
  key_mgmt=WPA-EAP
  eap=PEAP
  group=CCMP
  pairwise=CCMP
  identity="foobar"
  password="pass"
  priority=1
  phase2="auth=MSCHAPV2"
'

I killed wpa_supplient & started it with option to log to a file by

wpa_supplicant -u -f /var/log/wpa.log -B

Now, just to check whether wpa_supplient is still working perfectly, I restarted networkmanager and checked whether I was able to connect to the wifi & I was able to do it.

I stopped the networkmanager & ran "netcfg up mywifi" & I got nothing in the logfile of wpa_supplient & got a simple message saying "WPA Authentication/Association Failed"..

If I switch on debugging, I get

[root@archlinux shadyabhi]# NETCFG_DEBUG="yes" netcfg up dwifi
DEBUG: Loading profile dwifi
DEBUG: Configuring interface wlan0
:: dwifi up                                                                                                                                     [BUSY] DEBUG: status reported to profile_up as: 
DEBUG: Loading profile dwifi
DEBUG: Configuring interface wlan0
DEBUG: wireless_up start_wpa wlan0 /run/network/wpa.wlan0/wpa.conf nl80211,wext 
DEBUG: wireless_up Configuration generated at /run/network/wpa.wlan0/wpa.conf
DEBUG: wireless_up wpa_reconfigure wlan0
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant reconfigure
DEBUG: wireless_up ifup
DEBUG: wireless_up wpa_check
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant status

DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant terminate
 > WPA Authentication/Association Failed
DEBUG: profile_up connect failed

What's up here?

Offline

#2 2012-08-23 07:06:52

marko2010
Member
Registered: 2010-04-17
Posts: 70

Re: Cannot connect to wpa protected wifi using netcfg

Probably too late to respond on this, but I had the same pattern in my debug output. This is how I solved it:

https://bbs.archlinux.org/viewtopic.php … 4#p1150234

Offline

Board footer

Powered by FluxBB