From [[https://sites.google.com/site/easylinuxtipsproject/reserve-7]]

Since I had a problem with a USB wireless dongle constantly disconnecting in Mint 18, I fixed it by building the driver following the instructions in the site..

Basically
<code>
lsusb
</code>
Determine chipset\\
You have to install a build environment
<code>
sudo apt-get install linux-headers-$(uname -r) build-essential dkms git
</code>
and clone the fix by (in this case for a 8192 chip)
<code>
git clone https://github.com/pvaret/rtl8192cu-fixes.git
</code>

The rest is some build commands to install the fixed drive, then create a boot image with that driver.\\
Note: if the kernel is upgraded, the fix will be lost so the whole process has to be repeated....