This issue has been pleging me for months but I did not have time to really try to fix it. Today I spent the hole day on the issue. I called HP several times and they where not very helpful.
After reading many many many solutions, here is what worked for me:
I did create a new power plan with . Power management
and made sure thge wireless seting were set to maximum
I did uncheck the box where it says "Allow the computer to turn off this device to save power".
This seams to have fixed the issue for me.
Hope this helps
it works again!