I'm no expert but I believe that you'd need a router before the switch unless you're getting multiple IPs from your provider. Otherwise what addresses will the other PCs on the switch be using? You could do cable modem > WRT54GL > switch. That's basically how my network is setup.
Edit: typo