Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Oct 2004 22:34:48 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 63898 for review
Message-ID:  <200410282234.i9SMYmd6014148@repoman.freebsd.org>

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

Change 63898 by sam@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 *,



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