traffic shaping re-implemented in order to be compatible with mac80211