From 2f1a4c4d3008ff95bf7d3023239134cf454f4e3b Mon Sep 17 00:00:00 2001 From: adrian Date: Mon, 4 Mar 2019 06:42:06 +0000 Subject: [PATCH] [ath_hal] add extra ANI fields for the AR9300 HAL. I'm trying to debug why reception upstairs here is so terrible and it turns out ANI is buggy. (Which is no surprise, ANI is always buggy.) Tested: * Carambola2 (AR9331), STA/AP modes --- sys/dev/ath/ath_hal/ah.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/ath/ath_hal/ah.h b/sys/dev/ath/ath_hal/ah.h index b887e9f5afb4..85ca9e850bae 100644 --- a/sys/dev/ath/ath_hal/ah.h +++ b/sys/dev/ath/ath_hal/ah.h @@ -893,11 +893,13 @@ typedef struct { } HAL_ANI_STATS; typedef struct { - uint8_t noiseImmunityLevel; + uint8_t noiseImmunityLevel; /* OFDM */ + uint8_t cckNoiseImmunityLevel; uint8_t spurImmunityLevel; uint8_t firstepLevel; uint8_t ofdmWeakSigDetectOff; uint8_t cckWeakSigThreshold; + uint8_t mrcCckOff; uint32_t listenTime; /* NB: intentionally ordered so data exported to user space is first */