I was having the same issue and after messing with a few settings I managed to figure it out. Go into your wifi settings. Click the 3 dots. Click Advanced. Select "Scanning always available". This should turn off your wi-fi. Turn it back on and it should work.
Hope this helps!