diff options
author | 2006-06-17 18:35:46 +0000 | |
---|---|---|
committer | 2006-06-17 18:35:46 +0000 | |
commit | 6860866006b35e694a4ca30db4004eb5a8db8b27 (patch) | |
tree | 6aca1f387c8a76b5446a9d3f352d4d0bdba6c0c5 | |
parent | check return values of azalia_init_corb() and azalia_init_rirb(). (diff) | |
download | wireguard-openbsd-6860866006b35e694a4ca30db4004eb5a8db8b27.tar.xz wireguard-openbsd-6860866006b35e694a4ca30db4004eb5a8db8b27.zip |
- re-enable AMRR
- unmap the good buffer in wpi_tx_intr
-rw-r--r-- | sys/dev/pci/if_wpi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c index 5b251ef1d92..998ecf8553d 100644 --- a/sys/dev/pci/if_wpi.c +++ b/sys/dev/pci/if_wpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wpi.c,v 1.19 2006/06/16 18:54:09 damien Exp $ */ +/* $OpenBSD: if_wpi.c,v 1.20 2006/06/17 18:35:46 damien Exp $ */ /*- * Copyright (c) 2006 @@ -839,7 +839,7 @@ wpi_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg) } /* start automatic rate control timer */ - if (ic->ic_fixed_rate != -1) + if (ic->ic_fixed_rate == -1) timeout_add(&sc->amrr_ch, hz / 2); /* link LED always on while associated */ @@ -1233,7 +1233,7 @@ wpi_tx_intr(struct wpi_softc *sc, struct wpi_rx_desc *desc, amrr->retrycnt++; } - bus_dmamap_unload(sc->sc_dmat, data->map); + bus_dmamap_unload(sc->sc_dmat, txdata->map); m_freem(txdata->m); txdata->m = NULL; |