Use WPI_FILTER_BSS for checking current state.

PR:		kern/197143
Submitted by:	Andriy Voskoboinyk <s3erios@gmail.com>
This commit is contained in:
Adrian Chadd 2015-03-15 21:19:52 +00:00
parent 0bc39fc6f8
commit 9e7aab73cd

View File

@ -1722,11 +1722,8 @@ static void
wpi_calib_timeout(void *arg)
{
struct wpi_softc *sc = arg;
struct ifnet *ifp = sc->sc_ifp;
struct ieee80211com *ic = ifp->if_l2com;
struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
if (vap->iv_state != IEEE80211_S_RUN)
if (!(sc->rxon.filter & htole32(WPI_FILTER_BSS)))
return;
wpi_power_calibration(sc);