From owner-p4-projects@FreeBSD.ORG Tue Sep 27 23:50:05 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 2C54F16A421; Tue, 27 Sep 2005 23:50:05 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0374616A41F for ; Tue, 27 Sep 2005 23:50:04 +0000 (GMT) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDB8643D4C for ; Tue, 27 Sep 2005 23:50:04 +0000 (GMT) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j8RNo48S054455 for ; Tue, 27 Sep 2005 23:50:04 GMT (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j8RNo4aj054452 for perforce@freebsd.org; Tue, 27 Sep 2005 23:50:04 GMT (envelope-from sam@freebsd.org) Date: Tue, 27 Sep 2005 23:50:04 GMT Message-Id: <200509272350.j8RNo4aj054452@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sam@freebsd.org using -f From: Sam Leffler To: Perforce Change Reviews Cc: Subject: PERFORCE change 84402 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2005 23:50:05 -0000 http://perforce.freebsd.org/chv.cgi?CH=84402 Change 84402 by sam@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);