First, you need a compatible wireless router. Once you have that, go into the Wi-Fi settings of your game, and follow the instructions. ...

Get Super Mario 64 DS, Mario Kart DS, and Mario & Luigi: Partners in Time. You won't regret it, trust me. >_>