summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2017-11-28 04:33:03 +0000
committerstsp <stsp@openbsd.org>2017-11-28 04:33:03 +0000
commit6909986c2175ec1027c10b85930a8afec84782a2 (patch)
tree2fec1558a55fc5b5fba7f8ccbf46113d924d11b4
parentin auto-allocation, increase size of /usr/src to 1.3G. (diff)
downloadwireguard-openbsd-6909986c2175ec1027c10b85930a8afec84782a2.tar.xz
wireguard-openbsd-6909986c2175ec1027c10b85930a8afec84782a2.zip
In athn(4), fix a comment which misidentifies the field where RSSI
values occur. Add macros to access RSSI info in ds_status4 as well. ok kevlo@
-rw-r--r--sys/dev/ic/ar5008reg.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/ar5008reg.h b/sys/dev/ic/ar5008reg.h
index 7f1f32c7569..91349bcbee6 100644
--- a/sys/dev/ic/ar5008reg.h
+++ b/sys/dev/ic/ar5008reg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5008reg.h,v 1.4 2017/01/12 16:32:28 stsp Exp $ */
+/* $OpenBSD: ar5008reg.h,v 1.5 2017/11/28 04:33:03 stsp Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
@@ -872,7 +872,7 @@ struct ar_rx_desc {
#define AR_RXC1_BUF_LEN_S 0
#define AR_RXC1_INTR_REQ 0x00002000
-/* Bits for ds_ctl2. */
+/* Bits for ds_status0. */
#define AR_RXS0_RSSI_ANT00(x) (((x) >> 0) & 0xff)
#define AR_RXS0_RSSI_ANT01(x) (((x) >> 8) & 0xff)
#define AR_RXS0_RSSI_ANT02(x) (((x) >> 16) & 0xff)
@@ -894,6 +894,9 @@ struct ar_rx_desc {
#define AR_RXS3_RATE_S 2
/* Bits for ds_status4. */
+#define AR_RXS0_RSSI_ANT10(x) (((x) >> 0) & 0xff)
+#define AR_RXS0_RSSI_ANT11(x) (((x) >> 8) & 0xff)
+#define AR_RXS0_RSSI_ANT12(x) (((x) >> 16) & 0xff)
#define AR_RXS4_RSSI_COMBINED_M 0xff000000
#define AR_RXS4_RSSI_COMBINED_S 24