This was a proper pain... Turns out there's a whole host of issues with the rtl8188eus driver.
Steps to fix (on Debian / RaspberryPi OS).
sudo apt install -y \
build-essential \
git \
linux-headers \
dkmsdkmsis a framework that allows kernel modules to be dynamically built and loaded.build-essentialcontains a list of packages which are considered essential for building Ubuntu packages including gcc compiler, make and other required tools.gitis a version control system which we'll use to copy the code required to build the drivers from a remote location.linux-headersis needed so that we have access to the definitions of the interfaces for the linux kernel. See here
Blacklist and reboot.
echo 'blacklist r8188eu'|sudo tee -a '/etc/modprobe.d/realtek.conf'
sudo shutdown -r nowAt time of writing this fork was actually the most uip to date but I'd expect that get's fixed shortly.
git clone https://github.com/gglluukk/rtl8188eus.gitcd rtl8188eus
make
sudo make install