PERFORCE change 46442 for review

Sam Leffler sam at FreeBSD.org
Tue Feb 3 14:14:00 PST 2004


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

Change 46442 by sam at sam_ebb on 2004/02/03 14:13:15

	correct byte order in PAE ether type check

Affected files ...

.. //depot/projects/netperf+sockets/sys/net80211/ieee80211_output.c#15 edit

Differences ...

==== //depot/projects/netperf+sockets/sys/net80211/ieee80211_output.c#15 (text+ko) ====

@@ -259,7 +259,8 @@
 		goto bad;
 	}
 	/* NB: PAE frames have their own encryption policy */
-	if (ic->ic_flags & IEEE80211_F_WEPON && eh.ether_type != ETHERTYPE_PAE)
+	if (ic->ic_flags & IEEE80211_F_WEPON &&
+	    eh.ether_type != htons(ETHERTYPE_PAE))
 		wh->i_fc[1] |= IEEE80211_FC1_WEP;
 	*pni = ni;
 	return m;


More information about the p4-projects mailing list