summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2014-11-30 22:04:53 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-12-03 01:39:59 +0100
commitf7bf8c243da20b2b303794fc80a0e2a66d966823 (patch)
tree5d2e894015fc2cec887edbe25b58d2d43517188e /drivers
parentstaging: rtl8723au: recv_priv.is_signal_dbg is never set (diff)
downloadlinux-f7bf8c243da20b2b303794fc80a0e2a66d966823.tar.xz
linux-f7bf8c243da20b2b303794fc80a0e2a66d966823.zip
staging: rtl8723au: recv_priv->rssi is not used for anything
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rtl8723au/core/rtw_mlme.c6
-rw-r--r--drivers/staging/rtl8723au/core/rtw_recv.c10
-rw-r--r--drivers/staging/rtl8723au/include/rtw_recv.h1
3 files changed, 6 insertions, 11 deletions
diff --git a/drivers/staging/rtl8723au/core/rtw_mlme.c b/drivers/staging/rtl8723au/core/rtw_mlme.c
index 734972cae87c..7299ef0a2e54 100644
--- a/drivers/staging/rtl8723au/core/rtw_mlme.c
+++ b/drivers/staging/rtl8723au/core/rtw_mlme.c
@@ -1022,11 +1022,9 @@ rtw_joinbss_update_network23a(struct rtw_adapter *padapter,
* the ptarget_wlan->network.Rssi is raw data, we use
* ptarget_wlan->network.SignalStrength instead (has scaled)
*/
- padapter->recvpriv.rssi = translate_percentage_to_dbm(
- ptarget_wlan->network.SignalStrength);
- DBG_8723A("%s signal_strength:%3u, rssi:%3d, signal_qual:%3u\n",
+ DBG_8723A("%s signal_strength:%3u, signal_qual:%3u\n",
__func__, padapter->recvpriv.signal_strength,
- padapter->recvpriv.rssi, padapter->recvpriv.signal_qual);
+ padapter->recvpriv.signal_qual);
rtw_set_signal_stat_timer(&padapter->recvpriv);
/* update fw_state will clr _FW_UNDER_LINKING here indirectly */
diff --git a/drivers/staging/rtl8723au/core/rtw_recv.c b/drivers/staging/rtl8723au/core/rtw_recv.c
index 5b15c4ae0f31..559dddee2648 100644
--- a/drivers/staging/rtl8723au/core/rtw_recv.c
+++ b/drivers/staging/rtl8723au/core/rtw_recv.c
@@ -2352,15 +2352,13 @@ void rtw_signal_stat_timer_hdl23a(unsigned long data)
tmp_q = 100;
recvpriv->signal_strength = tmp_s;
- recvpriv->rssi = (s8)translate_percentage_to_dbm(tmp_s);
recvpriv->signal_qual = tmp_q;
- DBG_8723A("%s signal_strength:%3u, rssi:%3d, "
- "signal_qual:%3u, num_signal_strength:%u, "
- "num_signal_qual:%u\n",
+ DBG_8723A("%s signal_strength:%3u, signal_qual:%3u, "
+ "num_signal_strength:%u, num_signal_qual:%u\n",
__func__, recvpriv->signal_strength,
- recvpriv->rssi, recvpriv->signal_qual,
- num_signal_strength, num_signal_qual);
+ recvpriv->signal_qual, num_signal_strength,
+ num_signal_qual);
}
rtw_set_signal_stat_timer(recvpriv);
diff --git a/drivers/staging/rtl8723au/include/rtw_recv.h b/drivers/staging/rtl8723au/include/rtw_recv.h
index 79656ee423b4..dc784be3ddd9 100644
--- a/drivers/staging/rtl8723au/include/rtw_recv.h
+++ b/drivers/staging/rtl8723au/include/rtw_recv.h
@@ -200,7 +200,6 @@ struct recv_priv {
u8 *precv_buf;
/* For display the phy informatiom */
- s8 rssi;
s8 rxpwdb;
u8 signal_strength;
u8 signal_qual;