shuffle code so things build w/o INVARIANTS or IEEE80211_SUPPORT_SUPERG

Prodded by:	several
This commit is contained in:
Sam Leffler 2009-03-25 03:02:03 +00:00
parent 24c6d24b27
commit 0cd9c215fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190402

View File

@ -105,9 +105,7 @@ sta_vattach(struct ieee80211vap *vap)
static void
sta_beacon_miss(struct ieee80211vap *vap)
{
struct ieee80211com *ic = vap->iv_ic;
KASSERT((ic->ic_flags & IEEE80211_F_SCAN) == 0, ("scanning"));
KASSERT((vap->iv_ic->ic_flags & IEEE80211_F_SCAN) == 0, ("scanning"));
KASSERT(vap->iv_state == IEEE80211_S_RUN,
("wrong state %d", vap->iv_state));
@ -133,6 +131,8 @@ sta_beacon_miss(struct ieee80211vap *vap)
vap->iv_stats.is_beacon_miss++;
if (vap->iv_roaming == IEEE80211_ROAMING_AUTO) {
#ifdef IEEE80211_SUPPORT_SUPERG
struct ieee80211com *ic = vap->iv_ic;
/*
* If we receive a beacon miss interrupt when using
* dynamic turbo, attempt to switch modes before