opnsense-src/sys/dev/ath/ath_hal/ar5416
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
..
ar2133.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416.h [ath_hal] migrate the shared HAL_RESET_* pieces out into ath_hal. 2018-05-25 01:27:39 +00:00
ar5416.ini Fix the addac serial load register write for AR5416. 2011-09-06 10:49:05 +00:00
ar5416_ani.c [ath_hal] Don't do ANI processing if we've reset. 2018-06-08 18:15:23 +00:00
ar5416_attach.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_beacon.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_btcoex.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_btcoex.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_cal.c [ath_hal] Return failure if noise floor calibration fails. 2018-06-08 18:21:57 +00:00
ar5416_cal.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_cal_adcdc.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_cal_adcgain.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_cal_iq.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_eeprom.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_gpio.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_interrupts.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_keycache.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_misc.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_phy.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_power.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_radar.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_recv.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_reset.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_spectral.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416_xmit.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416desc.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416phy.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416reg.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00