Skip to content
rtl88x2bu driver updated for current kernels.
Branch: master
Clone or download
Latest commit 7a6162d Mar 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
core rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 Nov 18, 2018
hal
include IEEE80211_MAX_AMPDU_BUF is bumped in 4.19-rc1 - avoid redefine warning Nov 18, 2018
os_dep Upstream `access_ok` no longer takes `type` Mar 9, 2019
platform rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 Nov 18, 2018
.gitignore DKMS Support Nov 18, 2018
Kconfig rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 Nov 18, 2018
Makefile Update RasPi target for `hostapd` Mar 15, 2019
README.md Document RasPi `hostapd` Mar 15, 2019
clean rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 Nov 18, 2018
dkms.conf DKMS Support Nov 18, 2018
ifcfg-wlan0 rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 Nov 18, 2018
rtl8822b.mk rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 Nov 18, 2018
runwpa rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 Nov 18, 2018
wlan0dhcp

README.md

Updated driver for rtl88x2bu wifi adaptors based on rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 originally downloaded from D-Link's download page for the DWA-182 Rev D.

Build confirmed on:

Linux version 4.18.0-0.bpo.1-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 SMP Debian 4.18.6-1~bpo9+1 (2018-09-13)

gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
Linux version 4.19.0-rc2-amd64 (debian-kernel@lists.debian.org) (gcc version 8.2.0 (Debian 8.2.0-5)) #1 SMP Debian 4.19~rc2-1~exp1 (2018-09-03)

gcc (Debian 8.2.0-9) 8.2.0

DKMS installation

cd rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu

Raspberry Pi Access Point

# Update all packages per normal
sudo apt update
sudo apt upgrade

# Install prereqs
sudo apt install git dnsmasq hostapd bc build-essential dkms raspberrypi-kernel-headers

# Reboot just in case there were any kernel updates
sudo reboot

# Pull down the driver source
git clone https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959.git
cd rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959/

# Configure for RasPi
sed -i 's/I386_PC = y/I386_PC = n/' Makefile
sed -i 's/ARM_RPI = n/ARM_RPI = y/' Makefile

# DKMS as above
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER} # Takes ~3-minutes on a 3B+
sudo dkms install -m rtl88x2bu -v ${VER}

# Plug in your adapter then confirm your new interface name
ip addr

# Set a static IP for the new interface (adjust if you have a different interface name or preferred IP)
sudo tee -a /etc/dhcpcd.conf <<EOF
interface wlan1
    static ip_address=192.168.4.1/24
    nohook wpa_supplicant
EOF

# Clobber the default dnsmasq config
sudo tee /etc/dnsmasq.conf <<EOF
interface=wlan1
  dhcp-range=192.168.4.100,192.168.4.199,255.255.255.0,24h
EOF

# Configure hostapd
sudo tee /etc/hostapd/hostapd.conf <<EOF
interface=wlan1
driver=nl80211
ssid=pinet
hw_mode=g
channel=7
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=CorrectHorseBatteryStaple
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
EOF

sudo sed -i 's|#DAEMON_CONF=""|DAEMON_CONF="/etc/hostapd/hostapd.conf"|' /etc/default/hostapd

# Enable hostapd
sudo systemctl unmask hostapd
sudo systemctl enable hostapd

# Reboot to pick up the config changes
sudo reboot

If you want to setup masquerading or bridging, check out the official Raspberry Pi docs.

You can’t perform that action at this time.