I have a desktop that I need to connect to my home network through wifi; Iǘe tried a couple of those cheap wifi dongles but they don´t work: they are recognized by linux (kernel 6.3) but then they fail to connect.
One of the dongles have idVendor=0bda and idProduct=c811 (RTL_8821CU), the other has idVendor=0bda and idProduct=c820
Can you point me to a wifi dongle that works out of the box in Linux and is not too expensive?
The best option is look at product reviews on NewEgg, once you find a Linux friendly model and revision number just search local stores for that item. Rolling Linux distros have supported the more recent MediaTek USB chipset out of the box.
A common issue with generic USB wifi dongles is many OEMs have shifted towards Windows only chipsets or chipsets that are considered “non-free” on Linux. On Amazon for example the top four models are either MediaTek/RALink or Broadcom which won’t work on Linux or MacOS out of the box due to the non-opensouce drivers.
In the era of fewer Apple Authorized Dealers, your mileage is going to vary–most Mac owners haven’t needed an external wifi adapter after Apple redesigned their laptop antenna placement.
Going by the driver files on ASUS support site, their nano wifi 5 and wifi 6 adapters still use RealTek.
For the record, I’ve found an TX-AR9271 dongle that works almost out of the box, you just need to install the atheros nonfree firmware.
Anyway, can someone give some hint to find the issue with the RTL dongles? this is an extract from the syslog, to me it doesn’t seem to give any hint on what’s wrong, but maybe someone more knowledgeable than me can give me the solution:
try Amazon.com the tl-wn722n(which is in my hand) has worked “out of the box” on debian 11/12, linuxmint, windows 10/11 just great… YMMV, but it has worked for me
I’ve been using the Wireless N adapter from ThinkPenguin since 2020 with no issues. No driver installation required on any of the distros I use. Works as advertised.
I would check that morrownr GitHub page from above, really highlights what works, what doesn’t and the issues with all the wifi adapters for Linux - for example certain Realtek chips stop working on 6.1+ kernel due to the drivers relying in old hooks vs Linux’s direction.
The authentication problem is due to a bug in rtw88. It’s fixed now and the fix is in the stable kernels from 6.6 up. Maybe you can just update your distro and try again.
I think any wifi 4 Realtek chip you can find for sale these days is going to Just Work with a sufficiently recent kernel (6.5). Except 8723du, maybe avoid that one for a while.
Their wifi 5 chips are a bit trickier. The current generation (8822cu, 8822bu, 8821cu) is supposed to be supported by rtw88 out of the box, but as you see, there are bugs.
The older generation (8812au, 8821au, 8814au) are still sold but they’re becoming more rare. These are not supported out of the box yet, you have to get a driver from GitHub.
The Realtek wifi 6+ chips are not supported out of the box.
The other option for cheap and easy to find devices is Mediatek. For more information about those, visit https //github com/morrownr/USB-WiFi