Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/wlan/if_zyd.c
Show First 20 Lines • Show All 2,622 Lines • ▼ Show 20 Lines | zyd_parent(struct ieee80211com *ic) | ||||
if (sc->sc_flags & ZYD_FLAG_DETACHED) { | if (sc->sc_flags & ZYD_FLAG_DETACHED) { | ||||
ZYD_UNLOCK(sc); | ZYD_UNLOCK(sc); | ||||
return; | return; | ||||
} | } | ||||
if (ic->ic_nrunning > 0) { | if (ic->ic_nrunning > 0) { | ||||
if ((sc->sc_flags & ZYD_FLAG_RUNNING) == 0) { | if ((sc->sc_flags & ZYD_FLAG_RUNNING) == 0) { | ||||
zyd_init_locked(sc); | zyd_init_locked(sc); | ||||
startall = 1; | startall = 1; | ||||
} else | } | ||||
zyd_set_multi(sc); | |||||
} else if (sc->sc_flags & ZYD_FLAG_RUNNING) | } else if (sc->sc_flags & ZYD_FLAG_RUNNING) | ||||
zyd_stop(sc); | zyd_stop(sc); | ||||
ZYD_UNLOCK(sc); | ZYD_UNLOCK(sc); | ||||
if (startall) | if (startall) | ||||
ieee80211_start_all(ic); | ieee80211_start_all(ic); | ||||
} | } | ||||
static void | static void | ||||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |