Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jan 2005 01:35:01 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 69405 for review
Message-ID:  <200501210135.j0L1Z1L5009846@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=69405

Change 69405 by sam@sam_ebb on 2005/01/21 01:34:28

	use net80211 macros to convert ms->TU's

Affected files ...

.. //depot/projects/wifi/sys/dev/ath/if_ath.c#72 edit

Differences ...

==== //depot/projects/wifi/sys/dev/ath/if_ath.c#72 (text+ko) ====

@@ -2335,7 +2335,6 @@
 static void
 ath_beacon_config(struct ath_softc *sc)
 {
-#define	MS_TO_TU(x)	(((x) * 1000) / 1024)
 	struct ath_hal *ah = sc->sc_ah;
 	struct ieee80211com *ic = &sc->sc_ic;
 	struct ieee80211_node *ni = ic->ic_bss;
@@ -2389,7 +2388,8 @@
 		 *
 		 * XXX fixed at 100ms
 		 */
-		bs.bs_sleepduration = roundup(MS_TO_TU(100), bs.bs_intval);
+		bs.bs_sleepduration =
+			roundup(IEEE80211_MS_TO_TU(100), bs.bs_intval);
 		if (bs.bs_sleepduration > bs.bs_dtimperiod)
 			bs.bs_sleepduration = roundup(bs.bs_sleepduration, bs.bs_dtimperiod);
 
@@ -2444,7 +2444,6 @@
 		if (ic->ic_opmode == IEEE80211_M_IBSS && sc->sc_hasveol)
 			ath_beacon_proc(sc, 0);
 	}
-#undef MS_TO_TU
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501210135.j0L1Z1L5009846>