freebsd-nq/sys/dev/ath/ath_hal
Adrian Chadd 8a97beff98 [ath_hal] Return failure if noise floor calibration fails.
If we fail noise floor calibration then we may end up with a deaf NIC
which we can't recover without a full chip reset.

Earlier chips seem to get less stuck in this condition versus AR9280/later
and AR9300/later, but whilst here just fix up the AR5212 era chips to also
return NF calibration failures.

This HAL routine would only return failure if the channel was not configured.

This is a no-op until the driver side code for doing resets and the HAL
code for being told about the reset type (and then handling it!) is
implemented.

Tested:

* AR9280, STA mode
* AR2425, STA mode
* AR9380, STA mode
2018-06-08 18:21:57 +00:00
..
ah_regdomain SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5210 SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5211 SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5212 [ath_hal] Don't do ANI processing if we've reset. 2018-06-08 18:15:23 +00:00
ar5312 SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416 [ath_hal] Return failure if noise floor calibration fails. 2018-06-08 18:21:57 +00:00
ar9001 SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar9002 SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar9003 SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_btcoex.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_debug.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_decode.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_desc.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_devid.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_diagcodes.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_9287.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_9287.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v1.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v1.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v3.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v3.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v4k.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v4k.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v14.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v14.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_internal.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_regdomain.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_regdomain.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_soc.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah.h [ath_hal] migrate the shared HAL_RESET_* pieces out into ath_hal. 2018-05-25 01:27:39 +00:00