Recently I bought hp deskjet laptop from hp store. I using it for a week or two. Suddenly it stopped working, I tried resetting it but I'm unable to set it up again. I found this post which explain how to
connect hp deskjet 2540 to wifi. By following the steps in this post I was able to complete hp deskjet 2540 setup without any issues.