PERFORCE change 67796 for review

Sam Leffler sam at FreeBSD.org
Tue Dec 28 08:15:40 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=67796

Change 67796 by sam at 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;


More information about the p4-projects mailing list