Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Feb 2004 14:13:53 -0800 (PST)
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 46442 for review
Message-ID:  <200402032213.i13MDrSN046451@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=46442

Change 46442 by sam@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402032213.i13MDrSN046451>