diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/if_rum.c | 8 | ||||
-rw-r--r-- | sys/dev/usb/if_rumvar.h | 3 |
2 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/usb/if_rum.c b/sys/dev/usb/if_rum.c index 7a9c7ee2d7a..413c6e71103 100644 --- a/sys/dev/usb/if_rum.c +++ b/sys/dev/usb/if_rum.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rum.c,v 1.18 2006/07/19 19:18:11 damien Exp $ */ +/* $OpenBSD: if_rum.c,v 1.19 2006/07/19 19:22:02 damien Exp $ */ /*- * Copyright (c) 2005, 2006 Damien Bergamini <damien.bergamini@free.fr> * Copyright (c) 2006 Niall O'Higgins <niallo@openbsd.org> @@ -1857,7 +1857,7 @@ rum_init(struct ifnet *ifp) struct ieee80211com *ic = &sc->sc_ic; struct rum_rx_data *data; usbd_status error; - uint32_t tmp; + uint32_t tmp, sta[3]; int i; rum_stop(ifp, 0); @@ -1880,8 +1880,8 @@ rum_init(struct ifnet *ifp) rum_select_antenna(sc); rum_set_chan(sc, ic->ic_bss->ni_chan); - /* clear statistic registers (STA_CSR0 to STA_CSR10) */ - rum_read_multi(sc, RT2573_STA_CSR0, sc->sta, sizeof sc->sta); + /* clear STA registers */ + rum_read_multi(sc, RT2573_STA_CSR0, sta, sizeof sta); IEEE80211_ADDR_COPY(ic->ic_myaddr, LLADDR(ifp->if_sadl)); rum_set_macaddr(sc, ic->ic_myaddr); diff --git a/sys/dev/usb/if_rumvar.h b/sys/dev/usb/if_rumvar.h index 9d3e994c9e9..54f136ade39 100644 --- a/sys/dev/usb/if_rumvar.h +++ b/sys/dev/usb/if_rumvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rumvar.h,v 1.2 2006/07/18 21:24:40 damien Exp $ */ +/* $OpenBSD: if_rumvar.h,v 1.3 2006/07/19 19:22:02 damien Exp $ */ /*- * Copyright (c) 2005, 2006 Damien Bergamini <damien.bergamini@free.fr> * Copyright (c) 2006 Niall O'Higgins <niallo@openbsd.org> @@ -123,7 +123,6 @@ struct rum_softc { int sc_tx_timer; - uint16_t sta[11]; uint32_t rf_regs[4]; uint8_t txpow[14]; |