qcacmn: Add WMI command to set Sub Channel Marking

Introduce a new wmi_send pdev param to enable/disable
"Subchannel Marking" in Firmware (only in  Full Offload)

Change-Id: I3cd4f4f13ebca72c4505b6195cc8dc4856d41671
CRs-Fixed: 2334258
This commit is contained in:
Vignesh Mohan
2018-11-19 14:54:34 +05:30
committed by nshrivas
parent 02b1e280f3
commit d33c1ce39b
2 changed files with 24 additions and 1 deletions

View File

@@ -70,6 +70,7 @@ QDF_STATUS wmi_extract_wlan_radar_event_info(void *wmi_hdl,
uint32_t len); uint32_t len);
#endif #endif
#if defined(WLAN_DFS_FULL_OFFLOAD) && defined(QCA_DFS_NOL_OFFLOAD)
/** /**
* wmi_send_usenol_pdev_param() - function to send usenol pdev param. * wmi_send_usenol_pdev_param() - function to send usenol pdev param.
* @wmi_hdl: wmi handle * @wmi_hdl: wmi handle
@@ -78,9 +79,22 @@ QDF_STATUS wmi_extract_wlan_radar_event_info(void *wmi_hdl,
* *
* Return: QDF_STATUS * Return: QDF_STATUS
*/ */
#if defined(WLAN_DFS_FULL_OFFLOAD) && defined(QCA_DFS_NOL_OFFLOAD)
QDF_STATUS wmi_send_usenol_pdev_param(void *wmi_hdl, bool usenol, QDF_STATUS wmi_send_usenol_pdev_param(void *wmi_hdl, bool usenol,
struct wlan_objmgr_pdev *pdev); struct wlan_objmgr_pdev *pdev);
/**
* wmi_send_subchan_marking_pdev_param() - Function to send subchannel
* marking pdev param.
* @wmi_hdl: WMI handle.
* @subchanmark: Value of use subchannel marking.
* @pdev: Pointer to objmgr_pdev structure.
*
* Return: QDF_STATUS
*/
QDF_STATUS
wmi_send_subchan_marking_pdev_param(void *wmi_hdl,
bool subchanmark,
struct wlan_objmgr_pdev *pdev);
#else #else
static inline QDF_STATUS static inline QDF_STATUS
wmi_send_usenol_pdev_param(void *wmi_hdl, bool usenol, wmi_send_usenol_pdev_param(void *wmi_hdl, bool usenol,
@@ -88,5 +102,13 @@ wmi_send_usenol_pdev_param(void *wmi_hdl, bool usenol,
{ {
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
} }
static inline QDF_STATUS
wmi_send_subchan_marking_pdev_param(void *wmi_hdl,
bool subchanmark,
struct wlan_objmgr_pdev *pdev)
{
return QDF_STATUS_SUCCESS;
}
#endif #endif
#endif /* _WMI_UNIFIED_DFS_API_H_ */ #endif /* _WMI_UNIFIED_DFS_API_H_ */

View File

@@ -4934,6 +4934,7 @@ typedef enum {
wmi_pdev_param_enable_peer_retry_stats, wmi_pdev_param_enable_peer_retry_stats,
wmi_pdev_param_ul_trig_int, wmi_pdev_param_ul_trig_int,
wmi_pdev_param_max, wmi_pdev_param_max,
wmi_pdev_param_sub_channel_marking,
} wmi_conv_pdev_params_id; } wmi_conv_pdev_params_id;