diff options
Diffstat (limited to 'sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c')
-rw-r--r-- | sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c b/sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c index 6691c11..e2bf6c7 100644 --- a/sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c +++ b/sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c @@ -197,25 +197,6 @@ ar5416SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) * beacon jitter; cab timeout is max time to wait for cab * after seeing the last DTIM or MORE CAB bit */ - -/* - * I've bumped these to 30TU for now. - * - * Some APs (AR933x/AR934x?) in 2GHz especially seem to not always - * transmit beacon frames at exactly the right times and with it set - * to 10TU, the NIC starts not waking up at the right times to hear - * these slightly-larger-jitering beacons. It also never recovers - * from that (it doesn't resync? I'm not sure.) - * - * So for now bump this to 30TU. Ideally we'd cap this based on - * the beacon interval so the sum of CAB+BEACON timeouts never - * exceeded the beacon interval. - * - * Now, since we're doing all the math in the ath(4) driver in TU - * rather than TSF, we may be seeing the result of dumb rounding - * errors causing the jitter to actually be a much bigger problem. - * I'll have to investigate that with a fine tooth comb. - */ #define CAB_TIMEOUT_VAL 10 /* in TU */ #define BEACON_TIMEOUT_VAL 10 /* in TU */ #define SLEEP_SLOP 3 /* in TU */ @@ -267,13 +248,6 @@ ar5416SetStaBeaconTimers(struct ath_hal *ah, const HAL_BEACON_STATE *bs) OS_REG_SET_BIT(ah, AR_TIMER_MODE, AR_TIMER_MODE_TBTT | AR_TIMER_MODE_TIM | AR_TIMER_MODE_DTIM); - -#define HAL_TSFOOR_THRESHOLD 0x00004240 /* TSF OOR threshold (16k us) */ - - /* TSF out of range threshold */ -// OS_REG_WRITE(ah, AR_TSFOOR_THRESHOLD, bs->bs_tsfoor_threshold); - OS_REG_WRITE(ah, AR_TSFOOR_THRESHOLD, HAL_TSFOOR_THRESHOLD); - HALDEBUG(ah, HAL_DEBUG_BEACON, "%s: next DTIM %d\n", __func__, bs->bs_nextdtim); HALDEBUG(ah, HAL_DEBUG_BEACON, "%s: next beacon %d\n", |