qcacmn: Add support for obss spatial reuse default threshold
Add support to send default offsets to firmware. Change-Id: I5d566fbd5eb074e7aac94f793c5431734c2e0922 CRs-Fixed: 2345173
This commit is contained in:
@@ -1577,15 +1577,25 @@ wmi_extract_ctl_failsafe_check_ev_param(void *wmi_hdl,
|
|||||||
|
|
||||||
#ifdef OBSS_PD
|
#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
|
* @wmi_handle: wmi handle
|
||||||
* @param evt_buf: pointer to event buffer
|
* @oobss_spatial_reuse_param: Pointer to obsspd min max offset
|
||||||
* @param ev: Pointer to hold fatal events
|
|
||||||
*
|
*
|
||||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
* 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,
|
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);
|
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 */
|
#endif /* OBSS_PD */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -7278,10 +7278,22 @@ struct bcn_offload_control {
|
|||||||
*/
|
*/
|
||||||
struct wmi_host_obss_spatial_reuse_set_param {
|
struct wmi_host_obss_spatial_reuse_set_param {
|
||||||
uint32_t enable;
|
uint32_t enable;
|
||||||
uint32_t obss_min;
|
int32_t obss_min;
|
||||||
uint32_t obss_max;
|
int32_t obss_max;
|
||||||
uint32_t vdev_id;
|
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
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -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,
|
QDF_STATUS (*send_obss_spatial_reuse_set)(wmi_unified_t wmi_handle,
|
||||||
struct wmi_host_obss_spatial_reuse_set_param
|
struct wmi_host_obss_spatial_reuse_set_param
|
||||||
*obss_spatial_reuse_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
|
#endif
|
||||||
|
|
||||||
QDF_STATUS
|
QDF_STATUS
|
||||||
|
Reference in New Issue
Block a user