diff options
author | 2005-04-08 22:12:21 +0000 | |
---|---|---|
committer | 2005-04-08 22:12:21 +0000 | |
commit | 6f50a39f9f74e025daf2aec8b4cef9c0bf45be7a (patch) | |
tree | ade03576a45574334c4f91df329fca69fb66366f /sys/dev/ic/ath.c | |
parent | Synchronize ADS7846 communication and LCD refresh so as to avoid jitter (diff) | |
download | wireguard-openbsd-6f50a39f9f74e025daf2aec8b4cef9c0bf45be7a.tar.xz wireguard-openbsd-6f50a39f9f74e025daf2aec8b4cef9c0bf45be7a.zip |
move reset of HAL descriptors to ath.c
Diffstat (limited to 'sys/dev/ic/ath.c')
-rw-r--r-- | sys/dev/ic/ath.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c index a2cc2fe2fe0..f10077f072c 100644 --- a/sys/dev/ic/ath.c +++ b/sys/dev/ic/ath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ath.c,v 1.21 2005/04/06 09:14:53 reyk Exp $ */ +/* $OpenBSD: ath.c,v 1.22 2005/04/08 22:12:21 reyk Exp $ */ /* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */ /*- @@ -1320,6 +1320,7 @@ ath_beacon_alloc(struct ath_softc *sc, struct ieee80211_node *ni) /* setup descriptors */ ds = bf->bf_desc; + bzero(ds, sizeof(struct ath_desc)); if (ic->ic_opmode == IEEE80211_M_IBSS && sc->sc_hasveol) { ds->ds_link = bf->bf_daddr; /* link to self */ @@ -1840,6 +1841,8 @@ ath_rxbuf_init(struct ath_softc *sc, struct ath_buf *bf) * someplace to write a new frame. */ ds = bf->bf_desc; + bzero(ds, sizeof(struct ath_desc)); + ds->ds_link = bf->bf_daddr; /* link to self */ ds->ds_data = bf->bf_segs[0].ds_addr; ath_hal_setuprxdesc(ah, ds |