PERFORCE change 115412 for review

Sepherosa Ziehau sephe at FreeBSD.org
Tue Mar 6 13:03:38 UTC 2007


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

Change 115412 by sephe at sephe_zealot:sam_wifi on 2007/03/06 13:02:38

	Correct TU->secs conversion.
	Reviewed by:	sam@

Affected files ...

.. //depot/projects/wifi/sys/net80211/ieee80211_power.c#4 edit

Differences ...

==== //depot/projects/wifi/sys/net80211/ieee80211_power.c#4 (text+ko) ====

@@ -208,8 +208,8 @@
 	 * Frames that sit around too long are reclaimed
 	 * using this information.
 	 */
-	/* XXX handle overflow? */
-	age = ((ni->ni_intval * ic->ic_bintval) << 2) / 1024; /* TU -> secs */
+	/* TU -> secs.  XXX handle overflow? */
+	age = IEEE80211_TU_TO_MS((ni->ni_intval * ic->ic_bintval) << 2) / 1000;
 	_IEEE80211_NODE_SAVEQ_ENQUEUE(ni, m, qlen, age);
 	IEEE80211_NODE_SAVEQ_UNLOCK(ni);
 


More information about the p4-projects mailing list