diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2014-11-30 21:04:53 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-12-03 00:39:59 (GMT) |
commit | f7bf8c243da20b2b303794fc80a0e2a66d966823 (patch) | |
tree | 5d2e894015fc2cec887edbe25b58d2d43517188e /drivers/staging | |
parent | 707ce72f9769061fb2828fab46706b6716186447 (diff) | |
download | linux-f7bf8c243da20b2b303794fc80a0e2a66d966823.tar.xz |
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/staging')
-rw-r--r-- | drivers/staging/rtl8723au/core/rtw_mlme.c | 6 | ||||
-rw-r--r-- | drivers/staging/rtl8723au/core/rtw_recv.c | 10 | ||||
-rw-r--r-- | drivers/staging/rtl8723au/include/rtw_recv.h | 1 |
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 734972c..7299ef0 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 5b15c4a..559ddde 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 79656ee..dc784be 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; |