The TP-Link TL-WDN3200 is a USB WiFi stick with the USB ID 148f:5572:
Bus 001 Device 003: ID 148f:5572 Ralink Technology, Corp.
The stick bases on the Ralink 5572 chipset and is supported by Linux via the kernel module rt5572sta. Unfortunately, this module is not part of the standard kernel (see bug report) yet. Hence, the TL-WDN3200 is not automatically activated by the current distributions, e.g. Ubuntu 12.04.
A Linux driver is available at http://www.mediatek.com/_en/07_downloads/01_windows.php?sn=501. This driver has to be slightly edited before it can be compiled under Linux.
A already modified version of the driver can be found at http://www.ctheroux.com/publicfiles/DPO_RT5572_LinuxSTA_22.214.171.124_20120629_EDITED.tar.bz2.bz2 and saves the hazzle of editing some files of the rt5572 driver.
After downloading the driver it has to be unpacked:
tar xvf DPO_RT5572_LinuxSTA_126.96.36.199_20120629.tar.bz2.bz2
compiled and installed
sudo make install
Dynamic Kernel Module Support
After each kernel update the driver needs to be recompiled in order to work with the new kernel version. On can use Dynamik Kernel Module Support (DKMS) to automatically have this compilation started at each kernel update.
Under Ubuntu 12.04 LTS (or later) the downloaded and unpacked driver has to be configured for DKMS in the following way:
sudo mv DPO_RT5572_LinuxSTA_188.8.131.52_20120629 /usr/src/
sudo ln -s DPO_RT5572_LinuxSTA_184.108.40.206_20120629/ DPO_RT5572_LinuxSTA-220.127.116.11_20120629
During the compilation an error regarding tftpboot shows up, but can be ignored.
The installation of the driver stays the same
sudo make install
but in the source directory of the driver the DKMS configuration file dkms.conf needs to be added and adapted:
# für RT5572
MAKE=" 'make' "
CLEAN=" 'make' clean"
To initiate the dkms support for the driver the following command is used:
sudo dkms add -m RT5572 -v 18.104.22.168_20120629
Testing of the configuration can be carried out by:
sudo dkms build -m RT5572 -v 22.214.171.124_20120629
sudo dkms install -m RT5572 -v 126.96.36.199_20120629