You are not logged in.

#1 2012-11-25 09:55:06

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Problem with wifi connection using netcfg

Hi all,
This is my /etc/network.d/abc-wireless-wpa

CONNECTION='wireless'
DESCRITPTION='A simple WPA encrypted wireless connection'
INTERFACE='wlan0'
SECURITY='wpa'

'ESSID'='my-essid'
## Uncomment if the supplied ESSID is hexadecimal
#ESSID_TYPE='hex'
KEY='my passphare'                        ----->plain text

IP='dhcp'
# Uncomment this if your ssid is hidden
#HIDDEN=yes

netcfg version 3.0

$ lspci | grep Network
02:00.0 Network controller: Broadcom Corporation BCM43224 802.11a/b/g/n (rev 01)

brcmsmac, b43 module was loaded, wpa_supplicant enabled (systemctl enable..)

wifi info
WPA2/TKIP
Auth: PSK
ESSID: my-essid

password is true
When i connect by command: # NETCFG_DEBUG=yes netcfg abc-wireless-wpa

 ouput
DEBUG: Loading profile abc-wireless-wpa                                                                             [BUSY]
DEBUG: Configuring interface wlan0
:: abc-wireless-wpa up
DEBUG: status reported to profile_up as:
DEBUG: Loading profile abc-wireless-wpa
DEBUG: Configuring interface wlan0
DEBUG: wireless_up start_wpa wlan0 /run/network/wpa.wlan0/wpa.conf nl80211,wext
[ 2057.615891 ieee80211 phy1: brcms_ops_bss_info_changed: qos enabled: false (implement)
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 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                                                 [FAILED]
DEBUG: wpa_cli -i wlan0 -p /run/wpa_supplicant terminate

so i don't know why my connection fail. any suggestion? thank for reply.

Offline

#2 2012-11-25 10:16:21

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Problem with wifi connection using netcfg

Edit: Oops, had wrong info here before, I was thinking of a different card.

What you're doing is a bit confusing. First you say you've activated some wpa_supplicant module, but then you use netcfg. Use one tool and one tool only to connect. Also, post the output of dmesg.

Last edited by Gusar (2012-11-25 10:20:44)

Offline

#3 2012-11-25 17:59:41

angelfalls
Member
Registered: 2012-03-26
Posts: 139

Re: Problem with wifi connection using netcfg

sr for make confusing, i tried use wpa_supplicant or netcfg, result is the same output debug. i will re-test with my own AP later, maybe this password is wrong. tks for reply.

Offline

#4 2012-11-25 18:20:12

10PinkPanther
Member
From: Croatia
Registered: 2012-11-10
Posts: 374

Re: Problem with wifi connection using netcfg

I use netcfg with wpa_supplicant.For me netcfg alone don't works becouse wpa_supplicant is needed for wpa2-psk.Do you use b43 or brcmsmac?

Last edited by 10PinkPanther (2012-11-25 18:22:04)

Offline

#5 2012-11-25 18:50:44

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

Re: Problem with wifi connection using netcfg

Humor me.  What is the output of sudo iwlist scan  ??  Note, if it works, it will include your ESSID and MAC.  If you are paranoid, you can redact them when you post.

I use this as a touchstone to make ensure  that the interface is working.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2012-11-26 10:13:31

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 227

Re: Problem with wifi connection using netcfg

I think it's the line that say:

https://wiki.archlinux.org/index.php/WP … ation_file
"so that if your access point uses WEP or WPA, it will work in both case. But if it uses RSN (aka WPA2) it will not find it by itself, you have to append it to the other values."

Then, you need a line: proto=RSN

------------------------------
Too, /etc/network.d/examples/wireless-wpa-configsection works for me.

Also I have:
PSK=lot of numbers by key='my passphrase'.
Lot of number is that wpa_passphrase "mywireless_ssid" "secretpassphrase" yields.

wpa_passphrase "mywireless_ssid"

(It's in the link)

Last edited by Alber (2012-11-26 10:25:29)


Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.

Offline

#7 2012-11-26 10:21:53

10PinkPanther
Member
From: Croatia
Registered: 2012-11-10
Posts: 374

Re: Problem with wifi connection using netcfg

I use WPA2.It's very simple with wifi-menu.Select your network after scanning,enter your passphrase/password for network,enable net-auto-wireless and voila!At least for me it's the easiest way.All that is needed is netcfg and wpa_supplicant.

EDIT:If you use b43 you probably need to install b43-firmware and b43-fwcutter.I use b43 and couldn't get wireless without it on more than 90% of Linux distros I've used.

Last edited by 10PinkPanther (2012-11-26 10:28:09)

Offline

#8 2012-11-26 10:25:37

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Problem with wifi connection using netcfg

Use brcmsmac OR b43 - not both.

Offline

#9 2012-11-26 10:31:24

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Problem with wifi connection using netcfg

tomk wrote:

Use brcmsmac OR b43 - not both.

b43 won't work. For cards supported by both, brcmsmac will be used. That's how the Arch kernel is configured, changing that requires recompiling it.

Offline

Board footer

Powered by FluxBB