Browse Source

qcacmn: Add support for obss spatial reuse default threshold

Add support to send default offsets to firmware.

Change-Id: I5d566fbd5eb074e7aac94f793c5431734c2e0922
CRs-Fixed: 2345173
Arif Hussain 6 năm trước cách đây
mục cha
commit
1b0db05e51
3 tập tin đã thay đổi với 31 bổ sung5 xóa
  1. 13 3
      wmi_unified_api.h
  2. 14 2
      wmi_unified_param.h
  3. 4 0
      wmi_unified_priv.h

+ 13 - 3
wmi_unified_api.h

@@ -1577,15 +1577,25 @@ wmi_extract_ctl_failsafe_check_ev_param(void *wmi_hdl,
 
 #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 */
 
 /**

+ 14 - 2
wmi_unified_param.h

@@ -7278,10 +7278,22 @@ struct bcn_offload_control {
  */
 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
 
 /**

+ 4 - 0
wmi_unified_priv.h

@@ -1830,6 +1830,10 @@ QDF_STATUS (*extract_dfs_status_from_fw)(wmi_unified_t wmi_handle,
 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