Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/wlan/if_rsu.c
Show First 20 Lines • Show All 670 Lines • ▼ Show 20 Lines | rsu_vap_delete(struct ieee80211vap *vap) | ||||
ieee80211_vap_detach(vap); | ieee80211_vap_detach(vap); | ||||
free(uvp, M_80211_VAP); | free(uvp, M_80211_VAP); | ||||
} | } | ||||
static void | static void | ||||
rsu_scan_start(struct ieee80211com *ic) | rsu_scan_start(struct ieee80211com *ic) | ||||
{ | { | ||||
struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps); | |||||
struct rsu_softc *sc = ic->ic_softc; | struct rsu_softc *sc = ic->ic_softc; | ||||
int error; | int error; | ||||
/* Scanning is done by the firmware. */ | /* Scanning is done by the firmware. */ | ||||
RSU_LOCK(sc); | RSU_LOCK(sc); | ||||
/* XXX TODO: force awake if in in network-sleep? */ | /* XXX TODO: force awake if in network-sleep? */ | ||||
error = rsu_site_survey(sc, TAILQ_FIRST(&ic->ic_vaps)); | error = rsu_site_survey(sc, vap); | ||||
RSU_UNLOCK(sc); | RSU_UNLOCK(sc); | ||||
if (error != 0) | if (error != 0) { | ||||
device_printf(sc->sc_dev, | device_printf(sc->sc_dev, | ||||
"could not send site survey command\n"); | "could not send site survey command\n"); | ||||
ieee80211_cancel_scan(vap); | |||||
} | |||||
} | } | ||||
static void | static void | ||||
rsu_scan_end(struct ieee80211com *ic) | rsu_scan_end(struct ieee80211com *ic) | ||||
{ | { | ||||
/* Nothing to do here. */ | /* Nothing to do here. */ | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,246 Lines • Show Last 20 Lines |