Fixing a Wifi wakelock - credits PTMR3 and DerTeufel1980