You are not logged in.

#1 2014-08-19 12:03:17

klenamenis
Member
Registered: 2014-07-03
Posts: 101

Cannot connect to wireless networks

Hey,

I'm struggling with my wlan connection. It's not a laptop and there's usually a lan connection, but for now I need it wireless. So I plugged my usb-stick in, checked for drivers being loaded and installed networkmanager in order to have a nice xfce4-plugin so I can configure and switch my connections graphically. However, when I select a wifi network, I enter the password when asked and the connection breaks up almost immediately. I'm quite sure it has something to do with wpa_supplicant as both networks are WPA2 encrypted. I also tried wpa_gui, but it doesn't work either. I definitly used the correct passphrases, other devices connect properly. Below are some outputs, I hope you guys have some advices for me:

lsusb | grep RT

Bus 003 Device 003: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter

lsmod | grep rt2

rt2800usb              21418  0 
rt2x00usb               9346  1 rt2800usb
rt2800lib              76675  1 rt2800usb
rt2x00lib              39175  3 rt2x00usb,rt2800lib,rt2800usb
led_class               3611  1 rt2x00lib
mac80211              495361  3 rt2x00lib,rt2x00usb,rt2800lib
crc_ccitt               1363  1 rt2800lib
cfg80211              437959  2 mac80211,rt2x00lib
usbcore               188509  12 uas,snd_usb_audio,rt2x00usb,usb_storage,rt2800usb,snd_usbmidi_lib,ehci_hcd,ehci_pci,gspca_main,usbhid,gspca_zc3xx,xhci_hcd

ip link

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether MAC_ADRESS#1 brd ff:ff:ff:ff:ff:ff
3: wlp0s20u10: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
    link/ether MAC_ADRESS#2 brd ff:ff:ff:ff:ff:ff

iwconfig wlp0s20u10

wlp0s20u10  IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

Status message of wpa_gui

Could not get status from wpa_supplicant

Offline

#2 2014-08-19 12:19:47

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

Re: Cannot connect to wireless networks

The Manual Setup section on the wiki's Wireless page is the best way to debug this stuff - once you have it working that way, you can put your fancy gui back on top of it.

Offline

#3 2014-08-19 12:20:48

lahwaacz
Wiki Admin
From: Czech Republic
Registered: 2012-05-29
Posts: 764

Re: Cannot connect to wireless networks

The output of 'dmesg' should reveal what's going on...

Offline

#4 2014-08-19 13:12:48

klenamenis
Member
Registered: 2014-07-03
Posts: 101

Re: Cannot connect to wireless networks

Of course, I tried but failed at

wpa_supplicant -i wlp0s20u10 -c <(wpa_passphrase SSID PASS)

Successfully initialized wpa_supplicant
Failed to open config file '/proc/self/fd/11', error: No such file or directory
Failed to read or parse configuration '/proc/file/fd/11' 

Offline

#5 2014-08-19 19:52:20

loqs
Member
Registered: 2014-03-06
Posts: 18,335

Re: Cannot connect to wireless networks

klenamenis wrote:

Of course, I tried but failed at

wpa_supplicant -i wlp0s20u10 -c <(wpa_passphrase SSID PASS)

Successfully initialized wpa_supplicant
Failed to open config file '/proc/self/fd/11', error: No such file or directory
Failed to read or parse configuration '/proc/file/fd/11' 

Was that command run with sudo by any chance?  That would fail as the redirecting is done by the shell not by sudo giving you the errors you see.

Offline

#6 2014-08-19 23:05:16

klenamenis
Member
Registered: 2014-07-03
Posts: 101

Re: Cannot connect to wireless networks

loqs wrote:

Was that command run with sudo by any chance?  That would fail as the redirecting is done by the shell not by sudo giving you the errors you see.

Yup... a bit emberassing I didn't think auf that tongue

Anyway, it's giving me following output now for two different networks I'm absoloutly shure the passphrase is right (has been tested):

Successfully initialized wpa_supplicant
wlp0s20u10: CTRL-EVENT-SCAN-STARTED 
wlp0s20u10: SME: Trying to authenticate with MAC_ADRESS (SSID='SMCk' freq=2462 MHz)
wlp0s20u10: Trying to associate with MAC_ADRESS (SSID='SMCk' freq=2462 MHz)
wlp0s20u10: Associated with MAC_ADRESS
wlp0s20u10: CTRL-EVENT-DISCONNECTED bssid=MAC_ADRESS reason=3 locally_generated=1
wlp0s20u10: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlp0s20u10: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="SMCk" auth_failures=1 duration=10 reason=WRONG_KEY
wlp0s20u10: CTRL-EVENT-SCAN-STARTED 
[... again and again ...]

Offline

Board footer

Powered by FluxBB