honor IEEE80211_C_TXFRAG; drivers should never get fragmented packets

unless they indicate they're able to handle them

Approved by:	re (blanket wireless)
This commit is contained in:
Sam Leffler 2007-09-18 21:09:26 +00:00
parent bb239ce970
commit 37c8bda5fa

@ -852,6 +852,7 @@ ieee80211_encap(struct ieee80211com *ic, struct mbuf *m,
/* check if xmit fragmentation is required */
txfrag = (m->m_pkthdr.len > ic->ic_fragthreshold &&
!IEEE80211_IS_MULTICAST(wh->i_addr1) &&
(ic->ic_caps & IEEE80211_C_TXFRAG) &&
!isff); /* NB: don't fragment ff's */
if (key != NULL) {
/*