Read this -
http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm
Then try someting like this -
Configure an HTB Q outbound on wlan0
$ tc qdisc add dev wlan0 root handle 1: htb default 3
Define the traffic you want to be given preferential treatment (i.e. traffic from eth0-
$ tc filter add dev wlan0 protocol ip parent 1:0 prio 1 u32 \
match ip src 1.2.3.4 flowid 1:1
Create a class encompassing all traffic set to match your outbound bandwidth via wlan0-
$ tc class add dev wlan0 parent 1: classid 1:1 htb rate 1000kbps
Create a sub-class defining the htb bandwidth assigned to your special traffic -
$ tc class add dev wlan0 parent 1:1 classid 1:2 htb rate 990kbps ceil 1000kbps
Create the default sub-class ( 3 as assigned in the first command) defining the bandwidth guaranteed to everything else -
$ tc class add dev wlan0 parent 1:1 classid 1:3 htb rate 10kbps ceil 1000kbps
Check out the results -
$ tc qdisc show dev eth0