WEP/WPA problems usually. Turn security off and test, to make sure bare bones functionality is there (you can get an IP, Ping, ftp, etc). THen start stacking your security settings back on, testing it after each change. Usually "associating" with an AP, but not getting an address is encryption or authentication related.