This thread is just to help out those who are having issues. I'm not the first to identify this (although I realised it on my own) but I'm putting this up in a nice and clear place so people can find this info easily. It will go something like this. You cannot connect to a wifi network (even if it is unsecured), unless you are about 10cm away from the router. You have tried 6.0.2, you have restored settings, you are even using an Airport base station... nothing works. But if you check further, I reckon you will find you can connect to 5ghz networks properly, but not 2.4ghz networks unless right up close. You need to get your iPad switched out for a new one. Go to the Apple Store and explain the situation. I really doubt software can fix this. My replacement worked just fine.