Hi! I’ve installed fedora 36 recently. But my wifi adapter doesn’t work properly. I can see available networks but can’t connect to them.
Adapter model: TP Link TL-WN823N-V2
I downloaded driver and followed steps in this link https://static.tp-link.com/2018/201812/20181207/Installation%20Guide%20for%20Linux.pdf but when use “make” command, i got the following error:
cc1: some warnings being treated as errors
make: *** [scripts/Makefile.build:249: /home/oguz/Downloads/TL-WN823N_V2_160315_Linux/Driver/core/rtw_cmd.o] Error 1
make: *** [Makefile:1850: /home/oguz/Downloads/TL-WN823N_V2_160315_Linux/Driver] Error 2
make: Leaving directory ‘/usr/src/kernels/5.19.10-200.fc36.x86_64’
make: *** [Makefile:1696: modules] Error 2
Can you help me with this driver installation?
So far I’ve installed Development Tools, Development Libraries and dkms. Btw I have internet connection with ethernet cable (using my laptop as bridge).
Hi, try this driver:
Next time consider device with out of the box linux support, here’s a handy list:
This file has been truncated.
## USB WiFi Adapters that are supported with Linux ```in-kernel``` drivers
Important: Price and availability of listed adapters is subject to change. Updating the list of adapters does take a considerable amount of time. I try to complete a review of the links at least once per month. This site has increased in popularity to the point that readers of this site may cause inventory problems for some sellers at times so you may need to wait for inventory to be refreshed. To help with this problem, I have listed multiple links from multiple sellers for some products. If you see any problems or have links that should be added, please post in `Issues.`
Market Conditions: 2022-09-20 - Many good adapters are available. Prices for some, but not all, adapters are still higher than before the pandemic and certainly higher than we would like to see. The global shortage of chips caused by fab plants being shut down for periods during 2020/2021 and the inadequate investment in new fab plants for many years has led to tight markets that have caused high prices for some products and shortages of some products. This problem has recently been compounded by international shipping problems, continued outbreaks of COVID-19 and the war in Ukraine. Higher than normal prices as well as periodic shortages may continue for some time...possibly into 2023. Most of you should be able to find something that meets your needs at a price you can afford if you shop around.
### Tri Band USB WiFi Adapters that are supported with Linux ```in-kernel``` drivers
#### AX3000 - USB3 - 2.4 GHz, 5 GHz and 6 GHz (WiFi 6E)
##### ```chipset - Mediatek mt7921au - supported in-kernel since Linux kernel 5.18 (2022) (AP Mode support added in kernel 5.19)```
With your adapter plugged in please run
lsusb and send us the line that is related to the adapter. It will have a part that looks like
ID xxxx:xxxx and that gives us the exact chipset for that adapter.
Manufacturers do update the chipset, even within the same model of adapter, so the driver you are working with may or may not be correct. The link you post leads to this which is certainly not a guide for building the driver. It then leads to a lot of digging to even find your adapter info.
The third line of what you posted indicates that might actually be a realtech chipset and thus might need a different driver but more info is needed to confirm.
The guide I found for that adapter is for kernel 4.13 and only shows ubuntu 16.04 so it is rather out of date and certainly may not be able to be followed without modifying the commands, or possibly even the make file.
Is this the file you downloaded?
If it is, then the data on that site explicitly tells you it was written to support the OLD kernels 2.6.18 ~ 3.10.10 and it may or may not be able to even be compiled on a 5.19 kernel system.
I downloaded and tried compiling that driver and I get this.
$ sudo make
"NO SKRC,we will use default KSRC"
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.19.10-200.fc36.x86_64/build M=/home/jvian/test/tp-link/TL-WN823N(US)_V2_160315_Linux/Driver modules
/bin/sh: -c: line 1: syntax error near unexpected token `('
/bin/sh: -c: line 1: `make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.19.10-200.fc36.x86_64/build M=/home/jvian/test/tp-link/TL-WN823N(US)_V2_160315_Linux/Driver modules'
make: *** [Makefile:1696: modules] Error 2
and the referenced line (1696) in the makefile is
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules
It is obvious that I do not have the same driver package since my makefile ends at line 1732 and your error references line 1850. Also yours shows a scripts subdir and mine does not have that.
You will need to
share the exact link to the file you downloaded so we can actually test your file for the error.
verify that you have the correct file by giving us the output from the
lsusb command as requested above.
Thank you all, somehow I solved it. I tried couple of things and they didn’t work first but when I opened pc couple of hours later to try your solutions, I could connect to wifi successfully. I tried
GitHub - Mange/rtl8192eu-linux-driver: Drivers for the rtl8192eu chipset for wireless adapters (D-Link DWA-131 rev E1 included!) and GitHub - ZeeRooo/RTL8192EU: Linux driver for Realtek RTL8192EU. . I can’t remember which one of them worked without errors but maybe it could help other who run into the same problem.
Thank you for the update. Those 2 sources are likely more up to date than the one at tp-link. One was last updated one month ago and the other only 2 years back.
Driver I linked is an updated version of this one (made to work with newer kernels). It’s based on newer driver from Realtek (in contrast to the other link), so in case of instability or poor performance, try it.