2020-12-05 21:27:12

by PGNet Dev

[permalink] [raw]
Subject: wifi dongle connected to USB/pci card, seen in hardware, but no wl* device created; udev, driver, &/or config?

hi,


I've got an older desktop running Fedora32 with

uname -rm
5.9.11-100.fc32.x86_64 x86_64

I've plugged a wifi dongle into a multiport USB3 pci card,


lspci | grep "USB 3"
02:00.0 USB controller: Fresco Logic FL1100 USB 3.0 Host Controller (rev 10)


On boot, the wifi hardware's seen

dmesg
...
[ 2.639873] systemd[1]: Starting udev Kernel Device Manager...
[ 2.643850] usb 8-4: New USB device found, idVendor=0bda, idProduct=b812, bcdDevice= 2.10
[ 2.643853] usb 8-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.643854] usb 8-4: Product: 802.11ac NIC
[ 2.643855] usb 8-4: Manufacturer: Realtek
[ 2.643856] usb 8-4: SerialNumber: 123456
[ 2.682834] systemd[1]: Started udev Kernel Device Manager.
...

lsusb | grep 008
Bus 008 Device 003: ID 0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]
Bus 008 Device 002: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

but hardware check for wlan/wlp* device, returns empty

iw list
(empty)

hwinfo --wlan
(empty)

in more detail,

hwinfo

the device is 'there', but unclassified

...
72: USB 00.0: 0000 Unclassified device
[Created at usb.122]
Unique ID: +4pb.2IcWyDScHM3
Parent ID: FZIx.tisqRJYDXEC
SysFS ID: /devices/pci0000:00/0000:00:04.0/0000:02:00.0/usb8/8-4/8-4:1.0
SysFS BusID: 8-4:1.0
Hardware Class: unknown
Model: "Realtek 802.11ac NIC"
Hotplug: USB
Vendor: usb 0x0bda "Realtek Semiconductor Corp."
Device: usb 0xb812 "802.11ac NIC"
Revision: "2.10"
Serial ID: "123456"
Speed: 480 Mbps
Module Alias: "usb:v0BDApB812d0210dc00dsc00dp00icFFiscFFipFFin00"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #71 (Hub)
...


existing default udev rules aren't creating a wlan device; I'd expected that they would ...

To get the device created -- when attached to the pci card -- is udev the right mechanism?

I'm not clear if the problem here is udev, driver &/or my config.

IF udev, what specific rule would create a USB network device for the dongle, either with a wlp* auto-name, or if need be, "wlan0"?

Or, what else needs be done to init the wl* dev?



2020-12-05 22:02:50

by Samuel Sieb

[permalink] [raw]
Subject: Re: wifi dongle connected to USB/pci card, seen in hardware, but no wl* device created; udev, driver, &/or config?

On 12/5/20 1:25 PM, PGNet Dev wrote:
>     lsusb | grep 008
>         Bus 008 Device 003: ID 0bda:b812 Realtek Semiconductor Corp.
> RTL88x2bu [AC1200 Techkey]

That chipset doesn't have a kernel driver.

There are a couple of available options:
https://github.com/cilynx/rtl88x2bu
https://github.com/RinCat/RTL88x2BU-Linux-Driver

> existing default udev rules aren't creating a wlan device; I'd expected
> that they would ...

The device can only be created if there's a driver to create it.

2020-12-05 23:51:41

by PGNet Dev

[permalink] [raw]
Subject: Re: wifi dongle connected to USB/pci card, seen in hardware, but no wl* device created; udev, driver, &/or config?

On 12/5/20 1:51 PM, Samuel Sieb wrote:

> On 12/5/20 1:25 PM, PGNet Dev wrote:

>> lsusb | grep 008

>> Bus 008 Device 003: ID 0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]

>

> There are a couple of available options:

> https://github.com/cilynx/rtl88x2bu

> https://github.com/RinCat/RTL88x2BU-Linux-Driver

>

>> existing default udev rules aren't creating a wlan device; I'd expected that they would ...

>

> The device can only be created if there's a driver to create it.



::facepalm::

well, it certainly help if I'd not just googled for ac1200 but ALSO paid attention to the fact I'd installed 88x2*a*u!



> https://github.com/aircrack-ng/rtl8812au



with CORRECT driver



> https://github.com/RinCat/RTL88x2BU-Linux-Driver





dkms-installed, on boot



dmesg | grep wl

[ 22.083177] RTW: rtw_ndev_init(wlan0) if1 mac_addr=44:01:bb:33:c4:1c

[ 22.318059] rtl88x2bu 8-4:1.0 wlp2s0u4: renamed from wlan0



iw dev

phy#0

Interface wlp2s0u4

ifindex 3

wdev 0x1

addr 44:01:bb:33:c4:1c

type managed

txpower 42949572.96 dBm



hwinfo --wlan | egrep "Device:|Modules:|File:"

Device: usb 0xb812 "802.11ac NIC"

Driver Modules: "88x2bu"

Device File: wlp2s0u4



pebkac. again.



thx o/