Thank you both for the replies! This has been really annoying me for the past week but is now fixed thanks to thoughtjunkys advice! I Did try clearing the cache once already but it didn't work. But clearing again then booting into safe mode had wifi working fine, and it continued working after...