qcacmn: Add support for obss spatial reuse default threshold
Add support to send default offsets to firmware.
Change-Id: I5d566fbd5eb074e7aac94f793c5431734c2e0922
CRs-Fixed: 2345173
diff --git a/wmi_unified_api.h b/wmi_unified_api.h
index 23ca0d6..c781837 100644
--- a/wmi_unified_api.h
+++ b/wmi_unified_api.h
@@ -1577,15 +1577,25 @@
#ifdef OBSS_PD
/**
- * wmi_extract_smartlog_ev() - extract smartlog event info from event
+ * wmi_unified_send_obss_spatial_reuse_set_cmd() - send obss pd offset
* @wmi_handle: wmi handle
- * @param evt_buf: pointer to event buffer
- * @param ev: Pointer to hold fatal events
+ * @oobss_spatial_reuse_param: Pointer to obsspd min max offset
*
* 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);
+
+/**
+ * wmi_unified_send_obss_spatial_reuse_set_def_thresh_cmd() - send def thresh
+ * @wmi_handle: wmi handle
+ * @thresh: Pointer to def thresh
+ *
+ * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
+ */
+QDF_STATUS wmi_unified_send_obss_spatial_reuse_set_def_thresh_cmd(void *wmi_hdl,
+ struct wmi_host_obss_spatial_reuse_set_def_thresh *thresh);
+
#endif /* OBSS_PD */
/**
diff --git a/wmi_unified_param.h b/wmi_unified_param.h
index 40752fe..a9f751e 100644
--- a/wmi_unified_param.h
+++ b/wmi_unified_param.h
@@ -7278,10 +7278,22 @@
*/
struct wmi_host_obss_spatial_reuse_set_param {
uint32_t enable;
- uint32_t obss_min;
- uint32_t obss_max;
+ int32_t obss_min;
+ int32_t obss_max;
uint32_t vdev_id;
};
+
+/**
+ * struct wmi_host_obss_spatial_reuse_set_def_thresh - default obsspd offsets
+ * @obss_min: Minimum OBSS level to use
+ * @obss_max: Maximum OBSS level to use
+ * @vdev_type: vdev_type should be one of WMI_VDEV_TYPE_STA or WMI_VDEV_TYPE_AP
+ */
+struct wmi_host_obss_spatial_reuse_set_def_thresh {
+ int32_t obss_min;
+ int32_t obss_max;
+ uint32_t vdev_type;
+};
#endif
/**
diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h
index d928d48..c0b0bbf 100644
--- a/wmi_unified_priv.h
+++ b/wmi_unified_priv.h
@@ -1830,6 +1830,10 @@
QDF_STATUS (*send_obss_spatial_reuse_set)(wmi_unified_t wmi_handle,
struct wmi_host_obss_spatial_reuse_set_param
*obss_spatial_reuse_param);
+
+QDF_STATUS (*send_obss_spatial_reuse_set_def_thresh)(wmi_unified_t wmi_handle,
+ struct wmi_host_obss_spatial_reuse_set_def_thresh
+ *obss_spatial_reuse_param);
#endif
QDF_STATUS