I run a NW8440 HP laptop and find that sometimes I have to delete the wifi profile for a network (that has worked previously)and then recreate it for it to work. No idea why this is but it works fine.
I've not failed to connect to any network I have come across so I suspect it's not a generic failure of HP kit.
DeepC