You are not logged in.

#1 2012-09-16 05:40:59

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Trouble with netcfg and wifi networks

Hello,

lspci:

02:00.0 Ethernet controller: Atheros Communications Inc. AR242x / AR542x Wireless Network Adapter (PCI-Express) (rev 01)

The output of 'lsmod | grep ath'

ath5k                 125144  0 
ath                    12381  1 ath5k
mac80211              359685  1 ath5k
cfg80211              150293  3 ath,ath5k,mac80211

Network profile in /etc/network.d/

CONNECTION='wireless'
DESCRIPTION='A simple WPA encrypted wireless connection'
INTERFACE='wlan0'
SECURITY='wpa-config'

ESSID='[deleted for security]'
## Uncomment if the supplied ESSID is hexadecimal
#ESSID_TYPE='hex'
KEY='[deleted]'

IP='dhcp'

WPA_CONF='/etc/wpa_supplicant/wpa_supplicant.conf'

Output of 'netcfg <profile name>' (with debugging on):

DEBUG: Loading profile [deleted]
DEBUG: Configuring interface wlan0
:: 245019 up                                                                                                                                                       [BUSY] DEBUG: status reported to profile_up as: 
DEBUG: Loading profile 245019
DEBUG: Configuring interface wlan0
DEBUG: wireless_up start_wpa wlan0 /etc/wpa_supplicant/wpa_supplicant.conf nl80211,wext 
DEBUG: wireless_up ifup
DEBUG: wireless_up wpa_check
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant GROUP=wheel status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant GROUP=wheel status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant GROUP=wheel status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant GROUP=wheel status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant GROUP=wheel status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant GROUP=wheel status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant GROUP=wheel status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant GROUP=wheel status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant GROUP=wheel status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant GROUP=wheel status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant GROUP=wheel status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant GROUP=wheel status
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant GROUP=wheel status

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

I use this script to connect to my network manually and it works fine:

#!/bin/bash

error() {
                echo Nope.
                exit 1
}

[ $UID = 0 ] || error

[ -z $(pgrep wpa_supplicant) ] || killall wpa_supplicant
[ -z $(pgrep dhcpcd) ] || killall dhcpcd

iwconfig wlan0 essid 245019 || error
wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf || error
echo "Imagine the sound of little network wheels and gears grinding and whirring..."
dhcpcd -q wlan0
if [[ $? = 0 ]] ; then
        echo 'Connectivity!'
        exit 0
else
        error
fi

This thread suggests manually editing dbus config files, which I don't want to do, as they will be overwritten by updates.

Offline

#2 2012-09-17 13:18:18

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: Trouble with netcfg and wifi networks

Bump, please and thank you..

Offline

#3 2012-09-30 20:13:02

Dr_Deadmeat
Member
Registered: 2011-10-18
Posts: 2

Re: Trouble with netcfg and wifi networks

You could try to let the security only be wpa and not wpa-config. I have never used wpa-config, but with wpa I won't need to specify WPA_CONF='/etc/wpa_supplicant/wpa_supplicant.conf' and it works out of the box. At least for me. Here is my config. As you can see, it is really simple, but it gets the job done. I am not sure if this helps, but it is at least something you could try.

CONNECTION='wireless'
DESCRIPTION='My network'
INTERFACE='wlan0'
SECURITY='wpa'
ESSID='<essid>'
KEY='<wpa-key>'
IP='dhcp' 

Oh and btw. bumping threads is generally frowned upon and actually not allowed according to the forum etiquette, so you should at least try to add something to your post before you bump it (to make it seem that you are not bumping for the sake of bumping it)

You can read more about the forum etiquete here https://wiki.archlinux.org/index.php/Fo … te#Bumping

Offline

#4 2012-09-30 21:47:28

regitator
Member
Registered: 2010-08-10
Posts: 26

Re: Trouble with netcfg and wifi networks

You could try to let wifi-menu create a profile for you and see if that works.

Offline

#5 2012-10-01 02:53:44

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 13,829

Re: Trouble with netcfg and wifi networks

I am sorry, what is the question?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
You assume people are rational and influenced by evidence.  You must not work with the public much. -- Trilby
----
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB