In case it's still useful, I've been struggling with the same for years. I probably tried every fix suggested online, everything that seemed to work for someone just didn't have an effect locally. After long struggling I just accepted that there's no actual fix online. Deep inside I just couldn't really believe it, though, I couldn't understand why it would work under Windows but not under Linux, so from time to time I had another look online. I also did the lock-fix long ago, but didn't really like it; closing my laptop, putting it in my bag for a couple of days while forgetting that it was actually not suspended or shut down, and having an empty battery when wanting to use my laptop again :-)
In any case today I seem to have found a fix here, wich worked for me: Wifi Hard Blocked After Suspend in Ubuntu on GS65
Despite their post not being for an HP, it fixed it for me locally nonetheless. According to this link, I understand that their suggested fix is "lying to the BIOS, making it think it's running Windows"? It feels like a weird solution (makes sense in a way, but then again, still feels weird), and I've only used it for a couple of hours. Who knows what I will discover in the next few days/weeks/months, I feel like that fix could show some surprises along the way ... YMMV but just in case it helps, I wanted to put that fix out there!