net80211: reschedule tasks properly after r315594.

This commit is contained in:
avos 2017-03-19 23:05:03 +00:00
parent b6f3126cc0
commit ff8cc09179

View File

@ -685,9 +685,8 @@ stageq_add(struct ieee80211com *ic, struct ieee80211_stageq *sq, struct mbuf *m)
} else { } else {
sq->head = m; sq->head = m;
/* Do not restart the timer if task was already scheduled. */
struct timeout_task *qtask = &ic->ic_superg->ff_qtimer; struct timeout_task *qtask = &ic->ic_superg->ff_qtimer;
taskqueue_enqueue_timeout(ic->ic_tq, qtask, -age); taskqueue_enqueue_timeout(ic->ic_tq, qtask, age);
} }
KASSERT(age >= 0, ("age %d", age)); KASSERT(age >= 0, ("age %d", age));
M_AGE_SET(m, age); M_AGE_SET(m, age);