diff options
| author | Mukul Sharma <mukul@codeaurora.org> | 2016-09-12 15:23:35 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-09-21 17:05:00 -0700 |
| commit | 5ff3c587fb2ea872ad9f7495d0aab72baf3fc19c (patch) | |
| tree | 258811dd575218cc13cbdfb28ea3beba7655e619 | |
| parent | af47474e5f1c69081e0c8a33c974b792086673ab (diff) | |
qcacld-3.0: Store WMI version in a global variable
qcacld-2.0 to qcacld-3.0 propagation
Capture WMI version in a global variable for crashscope
to extract WMI logs.
Change-Id: I2f06eaf182bb67dceade397652f801e6311b8f68
CRs-Fixed: 978901
| -rw-r--r-- | core/wma/inc/wma.h | 12 | ||||
| -rw-r--r-- | core/wma/src/wma_main.c | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/core/wma/inc/wma.h b/core/wma/inc/wma.h index 8dda30e6f631..5a5d738f573d 100644 --- a/core/wma/inc/wma.h +++ b/core/wma/inc/wma.h @@ -755,6 +755,18 @@ typedef struct { } vdev_cli_config_t; /** + * struct wma_version_info - Store wmi version info + * @major: wmi major version + * @minor: wmi minor version + * @revision: wmi revision number + */ +struct wma_version_info { + u_int32_t major; + u_int32_t minor; + u_int32_t revision; +}; + +/** * struct wma_wow - store wow patterns * @magic_ptrn_enable: magic pattern enable/disable * @wow_enable: wow enable/disable diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 30a136907f99..aa47d07de511 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -1637,6 +1637,8 @@ static void wma_init_max_no_of_peers(tp_wma_handle wma_handle, cfg->max_no_of_peers = max_peers; } +struct wma_version_info g_wmi_version_info; + /** * wma_open() - Allocate wma context and initialize it. * @cds_context: cds context @@ -1663,6 +1665,10 @@ QDF_STATUS wma_open(void *cds_context, WMA_LOGD("%s: Enter", __func__); + g_wmi_version_info.major = __WMI_VER_MAJOR_; + g_wmi_version_info.minor = __WMI_VER_MINOR_; + g_wmi_version_info.revision = __WMI_REVISION_; + qdf_dev = cds_get_context(QDF_MODULE_ID_QDF_DEVICE); htc_handle = cds_get_context(QDF_MODULE_ID_HTC); |
