I could not get my S4 to work with my home WiFi router (Linksys E1000).....here's the solution:
D-Link Connected Home Resource Center » Wi-Fi Protected Setup (WPS): The Easiest Way to Set Up Wireless DevicesD-Link Connected Home Resource Center
D-Link Connected Home Resource Center » Wi-Fi Protected Setup (WPS): The Easiest Way to Set Up Wireless DevicesD-Link Connected Home Resource Center