qcacmn: Add fw build version in (ext) service event data
FW reports build number in service ready and ext_service ready event.
Save these to display FW build version during brinup.
Change-Id: Ia86a392f826c5bb836be9353e3938ab1f811ab62
CRs-Fixed: 2125667
diff --git a/wmi_unified_non_tlv.c b/wmi_unified_non_tlv.c
index ad9257e..16755e3 100644
--- a/wmi_unified_non_tlv.c
+++ b/wmi_unified_non_tlv.c
@@ -5589,6 +5589,8 @@
cap->sys_cap_info = ev->sys_cap_info;
cap->min_pkt_size_enable = ev->min_pkt_size_enable;
cap->max_bcn_ie_size = ev->max_bcn_ie_size;
+ cap->fw_version = ev->sw_version;
+ cap->fw_version_1 = ev->sw_version_1;
/* Following caps not recieved in older fw/hw
* Initialize it as zero(default). */
cap->max_num_scan_channels = 0;
diff --git a/wmi_unified_tlv.c b/wmi_unified_tlv.c
index 4065699..4507bf4 100644
--- a/wmi_unified_tlv.c
+++ b/wmi_unified_tlv.c
@@ -16231,6 +16231,9 @@
cap->txrx_chainmask = ev->txrx_chainmask;
cap->default_dbs_hw_mode_index = ev->default_dbs_hw_mode_index;
cap->num_msdu_desc = ev->num_msdu_desc;
+ cap->fw_version = ev->fw_build_vers;
+ /* fw_version_1 is not available in TLV. */
+ cap->fw_version_1 = 0;
return QDF_STATUS_SUCCESS;
}
@@ -17864,6 +17867,7 @@
param->he_cap_info = ev->he_cap_info;
param->mpdu_density = ev->mpdu_density;
param->max_bssid_rx_filters = ev->max_bssid_rx_filters;
+ param->fw_build_vers_ext = ev->fw_build_vers_ext;
qdf_mem_copy(¶m->ppet, &ev->ppet, sizeof(param->ppet));
hw_caps = param_buf->soc_hw_mode_caps;