[PATCH 7/7] smd: print and store firmware API version as well as supported stations and bssids
Eugene Krasnikov
k.eugene.e at gmail.com
Mon May 20 10:07:29 EDT 2013
What about crm_version? do we need that?
2013/5/20 Kalle Valo <kvalo at qca.qualcomm.com>:
> Helps with debugging in the future.
>
> Signed-off-by: Kalle Valo <kvalo at qca.qualcomm.com>
> ---
> smd.c | 11 +++++++++++
> wcn36xx.h | 5 +++++
> 2 files changed, 16 insertions(+)
>
> diff --git a/smd.c b/smd.c
> index 3f25c22..bfdf636 100644
> --- a/smd.c
> +++ b/smd.c
> @@ -156,9 +156,20 @@ static int wcn36xx_smd_start_rsp(struct wcn36xx *wcn, void *buf, size_t len)
> wcn->crm_version[WCN36XX_HAL_VERSION_LENGTH] = '\0';
> wcn->wlan_version[WCN36XX_HAL_VERSION_LENGTH] = '\0';
>
> + wcn->fw_revision = rsp->start_rsp_params.version.revision;
> + wcn->fw_version = rsp->start_rsp_params.version.version;
> + wcn->fw_minor = rsp->start_rsp_params.version.minor;
> + wcn->fw_major = rsp->start_rsp_params.version.major;
> +
> wcn36xx_info("firmware WLAN version '%s' and CRM version '%s'",
> wcn->wlan_version, wcn->crm_version);
>
> + wcn36xx_info("firmware API %u.%u.%u.%u, %u stations, %u bssids",
> + wcn->fw_major, wcn->fw_minor,
> + wcn->fw_version, wcn->fw_revision,
> + rsp->start_rsp_params.stations,
> + rsp->start_rsp_params.bssids);
> +
> return 0;
> }
>
> diff --git a/wcn36xx.h b/wcn36xx.h
> index 198f7ff..21b2eb7 100644
> --- a/wcn36xx.h
> +++ b/wcn36xx.h
> @@ -98,6 +98,11 @@ struct wcn36xx {
> struct mac_address addresses[2];
> u8 ch;
>
> + u8 fw_revision;
> + u8 fw_version;
> + u8 fw_minor;
> + u8 fw_major;
> +
> /* extra byte for the NULL termination */
> u8 crm_version[WCN36XX_HAL_VERSION_LENGTH + 1];
> u8 wlan_version[WCN36XX_HAL_VERSION_LENGTH + 1];
>
>
> _______________________________________________
> wcn36xx mailing list
> wcn36xx at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/wcn36xx
--
Best regards,
Eugene
More information about the wcn36xx
mailing list