Add missing bg scanning bits; update ic_lastdata and cancel any

bg scan when there's outbound traffic.

Approved by:	re (blanket wireless)
This commit is contained in:
Sam Leffler 2007-09-05 23:40:59 +00:00
parent 2b9411e29f
commit 5c096cfbe5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172061

View file

@ -2300,6 +2300,11 @@ zyd_start(struct ifnet *ifp)
break;
}
IFQ_DEQUEUE(&ifp->if_snd, m0);
/*
* Cancel any background scan.
*/
if (ic->ic_flags & IEEE80211_F_SCAN)
ieee80211_cancel_scan(ic);
if (m0->m_len < sizeof(struct ether_header) &&
!(m0 = m_pullup(m0, sizeof(struct ether_header))))
@ -2328,6 +2333,7 @@ zyd_start(struct ifnet *ifp)
}
sc->tx_timer = 5;
ic->ic_lastdata = ticks;
callout_reset(&sc->sc_watchdog_ch, hz, zyd_watchdog, sc);
}
}