Connectivity issues with my Router and HTC mobile

Hello,
I have bought a new HTC One mobile and it all works fine except the WiFi connectivity issues.
I am able to connect to WiFi in my office, but not at my home. That's why I feel that it is something to do with my router itself. Whenever I try to connect from my HTC One mobile to WiFi router, the flashing light on The router's WiFi icon stuck solid. I have selected the option 'Forgot Network' in my mobile but still it didn't work. After that, I also tried to restart my router and then tested but no luck.
Had anybody experience the same problem? Thanks!
