USB WiFi and sleeping - a quick fix

Whenever my desktop machine running Windows 7 woke from sleep, the USB wireless adapter didn't seem to wake up with it. Disabling and re-enabling it in Device Manager got it working again, but I recently discovered a way to stop it happening at all. Under the adapter's properties in Device Manager, select the Power Management tab and make sure the option 'Allow the computer to turn off this device to save power' is turned off. Since I've changed the option I haven't seen the issue reappear so thought I'd share it here.