svn commit: r280107 - head/sys/dev/wpi
Adrian Chadd
adrian at FreeBSD.org
Sun Mar 15 21:19:53 UTC 2015
Author: adrian
Date: Sun Mar 15 21:19:52 2015
New Revision: 280107
URL: https://svnweb.freebsd.org/changeset/base/280107
Log:
Use WPI_FILTER_BSS for checking current state.
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios at gmail.com>
Modified:
head/sys/dev/wpi/if_wpi.c
Modified: head/sys/dev/wpi/if_wpi.c
==============================================================================
--- head/sys/dev/wpi/if_wpi.c Sun Mar 15 21:19:15 2015 (r280106)
+++ head/sys/dev/wpi/if_wpi.c Sun Mar 15 21:19:52 2015 (r280107)
@@ -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);
More information about the svn-src-head
mailing list