qcacmn: DFS API support for Rolling CAC

An extension of preCAC feature is Rolling CAC. The distinct difference
between these features is that the FW runs the off channel CAC
timer for a "finite" time for preCAC and runs the timer for "infinite"
time on an off channel. Hence the infrastructure built for
preCAC feature is being modified to accommodate RCAC feature as well.
Following are the modifications done:

1. Add an enum to represent various off-channel CAC modes.
2. Remove the 'static' declaration of few APIS so as to re-use them.
3. Add 'dfs_rcac_ch_params' to DFS PDEV object to store the RCAC
channel params so as to use the channel params after radar detect.
4. Rename DFS APIs to match its functionality.

CRs-Fixed: 2670419
Change-Id: I0bf0d33955706941cffb4e9cf6fcebfb465a6c74
This commit is contained in:
Priyadarshnee S
2020-04-20 18:04:41 +05:30
کامیت شده توسط nshrivas
والد 87dac440fd
کامیت 4c6b5c6f69
5فایلهای تغییر یافته به همراه99 افزوده شده و 42 حذف شده

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

@@ -33,7 +33,6 @@
#if defined(QCA_SUPPORT_AGILE_DFS)
#include <wlan_mlme_dispatcher.h>
#define QUICK_OCAC_MODE 0
#endif
/**
* target_if_dfs_cac_complete_event_handler() - CAC complete indication.
@@ -372,7 +371,7 @@ QDF_STATUS target_send_agile_ch_cfg_cmd(struct wlan_objmgr_pdev *pdev,
qdf_mem_set(&param, sizeof(param), 0);
param.vdev_id = wlan_vdev_get_id(vdev);
param.ocac_mode = QUICK_OCAC_MODE;
param.ocac_mode = adfs_param->ocac_mode;
param.min_duration_ms = adfs_param->min_precac_timeout;
param.max_duration_ms = adfs_param->max_precac_timeout;
param.chan_freq = adfs_param->precac_center_freq_1;