mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
qcacmn: Spatial Reuse changes
Add WMI interface for OBSS Spatial Reuse changes. Change-Id: I5da23632a8746de749fc623439c9d9cbc02fcea5 CRs-Fixed: 2313292
This commit is contained in:
parent
ba75857390
commit
3bc1616092
5 changed files with 108 additions and 0 deletions
|
|
@ -2473,4 +2473,16 @@ QDF_STATUS wmi_extract_smartlog_ev
|
|||
void wmi_process_fw_event_worker_thread_ctx(struct wmi_unified *wmi_handle,
|
||||
HTC_PACKET * htc_packet);
|
||||
|
||||
#ifdef OBSS_PD
|
||||
/**
|
||||
* wmi_extract_smartlog_ev() - extract smartlog event info from event
|
||||
* @wmi_handle: wmi handle
|
||||
* @param evt_buf: pointer to event buffer
|
||||
* @param ev: Pointer to hold fatal events
|
||||
*
|
||||
* 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);
|
||||
#endif /* OBSS_PD */
|
||||
#endif /* _WMI_UNIFIED_API_H_ */
|
||||
|
|
|
|||
|
|
@ -6062,6 +6062,7 @@ typedef enum {
|
|||
wmi_service_smart_logging_support,
|
||||
#endif
|
||||
wmi_service_infra_mbssid,
|
||||
wmi_service_obss_spatial_reuse,
|
||||
wmi_services_max,
|
||||
} wmi_conv_service_ids;
|
||||
#define WMI_SERVICE_UNAVAILABLE 0xFFFF
|
||||
|
|
@ -8410,6 +8411,23 @@ struct bcn_offload_control {
|
|||
enum bcn_offload_control_param bcn_ctrl_op;
|
||||
};
|
||||
|
||||
#ifdef OBSS_PD
|
||||
/**
|
||||
* struct wmi_host_obss_spatial_reuse_set_param - OBSS_PD_SPATIAL Reuse
|
||||
* structure
|
||||
* @enable: Enable/Disable Spatial Reuse
|
||||
* @obss_min: Minimum OBSS level to use
|
||||
* @obss_max: Maximum OBSS level to use
|
||||
* @pdev_id: Pdev id
|
||||
*/
|
||||
struct wmi_host_obss_spatial_reuse_set_param {
|
||||
uint32_t enable;
|
||||
uint32_t obss_min;
|
||||
uint32_t obss_max;
|
||||
uint32_t vdev_id;
|
||||
};
|
||||
#endif
|
||||
|
||||
/**
|
||||
* struct wds_entry - WDS entry structure
|
||||
* @peer_mac: peer mac
|
||||
|
|
|
|||
|
|
@ -1751,6 +1751,12 @@ QDF_STATUS (*extract_dfs_status_from_fw)(wmi_unified_t wmi_handle,
|
|||
void *evt_buf,
|
||||
uint32_t *dfs_status_check);
|
||||
#endif
|
||||
|
||||
#ifdef OBSS_PD
|
||||
QDF_STATUS (*send_obss_spatial_reuse_set)(wmi_unified_t wmi_handle,
|
||||
struct wmi_host_obss_spatial_reuse_set_param
|
||||
*obss_spatial_reuse_param);
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Forward declartion for psoc*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue