|
@@ -16647,6 +16647,57 @@ QDF_STATUS send_bcn_offload_control_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
+#ifdef OBSS_PD
|
|
|
+/**
|
|
|
+ * send_obss_spatial_reuse_set_cmd_tlv - send obss spatial reuse set cmd to fw
|
|
|
+ * @wmi_handle: wmi handle
|
|
|
+ * @obss_spatial_reuse_param: pointer to obss_spatial_reuse_param
|
|
|
+ *
|
|
|
+ * Return: QDF_STATUS_SUCCESS for success or error code
|
|
|
+ */
|
|
|
+static
|
|
|
+QDF_STATUS send_obss_spatial_reuse_set_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
+ struct wmi_host_obss_spatial_reuse_set_param
|
|
|
+ *obss_spatial_reuse_param)
|
|
|
+{
|
|
|
+ wmi_buf_t buf;
|
|
|
+ wmi_obss_spatial_reuse_set_cmd_fixed_param *cmd;
|
|
|
+ QDF_STATUS ret;
|
|
|
+ uint32_t len;
|
|
|
+
|
|
|
+ len = sizeof(*cmd);
|
|
|
+
|
|
|
+ buf = wmi_buf_alloc(wmi_handle, len);
|
|
|
+ if (!buf) {
|
|
|
+ qdf_print("%s: wmi_buf_alloc failed\n", __func__);
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+ }
|
|
|
+
|
|
|
+ cmd = (wmi_obss_spatial_reuse_set_cmd_fixed_param *)wmi_buf_data(buf);
|
|
|
+ WMITLV_SET_HDR(&cmd->tlv_header,
|
|
|
+ WMITLV_TAG_STRUC_wmi_obss_spatial_reuse_set_cmd_fixed_param,
|
|
|
+ WMITLV_GET_STRUCT_TLVLEN
|
|
|
+ (wmi_obss_spatial_reuse_set_cmd_fixed_param));
|
|
|
+
|
|
|
+ cmd->enable = obss_spatial_reuse_param->enable;
|
|
|
+ cmd->obss_min = obss_spatial_reuse_param->obss_min;
|
|
|
+ cmd->obss_max = obss_spatial_reuse_param->obss_max;
|
|
|
+ cmd->vdev_id = obss_spatial_reuse_param->vdev_id;
|
|
|
+
|
|
|
+ ret = wmi_unified_cmd_send(wmi_handle, buf, len,
|
|
|
+ WMI_PDEV_OBSS_PD_SPATIAL_REUSE_CMDID);
|
|
|
+
|
|
|
+ if (QDF_IS_STATUS_ERROR(ret)) {
|
|
|
+ WMI_LOGE(
|
|
|
+ "WMI_PDEV_OBSS_PD_SPATIAL_REUSE_CMDID send returned Error %d",
|
|
|
+ ret);
|
|
|
+ wmi_buf_free(buf);
|
|
|
+ }
|
|
|
+
|
|
|
+ return ret;
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
#ifdef WLAN_FEATURE_NAN_CONVERGENCE
|
|
|
static QDF_STATUS nan_ndp_initiator_req_tlv(wmi_unified_t wmi_handle,
|
|
|
struct nan_datapath_initiator_req *ndp_req)
|
|
@@ -22964,6 +23015,9 @@ struct wmi_ops tlv_ops = {
|
|
|
extract_esp_estimation_ev_param_tlv,
|
|
|
.send_roam_scan_stats_cmd = send_roam_scan_stats_cmd_tlv,
|
|
|
.extract_roam_scan_stats_res_evt = extract_roam_scan_stats_res_evt_tlv,
|
|
|
+#ifdef OBSS_PD
|
|
|
+ .send_obss_spatial_reuse_set = send_obss_spatial_reuse_set_cmd_tlv,
|
|
|
+#endif
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -23483,6 +23537,8 @@ static void populate_tlv_service(uint32_t *wmi_service)
|
|
|
wmi_service[wmi_service_twt_responder] = WMI_SERVICE_AP_TWT;
|
|
|
wmi_service[wmi_service_listen_interval_offload_support] =
|
|
|
WMI_SERVICE_LISTEN_INTERVAL_OFFLOAD_SUPPORT;
|
|
|
+ wmi_service[wmi_service_obss_spatial_reuse] =
|
|
|
+ WMI_SERVICE_OBSS_SPATIAL_REUSE;
|
|
|
|
|
|
}
|
|
|
|