On Mon, Nov 27, 2017 at 09:30:59PM +0100, Stefan Sperling wrote:
> 
> Fix a comment which misidentifies the field where RSSI values occur.
> Add macros to access RSSI info in ds_status4 as well.
> 
> ok?

Sure, ok kevlo@

> Index: ar5008reg.h
> ===================================================================
> RCS file: /cvs/src/sys/dev/ic/ar5008reg.h,v
> retrieving revision 1.4
> diff -u -p -r1.4 ar5008reg.h
> --- ar5008reg.h       12 Jan 2017 16:32:28 -0000      1.4
> +++ ar5008reg.h       27 Nov 2017 19:29:26 -0000
> @@ -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
>  
> 
> 

Reply via email to