Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
Well, it's a complicated problem... The wifi itself connects perfectly, but usually doesn't work with Friend Codes. It has to do with some settings that I am unable to change. So, for all intents and purposes, it doesn't really work. =/