You could also save the configuration file from the WRT54G, then simply re-upload it every time this happens. If it is still under warranty, get it swapped out, even if it is out of warranty, argue it's not fit for purpose and did not last anywhere near it's expected lifetime.
Good luck