Commit 293f6c08 authored by navin patidar's avatar navin patidar Committed by Greg Kroah-Hartman

staging: rtl8188eu: Remove unused function ConvertTo_dB()

Signed-off-by: default avatarnavin patidar <navin.patidar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ddd0d480
...@@ -1394,28 +1394,3 @@ void odm_EdcaTurboCheckCE(struct odm_dm_struct *pDM_Odm) ...@@ -1394,28 +1394,3 @@ void odm_EdcaTurboCheckCE(struct odm_dm_struct *pDM_Odm)
pxmitpriv->last_tx_bytes = pxmitpriv->tx_bytes; pxmitpriv->last_tx_bytes = pxmitpriv->tx_bytes;
precvpriv->last_rx_bytes = precvpriv->rx_bytes; precvpriv->last_rx_bytes = precvpriv->rx_bytes;
} }
u32 ConvertTo_dB(u32 Value)
{
u8 i;
u8 j;
u32 dB;
Value = Value & 0xFFFF;
for (i = 0; i < 8; i++) {
if (Value <= dB_Invert_Table[i][11])
break;
}
if (i >= 8)
return 96; /* maximum 96 dB */
for (j = 0; j < 12; j++) {
if (Value <= dB_Invert_Table[i][j])
break;
}
dB = i*12 + j + 1;
return dB;
}
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