This is what you need to do:
sudo nano /etc/modprobe.d/8192cu.conf
Add the following:
# Disable power management
options 8192cu rtw_power_mgnt=0