Commit ecbc0a1e authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: rename CARDqGetTSFOffset to vnt_get_tsf_offset

drop card and rename to vnt_get_tsf_offset
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e809c96e
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* vnt_ofdm_min_rate - Check if any OFDM rate is in BasicRateSet * vnt_ofdm_min_rate - Check if any OFDM rate is in BasicRateSet
* CARDvSetLoopbackMode - Set Loopback mode * CARDvSetLoopbackMode - Set Loopback mode
* CARDbSoftwareReset - Sortware reset NIC * CARDbSoftwareReset - Sortware reset NIC
* CARDqGetTSFOffset - Calculate TSFOffset * vnt_get_tsf_offset - Calculate TSFOffset
* CARDbGetCurrentTSF - Read Current NIC TSF counter * CARDbGetCurrentTSF - Read Current NIC TSF counter
* CARDqGetNextTBTT - Calculate Next Beacon TSF counter * CARDqGetNextTBTT - Calculate Next Beacon TSF counter
* CARDvSetFirstNextTBTT - Set NIC Beacon time * CARDvSetFirstNextTBTT - Set NIC Beacon time
...@@ -552,7 +552,7 @@ u8 vnt_get_pkt_type(struct vnt_private *priv) ...@@ -552,7 +552,7 @@ u8 vnt_get_pkt_type(struct vnt_private *priv)
* Return Value: TSF Offset value * Return Value: TSF Offset value
* *
*/ */
u64 CARDqGetTSFOffset(u8 rx_rate, u64 tsf1, u64 tsf2) u64 vnt_get_tsf_offset(u8 rx_rate, u64 tsf1, u64 tsf2)
{ {
u64 tsf_offset = 0; u64 tsf_offset = 0;
u16 rx_bcn_offset = 0; u16 rx_bcn_offset = 0;
...@@ -587,7 +587,7 @@ void CARDvAdjustTSF(struct vnt_private *priv, u8 rx_rate, ...@@ -587,7 +587,7 @@ void CARDvAdjustTSF(struct vnt_private *priv, u8 rx_rate,
u64 tsf_offset = 0; u64 tsf_offset = 0;
u8 data[8]; u8 data[8];
tsf_offset = CARDqGetTSFOffset(rx_rate, time_stamp, local_tsf); tsf_offset = vnt_get_tsf_offset(rx_rate, time_stamp, local_tsf);
data[0] = (u8)tsf_offset; data[0] = (u8)tsf_offset;
data[1] = (u8)(tsf_offset >> 8); data[1] = (u8)(tsf_offset >> 8);
......
...@@ -59,7 +59,7 @@ void CARDvSetFirstNextTBTT(struct vnt_private *pDevice, u16 wBeaconInterval); ...@@ -59,7 +59,7 @@ void CARDvSetFirstNextTBTT(struct vnt_private *pDevice, u16 wBeaconInterval);
void CARDvUpdateNextTBTT(struct vnt_private *pDevice, u64 qwTSF, void CARDvUpdateNextTBTT(struct vnt_private *pDevice, u64 qwTSF,
u16 wBeaconInterval); u16 wBeaconInterval);
u64 CARDqGetNextTBTT(u64 qwTSF, u16 wBeaconInterval); u64 CARDqGetNextTBTT(u64 qwTSF, u16 wBeaconInterval);
u64 CARDqGetTSFOffset(u8 byRxRate, u64 qwTSF1, u64 qwTSF2); u64 vnt_get_tsf_offset(u8 byRxRate, u64 qwTSF1, u64 qwTSF2);
int CARDbRadioPowerOff(struct vnt_private *pDevice); int CARDbRadioPowerOff(struct vnt_private *pDevice);
int CARDbRadioPowerOn(struct vnt_private *pDevice); int CARDbRadioPowerOn(struct vnt_private *pDevice);
u8 vnt_get_pkt_type(struct vnt_private *); u8 vnt_get_pkt_type(struct vnt_private *);
......
...@@ -1750,10 +1750,10 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true) ...@@ -1750,10 +1750,10 @@ if(ChannelExceedZoneType(pDevice,byCurrChannel)==true)
bTSFOffsetPostive = false; bTSFOffsetPostive = false;
if (bTSFOffsetPostive) { if (bTSFOffsetPostive) {
qwTSFOffset = CARDqGetTSFOffset(pRxPacket->byRxRate, (qwTimestamp), (qwLocalTSF)); qwTSFOffset = vnt_get_tsf_offset(pRxPacket->byRxRate, (qwTimestamp), (qwLocalTSF));
} }
else { else {
qwTSFOffset = CARDqGetTSFOffset(pRxPacket->byRxRate, (qwLocalTSF), (qwTimestamp)); qwTSFOffset = vnt_get_tsf_offset(pRxPacket->byRxRate, (qwLocalTSF), (qwTimestamp));
} }
if (qwTSFOffset > TRIVIAL_SYNC_DIFFERENCE) if (qwTSFOffset > TRIVIAL_SYNC_DIFFERENCE)
......
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