when it says its connected it works fine. But it connects then disconnects then connects then disconnects. Auto connect is on. It doesn't do this all the time. Doesn't do it with any other devices I have. Just the iPhone.
Read more:
Why won't my iPhone 6 stay connected to the wi-fi?