I had the same problem after upgrading to Windows 10. To fix it, go to Device Manager, then to Network Adapters, then to your computer's wireless drive (mine is Dell), then to the Power Management tab. Uncheck the box that says "Allow the computer to turn off this device to save power."
Now the wireless connection won't turn off every time the computer goes to sleep.