From fb9e88bfa6ee0418177cb7c22ffa9d4925e55bdf Mon Sep 17 00:00:00 2001 From: Nitesh Shah Date: Mon, 22 May 2017 15:49:00 +0530 Subject: [PATCH] qcacmn: Add support to send DBS Scan command to firmware This change adds support to send the DBS Scan command to the firmware. Change-Id: I147855690f09af03a43f85f2e57626d7f73998de CRs-Fixed: 2029402 --- wmi_unified_api.h | 2 ++ wmi_unified_param.h | 18 ++++++++++++++++++ wmi_unified_priv.h | 3 +++ 3 files changed, 23 insertions(+) diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 3f0c303d05..f413dd01b2 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -1507,4 +1507,6 @@ void wmi_print_mgmt_event_log(wmi_unified_t wmi, uint32_t count, #endif /* WMI_INTERFACE_EVENT_LOGGING */ +QDF_STATUS wmi_unified_send_dbs_scan_sel_params_cmd(void *wmi_hdl, + struct wmi_dbs_scan_sel_params *wmi_param); #endif /* _WMI_UNIFIED_API_H_ */ diff --git a/wmi_unified_param.h b/wmi_unified_param.h index 6be9b31a81..6f98ebee4b 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -7285,4 +7285,22 @@ struct tbttoffset_params { uint32_t tbttoffset; }; +#define WMI_SCAN_CLIENT_MAX 7 + +/** + * struct wmi_dbs_scan_sel_params - DBS scan selection params + * @num_clients: Number of scan clients dutycycle + * @pdev_id: pdev_id for identifying the MAC + * @module_id: scan client module id + * @num_dbs_scans: number of DBS scans + * @num_non_dbs_scans: number of non-DBS scans + */ +struct wmi_dbs_scan_sel_params { + uint32_t num_clients; + uint32_t pdev_id; + uint32_t module_id[WMI_SCAN_CLIENT_MAX]; + uint32_t num_dbs_scans[WMI_SCAN_CLIENT_MAX]; + uint32_t num_non_dbs_scans[WMI_SCAN_CLIENT_MAX]; +}; + #endif /* _WMI_UNIFIED_PARAM_H_ */ diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 569bf8ae22..09f0db08ff 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1258,6 +1258,9 @@ QDF_STATUS (*send_multiple_vdev_restart_req_cmd)(wmi_unified_t wmi_handle, QDF_STATUS (*send_adapt_dwelltime_params_cmd)(wmi_unified_t wmi_handle, struct wmi_adaptive_dwelltime_params *dwelltime_params); +QDF_STATUS (*send_dbs_scan_sel_params_cmd)(wmi_unified_t wmi_handle, + struct wmi_dbs_scan_sel_params *dbs_scan_params); + QDF_STATUS (*send_fw_test_cmd)(wmi_unified_t wmi_handle, struct set_fwtest_params *wmi_fwtest);