Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ral/rt2560.c
Show First 20 Lines • Show All 1,948 Lines • ▼ Show 20 Lines | rt2560_parent(struct ieee80211com *ic) | ||||
struct rt2560_softc *sc = ic->ic_softc; | struct rt2560_softc *sc = ic->ic_softc; | ||||
int startall = 0; | int startall = 0; | ||||
RAL_LOCK(sc); | RAL_LOCK(sc); | ||||
if (ic->ic_nrunning > 0) { | if (ic->ic_nrunning > 0) { | ||||
if ((sc->sc_flags & RT2560_F_RUNNING) == 0) { | if ((sc->sc_flags & RT2560_F_RUNNING) == 0) { | ||||
rt2560_init_locked(sc); | rt2560_init_locked(sc); | ||||
startall = 1; | startall = 1; | ||||
} else | } | ||||
rt2560_update_promisc(ic); | |||||
} else if (sc->sc_flags & RT2560_F_RUNNING) | } else if (sc->sc_flags & RT2560_F_RUNNING) | ||||
rt2560_stop_locked(sc); | rt2560_stop_locked(sc); | ||||
RAL_UNLOCK(sc); | RAL_UNLOCK(sc); | ||||
if (startall) | if (startall) | ||||
ieee80211_start_all(ic); | ieee80211_start_all(ic); | ||||
} | } | ||||
static void | static void | ||||
▲ Show 20 Lines • Show All 779 Lines • Show Last 20 Lines |