If you are working on the AP when you are in close proximity, then you move further away and it stops working, sounds like a signal issue. Have you checked the SNR, noise floor, co-channel interference etc... Are you doing any sort of band steering? If so, is the 5 Ghz signal too weak?