diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2015-10-29 04:21:34 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2015-10-29 04:21:34 +0000 |
commit | 1c1cd920d79423860f3cb84b3cdc734b8ccae664 (patch) | |
tree | 89488751eaec7fbdf3f346b268472cf6b2e23a6c | |
parent | 1ffae6e80a8266dee424fd2cc699056bdf147629 (diff) | |
download | src-1c1cd920d79423860f3cb84b3cdc734b8ccae664.tar.gz src-1c1cd920d79423860f3cb84b3cdc734b8ccae664.zip |
- Add a missing prototype
- Fix typos
Notes
Notes:
svn path=/head/; revision=290133
-rw-r--r-- | sys/dev/ral/rt2860.c | 25 | ||||
-rw-r--r-- | sys/dev/ral/rt2860var.h | 2 |
2 files changed, 14 insertions, 13 deletions
diff --git a/sys/dev/ral/rt2860.c b/sys/dev/ral/rt2860.c index d233315d28e7..049d11975afe 100644 --- a/sys/dev/ral/rt2860.c +++ b/sys/dev/ral/rt2860.c @@ -115,6 +115,7 @@ static void rt2860_tx_intr(struct rt2860_softc *, int); static void rt2860_rx_intr(struct rt2860_softc *); static void rt2860_tbtt_intr(struct rt2860_softc *); static void rt2860_gp_intr(struct rt2860_softc *); +static void rt2860_intr(void *); static int rt2860_tx(struct rt2860_softc *, struct mbuf *, struct ieee80211_node *); static int rt2860_raw_xmit(struct ieee80211_node *, struct mbuf *, @@ -513,7 +514,7 @@ rt2860_alloc_tx_ring(struct rt2860_softc *sc, struct rt2860_tx_ring *ring) BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL, size, 1, size, 0, NULL, NULL, &ring->desc_dmat); if (error != 0) { - device_printf(sc->sc_dev, "could not create desc DMA map\n"); + device_printf(sc->sc_dev, "could not create desc DMA tag\n"); goto fail; } @@ -1386,7 +1387,7 @@ rt2860_gp_intr(struct rt2860_softc *sc) rt2860_updatestats(sc); } -void +static void rt2860_intr(void *arg) { struct rt2860_softc *sc = arg; @@ -1699,7 +1700,7 @@ rt2860_raw_xmit(struct ieee80211_node *ni, struct mbuf *m, RAL_LOCK(sc); /* prevent management frames from being sent if we're not ready */ - if (!(sc->sc_flags & RT2860_RUNNNING)) { + if (!(sc->sc_flags & RT2860_RUNNING)) { RAL_UNLOCK(sc); m_freem(m); return ENETDOWN; @@ -1940,7 +1941,7 @@ rt2860_transmit(struct ieee80211com *ic, struct mbuf *m) int error; RAL_LOCK(sc); - if ((sc->sc_flags & RT2860_RUNNNING) == 0) { + if ((sc->sc_flags & RT2860_RUNNING) == 0) { RAL_UNLOCK(sc); return (ENXIO); } @@ -1963,7 +1964,7 @@ rt2860_start(struct rt2860_softc *sc) RAL_LOCK_ASSERT(sc); - if ((sc->sc_flags & RT2860_RUNNNING) == 0) + if ((sc->sc_flags & RT2860_RUNNING) == 0) return; while (!SLIST_EMPTY(&sc->data_pool) && sc->qfullmsk == 0 && @@ -1986,7 +1987,7 @@ rt2860_watchdog(void *arg) RAL_LOCK_ASSERT(sc); - KASSERT(sc->sc_flags & RT2860_RUNNNING, ("not running")); + KASSERT(sc->sc_flags & RT2860_RUNNING, ("not running")); if (sc->sc_invalid) /* card ejected */ return; @@ -2009,12 +2010,12 @@ rt2860_parent(struct ieee80211com *ic) RAL_LOCK(sc); if (ic->ic_nrunning> 0) { - if (!(sc->sc_flags & RT2860_RUNNNING)) { + if (!(sc->sc_flags & RT2860_RUNNING)) { rt2860_init_locked(sc); startall = 1; } else rt2860_update_promisc(ic); - } else if (sc->sc_flags & RT2860_RUNNNING) + } else if (sc->sc_flags & RT2860_RUNNING) rt2860_stop_locked(sc); RAL_UNLOCK(sc); if (startall) @@ -3791,7 +3792,7 @@ rt2860_init(void *arg) rt2860_init_locked(sc); RAL_UNLOCK(sc); - if (sc->sc_flags & RT2860_RUNNNING) + if (sc->sc_flags & RT2860_RUNNING) ieee80211_start_all(ic); } @@ -4051,7 +4052,7 @@ rt2860_init_locked(struct rt2860_softc *sc) if (sc->sc_flags & RT2860_ADVANCED_PS) rt2860_mcu_cmd(sc, RT2860_MCU_CMD_PSLEVEL, sc->pslevel, 0); - sc->sc_flags |= RT2860_RUNNNING; + sc->sc_flags |= RT2860_RUNNING; callout_reset(&sc->watchdog_ch, hz, rt2860_watchdog, sc); } @@ -4072,12 +4073,12 @@ rt2860_stop_locked(struct rt2860_softc *sc) uint32_t tmp; int qid; - if (sc->sc_flags & RT2860_RUNNNING) + if (sc->sc_flags & RT2860_RUNNING) rt2860_set_leds(sc, 0); /* turn all LEDs off */ callout_stop(&sc->watchdog_ch); sc->sc_tx_timer = 0; - sc->sc_flags &= ~RT2860_RUNNNING; + sc->sc_flags &= ~RT2860_RUNNING; /* disable interrupts */ RAL_WRITE(sc, RT2860_INT_MASK, 0); diff --git a/sys/dev/ral/rt2860var.h b/sys/dev/ral/rt2860var.h index f7fd218186a8..6d3765a6753c 100644 --- a/sys/dev/ral/rt2860var.h +++ b/sys/dev/ral/rt2860var.h @@ -139,7 +139,7 @@ struct rt2860_softc { #define RT2860_ENABLED (1 << 0) #define RT2860_ADVANCED_PS (1 << 1) #define RT2860_PCIE (1 << 2) -#define RT2860_RUNNNING (1 << 3) +#define RT2860_RUNNING (1 << 3) struct ieee80211_node *wcid2ni[RT2860_WCID_MAX]; |