qcacld-3.0: Restart SAP / GO before STA

In STA + SAP / GO DFS SCC concurrency, switch SAP / GO's operating
channel before STA's switch upon received very first CSA on STA
interface from peer AP.

Once STA moves to new channel, enforce SCC with existing SAP / GO
if its in MCC. This is done to allow traffic on SAP / GO side
during CSA period.

Change-Id: Icb4a15ad21ae96faff1fe338985aa734a4398cd2
CRs-Fixed: 3431386
This commit is contained in:
Rachit Kankane
2023-01-30 13:04:04 +05:30
committed by Madan Koyyalamudi
vanhempi 8c8aae44eb
commit 4eec1b8e78
4 muutettua tiedostoa jossa 228 lisäystä ja 5 poistoa

Näytä tiedosto

@@ -850,6 +850,42 @@ policy_mgr_change_sap_channel_with_csa(struct wlan_objmgr_psoc *psoc,
}
#endif
/**
* policy_mgr_sta_sap_dfs_scc_conc_check() - validate and Move SAP channel
* using (E)CSA
*
* @psoc: PSOC object information
* @vdev_id: Vdev id
* @csa_event: Pointer to CSA IE Received event data
*
* Invoke the function to change SAP channel using (E)CSA for STA+GO / SAP
* SCC scenario only. This function will move P2P-GO / SAP first and then STA
* will follow.
*
* Return: QDF_STATUS_SUCCESS on success
*/
QDF_STATUS
policy_mgr_sta_sap_dfs_scc_conc_check(struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id,
struct csa_offload_params *csa_event);
/**
* policy_mgr_sta_sap_dfs_enforce_scc() - validate and enforce SCC
* using (E)CSA upon receiving 1st beacon
*
* @psoc: PSOC object information
* @vdev_id: Vdev id
*
* Invoke the function to enforce SCC upon receiving 1st beacon. SAP / GO
* movement will be triggered using (E)CSA for STA+GO / SAP DFS scenario only.
* The pre-requisite for this function is SAP / GO shall already moved to new
* channel by policy_mgr_sta_sap_dfs_scc_conc_check() function.
*
* Return: void
*/
void policy_mgr_sta_sap_dfs_enforce_scc(struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id);
#ifdef WLAN_FEATURE_P2P_P2P_STA
/**
* policy_mgr_is_p2p_p2p_conc_supported() - p2p concurrency support