qcacmn: WMI changes for NOL violation
This commit contains the following changes related to FR49350: usenol pdev param declaration and implementation of wmi cmd to send the param to FW. Failure status code declaration for scan and vdev start. CRs-Fixed: 2328894 Change-Id: I5d3bfe758aeb9907193b6f626582b70413f5381c
This commit is contained in:

committed by
nshrivas

parent
d3173ca81c
commit
bbdd2dcc99
@@ -27,6 +27,7 @@
|
||||
#include <wmi_unified_priv.h>
|
||||
#include <wlan_dfs_utils_api.h>
|
||||
#include <wmi_unified_dfs_api.h>
|
||||
#include <init_deinit_lmac.h>
|
||||
|
||||
QDF_STATUS wmi_extract_dfs_cac_complete_event(void *wmi_hdl,
|
||||
uint8_t *evt_buf,
|
||||
@@ -73,3 +74,23 @@ QDF_STATUS wmi_extract_wlan_radar_event_info(void *wmi_hdl,
|
||||
}
|
||||
qdf_export_symbol(wmi_extract_dfs_radar_detection_event);
|
||||
#endif
|
||||
|
||||
#if defined(WLAN_DFS_FULL_OFFLOAD) && defined(QCA_DFS_NOL_OFFLOAD)
|
||||
QDF_STATUS wmi_send_usenol_pdev_param(void *wmi_hdl, bool usenol,
|
||||
struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
struct pdev_params pparam;
|
||||
int pdev_idx;
|
||||
struct wmi_unified *wmi_handle = (struct wmi_unified *)wmi_hdl;
|
||||
|
||||
pdev_idx = lmac_get_pdev_idx(pdev);
|
||||
if (pdev_idx < 0)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
qdf_mem_set(&pparam, sizeof(pparam), 0);
|
||||
pparam.param_id = wmi_pdev_param_use_nol;
|
||||
pparam.param_value = usenol;
|
||||
|
||||
return wmi_unified_pdev_param_send(wmi_handle, &pparam, pdev_idx);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user