qcacmn: Code to init/deinit SOFTUMAC based Rhine architecture.
This code helps to initialize and deinitialize new SOFTUMAC based Rhine architecture. Change-Id: I374140ccb3b31e9351c6e683c77d81a5a876472a CRs-Fixed: 3382913
This commit is contained in:

committad av
Madan Koyyalamudi

förälder
a7cd30b5da
incheckning
0562ed7a5e
@@ -6699,6 +6699,55 @@ void dp_print_peer_txrx_stats_li(struct cdp_peer_stats *peer_stats,
|
||||
}
|
||||
}
|
||||
|
||||
void dp_print_peer_txrx_stats_rh(struct cdp_peer_stats *peer_stats,
|
||||
enum peer_stats_type stats_type)
|
||||
{
|
||||
if (stats_type == PEER_TX_STATS) {
|
||||
DP_PRINT_STATS("BW Counts = 20MHZ %d 40MHZ %d 80MHZ %d 160MHZ %d\n",
|
||||
peer_stats->tx.bw[CMN_BW_20MHZ],
|
||||
peer_stats->tx.bw[CMN_BW_40MHZ],
|
||||
peer_stats->tx.bw[CMN_BW_80MHZ],
|
||||
peer_stats->tx.bw[CMN_BW_160MHZ]);
|
||||
DP_PRINT_STATS("RU Locations");
|
||||
DP_PRINT_STATS("%s: MSDUs Success = %d MPDUs Success = %d MPDUs Tried = %d",
|
||||
cdp_ru_string[RU_26_INDEX].ru_type,
|
||||
peer_stats->tx.ru_loc[RU_26_INDEX].num_msdu,
|
||||
peer_stats->tx.ru_loc[RU_26_INDEX].num_mpdu,
|
||||
peer_stats->tx.ru_loc[RU_26_INDEX].mpdu_tried);
|
||||
DP_PRINT_STATS("%s: MSDUs Success = %d MPDUs Success = %d MPDUs Tried = %d",
|
||||
cdp_ru_string[RU_52_INDEX].ru_type,
|
||||
peer_stats->tx.ru_loc[RU_52_INDEX].num_msdu,
|
||||
peer_stats->tx.ru_loc[RU_52_INDEX].num_mpdu,
|
||||
peer_stats->tx.ru_loc[RU_52_INDEX].mpdu_tried);
|
||||
DP_PRINT_STATS("%s: MSDUs Success = %d MPDUs Success = %d MPDUs Tried = %d",
|
||||
cdp_ru_string[RU_106_INDEX].ru_type,
|
||||
peer_stats->tx.ru_loc[RU_106_INDEX].num_msdu,
|
||||
peer_stats->tx.ru_loc[RU_106_INDEX].num_mpdu,
|
||||
peer_stats->tx.ru_loc[RU_106_INDEX].mpdu_tried);
|
||||
DP_PRINT_STATS("%s: MSDUs Success = %d MPDUs Success = %d MPDUs Tried = %d",
|
||||
cdp_ru_string[RU_242_INDEX].ru_type,
|
||||
peer_stats->tx.ru_loc[RU_242_INDEX].num_msdu,
|
||||
peer_stats->tx.ru_loc[RU_242_INDEX].num_mpdu,
|
||||
peer_stats->tx.ru_loc[RU_242_INDEX].mpdu_tried);
|
||||
DP_PRINT_STATS("%s: MSDUs Success = %d MPDUs Success = %d MPDUs Tried = %d",
|
||||
cdp_ru_string[RU_484_INDEX].ru_type,
|
||||
peer_stats->tx.ru_loc[RU_484_INDEX].num_msdu,
|
||||
peer_stats->tx.ru_loc[RU_484_INDEX].num_mpdu,
|
||||
peer_stats->tx.ru_loc[RU_484_INDEX].mpdu_tried);
|
||||
DP_PRINT_STATS("%s: MSDUs Success = %d MPDUs Success = %d MPDUs Tried = %d",
|
||||
cdp_ru_string[RU_996_INDEX].ru_type,
|
||||
peer_stats->tx.ru_loc[RU_996_INDEX].num_msdu,
|
||||
peer_stats->tx.ru_loc[RU_996_INDEX].num_mpdu,
|
||||
peer_stats->tx.ru_loc[RU_996_INDEX].mpdu_tried);
|
||||
} else {
|
||||
DP_PRINT_STATS("BW Counts = 20MHZ %d 40MHZ %d 80MHZ %d 160MHZ %d",
|
||||
peer_stats->rx.bw[CMN_BW_20MHZ],
|
||||
peer_stats->rx.bw[CMN_BW_40MHZ],
|
||||
peer_stats->rx.bw[CMN_BW_80MHZ],
|
||||
peer_stats->rx.bw[CMN_BW_160MHZ]);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef REO_SHARED_QREF_TABLE_EN
|
||||
static void dp_peer_print_reo_qref_table(struct dp_peer *peer)
|
||||
{
|
||||
@@ -7395,6 +7444,7 @@ void dp_txrx_path_stats(struct dp_soc *soc)
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef WLAN_SOFTUMAC_SUPPORT
|
||||
/**
|
||||
* dp_peer_ctrl_frames_stats_get() - function to agreegate peer stats
|
||||
* Current scope is bar received count
|
||||
@@ -7425,6 +7475,25 @@ dp_peer_ctrl_frames_stats_get(struct dp_soc *soc,
|
||||
qdf_atomic_set(&pdev->stats_cmd_complete, 0);
|
||||
}
|
||||
|
||||
#else
|
||||
/**
|
||||
* dp_peer_ctrl_frames_stats_get() - function to agreegate peer stats
|
||||
* Current scope is bar received count
|
||||
*
|
||||
* @soc : Datapath SOC handle
|
||||
* @peer: Datapath peer handle
|
||||
* @arg : argument to iterate function
|
||||
*
|
||||
* Return: void
|
||||
*/
|
||||
static void
|
||||
dp_peer_ctrl_frames_stats_get(struct dp_soc *soc,
|
||||
struct dp_peer *peer,
|
||||
void *arg)
|
||||
{
|
||||
}
|
||||
#endif /* WLAN_SOFTUMAC_SUPPORT */
|
||||
|
||||
void
|
||||
dp_print_pdev_tx_stats(struct dp_pdev *pdev)
|
||||
{
|
||||
|
Referens i nytt ärende
Block a user