qcacmn: Spatial Reuse changes
Add WMI interface for OBSS Spatial Reuse changes. Change-Id: I5da23632a8746de749fc623439c9d9cbc02fcea5 CRs-Fixed: 2313292
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
bdfea2b237
commit
3fd97d67b4
@@ -7518,3 +7518,19 @@ wmi_extract_roam_scan_stats_res_evt(wmi_unified_t wmi, void *evt_buf,
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
#ifdef OBSS_PD
|
||||
QDF_STATUS
|
||||
wmi_unified_send_obss_spatial_reuse_set_cmd(void *wmi_hdl,
|
||||
struct wmi_host_obss_spatial_reuse_set_param
|
||||
*obss_spatial_reuse_param)
|
||||
{
|
||||
wmi_unified_t wmi = (wmi_unified_t)wmi_hdl;
|
||||
|
||||
if (wmi->ops->send_obss_spatial_reuse_set)
|
||||
return wmi->ops->send_obss_spatial_reuse_set(wmi,
|
||||
obss_spatial_reuse_param);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
#endif
|
||||
|
@@ -16659,6 +16659,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)
|
||||
@@ -22946,6 +22997,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
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -23462,6 +23516,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;
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user