qcacmn: Enable MLO Link Stats Support

1) Enable MLO Link Stats Support
2) Add Stats counter to capture Invalid Link ID
3) Fix the FW Recovery crash while ol_stats
   disable.

Change-Id: I1b5263ae024579c5ec2018f8082f0d03ffdf0030
CRs-Fixed: 3431319
This commit is contained in:
Kenvish Butani
2023-03-13 21:54:59 +05:30
committed by Madan Koyyalamudi
parent d1ddb7d4fe
commit 1e6fe4c3a2
11 changed files with 98 additions and 50 deletions

View File

@@ -2015,13 +2015,13 @@ static void dp_mlo_peer_find_hash_detach_wrapper(struct dp_soc *soc)
}
#endif
#ifdef DP_MLO_LINK_STATS_SUPPORT
#ifdef QCA_ENHANCED_STATS_SUPPORT
static uint8_t
dp_get_hw_link_id_be(struct dp_pdev *pdev)
{
struct dp_pdev_be *be_pdev = dp_get_be_pdev_from_dp_pdev(pdev);
return ((be_pdev->mlo_link_id) + 1);
return be_pdev->mlo_link_id;
}
#else
static uint8_t
@@ -2029,7 +2029,7 @@ dp_get_hw_link_id_be(struct dp_pdev *pdev)
{
return 0;
}
#endif
#endif /* QCA_ENHANCED_STATS_SUPPORT */
static struct dp_peer *
dp_mlo_peer_find_hash_find_be(struct dp_soc *soc,