[PATCH v3 2/7] ath10k: add ATH10K_FW_IE_WMI_OP_VERSION

Michal Kazior michal.kazior at tieto.com
Tue Dec 2 00:28:34 PST 2014


On 1 December 2014 at 15:45, Kalle Valo <kvalo at qca.qualcomm.com> wrote:
[...]
> diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h
> index 514c219263a5..92b04fe73151 100644
> --- a/drivers/net/wireless/ath/ath10k/core.h
> +++ b/drivers/net/wireless/ath/ath10k/core.h
> @@ -120,6 +120,7 @@ struct ath10k_mem_chunk {
>  };
>
>  struct ath10k_wmi {
> +       unsigned int op_version;

I wonder - can't we have this as `enum ath10k_fw_wmi_op_version op_version;` ?


> @@ -378,8 +379,9 @@ enum ath10k_fw_features {
>         /* Firmware does not support P2P */
>         ATH10K_FW_FEATURE_NO_P2P = 3,
>
> -       /* Firmware 10.2 feature bit. The ATH10K_FW_FEATURE_WMI_10X feature bit
> -        * is required to be set as well.
> +       /* Firmware 10.2 feature bit. The ATH10K_FW_FEATURE_WMI_10X feature
> +        * bit is required to be set as well. Deprecated, don't use in new
> +        * code.

Just out of curiosity - any plans how long this is going to be
depracated until removed/replaced?


>          */
>         ATH10K_FW_FEATURE_WMI_10_2 = 4,
>
> diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h
> index dfedfd0e0f34..04aaf9af3ca0 100644
> --- a/drivers/net/wireless/ath/ath10k/hw.h
> +++ b/drivers/net/wireless/ath/ath10k/hw.h
> @@ -58,6 +58,16 @@ enum ath10k_fw_ie_type {
>         ATH10K_FW_IE_FEATURES = 2,
>         ATH10K_FW_IE_FW_IMAGE = 3,
>         ATH10K_FW_IE_OTP_IMAGE = 4,
> +
> +       /* WMI "operations" interface version, 32 bit value. Supported from
> +        * FW API 4 and above. */
> +       ATH10K_FW_IE_WMI_OP_VERSION = 5,

Hmm.. shouldn't we bump up the firmware filename from -3 to -4 and try
loading 4..3..2..1?


Michał



More information about the ath10k mailing list