Date: Fri, 14 Nov 2003 18:00:25 -0800 (PST) From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 42417 for review Message-ID: <200311150200.hAF20P66098095@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=42417 Change 42417 by sam@sam_ebb on 2003/11/14 18:00:04 on a beacon miss try to reassociate before starting a scan Affected files ... .. //depot/projects/netperf/sys/dev/ath/if_ath.c#36 edit Differences ... ==== //depot/projects/netperf/sys/dev/ath/if_ath.c#36 (text+ko) ==== @@ -490,8 +490,15 @@ DPRINTF(("ath_bmiss_proc: pending %u\n", pending)); KASSERT(ic->ic_opmode == IEEE80211_M_STA, ("unexpect operating mode %u", ic->ic_opmode)); - if (ic->ic_state == IEEE80211_S_RUN) - ieee80211_new_state(ic, IEEE80211_S_SCAN, -1); + if (ic->ic_state == IEEE80211_S_RUN) { + /* + * Rather than go directly to scan state, try to + * reassociate first. If that fails then the state + * machine will drop us into scanning after timing + * out waiting for a probe response. + */ + ieee80211_new_state(ic, IEEE80211_S_ASSOC, -1); + } } static u_int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311150200.hAF20P66098095>