[PATCH 1/4] wifi: ath: create common testmode_i.h file for ath drivers

Jeff Johnson quic_jjohnson at quicinc.com
Mon Oct 30 08:20:53 PDT 2023


On 10/30/2023 1:27 AM, Aaradhana Sahu wrote:
> User space application requires that the testmode interface
> is exactly same between ath drivers. Move testmode_i.h file
> in ath directory to ensure that all ath driver uses same testmode
> interface instead of duplicating testmode_i.h for each ath drivers.
> 
> Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1
> 
> Signed-off-by: Aaradhana Sahu <quic_aarasahu at quicinc.com>
> ---
>   drivers/net/wireless/ath/ath11k/testmode.c    | 78 +++++++++----------
>   .../wireless/ath/{ath11k => }/testmode_i.h    | 52 ++++++-------
>   2 files changed, 65 insertions(+), 65 deletions(-)
>   rename drivers/net/wireless/ath/{ath11k => }/testmode_i.h (53%)
> 
> diff --git a/drivers/net/wireless/ath/ath11k/testmode.c b/drivers/net/wireless/ath/ath11k/testmode.c
> index 43bb23265d34..5da5e53f3eac 100644
> --- a/drivers/net/wireless/ath/ath11k/testmode.c
> +++ b/drivers/net/wireless/ath/ath11k/testmode.c
> @@ -10,18 +10,18 @@
>   #include "wmi.h"
>   #include "hw.h"
>   #include "core.h"
> -#include "testmode_i.h"
> +#include "../testmode_i.h"
>   
>   #define ATH11K_FTM_SEGHDR_CURRENT_SEQ		GENMASK(3, 0)
>   #define ATH11K_FTM_SEGHDR_TOTAL_SEGMENTS	GENMASK(7, 4)
>   
> -static const struct nla_policy ath11k_tm_policy[ATH11K_TM_ATTR_MAX + 1] = {
> -	[ATH11K_TM_ATTR_CMD]		= { .type = NLA_U32 },
> -	[ATH11K_TM_ATTR_DATA]		= { .type = NLA_BINARY,
> -					    .len = ATH11K_TM_DATA_MAX_LEN },
> -	[ATH11K_TM_ATTR_WMI_CMDID]	= { .type = NLA_U32 },
> -	[ATH11K_TM_ATTR_VERSION_MAJOR]	= { .type = NLA_U32 },
> -	[ATH11K_TM_ATTR_VERSION_MINOR]	= { .type = NLA_U32 },
> +static const struct nla_policy ath11k_tm_policy[ATH_TM_ATTR_MAX + 1] = {
> +	[ATH_TM_ATTR_CMD]		= { .type = NLA_U32 },
> +	[ATH_TM_ATTR_DATA]		= { .type = NLA_BINARY,
> +					    .len = ATH_TM_DATA_MAX_LEN },
> +	[ATH_TM_ATTR_WMI_CMDID]	= { .type = NLA_U32 },

maintain vertical alignment of "="

> +	[ATH_TM_ATTR_VERSION_MAJOR]	= { .type = NLA_U32 },
> +	[ATH_TM_ATTR_VERSION_MINOR]	= { .type = NLA_U32 },
>   };




More information about the ath12k mailing list