The same solution worked for me:
I fixed it like this: Settings -> WLAN -> Additional settings (i went to this from three dots on the upper right corner in tablet. Phone users might have to click additional button on the phone or on the lower part of the screen.) -> Keep Wi-fi (or WLAN or...