From 0893f2cead157f63a6671cfbf83dc2a0c2842afd Mon Sep 17 00:00:00 2001 From: astsam Date: Sun, 24 Jan 2021 22:07:30 +0300 Subject: [PATCH] Get per rx path rssi info for CCK modulation --- hal/phydm/phydm_phystatus.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hal/phydm/phydm_phystatus.c b/hal/phydm/phydm_phystatus.c index bbcb6bd..060390b 100644 --- a/hal/phydm/phydm_phystatus.c +++ b/hal/phydm/phydm_phystatus.c @@ -1071,7 +1071,6 @@ void phydm_phy_sts_n_parsing(struct dm_struct *dm, #endif #if ODM_IC_11AC_SERIES_SUPPORT - void phydm_rx_physts_bw_parsing(struct phydm_phyinfo_struct *phy_info, struct phydm_perpkt_info_struct * pktinfo, @@ -1189,6 +1188,16 @@ void phydm_rx_physts_1st_type(struct dm_struct *dm, phy_info->rx_pwdb_all = rssi; phy_info->rx_mimo_signal_strength[0] = rssi; + + // fill per path rx power info + for (i = RF_PATH_A; i < dm->num_rf_path; i++) { + if (i < RF_PATH_C) + val = phy_sts->gain_trsw[i]; + else + val = phy_sts->gain_trsw_cd[i - 2]; + + phy_info->rx_pwr[i] = (val & 0x7F) - 110; + } } else { /* @== [OFDM rate] ===================================================*/ for (i = RF_PATH_A; i < dm->num_rf_path; i++) {