qcacmn: Add states events and API declarations for RCAC SM

As part of the Rolling CAC State Machine, introduce three state
enums (INIT, RUNNING and COMPLETE) and the corresponding state
events.

Introduce generic APIs such as dfs_rcac_sm_create,
dfs_rcac_sm_destroy and dfs_rcac_sm_deliver_evt for rolling
CAC State machine operations.

CRs-Fixed: 2659666
Change-Id: I528db71aa7d21dced7e47ff4f9cccfbfe94c8c21
This commit is contained in:
Vignesh Mohan
2020-04-09 11:28:32 +05:30
committato da nshrivas
parent 31004de4c2
commit a23f9384c4
8 ha cambiato i file con 158 aggiunte e 0 eliminazioni

Vedi File

@@ -358,4 +358,21 @@ struct seq_store {
struct synthetic_seq *seq_arr[0];
};
#endif /* WLAN_DFS_PARTIAL_OFFLOAD && WLAN_DFS_SYNTHETIC_RADAR */
/**
* enum dfs_rcac_sm_evt - DFS Rolling CAC SM events.
* @DFS_RCAC_SM_EV_RCAC_START: Event to start RCAC.
* @DFS_RCAC_SM_EV_NOL_EXPIRY: Event to try starting RCAC after NOL expiry.
* @DFS_RCAC_SM_EV_RCAC_DOWN: Event to stop RCAC.
* @DFS_RCAC_SM_EV_RCAC_DONE: Event to complete RCAC.
* @DFS_RCAC_SM_EV_ADFS_RADAR: Event to restart RCAC after radar in agile.
*/
enum dfs_rcac_sm_evt {
DFS_RCAC_SM_EV_RCAC_START = 0,
DFS_RCAC_SM_EV_NOL_EXPIRY = 1,
DFS_RCAC_SM_EV_RCAC_STOP = 2,
DFS_RCAC_SM_EV_RCAC_DONE = 3,
DFS_RCAC_SM_EV_ADFS_RADAR_FOUND = 4,
};
#endif /* _DFS_IOCTL_H_ */