qcacmn: Add new WMI API for OCL command

Currently there is no provision to configure OCL mode in FW during
driver bootup.

To enable this configuration add a new WMI API wmi_unified_send_ocl_cmd.

Change-Id: Idb936172612ff2ed8ea029d8a363b758625eb97d
CRs-Fixed: 2647631
This commit is contained in:
Bapiraju Alla
2020-03-23 18:22:39 +05:30
کامیت شده توسط nshrivas
والد 1f76b82659
کامیت d5d364a58d
5فایلهای تغییر یافته به همراه81 افزوده شده و 2 حذف شده

مشاهده پرونده

@@ -913,6 +913,10 @@ QDF_STATUS (*send_process_del_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
QDF_STATUS (*send_set_auto_shutdown_timer_cmd)(wmi_unified_t wmi_handle,
uint32_t timer_val);
QDF_STATUS
(*send_ocl_cmd)(wmi_unified_t wmi_handle,
struct ocl_cmd_params *param);
#ifdef WLAN_FEATURE_NAN
QDF_STATUS (*send_nan_req_cmd)(wmi_unified_t wmi_handle,
struct nan_msg_params *nan_req);

مشاهده پرونده

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -452,4 +452,17 @@ QDF_STATUS wmi_unified_peer_unmap_conf_send(wmi_unified_t wmi_handle,
uint32_t peer_id_cnt,
uint16_t *peer_id_list);
/**
* wmi_unified_send_ocl_cmd() - send OCL command
* @wmi_handle: wmi handle
* @param: OCL commang parameters
*
* Send WMI_SET_OCL_CMDID parameters to fw.
*
* Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
*/
QDF_STATUS
wmi_unified_send_ocl_cmd(wmi_unified_t wmi_handle,
struct ocl_cmd_params *param);
#endif /* _WMI_UNIFIED_STA_API_H_ */

مشاهده پرونده

@@ -363,4 +363,14 @@ struct get_arp_stats {
uint32_t vdev_id;
};
/**
* struct ocl_cmd_params - OCL command params
* @vdev_id: Virtual AP device identifier
* @en_dis_chain: enable/disable dynamic/static OCL mode
*/
struct ocl_cmd_params {
uint32_t vdev_id;
uint32_t en_dis_chain;
};
#endif /* _WMI_UNIFIED_STA_PARAM_H_ */