From 9ef7846b6a9a4d828fc2aad755624084ad2f784f Mon Sep 17 00:00:00 2001 From: Abhijit Pradhan Date: Mon, 8 Oct 2018 10:54:31 +0530 Subject: [PATCH] qcacmn: DFS TX and RX OPS initialisation for handling NOL Violation Declaration and initialisation of function pointers to get user configured dis_radar_mark flag and send usenol pdev param. CRs-Fixed: 2328894 Change-Id: I6aaa6f8e52924c0cd4f754300178d6a6ff1b6801 --- umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h | 7 +++++++ umac/global_umac_dispatcher/lmac_if/src/wlan_lmac_if.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h b/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h index e1f64195fc..b7c6737fc6 100644 --- a/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h +++ b/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h @@ -587,6 +587,7 @@ struct wlan_lmac_if_reg_tx_ops { * @dfs_host_dfs_check_support: To check Host DFS confirmation feature * support. * @dfs_send_avg_radar_params_to_fw: Send average radar parameters to FW. + * @dfs_send_usenol_pdev_param: Send usenol pdev param to FW. */ struct wlan_lmac_if_dfs_tx_ops { @@ -631,6 +632,8 @@ struct wlan_lmac_if_dfs_tx_ops { QDF_STATUS (*dfs_send_avg_radar_params_to_fw)( struct wlan_objmgr_pdev *pdev, struct dfs_radar_found_params *params); + QDF_STATUS (*dfs_send_usenol_pdev_param)(struct wlan_objmgr_pdev *pdev, + bool usenol); }; /** @@ -1084,6 +1087,7 @@ struct wlan_lmac_if_nan_rx_ops { * @dfs_get_override_status_timeout: Get the value of host dfs status wait * timeout. * @dfs_reset_spoof_test: Checks if radar detection is enabled. + * @dfs_is_disable_radar_marking_set: Check if dis_radar_marking param is set. */ struct wlan_lmac_if_dfs_rx_ops { QDF_STATUS (*dfs_get_radars)(struct wlan_objmgr_pdev *pdev); @@ -1170,6 +1174,9 @@ struct wlan_lmac_if_dfs_rx_ops { struct wlan_objmgr_pdev *pdev, int *status_timeout); QDF_STATUS (*dfs_reset_spoof_test)(struct wlan_objmgr_pdev *pdev); + QDF_STATUS (*dfs_is_disable_radar_marking_set)(struct wlan_objmgr_pdev + *pdev, + bool *disable_radar_marking); }; struct wlan_lmac_if_mlme_rx_ops { diff --git a/umac/global_umac_dispatcher/lmac_if/src/wlan_lmac_if.c b/umac/global_umac_dispatcher/lmac_if/src/wlan_lmac_if.c index 1f4dae90ea..d3157d3943 100644 --- a/umac/global_umac_dispatcher/lmac_if/src/wlan_lmac_if.c +++ b/umac/global_umac_dispatcher/lmac_if/src/wlan_lmac_if.c @@ -373,6 +373,8 @@ wlan_lmac_if_umac_dfs_rx_ops_register(struct wlan_lmac_if_rx_ops *rx_ops) ucfg_dfs_get_override_status_timeout; dfs_rx_ops->dfs_reset_spoof_test = tgt_dfs_reset_spoof_test; + dfs_rx_ops->dfs_is_disable_radar_marking_set = + utils_dfs_get_disable_radar_marking; register_precac_auto_chan_rx_ops(dfs_rx_ops);