Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/wlan/if_run.c
Show First 20 Lines • Show All 3,730 Lines • ▼ Show 20 Lines | if (sc->sc_detached) { | ||||
RUN_UNLOCK(sc); | RUN_UNLOCK(sc); | ||||
return; | return; | ||||
} | } | ||||
if (ic->ic_nrunning > 0) { | if (ic->ic_nrunning > 0) { | ||||
if (!(sc->sc_flags & RUN_RUNNING)) { | if (!(sc->sc_flags & RUN_RUNNING)) { | ||||
startall = 1; | startall = 1; | ||||
run_init_locked(sc); | run_init_locked(sc); | ||||
} else | } | ||||
run_update_promisc_locked(sc); | |||||
} else if ((sc->sc_flags & RUN_RUNNING) && sc->rvp_cnt <= 1) | } else if ((sc->sc_flags & RUN_RUNNING) && sc->rvp_cnt <= 1) | ||||
run_stop(sc); | run_stop(sc); | ||||
RUN_UNLOCK(sc); | RUN_UNLOCK(sc); | ||||
if (startall) | if (startall) | ||||
ieee80211_start_all(ic); | ieee80211_start_all(ic); | ||||
} | } | ||||
static void | static void | ||||
▲ Show 20 Lines • Show All 2,492 Lines • Show Last 20 Lines |