From f74c73af6cf5c3cb11a16a0a1092d8fd9349e8b0 Mon Sep 17 00:00:00 2001 From: Rakesh Boyina Date: Mon, 24 Apr 2023 21:29:24 -0700 Subject: [PATCH] qcacmn: Add BW argument to frame_injector WMI Support to pass bandwidth parameter to frame_injector WMI. Change-Id: Id3836ae98c269659b6ec0f78f1e9c04bf549c64d CRs-Fixed: 3477889 --- wmi/inc/wmi_unified_param.h | 2 ++ wmi/src/wmi_unified_tlv.c | 1 + 2 files changed, 3 insertions(+) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 204886d8aa..6bb75105e2 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -8700,6 +8700,7 @@ struct wmi_host_obss_spatial_reuse_set_def_thresh { * @frame_type: Frame type to be enabled * @frame_inject_period: Periodicity of injector frame transmission in msecs * @frame_duration: Frame Duration field in usecs + * @frame_bw: Bandwidth of the injected frame * @dstmac: Destination address to be used for the frame */ struct wmi_host_injector_frame_params { @@ -8708,6 +8709,7 @@ struct wmi_host_injector_frame_params { uint32_t frame_type; uint32_t frame_inject_period; uint32_t frame_duration; + uint32_t frame_bw; uint8_t dstmac[QDF_MAC_ADDR_SIZE]; }; diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 11eee0c57b..fed62ff2e0 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -12224,6 +12224,7 @@ QDF_STATUS send_injector_config_cmd_tlv(wmi_unified_t wmi_handle, cmd->fc_duration = inject_config_params->frame_duration; WMI_CHAR_ARRAY_TO_MAC_ADDR(inject_config_params->dstmac, &cmd->frame_addr1); + cmd->bw = inject_config_params->frame_bw; ret = wmi_unified_cmd_send(wmi_handle, buf, len, WMI_PDEV_FRAME_INJECT_CMDID);