PERFORCE change 63898 for review

Sam Leffler sam at FreeBSD.org
Thu Oct 28 15:34:50 PDT 2004


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

Change 63898 by sam at sam_ebb on 2004/10/28 22:34:14

	add ieee80211_node_is_authorized and use it

Affected files ...

.. //depot/projects/wifi/sys/net80211/ieee80211_input.c#5 edit
.. //depot/projects/wifi/sys/net80211/ieee80211_node.h#4 edit

Differences ...

==== //depot/projects/wifi/sys/net80211/ieee80211_input.c#5 (text+ko) ====

@@ -445,7 +445,7 @@
 			goto err;
 		}
 		eh = mtod(m, struct ether_header *);
-		if ((ni->ni_flags & IEEE80211_NODE_AUTH) == 0) {
+		if (!ieee80211_node_is_authorized(ni)) {
 			/*
 			 * Deny any non-PAE frames received prior to
 			 * authorization.  For open/shared-key

==== //depot/projects/wifi/sys/net80211/ieee80211_node.h#4 (text+ko) ====

@@ -183,6 +183,12 @@
 extern	void ieee80211_node_lateattach(struct ieee80211com *);
 extern	void ieee80211_node_detach(struct ieee80211com *);
 
+static __inline int
+ieee80211_node_is_authorized(struct ieee80211_node *ni)
+{
+	return (ni->ni_flags & IEEE80211_NODE_AUTH);
+}
+
 extern	void ieee80211_node_authorize(struct ieee80211com *,
 		struct ieee80211_node *);
 extern	void ieee80211_node_unauthorize(struct ieee80211com *,


More information about the p4-projects mailing list