mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 05:18:45 +02:00
staging: rtl8723bs: delete DBG_RX_SIGNAL_DISPLAY_RAW_DATA ifdef code
remove code depending on cflag since it's not compiling and there is no reference for it's usage; Signed-off-by: Rodrigo Gobbi <rodrigo.gobbi.7@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/20241211233415.37702-2-rodrigo.gobbi.7@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a99e5c8853
commit
2bc2c36400
|
|
@ -683,12 +683,6 @@ u8 SetHalDefVar(
|
|||
|
||||
switch (variable) {
|
||||
case HAL_DEF_DBG_RX_INFO_DUMP:
|
||||
|
||||
if (odm->bLinked) {
|
||||
#ifdef DBG_RX_SIGNAL_DISPLAY_RAW_DATA
|
||||
rtw_dump_raw_rssi_info(adapter);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case HW_DEF_ODM_DBG_FLAG:
|
||||
ODM_CmnInfoUpdate(odm, ODM_CMNINFO_DBG_COMP, *((u64 *)value));
|
||||
|
|
@ -879,53 +873,6 @@ void rtw_hal_check_rxfifo_full(struct adapter *adapter)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef DBG_RX_SIGNAL_DISPLAY_RAW_DATA
|
||||
void rtw_dump_raw_rssi_info(struct adapter *padapter)
|
||||
{
|
||||
u8 isCCKrate, rf_path;
|
||||
struct hal_com_data *pHalData = GET_HAL_DATA(padapter);
|
||||
struct rx_raw_rssi *psample_pkt_rssi = &padapter->recvpriv.raw_rssi_info;
|
||||
|
||||
isCCKrate = psample_pkt_rssi->data_rate <= DESC_RATE11M;
|
||||
|
||||
if (isCCKrate)
|
||||
psample_pkt_rssi->mimo_signal_strength[0] = psample_pkt_rssi->pwdball;
|
||||
|
||||
for (rf_path = 0; rf_path < pHalData->NumTotalRFPath; rf_path++) {
|
||||
if (!isCCKrate) {
|
||||
netdev_dbg(padapter->pnetdev, ", rx_ofdm_pwr:%d(dBm), rx_ofdm_snr:%d(dB)\n",
|
||||
psample_pkt_rssi->ofdm_pwr[rf_path],
|
||||
psample_pkt_rssi->ofdm_snr[rf_path]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void rtw_store_phy_info(struct adapter *padapter, union recv_frame *prframe)
|
||||
{
|
||||
u8 isCCKrate, rf_path;
|
||||
struct hal_com_data *pHalData = GET_HAL_DATA(padapter);
|
||||
struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib;
|
||||
|
||||
struct odm_phy_info *pPhyInfo = (PODM_PHY_INFO_T)(&pattrib->phy_info);
|
||||
struct rx_raw_rssi *psample_pkt_rssi = &padapter->recvpriv.raw_rssi_info;
|
||||
|
||||
psample_pkt_rssi->data_rate = pattrib->data_rate;
|
||||
isCCKrate = pattrib->data_rate <= DESC_RATE11M;
|
||||
|
||||
psample_pkt_rssi->pwdball = pPhyInfo->rx_pwd_ba11;
|
||||
psample_pkt_rssi->pwr_all = pPhyInfo->recv_signal_power;
|
||||
|
||||
for (rf_path = 0; rf_path < pHalData->NumTotalRFPath; rf_path++) {
|
||||
psample_pkt_rssi->mimo_signal_strength[rf_path] = pPhyInfo->rx_mimo_signal_strength[rf_path];
|
||||
psample_pkt_rssi->mimo_signal_quality[rf_path] = pPhyInfo->rx_mimo_signal_quality[rf_path];
|
||||
if (!isCCKrate) {
|
||||
psample_pkt_rssi->ofdm_pwr[rf_path] = pPhyInfo->RxPwr[rf_path];
|
||||
psample_pkt_rssi->ofdm_snr[rf_path] = pPhyInfo->RxSNR[rf_path];
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static u32 Array_kfreemap[] = {
|
||||
0xf8, 0xe,
|
||||
0xf6, 0xc,
|
||||
|
|
|
|||
|
|
@ -67,8 +67,4 @@ void rtl8723b_process_phy_info(struct adapter *padapter, void *prframe)
|
|||
/* Check EVM */
|
||||
/* */
|
||||
process_link_qual(padapter, precvframe);
|
||||
#ifdef DBG_RX_SIGNAL_DISPLAY_RAW_DATA
|
||||
rtw_store_phy_info(padapter, prframe);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -149,11 +149,6 @@ bool eqNByte(u8 *str1, u8 *str2, u32 num);
|
|||
|
||||
bool GetU1ByteIntegerFromStringInDecimal(char *str, u8 *in);
|
||||
|
||||
#ifdef DBG_RX_SIGNAL_DISPLAY_RAW_DATA
|
||||
void rtw_store_phy_info(struct adapter *padapter, union recv_frame *prframe);
|
||||
void rtw_dump_raw_rssi_info(struct adapter *padapter);
|
||||
#endif
|
||||
|
||||
#define HWSET_MAX_SIZE 512
|
||||
|
||||
void rtw_bb_rf_gain_offset(struct adapter *padapter);
|
||||
|
|
|
|||
|
|
@ -89,21 +89,6 @@ struct phy_info {
|
|||
u8 btCoexPwrAdjust;
|
||||
};
|
||||
|
||||
#ifdef DBG_RX_SIGNAL_DISPLAY_RAW_DATA
|
||||
struct rx_raw_rssi {
|
||||
u8 data_rate;
|
||||
u8 pwdball;
|
||||
s8 pwr_all;
|
||||
|
||||
u8 mimo_signal_strength[4];/* in 0~100 index */
|
||||
u8 mimo_signal_quality[4];
|
||||
|
||||
s8 ofdm_pwr[4];
|
||||
u8 ofdm_snr[4];
|
||||
|
||||
};
|
||||
#endif
|
||||
|
||||
struct rx_pkt_attrib {
|
||||
u16 pkt_len;
|
||||
u8 physt;
|
||||
|
|
@ -221,9 +206,6 @@ struct recv_priv {
|
|||
u8 signal_strength;
|
||||
u8 signal_qual;
|
||||
s8 rssi; /* translate_percentage_to_dbm(ptarget_wlan->network.PhyInfo.SignalStrength); */
|
||||
#ifdef DBG_RX_SIGNAL_DISPLAY_RAW_DATA
|
||||
struct rx_raw_rssi raw_rssi_info;
|
||||
#endif
|
||||
/* s8 rxpwdb; */
|
||||
s16 noise;
|
||||
/* int RxSNRdB[2]; */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user