ye mate i had this same problem a few weeks back but heres wat u do to fix it -
wat im guessing u did is go to auto connect or find connection or watever, and its found it then u try to connect and it sez error 52000. What u have to do is manually enter ur ip settings into the settings for wi-fi.To do this, u look at the settings it asks for in the wi-fi settings (IP, gateway, DNS etc). U then go to start menu on ur computer, then go to run. delete watever text is in the run box then type in "ipconfig". This will then tell u the 4 (or 3 cuz i didnt need DNS 2) numbers u need and after u enter and save those settings on ur ds it should connect fine to wi-fi.