qcacld-3.0: Add tgt support to send beacon report period to FW

Add tgt support in packet capture component to send user
configured beacon report interval to FW.

Change-Id: Ibeb9f9a7f9ad2c2afa6929c492bd1029784b5f9e
CRs-Fixed: 3046224
This commit is contained in:
Vulupala Shashank Reddy
2021-08-30 12:46:42 +05:30
committed by Madan Koyyalamudi
parent e5e7e8049f
commit 15f71d055b
5 changed files with 131 additions and 4 deletions

View File

@@ -125,6 +125,44 @@ target_if_set_packet_capture_config
}
#endif
/**
* target_if_set_packet_capture_beacon_interval() - set packet capture beacon
* interval
* @psoc: pointer to psoc object
* @vdev_id: vdev id
* @nth_value: Beacon report period
*
* Return: QDF_STATUS
*/
static QDF_STATUS
target_if_set_packet_capture_beacon_interval
(struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id,
uint32_t nth_value)
{
wmi_unified_t wmi_handle = lmac_get_wmi_unified_hdl(psoc);
QDF_STATUS status = QDF_STATUS_E_FAILURE;
struct vdev_set_params param;
if (!wmi_handle) {
target_if_err("Invalid wmi handle");
return QDF_STATUS_E_INVAL;
}
target_if_debug("psoc:%pK, vdev_id:%d nth_value:%d",
psoc, vdev_id, nth_value);
param.vdev_id = vdev_id;
param.param_id = WMI_VDEV_PARAM_NTH_BEACON_TO_HOST;
param.param_value = nth_value;
status = wmi_unified_vdev_set_param_send(wmi_handle, &param);
if (QDF_IS_STATUS_ERROR(status))
pkt_capture_err("failed to set beacon interval");
return status;
}
/**
* target_if_mgmt_offload_data_event_handler() - offload event handler
* @handle: scn handle
@@ -435,4 +473,6 @@ target_if_pkt_capture_register_tx_ops(struct wlan_pkt_capture_tx_ops *tx_ops)
tx_ops->pkt_capture_send_mode = target_if_set_packet_capture_mode;
tx_ops->pkt_capture_send_config = target_if_set_packet_capture_config;
tx_ops->pkt_capture_send_beacon_interval =
target_if_set_packet_capture_beacon_interval;
}