This should bring up the Device Manager window. Under Network Adapter s(hit the arrow in front to open) you should see your WiFi adapter. Right click on it and select Properties, then Power Management
uncheck Allow The Computer to Turn Off this Device to Save Power. Sometimes Windows will shut off power at the oddest times.