summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-02-20 22:06:58 +0000
committersam <sam@FreeBSD.org>2009-02-20 22:06:58 +0000
commitba7e159e0c183c6c7c61875f7b97ad5a7ae35f80 (patch)
tree2eb1e6ea9f17d83a325485b2f37be5c40919a5cf /sys/dev/ath
parentebd2f49d0dd77623e97cf9d3bee6d296c47e607c (diff)
downloadFreeBSD-src-ba7e159e0c183c6c7c61875f7b97ad5a7ae35f80.zip
FreeBSD-src-ba7e159e0c183c6c7c61875f7b97ad5a7ae35f80.tar.gz
correct SIFS setting; there is a 2usec adjustment between the calculated
value and what the hardware requires (based on inspection of INI values) Submitted by: Jiri Fojtasek <jiri.fojtasek@hlohovec.net>
Diffstat (limited to 'sys/dev/ath')
-rw-r--r--sys/dev/ath/ath_hal/ar5212/ar5212_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c b/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
index 09af7cb..af9be75 100644
--- a/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
+++ b/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
@@ -450,7 +450,7 @@ ar5212SetSifsTime(struct ath_hal *ah, u_int us)
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
OpenPOWER on IntegriCloud