How to update drivers of a USB WiFi dongle

Make sure to fully upgrade the system and boot the latest kernel:

sudo dnf upgrade --refresh

Then build the modules with DKMS:

sudo dnf install git dkms kernel-devel openssl
sudo git clone https://github.com/clnhub/rtl8192eu-linux.git \
/usr/src/rtl8192eu-git
sudo sed -i -e "/^DEST_MODULE_LOCATION/s|/kernel/.*/|/extra|" \
/usr/src/rtl8192eu-git/dkms.conf
sudo dkms add rtl8192eu/git
sudo systemctl restart dkms.service
sudo tee /etc/modprobe.d/rtl8192eu.conf << EOF > /dev/null
blacklist rtl8xxxu
EOF
sudo tee /etc/modules-load.d/rtl8192eu.conf << EOF > /dev/null
8192eu
EOF
sudo systemctl restart systemd-modules-load.service

Form enrolling request if you need Secure Boot:

MOK_PASSWD="fedora"
sudo mokutil -i /var/lib/dkms/mok.pub << EOI
${MOK_PASSWD}
${MOK_PASSWD}
EOI

Or disable Secure Boot in the BIOS/EFI settings.

1 Like