Commit 956ec671 authored by Philipp Hortmann's avatar Philipp Hortmann Committed by Greg Kroah-Hartman

staging: rtl8192e: Remove function rtl92e_update_rx_pkt_timestamp()

mac_time and last_rx_desc_tsf are only used in
rtl92e_update_rx_pkt_timestamp(). Depending on a condition one is equal
to the other or vice versa. But since those are not used anywhere else
the function rtl92e_update_rx_pkt_timestamp() is just dead code.
Signed-off-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/89a21fa17b32d66e07514bfad5b604d5d4835e25.1700860759.git.philipp.g.hortmann@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6ae22b8c
...@@ -1673,8 +1673,6 @@ bool rtl92e_get_rx_stats(struct net_device *dev, struct rtllib_rx_stats *stats, ...@@ -1673,8 +1673,6 @@ bool rtl92e_get_rx_stats(struct net_device *dev, struct rtllib_rx_stats *stats,
stats->TimeStampLow = pDrvInfo->TSFL; stats->TimeStampLow = pDrvInfo->TSFL;
stats->TimeStampHigh = rtl92e_readl(dev, TSFR + 4); stats->TimeStampHigh = rtl92e_readl(dev, TSFR + 4);
rtl92e_update_rx_pkt_timestamp(dev, stats);
if ((stats->RxBufShift + stats->RxDrvInfoSize) > 0) if ((stats->RxBufShift + stats->RxDrvInfoSize) > 0)
stats->bShift = 1; stats->bShift = 1;
......
...@@ -1433,17 +1433,6 @@ void rtl92e_reset_desc_ring(struct net_device *dev) ...@@ -1433,17 +1433,6 @@ void rtl92e_reset_desc_ring(struct net_device *dev)
spin_unlock_irqrestore(&priv->irq_th_lock, flags); spin_unlock_irqrestore(&priv->irq_th_lock, flags);
} }
void rtl92e_update_rx_pkt_timestamp(struct net_device *dev,
struct rtllib_rx_stats *stats)
{
struct r8192_priv *priv = rtllib_priv(dev);
if (stats->bIsAMPDU && !stats->bFirstMPDU)
stats->mac_time = priv->last_rx_desc_tsf;
else
priv->last_rx_desc_tsf = stats->mac_time;
}
long rtl92e_translate_to_dbm(struct r8192_priv *priv, u8 signal_strength_index) long rtl92e_translate_to_dbm(struct r8192_priv *priv, u8 signal_strength_index)
{ {
long signal_power; long signal_power;
......
...@@ -234,8 +234,6 @@ struct r8192_priv { ...@@ -234,8 +234,6 @@ struct r8192_priv {
int rxringcount; int rxringcount;
u16 rxbuffersize; u16 rxbuffersize;
u64 last_rx_desc_tsf;
u32 receive_config; u32 receive_config;
u8 retry_data; u8 retry_data;
u8 retry_rts; u8 retry_rts;
...@@ -391,8 +389,6 @@ void rtl92e_irq_enable(struct net_device *dev); ...@@ -391,8 +389,6 @@ void rtl92e_irq_enable(struct net_device *dev);
void rtl92e_config_rate(struct net_device *dev, u16 *rate_config); void rtl92e_config_rate(struct net_device *dev, u16 *rate_config);
void rtl92e_irq_disable(struct net_device *dev); void rtl92e_irq_disable(struct net_device *dev);
void rtl92e_update_rx_pkt_timestamp(struct net_device *dev,
struct rtllib_rx_stats *stats);
long rtl92e_translate_to_dbm(struct r8192_priv *priv, u8 signal_strength_index); long rtl92e_translate_to_dbm(struct r8192_priv *priv, u8 signal_strength_index);
void rtl92e_update_rx_statistics(struct r8192_priv *priv, void rtl92e_update_rx_statistics(struct r8192_priv *priv,
struct rtllib_rx_stats *pprevious_stats); struct rtllib_rx_stats *pprevious_stats);
......
...@@ -471,7 +471,6 @@ enum _REG_PREAMBLE_MODE { ...@@ -471,7 +471,6 @@ enum _REG_PREAMBLE_MODE {
* any adverse affects. * any adverse affects.
*/ */
struct rtllib_rx_stats { struct rtllib_rx_stats {
u64 mac_time;
s8 rssi; s8 rssi;
u8 signal; u8 signal;
u8 noise; u8 noise;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment