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

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
*
*
* Permission to use, copy, modify, and/or distribute this software for
@@ -818,6 +819,8 @@ struct wlan_lmac_if_iot_sim_tx_ops {
* @wifi_pos_convert_pdev_id_target_to_host: function pointer to get host
* pdev_id from target pdev_id.
* @wifi_pos_get_vht_ch_width: Function pointer to get max supported bw by FW
* @wifi_pos_parse_measreq_chan_info: Parse channel info from LOWI measurement
* request buffer.
*/
struct wlan_lmac_if_wifi_pos_tx_ops {
QDF_STATUS (*data_req_tx)(struct wlan_objmgr_pdev *pdev,
@@ -832,6 +835,10 @@ struct wlan_lmac_if_wifi_pos_tx_ops {
uint32_t *host_pdev_id);
QDF_STATUS (*wifi_pos_get_vht_ch_width)(struct wlan_objmgr_psoc *psoc,
enum phy_ch_width *ch_width);
QDF_STATUS (*wifi_pos_parse_measreq_chan_info)(
struct wlan_objmgr_pdev *pdev, uint32_t data_len,
uint8_t *data, struct rtt_channel_info *chinfo);
};
#endif