diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 2ecd769d94..b568f70cfa 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -2475,4 +2475,16 @@ QDF_STATUS wmi_extract_smartlog_ev void wmi_process_fw_event_worker_thread_ctx(struct wmi_unified *wmi_handle, HTC_PACKET * htc_packet); +#ifdef OBSS_PD +/** + * wmi_extract_smartlog_ev() - extract smartlog event info from event + * @wmi_handle: wmi handle + * @param evt_buf: pointer to event buffer + * @param ev: Pointer to hold fatal events + * + * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure + */ +QDF_STATUS wmi_unified_send_obss_spatial_reuse_set_cmd(void *wmi_handle, + struct wmi_host_obss_spatial_reuse_set_param *obss_spatial_reuse_param); +#endif /* OBSS_PD */ #endif /* _WMI_UNIFIED_API_H_ */ diff --git a/wmi_unified_param.h b/wmi_unified_param.h index e0a78b557e..fb4c68eddb 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -6064,6 +6064,7 @@ typedef enum { wmi_service_smart_logging_support, #endif wmi_service_infra_mbssid, + wmi_service_obss_spatial_reuse, wmi_services_max, } wmi_conv_service_ids; #define WMI_SERVICE_UNAVAILABLE 0xFFFF @@ -8412,6 +8413,23 @@ struct bcn_offload_control { enum bcn_offload_control_param bcn_ctrl_op; }; +#ifdef OBSS_PD +/** + * struct wmi_host_obss_spatial_reuse_set_param - OBSS_PD_SPATIAL Reuse + * structure + * @enable: Enable/Disable Spatial Reuse + * @obss_min: Minimum OBSS level to use + * @obss_max: Maximum OBSS level to use + * @pdev_id: Pdev id + */ +struct wmi_host_obss_spatial_reuse_set_param { + uint32_t enable; + uint32_t obss_min; + uint32_t obss_max; + uint32_t vdev_id; +}; +#endif + /** * struct wds_entry - WDS entry structure * @peer_mac: peer mac diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 96224ac81a..eb286f2aad 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1753,6 +1753,12 @@ QDF_STATUS (*extract_dfs_status_from_fw)(wmi_unified_t wmi_handle, void *evt_buf, uint32_t *dfs_status_check); #endif + +#ifdef OBSS_PD +QDF_STATUS (*send_obss_spatial_reuse_set)(wmi_unified_t wmi_handle, + struct wmi_host_obss_spatial_reuse_set_param + *obss_spatial_reuse_param); +#endif }; /* Forward declartion for psoc*/