freebsd-dev/sys/dev/ath/ath_hal
Adrian Chadd af5336e30b Extend the ANI code to implement basic channel survey support.
* Always call ar5416GetListenTime()
* Modify ar5416GetListenTime() to:
  + don't update the ANI state if there isn't any ANI state;
  + don't update the channel survey state if there's no active
    channel - just to be paranoid
  + copy the channel survey results into the current sample slot
    based on the current channel; then increment the sample counter
    and sample history counter.
* Modify ar5416GetMIBCyclesPct() to simply return a HAL_SURVEY_SAMPLE,
  rather than a set of percentages.  The ANI code wasn't using the
  percentages anyway.

TODO:

* Create a new function which fetches the survey results periodically
* .. then modify the ANI code to use the pre-fetched values rather than
  fetching them again
* Roll the 11n ext busy function from ar5416_misc.c to update all the
  counters, then do the result calculation
* .. then, modify the MIB counter routine to correctly fetch a snapshot -
  freeze the counters, fetch the values, then reset the counters.
2012-04-28 08:29:46 +00:00
..
ah_regdomain These two are ath_hal regulatory domain updates from the Atheros 2011-07-20 12:46:58 +00:00
ar5210 Stop using the hardware register value byte order swapping for now, 2012-04-19 03:26:21 +00:00
ar5211 Stop using the hardware register value byte order swapping for now, 2012-04-19 03:26:21 +00:00
ar5212 Fetch the channel survey code from the HAL. 2012-04-28 08:15:40 +00:00
ar5312 Stop using the hardware register value byte order swapping for now, 2012-04-19 03:26:21 +00:00
ar5416 Extend the ANI code to implement basic channel survey support. 2012-04-28 08:29:46 +00:00
ar9001 Break out the "memory" EEPROM data read method from being AR9130 specific 2012-01-15 19:22:34 +00:00
ar9002 .. oops. 2012-04-20 22:07:21 +00:00
ah_debug.h Add a new flag - HAL_DEBUG_UNMASKABLE - which always logs a debug message 2011-05-11 13:22:41 +00:00
ah_decode.h Add a threadid to the ah_decode API. 2012-04-04 20:46:20 +00:00
ah_desc.h .. the AR5416 HAL code touches the MIMO parts in HAL_CHANNEL, 2012-01-07 20:23:05 +00:00
ah_devid.h Correct device id comments. 2011-11-11 00:48:41 +00:00
ah_diagcodes.h Reserve a new diagnostic code for the channel survey code I'll add soon. 2011-03-19 14:37:13 +00:00
ah_eeprom_9287.c Prepare for embedded use of the AR9285/AR9287. 2011-07-30 13:37:38 +00:00
ah_eeprom_9287.h Make sure the extended regdomain word is initialised. 2011-06-28 00:01:55 +00:00
ah_eeprom_v1.c Fix the eeprom set API method to return HAL_STATUS. 2011-05-14 15:12:02 +00:00
ah_eeprom_v1.h Replace Id keyword with FreeBSD keyword and set the svn props correctly. 2010-03-03 17:32:32 +00:00
ah_eeprom_v3.c Fix the eeprom set API method to return HAL_STATUS. 2011-05-14 15:12:02 +00:00
ah_eeprom_v3.h Replace Id keyword with FreeBSD keyword and set the svn props correctly. 2010-03-03 17:32:32 +00:00
ah_eeprom_v4k.c "Upgrade" the AR9285 code to support PCI/ART EEPROM on flash. 2012-04-20 21:56:13 +00:00
ah_eeprom_v4k.h Bring over a pdadc calibration fix from ath9k - unused power detector 2011-04-22 10:57:46 +00:00
ah_eeprom_v14.c Introduce the FRAC_5G EEPROM parameter. 2011-07-30 13:45:12 +00:00
ah_eeprom_v14.h Introduce the FRAC_5G EEPROM parameter. 2011-07-30 13:45:12 +00:00
ah_eeprom.h Introduce the FRAC_5G EEPROM parameter. 2011-07-30 13:45:12 +00:00
ah_internal.h .. the AR5416 HAL code touches the MIMO parts in HAL_CHANNEL, 2012-01-07 20:23:05 +00:00
ah_regdomain.c Fix a corner case in the HAL debugging changes, where ah was NULL. 2011-09-30 05:17:57 +00:00
ah_regdomain.h Migrate the regulatory database definitions into separate header files 2011-03-10 03:13:56 +00:00
ah_soc.h Replace Id keyword with FreeBSD keyword and set the svn props correctly. 2010-03-03 17:32:32 +00:00
ah.c Break out the "memory" EEPROM data read method from being AR9130 specific 2012-01-15 19:22:34 +00:00
ah.h Extend the HAL channel survey statistics: 2012-04-28 08:12:51 +00:00