why is my htc one m8 no more connecting to WiFi after upgrade to android 6.0

A

AC Question

The first few days after upgrade i was connecting to WiFi,but few days later it keeps saying obtaining ip address and does not connect