I've had this problem with an S-5 and I'm on Verizon. Dropping the wifi after 30 seconds or so unless it was very close to the router. I have an Asus router that's less than 2 years old and several other wifi enabled devices all working fine. After a half hour text chatting with a tech coach...