You are not logged in.

#1 2013-04-20 16:59:22

ingraft
Member
Registered: 2013-04-20
Posts: 1

Problems with netcfg, possibly wpa_supplicant.

Hi there.

I'm trying to connect to my wireless through netcfg during installation of Arch. My USB wifi adapter is an ASUS N13.
Grepped output of lsusb, if it's of any importance:

Bus 001 Device 018: ID 0b05:17ab ASUSTek Computer, Inc. USB-N13 802.11n Network Adapter (rev. B1) [Realtek RTL8192CU]

and lsmod:

rtl8192cu              64486  0 
rtlwifi                65533  1 rtl8192cu
rtl8192c_common        36575  1 rtl8192cu
mac80211              467685  3 rtlwifi,rtl8192c_common,rtl8192cu
usbcore               175061  7 rtlwifi,usb_storage,ehci_hcd,ehci_pci,usbhid,rtl8192cu,xhci_hcd

The first time I run wifi-menu on my interface, it (supposedly) connects fine but there's no internet access and ip route returns nothing.
This is the output from running iwconfig:

wlan0     IEEE 802.11bgn  ESSID:"julie60sofia29mathilde"  
          Mode:Managed  Frequency:2.422 GHz  Access Point: 70:71:BC:91:24:B9   
          Bit Rate=72.2 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=70/70  Signal level=-35 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:1   Missed beacon:0

If I try and reconnect, it says WPA Authentication/Association Failed. Third time it says it can't find any networks.
Odd.

I've been looking around the internet and in the debugging messages and it appears to be something with wpa_supplicant.
Running netcfg on the profile generated by the wifi-menu with debugging returns the following the first time:

DEBUG: Loading profile wlan0-julie60sofia29mathilde
DEBUG: Configuring interface wlan0
:: wlan0-julie60sofia29mathilde up DEBUG: status reported to profile_up as: 
DEBUG: Loading profile wlan0-julie60sofia29mathilde
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: Loading profile wlan0-julie60sofia29mathilde
DEBUG: Configuring interface wlan0
DEBUG: ethernet_up bring_interface up wlan0
DEBUG: ethernet_up dhcpcd -qL -t 10 wlan0
DEBUG: 
DEBUG: ethernet_up hostname archiso
[done]

And the second time:

DEBUG: Loading profile wlan0-julie60sofia29mathilde
DEBUG: Configuring interface wlan0
:: wlan0-julie60sofia29mathilde up DEBUG: status reported to profile_up as: 
DEBUG: Loading profile wlan0-julie60sofia29mathilde
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 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
[fail]

Running wpa_cli -i wlan0 -p /run/wpa_supplicant status manually tells me it's just scanning and iw wlan0 scan doesn't return anything. As I said, after a couple of tries with netcfg the search function dies and I have to take the USB dongle out and plug it back in scans the first two tries before going blank.

This is the netcfg profile:

CONNECTION='wireless'
DESCRIPTION='Automatically generated profile by wifi-menu'
INTERFACE='wlan0'
SECURITY='wpa'
ESSID=julie60sofia29mathilde
IP='dhcp'
KEY=*************

The wpa supplicant conf hasn't been touched.
At this point I'm rather clueless as to what's happening. Connecting to the WPA protected network worked fine with netcfg when I installed Arch on my laptop months ago.

Offline

#2 2013-04-20 18:22:08

stqn
Member
Registered: 2010-03-19
Posts: 1,189
Website

Re: Problems with netcfg, possibly wpa_supplicant.

Offline

#3 2013-04-20 18:42:21

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,277

Re: Problems with netcfg, possibly wpa_supplicant.

You can also try

modprobe -r rtl8192cu
modprobe rtl8192cu swenc=1

Offline

Board footer

Powered by FluxBB