Date: Wed, 28 Sep 2005 00:47:16 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 84405 for review Message-ID: <200509280047.j8S0lGA7064099@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=84405 Change 84405 by sam@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509280047.j8S0lGA7064099>