summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/ath_hal/ah_internal.h
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-04-08 06:58:01 +0000
committeradrian <adrian@FreeBSD.org>2011-04-08 06:58:01 +0000
commit01612edce69b9fa3e691e982df2b503f7a1905bb (patch)
treea30ba7da19fb8b3d460c58c0f81ca733d828195c /sys/dev/ath/ath_hal/ah_internal.h
parent76769431e059b9256d941d1067039835d11ed759 (diff)
downloadFreeBSD-src-01612edce69b9fa3e691e982df2b503f7a1905bb.zip
FreeBSD-src-01612edce69b9fa3e691e982df2b503f7a1905bb.tar.gz
Export the per-chain ctl/ext noise floor values, raw and uncut, to the
upper-level HAL. Right now the per-chain noise floor values aren't used anywhere in the upper-level HAL, so the driver currently has no real reference to compare the per-chain RSSI values to. This is needed before per-chain RSSI values (for ctl and ext radios) are can be thrown upstairs to the net80211 code.
Diffstat (limited to 'sys/dev/ath/ath_hal/ah_internal.h')
-rw-r--r--sys/dev/ath/ath_hal/ah_internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ah_internal.h b/sys/dev/ath/ath_hal/ah_internal.h
index c40ba55..c78c0bd 100644
--- a/sys/dev/ath/ath_hal/ah_internal.h
+++ b/sys/dev/ath/ath_hal/ah_internal.h
@@ -28,6 +28,7 @@
#define AH_MAX(a,b) ((a)>(b)?(a):(b))
#include <net80211/_ieee80211.h>
+#include "opt_ah.h" /* needed for AH_SUPPORT_AR5416 */
#ifndef NBBY
#define NBBY 8 /* number of bits/byte */
@@ -136,11 +137,16 @@ typedef struct {
#define CHANNEL_IQVALID 0x01 /* IQ calibration valid */
#define CHANNEL_ANI_INIT 0x02 /* ANI state initialized */
#define CHANNEL_ANI_SETUP 0x04 /* ANI state setup */
+#define CHANNEL_MIMO_NF_VALID 0x04 /* Mimo NF values are valid */
uint8_t calValid; /* bitmask of cal types */
int8_t iCoff;
int8_t qCoff;
int16_t rawNoiseFloor;
int16_t noiseFloorAdjust;
+#ifdef AH_SUPPORT_AR5416
+ uint8_t noiseFloorCtl[AH_MIMO_MAX_CHAINS];
+ uint8_t noiseFloorExt[AH_MIMO_MAX_CHAINS];
+#endif /* AH_SUPPORT_AR5416 */
uint16_t mainSpur; /* cached spur value for this channel */
} HAL_CHANNEL_INTERNAL;
OpenPOWER on IntegriCloud