Adding simple QoS to OpenWRT and hotspotsystems:

In reference to this page, simply install and activate qos-scripts.

Code:
opkg update
opkg install qos-scripts
uci set qos.wan.upload=700 # 90% of your Upload in kBits/s
uci set qos.wan.download=7000 # 90% of your Download in kBits/s
uci set qos.wan.enabled=1
uci commit qos
/etc/init.d/qos start
/etc/init.d/qos enable

but I do advise one change to the /etc/config/qos scripts, being to add the radius and uim ports to the priority class:

Code:
config ‘interface’ ‘wan’
option ‘classgroup’ ‘Default’
option ‘upload’ ‘700’
option ‘download’ ‘7000’
option ‘enabled’ ‘0’

config ‘classify’
option ‘target’ ‘Priority’
option ‘ports’ ‘22,53,1812,1813,3990,4990’
…..
…..