View | Details | Raw Unified | Return to bug 197143 | Differences between
and this patch

Collapse All | Expand All

(-)sys/dev/wpi/if_wpi.c (-4 / +2 lines)
Lines 3810-3823 Link Here
3810
wpi_limit_dwell(struct wpi_softc *sc, uint16_t dwell_time)
3810
wpi_limit_dwell(struct wpi_softc *sc, uint16_t dwell_time)
3811
{
3811
{
3812
	struct ieee80211com *ic = sc->sc_ifp->if_l2com;
3812
	struct ieee80211com *ic = sc->sc_ifp->if_l2com;
3813
	struct ieee80211vap *vap = NULL;
3813
	struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
3814
	int bintval = 0;
3814
	int bintval = 0;
3815
3815
3816
	/* bintval is in TU (1.024mS) */
3816
	/* bintval is in TU (1.024mS) */
3817
	if (! TAILQ_EMPTY(&ic->ic_vaps)) {
3817
	if (vap != NULL)
3818
		vap = TAILQ_FIRST(&ic->ic_vaps);
3819
		bintval = vap->iv_bss->ni_intval;
3818
		bintval = vap->iv_bss->ni_intval;
3820
	}
3821
3819
3822
	/*
3820
	/*
3823
	 * If it's non-zero, we should calculate the minimum of
3821
	 * If it's non-zero, we should calculate the minimum of

Return to bug 197143