svn commit: r290133 - head/sys/dev/ral
Kevin Lo
kevlo at FreeBSD.org
Thu Oct 29 04:21:35 UTC 2015
Author: kevlo
Date: Thu Oct 29 04:21:34 2015
New Revision: 290133
URL: https://svnweb.freebsd.org/changeset/base/290133
Log:
- Add a missing prototype
- Fix typos
Modified:
head/sys/dev/ral/rt2860.c
head/sys/dev/ral/rt2860var.h
Modified: head/sys/dev/ral/rt2860.c
==============================================================================
--- head/sys/dev/ral/rt2860.c Thu Oct 29 04:16:52 2015 (r290132)
+++ head/sys/dev/ral/rt2860.c Thu Oct 29 04:21:34 2015 (r290133)
@@ -115,6 +115,7 @@ static void rt2860_tx_intr(struct rt2860
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
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 *n
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,
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 *
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 *
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);
Modified: head/sys/dev/ral/rt2860var.h
==============================================================================
--- head/sys/dev/ral/rt2860var.h Thu Oct 29 04:16:52 2015 (r290132)
+++ head/sys/dev/ral/rt2860var.h Thu Oct 29 04:21:34 2015 (r290133)
@@ -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];
More information about the svn-src-all
mailing list