I'm having the same issues on mine. Wifi will work fine. If I leave the house, my s7 has trouble authenticating with the WiFi.
The only way I've been able to go around this is to reset the network settings and log back onto the WiFi. It works fine until I leave the house again.