qcacmn: Extract pdev id from vdev id received in WMI_CHAN_INFO_EVENTID
Add support in utils layer to extract pdev id from vdev id using object manager APIs. Use the API to extract pdev id from vdev id received through the chan info event handler for lithium based chipsets. CRs-Fixed: 2043869 Change-Id: Ibf1f1f91d505d53219ca9a2f5d94beb8553edfe3
This commit is contained in:
@@ -16236,6 +16236,9 @@ static QDF_STATUS extract_chan_info_event_tlv(wmi_unified_t wmi_handle,
|
||||
chan_info->noise_floor = ev->noise_floor;
|
||||
chan_info->rx_clear_count = ev->rx_clear_count;
|
||||
chan_info->cycle_count = ev->cycle_count;
|
||||
chan_info->pdev_id = wlan_get_pdev_id_from_vdev_id(
|
||||
(struct wlan_objmgr_psoc *)wmi_handle->soc->wmi_psoc,
|
||||
ev->vdev_id, WLAN_SCAN_ID);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user