Date: Wed, 25 May 2005 18:40:58 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 77476 for review Message-ID: <200505251840.j4PIew3N007271@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=77476 Change 77476 by sam@sam_ebb on 2005/05/25 18:40:43 o mark "new scan" when don't find an ap so the next time we come through pick_bss we'll update seen+fails state o clear notseen flag when an entry is updated o display '=' for entries rejected 'cuz of too many assoc failures o display '^' for entries rejected 'cuz not seen for max scans o record dtim period Affected files ... .. //depot/projects/vap/sys/net80211/ieee80211_scan_sta.c#10 edit Differences ... ==== //depot/projects/vap/sys/net80211/ieee80211_scan_sta.c#10 (text+ko) ==== @@ -249,6 +249,11 @@ ise->se_fhindex = sp->fhindex; ise->se_erp = sp->erp; ise->se_timoff = sp->timoff; + if (sp->tim != NULL) { + const struct ieee80211_tim_ie *tim = + (const struct ieee80211_tim_ie *) sp->tim; + ise->se_dtimperiod = tim->tim_period; + } saveie(&ise->se_wme_ie, sp->wme); saveie(&ise->se_wpa_ie, sp->wpa); saveie(&ise->se_ath_ie, sp->ath); @@ -259,6 +264,7 @@ se->se_lastupdate = ticks; /* update time */ se->se_seen = 1; + se->se_notseen = 0; mtx_unlock(&st->st_lock); #if 0 @@ -655,8 +661,8 @@ fail |= 0x80; #ifdef IEEE80211_DEBUG if (ieee80211_msg_scan(vap)) { - /* XXX se_fails */ - printf(" %c %s", fail ? '-' : '+', + printf(" %c %s", + fail & 0x40 ? '=' : fail & 0x80 ? '^' : fail ? '-' : '+', ether_sprintf(se->se_macaddr)); printf(" %s%c", ether_sprintf(se->se_bssid), fail & 0x20 ? '!' : ' '); @@ -769,6 +775,7 @@ * where we've previously had some success. */ sta_dec_fails(st); + st->st_newscan = 1; return 0; /* restart scan */ } selbs = NULL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505251840.j4PIew3N007271>