I don't know what a Wii has to do with anything, but you do need a wireless router if you want to use WiFi. It also can't use WEP protection because the DS isn't compatible to it.

Some routers are incompatible with the DS, but most work okay. Then you'll need friend codes to start messaging.