rtl8188eu: Remove CONFIG_SIGNAL_DISPLAY_DBM - not defined

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-07-22 15:20:59 -05:00
parent 90670e559c
commit 69f205189c

View file

@ -525,11 +525,7 @@ static char *translate_scan(_adapter *padapter,
/* Add quality statistics */
iwe.cmd = IWEVQUAL;
iwe.u.qual.updated = IW_QUAL_QUAL_UPDATED | IW_QUAL_LEVEL_UPDATED | IW_QUAL_NOISE_INVALID
#ifdef CONFIG_SIGNAL_DISPLAY_DBM
| IW_QUAL_DBM
#endif
;
iwe.u.qual.updated = IW_QUAL_QUAL_UPDATED | IW_QUAL_LEVEL_UPDATED | IW_QUAL_NOISE_INVALID;
if (check_fwstate(pmlmepriv, _FW_LINKED)== true &&
is_same_network(&pmlmepriv->cur_network.network, &pnetwork->network)) {
@ -540,15 +536,10 @@ static char *translate_scan(_adapter *padapter,
sq = pnetwork->network.PhyInfo.SignalQuality;
}
#ifdef CONFIG_SIGNAL_DISPLAY_DBM
iwe.u.qual.level = (u8) translate_percentage_to_dbm(ss);//dbm
#else
iwe.u.qual.level = (u8)ss;//%
#ifdef CONFIG_BT_COEXIST
BT_SignalCompensation(padapter, &iwe.u.qual.level, NULL);
#endif // CONFIG_BT_COEXIST
#endif
iwe.u.qual.qual = (u8)sq; // signal quality
@ -9689,9 +9680,6 @@ static struct iw_statistics *rtw_get_wireless_stats(struct net_device *dev)
//DBG_88E("No link level:%d, qual:%d, noise:%d\n", tmp_level, tmp_qual, tmp_noise);
}
else{
#ifdef CONFIG_SIGNAL_DISPLAY_DBM
tmp_level = translate_percentage_to_dbm(padapter->recvpriv.signal_strength);
#else
tmp_level = padapter->recvpriv.signal_strength;
#ifdef CONFIG_BT_COEXIST
{
@ -9700,7 +9688,6 @@ static struct iw_statistics *rtw_get_wireless_stats(struct net_device *dev)
tmp_level= signal;
}
#endif // CONFIG_BT_COEXIST
#endif
tmp_qual = padapter->recvpriv.signal_qual;
tmp_noise =padapter->recvpriv.noise;
@ -9716,10 +9703,6 @@ static struct iw_statistics *rtw_get_wireless_stats(struct net_device *dev)
piwstats->qual.updated = 0x0f;
#endif
#ifdef CONFIG_SIGNAL_DISPLAY_DBM
piwstats->qual.updated = piwstats->qual.updated | IW_QUAL_DBM;
#endif
return &padapter->iwstats;
}
#endif