The problem maybe with your security encryption set on your wifi. You may have the security encryption set to WPA2. Check you security on your wireless router by going to the admin page in it's user manual.
If this is the case then it wont connect. You need to lower the encryption type to WEP or WPA.
Hope this helps.