Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/wlan/if_ural.c
Show First 20 Lines • Show All 1,360 Lines • ▼ Show 20 Lines | ural_parent(struct ieee80211com *ic) | ||||
if (sc->sc_detached) { | if (sc->sc_detached) { | ||||
RAL_UNLOCK(sc); | RAL_UNLOCK(sc); | ||||
return; | return; | ||||
} | } | ||||
if (ic->ic_nrunning > 0) { | if (ic->ic_nrunning > 0) { | ||||
if (sc->sc_running == 0) { | if (sc->sc_running == 0) { | ||||
ural_init(sc); | ural_init(sc); | ||||
startall = 1; | startall = 1; | ||||
} else | } | ||||
ural_setpromisc(sc); | |||||
} else if (sc->sc_running) | } else if (sc->sc_running) | ||||
ural_stop(sc); | ural_stop(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 841 Lines • Show Last 20 Lines |