[PATCH net-next] net:drivers/net: Miscellaneous conversions to ETH_ALEN

Kalle Valo kvalo at qca.qualcomm.com
Wed Oct 2 00:59:36 EDT 2013


(Cutting the CC smaller)

Joe Perches <joe at perches.com> writes:

> Convert the memset/memcpy uses of 6 to ETH_ALEN
> where appropriate.
>
> Also convert some struct definitions and u8 array
> declarations of [6] to ETH_ALEN.
>
> Signed-off-by: Joe Perches <joe at perches.com>

[...]

> diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
> index 55f90c7..bee88e8 100644
> --- a/drivers/net/wireless/ath/ath10k/wmi.c
> +++ b/drivers/net/wireless/ath/ath10k/wmi.c
> @@ -1918,7 +1918,7 @@ int ath10k_wmi_peer_set_param(struct ath10k *ar, u32 vdev_id,
>  	cmd->vdev_id     = __cpu_to_le32(vdev_id);
>  	cmd->param_id    = __cpu_to_le32(param_id);
>  	cmd->param_value = __cpu_to_le32(param_value);
> -	memcpy(&cmd->peer_macaddr.addr, peer_addr, 6);
> +	memcpy(&cmd->peer_macaddr.addr, peer_addr, ETH_ALEN);
>  
>  	ath10k_dbg(ATH10K_DBG_WMI,
>  		   "wmi vdev %d peer 0x%pM set param %d value %d\n",

Acked-by: Kalle Valo <kvalo at qca.qualcomm.com>

-- 
Kalle Valo



More information about the ath10k mailing list