qcacld-3.0: Add support to send config to FW based on filter

In packet capture component add support to send ctrl and beacon
frames config to FW based on frame filter received from user through
vendor command.

Change-Id: Ie45ea2135e237a156fb60663e3f85cc601490e4a
CRs-Fixed: 3046222
This commit is contained in:
Vulupala Shashank Reddy
2021-09-07 13:01:37 +05:30
committed by Madan Koyyalamudi
parent 76dfbb1112
commit e5e7e8049f
9 changed files with 195 additions and 64 deletions

View File

@@ -79,10 +79,11 @@ static QDF_STATUS
target_if_set_packet_capture_config
(struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id,
enum pkt_capture_trigger_qos_config config_value)
enum pkt_capture_config config_value)
{
wmi_unified_t wmi_handle = lmac_get_wmi_unified_hdl(psoc);
QDF_STATUS status = QDF_STATUS_E_FAILURE;
struct wlan_objmgr_vdev *vdev;
struct vdev_set_params param;
if (!wmi_handle) {
@@ -90,6 +91,13 @@ target_if_set_packet_capture_config
return QDF_STATUS_E_INVAL;
}
vdev = wlan_objmgr_get_vdev_by_id_from_psoc(psoc, vdev_id,
WLAN_PKT_CAPTURE_ID);
if (!vdev) {
pkt_capture_err("vdev is NULL");
return QDF_STATUS_E_INVAL;
}
target_if_debug("psoc:%pK, vdev_id:%d config_value:%d",
psoc, vdev_id, config_value);
@@ -98,9 +106,12 @@ target_if_set_packet_capture_config
param.param_value = (uint32_t)config_value;
status = wmi_unified_vdev_set_param_send(wmi_handle, &param);
if (QDF_IS_STATUS_ERROR(status))
if (QDF_IS_STATUS_SUCCESS(status))
ucfg_pkt_capture_set_pktcap_config(vdev, config_value);
else
pkt_capture_err("failed to set packet capture config");
wlan_objmgr_vdev_release_ref(vdev, WLAN_PKT_CAPTURE_ID);
return status;
}
#else
@@ -108,7 +119,7 @@ static QDF_STATUS
target_if_set_packet_capture_config
(struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id,
enum pkt_capture_trigger_qos_config config_value)
enum pkt_capture_config config_value)
{
return QDF_STATUS_SUCCESS;
}