FreeBSD driver for RTL8812AU/RTL8821AU
C Makefile
Switch branches/tags
Nothing to show
Clone or download
s3erios Merge pull request #4 from andybe/master
FreeBSD 12-Current patch
Latest commit 34ebc0a Feb 25, 2018
Failed to load latest commit information.
sys FreeBSD 12-Current patch Feb 20, 2018 Update Jun 23, 2016
patch-usbdevs.diff add TPLINK devices Oct 23, 2017


FreeBSD driver for RTL8812AU/RTL8821AU


  1. Clone / download this repository.
  2. Apply 'patch-usbdevs.diff' to your source tree checkout; e.g.
    cd /usr/src/ && svn patch <patch-usbdevs.diff location>
  3. Build and install firmware:
    cd <repository location>/sys/modules/urtwmfw && make && make install
  4. Build and install driver:
    cd ../urtwm && make && make install


  1. Load the driver:
    kldload if_urtwm
    In case if device was recognized successfully driver will report about that:

urtwm0: <802.11n WLAN Adapter> on usbus4
urtwm0: MAC/BB RTL8821AU, RF 6052 1T1R


urtwm0: MAC/BB RTL8812AU, RF 6052 2T2R

  1. Load necessary modules (if not already loaded):
    kldload wlan_amrr wlan_ccmp wlan_tkip wlan_wep
  2. Create wlan(4) interface:
    ifconfig wlan1 create wlandev urtwm0
  3. Start wpa_supplicant(8):
    wpa_supplicant -i wlan1 -c /etc/wpa_supplicant.conf
  4. Start dhclient(8) after association / 4-Way handshake:
    dhclient wlan1