Date: Tue, 28 Dec 2004 16:15:38 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 67796 for review Message-ID: <200412281615.iBSGFcJT028818@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=67796 Change 67796 by sam@sam_ebb on 2004/12/28 16:15:34 check for beacon interval being zero when setting up the beacon timers; this can happen when an interface is configured in monitor mode w/o previous configuration Affected files ... .. //depot/projects/wifi/sys/dev/ath/if_ath.c#48 edit Differences ... ==== //depot/projects/wifi/sys/dev/ath/if_ath.c#48 (text+ko) ==== @@ -1984,7 +1984,8 @@ DPRINTF(sc, ATH_DEBUG_BEACON, "%s: nexttbtt %u intval %u\n", __func__, nexttbtt, ni->ni_intval); intval = MS_TO_TU(ni->ni_intval) & HAL_BEACON_PERIOD; - nexttbtt = roundup(nexttbtt, intval); + if (intval) /* NB: can be 0 for monitor mode */ + nexttbtt = roundup(nexttbtt, intval); if (ic->ic_opmode == IEEE80211_M_STA) { HAL_BEACON_STATE bs; u_int32_t bmisstime;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412281615.iBSGFcJT028818>