Many WIFI USB dongles out there rely on the 8188eu driver for support under Linux. In fact, in a previous post  I covered how to compile a 8188eu driver for your own Raspbian kernel which will keep being upgraded if you are vigilant enough to run rpi-update every now and then.

One thing I didn’t mention in that blog post is that certain devices which use this chipset will enter power management mode after some time.

If this is the case with your device, you can fix it by creating a file called /etc/modprobe.d/8188eu.conf which loads the configuration for the 8188eu kernel module and write the following inside:

options 8188eu rtw_power_mgnt=0 rtw_enusbss=0

Then restart your Raspbian and you should be good to go!