svn commit: r225602 - user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5212

Adrian Chadd adrian at FreeBSD.org
Fri Sep 16 04:09:54 UTC 2011


Author: adrian
Date: Fri Sep 16 04:09:53 2011
New Revision: 225602
URL: http://svn.freebsd.org/changeset/base/225602

Log:
  Update the beacon interval value here; hopefully the queue setup
  will occur -after- the beacon interval has been set.
  
  TODO: verify this is actually the case..

Modified:
  user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c

Modified: user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c	Fri Sep 16 04:05:58 2011	(r225601)
+++ user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c	Fri Sep 16 04:09:53 2011	(r225602)
@@ -33,6 +33,7 @@
 void
 ar5212SetBeaconTimers(struct ath_hal *ah, const HAL_BEACON_TIMERS *bt)
 {
+	struct ath_hal_5212 *ahp = AH5212(ah);
 
 	OS_REG_WRITE(ah, AR_TIMER0, bt->bt_nexttbtt);
 	OS_REG_WRITE(ah, AR_TIMER1, bt->bt_nextdba);
@@ -54,6 +55,7 @@ ar5212SetBeaconTimers(struct ath_hal *ah
 		OS_REG_WRITE(ah, AR_BEACON, AR_BEACON_RESET_TSF);
 	}
 	OS_REG_WRITE(ah, AR_BEACON, bt->bt_intval);
+	ahp->ah_beaconInterval = (bt->bt_intval & HAL_BEACON_PERIOD);
 }
 
 /*


More information about the svn-src-user mailing list