Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jan 2005 22:24:27 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 68224 for review
Message-ID:  <200501032224.j03MORlm057580@repoman.freebsd.org>

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

Change 68224 by sam@sam_ebb on 2005/01/03 22:23:30

	o count only beacon/probe resp frames we process
	o drop cummulative counter (but leave counter for now)

Affected files ...

.. //depot/projects/wifi/sys/net80211/ieee80211_input.c#35 edit

Differences ...

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

@@ -1683,15 +1683,6 @@
 		u_int16_t capinfo, bintval, timoff;
 		u_int16_t fhdwell;
 
-		if (subtype == IEEE80211_FC0_SUBTYPE_BEACON) {
-			/*
-			 * Count beacon frames specially, some drivers
-			 * use this info to do things like update LED's.
-			 */
-			ic->ic_stats.is_rx_beacon++;
-			IEEE80211_NODE_STAT(ni, rx_beacons);
-		} else
-			IEEE80211_NODE_STAT(ni, rx_proberesp);
 		/*
 		 * We process beacon/probe response frames:
 		 *    o when scanning, or
@@ -1829,6 +1820,14 @@
 		}
 
 		/*
+		 * Count frame now that we know it's to be processed.
+		 */
+		if (subtype == IEEE80211_FC0_SUBTYPE_BEACON)
+			IEEE80211_NODE_STAT(ni, rx_beacons);
+		else
+			IEEE80211_NODE_STAT(ni, rx_proberesp);
+
+		/*
 		 * When operating in station mode, check for state updates.
 		 * Be careful to ignore beacons received while doing a
 		 * background scan.  We consider only 11g/WMM stuff right now.



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