Date: Tue, 6 Mar 2007 13:03:37 GMT From: Sepherosa Ziehau <sephe@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 115412 for review Message-ID: <200703061303.l26D3bUI002819@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=115412 Change 115412 by sephe@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703061303.l26D3bUI002819>