How to install Tl-WN822N v5 WiFi adaptor in Kali Linux

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
12

How to install Tl-WN822N v5 WiFi adaptor in Kali Linux

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
How to install Tl-WN822N v5 WiFi adaptor in Kali Linux
How to install Tl-WN822N v5 WiFi adaptor in Kali Linux
2019-08-03 07:18:56 - last edited 2022-07-29 02:52:50
Model: TL-WN822N  
Hardware Version: V5
Firmware Version:

The driver in the tplink website is a beta one and gives me errors when I make it.

I am trying to install it on a freshly downloaded and updated Kali Linux x64 on my laptop.

 

The WiFi adaptor is being detected as wlan1 and monitor mode works fine. But I am not able to connect to a AP even though it is able to scan and show lost of AP. 

 

I installed realtek drivers from GitHub and the WiFi adaptor is showing v4 and still not able to connect to any AP.

 

On windows and Mac it worls fine.

  0      
  0      
#1
Options
1 Accepted Solution
Re:How to install Tl-WN822N v5 WiFi adaptor in Kali Linux-Solution
2019-11-09 18:56:03 - last edited 2019-11-09 19:26:55

I successfully installed the tp-link driver on kali linux today.

Kali linux version: 5.2.0-kali2-amd64 (latest)

driver: https://github.com/ZeeRooo/RTL8192EU

device: Dell Inspiron 5577 gaming

Internal wifi: Intel dual band wireless 3165

 

$ lsusb shows TP-Link TL-WN822N Version 4 RTL8192EU

 

Helpful commands:

lsusb : shows what driver your current wireless cards are running

 

Issues I encountered:

1) bin/sh: 1: bc: not found

run following commands one by one:

$ apt-get update

$ apt install bc

$ sudo apt-get install linux-headers-$(uname -r)

*I don't remember the order 

Better to restart not sure.

 

2) Installed driver is not being used.

There might be an issue where rtl8xxxu driver will be used instead of the newly installed one. You can find that by lsusb.

rtl8xxxu is I guess a common driver(not a specific for your model). So we need to blacklist it. Run below command.

$ leafpad /etc/modprobe.d/rtl8xxxu-blacklist.conf

Initially there is no rtl8xxxu-blacklist.conf file, so need to create a new one. leafpad creates it automatically with above command.

In the file, type blacklist rtl8xxxu and then save and exit.

restart.

 

3) Turn of inbuilt wireless card.

check your internal wireless driver name using $ lsusb and blacklist it. I didn't try blacklisting internal wireless it but it should work.

 

Edit:

I am posting the order of comands I used from begining.

$ apt-get update

$ apt install bc

$ sudo apt-get install linux-headers-$(uname -r)

follow 4 steps under build guide in the github page.

 

 

If still doesn't work, follow below steps.

$ make clean
$ make

$ sudo cp 8192eu.ko /lib/modules/5.2.0-kali2-amd64/kernel/drivers/net/wireless/

$ depmod -a

$ modprobe 8192eu

$ insmod 8192eu.ko

restart

Recommended Solution
  0  
  0  
#8
Options
11 Reply
Re:How to install Tl-WN822N v5 WiFi adaptor in Kali Linux
2019-08-05 09:15:18

@AndeYashwanth 

 

As an open system, the linux OS is more complicated than Windows or Mac; we will do our best to help, but if still cannot be resolved, it is suggested to ask for some help from linux or github.

 

What is the kernel version of the kali linux laptop? What is the error with the beta driver installed? 

 

Is there any error message if you failed to connect to any AP? Have you ever tried to enter the wifi name and password manually to give it a shot? 

 

Besides, the chipset of the 822N V5 is Realtek RTL8192EU, try to find another driver for your linux laptop.

 

May it work. Good day. 

 

 

 

 

Nice to Meet You in Our TP-Link Community. Check Out the Latest Posts: Connect TP-Link Archer BE550 to Germany's DS-Lite (Dual Stack Lite) Internet via WAN Archer GE550 - BE9300 Tri-Band Wi-Fi 7 Gaming Router EasyMesh Is Available When Wi-Fi Routers Work in AP Mode as A Controller. Archer AX55V2 Supports WireGuard VPN, EasyMesh Ethernet Backhaul, IoT Network, Speed Limit,and More If you found a post or response helpful, please click Helpful (arrow pointing upward icon). If you are the author of a topic, remember to mark a helpful reply as the "Recommended Solution" (star icon) so that others can benefit from it.
  0  
  0  
#2
Options
Re:Re:How to install Tl-WN822N v5 WiFi adaptor in Kali Linux
2019-08-06 08:04:54 - last edited 2019-08-06 15:34:56

I did a fresh install of Kali linux and it's kernel version is 4.19.0-kali4-amd64.

I upgraded and updated and installed latest linux headers. I also installed dpkg.

I downloaded the driver and tried these commands in the terminal.

 

root@kali:~/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047# make clean
#make -C /lib/modules/4.19.0-kali4-amd64/build M=/root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047 clean
cd hal ; rm -fr */*/*/*.mod.c */*/*/*.mod */*/*/*.o */*/*/.*.cmd */*/*/*.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
root@kali:~/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.19.0-kali4-amd64/build M=/root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047  modules

make[1]: Entering directory '/usr/src/linux-headers-4.19.0-kali4-amd64'
  CC [M]  /root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_cmd.o
In file included from /root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/include/osdep_service.h:47,
                 from /root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/include/drv_types.h:27,
                 from /root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_cmd.c:17:
/root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/include/osdep_service_linux.h: In function ‘_init_timer’:
/root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/include/osdep_service_linux.h:299:8: error: ‘_timer’ {aka ‘struct timer_list’} has no member named ‘data’
  ptimer->data = (unsigned long)cntx;
        ^~
/root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/include/osdep_service_linux.h:300:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
  init_timer(ptimer);
  ^~~~~~~~~~
  _init_timer
In file included from /root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/include/drv_types.h:30,
                 from /root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_cmd.c:17:
/root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/include/wifi.h: At top level:
/root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/include/wifi.h:1031: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/include/osdep_service_linux.h:83,
                 from /root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/include/osdep_service.h:47,
                 from /root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/include/drv_types.h:27,
                 from /root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_cmd.c:17:
/usr/src/linux-headers-4.19.0-kali4-common/include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-4.19.0-kali4-common/scripts/Makefile.build:309: /root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047/core/rtw_cmd.o] Error 1
make[3]: *** [/usr/src/linux-headers-4.19.0-kali4-common/Makefile:1535: _module_/root/Downloads/TP-Link_Driver_Linux_series8_beta/rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047] Error 2
make[2]: *** [Makefile:146: sub-make] Error 2
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-kali4-amd64'
make: *** [Makefile:1828: modules] Error 2

 

 

________________________________________________________________________________________________________________________

I also installed 2017.1 version which has kernal 4.9 but still dosent work.

 

I also tried using this forum https://forums.linuxmint.com/viewtopic.php?f=239&t=268034&p=1461575&hilit=Rtl8192eu#p1461210

 

sudo apt-get update && sudo apt-get install git dkms build-essential
git clone https://github.com/jeremyb31/rtl8192eu-linux-driver.git
sudo dkms add ./rtl8192eu-linux-driver
sudo dkms install rtl8192eu/1.0

restart

 

But I still cant connect to a wireless AP.

I will tried to mauallly connect to an ap using

nmcli dev wifi connect <mySSID> password <myPassword>

but it still says

Connection failed.

 

  0  
  0  
#3
Options
Re:Re:Re:How to install Tl-WN822N v5 WiFi adaptor in Kali Linux
2019-08-07 09:16:22

@AndeYashwanth 

 

The current official driver does not support the kernel version of your own computer; meanwhile, from the error message you posted, the linux/slab.h. file was missed.

 

To solve it, please find the kmalloc and kfree file and include them to install the driver.

 

Still the same, I'm afraid that there is not much, try to contact the tech support of linux or ask for help from some linux users will be a good choice. 

 

Best regards. 

 

Nice to Meet You in Our TP-Link Community. Check Out the Latest Posts: Connect TP-Link Archer BE550 to Germany's DS-Lite (Dual Stack Lite) Internet via WAN Archer GE550 - BE9300 Tri-Band Wi-Fi 7 Gaming Router EasyMesh Is Available When Wi-Fi Routers Work in AP Mode as A Controller. Archer AX55V2 Supports WireGuard VPN, EasyMesh Ethernet Backhaul, IoT Network, Speed Limit,and More If you found a post or response helpful, please click Helpful (arrow pointing upward icon). If you are the author of a topic, remember to mark a helpful reply as the "Recommended Solution" (star icon) so that others can benefit from it.
  0  
  0  
#5
Options
Re:Re:Re:How to install Tl-WN822N v5 WiFi adaptor in Kali Linux
2019-10-10 05:14:45

@Kevin_Z 

Me too.I cannot use it in kali linux 2019 (kernel veraion 5.2).

  0  
  0  
#6
Options
Re:Re:Re:How to install Tl-WN822N v5 WiFi adaptor in Kali Linux
2019-10-11 08:00:01

@Chanlay 

 

As you can see, the kernel version exceeds the version supported by official driver,, you can search the driver online and give it a go. 

 

Good day. 

 

Nice to Meet You in Our TP-Link Community. Check Out the Latest Posts: Connect TP-Link Archer BE550 to Germany's DS-Lite (Dual Stack Lite) Internet via WAN Archer GE550 - BE9300 Tri-Band Wi-Fi 7 Gaming Router EasyMesh Is Available When Wi-Fi Routers Work in AP Mode as A Controller. Archer AX55V2 Supports WireGuard VPN, EasyMesh Ethernet Backhaul, IoT Network, Speed Limit,and More If you found a post or response helpful, please click Helpful (arrow pointing upward icon). If you are the author of a topic, remember to mark a helpful reply as the "Recommended Solution" (star icon) so that others can benefit from it.
  0  
  0  
#7
Options
Re:How to install Tl-WN822N v5 WiFi adaptor in Kali Linux-Solution
2019-11-09 18:56:03 - last edited 2019-11-09 19:26:55

I successfully installed the tp-link driver on kali linux today.

Kali linux version: 5.2.0-kali2-amd64 (latest)

driver: https://github.com/ZeeRooo/RTL8192EU

device: Dell Inspiron 5577 gaming

Internal wifi: Intel dual band wireless 3165

 

$ lsusb shows TP-Link TL-WN822N Version 4 RTL8192EU

 

Helpful commands:

lsusb : shows what driver your current wireless cards are running

 

Issues I encountered:

1) bin/sh: 1: bc: not found

run following commands one by one:

$ apt-get update

$ apt install bc

$ sudo apt-get install linux-headers-$(uname -r)

*I don't remember the order 

Better to restart not sure.

 

2) Installed driver is not being used.

There might be an issue where rtl8xxxu driver will be used instead of the newly installed one. You can find that by lsusb.

rtl8xxxu is I guess a common driver(not a specific for your model). So we need to blacklist it. Run below command.

$ leafpad /etc/modprobe.d/rtl8xxxu-blacklist.conf

Initially there is no rtl8xxxu-blacklist.conf file, so need to create a new one. leafpad creates it automatically with above command.

In the file, type blacklist rtl8xxxu and then save and exit.

restart.

 

3) Turn of inbuilt wireless card.

check your internal wireless driver name using $ lsusb and blacklist it. I didn't try blacklisting internal wireless it but it should work.

 

Edit:

I am posting the order of comands I used from begining.

$ apt-get update

$ apt install bc

$ sudo apt-get install linux-headers-$(uname -r)

follow 4 steps under build guide in the github page.

 

 

If still doesn't work, follow below steps.

$ make clean
$ make

$ sudo cp 8192eu.ko /lib/modules/5.2.0-kali2-amd64/kernel/drivers/net/wireless/

$ depmod -a

$ modprobe 8192eu

$ insmod 8192eu.ko

restart

Recommended Solution
  0  
  0  
#8
Options
Re:How to install Tl-WN822N v5 WiFi adaptor in Kali Linux
2019-11-11 01:14:20

@AndeYashwanth 

 

Glad to hear that you figured it out finally, congrats. smiley

 

And thanks for your sharing, it helps a lot.

 

Best regards. 

Nice to Meet You in Our TP-Link Community. Check Out the Latest Posts: Connect TP-Link Archer BE550 to Germany's DS-Lite (Dual Stack Lite) Internet via WAN Archer GE550 - BE9300 Tri-Band Wi-Fi 7 Gaming Router EasyMesh Is Available When Wi-Fi Routers Work in AP Mode as A Controller. Archer AX55V2 Supports WireGuard VPN, EasyMesh Ethernet Backhaul, IoT Network, Speed Limit,and More If you found a post or response helpful, please click Helpful (arrow pointing upward icon). If you are the author of a topic, remember to mark a helpful reply as the "Recommended Solution" (star icon) so that others can benefit from it.
  0  
  0  
#9
Options
Re:How to install Tl-WN822N v5 WiFi adaptor in Kali Linux
2020-06-26 16:01:06

@AndeYashwanth followed all your steps, still cannot install bc. 

  0  
  0  
#10
Options
Re:How to install Tl-WN822N v5 WiFi adaptor in Kali Linux
2020-07-03 20:38:37
  0  
  0  
#11
Options
Re:How to install Tl-WN822N v5 WiFi adaptor in Kali Linux
2021-02-01 15:48:03

@AndeYashwanth Thank you! Your instructions finally worked beautifully for me!

  0  
  0  
#12
Options

Information

Helpful: 0

Views: 53321

Replies: 11

Related Articles