have you opened any ports on the router for the PS3's connection in port forwarding? This may clear things for you- chances are the router is blocking them on you, causing you to get signed out. Here are the various ports to open:
TCP: 80, 443, 5223, and Port Range 10070 - 10080
UDP: 3478, 3479, 3658, and 10070