svn commit: r235686 - head/sys/dev/iwn
Bernhard Schmidt
bschmidt at FreeBSD.org
Sun May 20 10:00:37 UTC 2012
Author: bschmidt
Date: Sun May 20 10:00:36 2012
New Revision: 235686
URL: http://svn.freebsd.org/changeset/base/235686
Log:
Discard frames after a DELBA which where queued during an active BA
session.
MFC after: 1 week
Modified:
head/sys/dev/iwn/if_iwn.c
Modified: head/sys/dev/iwn/if_iwn.c
==============================================================================
--- head/sys/dev/iwn/if_iwn.c Sun May 20 09:46:48 2012 (r235685)
+++ head/sys/dev/iwn/if_iwn.c Sun May 20 10:00:36 2012 (r235686)
@@ -3314,6 +3314,11 @@ iwn_tx_data(struct iwn_softc *sc, struct
if (m->m_flags & M_AMPDU_MPDU) {
struct ieee80211_tx_ampdu *tap = &ni->ni_tx_ampdu[ac];
+ if (!IEEE80211_AMPDU_RUNNING(tap)) {
+ m_freem(m);
+ return EINVAL;
+ }
+
ac = *(int *)tap->txa_private;
*(uint16_t *)wh->i_seq =
htole16(ni->ni_txseqs[tid] << IEEE80211_SEQ_SEQ_SHIFT);
More information about the svn-src-head
mailing list