LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   TL-WDN3200 wireless adapter fails to connected to VMware Kali Linux (https://www.linuxquestions.org/questions/linux-hardware-18/tl-wdn3200-wireless-adapter-fails-to-connected-to-vmware-kali-linux-4175554927/)

TitoSudo 09-30-2015 03:07 PM

TL-WDN3200 wireless adapter fails to connected to VMware Kali Linux
 
Heyall,

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 http://www.blackmoreops.com/2014/01/...pter-in-linux/
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'
/root/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools/bin2h
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]
BOOLEAN bInitial = FALSE;
^
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.0.0-kali1-common/scripts/Makefile.build:263: 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:192.168.237.133 Bcast:192.168.237.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe1f:71ea/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
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:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
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
UP BROADCAST MULTICAST MTU:1500 Metric:1
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 thr:off Fragment thr:off
Power Management:off
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.

Cheers,
Tito

John VV 09-30-2015 03:30 PM

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

Quote:

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

install
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


All times are GMT -5. The time now is 06:41 PM.