At a minimum i think you are going to need to define class to shape the traffic the way you want and define a filter to match the traffic you want shaped by this class. You may also need to use iptables to get it to filter by port I forget how linksys does that. You can either define this class' parent as an existing qdisc or also define a new qdisc for it.