qcacmn: Add support to extract the channel info from RTT measreq

Add support to extract the freq, cfreq1, cfreq2, PHY mode, Destination
macaddr, and channel BW values from the RTT measurement request buffer
received from the LOWI application. Pass these values to a registered
callback. Users can use these values to make some decisions on the RTT
scan.

Change-Id: Idb2232c07bbfa2946dc01e75908b9a6036597ecf
CRs-Fixed: 3060685
This commit is contained in:
Shashikala Prabhu
2021-11-01 16:40:58 +05:30
committed by Madan Koyyalamudi
parent b966b27c3f
commit a117c19fda
14 changed files with 296 additions and 5 deletions

View File

@@ -4103,7 +4103,21 @@ QDF_STATUS wmi_convert_pdev_id_host_to_target(wmi_unified_t wmi_handle,
QDF_STATUS wmi_convert_pdev_id_target_to_host(wmi_unified_t wmi_handle,
uint32_t target_pdev_id,
uint32_t *host_pdev_id);
#endif
#ifdef WLAN_RTT_MEASUREMENT_NOTIFICATION
/**
* wmi_unified_extract_measreq_chan_info() - Extract the channel info from the
* LOWI measurement request buffer.
* @wmi_handle: wmi handle
* @data_len: the length of @data
* @data: the pointer to data buf
* @chinfo: Pointer to a structure to save channel info
*/
QDF_STATUS wmi_unified_extract_measreq_chan_info(
wmi_unified_t wmi_handle, uint32_t data_len, uint8_t *data,
struct rtt_channel_info *chinfo);
#endif /* WLAN_RTT_MEASUREMENT_NOTIFICATION */
#endif /* CNSS_GENL */
/**
* wmi_unified_send_bss_color_change_enable_cmd() - WMI function to send bss