diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 1e5e72921f..a2ac7018e5 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -1508,4 +1508,7 @@ void wmi_print_mgmt_event_log(wmi_unified_t wmi, uint32_t count, QDF_STATUS wmi_unified_send_dbs_scan_sel_params_cmd(void *wmi_hdl, struct wmi_dbs_scan_sel_params *wmi_param); + +QDF_STATUS wmi_unified_send_limit_off_chan_cmd(void *wmi_hdl, + struct wmi_limit_off_chan_param *wmi_param); #endif /* _WMI_UNIFIED_API_H_ */ diff --git a/wmi_unified_param.h b/wmi_unified_param.h index 4490a28d88..c9552e0b47 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -7382,4 +7382,20 @@ struct wmi_dbs_scan_sel_params { uint32_t num_non_dbs_scans[WMI_SCAN_CLIENT_MAX]; }; +/** + * struct wmi_limit_off_chan_param - limit off channel parameters + * @vdev_id: vdev id + * @status: status of the command (enable/disable) + * @max_offchan_time: max off channel time + * @rest_time: home channel time + * @skip_dfs_chans: skip dfs channels during scan + */ +struct wmi_limit_off_chan_param { + uint32_t vdev_id; + bool status; + uint32_t max_offchan_time; + uint32_t rest_time; + bool skip_dfs_chans; +}; + #endif /* _WMI_UNIFIED_PARAM_H_ */ diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 7eb00a25ea..6d1509a58f 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1354,6 +1354,8 @@ uint32_t (*convert_pdev_id_target_to_host)(uint32_t pdev_id); QDF_STATUS (*send_user_country_code_cmd)(wmi_unified_t wmi_handle, uint8_t pdev_id, struct cc_regdmn_s *rd); +QDF_STATUS (*send_limit_off_chan_cmd)(wmi_unified_t wmi_handle, + struct wmi_limit_off_chan_param *limit_off_chan_param); }; struct target_abi_version {