LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-18-2012, 08:51 AM   #1
hellomynameisphil
LQ Newbie
 
Registered: Aug 2005
Distribution: CRUX and Arch
Posts: 11

Rep: Reputation: 0
Trouble with netcfg and wifi networks


Hello,

Arch Linux user here. Looking to resolve this issue to complete my transition to systemd.

lspci:
Code:
02:00.0 Ethernet controller: Atheros Communications Inc. AR242x / AR542x Wireless Network Adapter (PCI-Express) (rev 01)
The output of 'lsmod | grep ath'
Code:
ath5k                 125144  0 
ath                    12381  1 ath5k
mac80211              359685  1 ath5k
cfg80211              150293  3 ath,ath5k,mac80211
Network profile in /etc/network.d/
Code:
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):
Code:
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:
Code:
#!/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.
 
Old 09-18-2012, 10:56 PM   #2
hellomynameisphil
LQ Newbie
 
Registered: Aug 2005
Distribution: CRUX and Arch
Posts: 11

Original Poster
Rep: Reputation: 0
Bump!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
airodeump-ng not showing any wifi networks around me sushan1982 Linux - Wireless Networking 1 12-25-2011 04:50 PM
[SOLVED] Cannot see wifi networks nine9nine Linux - Newbie 8 02-10-2011 04:05 PM
Wifi Connecting to Random Networks... Mithic Linux - Wireless Networking 2 11-28-2006 04:23 PM
wifi and changing networks yukaputzer Linux - Newbie 1 12-18-2003 04:23 PM
How to change between networks with wifi yukaputzer Linux - Newbie 1 12-18-2003 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration