rtl8188eu icon indicating copy to clipboard operation
rtl8188eu copied to clipboard

Device does not appear in rfkill list

Open spl237 opened this issue 7 years ago • 10 comments

When the userland rfkill application is run with the "list wifi" argument, this device is not found - I assume this is something to do with the rfkill code in the driver.

spl237 avatar Nov 23 '17 10:11 spl237

Same issue here with TL-WN725N dongle, using ubuntu 19.04 with kernel 5.0.0-13-generic

So this is not useable because networkmanager can't rfkill unblock it

solsticedhiver avatar Apr 19 '19 07:04 solsticedhiver

What do 'rfkill list' and 'iw dev' show?

lwfinger avatar Apr 19 '19 20:04 lwfinger

rfkill list or iw dev do not show the interface at all.

The device is shown in

 $ lsusb
 [...]
 Bus 003 Device 009: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
 [...]

or

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: ...
    ...
3: wlp2s0: ...
    ...
9: wlxc46e1fxxxxxx: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff

solsticedhiver avatar Apr 20 '19 02:04 solsticedhiver

You must be using the "master" branch. That one does not use mac80211, and is somewhat incompatible with some distros user space. Checkout branch v5.2.2.4 and try it.

lwfinger avatar Apr 20 '19 02:04 lwfinger

Yes. Works better with v5.2.2.4. So was it written somewhere and I have missed it or one have to guess that we need v5.2.2.4 ?

The issue was the same on archlinux.

The mainline kernel driver r8188eu (that I am guessing is the same driver ?) has also the same issue.

solsticedhiver avatar Apr 20 '19 07:04 solsticedhiver

Yes, the driver in the kernel also does not use mac80211. It needs to be replaced, but I do not have any time.

lwfinger avatar Apr 20 '19 16:04 lwfinger

Broken even from the v5.2.2.4 branch. Do you know what else to try? I am using Archlinux.

lpapp avatar Dec 05 '19 18:12 lpapp

Are you compiling it withCFG80211 enabled? It may not pay any attention to rfkill. Why is that a problem?

lwfinger avatar Dec 05 '19 21:12 lwfinger

I am not sure. Just make. I do not specify anything else.

lpapp ~ $ sudo wpa_supplicant -Dwext -B -i wlp0s29u1u2 -c /etc/wpa_supplicant/example.conf Successfully initialized wpa_supplicant rfkill: Cannot get wiphy information ioctl[SIOCSIWAP]: Operation not permitted ioctl[SIOCSIWENCODEEXT]: Invalid argument ioctl[SIOCSIWENCODEEXT]: Invalid argument lpapp ~ $ sudo wpa_supplicant -B -i wlp0s29u1u2 -c /etc/wpa_supplicant/example.conf Successfully initialized wpa_supplicant nl80211: Driver does not support authentication/association or connect commands nl80211: deinit ifname=wlp0s29u1u2 disabled_11b_rates=0 wlp0s29u1u2: Failed to initialize driver interface lpapp ~ $

lpapp avatar Dec 05 '19 23:12 lpapp

OK, I rebuilt the driver. Now, when I use the v5.2.2.4 branch. And I plug in my device, the kernel crashes. It also crashes from master. Why?

5.4.2-arch1-1

Are you supposed to support 5.4.2 as that seems to be a bit ahead of 5.2.2.4 in your branch name?

lpapp avatar Dec 06 '19 12:12 lpapp

@lpapp Have you solved the problem? Same here with linux kernel 6.0.2

SteveBetter avatar Oct 22 '22 07:10 SteveBetter

@lpapp: Your kernel crashes because it detected an error. What error? Sorry, that information is only available on your computer and no error logging was provided here.

The branch name is the version of the driver as specified by Realtek. The kernel number comes from Linus Torvalds. There is no reason that they should have any correspondence. In addition, I am a volunteer. It is not my responsibility to support anything! This kind of demand just makes me furious, which is why I took so long to answer!!!

lwfinger avatar Oct 22 '22 19:10 lwfinger

lwfinger: I do not know what you mean. When I wrote that "Just make", I meant that I executed the make command only. Did you get that as a demand? In any case, you must have misunderstood me.

Steve: I stopped using Linux long time ago, and even when I used, this was a minor issue for me. So, was not worth of my time to find a solution to this.

lpapp avatar Oct 22 '22 19:10 lpapp