svn commit: r184366 - head/sys/dev/ath

Sam Leffler sam at FreeBSD.org
Mon Oct 27 11:05:26 PDT 2008


Author: sam
Date: Mon Oct 27 18:05:26 2008
New Revision: 184366
URL: http://svn.freebsd.org/changeset/base/184366

Log:
  prefer #define to naked constant

Modified:
  head/sys/dev/ath/if_ath.c

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Mon Oct 27 18:02:47 2008	(r184365)
+++ head/sys/dev/ath/if_ath.c	Mon Oct 27 18:05:26 2008	(r184366)
@@ -6243,7 +6243,7 @@ ath_setcurmode(struct ath_softc *sc, enu
 		sc->sc_hwmap[i].ieeerate =
 			rt->info[ix].dot11Rate & IEEE80211_RATE_VAL;
 		if (rt->info[ix].phy == IEEE80211_T_HT)
-			sc->sc_hwmap[i].ieeerate |= 0x80;	/* MCS */
+			sc->sc_hwmap[i].ieeerate |= IEEE80211_RATE_MCS;
 		sc->sc_hwmap[i].txflags = IEEE80211_RADIOTAP_F_DATAPAD;
 		if (rt->info[ix].shortPreamble ||
 		    rt->info[ix].phy == IEEE80211_T_OFDM)


More information about the svn-src-head mailing list