From 4bd57e1078a1a251d9995f6ac97f926498c280c3 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Mon, 12 Aug 2013 02:21:44 +0000 Subject: [PATCH] When flushing packets from the powersave queue, make sure that m_nextpkt is NULL before passing it up to the parent transmit method. --- sys/net80211/ieee80211_power.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net80211/ieee80211_power.c b/sys/net80211/ieee80211_power.c index d14d8f4417ce..c05c1be818f5 100644 --- a/sys/net80211/ieee80211_power.c +++ b/sys/net80211/ieee80211_power.c @@ -456,6 +456,7 @@ pwrsave_flushq(struct ieee80211_node *ni) while (parent_q != NULL) { m = parent_q; parent_q = m->m_nextpkt; + m->m_nextpkt = NULL; /* must be encapsulated */ KASSERT((m->m_flags & M_ENCAP), ("%s: parentq with non-M_ENCAP frame!\n",