1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00
freebsd/sys/dev/ath/ath_hal
Adrian Chadd 973d40776c Bring over the basic spectral scan framework code from Qualcomm Atheros.
This includes the HAL routines to setup, enable/activate/disable spectral
scan and configure the relevant registers.

This still requires driver interaction to enable spectral scan reporting.
Specifically:

* call ah_spectralConfigure() to configure and enable spectral scan;
* .. there's currently no way to disable spectral scan... that will have
  to follow.
* call ah_spectralStart() to force start a spectral report;
* call ah_spectralStop() to force stop an active spectral report.

The spectral scan results appear as PHY errors (type 0x5 on the AR9280,
same as radar) but with the spectral scan bit set (0x10 in the last byte
of the frame) identifying it as a spectral report rather than a radar
FFT report.

Caveats:

* It's likely quite difficult to run spectral _and_ radar at the same
  time.  Enabling spectral scan disables the radar thresholds but
  leaves radar enabled.  Thus, the driver (for now) needs to ensure
  that only one or the other is enabled.

* .. it needs testing on HT40 mode.

Tested:

* AR9280 in STA mode, HT/20 only

TODO:

* Test on AR9285, AR9287;
* Test in both HT20 and HT40 modes;
* .. all the driver glue.

Obtained from:	Qualcomm Atheros
2013-01-02 00:38:01 +00:00
..
ah_regdomain
ar5210 Disable WEP hardware encryption on the AR5210, in order to allow other 2012-11-19 23:42:46 +00:00
ar5211 Remove this include, it isn't needed. 2012-11-18 20:41:46 +00:00
ar5212 When programming the beacon timer configuration, be very explicit about 2012-11-27 02:18:41 +00:00
ar5312
ar5416 Bring over the basic spectral scan framework code from Qualcomm Atheros. 2013-01-02 00:38:01 +00:00
ar9001
ar9002 Bring over the basic spectral scan framework code from Qualcomm Atheros. 2013-01-02 00:38:01 +00:00
ar9003
ah_debug.h
ah_decode.h
ah_desc.h
ah_devid.h
ah_diagcodes.h
ah_eeprom_9287.c
ah_eeprom_9287.h
ah_eeprom_v1.c
ah_eeprom_v1.h
ah_eeprom_v3.c
ah_eeprom_v3.h
ah_eeprom_v4k.c
ah_eeprom_v4k.h
ah_eeprom_v14.c
ah_eeprom_v14.h
ah_eeprom.h
ah_internal.h Add spectral scan capability. 2012-12-30 06:46:11 +00:00
ah_regdomain.c Add XC900 SKU mapping. 2012-12-07 06:38:30 +00:00
ah_regdomain.h
ah_soc.h
ah.c Add the initial HAL glue for the spectral analysis support. 2012-12-30 06:48:12 +00:00
ah.h Add the initial HAL glue for the spectral analysis support. 2012-12-30 06:48:12 +00:00