I can connect my S5 to my work wifi now, after the modem was restarted. It gets disconnected at times, but it usually works after a restart. Not sure if it's due to the router or the phone. I called up Samsung to ask and they've asked me to bring the phone for a servicing. -.-