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
This commit is contained in:
@@ -4621,6 +4621,28 @@ QDF_STATUS wmi_ready_extract_mac_addr(void *wmi_hdl, void *ev, uint8_t *macaddr)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_ready_extract_mac_addr() - extract MAC address list from ready event
|
||||
* @wmi_handle: wmi handle
|
||||
* @param ev: pointer to event buffer
|
||||
* @param num_mac_addr: Pointer to number of entries
|
||||
*
|
||||
* Return: address to start of mac addr list
|
||||
*/
|
||||
wmi_host_mac_addr *wmi_ready_extract_mac_addr_list(void *wmi_hdl, void *ev,
|
||||
uint8_t *num_mac_addr)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->ready_extract_mac_addr_list)
|
||||
return wmi_handle->ops->ready_extract_mac_addr_list(wmi_handle,
|
||||
ev, num_mac_addr);
|
||||
|
||||
*num_mac_addr = 0;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_extract_dbglog_data_len() - extract debuglog data length
|
||||
* @wmi_handle: wmi handle
|
||||
|
Reference in New Issue
Block a user