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

staging: vt6656: s_uGetDataDuration remove camel case

camel case changes
pDevice -> priv
byPktType -> pkt_type
bNeedAck -> need_ack
uAckTime -> ack_time
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f2aabee6
...@@ -210,19 +210,20 @@ static __le16 s_uGetRTSCTSRsvTime(struct vnt_private *priv, ...@@ -210,19 +210,20 @@ static __le16 s_uGetRTSCTSRsvTime(struct vnt_private *priv,
} }
//byFreqType 0: 5GHz, 1:2.4Ghz //byFreqType 0: 5GHz, 1:2.4Ghz
static __le16 s_uGetDataDuration(struct vnt_private *pDevice, static __le16 s_uGetDataDuration(struct vnt_private *piv,
u8 byPktType, int bNeedAck) u8 pkt_type, int need_ack)
{ {
u32 uAckTime = 0; u32 ack_time = 0;
if (bNeedAck) { if (need_ack) {
if (byPktType == PK_TYPE_11B) if (pkt_type == PK_TYPE_11B)
uAckTime = vnt_get_frame_time(pDevice->byPreambleType, ack_time = vnt_get_frame_time(piv->byPreambleType,
byPktType, 14, pDevice->byTopCCKBasicRate); pkt_type, 14, piv->byTopCCKBasicRate);
else else
uAckTime = vnt_get_frame_time(pDevice->byPreambleType, ack_time = vnt_get_frame_time(piv->byPreambleType,
byPktType, 14, pDevice->byTopOFDMBasicRate); pkt_type, 14, piv->byTopOFDMBasicRate);
return cpu_to_le16((u16)(pDevice->uSIFS + uAckTime));
return cpu_to_le16((u16)(piv->uSIFS + ack_time));
} }
return 0; return 0;
......
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