From 9fb7c768c32d8a7e141122455c190fe6adece3f8 Mon Sep 17 00:00:00 2001 From: Abhiram Jogadenu Date: Wed, 31 Jul 2019 11:09:59 +0530 Subject: [PATCH] qcacmn: Add flag to enable CFR capture in Probe response Add cfr_enable flag in Probe response, so that FW can start CFR capture for particular client. Change-Id: Id38b61317384a069308de4931463f1aef4f65f38 CRs-Fixed: 2502030 --- wmi/inc/wmi_unified_param.h | 5 ++++- wmi/src/wmi_unified_tlv.c | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 16742d9b79c0..c56581da9432 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -1296,6 +1296,8 @@ struct seg_hdr_info { * bit 4: if set, HE * @frame_type: Data or Management frame * Data:1 Mgmt:0 + * @cfr_enable: flag to enable CFR capture + * 0:disable 1:enable */ struct tx_send_params { uint32_t pwr:8, @@ -1306,7 +1308,8 @@ struct tx_send_params { bw_mask:7, preamble_type:5, frame_type:1, - reserved:11; + cfr_enable:1, + reserved:10; }; /** diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 2e946cdb9b52..370a63ab9db3 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -3131,6 +3131,8 @@ static inline QDF_STATUS populate_tx_send_params(uint8_t *bufp, param.preamble_type); WMI_TX_SEND_PARAM_FRAME_TYPE_SET(tx_param->tx_param_dword1, param.frame_type); + WMI_TX_SEND_PARAM_CFR_CAPTURE_SET(tx_param->tx_param_dword1, + param.cfr_enable); return status; }