Hi

I'm trying to get TP-LINK TL823N working on a Kali install on RPI2. Unfortunately the device is not automatically recognised by Linux.

The wifi adapter is available on device 005 - tested it with unplugging, running lsusb and plugging, running lsusb again.
Code:
Bus 001 Device 005: ID 2357:0109
Bus 001 Device 004: ID 0603:0002 Novatek Microelectronics Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
IFconfig does not recognice wlan0 at all. Same with iwconfig
Code:
root@kali:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.178.25  netmask 255.255.255.0  broadcast 192.168.178.255
        inet6 fe80::587f:244d:e2a7:d6ab  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:d1:21:be  txqueuelen 1000  (Ethernet)
        RX packets 18308  bytes 25146067 (23.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2210  bytes 264356 (258.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@kali:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.
dmesg shows the following:

Code:
[ 2685.353252] usb 1-1.5: USB disconnect, device number 5
[ 2692.247001] usb 1-1.5: new high-speed USB device number 6 using dwc_otg
[ 2692.368328] usb 1-1.5: New USB device found, idVendor=2357, idProduct=0109
[ 2692.375239] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2692.382638] usb 1-1.5: Product: 802.11n NIC
[ 2692.386966] usb 1-1.5: Manufacturer: Realtek
[ 2692.391353] usb 1-1.5: SerialNumber: 00e04c000001
On the TP link website there are drivers availabe for Linux but I am not able to compile these. I'm guessing due to missing Linux headers which i'm not able to install.
http://nl.tp-link.com/res/down/soft/...0315_Linux.zip
This zip contains a PDF file with instructions on how to install the drivers
So I did a WGET on the zip
unzipped the drivers to my homefolder (had some issues with the foldernames, used windows to unzip, re-zip the file and posted to my rpi kali home folder against using pscp transfer)

SO the PDF in the file states that I need to configure the makefile.c:

Code:
ifeq ($(CONFIG_PLATFORM_I386_PC), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN SUBARCH := $(shell uname -m | sed -e s/i.86/i386/) 
ARCH ?= $(SUBARCH) 
CROSS_COMPILE ?= 
KVER  := $(shell uname -r) 
KSRC := /lib/modules/$(KVER)/build 
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ INSTALL_PREFIX := endif 

· KSRC is used to specify the kernel source path for driver compilation. 
· CROSS_COMPILE is used to specify the toolchain. 
· ARCH is used to specify the target platform's CPU architectures such as arm, mips, i386 and so on.
Unfortunately I have no clue what to adjust in here, so I just ran the make command

Code:
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/4.1.19-v7/build M=/root/Driver  modules
make[1]: *** /lib/modules/4.1.19-v7/build: No such file or directory.  Stop.
Makefile:1696: recipe for target 'modules' failed
make: *** [modules] Error 2
So i searched the internet on installing drivers and compiling these and found some informtaion that I would ened to install Linux headers first before being able to compile drivers. As you can see, this was not succesfull either. This issue is also desribed in https://forums.kali.org/showthread.p...1-19-armel-!!! but unfortunately no closing answer provided yet.
Code:
root@kali:~/Driver# apt-get install linux-headers-$(uname -r) build-essential dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.1.19-v7
E: Couldn't find any package by glob 'linux-headers-4.1.19-v7'
E: Couldn't find any package by regex 'linux-headers-4.1.19-v7'
root@kali:~/Driver#
So brings me to the question;

Can someone guide me into the correct direction to get this wifi adapter working in this Linux distribution?
Am I taking the correct steps or should I do something else?