svn commit: r188875 - in projects/vap7/sys: . contrib/pf dev
dev/ath dev/ath/ath_hal dev/ath/ath_hal/ar5210
dev/ath/ath_hal/ar5211 dev/ath/ath_hal/ar5212
dev/ath/ath_hal/ar5312 dev/ath/ath_hal/ar54...
Sam Leffler
sam at FreeBSD.org
Fri Feb 20 15:15:56 PST 2009
Author: sam
Date: Fri Feb 20 23:15:56 2009
New Revision: 188875
URL: http://svn.freebsd.org/changeset/base/188875
Log:
merge r188866: correct SIFS setting
Modified:
projects/vap7/sys/ (props changed)
projects/vap7/sys/contrib/pf/ (props changed)
projects/vap7/sys/dev/ (props changed)
projects/vap7/sys/dev/ath/ (props changed)
projects/vap7/sys/dev/ath/ath_hal/ (props changed)
projects/vap7/sys/dev/ath/ath_hal/ar5210/ (props changed)
projects/vap7/sys/dev/ath/ath_hal/ar5211/ (props changed)
projects/vap7/sys/dev/ath/ath_hal/ar5212/ (props changed)
projects/vap7/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
projects/vap7/sys/dev/ath/ath_hal/ar5312/ (props changed)
projects/vap7/sys/dev/ath/ath_hal/ar5416/ (props changed)
projects/vap7/sys/dev/cxgb/ (props changed)
projects/vap7/sys/dev/usb2/ (props changed)
projects/vap7/sys/i386/conf/USB2 (props changed)
projects/vap7/sys/modules/usb2/ (props changed)
projects/vap7/sys/net80211/ (props changed)
Modified: projects/vap7/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
==============================================================================
--- projects/vap7/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c Fri Feb 20 23:15:11 2009 (r188874)
+++ projects/vap7/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c Fri Feb 20 23:15:56 2009 (r188875)
@@ -450,7 +450,7 @@ ar5212SetSifsTime(struct ath_hal *ah, u_
return AH_FALSE;
} else {
/* convert to system clocks */
- OS_REG_WRITE(ah, AR_D_GBL_IFS_SIFS, ath_hal_mac_clks(ah, us));
+ OS_REG_WRITE(ah, AR_D_GBL_IFS_SIFS, ath_hal_mac_clks(ah, us-2));
ahp->ah_slottime = us;
return AH_TRUE;
}
@@ -460,7 +460,7 @@ u_int
ar5212GetSifsTime(struct ath_hal *ah)
{
u_int clks = OS_REG_READ(ah, AR_D_GBL_IFS_SIFS) & 0xffff;
- return ath_hal_mac_usec(ah, clks); /* convert from system clocks */
+ return ath_hal_mac_usec(ah, clks)+2; /* convert from system clocks */
}
HAL_BOOL
More information about the svn-src-projects
mailing list