Its totally related to power settings that WIFI by default inherit when associated with an operating system, in this case, Windows 7/8.
I am saying this referring to a problem that occured when I first used my HP Pav g6 2313AX, the wifi was lost after inactivity. Only turning on and off wifi would work or trouble shoot.
Since then I keep an habit of changing the power setting to my own setting.
Here is what you can try :
Go into your network settings.
Control panel again
Mouse to the bottom-right, ‘Search’ again.
This time type “Control panel” and click the result. From here we want “Network and Internet” and then “Network and Sharing Center” and from there “Change adapter settings” (It’s on the left hand menubar)
This is important part
Right click your wifi adapter -> click Properties -> click Configure -> click Power Management
Uncheck the box “Allow the computer to turn off this device to save power”. That should do the job.
Worked for me. :)