summaryrefslogtreecommitdiff
path: root/sys/dev/ath/if_ath.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2005-04-04 02:34:15 +0000
committerSam Leffler <sam@FreeBSD.org>2005-04-04 02:34:15 +0000
commit31640eb7741b4977006fe11b51dd2ee3ec4e3adb (patch)
tree09a3d7b8be46b79bd3fba3926501ca6d601640ee /sys/dev/ath/if_ath.c
parent1f298879563bc8b07d70f837e4bf96f096bb63e2 (diff)
Notes
Diffstat (limited to 'sys/dev/ath/if_ath.c')
-rw-r--r--sys/dev/ath/if_ath.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index b2bcb089de7a..93f318b41d9b 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -2512,7 +2512,7 @@ ath_rx_proc(void *arg, int npending)
struct mbuf *m;
struct ieee80211_node *ni;
struct ath_node *an;
- int len;
+ int len, type;
u_int phyerr;
HAL_STATUS status;
@@ -2719,7 +2719,7 @@ rx_accept:
/*
* Send frame up for processing.
*/
- ieee80211_input(ic, m, ni,
+ type = ieee80211_input(ic, m, ni,
ds->ds_rxstat.rs_rssi, ds->ds_rxstat.rs_tstamp);
if (sc->sc_softled) {
@@ -2729,8 +2729,7 @@ rx_accept:
* is mainly for station mode where we depend on
* periodic beacon frames to trigger the poll event.
*/
- if (sc->sc_ipackets != ifp->if_ipackets) {
- sc->sc_ipackets = ifp->if_ipackets;
+ if (type == IEEE80211_FC0_TYPE_DATA) {
sc->sc_rxrate = ds->ds_rxstat.rs_rate;
ath_led_event(sc, ATH_LED_RX);
} else if (ticks - sc->sc_ledevent >= sc->sc_ledidle)