qcacmn: Add flexibility to flush MLO peers only

Add changes to support flushing of MLO peers only.
This is required to support the mode-1 behavior of target
recovery feature, where we delete MLO peers and retain
legacy peers across SOCs which are not crashed.

CRs-Fixed: 3243549
Change-Id: I5ae326bfffd1267768c83fd7f60fa1343ef305fe
Esse commit está contido em:
Shwetha G K
2022-07-21 11:57:17 +05:30
commit de Madan Koyyalamudi
commit 690e9eba92
4 arquivos alterados com 77 adições e 21 exclusões

Ver arquivo

@@ -254,7 +254,9 @@ cdp_vdev_detach(ol_txrx_soc_handle soc, uint8_t vdev_id,
#if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
static inline void
cdp_vdev_recovery_flush_peers(ol_txrx_soc_handle soc, uint8_t vdev_id)
cdp_vdev_recovery_flush_peers(ol_txrx_soc_handle soc,
uint8_t vdev_id,
bool mlo_peers_only)
{
if (!soc || !soc->ops) {
dp_cdp_debug("Invalid Instance:");
@@ -266,7 +268,9 @@ cdp_vdev_recovery_flush_peers(ol_txrx_soc_handle soc, uint8_t vdev_id)
!soc->ops->cmn_drv_ops->txrx_recovery_vdev_flush_peers)
return;
soc->ops->cmn_drv_ops->txrx_recovery_vdev_flush_peers(soc, vdev_id);
soc->ops->cmn_drv_ops->txrx_recovery_vdev_flush_peers(soc,
vdev_id,
mlo_peers_only);
}
#endif