I recently got the S4. Right out of the box I was having issues with it dropping my wifi network, regardless of what network/strength of the network. I have the "smart network switch" and "keep wifi on during sleep" settings set to prevent this, but was still having problems.
I sent it in...