PERFORCE change 84405 for review

Sam Leffler sam at FreeBSD.org
Tue Sep 27 17:47:17 PDT 2005


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

Change 84405 by sam at sam_ebb on 2005/09/28 00:47:02

	last try was wrong; this should work

Affected files ...

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

Differences ...

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

@@ -3351,13 +3351,6 @@
 		 */
 		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) {
 			/*
@@ -3385,6 +3378,14 @@
 			} 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
+		 * frames from our ap when operating in station mode.
+		 * This assumes the rx key is always set when associated.
+		 */
+		if (ic->ic_opmode == IEEE80211_M_STA &&
+		    ds->ds_rxstat.rs_keyix != HAL_RXKEYIX_INVALID)
+			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