PERFORCE change 84402 for review

Sam Leffler sam at FreeBSD.org
Tue Sep 27 16:50:05 PDT 2005


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

Change 84402 by sam at sam_ebb on 2005/09/27 23:49:03

	better

Affected files ...

.. //depot/projects/wifi/sys/dev/ath/if_ath.c#106 edit

Differences ...

==== //depot/projects/wifi/sys/dev/ath/if_ath.c#106 (text+ko) ====

@@ -3351,6 +3351,13 @@
 		 */
 		type = ieee80211_input(ic, m, ni,
 			ds->ds_rxstat.rs_rssi, ds->ds_rxstat.rs_tstamp);
+		/*
+		 * Arrange to update the last rx timestamp only for
+		 * frames from our ap.  This is a crude check but
+		 * should be good enough for our purpose.
+		 */
+		if (ni == ic->ic_bss)
+			ngood++;
 		ieee80211_free_node(ni);
 		if (sc->sc_diversity) {
 			/*
@@ -3378,16 +3385,6 @@
 			} else if (ticks - sc->sc_ledevent >= sc->sc_ledidle)
 				ath_led_event(sc, ATH_LED_POLL);
 		}
-		/*
-		 * Arrange to update the last rx timestamp only for
-		 * data frames; this avoids false positives caused by
-		 * hearing beacon frames from ap's on the same channel.
-		 * If the only frames we receive are management frames
-		 * when we take a bmiss then we can probably cope with
-		 * falling back to the state machine as we're not busy.
-		 */
-		if (type == IEEE80211_FC0_TYPE_DATA)
-			ngood++;
 rx_next:
 		STAILQ_INSERT_TAIL(&sc->sc_rxbuf, bf, bf_list);
 	} while (ath_rxbuf_init(sc, bf) == 0);


More information about the p4-projects mailing list