Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 09-30-2015, 03:07 PM   #1
LQ Newbie
Registered: Sep 2015
Posts: 1

Rep: Reputation: Disabled
TL-WDN3200 wireless adapter fails to connected to VMware Kali Linux


I am new with linux but recently decided to learn. I downloaded the VM of Kali Linux and trying to connect TPLink TL-WDN3200 USB wireless adapter. I think that default driver is not supported so need to build the supported driver. Google around and found the nice guideline at
But I stumbled over the compiling step with following error.
Complile code
make -C tools
make[1]: Entering directory '/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools'
cp -f os/linux/Makefile.6 /root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/Makefile
make -C /lib/modules/4.0.0-kali1-amd64/build SUBDIRS=/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.0.0-kali1-amd64'
Makefile:10: *** mixed implicit and normal rules: deprecated syntax
CC [M] /root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.o
/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.c: In function ‘RTMPQueryInformation’:
/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.c:4039:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
DBGPRINT(RT_DEBUG_TRACE, ("sizeof UCHAR=%d, channel=%d \n", sizeof(UCHAR), pAd->CommonCfg.Channel));
/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.c:4987:85: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.c:4987:95: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.c: In function ‘set_quality’:
/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.c:5548:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.0.0-kali1-common/scripts/ recipe for target '/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.o' failed
make[4]: *** [/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.o] Error 1
/usr/src/linux-headers-4.0.0-kali1-common/Makefile:1407: recipe for target '_module_/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux' failed
make[3]: *** [_module_/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux] Error 2
Makefile:145: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.0.0-kali1-amd64'
Makefile:388: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
The other details about my setup is as below:
root@osboxes:~/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:1f:71:ea
inet addr: Bcast: Mask:
inet6 addr: fe80::20c:29ff:fe1f:71ea/64 Scope:Link
RX packets:18122 errors:0 dropped:0 overruns:0 frame:0
TX packets:9447 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19865911 (18.9 MiB) TX bytes:1331074 (1.2 MiB)
lo Link encap:Local Loopback
inet addr: Mask:
inet6 addr: ::1/128 Scope:Host
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1440 (1.4 KiB) TX bytes:1440 (1.4 KiB)
wlan0 Link encap:Ethernet HWaddr 14:cc:20:17:4c:ab
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@osboxes:~/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022# lsusb
Bus 002 Device 002: ID 148f:5572 Ralink Technology, Corp. RT5572 Wireless Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0e0f:0008 VMware, Inc.
Bus 001 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 001 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

root@osboxes:~# dmesg | tail
[ 9417.769724] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 000f detected
[ 9417.778655] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 9419.063358] ieee80211 phy1: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[ 9419.080346] rt2800usb 2-1:1.0: firmware: direct-loading firmware rt2870.bin
[ 9419.080361] ieee80211 phy1: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
[10173.372113] wlan0: authenticate with xx:xx:xx:xx:xx:xx
[10175.653193] wlan0: send auth to xx:xx:xx:xx:xx:xx (try 1/3)
[10178.241342] wlan0: aborting authentication with xx:xx:xx:xx:xx:xx by local choice (Reason: 3=DEAUTH_LEAVING)
[12060.772152] device wlan0mon entered promiscuous mode
[12188.156112] device wlan0mon left promiscuous mode

The wireless adapter can also be monitor as shown below, and airodump-ng also working fine.
root@osboxes:~# iwconfig wlan0mon
wlan0mon IEEE 802.11abgn Mode:Monitor Frequency:2.422 GHz Tx-Power=20 dBm
Retry short limit:7 RTS thrff Fragment thrff
Power Managementff
The problems :
1. The wireless adapter is detected by kali and able to browse the available network, but is not able to connect to the router.
2. Please kindly help to how to solve the compile driver problem. Thanks in advance.

Old 09-30-2015, 03:30 PM   #2
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,629

Rep: Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652
you do know that VM's and wireless do not mix
a vm can not use the host wireless unless it is a usb and is past through

I am new with linux but recently decided to learn.
then before you go ONE step farther
DO NOT USE KALI!!!!!!!!!!!

kali is a single purpose operating system with the target user as one that dose have a masters degree in computer sciences and is MAJORING in network security

in the Debian famaly
well Debian
or Mint

in the redhat famaly
RHEL or Cent or OpenSUSE

all ( even RedHat Enterprise Linux 7.1 !!!) are better choice's than Kali

also kali has the network DISABLED by default as a SECURITY MEASURE


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] installing VMware tools in kali Linux Jc518 Linux - Newbie 7 09-04-2015 08:54 PM
AWUS026NEH usb wireless adapter on Kali reifi Linux - Networking 4 08-17-2015 11:11 PM
Install wireless adapter (TP-Link Archer T4U) on Kali virtual machine WZalm Linux - Newbie 1 04-30-2015 01:02 PM
Kali wireless adapter Mehardeep Linux - Wireless Networking 2 02-22-2015 08:07 AM
How can I identify which wireless adapter is connected? sudlatnid Linux - Wireless Networking 1 12-27-2006 10:54 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration