freebsd-skq/sys/dev/ath/ath_hal/ar5212
Adrian Chadd fc4de9b7fc Update the TSF and next-TBTT methods to work for the AR5416 and later NICs.
This is another commit in a series of TDMA support fixes for the 11n NICs.

* Move ath_hal_getnexttbtt() into the HAL; write methods for it.
  This returns a timer value in TSF, rather than TU.

* Move ath_hal_getcca() and ath_hal_setcca() into the HAL too, where they
  likely now belong.

* Create a new HAL capability: HAL_CAP_LONG_RXDESC_TSF.
  The pre-11n NICs write 15 bit TSF snapshots into the RX descriptor;
  the AR5416 and later write 32 bit TSF snapshots into the RX descriptor.
* Use the new capability to choose between 15 and 31 bit TSF adjustment
  functions in ath_extend_tsf().

* Write ar5416GetTsf64() and ar5416SetTsf64() methods.
  ar5416GetTsf64() tries to compensate for TSF changes at the 32 bit boundary.

According to yin, this fixes the TDMA beaconing on 11n chipsets and TDMA
stations can now associate/talk, but there are still issues with traffic
stability which need to be investigated.

The ath_hal_extendtsf() function is also used in RX packet timestamping;
this may improve adhoc mode on the 11n chipsets. It also will affect the
timestamps seen in radiotap frames.

Submitted by:	Kang Yin Su <cantona@cantona.net>
Approved by:	re (kib)
2011-09-08 01:23:05 +00:00
..
ar2316.c Overhaul regulatory support: 2009-01-28 18:00:22 +00:00
ar2317.c Overhaul regulatory support: 2009-01-28 18:00:22 +00:00
ar2413.c Overhaul regulatory support: 2009-01-28 18:00:22 +00:00
ar2425.c Add PCIE power control api: 2009-02-24 01:07:06 +00:00
ar5111.c Overhaul regulatory support: 2009-01-28 18:00:22 +00:00
ar5112.c Re-introduce a global ath_hal_debug again for now, whilst I figure out what 2011-06-23 06:55:29 +00:00
ar5212_ani.c Fix ANI handling to work correctly when (trying) to receive radar errors. 2011-07-30 13:30:24 +00:00
ar5212_attach.c Update the TSF and next-TBTT methods to work for the AR5416 and later NICs. 2011-09-08 01:23:05 +00:00
ar5212_beacon.c Update the TSF and next-TBTT methods to work for the AR5416 and later NICs. 2011-09-08 01:23:05 +00:00
ar5212_eeprom.c Replace Id keyword with FreeBSD keyword and set the svn props correctly. 2010-03-03 17:32:32 +00:00
ar5212_gpio.c 5416 and later parts mux the gpio outputs; extend the api to include 2009-02-24 00:12:16 +00:00
ar5212_interrupts.c Remove extraneous semicolons, no functional changes. 2010-01-07 21:01:37 +00:00
ar5212_keycache.c Fix the keycache behaviour for multicast keycache search. 2011-02-09 15:23:16 +00:00
ar5212_misc.c Add another HAL method - ah_isFastClockEnabled - which returns AH_TRUE 2011-08-08 13:15:39 +00:00
ar5212_phy.c o eliminate a << in calculating the tx time for turbo mode by pre-multiplying 2009-04-13 21:01:08 +00:00
ar5212_power.c Add support for the AR9285 chipset, which is found on many netbooks 2010-01-29 10:10:14 +00:00
ar5212_recv.c Add some more OS_MARK probes to the RX DMA setup/teardown code path. 2011-04-07 13:14:51 +00:00
ar5212_reset.c The Atheros AR71xx CPUs, when paired with the AR5212 parts, has a bug 2010-05-01 16:36:14 +00:00
ar5212_rfgain.c eliminate gainFCorrection; just have ar5212GetGainFCorrection return 2009-02-05 21:13:31 +00:00
ar5212_xmit.c Break out most of the HAL related tweaks into a per-HAL instance, 2011-06-23 02:38:36 +00:00
ar5212.h Update the TSF and next-TBTT methods to work for the AR5416 and later NICs. 2011-09-08 01:23:05 +00:00
ar5212.ini Replace Id keyword with FreeBSD keyword and set the svn props correctly. 2010-03-03 17:32:32 +00:00
ar5212desc.h Replace Id keyword with FreeBSD keyword and set the svn props correctly. 2010-03-03 17:32:32 +00:00
ar5212phy.h Replace Id keyword with FreeBSD keyword and set the svn props correctly. 2010-03-03 17:32:32 +00:00
ar5212reg.h Bring over the relevant registers to use when implementing the quiet time 2011-06-03 07:27:53 +00:00
ar5311reg.h Replace Id keyword with FreeBSD keyword and set the svn props correctly. 2010-03-03 17:32:32 +00:00
ar5413.c Add PCIE power control api: 2009-02-24 01:07:06 +00:00