wifi Shield connect just once

Hi there!

I've just bought the wifi shield, made all the firmware updates suggested and using IDE 1.0.5.
I tried some example sketches found in the wifi library and everything works perfectly in my office BUT NOT at home.
At home, it says "connected" just the first time... Then, if I want to upload another sketch or just reset the board and gets connection again, I need to unplug arduino (via USB) and plug again to my macbook and restart the access point: after that, I upload the same sketch and the connection to the access point works!

Both home and office access points use DHCP.

I think it's something to do about the access point configuration, but I have no idea how to do, because I don't understand so much about network configurations.
At home, the access point is a Sitecom Wireless-N Range Extender WL-330 (and this is the one wifi shield is NOT working with), while in office there is an old 3Com Office Connect Wireless 54Mbps11g Access Point.

Has anyone any suggestions for me?
I'd thank you so much.

Gianni

Hi Gianni,
can you post some more details? Did you write a sketch that actually sends some data over WiFi? If so, does it all work at home until you reset? As in did you run it for a couple of hours?

So, if I understand you;

  1. You load a sketch, which connects OK to the WiFi network.
  2. You load another sketch, and it fails to connect.

Is this correct?