qcacmn: Add function to extract MAC addr list
For DBDC/DBS cases, each radio will have a separate MAC
address. FW will provide the list to host in ready
event. Handler has been added to extract the list.
Change-Id: I6da96ae02a1f30995e3953358677090b84fc57c4
diff --git a/wmi_unified_tlv.c b/wmi_unified_tlv.c
index e2609f0..b315b4b 100644
--- a/wmi_unified_tlv.c
+++ b/wmi_unified_tlv.c
@@ -15992,7 +15992,6 @@
WMI_READY_EVENTID_param_tlvs *param_buf = NULL;
wmi_ready_event_fixed_param *ev = NULL;
-
param_buf = (WMI_READY_EVENTID_param_tlvs *) evt_buf;
ev = param_buf->fixed_param;
@@ -16025,6 +16024,28 @@
}
/**
+ * ready_extract_mac_addr_list_tlv() - extract MAC address list from ready event
+ * @wmi_handle: wmi handle
+ * @param evt_buf: pointer to event buffer
+ * @param macaddr: Pointer to hold number of MAC addresses
+ *
+ * Return: Pointer to addr list
+ */
+static wmi_host_mac_addr *ready_extract_mac_addr_list_tlv(wmi_unified_t wmi_hamdle,
+ void *evt_buf, uint8_t *num_mac)
+{
+ WMI_READY_EVENTID_param_tlvs *param_buf = NULL;
+ wmi_ready_event_fixed_param *ev = NULL;
+
+ param_buf = (WMI_READY_EVENTID_param_tlvs *) evt_buf;
+ ev = param_buf->fixed_param;
+
+ *num_mac = ev->num_extra_mac_addr;
+
+ return (wmi_host_mac_addr *) param_buf->mac_addr_list;
+}
+
+/**
* extract_dbglog_data_len_tlv() - extract debuglog data length
* @wmi_handle: wmi handle
* @param evt_buf: pointer to event buffer
@@ -18957,6 +18978,7 @@
.save_fw_version = save_fw_version_in_service_ready_tlv,
.ready_extract_init_status = ready_extract_init_status_tlv,
.ready_extract_mac_addr = ready_extract_mac_addr_tlv,
+ .ready_extract_mac_addr_list = ready_extract_mac_addr_list_tlv,
.extract_dbglog_data_len = extract_dbglog_data_len_tlv,
.extract_vdev_start_resp = extract_vdev_start_resp_tlv,
.extract_tbttoffset_update_params =