Many of the rtl88x2bu adapters are compatible with a Rasbperry Pi using this driver. This is what many cards use that advertise Linux compatibility (e.g. Amazon search for "linux wifi", especially the 1200Mbps ones). If you're using a Pi with a 64-bit kernel, you'll need to run
sed -i 's/ARM_NV_NANO = n/ARM_NV_NANO = y/' Makefile
instead of
sed -i 's/ARM_RPI = n/ARM_RPI = y/' Makefile
Here's the complete install commands, assuming Raspbian:
# Update all packages per normal
sudo apt update
sudo apt upgrade
# Install prereqs
# Remove raspberrypi-kernel-headers if you're running Ubuntu or you get package-not-found errors
sudo apt install git build-essential dkms raspberrypi-kernel-headers
# Reboot just in case there were any kernel updates, you can skip if there weren't
sudo reboot
# Pull down the driver source
git clone https://github.com/cilynx/rtl88x2bu
cd rtl88x2bu/
# Configure for RasPi
sed -i 's/I386_PC = y/I386_PC = n/' Makefile
# Remember, change this if you're using a 64-bit kernel
sed -i 's/ARM_RPI = n/ARM_RPI = y/' Makefile
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}
sudo modprobe 88x2bu
I've confirmed that this one works on Ubuntu 18.04 64-bit on a Pi 4, and I'm getting pings of <40ms and download speeds of >200Mbps.