You are not logged in.

#1 2015-04-17 06:50:15

ezstyles
Member
Registered: 2015-04-11
Posts: 14

Cannot connect to internet via wireless

Hello I am having issues with my wireless network configuration. From what I can tell, my wireless should be plug and play. Yes, I have read the wiki. My wireless is the Alfa awus036h

ip link shows no-carrier

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: enp60s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether f0:79:59:85:15:48 brd ff:ff:ff:ff:ff:ff
5: wlp0s20u4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:c0:ca:81:c9:a3 brd ff:ff:ff:ff:ff:ff

I tried searching this issue but the results seem to pertain to wired configurations where the wire is not plugged in.

iwconfig shows no access point

iwconfig
wlp0s20u4  IEEE 802.11bg  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

I assume that's because it's not on a network
wifi-menu fails to connect referencing journalctl -xe which says failed to start networking.

trying to connect via terminal with

wpa_supplicant -B -i wlp0s20u4 -c <(wpa_passphrase "ssid" "psk")

shows:

Successfully initialized wpa_supplicant
wlp0s20u4: Failed to initialize driver interface

but when I

dmesg | grep rtl
[   23.339966] ieee80211 phy0: hwaddr 00:c0:ca:81:c9:a3, RTL8187vB (default) V1 + rtl8225z2, rfkill mask 2
[   23.347958] rtl8187: Customer ID is 0xFF
[   23.348269] rtl8187: wireless switch is on
[   23.348296] usbcore: registered new interface driver rtl8187
[   23.350179] rtl8187 3-4:1.0 wlp0s20u4: renamed from wlan0
[  399.681266] ieee80211 phy1: hwaddr 00:c0:ca:81:c9:a3, RTL8187vB (default) V1 + rtl8225z2, rfkill mask 2
[  399.689223] rtl8187: Customer ID is 0xFF
[  399.689545] rtl8187: wireless switch is on
[  399.691533] rtl8187 3-4:1.0 wlp0s20u4: renamed from wlan0
[ 2365.097867] ieee80211 phy2: hwaddr 00:c0:ca:81:c9:a3, RTL8187vB (default) V1 + rtl8225z2, rfkill mask 2
[ 2365.105956] rtl8187: Customer ID is 0xFF
[ 2365.106279] rtl8187: wireless switch is on
[ 2365.108568] rtl8187 3-4:1.0 wlp0s20u4: renamed from wlan0

does this not mean my switch is on and the driver is running? What am I missing?

Thanks,
Ez

Offline

#2 2015-04-17 07:52:30

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

Re: Cannot connect to internet via wireless

Try to add the "-D wext" option to your wpa_supplicant line. Does wifi-menu show available networks but fail to connect or does it not show networks? Does "dmesg |grep firmware" show a firmware for the device loaded?


The painting in my profile is "Eros" by Paul Klee. He is credited in the lower left, but that got blurry during the downscale.

Offline

#3 2015-04-17 14:49:45

ezstyles
Member
Registered: 2015-04-11
Posts: 14

Re: Cannot connect to internet via wireless

Here is the output with -D wext added:

Successfully initialized wpa_supplicant
Could not read interface -D flags: No such device
nl80211: Driver does not support authentication/association or connect commands
Could not read interface -D flags: No such device
Could not read interface -D flags: No such device
Could not read interface -D flags: No such device
-D: Failed to initialize driver interface

wifi-menu does show available networks, but fails to connect.

here is the output of dmesg:

 dmesg |grep firmware
[   22.917675] bluetooth hci0: Direct firmware load for brcm/BCM20702A0-13d3-3404.hcd failed with error -2
[   23.549341] psmouse serio4: elantech: assuming hardware version 4 (with firmware version 0x360f06)

Offline

#4 2015-04-17 15:08:09

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Cannot connect to internet via wireless

What is the output of:

rfkill list

This looks relevant:
https://bbs.archlinux.org/viewtopic.php … 9#p1431609


Jin, Jîyan, Azadî

Offline

#5 2015-04-17 21:03:09

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

Re: Cannot connect to internet via wireless

@Head_on_a_stick: Similar but unfortunately not the same chip. The OP's is rtl8187 (without the SE). First row in the table of http://linuxwireless.org/en/users/Drivers/rtl8187/

@ezstyles: Please post the exact wpa_supplicant command you used with the -Dwext option. Other than an error there I dont have much more suggestions. There is no firmware loaded for it, but since it does not give an error ... Perhaps try if it connects to a network without WPA at all.


The painting in my profile is "Eros" by Paul Klee. He is credited in the lower left, but that got blurry during the downscale.

Offline

#6 2015-04-17 21:30:44

ezstyles
Member
Registered: 2015-04-11
Posts: 14

Re: Cannot connect to internet via wireless

@Head_on_a_Stick:
rfkill list comes back command not found

@Strike0:
Exact command is

wpa_supplicant -B -i -D wext wlp0s20u4 -c <(wpa_passphrase "ssid" "psk")

Also, same result when trying to connect to unsecured networks

Offline

#7 2015-04-17 21:34:50

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Cannot connect to internet via wireless

ezstyles wrote:

@Head_on_a_Stick:
rfkill list comes back command not found

...and that's why we love Arch:

# pacman -S rfkill

@Strike0:
Exact command is

wpa_supplicant -B -i -D wext wlp0s20u4 -c <(wpa_passphrase "ssid" "psk")

Also, same result when trying to connect to unsecured networks

Did you actually type "ssid" & "psk" or did you replace these with the name of the access point (SSID) and the password (PSK)?


Jin, Jîyan, Azadî

Offline

#8 2015-04-17 21:40:15

ezstyles
Member
Registered: 2015-04-11
Posts: 14

Re: Cannot connect to internet via wireless

rfkill list
1: asus-wlan: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: asus-bluetooth: Bluetooth
	Soft blocked: yes
	Hard blocked: no
3: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

I replaced those haha. Just didn't want to post that info online

I just booted into Arch on my usb and it worked fine through that. I must have something misconfigured somewhere but I'm not sure where to look

Last edited by ezstyles (2015-04-17 21:41:30)

Offline

#9 2015-04-17 21:48:42

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Cannot connect to internet via wireless

Remove the "asus-wlan" module & try again:

# modprobe -rv asus-wlan

EDIT: It may be called something else.

lsmod|grep asus

Last edited by Head_on_a_Stick (2015-04-17 21:54:15)


Jin, Jîyan, Azadî

Offline

#10 2015-04-17 21:53:42

ezstyles
Member
Registered: 2015-04-11
Posts: 14

Re: Cannot connect to internet via wireless

modprobe -rv asus-wlan
modprobe: FATAL: Module asus-wlan not found.

Same result with sudo

Offline

#11 2015-04-17 21:54:51

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Cannot connect to internet via wireless

See my edit.


Jin, Jîyan, Azadî

Offline

#12 2015-04-17 22:19:54

ezstyles
Member
Registered: 2015-04-11
Posts: 14

Re: Cannot connect to internet via wireless

results from lsmod

lsmod | grep asus
asus_nb_wmi            20664  0 
asus_wmi               22781  1 asus_nb_wmi
sparse_keymap          12818  1 asus_wmi
led_class              12855  2 rtl8187,asus_wmi
hwmon                  12930  2 coretemp,asus_wmi
rfkill                 18867  3 cfg80211,bluetooth,asus_wmi
video                  22205  2 i915,asus_wmi
wmi                    17339  2 mxm_wmi,asus_wmi

I modprobed asus_wmi, but same results

Offline

#13 2015-04-17 22:22:50

Tutti
Member
Registered: 2015-02-26
Posts: 117

Re: Cannot connect to internet via wireless

ezstyles wrote:

Exact command is

wpa_supplicant -B -i -D wext wlp0s20u4 -c <(wpa_passphrase "ssid" "psk")

what do you get if you run:

wpa_supplicant -B -D wext -i wlp0s20u4 -c <(wpa_passphrase "ssid" "psk")

?

Offline

#14 2015-04-17 22:25:14

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

Re: Cannot connect to internet via wireless

@Strike0:
Exact command is

wpa_supplicant -B -i -D wext wlp0s20u4 -c <(wpa_passphrase "ssid" "psk")

That does not work and it was the reason for your error above. You need to keep the "-i wlp0s20u4" together.
edit: Tutti was faster smile

Last edited by Strike0 (2015-04-17 22:32:46)


The painting in my profile is "Eros" by Paul Klee. He is credited in the lower left, but that got blurry during the downscale.

Offline

#15 2015-04-17 22:31:56

ezstyles
Member
Registered: 2015-04-11
Posts: 14

Re: Cannot connect to internet via wireless

wpa_supplicant -B -D wext -i wlp0s20u4 -c <(wpa_passphrase "ssid" "psk")
Successfully initialized wpa_supplicant
ioctl[SIOCSIWPMKSA]: Operation not permitted
ioctl[SIOCSIWMODE]: Operation not permitted
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWESSID]: Operation not permitted
l2_packet_init: socket(PF_PACKET): Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Operation not permitted
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWESSID]: Operation not permitted
Could not set interface wlp0s20u4 flags (DOWN): Operation not permitted

with sudo:

successfully initialized wpa_supplicant
Failed to open config file '/dev/fd/63', error: No such file or directory
Failed to read or parse configuration '/dev/fd/63'.

Offline

#16 2015-04-17 22:33:17

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

Re: Cannot connect to internet via wireless

execute it as root.
(edit: It will not work with sudo like that.)

Last edited by Strike0 (2015-04-17 22:40:19)


The painting in my profile is "Eros" by Paul Klee. He is credited in the lower left, but that got blurry during the downscale.

Offline

#17 2015-04-17 22:44:05

ezstyles
Member
Registered: 2015-04-11
Posts: 14

Re: Cannot connect to internet via wireless

When run as root:

Successfully initialized wpa_supplicant
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument

Offline

#18 2015-04-17 22:49:44

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

Re: Cannot connect to internet via wireless

Ok, that means "-D wext" was the wrong path, sorry.


The painting in my profile is "Eros" by Paul Klee. He is credited in the lower left, but that got blurry during the downscale.

Offline

#19 2015-04-17 22:58:10

ezstyles
Member
Registered: 2015-04-11
Posts: 14

Re: Cannot connect to internet via wireless

Ok, weird. As I was sitting here, I noticed my wireless network pop up in my status bar with 100% connectivity. Unplugged ethernet, and it's working... I have no idea what happened, but it's working

Offline

#20 2015-04-17 23:00:07

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Cannot connect to internet via wireless

I always create a configuration file rather than pipe the output from wpa_passphrase:

# echo "ctrl_interface=DIR=/run/wpa_supplicant" > /etc/wpa_supplicant/test.conf
# wpa_passphrase SSID password >> /etc/wpa_supplicant/test.cont
# wpa_supplicant -B -i wlp0s20u4 -c /etc/wpa_supplicant/test.conf
# dhcpcd wlp0s20u4

It is unlikely to make any difference, but...

EDIT: Congratulations on your success!
smile

Last edited by Head_on_a_Stick (2015-04-17 23:00:45)


Jin, Jîyan, Azadî

Offline

#21 2015-04-17 23:09:01

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

Re: Cannot connect to internet via wireless

Yay, congrats .. now the only thing you need to do: don't shutdown smile
You can, btw, also specify "-D wext,nl80211" (or the other way round, first will be tried first by wpa_supplicant)


The painting in my profile is "Eros" by Paul Klee. He is credited in the lower left, but that got blurry during the downscale.

Offline

#22 2015-04-17 23:16:17

ezstyles
Member
Registered: 2015-04-11
Posts: 14

Re: Cannot connect to internet via wireless

@Strike0:
Well... it's a bit late for that. Rebooted=no wireless. sad I supposse that was bound to happen. I'd like to actually understand what is wrong and how to fix it rather than have it just happen anyway. Do you know of any good resources I could read into? The wikis aren't telling me much

Offline

#23 2015-04-17 23:25:53

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

Re: Cannot connect to internet via wireless

Well, when I wrote "wrong path" in #18 above, I might as well have been wrong (I was on duckduckgo myself looking for it).

First thing you can look at the journal of the boot before ("journalctl -b -1 |grep wpa_supplicant" I think) to see when it started working. Then you can start wpa_supplicant next time with "-d" to gain more output what happens. (edit: and dont use "-B" to start it in the background, so you see it in the console already). 

In the end the only things you tried were removing that one asus module and trying the "wext" driver first. That should be reproducible I would hope.

Last edited by Strike0 (2015-04-17 23:27:28)


The painting in my profile is "Eros" by Paul Klee. He is credited in the lower left, but that got blurry during the downscale.

Offline

#24 2015-04-17 23:40:55

ezstyles
Member
Registered: 2015-04-11
Posts: 14

Re: Cannot connect to internet via wireless

ok so it appears that running the command as root is what fixes it because I'm connected again. How would I go about setting it up so that I don't have to run that command every time I boot?

Offline

#25 2015-04-17 23:43:17

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Cannot connect to internet via wireless

ezstyles wrote:

How would I go about setting it up so that I don't have to run that command every time I boot?

There are many methods of connecting but if you want to use `wpa_supplicant` then follow this guide:
https://wiki.archlinux.org/index.php/Wi … 2Fservices


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB