PERFORCE change 87157 for review

Sam Leffler sam at FreeBSD.org
Wed Nov 23 14:47:15 PST 2005


http://perforce.freebsd.org/chv.cgi?CH=87157

Change 87157 by sam at sam_ebb on 2005/11/23 22:45:50

	clear frag flags passed down from above; they must only
	be set on return from ieee80211_encap if the packet has
	been fragmented by the 802.11 layer

Affected files ...

.. //depot/projects/wifi/sys/net80211/ieee80211_output.c#57 edit

Differences ...

==== //depot/projects/wifi/sys/net80211/ieee80211_output.c#57 (text+ko) ====

@@ -694,6 +694,12 @@
 			}
 		}
 	}
+	/*
+	 * NB: frag flags may leak from above; they should only
+	 *     be set on return to the caller if we fragment at
+	 *     the 802.11 layer.
+	 */
+	m->m_flags &= ~(M_FRAG | M_FIRSTFRAG);
 	if (txfrag && !ieee80211_fragment(ic, m, hdrsize,
 	    key != NULL ? key->wk_cipher->ic_header : 0, ic->ic_fragthreshold))
 		goto bad;


More information about the p4-projects mailing list