diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2017-11-28 04:33:04 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2017-11-28 04:33:04 +0000 |
commit | e324402fbf0968dfab274006259f278ba0b7fa0c (patch) | |
tree | e0b397de79bf6a1d92d7037fb19f3cc60b4f2af7 /sys/dev/ic | |
parent | 64eead58417fd9272b821d323c6319e4e57f7565 (diff) |
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@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/ar5008reg.h | 7 |
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 |