wifi shield no ip

I’ve run both example 4 and example 5 from the wifi shield wiki
and in both cases the get ip command gave me this result
“IP=” or just “IP=”.
my ssid and password settings are correct, my router’s DHCP works (the shield recived an ip address in other examples I’ve run) and it sends an OK to signal connecting to the AP.
does anyone have any idea what the issue may be?