Lines Matching refs:ss

155 	struct ieee80211_scan_state *ss;
158 ss = ic->ic_scan;
162 if (ss != NULL && ss->ss_vap == vap) {
163 if (ss->ss_ops != NULL) {
164 ss->ss_ops->scan_detach(ss);
165 ss->ss_ops = NULL;
167 ss->ss_vap = NULL;
238 struct ieee80211_scan_state *ss = ic->ic_scan;
243 if (ss->ss_vap != vap || ss->ss_ops != scan) {
247 ss->ss_vap != NULL ?
248 ss->ss_vap->iv_ifp->if_xname : "none",
249 ss->ss_vap != NULL ?
250 ieee80211_opmode_name[ss->ss_vap->iv_opmode] : "none",
255 ss->ss_vap = vap;
256 if (ss->ss_ops != scan) {
265 if (scan == NULL || ss->ss_ops == NULL ||
266 ss->ss_ops->scan_attach != scan->scan_attach) {
267 if (ss->ss_ops != NULL)
268 ss->ss_ops->scan_detach(ss);
269 if (scan != NULL && !scan->scan_attach(ss)) {
275 ss->ss_ops = scan;
281 ieee80211_scan_dump_channels(const struct ieee80211_scan_state *ss)
283 struct ieee80211com *ic = ss->ss_ic;
288 for (i = ss->ss_next; i < ss->ss_last; i++) {
289 const struct ieee80211_channel *c = ss->ss_chans[i];
298 ieee80211_scan_dump(struct ieee80211_scan_state *ss)
300 struct ieee80211vap *vap = ss->ss_vap;
303 ieee80211_scan_dump_channels(ss);
305 ticks_to_msecs(ss->ss_mindwell), ticks_to_msecs(ss->ss_maxdwell));
310 ieee80211_scan_copy_ssid(struct ieee80211vap *vap, struct ieee80211_scan_state *ss,
320 memcpy(ss->ss_ssid, ssids, nssid * sizeof(ssids[0]));
321 ss->ss_nssid = nssid;
358 struct ieee80211_scan_state *ss = ic->ic_scan;
388 if (ss->ss_ops != scan) {
495 struct ieee80211_scan_state *ss;
500 ss = ic->ic_scan;
501 ss->ss_next = ss->ss_last; /* all channels are complete */
599 struct ieee80211_scan_state *ss = ic->ic_scan;
601 if (ss->ss_ops != NULL)
602 ss->ss_ops->scan_age(ss);
612 struct ieee80211_scan_state *ss = vap->iv_ic->ic_scan;
614 if (ss->ss_ops != NULL) {
617 ss->ss_ops->scan_assoc_success(ss, mac);
628 struct ieee80211_scan_state *ss = vap->iv_ic->ic_scan;
630 if (ss->ss_ops != NULL) {
633 ss->ss_ops->scan_assoc_fail(ss, mac, reason);
644 struct ieee80211_scan_state *ss = vap->iv_ic->ic_scan;
646 if (ss->ss_ops != NULL)
647 ss->ss_ops->scan_iterate(ss, f, arg);
656 struct ieee80211_scan_state *ss = vap->iv_ic->ic_scan;
658 if (ss->ss_ops != NULL && ss->ss_vap == vap) {
660 ss->ss_ops->scan_flush(ss);
671 struct ieee80211_scan_state *ss = ic->ic_scan;
675 if (ss == NULL || ss->ss_ops == NULL || ss->ss_vap == NULL) {
679 if (ss->ss_ops->scan_pickchan == NULL) {
680 IEEE80211_DPRINTF(ss->ss_vap, IEEE80211_MSG_SCAN,
682 "opmode %s\n", __func__, ss->ss_vap->iv_opmode);
685 return ss->ss_ops->scan_pickchan(ss, flags);