[PATCH] ath10k: Add tx ack signal support for management frames

Peter Oh peter.oh at bowerswilkins.com
Wed Dec 27 10:22:57 PST 2017



On 12/27/2017 02:14 AM, vnaralas at qti.qualcomm.com wrote:
> From: Venkateswara Naralasetty <vnaralas at qti.qualcomm.com>
>
> This patch add support to get RSSI from acknowledgment
> frames for transmitted management frames.
>
> hardware_used: QCA4019, QCA9984.
> firmware version: 10.4-3.5.3-00052.
>
> Signed-off-by: Venkateswara Naralasetty <vnaralas at qti.qualcomm.com>
> ---
>   drivers/net/wireless/ath/ath10k/core.h   |  2 ++
>   drivers/net/wireless/ath/ath10k/htt.h    |  9 ++++++++-
>   drivers/net/wireless/ath/ath10k/htt_rx.c |  9 +++++++++
>   drivers/net/wireless/ath/ath10k/txrx.c   |  4 ++++
>   drivers/net/wireless/ath/ath10k/wmi.h    | 18 ++++++++++++++++++
>   5 files changed, 41 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h
> index 643041e..64c23a5 100644
> --- a/drivers/net/wireless/ath/ath10k/core.h
> +++ b/drivers/net/wireless/ath/ath10k/core.h
> @@ -51,6 +51,8 @@
>   /* Antenna noise floor */
>   #define ATH10K_DEFAULT_NOISE_FLOOR -95
>   
> +#define ATH10K_INVALID_RSSI 128
> +
>   #define ATH10K_MAX_NUM_MGMT_PENDING 128
>   
>   /* number of failed packets (20 packets with 16 sw reties each) */
> diff --git a/drivers/net/wireless/ath/ath10k/htt.h b/drivers/net/wireless/ath/ath10k/htt.h
> index 6305308..2168558d 100644
> --- a/drivers/net/wireless/ath/ath10k/htt.h
> +++ b/drivers/net/wireless/ath/ath10k/htt.h
> @@ -480,12 +480,18 @@ struct htt_ver_resp {
>   	u8 rsvd0;
>   } __packed;
>   
> +#define HTT_MGMT_TX_CMPL_FLAG_ACK_RSSI BIT(0)
> +
> +#define HTT_MGMT_TX_CMPL_INFO_ACK_RSSI	GENMASK(7, 0)
Better to have xxx_MASK as postfix to represent its usage.



More information about the ath10k mailing list