qcacmn: Handle Agile PreCAC in the same SM as RCAC

Following are a part of this change:-

1. Add an API to check if PreCAC/RCAC is enabled. This API is used before
   delivering an external event to Agile SM.
2. Post an event to the Agile PreCAC SM if Radar is found on
   agile channel. Radar on primary channel is taken care of by the
   ensuing channel change.
3. Move all Agile PreCAC changes under macro QCA_SUPPORT_AGILE_DFS,
   only RCAC specific changes remain under QCA_SUPPORT_ADFS_RCAC.

Change-Id: I45d4b9f826d36e9e4093879b394165a15a52f324
这个提交包含在:
Ananya Barat
2020-06-26 21:17:55 +05:30
提交者 snandini
父节点 82befeaf2a
当前提交 b63669d9e2
修改 7 个文件,包含 108 行新增42 行删除

查看文件

@@ -978,7 +978,7 @@ void utils_dfs_deliver_event(struct wlan_objmgr_pdev *pdev, uint16_t freq,
*/
void utils_dfs_reset_dfs_prevchan(struct wlan_objmgr_pdev *pdev);
#ifdef QCA_SUPPORT_ADFS_RCAC
#ifdef QCA_SUPPORT_AGILE_DFS
/**
* utils_dfs_agile_sm_deliver_evt() - API to post events to DFS Agile SM.
* @pdev: Pointer to DFS pdev object.
@@ -988,7 +988,15 @@ void utils_dfs_reset_dfs_prevchan(struct wlan_objmgr_pdev *pdev);
*/
void utils_dfs_agile_sm_deliver_evt(struct wlan_objmgr_pdev *pdev,
enum dfs_agile_sm_evt event);
#else
static inline
void utils_dfs_agile_sm_deliver_evt(struct wlan_objmgr_pdev *pdev,
enum dfs_agile_sm_evt event)
{
}
#endif/*QCA_SUPPORT_AGILE_DFS*/
#ifdef QCA_SUPPORT_ADFS_RCAC
/**
* utils_dfs_get_rcac_channel() - Get the completed Rolling CAC channel if
* available.
@@ -1002,12 +1010,6 @@ QDF_STATUS utils_dfs_get_rcac_channel(struct wlan_objmgr_pdev *pdev,
struct ch_params *chan_params,
qdf_freq_t *target_chan_freq);
#else
static inline
void utils_dfs_agile_sm_deliver_evt(struct wlan_objmgr_pdev *pdev,
enum dfs_agile_sm_evt event)
{
}
static inline
QDF_STATUS utils_dfs_get_rcac_channel(struct wlan_objmgr_pdev *pdev,
struct ch_params *chan_params,