Skip to content
/ rtwn Public

Merged rtwn(4), urtwn(4) and urtwm FreeBSD drivers

Notifications You must be signed in to change notification settings

s3erios/rtwn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

rtwn

Merged rtwn(4), urtwn(4) and urtwm FreeBSD drivers
(in HEAD since https://svnweb.freebsd.org/base?view=revision&revision=307529)
Should be compatible with 11.0-RELEASE

How-to-build:

  1. Clone / download this repository.
  2. Copy 'usbdevs' into sys/dev/usb subdirectory in your source tree:
    cd /usr/src/ && cp <repository location>/usbdevs sys/dev/usb/usbdevs
  3. Build and install firmware:
    cd <repository location>/sys/modules/rtwnfw && make depend && make && make install
  4. Build and install main module:
    cd ../rtwn && make depend && make && make install
  5. Bus-specific modules:
    • USB (RTL8188CUS/RTL8192CU/RTL8188EU/RTL8812AU/RTL8821AU):
      cd ../rtwn_usb && make depend && make && make install
    • PCI (RTL8188CE/RTL8188EE):
      cd ../rtwn_pci && make depend && make && make install

For ARM users: if you see

error: implicit declaration of function 'cp15_pmccntr_get' is invalid in C99

message, then you need to add 'CONF_CFLAGS=-march=armv7a' to the second make invocation; e.g.:
cd ../rtwn && make depend && make CONF_CFLAGS=-march=armv7a && make install

How-to-test:

  1. Load the driver:
    kldload if_rtwn
    kldload if_rtwn_usb (or kldload if_rtwn_pci)
    (You may need to unload/move old urtwn(4)/rtwn(4) drivers before this step)

In case if device was recognized successfully driver will report about that:

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

or

rtwn0: 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 rtwn0
  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

About

Merged rtwn(4), urtwn(4) and urtwm FreeBSD drivers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published