Lines Matching refs:rx_power
2535 s8 rx_power[RTW_RF_PATH_MAX]; in query_phy_status_page0() local
2541 rx_power[RF_PATH_A] = GET_PHY_STAT_P0_PWDB_A(phy_status); in query_phy_status_page0()
2542 rx_power[RF_PATH_B] = GET_PHY_STAT_P0_PWDB_B(phy_status); in query_phy_status_page0()
2548 rx_power[RF_PATH_A] += (l_bnd - gain_a) << 1; in query_phy_status_page0()
2550 rx_power[RF_PATH_A] -= (gain_a - u_bnd) << 1; in query_phy_status_page0()
2552 rx_power[RF_PATH_B] += (l_bnd - gain_b) << 1; in query_phy_status_page0()
2554 rx_power[RF_PATH_B] -= (gain_b - u_bnd) << 1; in query_phy_status_page0()
2556 rx_power[RF_PATH_A] -= 110; in query_phy_status_page0()
2557 rx_power[RF_PATH_B] -= 110; in query_phy_status_page0()
2564 pkt_stat->rx_power[RF_PATH_A] = rx_power[RF_PATH_A]; in query_phy_status_page0()
2565 pkt_stat->rx_power[RF_PATH_B] = rx_power[RF_PATH_B]; in query_phy_status_page0()
2568 rssi = rtw_phy_rf_power_2_rssi(&pkt_stat->rx_power[path], 1); in query_phy_status_page0()
2572 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 1); in query_phy_status_page0()
2574 pkt_stat->signal_power = max(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page0()
2606 pkt_stat->rx_power[RF_PATH_A] = GET_PHY_STAT_P1_PWDB_A(phy_status) - 110; in query_phy_status_page1()
2607 pkt_stat->rx_power[RF_PATH_B] = GET_PHY_STAT_P1_PWDB_B(phy_status) - 110; in query_phy_status_page1()
2608 pkt_stat->rssi = rtw_phy_rf_power_2_rssi(pkt_stat->rx_power, 2); in query_phy_status_page1()
2610 pkt_stat->signal_power = max3(pkt_stat->rx_power[RF_PATH_A], in query_phy_status_page1()
2611 pkt_stat->rx_power[RF_PATH_B], in query_phy_status_page1()
2626 rssi = rtw_phy_rf_power_2_rssi(&pkt_stat->rx_power[path], 1); in query_phy_status_page1()